Regen APIs

This commit is contained in:
Steve Bazyl 2016-10-20 13:15:24 -07:00
parent b578520aa8
commit d4286e35a2
45 changed files with 928 additions and 284 deletions

View File

@ -1,3 +1,7 @@
# 0.9.19
* Regenerate APIs
* Add Adexchangebuyer2 api
# 0.9.15
* Add datastore v1
* Regenerate APIs
@ -11,7 +15,6 @@
* Fix fetch_all to work correctly with the genomics API
* Add speech & language APIs, regenerate APIs
# 0.9.12
* Regenerated APIs

View File

@ -1944,6 +1944,7 @@
"/compute:beta/compute.disks.aggregatedList/pageToken": page_token
"/compute:beta/compute.disks.aggregatedList/project": project
"/compute:beta/compute.disks.createSnapshot/disk": disk
"/compute:beta/compute.disks.createSnapshot/guestFlush": guest_flush
"/compute:beta/compute.disks.createSnapshot/project": project
"/compute:beta/compute.disks.createSnapshot/zone": zone
"/compute:beta/compute.disks.delete": delete_disk
@ -8984,6 +8985,7 @@
"/androidenterprise:v1/ProductSet/kind": kind
"/androidenterprise:v1/ProductSet/productId": product_id
"/androidenterprise:v1/ProductSet/productId/product_id": product_id
"/androidenterprise:v1/ProductSet/productSetBehavior": product_set_behavior
"/androidenterprise:v1/ProductsApproveRequest/approvalUrlInfo": approval_url_info
"/androidenterprise:v1/ProductsGenerateApprovalUrlResponse/url": url
"/androidenterprise:v1/ProductsListResponse": products_list_response
@ -9099,6 +9101,11 @@
"/androidpublisher:v2/androidpublisher.edits.apks.list/packageName": package_name
"/androidpublisher:v2/androidpublisher.edits.apks.upload/editId": edit_id
"/androidpublisher:v2/androidpublisher.edits.apks.upload/packageName": package_name
"/androidpublisher:v2/androidpublisher.edits.deobfuscationfiles.upload": upload_edit_deobfuscationfile
"/androidpublisher:v2/androidpublisher.edits.deobfuscationfiles.upload/apkVersionCode": apk_version_code
"/androidpublisher:v2/androidpublisher.edits.deobfuscationfiles.upload/deobfuscationFileType": deobfuscation_file_type
"/androidpublisher:v2/androidpublisher.edits.deobfuscationfiles.upload/editId": edit_id
"/androidpublisher:v2/androidpublisher.edits.deobfuscationfiles.upload/packageName": package_name
"/androidpublisher:v2/androidpublisher.edits.details.get/editId": edit_id
"/androidpublisher:v2/androidpublisher.edits.details.get/packageName": package_name
"/androidpublisher:v2/androidpublisher.edits.details.patch/editId": edit_id
@ -9251,6 +9258,10 @@
"/androidpublisher:v2/Comment": comment
"/androidpublisher:v2/Comment/developerComment": developer_comment
"/androidpublisher:v2/Comment/userComment": user_comment
"/androidpublisher:v2/DeobfuscationFile": deobfuscation_file
"/androidpublisher:v2/DeobfuscationFile/symbolType": symbol_type
"/androidpublisher:v2/DeobfuscationFilesUploadResponse": deobfuscation_files_upload_response
"/androidpublisher:v2/DeobfuscationFilesUploadResponse/deobfuscationFile": deobfuscation_file
"/androidpublisher:v2/DeveloperComment": developer_comment
"/androidpublisher:v2/DeveloperComment/lastModified": last_modified
"/androidpublisher:v2/DeveloperComment/text": text
@ -11571,6 +11582,12 @@
"/civicinfo:v2/Contest/sources/source": source
"/civicinfo:v2/Contest/special": special
"/civicinfo:v2/Contest/type": type
"/civicinfo:v2/ContextParams": context_params
"/civicinfo:v2/ContextParams/clientProfile": client_profile
"/civicinfo:v2/DivisionRepresentativeInfoRequest": division_representative_info_request
"/civicinfo:v2/DivisionRepresentativeInfoRequest/contextParams": context_params
"/civicinfo:v2/DivisionSearchRequest": division_search_request
"/civicinfo:v2/DivisionSearchRequest/contextParams": context_params
"/civicinfo:v2/DivisionSearchResponse": division_search_response
"/civicinfo:v2/DivisionSearchResponse/kind": kind
"/civicinfo:v2/DivisionSearchResponse/results": results
@ -11591,6 +11608,8 @@
"/civicinfo:v2/ElectionOfficial/name": name
"/civicinfo:v2/ElectionOfficial/officePhoneNumber": office_phone_number
"/civicinfo:v2/ElectionOfficial/title": title
"/civicinfo:v2/ElectionsQueryRequest": elections_query_request
"/civicinfo:v2/ElectionsQueryRequest/contextParams": context_params
"/civicinfo:v2/ElectionsQueryResponse/elections": elections
"/civicinfo:v2/ElectionsQueryResponse/elections/election": election
"/civicinfo:v2/ElectionsQueryResponse/kind": kind
@ -11648,6 +11667,8 @@
"/civicinfo:v2/RepresentativeInfoData/offices/office": office
"/civicinfo:v2/RepresentativeInfoData/officials": officials
"/civicinfo:v2/RepresentativeInfoData/officials/official": official
"/civicinfo:v2/RepresentativeInfoRequest": representative_info_request
"/civicinfo:v2/RepresentativeInfoRequest/contextParams": context_params
"/civicinfo:v2/RepresentativeInfoResponse": representative_info_response
"/civicinfo:v2/RepresentativeInfoResponse/divisions": divisions
"/civicinfo:v2/RepresentativeInfoResponse/divisions/division": division
@ -11668,6 +11689,8 @@
"/civicinfo:v2/Source": source
"/civicinfo:v2/Source/name": name
"/civicinfo:v2/Source/official": official
"/civicinfo:v2/VoterInfoRequest": voter_info_request
"/civicinfo:v2/VoterInfoRequest/contextParams": context_params
"/civicinfo:v2/VoterInfoResponse": voter_info_response
"/civicinfo:v2/VoterInfoResponse/contests": contests
"/civicinfo:v2/VoterInfoResponse/contests/contest": contest
@ -23700,13 +23723,13 @@
"/genomics:v1/genomics.datasets.getIamPolicy/resource": resource
"/genomics:v1/genomics.datasets.testIamPermissions": test_dataset_iam_permissions
"/genomics:v1/genomics.datasets.testIamPermissions/resource": resource
"/genomics:v1/genomics.operations.get": get_operation
"/genomics:v1/genomics.operations.get/name": name
"/genomics:v1/genomics.operations.list": list_operations
"/genomics:v1/genomics.operations.list/name": name
"/genomics:v1/genomics.operations.list/filter": filter
"/genomics:v1/genomics.operations.list/pageSize": page_size
"/genomics:v1/genomics.operations.list/pageToken": page_token
"/genomics:v1/genomics.operations.get": get_operation
"/genomics:v1/genomics.operations.get/name": name
"/genomics:v1/genomics.operations.cancel": cancel_operation
"/genomics:v1/genomics.operations.cancel/name": name
"/genomics:v1/genomics.readgroupsets.export/readGroupSetId": read_group_set_id
@ -23884,6 +23907,10 @@
"/genomics:v1/TestIamPermissionsResponse": test_iam_permissions_response
"/genomics:v1/TestIamPermissionsResponse/permissions": permissions
"/genomics:v1/TestIamPermissionsResponse/permissions/permission": permission
"/genomics:v1/ListOperationsResponse": list_operations_response
"/genomics:v1/ListOperationsResponse/operations": operations
"/genomics:v1/ListOperationsResponse/operations/operation": operation
"/genomics:v1/ListOperationsResponse/nextPageToken": next_page_token
"/genomics:v1/Operation": operation
"/genomics:v1/Operation/name": name
"/genomics:v1/Operation/metadata": metadata
@ -23892,10 +23919,6 @@
"/genomics:v1/Operation/error": error
"/genomics:v1/Operation/response": response
"/genomics:v1/Operation/response/response": response
"/genomics:v1/ListOperationsResponse": list_operations_response
"/genomics:v1/ListOperationsResponse/operations": operations
"/genomics:v1/ListOperationsResponse/operations/operation": operation
"/genomics:v1/ListOperationsResponse/nextPageToken": next_page_token
"/genomics:v1/CancelOperationRequest": cancel_operation_request
"/genomics:v1/ImportReadGroupSetsRequest": import_read_group_sets_request
"/genomics:v1/ImportReadGroupSetsRequest/datasetId": dataset_id
@ -26091,11 +26114,13 @@
"/logging:v2beta1/SourceLocation/functionName": function_name
"/logging:v2beta1/SourceLocation/line": line
"/logging:v2beta1/LogSink": log_sink
"/logging:v2beta1/LogSink/writerIdentity": writer_identity
"/logging:v2beta1/LogSink/filter": filter
"/logging:v2beta1/LogSink/destination": destination
"/logging:v2beta1/LogSink/outputVersionFormat": output_version_format
"/logging:v2beta1/LogSink/filter": filter
"/logging:v2beta1/LogSink/endTime": end_time
"/logging:v2beta1/LogSink/name": name
"/logging:v2beta1/LogSink/startTime": start_time
"/logging:v2beta1/LogSink/outputVersionFormat": output_version_format
"/logging:v2beta1/LogSink/writerIdentity": writer_identity
"/logging:v2beta1/LogMetric": log_metric
"/logging:v2beta1/LogMetric/description": description
"/logging:v2beta1/LogMetric/filter": filter
@ -28013,6 +28038,21 @@
"/sheets:v4/sheets.spreadsheets.get/includeGridData": include_grid_data
"/sheets:v4/sheets.spreadsheets.batchUpdate": batch_update_spreadsheet
"/sheets:v4/sheets.spreadsheets.batchUpdate/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.values.clear": clear_values
"/sheets:v4/sheets.spreadsheets.values.clear/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.values.clear/range": range
"/sheets:v4/sheets.spreadsheets.values.batchGet/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.values.batchGet/ranges": ranges
"/sheets:v4/sheets.spreadsheets.values.batchGet/valueRenderOption": value_render_option
"/sheets:v4/sheets.spreadsheets.values.batchGet/dateTimeRenderOption": date_time_render_option
"/sheets:v4/sheets.spreadsheets.values.batchGet/majorDimension": major_dimension
"/sheets:v4/sheets.spreadsheets.values.batchUpdate": batch_update_values
"/sheets:v4/sheets.spreadsheets.values.batchUpdate/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.values.get/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.values.get/valueRenderOption": value_render_option
"/sheets:v4/sheets.spreadsheets.values.get/dateTimeRenderOption": date_time_render_option
"/sheets:v4/sheets.spreadsheets.values.get/range": range
"/sheets:v4/sheets.spreadsheets.values.get/majorDimension": major_dimension
"/sheets:v4/sheets.spreadsheets.values.append": append_spreadsheet_value
"/sheets:v4/sheets.spreadsheets.values.append/valueInputOption": value_input_option
"/sheets:v4/sheets.spreadsheets.values.append/spreadsheetId": spreadsheet_id
@ -28022,18 +28062,8 @@
"/sheets:v4/sheets.spreadsheets.values.update/valueInputOption": value_input_option
"/sheets:v4/sheets.spreadsheets.values.update/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.values.update/range": range
"/sheets:v4/sheets.spreadsheets.values.get/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.values.get/valueRenderOption": value_render_option
"/sheets:v4/sheets.spreadsheets.values.get/dateTimeRenderOption": date_time_render_option
"/sheets:v4/sheets.spreadsheets.values.get/range": range
"/sheets:v4/sheets.spreadsheets.values.get/majorDimension": major_dimension
"/sheets:v4/sheets.spreadsheets.values.batchGet/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.values.batchGet/ranges": ranges
"/sheets:v4/sheets.spreadsheets.values.batchGet/valueRenderOption": value_render_option
"/sheets:v4/sheets.spreadsheets.values.batchGet/dateTimeRenderOption": date_time_render_option
"/sheets:v4/sheets.spreadsheets.values.batchGet/majorDimension": major_dimension
"/sheets:v4/sheets.spreadsheets.values.batchUpdate": batch_update_values
"/sheets:v4/sheets.spreadsheets.values.batchUpdate/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.values.batchClear": batch_clear_values
"/sheets:v4/sheets.spreadsheets.values.batchClear/spreadsheetId": spreadsheet_id
"/sheets:v4/sheets.spreadsheets.sheets.copyTo/sheetId": sheet_id
"/sheets:v4/sheets.spreadsheets.sheets.copyTo/spreadsheetId": spreadsheet_id
"/sheets:v4/AddNamedRangeResponse": add_named_range_response
@ -28056,6 +28086,9 @@
"/sheets:v4/PivotGroupValueMetadata/collapsed": collapsed
"/sheets:v4/UpdateEmbeddedObjectPositionResponse": update_embedded_object_position_response
"/sheets:v4/UpdateEmbeddedObjectPositionResponse/position": position
"/sheets:v4/ClearValuesResponse": clear_values_response
"/sheets:v4/ClearValuesResponse/spreadsheetId": spreadsheet_id
"/sheets:v4/ClearValuesResponse/clearedRange": cleared_range
"/sheets:v4/UpdateConditionalFormatRuleRequest": update_conditional_format_rule_request
"/sheets:v4/UpdateConditionalFormatRuleRequest/sheetId": sheet_id
"/sheets:v4/UpdateConditionalFormatRuleRequest/rule": rule
@ -28207,6 +28240,10 @@
"/sheets:v4/BatchUpdateValuesRequest/data/datum": datum
"/sheets:v4/ClearBasicFilterRequest": clear_basic_filter_request
"/sheets:v4/ClearBasicFilterRequest/sheetId": sheet_id
"/sheets:v4/BatchClearValuesResponse": batch_clear_values_response
"/sheets:v4/BatchClearValuesResponse/spreadsheetId": spreadsheet_id
"/sheets:v4/BatchClearValuesResponse/clearedRanges": cleared_ranges
"/sheets:v4/BatchClearValuesResponse/clearedRanges/cleared_range": cleared_range
"/sheets:v4/ConditionalFormatRule": conditional_format_rule
"/sheets:v4/ConditionalFormatRule/gradientRule": gradient_rule
"/sheets:v4/ConditionalFormatRule/booleanRule": boolean_rule
@ -28308,6 +28345,7 @@
"/sheets:v4/SheetProperties/rightToLeft": right_to_left
"/sheets:v4/SheetProperties/tabColor": tab_color
"/sheets:v4/SheetProperties/sheetType": sheet_type
"/sheets:v4/ClearValuesRequest": clear_values_request
"/sheets:v4/ProtectedRange": protected_range
"/sheets:v4/ProtectedRange/unprotectedRanges": unprotected_ranges
"/sheets:v4/ProtectedRange/unprotectedRanges/unprotected_range": unprotected_range
@ -28357,6 +28395,9 @@
"/sheets:v4/NumberFormat": number_format
"/sheets:v4/NumberFormat/pattern": pattern
"/sheets:v4/NumberFormat/type": type
"/sheets:v4/BatchClearValuesRequest": batch_clear_values_request
"/sheets:v4/BatchClearValuesRequest/ranges": ranges
"/sheets:v4/BatchClearValuesRequest/ranges/range": range
"/sheets:v4/UpdateDimensionPropertiesRequest": update_dimension_properties_request
"/sheets:v4/UpdateDimensionPropertiesRequest/fields": fields
"/sheets:v4/UpdateDimensionPropertiesRequest/range": range
@ -29318,11 +29359,14 @@
"/storage:v1/Bucket/lifecycle/rule": rule
"/storage:v1/Bucket/lifecycle/rule/rule": rule
"/storage:v1/Bucket/lifecycle/rule/rule/action": action
"/storage:v1/Bucket/lifecycle/rule/rule/action/storageClass": storage_class
"/storage:v1/Bucket/lifecycle/rule/rule/action/type": type
"/storage:v1/Bucket/lifecycle/rule/rule/condition": condition
"/storage:v1/Bucket/lifecycle/rule/rule/condition/age": age
"/storage:v1/Bucket/lifecycle/rule/rule/condition/createdBefore": created_before
"/storage:v1/Bucket/lifecycle/rule/rule/condition/isLive": is_live
"/storage:v1/Bucket/lifecycle/rule/rule/condition/matchesStorageClass": matches_storage_class
"/storage:v1/Bucket/lifecycle/rule/rule/condition/matchesStorageClass/matches_storage_class": matches_storage_class
"/storage:v1/Bucket/lifecycle/rule/rule/condition/numNewerVersions": num_newer_versions
"/storage:v1/Bucket/location": location
"/storage:v1/Bucket/logging": logging

