Add slides_v1, regenerate APIs

This commit is contained in:
Steve Bazyl 2016-11-08 15:43:14 -08:00
parent 7ef23f3351
commit 1f7cb2446a
115 changed files with 10830 additions and 884 deletions

View File

@ -1,6 +1,10 @@
# 0.9.20
* Regenerate APIs
* Add Slides API
# 0.9.19
* Regenerate APIs
* Add Adexchangebuyer2 api
* Add Adexchangebuyer2 API
# 0.9.15
* Add datastore v1

View File

@ -619,6 +619,8 @@
"/dataproc:v1/dataproc.projects.regions.operations.list": list_operations
"/dataproc:v1/dataproc.projects.regions.operations.cancel": cancel_operation
"/dataproc:v1/dataproc.projects.regions.operations.delete": delete_operation
"/dataflow:v1b3/dataflow.projects.jobs.workItems.lease": lease_project_work_item
"/dataflow:v1b3/dataflow.projects.locations.jobs.workItems.lease": lease_project_location_work_item
"/datastore:v1beta2/AllocateIdsRequest": allocate_ids_request
"/datastore:v1beta2/AllocateIdsResponse": allocate_ids_response
"/datastore:v1beta2/BeginTransactionRequest": begin_transaction_request

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20161019'
REVISION = '20161107'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest
module AdexchangebuyerV1_4
VERSION = 'V1_4'
REVISION = '20161006'
REVISION = '20161020'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -93,11 +93,12 @@ module Google
# The protocol that the bidder endpoint is using. By default, OpenRTB protocols
# use JSON, except PROTOCOL_OPENRTB_PROTOBUF. PROTOCOL_OPENRTB_PROTOBUF uses
# protobuf encoding over the latest OpenRTB protocol version, which is 2.3 right
# protobuf encoding over the latest OpenRTB protocol version, which is 2.4 right
# now. Allowed values:
# - PROTOCOL_ADX
# - PROTOCOL_OPENRTB_2_2
# - PROTOCOL_OPENRTB_2_3
# - PROTOCOL_OPENRTB_2_4
# - PROTOCOL_OPENRTB_PROTOBUF
# Corresponds to the JSON property `bidProtocol`
# @return [String]
@ -620,7 +621,7 @@ module Google
attr_accessor :version
# The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not
# be set. Note, this is diffrent from resource.native_ad.video_url above.
# be set. Note, this is different from resource.native_ad.video_url above.
# Corresponds to the JSON property `videoURL`
# @return [String]
attr_accessor :video_url
@ -816,6 +817,11 @@ module Google
# @return [String]
attr_accessor :call_to_action
# The URL that the browser/SDK will load when the user clicks the ad.
# Corresponds to the JSON property `clickLinkUrl`
# @return [String]
attr_accessor :click_link_url
# The URL to use for click tracking.
# Corresponds to the JSON property `clickTrackingUrl`
# @return [String]
@ -856,7 +862,8 @@ module Google
# @return [String]
attr_accessor :store
#
# The URL of the XML VAST for a native ad. Note this is a separate field from
# resource.video_url.
# Corresponds to the JSON property `videoURL`
# @return [String]
attr_accessor :video_url
@ -871,6 +878,7 @@ module Google
@app_icon = args[:app_icon] if args.key?(:app_icon)
@body = args[:body] if args.key?(:body)
@call_to_action = args[:call_to_action] if args.key?(:call_to_action)
@click_link_url = args[:click_link_url] if args.key?(:click_link_url)
@click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
@headline = args[:headline] if args.key?(:headline)
@image = args[:image] if args.key?(:image)
@ -2427,6 +2435,14 @@ module Google
# @return [Array<String>]
attr_accessor :supported_creative_attributes
# Requests containing the specified type of user data will match. Possible
# values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and
# has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means
# the request has either a targetable cookie or an iOS IDFA.
# Corresponds to the JSON property `userIdentifierDataRequired`
# @return [Array<String>]
attr_accessor :user_identifier_data_required
# Requests containing any of these user list ids will match.
# Corresponds to the JSON property `userLists`
# @return [Array<String>]
@ -2474,6 +2490,7 @@ module Google
@placements = args[:placements] if args.key?(:placements)
@platforms = args[:platforms] if args.key?(:platforms)
@supported_creative_attributes = args[:supported_creative_attributes] if args.key?(:supported_creative_attributes)
@user_identifier_data_required = args[:user_identifier_data_required] if args.key?(:user_identifier_data_required)
@user_lists = args[:user_lists] if args.key?(:user_lists)
@vendor_types = args[:vendor_types] if args.key?(:vendor_types)
@verticals = args[:verticals] if args.key?(:verticals)

View File

@ -699,6 +699,7 @@ module Google
property :body, as: 'body'
property :call_to_action, as: 'callToAction'
property :click_link_url, as: 'clickLinkUrl'
property :click_tracking_url, as: 'clickTrackingUrl'
property :headline, as: 'headline'
property :image, as: 'image', class: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Image, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Image::Representation
@ -1139,6 +1140,7 @@ module Google
collection :platforms, as: 'platforms'
collection :supported_creative_attributes, as: 'supportedCreativeAttributes'
collection :user_identifier_data_required, as: 'userIdentifierDataRequired'
collection :user_lists, as: 'userLists'
collection :vendor_types, as: 'vendorTypes'
collection :verticals, as: 'verticals'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20161003'
REVISION = '20161020'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20161019'
REVISION = '20161107'
# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'

View File

@ -236,7 +236,7 @@ module Google
# @return [Google::Apis::AdsenseV1_4::AdStyle::Colors]
attr_accessor :colors
# The style of the corners in the ad.
# The style of the corners in the ad (deprecated: never populated, ignored).
# Corresponds to the JSON property `corners`
# @return [String]
attr_accessor :corners

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
REVISION = '20161019'
REVISION = '20161107'
# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'

View File

@ -209,8 +209,7 @@ module Google
# @return [Google::Apis::AdsensehostV4_1::AdStyle::Colors]
attr_accessor :colors
# The style of the corners in the ad. Possible values are SQUARE,
# SLIGHTLY_ROUNDED and VERY_ROUNDED.
# The style of the corners in the ad (deprecated: never populated, ignored).
# Corresponds to the JSON property `corners`
# @return [String]
attr_accessor :corners

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20161011'
REVISION = '20161102'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -88,7 +88,8 @@ module Google
# The list of permissions the admin is granted within the iframe. The admin will
# only be allowed to view an iframe if they have all of the permissions
# associated with it.
# associated with it. The only valid value is "approveApps" that will allow the
# admin to access the iframe in "approve" mode.
# Corresponds to the JSON property `permission`
# @return [Array<String>]
attr_accessor :permission
@ -2022,12 +2023,13 @@ module Google
# @return [String]
attr_accessor :kind
# Sets a store layout type. If set to "custom", "homepageId" must be specified.
# If set to "basic", the layout will consist of all approved apps accessible by
# the user, split in pages of 100 each; in this case, "homepageId" must not be
# specified. The "basic" setting takes precedence over any existing collections
# setup for this enterprise (if any). Should the enterprise use
# collectionViewers for controlling access rights, these will still be respected.
# The store layout type. By default, this value is set to "basic". If set to "
# custom", "homepageId" must be specified. If set to "basic", the layout will
# consist of all approved apps accessible by the user, split in pages of 100
# each; in this case, "homepageId" must not be specified. The "basic" setting
# takes precedence over any existing collections setup for this enterprise (if
# any). Should the enterprise use collectionViewers for controlling access
# rights, these will still be respected.
# Corresponds to the JSON property `storeLayoutType`
# @return [String]
attr_accessor :store_layout_type

View File

@ -1226,7 +1226,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the store layout for the enterprise.
# Sets the store layout for the enterprise. By default, storeLayoutType is set
# to "basic" and the basic store layout is enabled. The basic layout only
# contains apps approved by the administrator, and that have been added to the
# available product set for a user (using the setAvailableProductSet call).
# Apps on the page are sorted in order of their product ID value. If you create
# a custom store layout (by setting storeLayoutType = "custom"), the basic store
# layout is disabled.
# @param [String] enterprise_id
# The ID of the enterprise.
# @param [Google::Apis::AndroidenterpriseV1::StoreLayout] store_layout_object

View File

@ -25,10 +25,16 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta5
VERSION = 'V1beta5'
REVISION = '20161012'
REVISION = '20161101'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
# View your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
end
end
end

View File

@ -22,6 +22,31 @@ module Google
module Apis
module AppengineV1beta5
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
# A list of operations that matches the specified filter in the request.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::AppengineV1beta5::Operation>]
attr_accessor :operations
# The standard List next-page token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@operations = args[:operations] if args.key?(:operations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
@ -175,31 +200,6 @@ module Google
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
# A list of operations that matches the specified filter in the request.
# Corresponds to the JSON property `operations`
# @return [Array<Google::Apis::AppengineV1beta5::Operation>]
attr_accessor :operations
# The standard List next-page token.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@operations = args[:operations] if args.key?(:operations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# An Application resource contains the top-level configuration of an App Engine
# application.
class Application
@ -1519,6 +1519,12 @@ module Google
attr_accessor :vm_unlocked
alias_method :vm_unlocked?, :vm_unlocked
# The IP address of this instance. Only applicable for instances in App Engine
# flexible environment. @OutputOnly
# Corresponds to the JSON property `vmIp`
# @return [String]
attr_accessor :vm_ip
def initialize(**args)
update!(**args)
end
@ -1540,6 +1546,7 @@ module Google
@memory_usage = args[:memory_usage] if args.key?(:memory_usage)
@vm_status = args[:vm_status] if args.key?(:vm_status)
@vm_unlocked = args[:vm_unlocked] if args.key?(:vm_unlocked)
@vm_ip = args[:vm_ip] if args.key?(:vm_ip)
end
end
@ -1572,12 +1579,21 @@ module Google
class DebugInstanceRequest
include Google::Apis::Core::Hashable
# Public SSH key to add to the instance. Example: `[USERNAME]:ssh-rsa KEY_VALUE`
# or `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh `"userName":"[USERNAME]","
# expireOn":"[EXPIRE_TIME]"`` For more information, see [Adding and Removing SSH
# Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys)
# Corresponds to the JSON property `sshKey`
# @return [String]
attr_accessor :ssh_key
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ssh_key = args[:ssh_key] if args.key?(:ssh_key)
end
end
@ -1646,6 +1662,51 @@ module Google
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadataExperimental
include Google::Apis::Core::Hashable
# API method that initiated this operation. Example: `google.appengine.
# experimental.CustomDomains.CreateCustomDomain`. @OutputOnly
# Corresponds to the JSON property `method`
# @return [String]
attr_accessor :method_prop
# Time that this operation was created. @OutputOnly
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
# Time that this operation completed. @OutputOnly
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# User who requested this operation. @OutputOnly
# Corresponds to the JSON property `user`
# @return [String]
attr_accessor :user
# Name of the resource that this operation is acting on. Example: `apps/myapp/
# customDomains/example.com`. @OutputOnly
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@insert_time = args[:insert_time] if args.key?(:insert_time)
@end_time = args[:end_time] if args.key?(:end_time)
@user = args[:user] if args.key?(:user)
@target = args[:target] if args.key?(:target)
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadata
include Google::Apis::Core::Hashable

View File