View File

@ -20,13 +20,13 @@ module Google
module Apis
# Ad Exchange Buyer API II
#
# Accesses the latest features for managing Ad Exchange accounts and Real-Time
# Bidding configurations and auction metrics.
# Accesses the latest features for managing Ad Exchange accounts, Real-Time
# Bidding configurations and auction metrics, and Marketplace programmatic deals.
#
# @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20161012'
REVISION = '20161019'
# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'

View File

@ -22,8 +22,8 @@ module Google
module Adexchangebuyer2V2beta1
# Ad Exchange Buyer API II
#
# Accesses the latest features for managing Ad Exchange accounts and Real-Time
# Bidding configurations and auction metrics.
# Accesses the latest features for managing Ad Exchange accounts, Real-Time
# Bidding configurations and auction metrics, and Marketplace programmatic deals.
#
# @example
# require 'google/apis/adexchangebuyer2_v2beta1'

View File

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

View File

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

View File

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

View File

@ -1715,6 +1715,15 @@ module Google
# @return [Array<String>]
attr_accessor :product_id
# The interpretation of this product set. "unknown" should never be sent and
# ignored if received. "whitelist" means that this product set constitutes a
# whitelist. "includeAll" means that all products are accessible (the value of
# the productId field is therefore ignored). If a value is not supplied, it is
# interpreted to be "whitelist" for backwards compatibility.
# Corresponds to the JSON property `productSetBehavior`
# @return [String]
attr_accessor :product_set_behavior
def initialize(**args)
update!(**args)
end
@ -1723,6 +1732,7 @@ module Google
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@product_id = args[:product_id] if args.key?(:product_id)
@product_set_behavior = args[:product_set_behavior] if args.key?(:product_set_behavior)
end
end

View File

@ -837,6 +837,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :product_id, as: 'productId'
property :product_set_behavior, as: 'productSetBehavior'
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/android-publisher
module AndroidpublisherV2
VERSION = 'V2'
REVISION = '20161004'
REVISION = '20161017'
# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'

View File

@ -277,6 +277,44 @@ module Google
end
end
# Represents a deobfuscation file.
class DeobfuscationFile
include Google::Apis::Core::Hashable
# The type of the deobfuscation file.
# Corresponds to the JSON property `symbolType`
# @return [String]
attr_accessor :symbol_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@symbol_type = args[:symbol_type] if args.key?(:symbol_type)
end
end
#
class DeobfuscationFilesUploadResponse
include Google::Apis::Core::Hashable
# Represents a deobfuscation file.
# Corresponds to the JSON property `deobfuscationFile`
# @return [Google::Apis::AndroidpublisherV2::DeobfuscationFile]
attr_accessor :deobfuscation_file
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deobfuscation_file = args[:deobfuscation_file] if args.key?(:deobfuscation_file)
end
end
#
class DeveloperComment
include Google::Apis::Core::Hashable

View File

@ -82,6 +82,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DeobfuscationFile
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeobfuscationFilesUploadResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DeveloperComment
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -438,6 +450,21 @@ module Google
end
end
class DeobfuscationFile
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :symbol_type, as: 'symbolType'
end
end
class DeobfuscationFilesUploadResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deobfuscation_file, as: 'deobfuscationFile', class: Google::Apis::AndroidpublisherV2::DeobfuscationFile, decorator: Google::Apis::AndroidpublisherV2::DeobfuscationFile::Representation
end
end
class DeveloperComment
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -660,6 +660,61 @@ module Google
execute_or_queue_command(command, &block)
end
# Uploads the deobfuscation file of the specified APK. If a deobfuscation file
# already exists, it will be replaced.
# @param [String] package_name
# Unique identifier of the Android app for which the deobfuscatiuon files are
# being uploaded; for example, "com.spiffygame".
# @param [String] edit_id
# Unique identifier for this edit.
# @param [Fixnum] apk_version_code
# The version code of the APK whose deobfuscation file is being uploaded.
# @param [String] deobfuscation_file_type
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available 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 [IO, String] upload_source
# IO stream or filename containing content to upload
# @param [String] content_type
# Content type of the uploaded content.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AndroidpublisherV2::DeobfuscationFilesUploadResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AndroidpublisherV2::DeobfuscationFilesUploadResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def upload_edit_deobfuscationfile(package_name, edit_id, apk_version_code, deobfuscation_file_type, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
if upload_source.nil?
command = make_simple_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options)
else
command = make_upload_command(:post, '{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}', options)
command.upload_source = upload_source
command.upload_content_type = content_type
end
command.response_representation = Google::Apis::AndroidpublisherV2::DeobfuscationFilesUploadResponse::Representation
command.response_class = Google::Apis::AndroidpublisherV2::DeobfuscationFilesUploadResponse
command.params['packageName'] = package_name unless package_name.nil?
command.params['editId'] = edit_id unless edit_id.nil?
command.params['apkVersionCode'] = apk_version_code unless apk_version_code.nil?
command.params['deobfuscationFileType'] = deobfuscation_file_type unless deobfuscation_file_type.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
# Fetches app details for this edit. This includes the default language and
# developer support contact information.
# @param [String] package_name