@ -22,6 +22,12 @@ module Google
module Apis
module AppengineV1beta5
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -34,12 +40,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Application
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -238,6 +238,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadataExperimental
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -262,6 +268,15 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::AppengineV1beta5::Operation, decorator: Google::Apis::AppengineV1beta5::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -283,15 +298,6 @@ module Google
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::AppengineV1beta5::Operation, decorator: Google::Apis::AppengineV1beta5::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Application
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -627,6 +633,7 @@ module Google
property :memory_usage, as: 'memoryUsage'
property :vm_status, as: 'vmStatus'
property :vm_unlocked, as: 'vmUnlocked'
property :vm_ip, as: 'vmIp'
end
end
@ -642,6 +649,7 @@ module Google
class DebugInstanceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ssh_key, as: 'sshKey'
end
end
@ -664,6 +672,17 @@ module Google
end
end
class OperationMetadataExperimental
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :method_prop, as: 'method'
property :insert_time, as: 'insertTime'
property :end_time, as: 'endTime'
property :user, as: 'user'
property :target, as: 'target'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -118,7 +118,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates application parameters.
# Updates application fields.
# @param [String] apps_id
# Part of `name`. Name of the application to update. Example: `apps/myapp`.
# @param [Google::Apis::AppengineV1beta5::Application] application_object
@ -154,40 +154,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] apps_id
# Part of `name`. The name of the operation resource.
# @param [String] operations_id
# Part of `name`. See documentation of `appsId`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/operations/{operationsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['operationsId'] = operations_id unless operations_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists 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
@ -230,6 +196,40 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] apps_id
# Part of `name`. The name of the operation resource.
# @param [String] operations_id
# Part of `name`. See documentation of `appsId`.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_app_operation(apps_id, operations_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/operations/{operationsId}', options)
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['operationsId'] = operations_id unless operations_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified service and all enclosed versions.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. Example: `apps/myapp/services/

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/activity/
module AppsactivityV1
VERSION = 'V1'
REVISION = '20161013'
REVISION = '20161101'
# View the activity history of your Google Apps
AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity'

View File

@ -374,6 +374,12 @@ module Google
attr_accessor :is_deleted
alias_method :is_deleted?, :is_deleted
# Whether the user is the authenticated user.
# Corresponds to the JSON property `isMe`
# @return [Boolean]
attr_accessor :is_me
alias_method :is_me?, :is_me
# The displayable name of the user.
# Corresponds to the JSON property `name`
# @return [String]
@ -398,6 +404,7 @@ module Google
# Update properties of this object
def update!(**args)
@is_deleted = args[:is_deleted] if args.key?(:is_deleted)
@is_me = args[:is_me] if args.key?(:is_me)
@name = args[:name] if args.key?(:name)
@permission_id = args[:permission_id] if args.key?(:permission_id)
@photo = args[:photo] if args.key?(:photo)

View File

@ -197,6 +197,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :is_deleted, as: 'isDeleted'
property :is_me, as: 'isMe'
property :name, as: 'name'
property :permission_id, as: 'permissionId'
property :photo, as: 'photo', class: Google::Apis::AppsactivityV1::Photo, decorator: Google::Apis::AppsactivityV1::Photo::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/web/api/states
module AppstateV1
VERSION = 'V1'
REVISION = '20160908'
REVISION = '20161103'
# View and manage your data for this application
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20161006'
REVISION = '20161029'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -1061,6 +1061,16 @@ module Google
# @return [Google::Apis::BigqueryV2::JobConfigurationExtract]
attr_accessor :extract
# [Experimental] The labels associated with this job. You can use these to
# organize and group your jobs. Label keys and values can be no longer than 63
# characters, can only contain letters, numeric characters, underscores and
# dashes. International characters are allowed. Label values are optional. Label
# keys must start with a letter and must be unique within a dataset. Both keys
# and values are additionally constrained to be <= 128 bytes in size.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# [Pick one] Configures a load job.
# Corresponds to the JSON property `load`
# @return [Google::Apis::BigqueryV2::JobConfigurationLoad]
@ -1080,6 +1090,7 @@ module Google
@copy = args[:copy] if args.key?(:copy)
@dry_run = args[:dry_run] if args.key?(:dry_run)
@extract = args[:extract] if args.key?(:extract)
@labels = args[:labels] if args.key?(:labels)
@load = args[:load] if args.key?(:load)
@query = args[:query] if args.key?(:query)
end
@ -1418,12 +1429,12 @@ module Google
# @return [String]
attr_accessor :query
# [Experimental] Query parameters for Standard SQL queries.
# Query parameters for standard SQL queries.
# Corresponds to the JSON property `queryParameters`
# @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
attr_accessor :query_parameters
# [Experimental] Allows the schema of the desitination table to be updated as a
# [Experimental] Allows the schema of the destination table to be updated as a
# side effect of the query job. Schema update options are supported in two cases:
# when writeDisposition is WRITE_APPEND; when writeDisposition is
# WRITE_TRUNCATE and the destination table is a partition of a table, specified
@ -1444,12 +1455,11 @@ module Google
# @return [Hash<String,Google::Apis::BigqueryV2::ExternalDataConfiguration>]
attr_accessor :table_definitions
# [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
# query. The default value is true. If set to false, the query will use BigQuery'
# s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
# useLegacySql is set to false, the values of allowLargeResults and
# flattenResults are ignored; query will be run as if allowLargeResults is true
# and flattenResults is false.
# Specifies whether to use BigQuery's legacy SQL dialect for this query. The
# default value is true. If set to false, the query will use BigQuery's standard
# SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
# to false, the values of allowLargeResults and flattenResults are ignored;
# query will be run as if allowLargeResults is true and flattenResults is false.
# Corresponds to the JSON property `useLegacySql`
# @return [Boolean]
attr_accessor :use_legacy_sql
@ -2221,12 +2231,11 @@ module Google
# @return [Fixnum]
attr_accessor :timeout_ms
# [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
# query. The default value is true. If set to false, the query will use BigQuery'
# s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
# useLegacySql is set to false, the values of allowLargeResults and
# flattenResults are ignored; query will be run as if allowLargeResults is true
# and flattenResults is false.
# Specifies whether to use BigQuery's legacy SQL dialect for this query. The
# default value is true. If set to false, the query will use BigQuery's standard
# SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set
# to false, the values of allowLargeResults and flattenResults are ignored;
# query will be run as if allowLargeResults is true and flattenResults is false.
# Corresponds to the JSON property `useLegacySql`
# @return [Boolean]
attr_accessor :use_legacy_sql
@ -2998,10 +3007,10 @@ module Google
# @return [String]
attr_accessor :query
# [Experimental] Specifies whether to use BigQuery's legacy SQL for this view.
# The default value is true. If set to false, the view will use BigQuery's
# standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and
# views that reference this view must use the same flag value.
# Specifies whether to use BigQuery's legacy SQL for this view. The default
# value is true. If set to false, the view will use BigQuery's standard SQL:
# https://cloud.google.com/bigquery/sql-reference/ Queries and views that
# reference this view must use the same flag value.
# Corresponds to the JSON property `useLegacySql`
# @return [Boolean]
attr_accessor :use_legacy_sql

View File

@ -592,6 +592,7 @@ module Google
property :dry_run, as: 'dryRun'
property :extract, as: 'extract', class: Google::Apis::BigqueryV2::JobConfigurationExtract, decorator: Google::Apis::BigqueryV2::JobConfigurationExtract::Representation
hash :labels, as: 'labels'
property :load, as: 'load', class: Google::Apis::BigqueryV2::JobConfigurationLoad, decorator: Google::Apis::BigqueryV2::JobConfigurationLoad::Representation
property :query, as: 'query', class: Google::Apis::BigqueryV2::JobConfigurationQuery, decorator: Google::Apis::BigqueryV2::JobConfigurationQuery::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20161016'
REVISION = '20161101'
# Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/civic-information
module CivicinfoV2
VERSION = 'V2'
REVISION = '20161017'
REVISION = '20161102'
end
end
end

View File

@ -965,6 +965,206 @@ module Google
end
end
#
class PostalAddress
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `addressLines`
# @return [Array<String>]
attr_accessor :address_lines
#
# Corresponds to the JSON property `administrativeAreaName`
# @return [String]
attr_accessor :administrative_area_name
#
# Corresponds to the JSON property `countryName`
# @return [String]
attr_accessor :country_name
#
# Corresponds to the JSON property `countryNameCode`
# @return [String]
attr_accessor :country_name_code
#
# Corresponds to the JSON property `dependentLocalityName`
# @return [String]
attr_accessor :dependent_locality_name
#
# Corresponds to the JSON property `dependentThoroughfareLeadingType`
# @return [String]
attr_accessor :dependent_thoroughfare_leading_type
#
# Corresponds to the JSON property `dependentThoroughfareName`
# @return [String]
attr_accessor :dependent_thoroughfare_name
#
# Corresponds to the JSON property `dependentThoroughfarePostDirection`
# @return [String]
attr_accessor :dependent_thoroughfare_post_direction
#
# Corresponds to the JSON property `dependentThoroughfarePreDirection`
# @return [String]
attr_accessor :dependent_thoroughfare_pre_direction
#
# Corresponds to the JSON property `dependentThoroughfareTrailingType`
# @return [String]
attr_accessor :dependent_thoroughfare_trailing_type
#
# Corresponds to the JSON property `dependentThoroughfaresConnector`
# @return [String]
attr_accessor :dependent_thoroughfares_connector
#
# Corresponds to the JSON property `dependentThoroughfaresIndicator`
# @return [String]
attr_accessor :dependent_thoroughfares_indicator
#
# Corresponds to the JSON property `dependentThoroughfaresType`
# @return [String]
attr_accessor :dependent_thoroughfares_type
#
# Corresponds to the JSON property `firmName`
# @return [String]
attr_accessor :firm_name
#
# Corresponds to the JSON property `isDisputed`
# @return [Boolean]
attr_accessor :is_disputed
alias_method :is_disputed?, :is_disputed
#
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
#
# Corresponds to the JSON property `localityName`
# @return [String]
attr_accessor :locality_name
#
# Corresponds to the JSON property `postBoxNumber`
# @return [String]
attr_accessor :post_box_number
#
# Corresponds to the JSON property `postalCodeNumber`
# @return [String]
attr_accessor :postal_code_number
#
# Corresponds to the JSON property `postalCodeNumberExtension`
# @return [String]
attr_accessor :postal_code_number_extension
#
# Corresponds to the JSON property `premiseName`
# @return [String]
attr_accessor :premise_name
#
# Corresponds to the JSON property `recipientName`
# @return [String]
attr_accessor :recipient_name
#
# Corresponds to the JSON property `sortingCode`
# @return [String]
attr_accessor :sorting_code
#
# Corresponds to the JSON property `subAdministrativeAreaName`
# @return [String]
attr_accessor :sub_administrative_area_name
#
# Corresponds to the JSON property `subPremiseName`
# @return [String]
attr_accessor :sub_premise_name
#
# Corresponds to the JSON property `thoroughfareLeadingType`
# @return [String]
attr_accessor :thoroughfare_leading_type
#
# Corresponds to the JSON property `thoroughfareName`
# @return [String]
attr_accessor :thoroughfare_name
#
# Corresponds to the JSON property `thoroughfareNumber`
# @return [String]
attr_accessor :thoroughfare_number
#
# Corresponds to the JSON property `thoroughfarePostDirection`
# @return [String]
attr_accessor :thoroughfare_post_direction
#
# Corresponds to the JSON property `thoroughfarePreDirection`
# @return [String]
attr_accessor :thoroughfare_pre_direction
#
# Corresponds to the JSON property `thoroughfareTrailingType`
# @return [String]
attr_accessor :thoroughfare_trailing_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@address_lines = args[:address_lines] if args.key?(:address_lines)
@administrative_area_name = args[:administrative_area_name] if args.key?(:administrative_area_name)
@country_name = args[:country_name] if args.key?(:country_name)
@country_name_code = args[:country_name_code] if args.key?(:country_name_code)
@dependent_locality_name = args[:dependent_locality_name] if args.key?(:dependent_locality_name)
@dependent_thoroughfare_leading_type = args[:dependent_thoroughfare_leading_type] if args.key?(:dependent_thoroughfare_leading_type)
@dependent_thoroughfare_name = args[:dependent_thoroughfare_name] if args.key?(:dependent_thoroughfare_name)
@dependent_thoroughfare_post_direction = args[:dependent_thoroughfare_post_direction] if args.key?(:dependent_thoroughfare_post_direction)
@dependent_thoroughfare_pre_direction = args[:dependent_thoroughfare_pre_direction] if args.key?(:dependent_thoroughfare_pre_direction)
@dependent_thoroughfare_trailing_type = args[:dependent_thoroughfare_trailing_type] if args.key?(:dependent_thoroughfare_trailing_type)
@dependent_thoroughfares_connector = args[:dependent_thoroughfares_connector] if args.key?(:dependent_thoroughfares_connector)
@dependent_thoroughfares_indicator = args[:dependent_thoroughfares_indicator] if args.key?(:dependent_thoroughfares_indicator)
@dependent_thoroughfares_type = args[:dependent_thoroughfares_type] if args.key?(:dependent_thoroughfares_type)
@firm_name = args[:firm_name] if args.key?(:firm_name)
@is_disputed = args[:is_disputed] if args.key?(:is_disputed)
@language_code = args[:language_code] if args.key?(:language_code)
@locality_name = args[:locality_name] if args.key?(:locality_name)
@post_box_number = args[:post_box_number] if args.key?(:post_box_number)
@postal_code_number = args[:postal_code_number] if args.key?(:postal_code_number)
@postal_code_number_extension = args[:postal_code_number_extension] if args.key?(:postal_code_number_extension)
@premise_name = args[:premise_name] if args.key?(:premise_name)
@recipient_name = args[:recipient_name] if args.key?(:recipient_name)
@sorting_code = args[:sorting_code] if args.key?(:sorting_code)
@sub_administrative_area_name = args[:sub_administrative_area_name] if args.key?(:sub_administrative_area_name)
@sub_premise_name = args[:sub_premise_name] if args.key?(:sub_premise_name)
@thoroughfare_leading_type = args[:thoroughfare_leading_type] if args.key?(:thoroughfare_leading_type)
@thoroughfare_name = args[:thoroughfare_name] if args.key?(:thoroughfare_name)
@thoroughfare_number = args[:thoroughfare_number] if args.key?(:thoroughfare_number)
@thoroughfare_post_direction = args[:thoroughfare_post_direction] if args.key?(:thoroughfare_post_direction)
@thoroughfare_pre_direction = args[:thoroughfare_pre_direction] if args.key?(:thoroughfare_pre_direction)
@thoroughfare_trailing_type = args[:thoroughfare_trailing_type] if args.key?(:thoroughfare_trailing_type)
end
end
#
class RepresentativeInfoData
include Google::Apis::Core::Hashable
@ -1154,6 +1354,11 @@ module Google
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
#
# Corresponds to the JSON property `voterInfoSegmentResult`
# @return [Google::Apis::CivicinfoV2::VoterInfoSegmentResult]
attr_accessor :voter_info_segment_result
def initialize(**args)
update!(**args)
end
@ -1161,6 +1366,7 @@ module Google
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
@voter_info_segment_result = args[:voter_info_segment_result] if args.key?(:voter_info_segment_result)
end
end
@ -1251,6 +1457,43 @@ module Google
@state = args[:state] if args.key?(:state)
end
end
#
class VoterInfoSegmentResult
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `generatedMillis`
# @return [String]
attr_accessor :generated_millis
#
# Corresponds to the JSON property `postalAddress`
# @return [Google::Apis::CivicinfoV2::PostalAddress]
attr_accessor :postal_address
# A request for information about a voter.
# Corresponds to the JSON property `request`
# @return [Google::Apis::CivicinfoV2::VoterInfoRequest]
attr_accessor :request
# The result of a voter info lookup query.
# Corresponds to the JSON property `response`
# @return [Google::Apis::CivicinfoV2::VoterInfoResponse]
attr_accessor :response
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@generated_millis = args[:generated_millis] if args.key?(:generated_millis)
@postal_address = args[:postal_address] if args.key?(:postal_address)
@request = args[:request] if args.key?(:request)
@response = args[:response] if args.key?(:response)
end
end
end
end
end

View File

@ -136,6 +136,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PostalAddress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RepresentativeInfoData
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -178,6 +184,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VoterInfoSegmentResult
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AdministrationRegion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -415,6 +427,43 @@ module Google
end
end
class PostalAddress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :address_lines, as: 'addressLines'
property :administrative_area_name, as: 'administrativeAreaName'
property :country_name, as: 'countryName'
property :country_name_code, as: 'countryNameCode'
property :dependent_locality_name, as: 'dependentLocalityName'
property :dependent_thoroughfare_leading_type, as: 'dependentThoroughfareLeadingType'
property :dependent_thoroughfare_name, as: 'dependentThoroughfareName'
property :dependent_thoroughfare_post_direction, as: 'dependentThoroughfarePostDirection'
property :dependent_thoroughfare_pre_direction, as: 'dependentThoroughfarePreDirection'
property :dependent_thoroughfare_trailing_type, as: 'dependentThoroughfareTrailingType'
property :dependent_thoroughfares_connector, as: 'dependentThoroughfaresConnector'
property :dependent_thoroughfares_indicator, as: 'dependentThoroughfaresIndicator'
property :dependent_thoroughfares_type, as: 'dependentThoroughfaresType'
property :firm_name, as: 'firmName'
property :is_disputed, as: 'isDisputed'
property :language_code, as: 'languageCode'
property :locality_name, as: 'localityName'
property :post_box_number, as: 'postBoxNumber'
property :postal_code_number, as: 'postalCodeNumber'
property :postal_code_number_extension, as: 'postalCodeNumberExtension'
property :premise_name, as: 'premiseName'
property :recipient_name, as: 'recipientName'
property :sorting_code, as: 'sortingCode'
property :sub_administrative_area_name, as: 'subAdministrativeAreaName'
property :sub_premise_name, as: 'subPremiseName'
property :thoroughfare_leading_type, as: 'thoroughfareLeadingType'
property :thoroughfare_name, as: 'thoroughfareName'
property :thoroughfare_number, as: 'thoroughfareNumber'
property :thoroughfare_post_direction, as: 'thoroughfarePostDirection'
property :thoroughfare_pre_direction, as: 'thoroughfarePreDirection'
property :thoroughfare_trailing_type, as: 'thoroughfareTrailingType'
end
end
class RepresentativeInfoData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -476,6 +525,8 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
property :voter_info_segment_result, as: 'voterInfoSegmentResult', class: Google::Apis::CivicinfoV2::VoterInfoSegmentResult, decorator: Google::Apis::CivicinfoV2::VoterInfoSegmentResult::Representation
end
end
@ -503,6 +554,19 @@ module Google
end
end
class VoterInfoSegmentResult
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :generated_millis, as: 'generatedMillis'
property :postal_address, as: 'postalAddress', class: Google::Apis::CivicinfoV2::PostalAddress, decorator: Google::Apis::CivicinfoV2::PostalAddress::Representation
property :request, as: 'request', class: Google::Apis::CivicinfoV2::VoterInfoRequest, decorator: Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
property :response, as: 'response', class: Google::Apis::CivicinfoV2::VoterInfoResponse, decorator: Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
end
end
end
end
end

View File

@ -43,7 +43,7 @@ module Google
attr_accessor :quota_user
def initialize
super('https://prod-day0-classroom.sandbox.googleapis.com/', '')
super('https://classroom.googleapis.com/', '')
end
# Creates a course. The user specified in `ownerId` is the owner of the created

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/container-builder/docs/
module CloudbuildV1
VERSION = 'V1'
REVISION = '20161020'
REVISION = '20161108'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -582,6 +582,13 @@ module Google
# @return [String]
attr_accessor :start_time
# The ID of the BuildTrigger that triggered this build, if it was
# triggered automatically.
# @OutputOnly
# Corresponds to the JSON property `buildTriggerId`
# @return [String]
attr_accessor :build_trigger_id
# Google Cloud Storage bucket where logs should be written (see
# [Bucket Name
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
@ -617,6 +624,7 @@ module Google
@status_detail = args[:status_detail] if args.key?(:status_detail)
@images = args[:images] if args.key?(:images)
@start_time = args[:start_time] if args.key?(:start_time)
@build_trigger_id = args[:build_trigger_id] if args.key?(:build_trigger_id)
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
@project_id = args[:project_id] if args.key?(:project_id)
end

View File

@ -264,6 +264,7 @@ module Google
property :status_detail, as: 'statusDetail'
collection :images, as: 'images'
property :start_time, as: 'startTime'
property :build_trigger_id, as: 'buildTriggerId'
property :logs_bucket, as: 'logsBucket'
property :project_id, as: 'projectId'
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/monitoring/v2beta2/
module CloudmonitoringV2beta2
VERSION = 'V2beta2'
REVISION = '20160718'
REVISION = '20161031'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeBeta
VERSION = 'Beta'
REVISION = '20161012'
REVISION = '20161019'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -415,8 +415,12 @@ module Google
attr_accessor :mode
# Specifies a valid partial or full URL to an existing Persistent Disk resource.
# This field is only applicable for persistent disks. Note that for
# InstanceTemplate, it is just disk name, not URL for the disk.
# When creating a new instance, one of initializeParams.sourceImage or disks.
# source is required.
# If desired, you can also attach existing non-root persistent disks using this
# property. This field is only applicable for persistent disks.
# Note that for InstanceTemplate, specify the disk name, not the URL for the
# disk.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
@ -488,8 +492,8 @@ module Google
# @return [String]
attr_accessor :disk_type
# The source image used to create this disk. If the source image is deleted,
# this field will not be set.
# The source image to create this disk. When creating a new instance, one of
# initializeParams.sourceImage or disks.source is required.
# To create a disk with one of the public operating system images, specify the
# image by its family name. For example, specify family/debian-8 to use the
# latest Debian 8 image:
@ -503,6 +507,7 @@ module Google
# latest version of the image in that family. Replace the image name with family/
# family-name:
# global/images/family/my-private-family
# If the source image is deleted later, this field will not be set.
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
@ -527,6 +532,35 @@ module Google
end
end
# Enables "data access" audit logging for a service and specifies a list of
# members that are log-exempted.
class AuditConfig
include Google::Apis::Core::Hashable
# Specifies the identities that are exempted from "data access" audit logging
# for the `service` specified above. Follows the same format of Binding.members.
# Corresponds to the JSON property `exemptedMembers`
# @return [Array<String>]
attr_accessor :exempted_members
# Specifies a service that will be enabled for "data access" audit logging. For
# example, `resourcemanager`, `storage`, `compute`. `allServices` is a special
# value that covers all services.
# Corresponds to the JSON property `service`
# @return [String]
attr_accessor :service
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
@service = args[:service] if args.key?(:service)
end
end
# Represents an Autoscaler resource. Autoscalers allow you to automatically
# scale virtual machine instances in managed instance groups according to an
# autoscaling policy that you define. For more information, read Autoscaling
@ -1092,6 +1126,117 @@ module Google
end
end
# A BackendBucket resource. This resource defines a Cloud Storage bucket.
class BackendBucket
include Google::Apis::Core::Hashable
# Cloud Storage bucket name.
# Corresponds to the JSON property `bucketName`
# @return [String]
attr_accessor :bucket_name
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional textual description of the resource; provided by the client when
# the resource is created.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If true, enable Cloud CDN for this BackendBucket.
# Corresponds to the JSON property `enableCdn`
# @return [Boolean]
attr_accessor :enable_cdn
alias_method :enable_cdn?, :enable_cdn
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Type of the resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bucket_name = args[:bucket_name] if args.key?(:bucket_name)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@enable_cdn = args[:enable_cdn] if args.key?(:enable_cdn)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# Contains a list of BackendBucket resources.
class BackendBucketList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of BackendBucket resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::BackendBucket>]
attr_accessor :items
# Type of resource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] A token used to continue a truncated list request.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# A BackendService resource. This resource defines a group of backend virtual
# machines and their serving capacity.
class BackendService
@ -1459,10 +1604,55 @@ module Google
end
end
# Associates `members` with a `role`.
class Binding
include Google::Apis::Core::Hashable
# Specifies the identities requesting access for a Cloud Platform resource. `
# members` can have the following values:
# * `allUsers`: A special identifier that represents anyone who is on the
# internet; with or without a Google account.
# * `allAuthenticatedUsers`: A special identifier that represents anyone who is
# authenticated with a Google account or a service account.
# * `user:`emailid``: An email address that represents a specific Google account.
# For example, `alice@gmail.com` or `joe@example.com`.
# * `serviceAccount:`emailid``: An email address that represents a service
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
# * `group:`emailid``: An email address that represents a Google group. For
# example, `admins@example.com`.
# * `domain:`domain``: A Google Apps domain name that represents all the users
# of that domain. For example, `google.com` or `example.com`.
# Corresponds to the JSON property `members`
# @return [Array<String>]
attr_accessor :members
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
# , or `roles/owner`.
# Corresponds to the JSON property `role`
# @return [String]
attr_accessor :role
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@members = args[:members] if args.key?(:members)
@role = args[:role] if args.key?(:role)
end
end
#
class CacheInvalidationRule
include Google::Apis::Core::Hashable
# If set, this invalidation rule will only apply to requests with a Host header
# matching host.
# Corresponds to the JSON property `host`
# @return [String]
attr_accessor :host
#
# Corresponds to the JSON property `path`
# @return [String]
@ -1474,10 +1664,61 @@ module Google
# Update properties of this object
def update!(**args)
@host = args[:host] if args.key?(:host)
@path = args[:path] if args.key?(:path)
end
end
# A condition to be met.
class Condition
include Google::Apis::Core::Hashable
# Trusted attributes supplied by the IAM system.
# Corresponds to the JSON property `iam`
# @return [String]
attr_accessor :iam
# An operator to apply the subject with.
# Corresponds to the JSON property `op`
# @return [String]
attr_accessor :op
# Trusted attributes discharged by the service.
# Corresponds to the JSON property `svc`
# @return [String]
attr_accessor :svc
# Trusted attributes supplied by any service that owns resources and uses the
# IAM system for access control.
# Corresponds to the JSON property `sys`
# @return [String]
attr_accessor :sys
# DEPRECATED. Use 'values' instead.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
# The objects of the condition. This is mutually exclusive with 'value'.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@iam = args[:iam] if args.key?(:iam)
@op = args[:op] if args.key?(:op)
@svc = args[:svc] if args.key?(:svc)
@sys = args[:sys] if args.key?(:sys)
@value = args[:value] if args.key?(:value)
@values = args[:values] if args.key?(:values)
end
end
# Message containing connection draining configuration.
class ConnectionDraining
include Google::Apis::Core::Hashable
@ -1568,20 +1809,23 @@ module Google
class DeprecationStatus
include Google::Apis::Core::Hashable
# An optional RFC3339 timestamp on or after which the deprecation state of this
# resource will be changed to DELETED.
# An optional RFC3339 timestamp on or after which the state of this resource is
# intended to change to DELETED. This is only informational and the status will
# not change unless the client explicitly changes it.
# Corresponds to the JSON property `deleted`
# @return [String]
attr_accessor :deleted
# An optional RFC3339 timestamp on or after which the deprecation state of this
# resource will be changed to DEPRECATED.
# An optional RFC3339 timestamp on or after which the state of this resource is
# intended to change to DEPRECATED. This is only informational and the status
# will not change unless the client explicitly changes it.
# Corresponds to the JSON property `deprecated`
# @return [String]
attr_accessor :deprecated
# An optional RFC3339 timestamp on or after which the deprecation state of this
# resource will be changed to OBSOLETE.
# An optional RFC3339 timestamp on or after which the state of this resource is
# intended to change to OBSOLETE. This is only informational and the status will
# not change unless the client explicitly changes it.
# Corresponds to the JSON property `obsolete`
# @return [String]
attr_accessor :obsolete
@ -5723,6 +5967,50 @@ module Google
end
end
# Specifies what kind of log the caller must write
class LogConfig
include Google::Apis::Core::Hashable
# Options for counters
# Corresponds to the JSON property `counter`
# @return [Google::Apis::ComputeBeta::LogConfigCounterOptions]
attr_accessor :counter
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@counter = args[:counter] if args.key?(:counter)
end
end
# Options for counters
class LogConfigCounterOptions
include Google::Apis::Core::Hashable
# The field value to attribute.
# Corresponds to the JSON property `field`
# @return [String]
attr_accessor :field
# The metric to update.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@field = args[:field] if args.key?(:field)
@metric = args[:metric] if args.key?(:metric)
end
end
# A Machine Type resource.
class MachineType
include Google::Apis::Core::Hashable
@ -6559,9 +6847,9 @@ module Google
# @return [String]
attr_accessor :target_id
# [Output Only] The URL of the resource that the operation modifies. If creating
# a persistent disk snapshot, this points to the persistent disk that the
# snapshot was created from.
# [Output Only] The URL of the resource that the operation modifies. For
# operations related to creating a snapshot, this points to the persistent disk
# that the snapshot was created from.
# Corresponds to the JSON property `targetLink`
# @return [String]
attr_accessor :target_link
@ -6996,6 +7284,88 @@ module Google
end
end
# Defines an Identity and Access Management (IAM) policy. It is used to specify
# access control policies for Cloud Platform resources.
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of `
# members` to a `role`, where the members can be user accounts, Google groups,
# Google domains, and service accounts. A `role` is a named list of permissions
# defined by IAM.
# **Example**
# ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com",
# "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] `
# For a description of IAM and its features, see the [IAM developer's guide](
# https://cloud.google.com/iam).
class Policy
include Google::Apis::Core::Hashable
# Specifies audit logging configs for "data access". "data access": generally
# refers to data reads/writes and admin reads. "admin activity": generally
# refers to admin writes.
# Note: `AuditConfig` doesn't apply to "admin activity", which always enables
# audit logging.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::ComputeBeta::AuditConfig>]
attr_accessor :audit_configs
# Associates a list of `members` to a `role`. Multiple `bindings` must not be
# specified for the same `role`. `bindings` with no members will result in an
# error.
# Corresponds to the JSON property `bindings`
# @return [Array<Google::Apis::ComputeBeta::Binding>]
attr_accessor :bindings
# `etag` is used for optimistic concurrency control as a way to help prevent
# simultaneous updates of a policy from overwriting each other. It is strongly
# suggested that systems make use of the `etag` in the read-modify-write cycle
# to perform policy updates in order to avoid race conditions: An `etag` is
# returned in the response to `getIamPolicy`, and systems are expected to put
# that etag in the request to `setIamPolicy` to ensure that their change will be
# applied to the same version of the policy.
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
# policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
#
# Corresponds to the JSON property `iamOwned`
# @return [Boolean]
attr_accessor :iam_owned
alias_method :iam_owned?, :iam_owned
# If more than one rule is specified, the rules are applied in the following
# manner: - All matching LOG rules are always applied. - If any DENY/
# DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if
# one or more matching rule requires logging. - Otherwise, if any ALLOW/
# ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if
# one or more matching rule requires logging. - Otherwise, if no rule applies,
# permission is denied.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ComputeBeta::Rule>]
attr_accessor :rules
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
@bindings = args[:bindings] if args.key?(:bindings)
@etag = args[:etag] if args.key?(:etag)
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
@rules = args[:rules] if args.key?(:rules)
@version = args[:version] if args.key?(:version)
end
end
# A Project resource. Projects can only be created in the Google Cloud Platform
# Console. Unless marked otherwise, values can only be modified in the console.
class Project
@ -8430,6 +8800,66 @@ module Google
end
end
# A rule to be applied in a Policy.
class Rule
include Google::Apis::Core::Hashable
# Required
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# Additional restrictions that must be met
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::ComputeBeta::Condition>]
attr_accessor :conditions
# Human-readable description of the rule.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/
# AUTHORITY_SELECTOR is in at least one of these entries.
# Corresponds to the JSON property `ins`
# @return [Array<String>]
attr_accessor :ins
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
# that match the LOG action.
# Corresponds to the JSON property `logConfigs`
# @return [Array<Google::Apis::ComputeBeta::LogConfig>]
attr_accessor :log_configs
# If one or more 'not_in' clauses are specified, the rule matches if the
# PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
# Corresponds to the JSON property `notIns`
# @return [Array<String>]
attr_accessor :not_ins
# A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value
# of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.
# *') matches all verbs.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@conditions = args[:conditions] if args.key?(:conditions)
@description = args[:description] if args.key?(:description)
@ins = args[:ins] if args.key?(:ins)
@log_configs = args[:log_configs] if args.key?(:log_configs)
@not_ins = args[:not_ins] if args.key?(:not_ins)
@permissions = args[:permissions] if args.key?(:permissions)
end
end
#
class SslHealthCheck
include Google::Apis::Core::Hashable

View File

@ -76,6 +76,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AuditConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Autoscaler
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -148,6 +154,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BackendBucket
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendBucketList
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BackendService
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -190,12 +208,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CacheInvalidationRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConnectionDraining
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -718,6 +748,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class LogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LogConfigCounterOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class MachineType
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -886,6 +928,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Policy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Project
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1096,6 +1144,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SslHealthCheck
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1633,6 +1687,14 @@ module Google
end
end
class AuditConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :exempted_members, as: 'exemptedMembers'
property :service, as: 'service'
end
end
class Autoscaler
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1766,6 +1828,32 @@ module Google
end
end
class BackendBucket
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bucket_name, as: 'bucketName'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :enable_cdn, as: 'enableCdn'
property :id, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :self_link, as: 'selfLink'
end
end
class BackendBucketList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeBeta::BackendBucket, decorator: Google::Apis::ComputeBeta::BackendBucket::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
end
end
class BackendService
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1854,13 +1942,34 @@ module Google
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :members, as: 'members'
property :role, as: 'role'
end
end
class CacheInvalidationRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :host, as: 'host'
property :path, as: 'path'
end
end
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :iam, as: 'iam'
property :op, as: 'op'
property :svc, as: 'svc'
property :sys, as: 'sys'
property :value, as: 'value'
collection :values, as: 'values'
end
end
class ConnectionDraining
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2874,6 +2983,22 @@ module Google
end
end
class LogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :counter, as: 'counter', class: Google::Apis::ComputeBeta::LogConfigCounterOptions, decorator: Google::Apis::ComputeBeta::LogConfigCounterOptions::Representation
end
end
class LogConfigCounterOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :field, as: 'field'
property :metric, as: 'metric'
end
end
class MachineType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3186,6 +3311,21 @@ module Google
end
end
class Policy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ComputeBeta::AuditConfig, decorator: Google::Apis::ComputeBeta::AuditConfig::Representation
collection :bindings, as: 'bindings', class: Google::Apis::ComputeBeta::Binding, decorator: Google::Apis::ComputeBeta::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :iam_owned, as: 'iamOwned'
collection :rules, as: 'rules', class: Google::Apis::ComputeBeta::Rule, decorator: Google::Apis::ComputeBeta::Rule::Representation
property :version, as: 'version'
end
end
class Project
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3568,6 +3708,21 @@ module Google
end
end
class Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
collection :conditions, as: 'conditions', class: Google::Apis::ComputeBeta::Condition, decorator: Google::Apis::ComputeBeta::Condition::Representation
property :description, as: 'description'
collection :ins, as: 'ins'
collection :log_configs, as: 'logConfigs', class: Google::Apis::ComputeBeta::LogConfig, decorator: Google::Apis::ComputeBeta::LogConfig::Representation
collection :not_ins, as: 'notIns'
collection :permissions, as: 'permissions'
end
end
class SslHealthCheck
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -793,6 +793,284 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified BackendBucket resource.
# @param [String] project
# Project ID for this request.
# @param [String] backend_bucket
# Name of the BackendBucket resource 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.
# 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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_backend_bucket(project, backend_bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/global/backendBuckets/{backendBucket}', options)
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['backendBucket'] = backend_bucket unless backend_bucket.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified BackendBucket resource. Get a list of available backend
# buckets by making a list() request.
# @param [String] project
# Project ID for this request.
# @param [String] backend_bucket
# Name of the BackendBucket resource to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::ComputeBeta::BackendBucket] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::BackendBucket]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_backend_bucket(project, backend_bucket, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/backendBuckets/{backendBucket}', options)
command.response_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
command.response_class = Google::Apis::ComputeBeta::BackendBucket
command.params['project'] = project unless project.nil?
command.params['backendBucket'] = backend_bucket unless backend_bucket.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
# Creates a BackendBucket resource in the specified project using the data
# included in the request.
# @param [String] project
# Project ID for this request.
# @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::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 insert_backend_bucket(project, backend_bucket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/backendBuckets', options)
command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
command.request_object = backend_bucket_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.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
# Retrieves the list of BackendBucket resources available to the specified
# project.
# @param [String] project
# Project ID for this request.
# @param [String] filter
# Sets a filter expression for filtering listed resources, in the form filter=`
# expression`. Your `expression` must be in the format: field_name
# comparison_string literal_string.
# The field_name is the name of the field you want to compare. Only atomic field
# types are supported (string, number, boolean). The comparison_string must be
# either eq (equals) or ne (not equals). The literal_string is the string value
# to filter to. The literal value must be valid for the type of field you are
# filtering by (string, number, boolean). For string fields, the literal value
# is interpreted as a regular expression using RE2 syntax. The literal value
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# You can filter on nested fields. For example, you could filter on instances
# that have set the scheduling.automaticRestart field to true. Use filtering on
# nested fields to take advantage of labels to organize and search for results
# based on label values.
# To filter on multiple expressions, provide each separate expression within
# parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-
# central1-f). Multiple expressions are treated as AND expressions, meaning that
# resources must match all expressions to pass the filters.
# @param [Fixnum] max_results
# The maximum number of results per page that should be returned. If the number
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::ComputeBeta::BackendBucketList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::BackendBucketList]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_backend_buckets(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/backendBuckets', options)
command.response_representation = Google::Apis::ComputeBeta::BackendBucketList::Representation
command.response_class = Google::Apis::ComputeBeta::BackendBucketList
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates the specified BackendBucket resource with the data included in the
# request. This method supports patch semantics.
# @param [String] project
# Project ID for this request.
# @param [String] backend_bucket
# Name of the BackendBucket resource to update.
# @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def patch_backend_bucket(project, backend_bucket, backend_bucket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, '{project}/global/backendBuckets/{backendBucket}', options)
command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
command.request_object = backend_bucket_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['backendBucket'] = backend_bucket unless backend_bucket.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
# Updates the specified BackendBucket resource with the data included in the
# request.
# @param [String] project
# Project ID for this request.
# @param [String] backend_bucket
# Name of the BackendBucket resource to update.
# @param [Google::Apis::ComputeBeta::BackendBucket] backend_bucket_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::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_backend_bucket(project, backend_bucket, backend_bucket_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, '{project}/global/backendBuckets/{backendBucket}', options)
command.request_representation = Google::Apis::ComputeBeta::BackendBucket::Representation
command.request_object = backend_bucket_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['backendBucket'] = backend_bucket unless backend_bucket.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
# Retrieves the list of all BackendService resources, regional and global,
# available to the specified project.
# @param [String] project
@ -5048,6 +5326,10 @@ module Google
# The name of the zone where the managed instance group is located.
# @param [String] instance_group_manager
# The name of the managed instance group.
# @param [String] filter
# @param [Fixnum] max_results
# @param [String] order_by
# @param [String] page_token
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -5069,13 +5351,17 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options)
command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagersListManagedInstancesResponse::Representation
command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagersListManagedInstancesResponse
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['order_by'] = order_by unless order_by.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?
command.query['userIp'] = user_ip unless user_ip.nil?
@ -8955,6 +9241,10 @@ module Google
# Name of the region scoping this request.
# @param [String] instance_group_manager
# The name of the managed instance group.
# @param [String] filter
# @param [Fixnum] max_results
# @param [String] order_by
# @param [String] page_token
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -8976,13 +9266,17 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_region_instance_group_manager_managed_instances(project, region, instance_group_manager, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options)
command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListInstancesResponse::Representation
command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupManagersListInstancesResponse
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['order_by'] = order_by unless order_by.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?
command.query['userIp'] = user_ip unless user_ip.nil?
@ -11353,6 +11647,48 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource. May be empty if no such policy
# or resource exists.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::ComputeBeta::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_subnetwork_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{resource}/getIamPolicy', options)
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
command.response_class = Google::Apis::ComputeBeta::Policy
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['resource'] = resource unless resource.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
# Creates a subnetwork in the specified project using the data included in the
# request.
# @param [String] project
@ -11475,6 +11811,51 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeBeta::Policy] policy_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::ComputeBeta::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Policy]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def set_subnetwork_iam_policy(project, region, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', options)
command.request_representation = Google::Apis::ComputeBeta::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
command.response_class = Google::Apis::ComputeBeta::Policy
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/compute/docs/reference/latest/
module ComputeV1
VERSION = 'V1'
REVISION = '20161012'
REVISION = '20161019'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -415,8 +415,12 @@ module Google
attr_accessor :mode
# Specifies a valid partial or full URL to an existing Persistent Disk resource.
# This field is only applicable for persistent disks. Note that for
# InstanceTemplate, it is just disk name, not URL for the disk.
# When creating a new instance, one of initializeParams.sourceImage or disks.
# source is required.
# If desired, you can also attach existing non-root persistent disks using this
# property. This field is only applicable for persistent disks.
# Note that for InstanceTemplate, specify the disk name, not the URL for the
# disk.
# Corresponds to the JSON property `source`
# @return [String]
attr_accessor :source
@ -483,8 +487,8 @@ module Google
# @return [String]
attr_accessor :disk_type
# The source image used to create this disk. If the source image is deleted,
# this field will not be set.
# The source image to create this disk. When creating a new instance, one of
# initializeParams.sourceImage or disks.source is required.
# To create a disk with one of the public operating system images, specify the
# image by its family name. For example, specify family/debian-8 to use the
# latest Debian 8 image:
@ -498,6 +502,7 @@ module Google
# latest version of the image in that family. Replace the image name with family/
# family-name:
# global/images/family/my-private-family
# If the source image is deleted later, this field will not be set.
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
@ -1370,20 +1375,23 @@ module Google
class DeprecationStatus
include Google::Apis::Core::Hashable
# An optional RFC3339 timestamp on or after which the deprecation state of this
# resource will be changed to DELETED.
# An optional RFC3339 timestamp on or after which the state of this resource is
# intended to change to DELETED. This is only informational and the status will
# not change unless the client explicitly changes it.
# Corresponds to the JSON property `deleted`
# @return [String]
attr_accessor :deleted
# An optional RFC3339 timestamp on or after which the deprecation state of this
# resource will be changed to DEPRECATED.
# An optional RFC3339 timestamp on or after which the state of this resource is
# intended to change to DEPRECATED. This is only informational and the status
# will not change unless the client explicitly changes it.
# Corresponds to the JSON property `deprecated`
# @return [String]
attr_accessor :deprecated
# An optional RFC3339 timestamp on or after which the deprecation state of this
# resource will be changed to OBSOLETE.
# An optional RFC3339 timestamp on or after which the state of this resource is
# intended to change to OBSOLETE. This is only informational and the status will
# not change unless the client explicitly changes it.
# Corresponds to the JSON property `obsolete`
# @return [String]
attr_accessor :obsolete
@ -6068,9 +6076,9 @@ module Google
# @return [String]
attr_accessor :target_id
# [Output Only] The URL of the resource that the operation modifies. If creating
# a persistent disk snapshot, this points to the persistent disk that the
# snapshot was created from.
# [Output Only] The URL of the resource that the operation modifies. For
# operations related to creating a snapshot, this points to the persistent disk
# that the snapshot was created from.
# Corresponds to the JSON property `targetLink`
# @return [String]
attr_accessor :target_link
@ -8165,6 +8173,28 @@ module Google
end
end
#
class SubnetworksExpandIpCidrRangeRequest
include Google::Apis::Core::Hashable
# The IP (in CIDR format or netmask) of internal addresses that are legal on
# this Subnetwork. This range should be disjoint from other subnetworks within
# this network. This range can only be larger than (i.e. a superset of) the
# range previously defined before the update.
# Corresponds to the JSON property `ipCidrRange`
# @return [String]
attr_accessor :ip_cidr_range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
end
end
#
class SubnetworksScopedList
include Google::Apis::Core::Hashable

View File

@ -1024,6 +1024,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SubnetworksExpandIpCidrRangeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SubnetworksScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -3317,6 +3323,13 @@ module Google
end
end
class SubnetworksExpandIpCidrRangeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_cidr_range, as: 'ipCidrRange'
end
end
class SubnetworksScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -4377,6 +4377,9 @@ module Google
# The name of the zone where the managed instance group is located.
# @param [String] instance_group_manager
# The name of the managed instance group.
# @param [String] filter
# @param [Fixnum] max_results
# @param [String] page_token
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -4398,13 +4401,16 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_instance_group_manager_managed_instances(project, zone, instance_group_manager, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances', options)
command.response_representation = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse::Representation
command.response_class = Google::Apis::ComputeV1::InstanceGroupManagersListManagedInstancesResponse
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.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?
command.query['userIp'] = user_ip unless user_ip.nil?
@ -6650,6 +6656,44 @@ module Google
execute_or_queue_command(command, &block)
end
# Switches the network mode from auto subnet mode to custom subnet mode.
# @param [String] project
# Project ID for this request.
# @param [String] network
# Name of the network to be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 switch_network_to_custom_mode(project, network, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/networks/{network}/switchToCustomMode', options)
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['network'] = network unless network.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified Project resource.
# @param [String] project
# Project ID for this request.
@ -8237,6 +8281,50 @@ module Google
execute_or_queue_command(command, &block)
end
# Expands the IP CIDR range of the subnetwork to a specified value.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region scoping this request.
# @param [String] subnetwork
# Name of the Subnetwork resource to update.
# @param [Google::Apis::ComputeV1::SubnetworksExpandIpCidrRangeRequest] subnetworks_expand_ip_cidr_range_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.
# 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::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::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 expand_subnetwork_ip_cidr_range(project, region, subnetwork, subnetworks_expand_ip_cidr_range_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange', options)
command.request_representation = Google::Apis::ComputeV1::SubnetworksExpandIpCidrRangeRequest::Representation
command.request_object = subnetworks_expand_ip_cidr_range_request_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['subnetwork'] = subnetwork unless subnetwork.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns the specified subnetwork. Get a list of available subnetworks list()
# request.
# @param [String] project

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20160928'
REVISION = '20161027'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -2414,6 +2414,14 @@ module Google
# @return [Google::Apis::ContentV2::LoyaltyPoints]
attr_accessor :loyalty_points
# Store pickup information. Only supported for local inventory. Not setting
# pickup means "don't update" while setting it to the empty value (`` in JSON)
# means "delete". Otherwise, pickupMethod and pickupSla must be set together,
# unless pickupMethod is "not supported".
# Corresponds to the JSON property `pickup`
# @return [Google::Apis::ContentV2::InventoryPickup]
attr_accessor :pickup
# The price of the product.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2::Price]
@ -2453,6 +2461,7 @@ module Google
@installment = args[:installment] if args.key?(:installment)
@kind = args[:kind] if args.key?(:kind)
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
@pickup = args[:pickup] if args.key?(:pickup)
@price = args[:price] if args.key?(:price)
@quantity = args[:quantity] if args.key?(:quantity)
@sale_price = args[:sale_price] if args.key?(:sale_price)
@ -2582,6 +2591,36 @@ module Google
end
end
#
class InventoryPickup
include Google::Apis::Core::Hashable
# Whether store pickup is available for this offer and whether the pickup option
# should be shown as buy, reserve, or not supported. Only supported for local
# inventory. Unless the value is "not supported", must be submitted together
# with pickupSla.
# Corresponds to the JSON property `pickupMethod`
# @return [String]
attr_accessor :pickup_method
# The expected date that an order will be ready for pickup, relative to when the
# order is placed. Only supported for local inventory. Must be submitted
# together with pickupMethod.
# Corresponds to the JSON property `pickupSla`
# @return [String]
attr_accessor :pickup_sla
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@pickup_method = args[:pickup_method] if args.key?(:pickup_method)
@pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
end
end
#
class SetInventoryRequest
include Google::Apis::Core::Hashable
@ -2601,6 +2640,14 @@ module Google
# @return [Google::Apis::ContentV2::LoyaltyPoints]
attr_accessor :loyalty_points
# Store pickup information. Only supported for local inventory. Not setting
# pickup means "don't update" while setting it to the empty value (`` in JSON)
# means "delete". Otherwise, pickupMethod and pickupSla must be set together,
# unless pickupMethod is "not supported".
# Corresponds to the JSON property `pickup`
# @return [Google::Apis::ContentV2::InventoryPickup]
attr_accessor :pickup
# The price of the product.
# Corresponds to the JSON property `price`
# @return [Google::Apis::ContentV2::Price]
@ -2639,6 +2686,7 @@ module Google
@availability = args[:availability] if args.key?(:availability)
@installment = args[:installment] if args.key?(:installment)
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
@pickup = args[:pickup] if args.key?(:pickup)
@price = args[:price] if args.key?(:price)
@quantity = args[:quantity] if args.key?(:quantity)
@sale_price = args[:sale_price] if args.key?(:sale_price)

View File

@ -430,6 +430,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InventoryPickup
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SetInventoryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1714,6 +1720,8 @@ module Google
property :kind, as: 'kind'
property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation
property :pickup, as: 'pickup', class: Google::Apis::ContentV2::InventoryPickup, decorator: Google::Apis::ContentV2::InventoryPickup::Representation
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :quantity, as: 'quantity'
@ -1763,6 +1771,14 @@ module Google
end
end
class InventoryPickup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pickup_method, as: 'pickupMethod'
property :pickup_sla, as: 'pickupSla'
end
end
class SetInventoryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1771,6 +1787,8 @@ module Google
property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation
property :pickup, as: 'pickup', class: Google::Apis::ContentV2::InventoryPickup, decorator: Google::Apis::ContentV2::InventoryPickup::Representation
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :quantity, as: 'quantity'

View File

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

View File

@ -232,6 +232,11 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# The location which contains this job.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
def initialize(**args)
update!(**args)
end
@ -255,6 +260,7 @@ module Google
@replaced_by_job_id = args[:replaced_by_job_id] if args.key?(:replaced_by_job_id)
@temp_files = args[:temp_files] if args.key?(:temp_files)
@labels = args[:labels] if args.key?(:labels)
@location = args[:location] if args.key?(:location)
end
end
@ -910,6 +916,11 @@ module Google
# @return [String]
attr_accessor :next_page_token
# Zero or more messages describing locations that failed to respond.
# Corresponds to the JSON property `failedLocation`
# @return [Array<Google::Apis::DataflowV1b3::FailedLocation>]
attr_accessor :failed_location
def initialize(**args)
update!(**args)
end
@ -918,6 +929,27 @@ module Google
def update!(**args)
@jobs = args[:jobs] if args.key?(:jobs)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@failed_location = args[:failed_location] if args.key?(:failed_location)
end
end
# FailedLocation indicates which location failed to respond to a request for
# data.
class FailedLocation
include Google::Apis::Core::Hashable
# The name of the failed location.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
end
end
@ -1182,6 +1214,11 @@ module Google
# @return [String]
attr_accessor :current_worker_time
# The location which contains the WorkItem's job.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
def initialize(**args)
update!(**args)
end
@ -1191,6 +1228,7 @@ module Google
@worker_id = args[:worker_id] if args.key?(:worker_id)
@work_item_statuses = args[:work_item_statuses] if args.key?(:work_item_statuses)
@current_worker_time = args[:current_worker_time] if args.key?(:current_worker_time)
@location = args[:location] if args.key?(:location)
end
end
@ -2424,6 +2462,11 @@ module Google
# @return [String]
attr_accessor :worker_id
# The location which contains the WorkItem's job.
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
def initialize(**args)
update!(**args)
end
@ -2435,6 +2478,7 @@ module Google
@requested_lease_duration = args[:requested_lease_duration] if args.key?(:requested_lease_duration)
@current_worker_time = args[:current_worker_time] if args.key?(:current_worker_time)
@worker_id = args[:worker_id] if args.key?(:worker_id)
@location = args[:location] if args.key?(:location)
end
end

View File

@ -118,6 +118,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FailedLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListJobMessagesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -675,6 +681,7 @@ module Google
property :replaced_by_job_id, as: 'replacedByJobId'
collection :temp_files, as: 'tempFiles'
hash :labels, as: 'labels'
property :location, as: 'location'
end
end
@ -819,6 +826,15 @@ module Google
collection :jobs, as: 'jobs', class: Google::Apis::DataflowV1b3::Job, decorator: Google::Apis::DataflowV1b3::Job::Representation
property :next_page_token, as: 'nextPageToken'
collection :failed_location, as: 'failedLocation', class: Google::Apis::DataflowV1b3::FailedLocation, decorator: Google::Apis::DataflowV1b3::FailedLocation::Representation
end
end
class FailedLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
end
end
@ -890,6 +906,7 @@ module Google
collection :work_item_statuses, as: 'workItemStatuses', class: Google::Apis::DataflowV1b3::WorkItemStatus, decorator: Google::Apis::DataflowV1b3::WorkItemStatus::Representation
property :current_worker_time, as: 'currentWorkerTime'
property :location, as: 'location'
end
end
@ -1244,6 +1261,7 @@ module Google
property :requested_lease_duration, as: 'requestedLeaseDuration'
property :current_worker_time, as: 'currentWorkerTime'
property :worker_id, as: 'workerId'
property :location, as: 'location'
end
end

View File

@ -88,6 +88,8 @@ module Google
# Level of information requested in response.
# @param [String] replace_job_id
# DEPRECATED. This field is now on the Job message.
# @param [String] location
# The location which contains this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -105,7 +107,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_job(project_id, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def create_project_job(project_id, job_object = nil, view: nil, replace_job_id: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
command.request_object = job_object
@ -114,6 +116,7 @@ module Google
command.params['projectId'] = project_id unless project_id.nil?
command.query['view'] = view unless view.nil?
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
command.query['location'] = location unless location.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -126,6 +129,8 @@ module Google
# Identifies a single job.
# @param [String] view
# Level of information requested in response.
# @param [String] location
# The location which contains this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -143,13 +148,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_job(project_id, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_project_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
command.response_class = Google::Apis::DataflowV1b3::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['view'] = view unless view.nil?
command.query['location'] = location unless location.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -161,6 +167,8 @@ module Google
# @param [String] job_id
# Identifies a single job.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] location
# The location which contains this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -178,7 +186,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project_job(project_id, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
command.request_object = job_object
@ -186,6 +194,7 @@ module Google
command.response_class = Google::Apis::DataflowV1b3::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['location'] = location unless location.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -205,6 +214,8 @@ module Google
# @param [String] page_token
# Set this to the 'next_page_token' field of a previous response to request
# additional results in a long list.
# @param [String] location
# The location which contains this job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -222,7 +233,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_jobs(project_id, filter: nil, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_jobs(project_id, filter: nil, view: nil, page_size: nil, page_token: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
@ -231,6 +242,7 @@ module Google
command.query['view'] = view unless view.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['location'] = location unless location.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -244,6 +256,8 @@ module Google
# @param [String] start_time
# Return only metric data that has changed since this time. Default is to return
# all information about all metrics for the job.
# @param [String] location
# The location which contains the job specified by job_id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -261,13 +275,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_job_metrics(project_id, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
def get_project_job_metrics(project_id, job_id, start_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
command.params['projectId'] = project_id unless project_id.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['startTime'] = start_time unless start_time.nil?
command.query['location'] = location unless location.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -365,6 +380,8 @@ module Google
# @param [String] end_time
# Return only messages with timestamps < end_time. The default is now (i.e.
# return up to the latest messages available).
# @param [String] location
# The location which contains the job specified by job_id.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -382,7 +399,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_job_messages(project_id, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_project_job_messages(project_id, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
@ -393,6 +410,7 @@ module Google
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startTime'] = start_time unless start_time.nil?
command.query['endTime'] = end_time unless end_time.nil?
command.query['location'] = location unless location.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -457,7 +475,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def lease_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
command.request_object = lease_work_item_request_object
@ -470,6 +488,348 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a dataflow job.
# @param [String] project_id
# The project which owns the job.
# @param [String] location
# The location which contains this job.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] view
# Level of information requested in response.
# @param [String] replace_job_id
# DEPRECATED. This field is now on the Job message.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::Job]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_location_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
command.request_object = job_object
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
command.response_class = Google::Apis::DataflowV1b3::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.query['view'] = view unless view.nil?
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets the state of the specified dataflow job.
# @param [String] project_id
# The project which owns the job.
# @param [String] location
# The location which contains this job.
# @param [String] job_id
# Identifies a single job.
# @param [String] view
# Level of information requested in response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::Job]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_job(project_id, location, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
command.response_class = Google::Apis::DataflowV1b3::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates the state of an existing dataflow job.
# @param [String] project_id
# The project which owns the job.
# @param [String] location
# The location which contains this job.
# @param [String] job_id
# Identifies a single job.
# @param [Google::Apis::DataflowV1b3::Job] job_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::Job]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project_location_job(project_id, location, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
command.request_object = job_object
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
command.response_class = Google::Apis::DataflowV1b3::Job
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# List the jobs of a project
# @param [String] project_id
# The project which owns the jobs.
# @param [String] location
# The location which contains this job.
# @param [String] filter
# The kind of filter to use.
# @param [String] view
# Level of information requested in response. Default is SUMMARY.
# @param [Fixnum] page_size
# If there are many jobs, limit response to at most this many. The actual number
# of jobs returned will be the lesser of max_responses and an unspecified server-
# defined limit.
# @param [String] page_token
# Set this to the 'next_page_token' field of a previous response to request
# additional results in a long list.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::ListJobsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_jobs(project_id, location, filter: nil, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.query['filter'] = filter unless filter.nil?
command.query['view'] = view unless view.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Request the job status.
# @param [String] project_id
# A project id.
# @param [String] location
# The location which contains the job specified by job_id.
# @param [String] job_id
# The job to get messages for.
# @param [String] start_time
# Return only metric data that has changed since this time. Default is to return
# all information about all metrics for the job.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::JobMetrics]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['startTime'] = start_time unless start_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Request the job status.
# @param [String] project_id
# A project id.
# @param [String] location
# The location which contains the job specified by job_id.
# @param [String] job_id
# The job to get messages about.
# @param [String] minimum_importance
# Filter to only get messages with importance >= level
# @param [Fixnum] page_size
# If specified, determines the maximum number of messages to return. If
# unspecified, the service may choose an appropriate default, or may return an
# arbitrarily large number of results.
# @param [String] page_token
# If supplied, this should be the value of next_page_token returned by an
# earlier call. This will cause the next page of results to be returned.
# @param [String] start_time
# If specified, return only messages with timestamps >= start_time. The default
# is the job creation time (i.e. beginning of messages).
# @param [String] end_time
# Return only messages with timestamps < end_time. The default is now (i.e.
# return up to the latest messages available).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_project_location_job_messages(project_id, location, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['startTime'] = start_time unless start_time.nil?
command.query['endTime'] = end_time unless end_time.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Reports the status of dataflow WorkItems leased by a worker.
# @param [String] project_id
# The project which owns the WorkItem's job.
# @param [String] location
# The location which contains the WorkItem's job.
# @param [String] job_id
# The job which the WorkItem is part of.
# @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
command.request_object = report_work_item_status_request_object
command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Leases a dataflow WorkItem to run.
# @param [String] project_id
# Identifies the project this worker belongs to.
# @param [String] location
# The location which contains the WorkItem's job.
# @param [String] job_id
# Identifies the workflow job this worker belongs to.
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def lease_project_location_work_item(project_id, location, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options)
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
command.request_object = lease_work_item_request_object
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['location'] = location unless location.nil?
command.params['jobId'] = job_id unless job_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a dataflow job from a template.
# @param [String] project_id
# The project which owns the job.

View File

@ -20,12 +20,12 @@ module Google
module Apis
# Google Cloud Dataproc API
#
# Manages Hadoop-based clusters and jobs on Google Cloud Platform.
# An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
#
# @see https://cloud.google.com/dataproc/
module DataprocV1
VERSION = 'V1'
REVISION = '20160503'
REVISION = '20161102'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -43,6 +43,15 @@ module Google
# @return [Google::Apis::DataprocV1::ClusterConfig]
attr_accessor :config
# [Optional] The labels to associate with this cluster. Label **keys** must
# contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.
# org/rfc/rfc1035.txt). Label **values** may be empty, but, if present, must
# contain 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.
# org/rfc/rfc1035.txt). No more than 32 labels can be associated with a cluster.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# The status of a cluster and its instances.
# Corresponds to the JSON property `status`
# @return [Google::Apis::DataprocV1::ClusterStatus]
@ -59,6 +68,13 @@ module Google
# @return [String]
attr_accessor :cluster_uuid
# Contains cluster daemon metrics, such as HDFS and YARN stats. **Beta Feature**:
# This report is available for testing purposes only. It may be changed before
# final release.
# Corresponds to the JSON property `metrics`
# @return [Google::Apis::DataprocV1::ClusterMetrics]
attr_accessor :metrics
def initialize(**args)
update!(**args)
end
@ -68,9 +84,11 @@ module Google
@project_id = args[:project_id] if args.key?(:project_id)
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
@config = args[:config] if args.key?(:config)
@labels = args[:labels] if args.key?(:labels)
@status = args[:status] if args.key?(:status)
@status_history = args[:status_history] if args.key?(:status_history)
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
@metrics = args[:metrics] if args.key?(:metrics)
end
end
@ -94,20 +112,20 @@ module Google
# @return [Google::Apis::DataprocV1::GceClusterConfig]
attr_accessor :gce_cluster_config
# The config settings for Google Compute Engine resources in an instance group,
# such as a master or worker group.
# [Optional] The config settings for Google Compute Engine resources in an
# instance group, such as a master or worker group.
# Corresponds to the JSON property `masterConfig`
# @return [Google::Apis::DataprocV1::InstanceGroupConfig]
attr_accessor :master_config
# The config settings for Google Compute Engine resources in an instance group,
# such as a master or worker group.
# [Optional] The config settings for Google Compute Engine resources in an
# instance group, such as a master or worker group.
# Corresponds to the JSON property `workerConfig`
# @return [Google::Apis::DataprocV1::InstanceGroupConfig]
attr_accessor :worker_config
# The config settings for Google Compute Engine resources in an instance group,
# such as a master or worker group.
# [Optional] The config settings for Google Compute Engine resources in an
# instance group, such as a master or worker group.
# Corresponds to the JSON property `secondaryWorkerConfig`
# @return [Google::Apis::DataprocV1::InstanceGroupConfig]
attr_accessor :secondary_worker_config
@ -120,9 +138,10 @@ module Google
# [Optional] Commands to execute on each node after config is completed. By
# default, executables are run on master and all worker nodes. You can test a
# node's role metadata to run an executable on a master or worker node, as shown
# below: ROLE=$(/usr/share/google/get_metadata_value attributes/role) if [[ "$`
# ROLE`" == 'Master' ]]; then ... master specific actions ... else ... worker
# specific actions ... fi
# below using `curl` (you can also use `wget`): ROLE=$(curl -H Metadata-Flavor:
# Google http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
# if [[ "$`ROLE`" == 'Master' ]]; then ... master specific actions ... else ...
# worker specific actions ... fi
# Corresponds to the JSON property `initializationActions`
# @return [Array<Google::Apis::DataprocV1::NodeInitializationAction>]
attr_accessor :initialization_actions
@ -155,41 +174,55 @@ module Google
# @return [String]
attr_accessor :zone_uri
# The Google Compute Engine network to be used for machine communications.
# Cannot be specified with subnetwork_uri. If neither network_uri nor
# subnetwork_uri is specified, the "default" network of the project is used, if
# it exists. Cannot be a "Custom Subnet Network" (see https://cloud.google.com/
# compute/docs/subnetworks for more information). Example: `https://www.
# googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.
# [Optional] The Google Compute Engine network to be used for machine
# communications. Cannot be specified with subnetwork_uri. If neither `
# network_uri` nor `subnetwork_uri` is specified, the "default" network of the
# project is used, if it exists. Cannot be a "Custom Subnet Network" (see [Using
# Subnetworks](/compute/docs/subnetworks) for more information). Example: `https:
# //www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.
# Corresponds to the JSON property `networkUri`
# @return [String]
attr_accessor :network_uri
# The Google Compute Engine subnetwork to be used for machine communications.
# Cannot be specified with network_uri. Example: `https://www.googleapis.com/
# compute/v1/projects/[project_id]/regions/us-east1/sub0`.
# [Optional] The Google Compute Engine subnetwork to be used for machine
# communications. Cannot be specified with network_uri. Example: `https://www.
# googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`.
# Corresponds to the JSON property `subnetworkUri`
# @return [String]
attr_accessor :subnetwork_uri
# The URIs of service account scopes to be included in Google Compute Engine
# instances. The following base set of scopes is always included: * https://www.
# googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/
# auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If
# no scopes are specfied, the following defaults are also provided: * https://
# www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.
# [Optional] If true, all instances in the cluster will only have internal IP
# addresses. By default, clusters are not restricted to internal IP addresses,
# and will have ephemeral external IP addresses assigned to each instance. This `
# internal_ip_only` restriction can only be enabled for subnetwork enabled
# networks, and all off-cluster dependencies must be configured to be accessible
# without external IP addresses.
# Corresponds to the JSON property `internalIpOnly`
# @return [Boolean]
attr_accessor :internal_ip_only
alias_method :internal_ip_only?, :internal_ip_only
# [Optional] The URIs of service account scopes to be included in Google Compute
# Engine instances. The following base set of scopes is always included: * https:
# //www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.
# com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write
# If no scopes are specified, the following defaults are also provided: * https:/
# /www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.
# admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.
# googleapis.com/auth/devstorage.full_control
# Corresponds to the JSON property `serviceAccountScopes`
# @return [Array<String>]
attr_accessor :service_account_scopes
# The Google Compute Engine tags to add to all instances.
# The Google Compute Engine tags to add to all instances (see [Tagging instances]
# (/compute/docs/label-or-tag-resources#tags)).
# Corresponds to the JSON property `tags`
# @return [Array<String>]
attr_accessor :tags
# The Google Compute Engine metadata entries to add to all instances.
# The Google Compute Engine metadata entries to add to all instances (see [
# Project and instance metadata](https://cloud.google.com/compute/docs/storing-
# retrieving-metadata#project_and_instance_metadata)).
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
@ -203,24 +236,25 @@ module Google
@zone_uri = args[:zone_uri] if args.key?(:zone_uri)
@network_uri = args[:network_uri] if args.key?(:network_uri)
@subnetwork_uri = args[:subnetwork_uri] if args.key?(:subnetwork_uri)
@internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
@service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
@tags = args[:tags] if args.key?(:tags)
@metadata = args[:metadata] if args.key?(:metadata)
end
end
# The config settings for Google Compute Engine resources in an instance group,
# such as a master or worker group.
# [Optional] The config settings for Google Compute Engine resources in an
# instance group, such as a master or worker group.
class InstanceGroupConfig
include Google::Apis::Core::Hashable
# The number of VM instances in the instance group. For master instance groups,
# must be set to 1.
# [Required] The number of VM instances in the instance group. For master
# instance groups, must be set to 1.
# Corresponds to the JSON property `numInstances`
# @return [Fixnum]
attr_accessor :num_instances
# The list of instance names. Cloud Dataproc derives the names from `
# [Optional] The list of instance names. Cloud Dataproc derives the names from `
# cluster_name`, `num_instances`, and the instance group if not set by user (
# recommended practice is to let Cloud Dataproc derive the name).
# Corresponds to the JSON property `instanceNames`
@ -233,9 +267,9 @@ module Google
# @return [String]
attr_accessor :image_uri
# The Google Compute Engine machine type used for cluster instances. Example: `
# https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/
# machineTypes/n1-standard-2`.
# [Required] The Google Compute Engine machine type used for cluster instances.
# Example: `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-
# east1-a/machineTypes/n1-standard-2`.
# Corresponds to the JSON property `machineTypeUri`
# @return [String]
attr_accessor :machine_type_uri
@ -245,7 +279,7 @@ module Google
# @return [Google::Apis::DataprocV1::DiskConfig]
attr_accessor :disk_config
# Specifies that this instance group contains Preemptible Instances.
# [Optional] Specifies that this instance group contains preemptible instances.
# Corresponds to the JSON property `isPreemptible`
# @return [Boolean]
attr_accessor :is_preemptible
@ -282,9 +316,10 @@ module Google
attr_accessor :boot_disk_size_gb
# [Optional] Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are
# not attached, the boot disk is used to store runtime logs and HDFS data. If
# one or more SSDs are attached, this runtime bulk data is spread across them,
# and the boot disk contains only basic config and installed binaries.
# not attached, the boot disk is used to store runtime logs and [HDFS](https://
# hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs
# are attached, this runtime bulk data is spread across them, and the boot disk
# contains only basic config and installed binaries.
# Corresponds to the JSON property `numLocalSsds`
# @return [Fixnum]
attr_accessor :num_local_ssds
@ -390,17 +425,17 @@ module Google
class ClusterStatus
include Google::Apis::Core::Hashable
# The cluster's state.
# [Output-only] The cluster's state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Optional details of cluster's state.
# [Output-only] Optional details of cluster's state.
# Corresponds to the JSON property `detail`
# @return [String]
attr_accessor :detail
# Time when this state was entered.
# [Output-only] Time when this state was entered.
# Corresponds to the JSON property `stateStartTime`
# @return [String]
attr_accessor :state_start_time
@ -417,6 +452,33 @@ module Google
end
end
# Contains cluster daemon metrics, such as HDFS and YARN stats. **Beta Feature**:
# This report is available for testing purposes only. It may be changed before
# final release.
class ClusterMetrics
include Google::Apis::Core::Hashable
# The HDFS metrics.
# Corresponds to the JSON property `hdfsMetrics`
# @return [Hash<String,String>]
attr_accessor :hdfs_metrics
# The YARN metrics.
# Corresponds to the JSON property `yarnMetrics`
# @return [Hash<String,String>]
attr_accessor :yarn_metrics
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics)
@yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics)
end
end
# This resource represents a long-running operation that is the result of a
# network API call.
class Operation
@ -579,9 +641,9 @@ module Google
# @return [Array<Google::Apis::DataprocV1::Cluster>]
attr_accessor :clusters
# [Optional] This token is included in the response if there are more results to
# fetch. To fetch additional results, provide this value as the `page_token` in
# a subsequent ListClustersRequest.
# [Output-only] This token is included in the response if there are more results
# to fetch. To fetch additional results, provide this value as the `page_token`
# in a subsequent ListClustersRequest.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -643,32 +705,40 @@ module Google
# @return [Google::Apis::DataprocV1::JobPlacement]
attr_accessor :placement
# A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN.
# A Cloud Dataproc job for running [Apache Hadoop MapReduce](https://hadoop.
# apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
# MapReduceTutorial.html) jobs on [Apache Hadoop YARN](https://hadoop.apache.org/
# docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
# Corresponds to the JSON property `hadoopJob`
# @return [Google::Apis::DataprocV1::HadoopJob]
attr_accessor :hadoop_job
# A Cloud Dataproc job for running Spark applications on YARN.
# A Cloud Dataproc job for running [Apache Spark](http://spark.apache.org/)
# applications on YARN.
# Corresponds to the JSON property `sparkJob`
# @return [Google::Apis::DataprocV1::SparkJob]
attr_accessor :spark_job
# A Cloud Dataproc job for running PySpark applications on YARN.
# A Cloud Dataproc job for running [Apache PySpark](https://spark.apache.org/
# docs/0.9.0/python-programming-guide.html) applications on YARN.
# Corresponds to the JSON property `pysparkJob`
# @return [Google::Apis::DataprocV1::PySparkJob]
attr_accessor :pyspark_job
# A Cloud Dataproc job for running Hive queries on YARN.
# A Cloud Dataproc job for running [Apache Hive](https://hive.apache.org/)
# queries on YARN.
# Corresponds to the JSON property `hiveJob`
# @return [Google::Apis::DataprocV1::HiveJob]
attr_accessor :hive_job
# A Cloud Dataproc job for running Pig queries on YARN.
# A Cloud Dataproc job for running [Apache Pig](https://pig.apache.org/) queries
# on YARN.
# Corresponds to the JSON property `pigJob`
# @return [Google::Apis::DataprocV1::PigJob]
attr_accessor :pig_job
# A Cloud Dataproc job for running Spark SQL queries.
# A Cloud Dataproc job for running [Apache Spark SQL](http://spark.apache.org/
# sql/) queries.
# Corresponds to the JSON property `sparkSqlJob`
# @return [Google::Apis::DataprocV1::SparkSqlJob]
attr_accessor :spark_sql_job
@ -683,6 +753,13 @@ module Google
# @return [Array<Google::Apis::DataprocV1::JobStatus>]
attr_accessor :status_history
# [Output-only] The collection of YARN applications spun up by this job. **Beta**
# Feature: This report is available for testing purposes only. It may be
# changed before final release.
# Corresponds to the JSON property `yarnApplications`
# @return [Array<Google::Apis::DataprocV1::YarnApplication>]
attr_accessor :yarn_applications
# [Output-only] A URI pointing to the location of the stdout of the job's driver
# program.
# Corresponds to the JSON property `driverOutputResourceUri`
@ -696,6 +773,15 @@ module Google
# @return [String]
attr_accessor :driver_control_files_uri
# [Optional] The labels to associate with this job. Label **keys** must contain
# 1 to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/
# rfc1035.txt). Label **values** may be empty, but, if present, must contain 1
# to 63 characters, and must conform to [RFC 1035](https://www.ietf.org/rfc/
# rfc1035.txt). No more than 32 labels can be associated with a job.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
def initialize(**args)
update!(**args)
end
@ -712,8 +798,10 @@ module Google
@spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
@status = args[:status] if args.key?(:status)
@status_history = args[:status_history] if args.key?(:status_history)
@yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
@driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
@labels = args[:labels] if args.key?(:labels)
end
end
@ -726,7 +814,7 @@ module Google
# @return [String]
attr_accessor :project_id
# [Required] The job ID, which must be unique within the project. The job ID is
# [Optional] The job ID, which must be unique within the project. The job ID is
# generated by the server upon job submission or provided by the user as a means
# to perform retries without creating duplicate jobs. The ID must contain only
# letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
@ -772,7 +860,10 @@ module Google
end
end
# A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN.
# A Cloud Dataproc job for running [Apache Hadoop MapReduce](https://hadoop.
# apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
# MapReduceTutorial.html) jobs on [Apache Hadoop YARN](https://hadoop.apache.org/
# docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
class HadoopJob
include Google::Apis::Core::Hashable
@ -868,7 +959,8 @@ module Google
end
end
# A Cloud Dataproc job for running Spark applications on YARN.
# A Cloud Dataproc job for running [Apache Spark](http://spark.apache.org/)
# applications on YARN.
class SparkJob
include Google::Apis::Core::Hashable
@ -939,7 +1031,8 @@ module Google
end
end
# A Cloud Dataproc job for running PySpark applications on YARN.
# A Cloud Dataproc job for running [Apache PySpark](https://spark.apache.org/
# docs/0.9.0/python-programming-guide.html) applications on YARN.
class PySparkJob
include Google::Apis::Core::Hashable
@ -1010,7 +1103,8 @@ module Google
end
end
# A Cloud Dataproc job for running Hive queries on YARN.
# A Cloud Dataproc job for running [Apache Hive](https://hive.apache.org/)
# queries on YARN.
class HiveJob
include Google::Apis::Core::Hashable
@ -1090,7 +1184,8 @@ module Google
end
end
# A Cloud Dataproc job for running Pig queries on YARN.
# A Cloud Dataproc job for running [Apache Pig](https://pig.apache.org/) queries
# on YARN.
class PigJob
include Google::Apis::Core::Hashable
@ -1153,7 +1248,8 @@ module Google
end
end
# A Cloud Dataproc job for running Spark SQL queries.
# A Cloud Dataproc job for running [Apache Spark SQL](http://spark.apache.org/
# sql/) queries.
class SparkSqlJob
include Google::Apis::Core::Hashable
@ -1209,13 +1305,13 @@ module Google
class JobStatus
include Google::Apis::Core::Hashable
# [Required] A state message specifying the overall job state.
# [Output-only] A state message specifying the overall job state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# [Optional] Job state details, such as an error description if the state is
# ERROR.
# [Output-only] Optional job state details, such as an error description if the
# state is ERROR.
# Corresponds to the JSON property `details`
# @return [String]
attr_accessor :details
@ -1237,6 +1333,49 @@ module Google
end
end
# A YARN application created by a job. Application information is a subset of
# org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. **Beta Feature*
# *: This report is available for testing purposes only. It may be changed
# before final release.
class YarnApplication
include Google::Apis::Core::Hashable
# [Required] The application name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# [Required] The application state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# [Required] The numerical progress of the application, from 1 to 100.
# Corresponds to the JSON property `progress`
# @return [Float]
attr_accessor :progress
# [Optional] The HTTP URL of the ApplicationMaster, HistoryServer, or
# TimelineServer that provides application-specific information. The URL uses
# the internal hostname, and requires a proxy server for resolution and,
# possibly, access.
# Corresponds to the JSON property `trackingUrl`
# @return [String]
attr_accessor :tracking_url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@state = args[:state] if args.key?(:state)
@progress = args[:progress] if args.key?(:progress)
@tracking_url = args[:tracking_url] if args.key?(:tracking_url)
end
end
# A list of jobs in a project.
class ListJobsResponse
include Google::Apis::Core::Hashable
@ -1323,8 +1462,8 @@ module Google
class DiagnoseClusterResults
include Google::Apis::Core::Hashable
# [Output-only] The Google Cloud Storage URI of the diagnostic output. This is a
# plain text file with a summary of collected diagnostics.
# [Output-only] The Google Cloud Storage URI of the diagnostic output. The
# output report is a plain text file with a summary of collected diagnostics.
# Corresponds to the JSON property `outputUri`
# @return [String]
attr_accessor :output_uri
@ -1343,12 +1482,12 @@ module Google
class ClusterOperationMetadata
include Google::Apis::Core::Hashable
# Name of the cluster for the operation.
# [Output-only] Name of the cluster for the operation.
# Corresponds to the JSON property `clusterName`
# @return [String]
attr_accessor :cluster_name
# Cluster UUId for the operation.
# [Output-only] Cluster UUID for the operation.
# Corresponds to the JSON property `clusterUuid`
# @return [String]
attr_accessor :cluster_uuid
@ -1373,6 +1512,11 @@ module Google
# @return [String]
attr_accessor :description
# [Output-only] labels associated with the operation
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
def initialize(**args)
update!(**args)
end
@ -1385,6 +1529,7 @@ module Google
@status_history = args[:status_history] if args.key?(:status_history)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@description = args[:description] if args.key?(:description)
@labels = args[:labels] if args.key?(:labels)
end
end
@ -1392,22 +1537,22 @@ module Google
class ClusterOperationStatus
include Google::Apis::Core::Hashable
# A message containing the operation state.
# [Output-only] A message containing the operation state.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# A message containing the detailed operation state.
# [Output-only] A message containing the detailed operation state.
# Corresponds to the JSON property `innerState`
# @return [String]
attr_accessor :inner_state
# A message containing any operation metadata details.
# [Output-only]A message containing any operation metadata details.
# Corresponds to the JSON property `details`
# @return [String]
attr_accessor :details
# The time this state was entered.
# [Output-only] The time this state was entered.
# Corresponds to the JSON property `stateStartTime`
# @return [String]
attr_accessor :state_start_time

View File

@ -76,6 +76,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ClusterMetrics
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -178,6 +184,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class YarnApplication
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListJobsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -245,11 +257,14 @@ module Google
property :cluster_name, as: 'clusterName'
property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
hash :labels, as: 'labels'
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
property :cluster_uuid, as: 'clusterUuid'
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
end
end
@ -278,6 +293,7 @@ module Google
property :zone_uri, as: 'zoneUri'
property :network_uri, as: 'networkUri'
property :subnetwork_uri, as: 'subnetworkUri'
property :internal_ip_only, as: 'internalIpOnly'
collection :service_account_scopes, as: 'serviceAccountScopes'
collection :tags, as: 'tags'
hash :metadata, as: 'metadata'
@ -340,6 +356,14 @@ module Google
end
end
class ClusterMetrics
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :hdfs_metrics, as: 'hdfsMetrics'
hash :yarn_metrics, as: 'yarnMetrics'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -407,8 +431,11 @@ module Google
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
property :driver_control_files_uri, as: 'driverControlFilesUri'
hash :labels, as: 'labels'
end
end
@ -538,6 +565,16 @@ module Google
end
end
class YarnApplication
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :state, as: 'state'
property :progress, as: 'progress'
property :tracking_url, as: 'trackingUrl'
end
end
class ListJobsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -586,6 +623,7 @@ module Google
property :operation_type, as: 'operationType'
property :description, as: 'description'
hash :labels, as: 'labels'
end
end

View File

@ -22,7 +22,7 @@ module Google
module DataprocV1
# Google Cloud Dataproc API
#
# Manages Hadoop-based clusters and jobs on Google Cloud Platform.
# An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
#
# @example
# require 'google/apis/dataproc_v1'
@ -215,10 +215,24 @@ module Google
# belongs to.
# @param [String] region
# [Required] The Cloud Dataproc region in which to handle the request.
# @param [String] filter
# [Optional] A filter constraining the clusters to list. Filters are case-
# sensitive and have the following syntax: field:value [field:value] ... or
# field = value [AND [field = value]] ... where **field** is one of `status.
# state`, `clusterName`, or `labels.[KEY]`, and `[KEY]` is a label key. **value**
# can be `*` to match all values. `status.state` can be one of the following: `
# ACTIVE`, `INACTIVE`, `CREATING`, `RUNNING`, `ERROR`, `DELETING`, or `UPDATING`.
# `ACTIVE` contains the `CREATING`, `UPDATING`, and `RUNNING` states. `INACTIVE`
# contains the `DELETING` and `ERROR` states. `clusterName` is the name of the
# cluster provided at creation time. Only the logical `AND` operator is
# supported; space-separated items are treated as having an implicit `AND`
# operator. Example valid filters are: status.state:ACTIVE clusterName:mycluster
# labels.env:staging \ labels.starred:* and status.state = ACTIVE AND
# clusterName = mycluster \ AND labels.env = staging AND labels.starred = *
# @param [Fixnum] page_size
# The standard List page size.
# [Optional] The standard List page size.
# @param [String] page_token
# The standard List page token.
# [Optional] The standard List page token.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -236,12 +250,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_clusters(project_id, region, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_clusters(project_id, region, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
command.response_class = Google::Apis::DataprocV1::ListClustersResponse
command.params['projectId'] = project_id unless project_id.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
@ -376,7 +391,18 @@ module Google
# [Optional] If set, the returned jobs list includes only jobs that were
# submitted to the named cluster.
# @param [String] job_state_matcher
# [Optional] Specifies enumerated categories of jobs to list.
# [Optional] Specifies enumerated categories of jobs to list (default = match
# ALL jobs).
# @param [String] filter
# [Optional] A filter constraining the jobs to list. Filters are case-sensitive
# and have the following syntax: field:value] ... or [field = value] AND [field [
# = value]] ... where **field** is `status.state` or `labels.[KEY]`, and `[KEY]`
# is a label key. **value** can be `*` to match all values. `status.state` can
# be either `ACTIVE` or `INACTIVE`. Only the logical `AND` operator is supported;
# space-separated items are treated as having an implicit `AND` operator.
# Example valid filters are: status.state:ACTIVE labels.env:staging labels.
# starred:* and status.state = ACTIVE AND labels.env = staging AND labels.
# starred = *
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -394,7 +420,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_jobs(project_id, region, page_size: nil, page_token: nil, cluster_name: nil, job_state_matcher: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_jobs(project_id, region, page_size: nil, page_token: nil, cluster_name: nil, job_state_matcher: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
command.response_class = Google::Apis::DataprocV1::ListJobsResponse
@ -404,6 +430,7 @@ module Google
command.query['pageToken'] = page_token unless page_token.nil?
command.query['clusterName'] = cluster_name unless cluster_name.nil?
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
command.query['filter'] = filter unless filter.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
@ -488,37 +515,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the latest state of a long-running operation. Clients can use this method
# to poll the operation result at intervals as recommended by the API service.
# @param [String] name
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
command.response_class = Google::Apis::DataprocV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# 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
@ -561,13 +557,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# 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 to be cancelled.
# The name of the operation resource.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -577,18 +570,18 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Empty]
# @return [Google::Apis::DataprocV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
command.response_class = Google::Apis::DataprocV1::Empty
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
command.response_class = Google::Apis::DataprocV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
@ -627,6 +620,43 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. If the
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
# Clients can use Operations.GetOperation or other methods to check whether the
# cancellation succeeded or whether the operation completed despite cancellation.
# On successful cancellation, the operation is not deleted; instead, it becomes
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
# corresponding to `Code.CANCELLED`.
# @param [String] name
# The name of the operation resource to be cancelled.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
command.response_class = Google::Apis::DataprocV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerV2
VERSION = 'V2'
REVISION = '20160915'
REVISION = '20161013'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -690,9 +690,9 @@ module Google
# @return [String]
attr_accessor :target_id
# [Output Only] The URL of the resource that the operation modifies. If creating
# a persistent disk snapshot, this points to the persistent disk that the
# snapshot was created from.
# [Output Only] The URL of the resource that the operation modifies. For
# operations related to creating a snapshot, this points to the persistent disk
# that the snapshot was created from.
# Corresponds to the JSON property `targetLink`
# @return [String]
attr_accessor :target_link

View File

@ -285,6 +285,15 @@ module Google
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
@ -309,13 +318,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_deployments(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/deployments', options)
command.response_representation = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse::Representation
command.response_class = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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?
@ -638,6 +648,15 @@ module Google
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
@ -662,7 +681,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_manifests(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests', options)
command.response_representation = Google::Apis::DeploymentmanagerV2::ListManifestsResponse::Representation
command.response_class = Google::Apis::DeploymentmanagerV2::ListManifestsResponse
@ -670,6 +689,7 @@ module Google
command.params['deployment'] = deployment unless deployment.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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?
@ -744,6 +764,15 @@ module Google
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
@ -768,13 +797,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_operations(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/operations', options)
command.response_representation = Google::Apis::DeploymentmanagerV2::ListOperationsResponse::Representation
command.response_class = Google::Apis::DeploymentmanagerV2::ListOperationsResponse
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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?
@ -854,6 +884,15 @@ module Google
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
@ -878,7 +917,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_resources(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources', options)
command.response_representation = Google::Apis::DeploymentmanagerV2::ListResourcesResponse::Representation
command.response_class = Google::Apis::DeploymentmanagerV2::ListResourcesResponse
@ -886,6 +925,7 @@ module Google
command.params['deployment'] = deployment unless deployment.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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?
@ -922,6 +962,15 @@ module Google
# of available results is larger than maxResults, Compute Engine returns a
# nextPageToken that can be used to get the next page of results in subsequent
# list requests.
# @param [String] order_by
# Sorts list results by a certain order. By default, results are returned in
# alphanumerical order based on the resource name.
# You can also sort results in descending order based on the creation timestamp
# using orderBy="creationTimestamp desc". This sorts results based on the
# creationTimestamp field in reverse chronological order (newest result first).
# Use this to sort resources like operations so that the newest operation is
# returned first.
# Currently, only sorting by name or creationTimestamp desc is supported.
# @param [String] page_token
# Specifies a page token to use. Set pageToken to the nextPageToken returned by
# a previous list request to get the next page of results.
@ -946,13 +995,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_types(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/global/types', options)
command.response_representation = Google::Apis::DeploymentmanagerV2::ListTypesResponse::Representation
command.response_class = Google::Apis::DeploymentmanagerV2::ListTypesResponse
command.params['project'] = project unless project.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.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?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/doubleclick-advertisers/
module DfareportingV2_6
VERSION = 'V2_6'
REVISION = '20160803'
REVISION = '20161027'
# Manage DoubleClick Digital Marketing conversions
AUTH_DDMCONVERSIONS = 'https://www.googleapis.com/auth/ddmconversions'

View File

@ -649,7 +649,7 @@ module Google
# @return [String]
attr_accessor :account_id
# Whether this ad is active.
# Whether this ad is active. When true, archived must be false.
# Corresponds to the JSON property `active`
# @return [Boolean]
attr_accessor :active
@ -665,7 +665,7 @@ module Google
# @return [Google::Apis::DfareportingV2_6::DimensionValue]
attr_accessor :advertiser_id_dimension_value
# Whether this ad is archived.
# Whether this ad is archived. When true, active must be false.
# Corresponds to the JSON property `archived`
# @return [Boolean]
attr_accessor :archived
@ -2280,7 +2280,8 @@ module Google
# @return [String]
attr_accessor :kind
# Whether the user has Limit Ad Tracking set.
# Whether Limit Ad Tracking is enabled. When set to true, the conversion will be
# used for reporting but not targeting. This will prevent remarketing.
# Corresponds to the JSON property `limitAdTracking`
# @return [Boolean]
attr_accessor :limit_ad_tracking

View File

@ -312,7 +312,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of account user profiles, possibly filtered.
# Retrieves a list of account user profiles, possibly filtered. This method
# supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Boolean] active
@ -497,7 +498,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the list of accounts, possibly filtered.
# Retrieves the list of accounts, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Boolean] active
@ -714,7 +715,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of ads, possibly filtered.
# Retrieves a list of ads, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Boolean] active
@ -1024,7 +1025,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of advertiser groups, possibly filtered.
# Retrieves a list of advertiser groups, possibly filtered. This method supports
# paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] ids
@ -1238,7 +1240,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of advertisers, possibly filtered.
# Retrieves a list of advertisers, possibly filtered. This method supports
# paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] advertiser_group_ids
@ -1473,6 +1476,7 @@ module Google
end
# Retrieves the list of creative IDs associated with the specified campaign.
# This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] campaign_id
@ -1602,7 +1606,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of campaigns, possibly filtered.
# Retrieves a list of campaigns, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] advertiser_group_ids
@ -1799,7 +1803,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of change logs.
# Retrieves a list of change logs. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] action
@ -2107,7 +2111,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of content categories, possibly filtered.
# Retrieves a list of content categories, possibly filtered. This method
# supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] ids
@ -2528,7 +2533,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of creative field values, possibly filtered.
# Retrieves a list of creative field values, possibly filtered. This method
# supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] creative_field_id
@ -2782,7 +2788,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of creative fields, possibly filtered.
# Retrieves a list of creative fields, possibly filtered. This method supports
# paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] advertiser_ids
@ -2999,7 +3006,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of creative groups, possibly filtered.
# Retrieves a list of creative groups, possibly filtered. This method supports
# paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] advertiser_ids
@ -3219,7 +3227,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of creatives, possibly filtered.
# Retrieves a list of creatives, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Boolean] active
@ -3470,7 +3478,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of directory site contacts, possibly filtered.
# Retrieves a list of directory site contacts, possibly filtered. This method
# supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] directory_site_ids
@ -3610,7 +3619,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of directory sites, possibly filtered.
# Retrieves a list of directory sites, possibly filtered. This method supports
# paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Boolean] accepts_in_stream_video_placements
@ -4345,7 +4355,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of floodlight activities, possibly filtered.
# Retrieves a list of floodlight activities, possibly filtered. This method
# supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] advertiser_id
@ -4589,7 +4600,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of floodlight activity groups, possibly filtered.
# Retrieves a list of floodlight activity groups, possibly filtered. This method
# supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] advertiser_id
@ -4942,7 +4954,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of inventory items, possibly filtered.
# Retrieves a list of inventory items, possibly filtered. This method supports
# paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] project_id
@ -5582,7 +5595,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of order documents, possibly filtered.
# Retrieves a list of order documents, possibly filtered. This method supports
# paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] project_id
@ -5694,7 +5708,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of orders, possibly filtered.
# Retrieves a list of orders, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] project_id
@ -5834,7 +5848,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of placement groups, possibly filtered.
# Retrieves a list of placement groups, possibly filtered. This method supports
# paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] advertiser_ids
@ -6134,7 +6149,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of placement strategies, possibly filtered.
# Retrieves a list of placement strategies, possibly filtered. This method
# supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] ids
@ -6392,7 +6408,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of placements, possibly filtered.
# Retrieves a list of placements, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] advertiser_ids
@ -6770,7 +6786,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of projects, possibly filtered.
# Retrieves a list of projects, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] advertiser_ids
@ -7060,7 +7076,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of remarketing lists, possibly filtered.
# Retrieves a list of remarketing lists, possibly filtered. This method supports
# paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] advertiser_id
@ -7703,7 +7720,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of sites, possibly filtered.
# Retrieves a list of sites, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Boolean] accepts_in_stream_video_placements
@ -8068,7 +8085,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets a list of subaccounts, possibly filtered.
# Gets a list of subaccounts, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Array<String>, String] ids
@ -8243,7 +8260,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of targetable remarketing lists, possibly filtered.
# Retrieves a list of targetable remarketing lists, possibly filtered. This
# method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] advertiser_id
@ -8381,7 +8399,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of targeting templates, optionally filtered.
# Retrieves a list of targeting templates, optionally filtered. This method
# supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [String] advertiser_id
@ -8849,7 +8868,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves a list of user roles, possibly filtered.
# Retrieves a list of user roles, possibly filtered. This method supports paging.
# @param [String] profile_id
# User profile ID associated with this request.
# @param [Boolean] account_user_role_only

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-dns
module DnsV1
VERSION = 'V1'
REVISION = '20161005'
REVISION = '20161020'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/doubleclick-search/
module DoubleclicksearchV2
VERSION = 'V2'
REVISION = '20161012'
REVISION = '20161031'
# View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV2
VERSION = 'V2'
REVISION = '20161006'
REVISION = '20161027'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -1802,6 +1802,12 @@ module Google
attr_accessor :hidden
alias_method :hidden?, :hidden
# Whether the file has been modified by this user.
# Corresponds to the JSON property `modified`
# @return [Boolean]
attr_accessor :modified
alias_method :modified?, :modified
# Whether viewers and commenters are prevented from downloading, printing, and
# copying this file.
# Corresponds to the JSON property `restricted`
@ -1835,6 +1841,7 @@ module Google
# Update properties of this object
def update!(**args)
@hidden = args[:hidden] if args.key?(:hidden)
@modified = args[:modified] if args.key?(:modified)
@restricted = args[:restricted] if args.key?(:restricted)
@starred = args[:starred] if args.key?(:starred)
@trashed = args[:trashed] if args.key?(:trashed)

View File

@ -687,6 +687,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :hidden, as: 'hidden'
property :modified, as: 'modified'
property :restricted, as: 'restricted'
property :starred, as: 'starred'
property :trashed, as: 'trashed'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/
module DriveV3
VERSION = 'V3'
REVISION = '20161006'
REVISION = '20161027'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -563,6 +563,12 @@ module Google
# @return [String]
attr_accessor :mime_type
# Whether the file has been modified by this user.
# Corresponds to the JSON property `modifiedByMe`
# @return [Boolean]
attr_accessor :modified_by_me
alias_method :modified_by_me?, :modified_by_me
# The last time the file was modified by the user (RFC 3339 date-time).
# Corresponds to the JSON property `modifiedByMeTime`
# @return [DateTime]
@ -744,6 +750,7 @@ module Google
@last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
@md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
@mime_type = args[:mime_type] if args.key?(:mime_type)
@modified_by_me = args[:modified_by_me] if args.key?(:modified_by_me)
@modified_by_me_time = args[:modified_by_me_time] if args.key?(:modified_by_me_time)
@modified_time = args[:modified_time] if args.key?(:modified_time)
@name = args[:name] if args.key?(:name)

View File

@ -314,6 +314,7 @@ module Google
property :md5_checksum, as: 'md5Checksum'
property :mime_type, as: 'mimeType'
property :modified_by_me, as: 'modifiedByMe'
property :modified_by_me_time, as: 'modifiedByMeTime', type: DateTime
property :modified_time, as: 'modifiedTime', type: DateTime

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesConfigurationV1configuration
VERSION = 'V1configuration'
REVISION = '20160908'
REVISION = '20161103'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesManagementV1management
VERSION = 'V1management'
REVISION = '20160908'
REVISION = '20161103'
# Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/
module GamesV1
VERSION = 'V1'
REVISION = '20160908'
REVISION = '20161103'
# View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics/
module GenomicsV1
VERSION = 'V1'
REVISION = '20161005'
REVISION = '20160928'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -3345,8 +3345,8 @@ module Google
# @return [Array<Google::Apis::GenomicsV1::OperationEvent>]
attr_accessor :events
# Optionally provided by the caller when submitting the request that creates the
# operation.
# This field is deprecated. Use `labels` instead. Optionally provided by the
# caller when submitting the request that creates the operation.
# Corresponds to the JSON property `clientId`
# @return [String]
attr_accessor :client_id
@ -3356,6 +3356,12 @@ module Google
# @return [Hash<String,Object>]
attr_accessor :runtime_metadata
# Optionally provided by the caller when submitting the request that creates the
# operation.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
def initialize(**args)
update!(**args)
end
@ -3370,6 +3376,7 @@ module Google
@events = args[:events] if args.key?(:events)
@client_id = args[:client_id] if args.key?(:client_id)
@runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata)
@labels = args[:labels] if args.key?(:labels)
end
end

View File

@ -1314,6 +1314,7 @@ module Google
property :client_id, as: 'clientId'
hash :runtime_metadata, as: 'runtimeMetadata'
hash :labels, as: 'labels'
end
end

View File

@ -764,7 +764,8 @@ module Google
# The time this job was created, in seconds from the [epoch](http://en.
# wikipedia.org/wiki/Unix_time). Can use `>=` and/or `= 1432140000` * `projectId
# = my-project AND createTime >= 1432140000 AND createTime <= 1432150000 AND
# status = RUNNING`
# status = RUNNING` * `projectId = my-project AND labels.color = *` * `projectId
# = my-project AND labels.color = red`
# @param [Fixnum] page_size
# The maximum number of results to return. If unspecified, defaults to 256. The
# maximum value is 2048.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/gmail/api/
module GmailV1
VERSION = 'V1'
REVISION = '20160711'
REVISION = '20161019'
# View and manage your mail
AUTH_SCOPE = 'https://mail.google.com/'
@ -39,6 +39,9 @@ module Google
# Manage mailbox labels
AUTH_GMAIL_LABELS = 'https://www.googleapis.com/auth/gmail.labels'
# View your email message metadata such as labels and headers, but not the email body
AUTH_GMAIL_METADATA = 'https://www.googleapis.com/auth/gmail.metadata'
# View and modify but not delete your email
AUTH_GMAIL_MODIFY = 'https://www.googleapis.com/auth/gmail.modify'

View File

@ -870,10 +870,10 @@ module Google
# @return [String]
attr_accessor :attachment_id
# The body data of a MIME message part. May be empty for MIME container types
# that have no message body or when the body data is sent as a separate
# attachment. An attachment ID is present if the body data is contained in a
# separate attachment.
# The body data of a MIME message part as a base64url encoded string. May be
# empty for MIME container types that have no message body or when the body data
# is sent as a separate attachment. An attachment ID is present if the body data
# is contained in a separate attachment.
# Corresponds to the JSON property `data`
# @return [String]
attr_accessor :data
@ -1036,8 +1036,7 @@ module Google
# Settings associated with a send-as alias, which can be either the primary
# login address associated with the account or a custom "from" address. Send-as
# aliases correspond to the "Send Mail As" feature in the web interface. See
# for more details.
# aliases correspond to the "Send Mail As" feature in the web interface.
class SendAs
include Google::Apis::Core::Hashable
@ -1092,9 +1091,8 @@ module Google
# @return [Google::Apis::GmailV1::SmtpMsa]
attr_accessor :smtp_msa
# Whether Gmail should treat this address as an alias for the user's primary
# email address. See for more details. This setting only applies to custom "
# from" aliases.
# Whether Gmail should treat this address as an alias for the user's primary
# email address. This setting only applies to custom "from" aliases.
# Corresponds to the JSON property `treatAsAlias`
# @return [Boolean]
attr_accessor :treat_as_alias
@ -1210,7 +1208,7 @@ module Google
end
# Vacation auto-reply settings for an account. These settings correspond to the "
# Vacation responder" feature in the web interface. See for more details.
# Vacation responder" feature in the web interface.
class VacationSettings
include Google::Apis::Core::Hashable

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/identity-toolkit/v3/
module IdentitytoolkitV3
VERSION = 'V3'
REVISION = '20161010'
REVISION = '20161024'
# View and administer all your Firebase data and settings
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'

View File

@ -507,6 +507,11 @@ module Google
# @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
attr_accessor :change_email_template
#
# Corresponds to the JSON property `dynamicLinksDomain`
# @return [String]
attr_accessor :dynamic_links_domain
# Whether anonymous user is enabled.
# Corresponds to the JSON property `enableAnonymousUser`
# @return [Boolean]
@ -554,6 +559,7 @@ module Google
@api_key = args[:api_key] if args.key?(:api_key)
@authorized_domains = args[:authorized_domains] if args.key?(:authorized_domains)
@change_email_template = args[:change_email_template] if args.key?(:change_email_template)
@dynamic_links_domain = args[:dynamic_links_domain] if args.key?(:dynamic_links_domain)
@enable_anonymous_user = args[:enable_anonymous_user] if args.key?(:enable_anonymous_user)
@idp_config = args[:idp_config] if args.key?(:idp_config)
@legacy_reset_password_template = args[:legacy_reset_password_template] if args.key?(:legacy_reset_password_template)
@ -905,6 +911,12 @@ module Google
# @return [String]
attr_accessor :captcha_response
# Whether to disable the user. Only can be used by service account.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
# The name of the user.
# Corresponds to the JSON property `displayName`
# @return [String]
@ -915,6 +927,12 @@ module Google
# @return [String]
attr_accessor :email
# Mark the email as verified or not. Only can be used by service account.
# Corresponds to the JSON property `emailVerified`
# @return [Boolean]
attr_accessor :email_verified
alias_method :email_verified?, :email_verified
# The GITKit token of the authenticated user.
# Corresponds to the JSON property `idToken`
# @return [String]
@ -930,6 +948,11 @@ module Google
# @return [String]
attr_accessor :password
# The photo url of the user.
# Corresponds to the JSON property `photoUrl`
# @return [String]
attr_accessor :photo_url
def initialize(**args)
update!(**args)
end
@ -938,11 +961,14 @@ module Google
def update!(**args)
@captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge)
@captcha_response = args[:captcha_response] if args.key?(:captcha_response)
@disabled = args[:disabled] if args.key?(:disabled)
@display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@email_verified = args[:email_verified] if args.key?(:email_verified)
@id_token = args[:id_token] if args.key?(:id_token)
@instance_id = args[:instance_id] if args.key?(:instance_id)
@password = args[:password] if args.key?(:password)
@photo_url = args[:photo_url] if args.key?(:photo_url)
end
end
@ -950,6 +976,12 @@ module Google
class UploadAccountRequest
include Google::Apis::Core::Hashable
# Whether allow overwrite existing account when user local_id exists.
# Corresponds to the JSON property `allowOverwrite`
# @return [Boolean]
attr_accessor :allow_overwrite
alias_method :allow_overwrite?, :allow_overwrite
# GCP project number of the requesting delegated app. Currently only intended
# for Firebase V1 migration.
# Corresponds to the JSON property `delegatedProjectNumber`
@ -1005,6 +1037,7 @@ module Google
# Update properties of this object
def update!(**args)
@allow_overwrite = args[:allow_overwrite] if args.key?(:allow_overwrite)
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
@hash_algorithm = args[:hash_algorithm] if args.key?(:hash_algorithm)
@memory_cost = args[:memory_cost] if args.key?(:memory_cost)
@ -1646,6 +1679,11 @@ module Google
# @return [Array<Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo>]
attr_accessor :provider_user_info
# The user's plain text password.
# Corresponds to the JSON property `rawPassword`
# @return [String]
attr_accessor :raw_password
# The user's password salt.
# Corresponds to the JSON property `salt`
# @return [String]
@ -1684,6 +1722,7 @@ module Google
@password_updated_at = args[:password_updated_at] if args.key?(:password_updated_at)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
@raw_password = args[:raw_password] if args.key?(:raw_password)
@salt = args[:salt] if args.key?(:salt)
@screen_name = args[:screen_name] if args.key?(:screen_name)
@valid_since = args[:valid_since] if args.key?(:valid_since)
@ -1725,11 +1764,6 @@ module Google
# @return [String]
attr_accessor :raw_id
# Raw IDP-returned user info.
# Corresponds to the JSON property `rawUserInfo`
# @return [String]
attr_accessor :raw_user_info
# User's screen name at Twitter or login name at Github.
# Corresponds to the JSON property `screenName`
# @return [String]
@ -1747,7 +1781,6 @@ module Google
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_id = args[:provider_id] if args.key?(:provider_id)
@raw_id = args[:raw_id] if args.key?(:raw_id)
@raw_user_info = args[:raw_user_info] if args.key?(:raw_user_info)
@screen_name = args[:screen_name] if args.key?(:screen_name)
end
end

View File

@ -364,6 +364,7 @@ module Google
collection :authorized_domains, as: 'authorizedDomains'
property :change_email_template, as: 'changeEmailTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation
property :dynamic_links_domain, as: 'dynamicLinksDomain'
property :enable_anonymous_user, as: 'enableAnonymousUser'
collection :idp_config, as: 'idpConfig', class: Google::Apis::IdentitytoolkitV3::IdpConfig, decorator: Google::Apis::IdentitytoolkitV3::IdpConfig::Representation
@ -464,17 +465,21 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :captcha_challenge, as: 'captchaChallenge'
property :captcha_response, as: 'captchaResponse'
property :disabled, as: 'disabled'
property :display_name, as: 'displayName'
property :email, as: 'email'
property :email_verified, as: 'emailVerified'
property :id_token, as: 'idToken'
property :instance_id, as: 'instanceId'
property :password, as: 'password'
property :photo_url, as: 'photoUrl'
end
end
class UploadAccountRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allow_overwrite, as: 'allowOverwrite'
property :delegated_project_number, as: 'delegatedProjectNumber'
property :hash_algorithm, as: 'hashAlgorithm'
property :memory_cost, as: 'memoryCost'
@ -639,6 +644,7 @@ module Google
property :photo_url, as: 'photoUrl'
collection :provider_user_info, as: 'providerUserInfo', class: Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo, decorator: Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo::Representation
property :raw_password, as: 'rawPassword'
property :salt, :base64 => true, as: 'salt'
property :screen_name, as: 'screenName'
property :valid_since, as: 'validSince'
@ -654,7 +660,6 @@ module Google
property :photo_url, as: 'photoUrl'
property :provider_id, as: 'providerId'
property :raw_id, as: 'rawId'
property :raw_user_info, as: 'rawUserInfo'
property :screen_name, as: 'screenName'
end
end

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/natural-language/
module LanguageV1beta1
VERSION = 'V1beta1'
REVISION = '20161006'
REVISION = '20161103'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -505,8 +505,9 @@ module Google
class Sentiment
include Google::Apis::Core::Hashable
# Polarity of the sentiment in the [-1.0, 1.0] range. Larger numbers
# represent more positive sentiments.
# DEPRECATED FIELD - This field is being deprecated in
# favor of score. Please refer to our documentation at
# https://cloud.google.com/natural-language/docs for more information.
# Corresponds to the JSON property `polarity`
# @return [Float]
attr_accessor :polarity

View File

@ -30,10 +30,10 @@ module Google
# require 'google/apis/language_v1beta1'
#
# Language = Google::Apis::LanguageV1beta1 # Alias the module
# service = Language::CloudNaturalLanguageAPIService.new
# service = Language::CloudNaturalLanguageService.new
#
# @see https://cloud.google.com/natural-language/
class CloudNaturalLanguageAPIService < Google::Apis::Core::BaseService
class CloudNaturalLanguageService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/logging/docs/
module LoggingV2beta1
VERSION = 'V2beta1'
REVISION = '20161017'
REVISION = '20161107'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -114,6 +114,10 @@ module Google
end
# Describes a sink used to export log entries outside of Stackdriver Logging.
# A logs filter controls which log entries are exported. Sinks can have a
# start time and an end time; these can be used to place log entries from an
# exact time range into a particular destination. If both `start_time` and
# `end_time` are present, then `start_time` must be less than `end_time`.
class LogSink
include Google::Apis::Core::Hashable
@ -134,11 +138,14 @@ module Google
# log entry that was originally written to Stackdriver Logging.
# Example filter (V2 format):
# logName=projects/my-projectid/logs/syslog AND severity>=ERROR
# The maximum length of the filter is 20000 characters.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter
# Optional. Time at which this sink expires.
# Optional. Time at which this sink will stop exporting log entries. If this
# value is present, then log entries are exported only if `entry.timestamp` <
# `end_time`.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
@ -152,10 +159,9 @@ module Google
# @return [String]
attr_accessor :name
# Optional. Time range for which this sink is active.
# Logs are exported only if start_time <= entry.timestamp < end_time
# Both start_time and end_time may be omitted to specify
# (half) infinite ranges. The start_time must be less than the end_time.
# Optional. The time at which this sink will begin exporting log entries. If
# this value is present, then log entries are exported only if `start_time`
# <=`entry.timestamp`.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
@ -168,15 +174,11 @@ module Google
# @return [String]
attr_accessor :output_version_format
# Output only. The IAM identity to which the destination needs to grant write
# access. This may be a service account or a group.
# Examples (Do not assume these specific values):
# "serviceAccount:cloud-logs@system.gserviceaccount.com"
# "group:cloud-logs@google.com"
# For GCS destinations, the role "roles/owner" is required on the bucket
# For Cloud Pubsub destinations, the role "roles/pubsub.publisher" is
# required on the topic
# For BigQuery, the role "roles/editor" is required on the dataset
# Output only. An IAM identity&mdash;a service account or group&mdash;that
# will write exported log entries to the destination on behalf of Stackdriver
# Logging. You must grant this identity write-access to the destination.
# Consult the destination service's documentation to determine the exact role
# that must be granted.
# Corresponds to the JSON property `writerIdentity`
# @return [String]
attr_accessor :writer_identity
@ -209,6 +211,7 @@ module Google
# Required. An [advanced logs filter](/logging/docs/view/advanced_filters).
# Example: `"resource.type=gae_app AND severity>=ERROR"`.
# The maximum length of the filter is 20000 characters.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter
@ -878,9 +881,9 @@ module Google
# @return [String]
attr_accessor :request_id
# Whether this is the first RequestLog entry for this request. If an active
# request has several RequestLog entries written to Cloud Logging, this field
# will be set for one of them.
# Whether this is the first `RequestLog` entry for this request. If an
# active request has several `RequestLog` entries written to Stackdriver
# Logging, then this field will be set for one of them.
# Corresponds to the JSON property `first`
# @return [Boolean]
attr_accessor :first
@ -986,7 +989,7 @@ module Google
# @return [String]
attr_accessor :app_id
# Cloud Trace identifier for this request.
# Stackdriver Trace identifier for this request.
# Corresponds to the JSON property `traceId`
# @return [String]
attr_accessor :trace_id
@ -1107,6 +1110,7 @@ module Google
# Optional. A filter that chooses which log entries to return. See [Advanced
# Logs Filters](/logging/docs/view/advanced_filters). Only log entries that
# match the filter are returned. An empty filter matches all log entries.
# The maximum length of the filter is 20000 characters.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter

View File

@ -260,6 +260,12 @@ module Google
# resource and the sink identifier. If the sink does not exist, this method
# creates the sink. Example: `"projects/my-project-id/sinks/my-sink-id"`.
# @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
# @param [Boolean] unique_writer_identity
# Optional. Whether the sink will have a dedicated service account returned
# in the sink's writer_identity. Set this field to be true to export
# logs from one project to a different project. This field is ignored for
# non-project sinks (e.g. organization sinks) because those sinks are
# required to have dedicated service accounts.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
@ -277,13 +283,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_project_sink(sink_name, log_sink_object = nil, quota_user: nil, fields: 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.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.request_object = log_sink_object
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['sinkName'] = sink_name unless sink_name.nil?
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
@ -326,6 +333,12 @@ module Google
# Example: `"projects/my-project-id"`.
# The new sink must be provided in the request.
# @param [Google::Apis::LoggingV2beta1::LogSink] log_sink_object
# @param [Boolean] unique_writer_identity
# Optional. Whether the sink will have a dedicated service account returned
# in the sink's writer_identity. Set this field to be true to export
# logs from one project to a different project. This field is ignored for
# non-project sinks (e.g. organization sinks) because those sinks are
# required to have dedicated service accounts.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
@ -343,13 +356,14 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_project_sink(parent, log_sink_object = nil, quota_user: nil, fields: 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.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.request_object = log_sink_object
command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation
command.response_class = Google::Apis::LoggingV2beta1::LogSink
command.params['parent'] = parent unless parent.nil?
command.query['uniqueWriterIdentity'] = unique_writer_identity unless unique_writer_identity.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
@ -357,7 +371,7 @@ module Google
# Lists sinks.
# @param [String] parent
# Required. The cloud resource containing the sinks.
# Required. The resource name where this sink was created.
# Example: `"projects/my-logging-project"`.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request.

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20161017'
REVISION = '20161031'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,19 +22,19 @@ module Google
module Apis
module MonitoringV3
# A specific metric identified by specifying values for all of the labels of a
# A specific metric, identified by specifying values for all of the labels of a
# MetricDescriptor.
class Metric
include Google::Apis::Core::Hashable
# The set of labels that uniquely identify a metric. To specify a metric, all
# labels enumerated in the MetricDescriptor must be assigned values.
# The set of label values that uniquely identify this metric. All labels listed
# in the MetricDescriptor must be assigned values.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
# An existing metric type, see google.api.MetricDescriptor. For example, compute.
# googleapis.com/instance/cpu/usage_time.
# An existing metric type, see google.api.MetricDescriptor. For example, custom.
# googleapis.com/invoice/paid/amount.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -274,7 +274,7 @@ module Google
class TimeSeries
include Google::Apis::Core::Hashable
# A specific metric identified by specifying values for all of the labels of a
# A specific metric, identified by specifying values for all of the labels of a
# MetricDescriptor.
# Corresponds to the JSON property `metric`
# @return [Google::Apis::MonitoringV3::Metric]
@ -340,7 +340,9 @@ module Google
end
end
# Defines a metric type and its schema.
# Defines a metric type and its schema. Once a metric descriptor is created,
# deleting or altering it stops data collection and makes the metric type's
# existing data unusable.
class MetricDescriptor
include Google::Apis::Core::Hashable
@ -401,9 +403,10 @@ module Google
attr_accessor :unit
# The set of labels that can be used to describe a specific instance of this
# metric type. For example, the compute.googleapis.com/instance/network/
# received_bytes_count metric type has a label, loadbalanced, that specifies
# whether the traffic was received through a load balanced IP address.
# metric type. For example, the appengine.googleapis.com/http/server/
# response_latencies metric type has a label for the HTTP response code,
# response_code, so you can look at latencies for successful responses or just
# for responses that failed.
# Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::MonitoringV3::LabelDescriptor>]
attr_accessor :labels
@ -426,24 +429,23 @@ module Google
# @return [String]
attr_accessor :display_name
# Resource name. The format of the name may vary between different
# implementations. For examples:
# projects/`project_id`/metricDescriptors/`type=**`
# metricDescriptors/`type=**`
# The resource name of the metric descriptor. Depending on the implementation,
# the name typically includes: (1) the parent resource name that defines the
# scope of the metric type or of its data; and (2) the metric's URL-encoded type,
# which also appears in the type field of this descriptor. For example,
# following is the resource name of a custom metric within the GCP project
# 123456789:
# &quot;projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%
# 2Fpaid%2Famount&quot;
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The metric type including a DNS name prefix, for example &quot;compute.
# googleapis.com/instance/cpu/utilization&quot;. Metric types should use a
# natural hierarchical grouping such as the following:
# compute.googleapis.com/instance/cpu/utilization
# compute.googleapis.com/instance/disk/read_ops_count
# compute.googleapis.com/instance/network/received_bytes_count
# Note that if the metric type changes, the monitoring data will be discontinued,
# and anything depends on it will break, such as monitoring dashboards,
# alerting rules and quota limits. Therefore, once a metric has been published,
# its type should be immutable.
# The metric type, including its DNS name prefix. The type is not URL-encoded.
# All user-defined metric types have the DNS name custom.googleapis.com. Metric
# types should use a natural hierarchical grouping. For example:
# &quot;custom.googleapis.com/invoice/paid/amount&quot;
# &quot;appengine.googleapis.com/http/server/response_latencies&quot;
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/accounts/docs/OAuth2
module Oauth2V2
VERSION = 'V2'
REVISION = '20160915'
REVISION = '20161103'
# Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/speed/docs/insights/v2/getting-started
module PagespeedonlineV2
VERSION = 'V2'
REVISION = '20160811'
REVISION = '20161101'
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/domains/
module PlusDomainsV1
VERSION = 'V1'
REVISION = '20161018'
REVISION = '20161107'
# View your circles and the people and pages in them
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/api/
module PlusV1
VERSION = 'V1'
REVISION = '20161018'
REVISION = '20161107'
# Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/sheets/
module SheetsV4
VERSION = 'V4'
REVISION = '20161014'
REVISION = '20161105'
# View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'

View File

@ -604,16 +604,26 @@ module Google
class UpdateValuesResponse
include Google::Apis::Core::Hashable
# The range (in A1 notation) that updates were applied to.
# Corresponds to the JSON property `updatedRange`
# @return [String]
attr_accessor :updated_range
# The number of columns where at least one cell in the column was updated.
# Corresponds to the JSON property `updatedColumns`
# @return [Fixnum]
attr_accessor :updated_columns
# The number of cells updated.
# Corresponds to the JSON property `updatedCells`
# @return [Fixnum]
attr_accessor :updated_cells
# Data within a range of the spreadsheet.
# Corresponds to the JSON property `updatedData`
# @return [Google::Apis::SheetsV4::ValueRange]
attr_accessor :updated_data
# The range (in A1 notation) that updates were applied to.
# Corresponds to the JSON property `updatedRange`
# @return [String]
attr_accessor :updated_range
# The spreadsheet the updates were applied to.
# Corresponds to the JSON property `spreadsheetId`
# @return [String]
@ -624,22 +634,18 @@ module Google
# @return [Fixnum]
attr_accessor :updated_rows
# The number of cells updated.
# Corresponds to the JSON property `updatedCells`
# @return [Fixnum]
attr_accessor :updated_cells
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@updated_range = args[:updated_range] if args.key?(:updated_range)
@updated_columns = args[:updated_columns] if args.key?(:updated_columns)
@updated_cells = args[:updated_cells] if args.key?(:updated_cells)
@updated_data = args[:updated_data] if args.key?(:updated_data)
@updated_range = args[:updated_range] if args.key?(:updated_range)
@spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
@updated_rows = args[:updated_rows] if args.key?(:updated_rows)
@updated_cells = args[:updated_cells] if args.key?(:updated_cells)
end
end
@ -1042,6 +1048,11 @@ module Google
# @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse]
attr_accessor :delete_conditional_format_rule
# The result of adding a banded range.
# Corresponds to the JSON property `addBanding`
# @return [Google::Apis::SheetsV4::AddBandingResponse]
attr_accessor :add_banding
# The result of duplicating a sheet.
# Corresponds to the JSON property `duplicateSheet`
# @return [Google::Apis::SheetsV4::DuplicateSheetResponse]
@ -1071,6 +1082,7 @@ module Google
@update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
@add_chart = args[:add_chart] if args.key?(:add_chart)
@delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
@add_banding = args[:add_banding] if args.key?(:add_banding)
@duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
@duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
@add_named_range = args[:add_named_range] if args.key?(:add_named_range)
@ -1225,6 +1237,25 @@ module Google
end
end
# The result of adding a banded range.
class AddBandingResponse
include Google::Apis::Core::Hashable
# A banded (alternating colors) range in a sheet.
# Corresponds to the JSON property `bandedRange`
# @return [Google::Apis::SheetsV4::BandedRange]
attr_accessor :banded_range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@banded_range = args[:banded_range] if args.key?(:banded_range)
end
end
# A run of a text format. The format of this run continues until the start
# index of the next run.
# When updating, all fields must be set.
@ -1559,6 +1590,32 @@ module Google
# @return [Array<Google::Apis::SheetsV4::ValueRange>]
attr_accessor :data
# Determines how values in the response should be rendered.
# The default render option is ValueRenderOption.FORMATTED_VALUE.
# Corresponds to the JSON property `responseValueRenderOption`
# @return [String]
attr_accessor :response_value_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].
# Corresponds to the JSON property `responseDateTimeRenderOption`
# @return [String]
attr_accessor :response_date_time_render_option
# Determines if the update response should include the values
# of the cells that were updated. By default, responses
# do not include the updated values. The `updatedData` field within
# each of the BatchUpdateValuesResponse.responses will contain
# the updated values. If the range to write was larger than than the range
# actually written, the response will include all values in the requested
# range (excluding trailing empty rows and columns).
# Corresponds to the JSON property `includeValuesInResponse`
# @return [Boolean]
attr_accessor :include_values_in_response
alias_method :include_values_in_response?, :include_values_in_response
def initialize(**args)
update!(**args)
end
@ -1567,6 +1624,9 @@ module Google
def update!(**args)
@value_input_option = args[:value_input_option] if args.key?(:value_input_option)
@data = args[:data] if args.key?(:data)
@response_value_render_option = args[:response_value_render_option] if args.key?(:response_value_render_option)
@response_date_time_render_option = args[:response_date_time_render_option] if args.key?(:response_date_time_render_option)
@include_values_in_response = args[:include_values_in_response] if args.key?(:include_values_in_response)
end
end
@ -2668,18 +2728,42 @@ module Google
class BatchUpdateSpreadsheetRequest
include Google::Apis::Core::Hashable
# Determines if the update response should include the spreadsheet
# resource.
# Corresponds to the JSON property `includeSpreadsheetInResponse`
# @return [Boolean]
attr_accessor :include_spreadsheet_in_response
alias_method :include_spreadsheet_in_response?, :include_spreadsheet_in_response
# A list of updates to apply to the spreadsheet.
# Corresponds to the JSON property `requests`
# @return [Array<Google::Apis::SheetsV4::Request>]
attr_accessor :requests
# Limits the ranges included in the response spreadsheet.
# Meaningful only if include_spreadsheet_response is 'true'.
# Corresponds to the JSON property `responseRanges`
# @return [Array<String>]
attr_accessor :response_ranges
# True if grid data should be returned. Meaningful only if
# if include_spreadsheet_response is 'true'.
# This parameter is ignored if a field mask was set in the request.
# Corresponds to the JSON property `responseIncludeGridData`
# @return [Boolean]
attr_accessor :response_include_grid_data
alias_method :response_include_grid_data?, :response_include_grid_data
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@include_spreadsheet_in_response = args[:include_spreadsheet_in_response] if args.key?(:include_spreadsheet_in_response)
@requests = args[:requests] if args.key?(:requests)
@response_ranges = args[:response_ranges] if args.key?(:response_ranges)
@response_include_grid_data = args[:response_include_grid_data] if args.key?(:response_include_grid_data)
end
end
@ -3554,6 +3638,25 @@ module Google
end
end
# Removes the banded range with the given ID from the spreadsheet.
class DeleteBandingRequest
include Google::Apis::Core::Hashable
# The ID of the banded range to delete.
# Corresponds to the JSON property `bandedRangeId`
# @return [Fixnum]
attr_accessor :banded_range_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@banded_range_id = args[:banded_range_id] if args.key?(:banded_range_id)
end
end
# The default filter associated with a sheet.
class BasicFilter
include Google::Apis::Core::Hashable
@ -3855,6 +3958,25 @@ module Google
end
end
# Adds a new banded range to the spreadsheet.
class AddBandingRequest
include Google::Apis::Core::Hashable
# A banded (alternating colors) range in a sheet.
# Corresponds to the JSON property `bandedRange`
# @return [Google::Apis::SheetsV4::BandedRange]
attr_accessor :banded_range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@banded_range = args[:banded_range] if args.key?(:banded_range)
end
end
# Adds new cells after the last row with data in a sheet,
# inserting new rows into the sheet if necessary.
class AppendCellsRequest
@ -4124,25 +4246,6 @@ module Google
end
end
# Sets the basic filter associated with a sheet.
class SetBasicFilterRequest
include Google::Apis::Core::Hashable
# The default filter associated with a sheet.
# Corresponds to the JSON property `filter`
# @return [Google::Apis::SheetsV4::BasicFilter]
attr_accessor :filter
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@filter = args[:filter] if args.key?(:filter)
end
end
# Update an embedded object's position (such as a moving or resizing a
# chart or image).
class UpdateEmbeddedObjectPositionRequest
@ -4181,6 +4284,25 @@ module Google
end
end
# Sets the basic filter associated with a sheet.
class SetBasicFilterRequest
include Google::Apis::Core::Hashable
# The default filter associated with a sheet.
# Corresponds to the JSON property `filter`
# @return [Google::Apis::SheetsV4::BasicFilter]
attr_accessor :filter
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@filter = args[:filter] if args.key?(:filter)
end
end
# Automatically resizes one or more dimensions based on the contents
# of the cells in that dimension.
class AutoResizeDimensionsRequest
@ -4224,6 +4346,445 @@ module Google
end
end
# Properties referring a single dimension (either row or column). If both
# BandedRange.row_properties and BandedRange.column_properties are
# set, the fill colors are applied to cells according to the following rules:
# * header_color and footer_color take priority over band colors.
# * first_band_color takes priority over second_band_color.
# * row_properties takes priority over column_properties.
# For example, the first row color takes priority over the first column
# color, but the first column color takes priority over the second row color.
# Similarly, the row header takes priority over the column header in the
# top left cell, but the column header takes priority over the first row
# color if the row header is not set.
class BandingProperties
include Google::Apis::Core::Hashable
# Represents a color in the RGBA color space. This representation is designed
# for simplicity of conversion to/from color representations in various
# languages over compactness; for example, the fields of this representation
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
# method in iOS; and, with just a little work, it can be easily formatted into
# a CSS "rgba()" string in JavaScript, as well. Here are some examples:
# Example (Java):
# import com.google.type.Color;
# // ...
# public static java.awt.Color fromProto(Color protocolor) `
# float alpha = protocolor.hasAlpha()
# ? protocolor.getAlpha().getValue()
# : 1.0;
# return new java.awt.Color(
# protocolor.getRed(),
# protocolor.getGreen(),
# protocolor.getBlue(),
# alpha);
# `
# public static Color toProto(java.awt.Color color) `
# float red = (float) color.getRed();
# float green = (float) color.getGreen();
# float blue = (float) color.getBlue();
# float denominator = 255.0;
# Color.Builder resultBuilder =
# Color
# .newBuilder()
# .setRed(red / denominator)
# .setGreen(green / denominator)
# .setBlue(blue / denominator);
# int alpha = color.getAlpha();
# if (alpha != 255) `
# result.setAlpha(
# FloatValue
# .newBuilder()
# .setValue(((float) alpha) / denominator)
# .build());
# `
# return resultBuilder.build();
# `
# // ...
# Example (iOS / Obj-C):
# // ...
# static UIColor* fromProto(Color* protocolor) `
# float red = [protocolor red];
# float green = [protocolor green];
# float blue = [protocolor blue];
# FloatValue* alpha_wrapper = [protocolor alpha];
# float alpha = 1.0;
# if (alpha_wrapper != nil) `
# alpha = [alpha_wrapper value];
# `
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
# `
# static Color* toProto(UIColor* color) `
# CGFloat red, green, blue, alpha;
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
# return nil;
# `
# Color* result = [Color alloc] init];
# [result setRed:red];
# [result setGreen:green];
# [result setBlue:blue];
# if (alpha <= 0.9999) `
# [result setAlpha:floatWrapperWithValue(alpha)];
# `
# [result autorelease];
# return result;
# `
# // ...
# Example (JavaScript):
# // ...
# var protoToCssColor = function(rgb_color) `
# var redFrac = rgb_color.red || 0.0;
# var greenFrac = rgb_color.green || 0.0;
# var blueFrac = rgb_color.blue || 0.0;
# var red = Math.floor(redFrac * 255);
# var green = Math.floor(greenFrac * 255);
# var blue = Math.floor(blueFrac * 255);
# if (!('alpha' in rgb_color)) `
# return rgbToCssColor_(red, green, blue);
# `
# var alphaFrac = rgb_color.alpha.value || 0.0;
# var rgbParams = [red, green, blue].join(',');
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
# `;
# var rgbToCssColor_ = function(red, green, blue) `
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
# var hexString = rgbNumber.toString(16);
# var missingZeros = 6 - hexString.length;
# var resultBuilder = ['#'];
# for (var i = 0; i < missingZeros; i++) `
# resultBuilder.push('0');
# `
# resultBuilder.push(hexString);
# return resultBuilder.join('');
# `;
# // ...
# Corresponds to the JSON property `footerColor`
# @return [Google::Apis::SheetsV4::Color]
attr_accessor :footer_color
# Represents a color in the RGBA color space. This representation is designed
# for simplicity of conversion to/from color representations in various
# languages over compactness; for example, the fields of this representation
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
# method in iOS; and, with just a little work, it can be easily formatted into
# a CSS "rgba()" string in JavaScript, as well. Here are some examples:
# Example (Java):
# import com.google.type.Color;
# // ...
# public static java.awt.Color fromProto(Color protocolor) `
# float alpha = protocolor.hasAlpha()
# ? protocolor.getAlpha().getValue()
# : 1.0;
# return new java.awt.Color(
# protocolor.getRed(),
# protocolor.getGreen(),
# protocolor.getBlue(),
# alpha);
# `
# public static Color toProto(java.awt.Color color) `
# float red = (float) color.getRed();
# float green = (float) color.getGreen();
# float blue = (float) color.getBlue();
# float denominator = 255.0;
# Color.Builder resultBuilder =
# Color
# .newBuilder()
# .setRed(red / denominator)
# .setGreen(green / denominator)
# .setBlue(blue / denominator);
# int alpha = color.getAlpha();
# if (alpha != 255) `
# result.setAlpha(
# FloatValue
# .newBuilder()
# .setValue(((float) alpha) / denominator)
# .build());
# `
# return resultBuilder.build();
# `
# // ...
# Example (iOS / Obj-C):
# // ...
# static UIColor* fromProto(Color* protocolor) `
# float red = [protocolor red];
# float green = [protocolor green];
# float blue = [protocolor blue];
# FloatValue* alpha_wrapper = [protocolor alpha];
# float alpha = 1.0;
# if (alpha_wrapper != nil) `
# alpha = [alpha_wrapper value];
# `
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
# `
# static Color* toProto(UIColor* color) `
# CGFloat red, green, blue, alpha;
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
# return nil;
# `
# Color* result = [Color alloc] init];
# [result setRed:red];
# [result setGreen:green];
# [result setBlue:blue];
# if (alpha <= 0.9999) `
# [result setAlpha:floatWrapperWithValue(alpha)];
# `
# [result autorelease];
# return result;
# `
# // ...
# Example (JavaScript):
# // ...
# var protoToCssColor = function(rgb_color) `
# var redFrac = rgb_color.red || 0.0;
# var greenFrac = rgb_color.green || 0.0;
# var blueFrac = rgb_color.blue || 0.0;
# var red = Math.floor(redFrac * 255);
# var green = Math.floor(greenFrac * 255);
# var blue = Math.floor(blueFrac * 255);
# if (!('alpha' in rgb_color)) `
# return rgbToCssColor_(red, green, blue);
# `
# var alphaFrac = rgb_color.alpha.value || 0.0;
# var rgbParams = [red, green, blue].join(',');
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
# `;
# var rgbToCssColor_ = function(red, green, blue) `
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
# var hexString = rgbNumber.toString(16);
# var missingZeros = 6 - hexString.length;
# var resultBuilder = ['#'];
# for (var i = 0; i < missingZeros; i++) `
# resultBuilder.push('0');
# `
# resultBuilder.push(hexString);
# return resultBuilder.join('');
# `;
# // ...
# Corresponds to the JSON property `headerColor`
# @return [Google::Apis::SheetsV4::Color]
attr_accessor :header_color
# Represents a color in the RGBA color space. This representation is designed
# for simplicity of conversion to/from color representations in various
# languages over compactness; for example, the fields of this representation
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
# method in iOS; and, with just a little work, it can be easily formatted into
# a CSS "rgba()" string in JavaScript, as well. Here are some examples:
# Example (Java):
# import com.google.type.Color;
# // ...
# public static java.awt.Color fromProto(Color protocolor) `
# float alpha = protocolor.hasAlpha()
# ? protocolor.getAlpha().getValue()
# : 1.0;
# return new java.awt.Color(
# protocolor.getRed(),
# protocolor.getGreen(),
# protocolor.getBlue(),
# alpha);
# `
# public static Color toProto(java.awt.Color color) `
# float red = (float) color.getRed();
# float green = (float) color.getGreen();
# float blue = (float) color.getBlue();
# float denominator = 255.0;
# Color.Builder resultBuilder =
# Color
# .newBuilder()
# .setRed(red / denominator)
# .setGreen(green / denominator)
# .setBlue(blue / denominator);
# int alpha = color.getAlpha();
# if (alpha != 255) `
# result.setAlpha(
# FloatValue
# .newBuilder()
# .setValue(((float) alpha) / denominator)
# .build());
# `
# return resultBuilder.build();
# `
# // ...
# Example (iOS / Obj-C):
# // ...
# static UIColor* fromProto(Color* protocolor) `
# float red = [protocolor red];
# float green = [protocolor green];
# float blue = [protocolor blue];
# FloatValue* alpha_wrapper = [protocolor alpha];
# float alpha = 1.0;
# if (alpha_wrapper != nil) `
# alpha = [alpha_wrapper value];
# `
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
# `
# static Color* toProto(UIColor* color) `
# CGFloat red, green, blue, alpha;
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
# return nil;
# `
# Color* result = [Color alloc] init];
# [result setRed:red];
# [result setGreen:green];
# [result setBlue:blue];
# if (alpha <= 0.9999) `
# [result setAlpha:floatWrapperWithValue(alpha)];
# `
# [result autorelease];
# return result;
# `
# // ...
# Example (JavaScript):
# // ...
# var protoToCssColor = function(rgb_color) `
# var redFrac = rgb_color.red || 0.0;
# var greenFrac = rgb_color.green || 0.0;
# var blueFrac = rgb_color.blue || 0.0;
# var red = Math.floor(redFrac * 255);
# var green = Math.floor(greenFrac * 255);
# var blue = Math.floor(blueFrac * 255);
# if (!('alpha' in rgb_color)) `
# return rgbToCssColor_(red, green, blue);
# `
# var alphaFrac = rgb_color.alpha.value || 0.0;
# var rgbParams = [red, green, blue].join(',');
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
# `;
# var rgbToCssColor_ = function(red, green, blue) `
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
# var hexString = rgbNumber.toString(16);
# var missingZeros = 6 - hexString.length;
# var resultBuilder = ['#'];
# for (var i = 0; i < missingZeros; i++) `
# resultBuilder.push('0');
# `
# resultBuilder.push(hexString);
# return resultBuilder.join('');
# `;
# // ...
# Corresponds to the JSON property `secondBandColor`
# @return [Google::Apis::SheetsV4::Color]
attr_accessor :second_band_color
# Represents a color in the RGBA color space. This representation is designed
# for simplicity of conversion to/from color representations in various
# languages over compactness; for example, the fields of this representation
# can be trivially provided to the constructor of "java.awt.Color" in Java; it
# can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
# method in iOS; and, with just a little work, it can be easily formatted into
# a CSS "rgba()" string in JavaScript, as well. Here are some examples:
# Example (Java):
# import com.google.type.Color;
# // ...
# public static java.awt.Color fromProto(Color protocolor) `
# float alpha = protocolor.hasAlpha()
# ? protocolor.getAlpha().getValue()
# : 1.0;
# return new java.awt.Color(
# protocolor.getRed(),
# protocolor.getGreen(),
# protocolor.getBlue(),
# alpha);
# `
# public static Color toProto(java.awt.Color color) `
# float red = (float) color.getRed();
# float green = (float) color.getGreen();
# float blue = (float) color.getBlue();
# float denominator = 255.0;
# Color.Builder resultBuilder =
# Color
# .newBuilder()
# .setRed(red / denominator)
# .setGreen(green / denominator)
# .setBlue(blue / denominator);
# int alpha = color.getAlpha();
# if (alpha != 255) `
# result.setAlpha(
# FloatValue
# .newBuilder()
# .setValue(((float) alpha) / denominator)
# .build());
# `
# return resultBuilder.build();
# `
# // ...
# Example (iOS / Obj-C):
# // ...
# static UIColor* fromProto(Color* protocolor) `
# float red = [protocolor red];
# float green = [protocolor green];
# float blue = [protocolor blue];
# FloatValue* alpha_wrapper = [protocolor alpha];
# float alpha = 1.0;
# if (alpha_wrapper != nil) `
# alpha = [alpha_wrapper value];
# `
# return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
# `
# static Color* toProto(UIColor* color) `
# CGFloat red, green, blue, alpha;
# if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
# return nil;
# `
# Color* result = [Color alloc] init];
# [result setRed:red];
# [result setGreen:green];
# [result setBlue:blue];
# if (alpha <= 0.9999) `
# [result setAlpha:floatWrapperWithValue(alpha)];
# `
# [result autorelease];
# return result;
# `
# // ...
# Example (JavaScript):
# // ...
# var protoToCssColor = function(rgb_color) `
# var redFrac = rgb_color.red || 0.0;
# var greenFrac = rgb_color.green || 0.0;
# var blueFrac = rgb_color.blue || 0.0;
# var red = Math.floor(redFrac * 255);
# var green = Math.floor(greenFrac * 255);
# var blue = Math.floor(blueFrac * 255);
# if (!('alpha' in rgb_color)) `
# return rgbToCssColor_(red, green, blue);
# `
# var alphaFrac = rgb_color.alpha.value || 0.0;
# var rgbParams = [red, green, blue].join(',');
# return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
# `;
# var rgbToCssColor_ = function(red, green, blue) `
# var rgbNumber = new Number((red << 16) | (green << 8) | blue);
# var hexString = rgbNumber.toString(16);
# var missingZeros = 6 - hexString.length;
# var resultBuilder = ['#'];
# for (var i = 0; i < missingZeros; i++) `
# resultBuilder.push('0');
# `
# resultBuilder.push(hexString);
# return resultBuilder.join('');
# `;
# // ...
# Corresponds to the JSON property `firstBandColor`
# @return [Google::Apis::SheetsV4::Color]
attr_accessor :first_band_color
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@footer_color = args[:footer_color] if args.key?(:footer_color)
@header_color = args[:header_color] if args.key?(:header_color)
@second_band_color = args[:second_band_color] if args.key?(:second_band_color)
@first_band_color = args[:first_band_color] if args.key?(:first_band_color)
end
end
# A single grouping (either row or column) in a pivot table.
class PivotGroup
include Google::Apis::Core::Hashable
@ -4354,6 +4915,33 @@ module Google
end
end
# Updates properties of the supplied banded range.
class UpdateBandingRequest
include Google::Apis::Core::Hashable
# A banded (alternating colors) range in a sheet.
# Corresponds to the JSON property `bandedRange`
# @return [Google::Apis::SheetsV4::BandedRange]
attr_accessor :banded_range
# The fields that should be updated. At least one field must be specified.
# The root `bandedRange` is implied and should not be specified.
# A single `"*"` can be used as short-hand for listing every field.
# Corresponds to the JSON property `fields`
# @return [String]
attr_accessor :fields
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@banded_range = args[:banded_range] if args.key?(:banded_range)
@fields = args[:fields] if args.key?(:fields)
end
end
# The data included in a domain or series.
class ChartData
include Google::Apis::Core::Hashable
@ -4424,6 +5012,11 @@ module Google
# @return [Array<Google::Apis::SheetsV4::GridData>]
attr_accessor :data
# The banded (i.e. alternating colors) ranges on this sheet.
# Corresponds to the JSON property `bandedRanges`
# @return [Array<Google::Apis::SheetsV4::BandedRange>]
attr_accessor :banded_ranges
def initialize(**args)
update!(**args)
end
@ -4438,6 +5031,7 @@ module Google
@basic_filter = args[:basic_filter] if args.key?(:basic_filter)
@merges = args[:merges] if args.key?(:merges)
@data = args[:data] if args.key?(:data)
@banded_ranges = args[:banded_ranges] if args.key?(:banded_ranges)
end
end
@ -4640,6 +5234,11 @@ module Google
# @return [String]
attr_accessor :spreadsheet_id
# Resource that represents a spreadsheet.
# Corresponds to the JSON property `updatedSpreadsheet`
# @return [Google::Apis::SheetsV4::Spreadsheet]
attr_accessor :updated_spreadsheet
# The reply of the updates. This maps 1:1 with the updates, although
# replies to some requests may be empty.
# Corresponds to the JSON property `replies`
@ -4653,6 +5252,7 @@ module Google
# Update properties of this object
def update!(**args)
@spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
@updated_spreadsheet = args[:updated_spreadsheet] if args.key?(:updated_spreadsheet)
@replies = args[:replies] if args.key?(:replies)
end
end
@ -5279,6 +5879,11 @@ module Google
# @return [Google::Apis::SheetsV4::MergeCellsRequest]
attr_accessor :merge_cells
# Updates properties of the supplied banded range.
# Corresponds to the JSON property `updateBanding`
# @return [Google::Apis::SheetsV4::UpdateBandingRequest]
attr_accessor :update_banding
# Adds a chart to a sheet in the spreadsheet.
# Corresponds to the JSON property `addChart`
# @return [Google::Apis::SheetsV4::AddChartRequest]
@ -5290,6 +5895,16 @@ module Google
# @return [Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest]
attr_accessor :delete_conditional_format_rule
# Adds a new banded range to the spreadsheet.
# Corresponds to the JSON property `addBanding`
# @return [Google::Apis::SheetsV4::AddBandingRequest]
attr_accessor :add_banding
# Removes the banded range with the given ID from the spreadsheet.
# Corresponds to the JSON property `deleteBanding`
# @return [Google::Apis::SheetsV4::DeleteBandingRequest]
attr_accessor :delete_banding
# Updates a chart's specifications.
# (This does not move or resize a chart. To move or resize a chart, use
# UpdateEmbeddedObjectPositionRequest.)
@ -5420,8 +6035,11 @@ module Google
@update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
@set_basic_filter = args[:set_basic_filter] if args.key?(:set_basic_filter)
@merge_cells = args[:merge_cells] if args.key?(:merge_cells)
@update_banding = args[:update_banding] if args.key?(:update_banding)
@add_chart = args[:add_chart] if args.key?(:add_chart)
@delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
@add_banding = args[:add_banding] if args.key?(:add_banding)
@delete_banding = args[:delete_banding] if args.key?(:delete_banding)
@update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec)
@delete_dimension = args[:delete_dimension] if args.key?(:delete_dimension)
@delete_embedded_object = args[:delete_embedded_object] if args.key?(:delete_embedded_object)
@ -5527,6 +6145,84 @@ module Google
end
end
# A banded (alternating colors) range in a sheet.
class BandedRange
include Google::Apis::Core::Hashable
# The id of the banded range.
# Corresponds to the JSON property `bandedRangeId`
# @return [Fixnum]
attr_accessor :banded_range_id
# Properties referring a single dimension (either row or column). If both
# BandedRange.row_properties and BandedRange.column_properties are
# set, the fill colors are applied to cells according to the following rules:
# * header_color and footer_color take priority over band colors.
# * first_band_color takes priority over second_band_color.
# * row_properties takes priority over column_properties.
# For example, the first row color takes priority over the first column
# color, but the first column color takes priority over the second row color.
# Similarly, the row header takes priority over the column header in the
# top left cell, but the column header takes priority over the first row
# color if the row header is not set.
# Corresponds to the JSON property `rowProperties`
# @return [Google::Apis::SheetsV4::BandingProperties]
attr_accessor :row_properties
# Properties referring a single dimension (either row or column). If both
# BandedRange.row_properties and BandedRange.column_properties are
# set, the fill colors are applied to cells according to the following rules:
# * header_color and footer_color take priority over band colors.
# * first_band_color takes priority over second_band_color.
# * row_properties takes priority over column_properties.
# For example, the first row color takes priority over the first column
# color, but the first column color takes priority over the second row color.
# Similarly, the row header takes priority over the column header in the
# top left cell, but the column header takes priority over the first row
# color if the row header is not set.
# Corresponds to the JSON property `columnProperties`
# @return [Google::Apis::SheetsV4::BandingProperties]
attr_accessor :column_properties
# A range on a sheet.
# All indexes are zero-based.
# Indexes are half open, e.g the start index is inclusive
# and the end index is exclusive -- [start_index, end_index).
# Missing indexes indicate the range is unbounded on that side.
# For example, if `"Sheet1"` is sheet ID 0, then:
# `Sheet1!A1:A1 == sheet_id: 0,
# start_row_index: 0, end_row_index: 1,
# start_column_index: 0, end_column_index: 1`
# `Sheet1!A3:B4 == sheet_id: 0,
# start_row_index: 2, end_row_index: 4,
# start_column_index: 0, end_column_index: 2`
# `Sheet1!A:B == sheet_id: 0,
# start_column_index: 0, end_column_index: 2`
# `Sheet1!A5:B == sheet_id: 0,
# start_row_index: 4,
# start_column_index: 0, end_column_index: 2`
# `Sheet1 == sheet_id:0`
# The start index must always be less than or equal to the end index.
# If the start index equals the end index, then the range is empty.
# Empty ranges are typically not meaningful and are usually rendered in the
# UI as `#REF!`.
# Corresponds to the JSON property `range`
# @return [Google::Apis::SheetsV4::GridRange]
attr_accessor :range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@banded_range_id = args[:banded_range_id] if args.key?(:banded_range_id)
@row_properties = args[:row_properties] if args.key?(:row_properties)
@column_properties = args[:column_properties] if args.key?(:column_properties)
@range = args[:range] if args.key?(:range)
end
end
# The result of deleting a conditional format rule.
class DeleteConditionalFormatRuleResponse
include Google::Apis::Core::Hashable

View File

@ -196,6 +196,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AddBandingResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TextFormatRun
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -502,6 +508,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DeleteBandingRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BasicFilter
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -544,6 +556,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AddBandingRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AppendCellsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -580,13 +598,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class SetBasicFilterRequest
class UpdateEmbeddedObjectPositionRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateEmbeddedObjectPositionRequest
class SetBasicFilterRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -604,6 +622,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BandingProperties
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PivotGroup
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -622,6 +646,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpdateBandingRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ChartData
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -760,6 +790,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BandedRange
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeleteConditionalFormatRuleResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -910,11 +946,13 @@ module Google
class UpdateValuesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :updated_range, as: 'updatedRange'
property :updated_columns, as: 'updatedColumns'
property :updated_cells, as: 'updatedCells'
property :updated_data, as: 'updatedData', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation
property :updated_range, as: 'updatedRange'
property :spreadsheet_id, as: 'spreadsheetId'
property :updated_rows, as: 'updatedRows'
property :updated_cells, as: 'updatedCells'
end
end
@ -1032,6 +1070,8 @@ module Google
property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleResponse::Representation
property :add_banding, as: 'addBanding', class: Google::Apis::SheetsV4::AddBandingResponse, decorator: Google::Apis::SheetsV4::AddBandingResponse::Representation
property :duplicate_sheet, as: 'duplicateSheet', class: Google::Apis::SheetsV4::DuplicateSheetResponse, decorator: Google::Apis::SheetsV4::DuplicateSheetResponse::Representation
property :duplicate_filter_view, as: 'duplicateFilterView', class: Google::Apis::SheetsV4::DuplicateFilterViewResponse, decorator: Google::Apis::SheetsV4::DuplicateFilterViewResponse::Representation
@ -1075,6 +1115,14 @@ module Google
end
end
class AddBandingResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
end
end
class TextFormatRun
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1173,6 +1221,9 @@ module Google
property :value_input_option, as: 'valueInputOption'
collection :data, as: 'data', class: Google::Apis::SheetsV4::ValueRange, decorator: Google::Apis::SheetsV4::ValueRange::Representation
property :response_value_render_option, as: 'responseValueRenderOption'
property :response_date_time_render_option, as: 'responseDateTimeRenderOption'
property :include_values_in_response, as: 'includeValuesInResponse'
end
end
@ -1411,8 +1462,11 @@ module Google
class BatchUpdateSpreadsheetRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :include_spreadsheet_in_response, as: 'includeSpreadsheetInResponse'
collection :requests, as: 'requests', class: Google::Apis::SheetsV4::Request, decorator: Google::Apis::SheetsV4::Request::Representation
collection :response_ranges, as: 'responseRanges'
property :response_include_grid_data, as: 'responseIncludeGridData'
end
end
@ -1608,6 +1662,13 @@ module Google
end
end
class DeleteBandingRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :banded_range_id, as: 'bandedRangeId'
end
end
class BasicFilter
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1672,6 +1733,14 @@ module Google
end
end
class AddBandingRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
end
end
class AppendCellsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1736,14 +1805,6 @@ module Google
end
end
class SetBasicFilterRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter', class: Google::Apis::SheetsV4::BasicFilter, decorator: Google::Apis::SheetsV4::BasicFilter::Representation
end
end
class UpdateEmbeddedObjectPositionRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1754,6 +1815,14 @@ module Google
end
end
class SetBasicFilterRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :filter, as: 'filter', class: Google::Apis::SheetsV4::BasicFilter, decorator: Google::Apis::SheetsV4::BasicFilter::Representation
end
end
class AutoResizeDimensionsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1770,6 +1839,20 @@ module Google
end
end
class BandingProperties
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :footer_color, as: 'footerColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
property :header_color, as: 'headerColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
property :second_band_color, as: 'secondBandColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
property :first_band_color, as: 'firstBandColor', class: Google::Apis::SheetsV4::Color, decorator: Google::Apis::SheetsV4::Color::Representation
end
end
class PivotGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1801,6 +1884,15 @@ module Google
end
end
class UpdateBandingRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :banded_range, as: 'bandedRange', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
property :fields, as: 'fields'
end
end
class ChartData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1828,6 +1920,8 @@ module Google
collection :data, as: 'data', class: Google::Apis::SheetsV4::GridData, decorator: Google::Apis::SheetsV4::GridData::Representation
collection :banded_ranges, as: 'bandedRanges', class: Google::Apis::SheetsV4::BandedRange, decorator: Google::Apis::SheetsV4::BandedRange::Representation
end
end
@ -1872,6 +1966,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :spreadsheet_id, as: 'spreadsheetId'
property :updated_spreadsheet, as: 'updatedSpreadsheet', class: Google::Apis::SheetsV4::Spreadsheet, decorator: Google::Apis::SheetsV4::Spreadsheet::Representation
collection :replies, as: 'replies', class: Google::Apis::SheetsV4::Response, decorator: Google::Apis::SheetsV4::Response::Representation
end
@ -2061,10 +2157,16 @@ module Google
property :merge_cells, as: 'mergeCells', class: Google::Apis::SheetsV4::MergeCellsRequest, decorator: Google::Apis::SheetsV4::MergeCellsRequest::Representation
property :update_banding, as: 'updateBanding', class: Google::Apis::SheetsV4::UpdateBandingRequest, decorator: Google::Apis::SheetsV4::UpdateBandingRequest::Representation
property :add_chart, as: 'addChart', class: Google::Apis::SheetsV4::AddChartRequest, decorator: Google::Apis::SheetsV4::AddChartRequest::Representation
property :delete_conditional_format_rule, as: 'deleteConditionalFormatRule', class: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest, decorator: Google::Apis::SheetsV4::DeleteConditionalFormatRuleRequest::Representation
property :add_banding, as: 'addBanding', class: Google::Apis::SheetsV4::AddBandingRequest, decorator: Google::Apis::SheetsV4::AddBandingRequest::Representation
property :delete_banding, as: 'deleteBanding', class: Google::Apis::SheetsV4::DeleteBandingRequest, decorator: Google::Apis::SheetsV4::DeleteBandingRequest::Representation
property :update_chart_spec, as: 'updateChartSpec', class: Google::Apis::SheetsV4::UpdateChartSpecRequest, decorator: Google::Apis::SheetsV4::UpdateChartSpecRequest::Representation
property :delete_dimension, as: 'deleteDimension', class: Google::Apis::SheetsV4::DeleteDimensionRequest, decorator: Google::Apis::SheetsV4::DeleteDimensionRequest::Representation
@ -2127,6 +2229,19 @@ module Google
end
end
class BandedRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :banded_range_id, as: 'bandedRangeId'
property :row_properties, as: 'rowProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation
property :column_properties, as: 'columnProperties', class: Google::Apis::SheetsV4::BandingProperties, decorator: Google::Apis::SheetsV4::BandingProperties::Representation
property :range, as: 'range', class: Google::Apis::SheetsV4::GridRange, decorator: Google::Apis::SheetsV4::GridRange::Representation
end
end
class DeleteConditionalFormatRuleResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -223,10 +223,12 @@ module Google
# The A1 notation of the values to retrieve.
# @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 [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`,
@ -309,10 +311,12 @@ module Google
# The A1 notation of the values to retrieve.
# @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 [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`,
@ -370,8 +374,20 @@ module Google
# 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
@ -391,7 +407,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, insert_data_option: nil, quota_user: nil, fields: nil, options: nil, &block)
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
@ -399,7 +415,10 @@ module Google
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?
@ -414,8 +433,23 @@ module Google
# @param [String] range
# The A1 notation of the values to update.
# @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 updated. By default, responses
# do not include the updated values.
# If the range to write was larger than than the range actually written,
# the response will include all values in the requested range (excluding
# trailing empty rows and columns).
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
@ -433,7 +467,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, quota_user: nil, fields: 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.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
command.request_object = value_range_object
@ -441,7 +475,10 @@ module Google
command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
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['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)

View File

@ -0,0 +1,49 @@
# 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/slides_v1/service.rb'
require 'google/apis/slides_v1/classes.rb'
require 'google/apis/slides_v1/representations.rb'
module Google
module Apis
# Google Slides API
#
# An API for creating and editing Google Slides presentations.
#
# @see https://developers.google.com/slides/
module SlidesV1
VERSION = 'V1'
REVISION = '20161102'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
# View your Google Spreadsheets
AUTH_SPREADSHEETS_READONLY = 'https://www.googleapis.com/auth/spreadsheets.readonly'
# View and manage your Google Slides presentations
AUTH_PRESENTATIONS = 'https://www.googleapis.com/auth/presentations'
# View your Google Slides presentations
AUTH_PRESENTATIONS_READONLY = 'https://www.googleapis.com/auth/presentations.readonly'
# View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
# View and manage your spreadsheets in Google Drive
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More