View File

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

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20161004'
REVISION = '20161016'
# 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 = '20160823'
REVISION = '20161017'
end
end
end

View File

@ -191,7 +191,9 @@ module Google
# @return [String]
attr_accessor :email
# The candidate's name.
# The candidate's name. If this is a joint ticket it will indicate the name of
# the candidate at the top of a ticket followed by a / and that name of
# candidate at the bottom of the ticket. e.g. "Mitt Romney / Paul Ryan"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -441,6 +443,63 @@ module Google
end
end
#
class ContextParams
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `clientProfile`
# @return [String]
attr_accessor :client_profile
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@client_profile = args[:client_profile] if args.key?(:client_profile)
end
end
# A request to look up representative information for a single division.
class DivisionRepresentativeInfoRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
end
end
# A search request for political geographies.
class DivisionSearchRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
end
end
# The result of a division search query.
class DivisionSearchResponse
include Google::Apis::Core::Hashable
@ -585,6 +644,25 @@ module Google
end
end
#
class ElectionsQueryRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
end
end
# The list of elections available for this version of the API.
class QueryElectionsResponse
include Google::Apis::Core::Hashable
@ -920,6 +998,26 @@ module Google
end
end
# A request for political geography and representative information for an
# address.
class RepresentativeInfoRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
end
end
# The result of a representative info lookup query.
class RepresentativeInfoResponse
include Google::Apis::Core::Hashable
@ -1047,6 +1145,25 @@ module Google
end
end
# A request for information about a voter.
class VoterInfoRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `contextParams`
# @return [Google::Apis::CivicinfoV2::ContextParams]
attr_accessor :context_params
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@context_params = args[:context_params] if args.key?(:context_params)
end
end
# The result of a voter info lookup query.
class VoterInfoResponse
include Google::Apis::Core::Hashable

View File

@ -52,6 +52,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ContextParams
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DivisionRepresentativeInfoRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DivisionSearchRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DivisionSearchResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -76,6 +94,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ElectionsQueryRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class QueryElectionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -118,6 +142,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RepresentativeInfoRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RepresentativeInfoResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -136,6 +166,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class VoterInfoRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VoterInfoResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -235,6 +271,29 @@ module Google
end
end
class ContextParams
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :client_profile, as: 'clientProfile'
end
end
class DivisionRepresentativeInfoRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
end
end
class DivisionSearchRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
end
end
class DivisionSearchResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -274,6 +333,14 @@ module Google
end
end
class ElectionsQueryRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
end
end
class QueryElectionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -360,6 +427,14 @@ module Google
end
end
class RepresentativeInfoRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
end
end
class RepresentativeInfoResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -396,6 +471,14 @@ module Google
end
end
class VoterInfoRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :context_params, as: 'contextParams', class: Google::Apis::CivicinfoV2::ContextParams, decorator: Google::Apis::CivicinfoV2::ContextParams::Representation
end
end
class VoterInfoResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -54,6 +54,7 @@ module Google
end
# Searches for political divisions by their natural name or OCD ID.
# @param [Google::Apis::CivicinfoV2::DivisionSearchRequest] division_search_request_object
# @param [String] query
# The search query. Queries can cover any parts of a OCD ID or a human readable
# division name. All words given in the query are treated as required patterns.
@ -80,8 +81,10 @@ 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 search_divisions(query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def search_divisions(division_search_request_object = nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'divisions', options)
command.request_representation = Google::Apis::CivicinfoV2::DivisionSearchRequest::Representation
command.request_object = division_search_request_object
command.response_representation = Google::Apis::CivicinfoV2::DivisionSearchResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::DivisionSearchResponse
command.query['query'] = query unless query.nil?
@ -92,6 +95,7 @@ module Google
end
# List of available elections to query.
# @param [Google::Apis::CivicinfoV2::ElectionsQueryRequest] elections_query_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -113,8 +117,10 @@ 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 query_election(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def query_election(elections_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'elections', options)
command.request_representation = Google::Apis::CivicinfoV2::ElectionsQueryRequest::Representation
command.request_object = elections_query_request_object
command.response_representation = Google::Apis::CivicinfoV2::QueryElectionsResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::QueryElectionsResponse
command.query['fields'] = fields unless fields.nil?
@ -127,6 +133,7 @@ module Google
# address.
# @param [String] address
# The registered address of the voter to look up.
# @param [Google::Apis::CivicinfoV2::VoterInfoRequest] voter_info_request_object
# @param [String] election_id
# The unique ID of the election to look up. A list of election IDs can be
# obtained at https://www.googleapis.com/civicinfo/`version`/elections
@ -157,8 +164,10 @@ 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 query_voter_info(address, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def query_voter_info(address, voter_info_request_object = nil, election_id: nil, official_only: nil, return_all_available_data: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'voterinfo', options)
command.request_representation = Google::Apis::CivicinfoV2::VoterInfoRequest::Representation
command.request_object = voter_info_request_object
command.response_representation = Google::Apis::CivicinfoV2::VoterInfoResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::VoterInfoResponse
command.query['address'] = address unless address.nil?
@ -173,6 +182,7 @@ module Google
# Looks up political geography and representative information for a single
# address.
# @param [Google::Apis::CivicinfoV2::RepresentativeInfoRequest] representative_info_request_object
# @param [String] address
# The address to look up. May only be specified if the field ocdId is not given
# in the URL.
@ -208,8 +218,10 @@ 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 representative_info_by_address(address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def representative_info_by_address(representative_info_request_object = nil, address: nil, include_offices: nil, levels: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'representatives', options)
command.request_representation = Google::Apis::CivicinfoV2::RepresentativeInfoRequest::Representation
command.request_object = representative_info_request_object
command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoResponse::Representation
command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoResponse
command.query['address'] = address unless address.nil?
@ -225,6 +237,7 @@ module Google
# Looks up representative information for a single geographic division.
# @param [String] ocd_id
# The Open Civic Data division identifier of the division to look up.
# @param [Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest] division_representative_info_request_object
# @param [Array<String>, String] levels
# A list of office levels to filter by. Only offices that serve at least one of
# these levels will be returned. Divisions that don't contain a matching office
@ -258,8 +271,10 @@ 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 representative_info_by_division(ocd_id, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def representative_info_by_division(ocd_id, division_representative_info_request_object = nil, levels: nil, recursive: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'representatives/{ocdId}', options)
command.request_representation = Google::Apis::CivicinfoV2::DivisionRepresentativeInfoRequest::Representation
command.request_object = division_representative_info_request_object
command.response_representation = Google::Apis::CivicinfoV2::RepresentativeInfoData::Representation
command.response_class = Google::Apis::CivicinfoV2::RepresentativeInfoData
command.params['ocdId'] = ocd_id unless ocd_id.nil?

View File

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

View File

@ -1767,8 +1767,7 @@ module Google
# @return [String]
attr_accessor :source_snapshot_id
# [Output Only] The status of disk creation. Applicable statuses includes:
# CREATING, FAILED, READY, RESTORING.
# [Output Only] The status of disk creation.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
@ -3749,8 +3748,8 @@ module Google
# valid partial URL. You must provide either this property or the rawDisk.source
# property but not both to create an image. For example, the following are valid
# values:
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk
# - projects/project/zones/zone/disk/disk
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
# - projects/project/zones/zone/disks/disk
# - zones/zone/disks/disk
# Corresponds to the JSON property `sourceDisk`
# @return [String]
@ -7930,7 +7929,7 @@ module Google
attr_accessor :id
# Router interfaces. Each interface requires either one linked resource (e.g.
# linkedVpnTunnel) or IP address and IP address range (e.g. ipRange).
# linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both.
# Corresponds to the JSON property `interfaces`
# @return [Array<Google::Apis::ComputeBeta::RouterInterface>]
attr_accessor :interfaces

View File

@ -1520,6 +1520,7 @@ module Google
# @param [String] disk
# Name of the persistent disk to snapshot.
# @param [Google::Apis::ComputeBeta::Snapshot] snapshot_object
# @param [Boolean] guest_flush
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1541,7 +1542,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_disk_snapshot(project, zone, disk, snapshot_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def create_disk_snapshot(project, zone, disk, snapshot_object = nil, guest_flush: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/createSnapshot', options)
command.request_representation = Google::Apis::ComputeBeta::Snapshot::Representation
command.request_object = snapshot_object
@ -1550,6 +1551,7 @@ module Google
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['disk'] = disk unless disk.nil?
command.query['guestFlush'] = guest_flush unless guest_flush.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?

View File

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

View File

@ -1552,8 +1552,7 @@ module Google
# @return [String]
attr_accessor :source_snapshot_id
# [Output Only] The status of disk creation. Applicable statuses includes:
# CREATING, FAILED, READY, RESTORING.
# [Output Only] The status of disk creation.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
@ -3395,8 +3394,8 @@ module Google
# valid partial URL. You must provide either this property or the rawDisk.source
# property but not both to create an image. For example, the following are valid
# values:
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk
# - projects/project/zones/zone/disk/disk
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
# - projects/project/zones/zone/disks/disk
# - zones/zone/disks/disk
# Corresponds to the JSON property `sourceDisk`
# @return [String]
@ -7045,7 +7044,7 @@ module Google
attr_accessor :id
# Router interfaces. Each interface requires either one linked resource (e.g.
# linkedVpnTunnel) or IP address and IP address range (e.g. ipRange).
# linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both.
# Corresponds to the JSON property `interfaces`
# @return [Array<Google::Apis::ComputeV1::RouterInterface>]
attr_accessor :interfaces

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/datastore/
module DatastoreV1
VERSION = 'V1'
REVISION = '20161004'
REVISION = '20161013'
# 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 = '20161005'
REVISION = '20161012'
# View and manage your advertising data in DoubleClick Search
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'

View File

@ -1037,6 +1037,31 @@ 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::GenomicsV1::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
@ -1118,31 +1143,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::GenomicsV1::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
# The request message for Operations.CancelOperation.
class CancelOperationRequest
include Google::Apis::Core::Hashable

View File

@ -178,13 +178,13 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Operation
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Operation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
@ -748,6 +748,15 @@ module Google
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Operation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -760,15 +769,6 @@ module Google
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::GenomicsV1::Operation, decorator: Google::Apis::GenomicsV1::Operation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class CancelOperationRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -755,37 +755,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::GenomicsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::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::GenomicsV1::Operation::Representation
command.response_class = Google::Apis::GenomicsV1::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.
# @param [String] name
# The name of the operation collection.
@ -831,6 +800,37 @@ 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::GenomicsV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::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::GenomicsV1::Operation::Representation
command.response_class = Google::Apis::GenomicsV1::Operation
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Starts asynchronous cancellation on a long-running operation. The server makes
# a best effort to cancel the operation, but success is not guaranteed. Clients
# may use Operations.GetOperation or Operations.ListOperations to check whether

View File

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

View File

@ -113,22 +113,19 @@ module Google
end
end
# Describes a sink used to export log entries outside Stackdriver Logging.
# Describes a sink used to export log entries outside of Stackdriver Logging.
class LogSink
include Google::Apis::Core::Hashable
# 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
# Corresponds to the JSON property `writerIdentity`
# Required. The export destination. See
# [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).
# Examples:
# "storage.googleapis.com/my-gcs-bucket"
# "bigquery.googleapis.com/projects/my-project-id/datasets/my-dataset"
# "pubsub.googleapis.com/projects/my-project/topics/my-topic"
# Corresponds to the JSON property `destination`
# @return [String]
attr_accessor :writer_identity
attr_accessor :destination
# Optional. An [advanced logs filter](/logging/docs/view/advanced_filters).
# Only log entries matching the filter are exported. The filter
@ -141,23 +138,10 @@ module Google
# @return [String]
attr_accessor :filter
# Required. The export destination. See
# [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).
# Examples:
# "storage.googleapis.com/my-gcs-bucket"
# "bigquery.googleapis.com/projects/my-project-id/datasets/my-dataset"
# "pubsub.googleapis.com/projects/my-project/topics/my-topic"
# Corresponds to the JSON property `destination`
# Optional. Time at which this sink expires.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :destination
# Optional. The log entry version to use for this sink's exported log
# entries. This version does not have to correspond to the version of the
# log entry that was written to Stackdriver Logging. If omitted, the
# v2 format is used.
# Corresponds to the JSON property `outputVersionFormat`
# @return [String]
attr_accessor :output_version_format
attr_accessor :end_time
# Required. The client-assigned sink identifier, unique within the
# project. Example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are
@ -168,17 +152,48 @@ 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.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Optional. The log entry version to use for this sink's exported log
# entries. This version does not have to correspond to the version of the
# log entry that was written to Stackdriver Logging. If omitted, the
# v2 format is used.
# Corresponds to the JSON property `outputVersionFormat`
# @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
# Corresponds to the JSON property `writerIdentity`
# @return [String]
attr_accessor :writer_identity
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
@filter = args[:filter] if args.key?(:filter)
@destination = args[:destination] if args.key?(:destination)
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
@filter = args[:filter] if args.key?(:filter)
@end_time = args[:end_time] if args.key?(:end_time)
@name = args[:name] if args.key?(:name)
@start_time = args[:start_time] if args.key?(:start_time)
@output_version_format = args[:output_version_format] if args.key?(:output_version_format)
@writer_identity = args[:writer_identity] if args.key?(:writer_identity)
end
end
@ -1105,7 +1120,7 @@ module Google
# @return [Array<String>]
attr_accessor :project_ids
# Optional. One or more cloud resources from which to retrieve log entries.
# Required. One or more cloud resources from which to retrieve log entries.
# Example: `"projects/my-project-1A"`, `"projects/1234567890"`. Projects
# listed in `projectIds` are added to this list.
# Corresponds to the JSON property `resourceNames`

View File

@ -172,11 +172,13 @@ module Google
class LogSink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :writer_identity, as: 'writerIdentity'
property :filter, as: 'filter'
property :destination, as: 'destination'
property :output_version_format, as: 'outputVersionFormat'
property :filter, as: 'filter'
property :end_time, as: 'endTime'
property :name, as: 'name'
property :start_time, as: 'startTime'
property :output_version_format, as: 'outputVersionFormat'
property :writer_identity, as: 'writerIdentity'
end
end

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20161013'
REVISION = '20161017'
# 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/+/domains/
module PlusDomainsV1
VERSION = 'V1'
REVISION = '20161012'
REVISION = '20161018'
# 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 = '20161012'
REVISION = '20161018'
# 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 = '20161006'
REVISION = '20161014'
# View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'

View File

@ -217,6 +217,34 @@ module Google
end
end
# The response when clearing a range of values in a spreadsheet.
class ClearValuesResponse
include Google::Apis::Core::Hashable
# The spreadsheet the updates were applied to.
# Corresponds to the JSON property `spreadsheetId`
# @return [String]
attr_accessor :spreadsheet_id
# The range (in A1 notation) that was cleared.
# (If the request was for an unbounded range or a ranger larger
# than the bounds of the sheet, this will be the actual range
# that was cleared, bounded to the sheet's limits.)
# Corresponds to the JSON property `clearedRange`
# @return [String]
attr_accessor :cleared_range
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
@cleared_range = args[:cleared_range] if args.key?(:cleared_range)
end
end
# Updates a conditional format rule at the given index,
# or moves a conditional format rule to another index.
class UpdateConditionalFormatRuleRequest
@ -1561,6 +1589,34 @@ module Google
end
end
# The response when updating a range of values in a spreadsheet.
class BatchClearValuesResponse
include Google::Apis::Core::Hashable
# The spreadsheet the updates were applied to.
# Corresponds to the JSON property `spreadsheetId`
# @return [String]
attr_accessor :spreadsheet_id
# The ranges that were cleared, in A1 notation.
# (If the requests were for an unbounded range or a ranger larger
# than the bounds of the sheet, this will be the actual ranges
# that were cleared, bounded to the sheet's limits.)
# Corresponds to the JSON property `clearedRanges`
# @return [Array<String>]
attr_accessor :cleared_ranges
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
@cleared_ranges = args[:cleared_ranges] if args.key?(:cleared_ranges)
end
end
# A rule describing a conditional format.
class ConditionalFormatRule
include Google::Apis::Core::Hashable
@ -2793,6 +2849,19 @@ module Google
end
end
# The request for clearing a range of values in a spreadsheet.
class ClearValuesRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A protected range.
class ProtectedRange
include Google::Apis::Core::Hashable
@ -3263,6 +3332,25 @@ module Google
end
end
# The request for clearing more than one range of values in a spreadsheet.
class BatchClearValuesRequest
include Google::Apis::Core::Hashable
# The ranges to clear, in A1 notation.
# Corresponds to the JSON property `ranges`
# @return [Array<String>]
attr_accessor :ranges
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ranges = args[:ranges] if args.key?(:ranges)
end
end
# Updates properties of dimensions within the specified range.
class UpdateDimensionPropertiesRequest
include Google::Apis::Core::Hashable
@ -3609,7 +3697,7 @@ module Google
attr_accessor :style
# The width of the border, in pixels.
# Border widths must be between 0 and 3 pixels, inclusive.
# Deprecated; the width is determined by the "style" field.
# Corresponds to the JSON property `width`
# @return [Fixnum]
attr_accessor :width

View File

@ -64,6 +64,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ClearValuesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateConditionalFormatRuleRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -256,6 +262,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BatchClearValuesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ConditionalFormatRule
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -388,6 +400,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ClearValuesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ProtectedRange
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -448,6 +466,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class BatchClearValuesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UpdateDimensionPropertiesRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -803,6 +827,14 @@ module Google
end
end
class ClearValuesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :spreadsheet_id, as: 'spreadsheetId'
property :cleared_range, as: 'clearedRange'
end
end
class UpdateConditionalFormatRuleRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1151,6 +1183,14 @@ module Google
end
end
class BatchClearValuesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :spreadsheet_id, as: 'spreadsheetId'
collection :cleared_ranges, as: 'clearedRanges'
end
end
class ConditionalFormatRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1392,6 +1432,12 @@ module Google
end
end
class ClearValuesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class ProtectedRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1498,6 +1544,13 @@ module Google
end
end
class BatchClearValuesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ranges, as: 'ranges'
end
end
class UpdateDimensionPropertiesRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -176,6 +176,181 @@ module Google
execute_or_queue_command(command, &block)
end
# Clears values from a spreadsheet.
# The caller must specify the spreadsheet ID and range.
# Only values are cleared -- all other properties of the cell (such as
# formatting, data validation, etc..) are kept.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to update.
# @param [String] range
# The A1 notation of the values to clear.
# @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::ClearValuesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def clear_values(spreadsheet_id, range, clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
command.request_object = clear_values_request_object
command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.params['range'] = range unless range.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns one or more ranges of values from a spreadsheet.
# The caller must specify the spreadsheet ID and one or more ranges.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to retrieve data from.
# @param [Array<String>, String] ranges
# The A1 notation of the values to retrieve.
# @param [String] value_render_option
# How values should be represented in the output.
# @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.
# @param [String] major_dimension
# The major dimension that results should use.
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
# then requesting `range=A1:B2,majorDimension=ROWS` will return
# `[[1,2],[3,4]]`,
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
# `[[1,3],[2,4]]`.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['ranges'] = ranges unless ranges.nil?
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Sets values in one or more ranges of a spreadsheet.
# The caller must specify the spreadsheet ID,
# a valueInputOption, and one or more
# ValueRanges.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to update.
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
command.request_object = batch_update_values_request_object
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns a range of values from a spreadsheet.
# The caller must specify the spreadsheet ID and a range.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to retrieve data from.
# @param [String] range
# The A1 notation of the values to retrieve.
# @param [String] value_render_option
# How values should be represented in the output.
# @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.
# @param [String] major_dimension
# The major dimension that results should use.
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
# then requesting `range=A1:B2,majorDimension=ROWS` will return
# `[[1,2],[3,4]]`,
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
# `[[1,3],[2,4]]`.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::ValueRange] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::ValueRange]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
command.response_class = Google::Apis::SheetsV4::ValueRange
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.params['range'] = range unless range.nil?
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Appends values to a spreadsheet. The input range is used to search for
# existing data and find a "table" within that range. Values will be
# appended to the next row of the table, starting with the first column of
@ -272,113 +447,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a range of values from a spreadsheet.
# The caller must specify the spreadsheet ID and a range.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to retrieve data from.
# @param [String] range
# The A1 notation of the values to retrieve.
# @param [String] value_render_option
# How values should be represented in the output.
# @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.
# @param [String] major_dimension
# The major dimension that results should use.
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
# then requesting `range=A1:B2,majorDimension=ROWS` will return
# `[[1,2],[3,4]]`,
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
# `[[1,3],[2,4]]`.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::ValueRange] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::ValueRange]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
command.response_class = Google::Apis::SheetsV4::ValueRange
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.params['range'] = range unless range.nil?
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Returns one or more ranges of values from a spreadsheet.
# Clears one or more ranges of values from a spreadsheet.
# The caller must specify the spreadsheet ID and one or more ranges.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to retrieve data from.
# @param [Array<String>, String] ranges
# The A1 notation of the values to retrieve.
# @param [String] value_render_option
# How values should be represented in the output.
# @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.
# @param [String] major_dimension
# The major dimension that results should use.
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
# then requesting `range=A1:B2,majorDimension=ROWS` will return
# `[[1,2],[3,4]]`,
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
# `[[1,3],[2,4]]`.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['ranges'] = ranges unless ranges.nil?
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Sets values in one or more ranges of a spreadsheet.
# The caller must specify the spreadsheet ID,
# a valueInputOption, and one or more
# ValueRanges.
# Only values are cleared -- all other properties of the cell (such as
# formatting, data validation, etc..) are kept.
# @param [String] spreadsheet_id
# The ID of the spreadsheet to update.
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
# @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
@ -388,20 +463,20 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
# @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
# @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
command.request_object = batch_update_values_request_object
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
command.request_object = batch_clear_values_request_object
command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/speech/
module SpeechV1beta1
VERSION = 'V1beta1'
REVISION = '20161010'
REVISION = '20161017'
# 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/storage/docs/json_api/
module StorageV1
VERSION = 'V1'
REVISION = '20161005'
REVISION = '20161019'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -100,10 +100,12 @@ module Google
# @return [String]
attr_accessor :self_link
# The bucket's storage class. This defines how objects in the bucket are stored
# and determines the SLA and the cost of storage. Values include STANDARD,
# NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. For more
# information, see storage classes.
# The bucket's default storage class, used whenever no storageClass is specified
# for a newly-created object. This defines how objects in the bucket are stored
# and determines the SLA and the cost of storage. Values include MULTI_REGIONAL,
# REGIONAL, STANDARD, NEARLINE, COLDLINE, and DURABLE_REDUCED_AVAILABILITY. If
# this value is not specified when the bucket is created, it will default to
# STANDARD. For more information, see storage classes.
# Corresponds to the JSON property `storageClass`
# @return [String]
attr_accessor :storage_class
@ -247,7 +249,12 @@ module Google
class Action
include Google::Apis::Core::Hashable
# Type of the action. Currently, only Delete is supported.
# Target storage class. Required iff the type of the action is SetStorageClass.
# Corresponds to the JSON property `storageClass`
# @return [String]
attr_accessor :storage_class
# Type of the action. Currently, only Delete and SetStorageClass are supported.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -258,6 +265,7 @@ module Google
# Update properties of this object
def update!(**args)
@storage_class = args[:storage_class] if args.key?(:storage_class)
@type = args[:type] if args.key?(:type)
end
end
@ -286,6 +294,13 @@ module Google
attr_accessor :is_live
alias_method :is_live?, :is_live
# Objects having any of the storage classes specified by this condition will be
# matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, STANDARD,
# and DURABLE_REDUCED_AVAILABILITY.
# Corresponds to the JSON property `matchesStorageClass`
# @return [Array<String>]
attr_accessor :matches_storage_class
# Relevant only for versioned objects. If the value is N, this condition is
# satisfied when there are at least N versions (including the live version)
# newer than this version of the object.
@ -302,6 +317,7 @@ module Google
@age = args[:age] if args.key?(:age)
@created_before = args[:created_before] if args.key?(:created_before)
@is_live = args[:is_live] if args.key?(:is_live)
@matches_storage_class = args[:matches_storage_class] if args.key?(:matches_storage_class)
@num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions)
end
end

View File

@ -241,6 +241,7 @@ module Google
class Action
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :storage_class, as: 'storageClass'
property :type, as: 'type'
end
end
@ -252,6 +253,7 @@ module Google
property :created_before, as: 'createdBefore', type: Date
property :is_live, as: 'isLive'
collection :matches_storage_class, as: 'matchesStorageClass'
property :num_newer_versions, as: 'numNewerVersions'
end
end

View File

@ -15,7 +15,7 @@
module Google
module Apis
# Client library version
VERSION = '0.9.18'
VERSION = '0.9.19'
# Current operating system
# @private