Update generated APIs

This commit is contained in:
Steve Bazyl 2015-12-14 14:27:57 -08:00
parent 0d07ea17f1
commit b7c94d8355
60 changed files with 6804 additions and 1389 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/ad-exchange/buyer-rest
module AdexchangebuyerV1_3
VERSION = 'V1_3'
REVISION = '20151102'
REVISION = '20151209'
# 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/admin-sdk/directory/
module AdminDirectoryV1
VERSION = 'DirectoryV1'
REVISION = '20151005'
REVISION = '20151208'
# View and manage customer related information
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
@ -76,6 +76,12 @@ module Google
# View organization units on your domain
AUTH_ADMIN_DIRECTORY_ORGUNIT_READONLY = 'https://www.googleapis.com/auth/admin.directory.orgunit.readonly'
# View and manage the provisioning of calendar resources on your domain
AUTH_ADMIN_DIRECTORY_RESOURCE_CALENDAR = 'https://www.googleapis.com/auth/admin.directory.resource.calendar'
# View calendar resources on your domain
AUTH_ADMIN_DIRECTORY_RESOURCE_CALENDAR_READONLY = 'https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly'
# Manage delegated admin roles for your domain
AUTH_ADMIN_DIRECTORY_ROLEMANAGEMENT = 'https://www.googleapis.com/auth/admin.directory.rolemanagement'

View File

@ -183,6 +183,103 @@ module Google
end
end
# JSON template for Calendar Resource object in Directory API.
class CalendarResource
include Google::Apis::Core::Hashable
# ETag of the resource.
# Corresponds to the JSON property `etags`
# @return [String]
attr_accessor :etags
# The type of the resource. For calendar resources, the value is admin#directory#
# resources#calendars#CalendarResource.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The brief description of the calendar resource.
# Corresponds to the JSON property `resourceDescription`
# @return [String]
attr_accessor :resource_description
# The read-only email ID for the calendar resource. Generated as part of
# creating a new calendar resource.
# Corresponds to the JSON property `resourceEmail`
# @return [String]
attr_accessor :resource_email
# The unique ID for the calendar resource.
# Corresponds to the JSON property `resourceId`
# @return [String]
attr_accessor :resource_id
# The name of the calendar resource. For example, Training Room 1A
# Corresponds to the JSON property `resourceName`
# @return [String]
attr_accessor :resource_name
# The type of the calendar resource. Used for grouping resources in the calendar
# user interface.
# Corresponds to the JSON property `resourceType`
# @return [String]
attr_accessor :resource_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etags = args[:etags] unless args[:etags].nil?
@kind = args[:kind] unless args[:kind].nil?
@resource_description = args[:resource_description] unless args[:resource_description].nil?
@resource_email = args[:resource_email] unless args[:resource_email].nil?
@resource_id = args[:resource_id] unless args[:resource_id].nil?
@resource_name = args[:resource_name] unless args[:resource_name].nil?
@resource_type = args[:resource_type] unless args[:resource_type].nil?
end
end
# JSON template for Calendar Resource List Response object in Directory API.
class CalendarResources
include Google::Apis::Core::Hashable
# ETag of the resource.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
# The CalendarResources in this page of results.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::AdminDirectoryV1::CalendarResource>]
attr_accessor :items
# Identifies this as a collection of CalendarResources. This is always admin#
# directory#resources#calendars#calendarResourcesList.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The continuation token, used to page through large result sets. Provide this
# value in a subsequent request to return the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
end
end
# An notification channel used to watch for resource changes.
class Channel
include Google::Apis::Core::Hashable

View File

@ -38,6 +38,14 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class CalendarResource
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class CalendarResources
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Channel
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -294,6 +302,30 @@ module Google
end
end
class CalendarResource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etags, as: 'etags'
property :kind, as: 'kind'
property :resource_description, as: 'resourceDescription'
property :resource_email, as: 'resourceEmail'
property :resource_id, as: 'resourceId'
property :resource_name, as: 'resourceName'
property :resource_type, as: 'resourceType'
end
end
class CalendarResources
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :etag, as: 'etag'
collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::CalendarResource, decorator: Google::Apis::AdminDirectoryV1::CalendarResource::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class Channel
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -2017,6 +2017,247 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a calendar resource.
# @param [String] customer
# The unique ID for the customer's Google account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.
# @param [String] calendar_resource_id
# The unique ID of the calendar 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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_resource_calendar(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.params['customer'] = customer unless customer.nil?
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves a calendar resource.
# @param [String] customer
# The unique ID for the customer's Google account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.
# @param [String] calendar_resource_id
# The unique ID of the calendar resource to retrieve.
# @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::AdminDirectoryV1::CalendarResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::CalendarResource]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_resource_calendar(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource
command.params['customer'] = customer unless customer.nil?
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Inserts a calendar resource.
# @param [String] customer
# The unique ID for the customer's Google account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.
# @param [Google::Apis::AdminDirectoryV1::CalendarResource] calendar_resource_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::AdminDirectoryV1::CalendarResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::CalendarResource]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_resource_calendar(customer, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'customer/{customer}/resources/calendars', options)
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.request_object = calendar_resource_object
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource
command.params['customer'] = customer unless customer.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 a list of calendar resources for an account.
# @param [String] customer
# The unique ID for the customer's Google account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.
# @param [Fixnum] max_results
# Maximum number of results to return.
# @param [String] page_token
# Token to specify the next page in the list.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# 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::AdminDirectoryV1::CalendarResources] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::CalendarResources]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_resource_calendars(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'customer/{customer}/resources/calendars', options)
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResources::Representation
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResources
command.params['customer'] = customer unless customer.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?
execute_or_queue_command(command, &block)
end
# Updates a calendar resource. This method supports patch semantics.
# @param [String] customer
# The unique ID for the customer's Google account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.
# @param [String] calendar_resource_id
# The unique ID of the calendar resource to update.
# @param [Google::Apis::AdminDirectoryV1::CalendarResource] calendar_resource_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::AdminDirectoryV1::CalendarResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::CalendarResource]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_resource_calendar(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:patch, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.request_object = calendar_resource_object
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource
command.params['customer'] = customer unless customer.nil?
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Updates a calendar resource.
# @param [String] customer
# The unique ID for the customer's Google account. As an account administrator,
# you can also use the my_customer alias to represent your account's customer ID.
# @param [String] calendar_resource_id
# The unique ID of the calendar resource to update.
# @param [Google::Apis::AdminDirectoryV1::CalendarResource] calendar_resource_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::AdminDirectoryV1::CalendarResource] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AdminDirectoryV1::CalendarResource]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_resource_calendar(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:put, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.request_object = calendar_resource_object
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource
command.params['customer'] = customer unless customer.nil?
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes a role assignment.
# @param [String] customer
# Immutable ID of the Google Apps account.

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20151127'
REVISION = '20151206'
# 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 = '20151127'
REVISION = '20151206'
# 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/analytics/
module AnalyticsV3
VERSION = 'V3'
REVISION = '20151030'
REVISION = '20151124'
# View and manage your Google Analytics data
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/activity/
module AppsactivityV1
VERSION = 'V1'
REVISION = '20150326'
REVISION = '20150417'
# 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/games/services/web/api/states
module AppstateV1
VERSION = 'V1'
REVISION = '20151125'
REVISION = '20151202'
# 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 = '20151116'
REVISION = '20151208'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

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

View File

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

View File

@ -21,12 +21,12 @@ module Google
# Google Cloud Resource Manager API
#
# The Google Cloud Resource Manager API provides methods for creating, reading,
# and updating of project metadata.
# and updating project metadata.
#
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1
VERSION = 'V1beta1'
REVISION = '20151117'
REVISION = '20151211'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -32,19 +32,19 @@ module Google
# @return [String]
attr_accessor :project_number
# The unique, user-assigned ID of the project. It must be 6 to 30 lowercase
# The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
# letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
# prohibited. Example: tokyo-rain-123 Read-only after creation.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The project lifecycle state. Read-only.
# The Project lifecycle state. Read-only.
# Corresponds to the JSON property `lifecycleState`
# @return [String]
attr_accessor :lifecycle_state
# The user-assigned name of the project. It must be 4 to 30 characters. Allowed
# The user-assigned name of the Project. It must be 4 to 30 characters. Allowed
# characters are: lowercase and uppercase letters, numbers, hyphen, single-quote,
# double-quote, space, and exclamation point. Example: My Project Read-write.
# Corresponds to the JSON property `name`
@ -56,7 +56,7 @@ module Google
# @return [String]
attr_accessor :create_time
# The labels associated with this project. Label keys must be between 1 and 63
# The labels associated with this Project. Label keys must be between 1 and 63
# characters long and must conform to the following regular expression: \[a-z\](\
# [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long
# and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
@ -68,10 +68,10 @@ module Google
# @return [Hash<String,String>]
attr_accessor :labels
# A container to reference an id for any resource type. A 'resource' in Google
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an AppEngine app, a
# Compute Engine instance, Cloud SQL database, ...
# Compute Engine instance, a Cloud SQL database, and so on.
# Corresponds to the JSON property `parent`
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
attr_accessor :parent
@ -92,10 +92,10 @@ module Google
end
end
# A container to reference an id for any resource type. A 'resource' in Google
# A container to reference an id for any resource type. A `resource` in Google
# Cloud Platform is a generic term for something you (a developer) may want to
# interact with through one of our API's. Some examples are an AppEngine app, a
# Compute Engine instance, Cloud SQL database, ...
# Compute Engine instance, a Cloud SQL database, and so on.
class ResourceId
include Google::Apis::Core::Hashable
@ -128,7 +128,7 @@ module Google
class ListProjectsResponse
include Google::Apis::Core::Hashable
# The list of projects that matched the list filter. This list can be paginated.
# The list of Projects that matched the list filter. This list can be paginated.
# Corresponds to the JSON property `projects`
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
attr_accessor :projects
@ -197,9 +197,7 @@ module Google
class Policy
include Google::Apis::Core::Hashable
# Version of the `Policy`. The default version is 0. 0 =
# resourcemanager_projects only support legacy roles. 1 = supports non-legacy
# roles 2 = supports AuditConfig
# Version of the `Policy`. The default version is 0.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@ -211,12 +209,14 @@ module Google
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
attr_accessor :bindings
# The etag is used for optimistic concurrency control as a way to help prevent
# `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. If no etag is
# provided in the call to SetIamPolicy, then the existing policy is overwritten
# blindly.
# 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
@ -244,7 +244,7 @@ module Google
attr_accessor :role
# Specifies the identities requesting access for a Cloud Platform resource. `
# members` can have the following formats: * `allUsers`: A special identifier
# 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. * `
@ -337,7 +337,7 @@ module Google
end
end
# The response returned from the ListOrganizations method.
# The response returned from the `ListOrganizations` method.
class ListOrganizationsResponse
include Google::Apis::Core::Hashable
@ -384,9 +384,9 @@ module Google
attr_accessor :display_name
# The entity that owns an Organization. The lifetime of the Organization and all
# of its descendants are bound to the OrganizationOwner. If the
# OrganizationOwner is deleted, the Organization and all its descendants will be
# deleted.
# of its descendants are bound to the `OrganizationOwner`. If the `
# OrganizationOwner` is deleted, the Organization and all its descendants will
# be deleted.
# Corresponds to the JSON property `owner`
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
attr_accessor :owner
@ -411,9 +411,9 @@ module Google
end
# The entity that owns an Organization. The lifetime of the Organization and all
# of its descendants are bound to the OrganizationOwner. If the
# OrganizationOwner is deleted, the Organization and all its descendants will be
# deleted.
# of its descendants are bound to the `OrganizationOwner`. If the `
# OrganizationOwner` is deleted, the Organization and all its descendants will
# be deleted.
class OrganizationOwner
include Google::Apis::Core::Hashable

View File

@ -23,7 +23,7 @@ module Google
# Google Cloud Resource Manager API
#
# The Google Cloud Resource Manager API provides methods for creating, reading,
# and updating of project metadata.
# and updating project metadata.
#
# @example
# require 'google/apis/cloudresourcemanager_v1beta1'
@ -47,10 +47,10 @@ module Google
super('https://cloudresourcemanager.googleapis.com/', '')
end
# Creates a project resource. Initially, the project resource is owned by its
# Creates a Project resource. Initially, the Project resource is owned by its
# creator exclusively. The creator can later grant permission to others to read
# or update the project. Several APIs are activated automatically for the
# project, including Google Cloud Storage.
# or update the Project. Several APIs are activated automatically for the
# Project, including Google Cloud Storage.
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -80,15 +80,15 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists projects that are visible to the user and satisfy the specified filter.
# This method returns projects in an unspecified order. New projects do not
# Lists Projects that are visible to the user and satisfy the specified filter.
# This method returns Projects in an unspecified order. New Projects do not
# necessarily appear at the end of the list.
# @param [String] page_token
# A pagination token returned from a previous call to ListProject that indicates
# from where listing should continue. Optional.
# A pagination token returned from a previous call to ListProjects that
# indicates from where listing should continue. Optional.
# @param [Fixnum] page_size
# The maximum number of Projects to return in the response. The server can
# return fewer projects than requested. If unspecified, server picks an
# return fewer Projects than requested. If unspecified, server picks an
# appropriate default. Optional.
# @param [String] filter
# An expression for filtering the results of the request. Filter rules are case
@ -129,10 +129,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Retrieves the project identified by the specified `project_id` (for example, `
# my-project-123`). The caller must have read permissions for this project.
# Retrieves the Project identified by the specified `project_id` (for example, `
# my-project-123`). The caller must have read permissions for this Project.
# @param [String] project_id
# The project ID (for example, `my-project-123`). Required.
# The Project ID (for example, `my-project-123`). Required.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -160,9 +160,9 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the attributes of the project identified by the specified `project_id`
# Updates the attributes of the Project identified by the specified `project_id`
# (for example, `my-project-123`). The caller must have modify permissions for
# this project.
# this Project.
# @param [String] project_id
# The project ID (for example, `my-project-123`). Required.
# @param [Google::Apis::CloudresourcemanagerV1beta1::Project] project_object
@ -195,20 +195,20 @@ module Google
execute_or_queue_command(command, &block)
end
# Marks the project identified by the specified `project_id` (for example, `my-
# project-123`) for deletion. This method will only affect the project if the
# following criteria are met: + The project does not have a billing account
# associated with it. + The project has a lifecycle state of ACTIVE. This method
# changes the project's lifecycle state from ACTIVE to DELETE_REQUESTED. The
# Marks the Project identified by the specified `project_id` (for example, `my-
# project-123`) for deletion. This method will only affect the Project if the
# following criteria are met: + The Project does not have a billing account
# associated with it. + The Project has a lifecycle state of ACTIVE. This method
# changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The
# deletion starts at an unspecified time, at which point the lifecycle state
# changes to DELETE_IN_PROGRESS. Until the deletion completes, you can check the
# lifecycle state checked by retrieving the project with GetProject, and the
# project remains visible to ListProjects. However, you cannot update the
# project. After the deletion completes, the project is not retrievable by the
# lifecycle state checked by retrieving the Project with GetProject, and the
# Project remains visible to ListProjects. However, you cannot update the
# project. After the deletion completes, the Project is not retrievable by the
# GetProject and ListProjects methods. The caller must have modify permissions
# for this project.
# for this Project.
# @param [String] project_id
# The project ID (for example, `foo-bar-123`). Required.
# The Project ID (for example, `foo-bar-123`). Required.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -236,11 +236,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Restores the project identified by the specified `project_id` (for example, `
# my-project-123`). You can only use this method for a project that has a
# Restores the Project identified by the specified `project_id` (for example, `
# my-project-123`). You can only use this method for a Project that has a
# lifecycle state of DELETE_REQUESTED. After deletion starts, as indicated by a
# lifecycle state of DELETE_IN_PROGRESS, the project cannot be restored. The
# caller must have modify permissions for this project.
# lifecycle state of DELETE_IN_PROGRESS, the Project cannot be restored. The
# caller must have modify permissions for this Project.
# @param [String] project_id
# The project ID (for example, `foo-bar-123`). Required.
# @param [String] fields
@ -270,12 +270,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the IAM access control policy for specified project.
# Returns the IAM access control policy for the specified Project. Permission is
# denied if the policy or the resource does not exist.
# @param [String] resource
# REQUIRED: The resource for which policy is being requested. `resource` is
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
# disk``. The format for the path specified in this value is resource specific
# and is specified in the documentation for the respective GetIamPolicy rpc.
# and is specified in the `getIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -306,14 +307,24 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the IAM access control policy for the specified project. We do not
# currently support 'domain:' prefixed members in a Binding of a Policy. Calling
# this method requires enabling the App Engine Admin API.
# Sets the IAM access control policy for the specified Project. Replaces any
# existing policy. The following constraints apply when using `setIamPolicy()`: +
# Project currently supports only `user:`emailid`` and `serviceAccount:`emailid`
# ` members in a `Binding` of a `Policy`. + To be added as an `owner`, a user
# must be invited via Cloud Platform console and must accept the invitation. +
# Members cannot be added to more than one role in the same policy. + There must
# be at least one owner who has accepted the Terms of Service (ToS) agreement in
# the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted owner
# from the policy will fail. + Calling this method requires enabling the App
# Engine Admin API. Note: Removing service accounts from policies or changing
# their roles can render services completely inoperable. It is important to
# understand how the service account is being used before removing or updating
# its roles.
# @param [String] resource
# REQUIRED: The resource for which policy is being specified. `resource` is
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
# disk``. The format for the path specified in this value is resource specific
# and is specified in the documentation for the respective SetIamPolicy rpc.
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -344,14 +355,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Tests the specified permissions against the IAM access control policy for the
# specified project.
# Returns permissions that a caller has on the specified Project.
# @param [String] resource
# REQUIRED: The resource for which policy detail is being requested. `resource`
# is usually specified as a path, such as, `projects/`project`/zones/`zone`/
# disks/`disk``. The format for the path specified in this value is resource
# specific and is specified in the documentation for the respective
# TestIamPermissions rpc.
# specific and is specified in the `testIamPermissions` documentation. rpc.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -382,15 +391,17 @@ module Google
execute_or_queue_command(command, &block)
end
# Query Organization resources.
# Lists Organization resources that are visible to the user and satisfy the
# specified filter. This method returns Organizations in an unspecified order.
# New Organizations do not necessarily appear at the end of the list.
# @param [Fixnum] page_size
# The maximum number of Organizations to return in the response. This field is
# optional.
# @param [String] page_token
# A pagination token returned from a previous call to ListOrganizations that
# A pagination token returned from a previous call to `ListOrganizations` that
# indicates from where listing should continue. This field is optional.
# @param [String] filter
# An optional query string used to filter the Organizations to be return in the
# An optional query string used to filter the Organizations to return in the
# response. Filter rules are case-insensitive. Organizations may be filtered by `
# owner.directoryCustomerId` or by `domain`, where the domain is a Google for
# Work domain, for example: |Filter|Description| |------|-----------| |owner.
@ -426,7 +437,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Fetches an Organization resource by id.
# Fetches an Organization resource identified by the specified `organization_id`.
# @param [String] organization_id
# The id of the Organization resource to fetch.
# @param [String] fields
@ -456,7 +467,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates an Organization resource.
# Updates an Organization resource identified by the specified `organization_id`.
# @param [String] organization_id
# An immutable id for the Organization that is assigned on creation. This should
# be omitted when creating a new Organization. This field is read-only.
@ -490,13 +501,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the access control policy on a Organization resource. Replaces any
# Sets the access control policy on an Organization resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which policy is being specified. `resource` is
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
# disk``. The format for the path specified in this value is resource specific
# and is specified in the documentation for the respective SetIamPolicy rpc.
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -527,13 +538,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a Organization resource. May be empty if no
# such policy or resource exists.
# Gets the access control policy for an Organization resource. May be empty if
# no such policy or resource exists.
# @param [String] resource
# REQUIRED: The resource for which policy is being requested. `resource` is
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
# disk``. The format for the path specified in this value is resource specific
# and is specified in the documentation for the respective GetIamPolicy rpc.
# and is specified in the `getIamPolicy` documentation.
# @param [Google::Apis::CloudresourcemanagerV1beta1::GetIamPolicyRequest] get_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -569,8 +580,7 @@ module Google
# REQUIRED: The resource for which policy detail is being requested. `resource`
# is usually specified as a path, such as, `projects/`project`/zones/`zone`/
# disks/`disk``. The format for the path specified in this value is resource
# specific and is specified in the documentation for the respective
# TestIamPermissions rpc.
# specific and is specified in the `testIamPermissions` documentation. rpc.
# @param [Google::Apis::CloudresourcemanagerV1beta1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -20,13 +20,13 @@ module Google
module Apis
# Google Cloud Trace API
#
# The Google Cloud Trace API provides services for reading and writing runtime
# trace data for Cloud applications.
# The Cloud Trace API allows you to send traces to and retrieve traces from
# Google Cloud Trace.
#
# @see https://cloud.google.com/tools/cloud-trace
module CloudtraceV1
VERSION = 'V1'
REVISION = '20150825'
REVISION = '20151207'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,17 +22,18 @@ module Google
module Apis
module CloudtraceV1
# The response message for the ListTraces method.
# The response message for the `ListTraces` method.
class ListTracesResponse
include Google::Apis::Core::Hashable
# The list of trace records returned.
# List of trace records returned.
# Corresponds to the JSON property `traces`
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
attr_accessor :traces
# If defined, indicates that there are more topics that match the request, and
# this value should be passed to the next ListTopicsRequest to continue.
# If defined, indicates that there are more traces that match the request and
# that this value should be passed to the next request to continue retrieving
# additional traces.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -48,24 +49,24 @@ module Google
end
end
# A Trace is a collection of spans describing the execution timings of a single
# operation.
# A trace describes how long it takes for an application to perform an operation.
# It consists of a set of spans, each of which represent a single timed event
# within the operation.
class Trace
include Google::Apis::Core::Hashable
# The Project ID of the Google Cloud project.
# Project ID of the Cloud project where the trace data is stored.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# A 128-bit numeric value, formatted as a 32-byte hex string, that represents a
# trace. Each trace should have an identifier that is globally unique.
# Globally unique identifier for the trace. This identifier is a 128-bit numeric
# value formatted as a 32-byte hex string.
# Corresponds to the JSON property `traceId`
# @return [String]
attr_accessor :trace_id
# The collection of span records within this trace. Spans that appear in calls
# to PatchTraces may be incomplete or partial.
# Collection of spans in the trace.
# Corresponds to the JSON property `spans`
# @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
attr_accessor :spans
@ -82,48 +83,51 @@ module Google
end
end
# A span is the data recorded with a single span.
# A span represents a single timed event within a trace. Spans can be nested and
# form a trace tree. Often, a trace contains a root span that describes the end-
# to-end latency of an operation and, optionally, one or more subspans for its
# suboperations. Spans do not need to be contiguous. There may be gaps between
# spans in a trace.
class TraceSpan
include Google::Apis::Core::Hashable
# Identifier of the span within the trace. Each span should have an identifier
# that is unique per trace.
# Identifier for the span. This identifier must be unique within a trace.
# Corresponds to the JSON property `spanId`
# @return [String]
attr_accessor :span_id
# SpanKind distinguishes spans generated in a particular context. For example,
# two spans with the same name, one with the kind RPC_CLIENT, and the other with
# RPC_SERVER can indicate the queueing latency associated with the span.
# Distinguishes between spans generated in a particular context. For example,
# two spans with the same name may be distinguished using `RPC_CLIENT` and `
# RPC_SERVER` to identify queueing latency associated with the span.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The name of the trace. This is sanitized and displayed on the UI. This may be
# a method name or some other per-callsite name. For the same binary and the
# same call point, it is a good practice to choose a consistent name in order to
# Name of the trace. The trace name is sanitized and displayed in the Cloud
# Trace tool in the Google Developers Console. The name may be a method name or
# some other per-call site name. For the same executable and the same call point,
# a best practice is to use a consistent name, which makes it easier to
# correlate cross-trace spans.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The start time of the span in nanoseconds from the UNIX epoch.
# Start time of the span in nanoseconds from the UNIX epoch.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# The end time of the span in nanoseconds from the UNIX epoch.
# End time of the span in nanoseconds from the UNIX epoch.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# Identifies the parent of the current span. May be missing. Serialized bytes
# representation of SpanId.
# ID of the parent span, if any. Optional.
# Corresponds to the JSON property `parentSpanId`
# @return [String]
attr_accessor :parent_span_id
# Annotations via labels.
# Collection of labels associated with the span.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -144,11 +148,11 @@ module Google
end
end
# A list of traces for the PatchTraces method.
# List of new or updated traces.
class Traces
include Google::Apis::Core::Hashable
# A list of traces.
# List of traces.
# Corresponds to the JSON property `traces`
# @return [Array<Google::Apis::CloudtraceV1::Trace>]
attr_accessor :traces

View File

@ -22,8 +22,8 @@ module Google
module CloudtraceV1
# Google Cloud Trace API
#
# The Google Cloud Trace API provides services for reading and writing runtime
# trace data for Cloud applications.
# The Cloud Trace API allows you to send traces to and retrieve traces from
# Google Cloud Trace.
#
# @example
# require 'google/apis/cloudtrace_v1'
@ -47,12 +47,13 @@ module Google
super('https://cloudtrace.googleapis.com/', '')
end
# Updates the existing traces specified by PatchTracesRequest and inserts the
# new traces. Any existing trace or span fields included in an update are
# overwritten by the update, and any additional fields in an update are merged
# with the existing trace data.
# Sends new traces to Cloud Trace or updates existing traces. If the ID of a
# trace that you send matches that of an existing trace, any fields in the
# existing trace and its spans are overwritten by the provided values, and any
# new fields provided are merged with the existing trace data. If the ID does
# not match, a new trace is created.
# @param [String] project_id
# The project id of the trace to patch.
# ID of the Cloud project where the trace data is stored.
# @param [Google::Apis::CloudtraceV1::Traces] traces_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -83,32 +84,33 @@ module Google
execute_or_queue_command(command, &block)
end
# List traces matching the filter expression.
# Returns of a list of traces that match the specified filter conditions.
# @param [String] project_id
# The stringified-version of the project id.
# ID of the Cloud project where the trace data is stored.
# @param [String] view
# ViewType specifies the projection of the result.
# Type of data returned for traces in the list. Optional. Default is `MINIMAL`.
# @param [Fixnum] page_size
# Maximum number of topics to return. If not specified or <= 0, the
# implementation will select a reasonable value. The implemenation may always
# return fewer than the requested page_size.
# Maximum number of traces to return. If not specified or <= 0, the
# implementation selects a reasonable value. The implementation may return fewer
# traces than the requested page size. Optional.
# @param [String] page_token
# The token identifying the page of results to return from the ListTraces method.
# If present, this value is should be taken from the next_page_token field of a
# previous ListTracesResponse.
# Token identifying the page of results to return. If provided, use the value of
# the `next_page_token` field from a previous request. Optional.
# @param [String] start_time
# End of the time interval (inclusive).
# End of the time interval (inclusive) during which the trace data was collected
# from the application.
# @param [String] end_time
# Start of the time interval (exclusive).
# Start of the time interval (inclusive) during which the trace data was
# collected from the application.
# @param [String] filter
# An optional filter for the request.
# @param [String] order_by
# The trace field used to establish the order of traces returned by the
# ListTraces method. Possible options are: trace_id name (name field of root
# span) duration (different between end_time and start_time fields of root span)
# start (start_time field of root span) Descending order can be specified by
# appending "desc" to the sort field: name desc Only one sort field is permitted,
# though this may change in the future.
# Field used to sort the returned traces. Optional. Can be one of the following:
# * `trace_id` * `name` (`name` field of root span in the trace) * `duration` (
# difference between `end_time` and `start_time` fields of the root span) * `
# start` (`start_time` field of the root span) Descending order can be specified
# by appending `desc` to the sort field (for example, `name desc`). Only one
# sort field is permitted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -143,11 +145,11 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets one trace by id.
# Gets a single trace by its ID.
# @param [String] project_id
# The project id of the trace to return.
# ID of the Cloud project where the trace data is stored.
# @param [String] trace_id
# The trace id of the trace to return.
# ID of the trace to return.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -175,44 +177,6 @@ module Google
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns a discovery document in the specified `format`. The typeurl in the
# returned google.protobuf.Any value depends on the requested format.
# @param [String] format
# The format requested for discovery.
# @param [Array<String>, String] labels
# A list of labels (like visibility) influencing the scope of the requested doc.
# @param [String] version
# The API version of the requested discovery doc.
# @param [Array<String>, String] args
# Any additional arguments.
# @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 [NilClass] No result returned for this method
# @yieldparam err [StandardError] error object if request failed
#
# @return [void]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_discovery(format: nil, labels: nil, version: nil, args: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/discovery', options)
command.query['format'] = format unless format.nil?
command.query['labels'] = labels unless labels.nil?
command.query['version'] = version unless version.nil?
command.query['args'] = args unless args.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

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

File diff suppressed because it is too large Load Diff

View File

@ -2032,6 +2032,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :client_operation_id, as: 'clientOperationId'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :end_time, as: 'endTime'
property :error, as: 'error', class: Google::Apis::ComputeV1::Operation::Error, decorator: Google::Apis::ComputeV1::Operation::Error::Representation

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -1509,7 +1509,8 @@ module Google
# @return [String]
attr_accessor :attribute_language
# The two-letter ISO 639-1 language of the items in the feed.
# The two-letter ISO 639-1 language of the items in the feed. Must be a valid
# language for targetCountry.
# Corresponds to the JSON property `contentLanguage`
# @return [String]
attr_accessor :content_language
@ -3418,6 +3419,13 @@ module Google
class OrdersCancelLineItemRequest
include Google::Apis::Core::Hashable
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# The ID of the line item to cancel.
# Corresponds to the JSON property `lineItemId`
# @return [String]
@ -3449,6 +3457,7 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] unless args[:amount].nil?
@line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
@operation_id = args[:operation_id] unless args[:operation_id].nil?
@quantity = args[:quantity] unless args[:quantity].nil?
@ -3728,6 +3737,13 @@ module Google
class OrdersCustomBatchRequestEntryCancelLineItem
include Google::Apis::Core::Hashable
# Amount to refund for the cancelation. Optional. If not set, Google will
# calculate the default based on the price and tax of the items involved. The
# amount must not be larger than the net amount left on the order.
# Corresponds to the JSON property `amount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :amount
# The ID of the line item to cancel.
# Corresponds to the JSON property `lineItemId`
# @return [String]
@ -3754,6 +3770,7 @@ module Google
# Update properties of this object
def update!(**args)
@amount = args[:amount] unless args[:amount].nil?
@line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
@quantity = args[:quantity] unless args[:quantity].nil?
@reason = args[:reason] unless args[:reason].nil?

View File

@ -1578,6 +1578,8 @@ module Google
class OrdersCancelLineItemRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :line_item_id, as: 'lineItemId'
property :operation_id, as: 'operationId'
property :quantity, as: 'quantity'
@ -1671,6 +1673,8 @@ module Google
class OrdersCustomBatchRequestEntryCancelLineItem
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :line_item_id, as: 'lineItemId'
property :quantity, as: 'quantity'
property :reason, as: 'reason'

View File

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

View File

@ -339,8 +339,7 @@ module Google
class Operation
include Google::Apis::Core::Hashable
# [Output Only] An optional identifier specified by the client when the mutation
# was initiated. Must be unique for all Operation resources in the project.
# [Output Only] A unique client ID generated by the server.
# Corresponds to the JSON property `clientOperationId`
# @return [String]
attr_accessor :client_operation_id
@ -350,8 +349,14 @@ module Google
# @return [String]
attr_accessor :creation_timestamp
# [Output Only] The time that this operation was completed. This is in RFC3339
# text format.
# [Output Only] A textual description of the operation, which is set when the
# operation is created.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] The time that this operation was completed. This value is in
# RFC3339 text format.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
@ -369,18 +374,19 @@ module Google
attr_accessor :http_error_message
# [Output Only] If the operation fails, this field contains the HTTP error
# message that was returned, such as 404.
# message that was returned. For example, a 404 means the resource was not found.
# Corresponds to the JSON property `httpErrorStatusCode`
# @return [Fixnum]
attr_accessor :http_error_status_code
# [Output Only] Unique identifier for the resource; defined by the server.
# [Output Only] The unique identifier for the resource. This identifier is
# defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# [Output Only] The time that this operation was requested. This is in RFC3339
# text format.
# [Output Only] The time that this operation was requested. This value is in
# RFC3339 text format.
# Corresponds to the JSON property `insertTime`
# @return [String]
attr_accessor :insert_time
@ -396,8 +402,7 @@ module Google
# @return [String]
attr_accessor :name
# [Output Only] Type of the operation, such as insert, compute.instanceGroups.
# update, or compute.instanceGroups.delete.
# [Output Only] The type of operation, which can be insert, update, or delete.
# Corresponds to the JSON property `operationType`
# @return [String]
attr_accessor :operation_type
@ -421,14 +426,14 @@ module Google
# @return [String]
attr_accessor :self_link
# [Output Only] The time that this operation was started by the server. This is
# in RFC3339 text format.
# [Output Only] The time that this operation was started by the server. This
# value is in RFC3339 text format.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# [Output Only] Status of the operation. Can be one of the following: PENDING,
# RUNNING, or DONE.
# [Output Only] The status of the operation, which can be one of the following:
# PENDING, RUNNING, or DONE.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
@ -439,13 +444,13 @@ module Google
# @return [String]
attr_accessor :status_message
# [Output Only] Unique target ID which identifies a particular incarnation of
# the target.
# [Output Only] The unique target ID, which identifies a specific incarnation of
# the target resource.
# Corresponds to the JSON property `targetId`
# @return [String]
attr_accessor :target_id
# [Output Only] URL of the resource the operation is mutating.
# [Output Only] The URL of the resource that the operation is modifying.
# Corresponds to the JSON property `targetLink`
# @return [String]
attr_accessor :target_link
@ -474,6 +479,7 @@ module Google
def update!(**args)
@client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
@description = args[:description] unless args[:description].nil?
@end_time = args[:end_time] unless args[:end_time].nil?
@error = args[:error] unless args[:error].nil?
@http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
@ -552,17 +558,19 @@ module Google
class Warning
include Google::Apis::Core::Hashable
# [Output Only] The warning type identifier for this warning.
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata for this warning in key: value format.
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning::Datum>]
attr_accessor :data
# [Output Only] Optional human-readable details for this warning.
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -582,7 +590,13 @@ module Google
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key for the warning data.
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource, and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
@ -719,17 +733,19 @@ module Google
class Warning
include Google::Apis::Core::Hashable
# [Output Only] The warning type identifier for this warning.
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata for this warning in key: value format.
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum>]
attr_accessor :data
# [Output Only] Optional human-readable details for this warning.
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -749,7 +765,13 @@ module Google
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key for the warning data.
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource, and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
@ -887,17 +909,19 @@ module Google
class Warning
include Google::Apis::Core::Hashable
# [Output Only] The warning type identifier for this warning.
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @return [String]
attr_accessor :code
# [Output Only] Metadata for this warning in key: value format.
# [Output Only] Metadata about this warning in key: value format. For example:
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Datum>]
attr_accessor :data
# [Output Only] Optional human-readable details for this warning.
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
@ -917,7 +941,13 @@ module Google
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key for the warning data.
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource, and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key

View File

@ -223,6 +223,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :client_operation_id, as: 'clientOperationId'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :end_time, as: 'endTime'
property :error, as: 'error', class: Google::Apis::DeploymentmanagerV2::Operation::Error, decorator: Google::Apis::DeploymentmanagerV2::Operation::Error::Representation

View File

@ -223,22 +223,34 @@ module Google
# The 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 (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.
# 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, filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# The Beta API also supports filtering on multiple expressions by providing 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
# Maximum count of results to be returned.
# The maximum number of results per page that Compute Engine should return. 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] page_token
# Specifies a page token to use. Use this parameter if you want to list the next
# page of results. Set pageToken to the nextPageToken returned by a previous
# list request.
# 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
@ -482,22 +494,34 @@ module Google
# The name of the deployment 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 (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.
# 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, filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# The Beta API also supports filtering on multiple expressions by providing 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
# Maximum count of results to be returned.
# The maximum number of results per page that Compute Engine should return. 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] page_token
# Specifies a page token to use. Use this parameter if you want to list the next
# page of results. Set pageToken to the nextPageToken returned by a previous
# list request.
# 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
@ -577,22 +601,34 @@ module Google
# The 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 (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.
# 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, filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# The Beta API also supports filtering on multiple expressions by providing 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
# Maximum count of results to be returned.
# The maximum number of results per page that Compute Engine should return. 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] page_token
# Specifies a page token to use. Use this parameter if you want to list the next
# page of results. Set pageToken to the nextPageToken returned by a previous
# list request.
# 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
@ -676,22 +712,34 @@ module Google
# The name of the deployment 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 (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.
# 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, filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# The Beta API also supports filtering on multiple expressions by providing 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
# Maximum count of results to be returned.
# The maximum number of results per page that Compute Engine should return. 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] page_token
# Specifies a page token to use. Use this parameter if you want to list the next
# page of results. Set pageToken to the nextPageToken returned by a previous
# list request.
# 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
@ -733,22 +781,34 @@ module Google
# The 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 (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.
# 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, filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# The Beta API also supports filtering on multiple expressions by providing 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
# Maximum count of results to be returned.
# The maximum number of results per page that Compute Engine should return. 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] page_token
# Specifies a page token to use. Use this parameter if you want to list the next
# page of results. Set pageToken to the nextPageToken returned by a previous
# list request.
# 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

View File

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

View File

@ -120,11 +120,10 @@ module Google
# @return [String]
attr_accessor :click_id
# For offline conversions, this is an ID provided by advertisers. Advertisers
# can use this property to specify an ID that is meaningful to them. If an
# advertiser doesn't specify a conversionId, DoubleClick Search generates one.
# For online conversions, DS copies the dsConversionId or floodlightOrderId into
# this property depending on the advertiser's Floodlight instructions.
# For offline conversions, this is an ID that advertisers are required to
# provide. Advertisers can specify any ID that is meaningful to them. For online
# conversions, DS copies the dsConversionId or floodlightOrderId into this
# property depending on the advertiser's Floodlight instructions.
# Corresponds to the JSON property `conversionId`
# @return [String]
attr_accessor :conversion_id
@ -537,8 +536,11 @@ module Google
# @return [String]
attr_accessor :platform_source
# Provide different source for product items. Acceptable values are "advertised"
# and "sold".
# Returns metrics only for a specific type of product activity. Accepted values
# are:
# - "sold": returns metrics only for products that were sold
# - "advertised": returns metrics only for products that were advertised in a
# Shopping campaign, and that might or might not have been sold
# Corresponds to the JSON property `productReportPerspective`
# @return [String]
attr_accessor :product_report_perspective

View File

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

View File

@ -152,7 +152,7 @@ module Google
# @return [String]
attr_accessor :self_link
# The JSON template for a user.
# Information about a Drive user.
# Corresponds to the JSON property `user`
# @return [Google::Apis::DriveV2::User]
attr_accessor :user
@ -892,7 +892,7 @@ module Google
end
end
# A JSON representation of a comment on a file in Google Drive.
# A comment on a file in Google Drive.
class Comment
include Google::Apis::Core::Hashable
@ -902,7 +902,7 @@ module Google
# @return [String]
attr_accessor :anchor
# The JSON template for a user.
# Information about a Drive user.
# Corresponds to the JSON property `author`
# @return [Google::Apis::DriveV2::User]
attr_accessor :author
@ -1030,7 +1030,7 @@ module Google
end
end
# A JSON representation of a list of comments on a file in Google Drive.
# A list of comments on a file in Google Drive.
class CommentList
include Google::Apis::Core::Hashable
@ -1073,11 +1073,11 @@ module Google
end
end
# A JSON representation of a reply to a comment on a file in Google Drive.
# A comment on a file in Google Drive.
class CommentReply
include Google::Apis::Core::Hashable
# The JSON template for a user.
# Information about a Drive user.
# Corresponds to the JSON property `author`
# @return [Google::Apis::DriveV2::User]
attr_accessor :author
@ -1148,8 +1148,7 @@ module Google
end
end
# A JSON representation of a list of replies to a comment on a file in Google
# Drive.
# A list of replies to a comment on a file in Google Drive.
class CommentReplyList
include Google::Apis::Core::Hashable
@ -1337,7 +1336,7 @@ module Google
# @return [Google::Apis::DriveV2::File::Labels]
attr_accessor :labels
# The JSON template for a user.
# Information about a Drive user.
# Corresponds to the JSON property `lastModifyingUser`
# @return [Google::Apis::DriveV2::User]
attr_accessor :last_modifying_user
@ -1460,7 +1459,7 @@ module Google
# @return [DateTime]
attr_accessor :shared_with_me_date
# The JSON template for a user.
# Information about a Drive user.
# Corresponds to the JSON property `sharingUser`
# @return [Google::Apis::DriveV2::User]
attr_accessor :sharing_user
@ -2353,7 +2352,7 @@ module Google
# @return [String]
attr_accessor :kind
# The JSON template for a user.
# Information about a Drive user.
# Corresponds to the JSON property `lastModifyingUser`
# @return [Google::Apis::DriveV2::User]
attr_accessor :last_modifying_user
@ -2489,7 +2488,7 @@ module Google
end
end
# The JSON template for a user.
# Information about a Drive user.
class User
include Google::Apis::Core::Hashable

View File

@ -0,0 +1,55 @@
# 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/drive_v3/service.rb'
require 'google/apis/drive_v3/classes.rb'
require 'google/apis/drive_v3/representations.rb'
module Google
module Apis
# Drive API
#
# The API to interact with Drive.
#
# @see https://developers.google.com/drive/
module DriveV3
VERSION = 'V3'
REVISION = '20151209'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
# View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
# View and manage Google Drive files and folders that you have opened or created with this app
AUTH_DRIVE_FILE = 'https://www.googleapis.com/auth/drive.file'
# View and manage metadata of files in your Google Drive
AUTH_DRIVE_METADATA = 'https://www.googleapis.com/auth/drive.metadata'
# View metadata for files in your Google Drive
AUTH_DRIVE_METADATA_READONLY = 'https://www.googleapis.com/auth/drive.metadata.readonly'
# View the photos, videos and albums in your Google Photos
AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
# View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
# Modify your Google Apps Script scripts' behavior
AUTH_DRIVE_SCRIPTS = 'https://www.googleapis.com/auth/drive.scripts'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,497 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module DriveV3
class About
class Representation < Google::Apis::Core::JsonRepresentation; end
class StorageQuota
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
class Change
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ChangeList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Channel
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Comment
class Representation < Google::Apis::Core::JsonRepresentation; end
class QuotedFileContent
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
class CommentList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class File
class Representation < Google::Apis::Core::JsonRepresentation; end
class Capabilities
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ContentHints
class Representation < Google::Apis::Core::JsonRepresentation; end
class Thumbnail
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
class ImageMediaMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
class Location
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
class VideoMediaMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
end
end
class FileList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class GeneratedIds
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Permission
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class PermissionList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Reply
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ReplyList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Revision
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class RevisionList
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StartPageToken
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class User
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class About
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app_installed, as: 'appInstalled'
hash :export_formats, as: 'exportFormats', :class => Array do
include Representable::JSON::Collection
items
end
collection :folder_color_palette, as: 'folderColorPalette'
hash :import_formats, as: 'importFormats', :class => Array do
include Representable::JSON::Collection
items
end
property :kind, as: 'kind'
hash :max_import_sizes, as: 'maxImportSizes'
property :max_upload_size, as: 'maxUploadSize'
property :storage_quota, as: 'storageQuota', class: Google::Apis::DriveV3::About::StorageQuota, decorator: Google::Apis::DriveV3::About::StorageQuota::Representation
property :user, as: 'user', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
end
class StorageQuota
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :limit, as: 'limit'
property :usage, as: 'usage'
property :usage_in_drive, as: 'usageInDrive'
property :usage_in_drive_trash, as: 'usageInDriveTrash'
end
end
end
class Change
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :file, as: 'file', class: Google::Apis::DriveV3::File, decorator: Google::Apis::DriveV3::File::Representation
property :file_id, as: 'fileId'
property :kind, as: 'kind'
property :removed, as: 'removed'
property :time, as: 'time', type: DateTime
end
end
class ChangeList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :changes, as: 'changes', class: Google::Apis::DriveV3::Change, decorator: Google::Apis::DriveV3::Change::Representation
property :kind, as: 'kind'
property :new_start_page_token, as: 'newStartPageToken'
property :next_page_token, as: 'nextPageToken'
end
end
class Channel
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :address, as: 'address'
property :expiration, as: 'expiration'
property :id, as: 'id'
property :kind, as: 'kind'
hash :params, as: 'params'
property :payload, as: 'payload'
property :resource_id, as: 'resourceId'
property :resource_uri, as: 'resourceUri'
property :token, as: 'token'
property :type, as: 'type'
end
end
class Comment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :anchor, as: 'anchor'
property :author, as: 'author', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
property :content, as: 'content'
property :created_time, as: 'createdTime', type: DateTime
property :deleted, as: 'deleted'
property :html_content, as: 'htmlContent'
property :id, as: 'id'
property :kind, as: 'kind'
property :modified_time, as: 'modifiedTime', type: DateTime
property :quoted_file_content, as: 'quotedFileContent', class: Google::Apis::DriveV3::Comment::QuotedFileContent, decorator: Google::Apis::DriveV3::Comment::QuotedFileContent::Representation
collection :replies, as: 'replies', class: Google::Apis::DriveV3::Reply, decorator: Google::Apis::DriveV3::Reply::Representation
property :resolved, as: 'resolved'
end
class QuotedFileContent
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :mime_type, as: 'mimeType'
property :value, as: 'value'
end
end
end
class CommentList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :comments, as: 'comments', class: Google::Apis::DriveV3::Comment, decorator: Google::Apis::DriveV3::Comment::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class File
# @private
class Representation < Google::Apis::Core::JsonRepresentation
hash :app_properties, as: 'appProperties'
property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::File::Capabilities, decorator: Google::Apis::DriveV3::File::Capabilities::Representation
property :content_hints, as: 'contentHints', class: Google::Apis::DriveV3::File::ContentHints, decorator: Google::Apis::DriveV3::File::ContentHints::Representation
property :created_time, as: 'createdTime', type: DateTime
property :description, as: 'description'
property :explicitly_trashed, as: 'explicitlyTrashed'
property :file_extension, as: 'fileExtension'
property :folder_color_rgb, as: 'folderColorRgb'
property :full_file_extension, as: 'fullFileExtension'
property :head_revision_id, as: 'headRevisionId'
property :icon_link, as: 'iconLink'
property :id, as: 'id'
property :image_media_metadata, as: 'imageMediaMetadata', class: Google::Apis::DriveV3::File::ImageMediaMetadata, decorator: Google::Apis::DriveV3::File::ImageMediaMetadata::Representation
property :kind, as: 'kind'
property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
property :md5_checksum, as: 'md5Checksum'
property :mime_type, as: 'mimeType'
property :modified_by_me_time, as: 'modifiedByMeTime', type: DateTime
property :modified_time, as: 'modifiedTime', type: DateTime
property :name, as: 'name'
property :original_filename, as: 'originalFilename'
property :owned_by_me, as: 'ownedByMe'
collection :owners, as: 'owners', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
collection :parents, as: 'parents'
collection :permissions, as: 'permissions', class: Google::Apis::DriveV3::Permission, decorator: Google::Apis::DriveV3::Permission::Representation
hash :properties, as: 'properties'
property :quota_bytes_used, as: 'quotaBytesUsed'
property :shared, as: 'shared'
property :shared_with_me_time, as: 'sharedWithMeTime', type: DateTime
property :sharing_user, as: 'sharingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
property :size, as: 'size'
collection :spaces, as: 'spaces'
property :starred, as: 'starred'
property :thumbnail_link, as: 'thumbnailLink'
property :trashed, as: 'trashed'
property :version, as: 'version'
property :video_media_metadata, as: 'videoMediaMetadata', class: Google::Apis::DriveV3::File::VideoMediaMetadata, decorator: Google::Apis::DriveV3::File::VideoMediaMetadata::Representation
property :viewed_by_me, as: 'viewedByMe'
property :viewed_by_me_time, as: 'viewedByMeTime', type: DateTime
property :viewers_can_copy_content, as: 'viewersCanCopyContent'
property :web_content_link, as: 'webContentLink'
property :web_view_link, as: 'webViewLink'
property :writers_can_share, as: 'writersCanShare'
end
class Capabilities
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :can_comment, as: 'canComment'
property :can_copy, as: 'canCopy'
property :can_edit, as: 'canEdit'
property :can_share, as: 'canShare'
end
end
class ContentHints
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :indexable_text, as: 'indexableText'
property :thumbnail, as: 'thumbnail', class: Google::Apis::DriveV3::File::ContentHints::Thumbnail, decorator: Google::Apis::DriveV3::File::ContentHints::Thumbnail::Representation
end
class Thumbnail
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :image, :base64 => true, as: 'image'
property :mime_type, as: 'mimeType'
end
end
end
class ImageMediaMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :aperture, as: 'aperture'
property :camera_make, as: 'cameraMake'
property :camera_model, as: 'cameraModel'
property :color_space, as: 'colorSpace'
property :exposure_bias, as: 'exposureBias'
property :exposure_mode, as: 'exposureMode'
property :exposure_time, as: 'exposureTime'
property :flash_used, as: 'flashUsed'
property :focal_length, as: 'focalLength'
property :height, as: 'height'
property :iso_speed, as: 'isoSpeed'
property :lens, as: 'lens'
property :location, as: 'location', class: Google::Apis::DriveV3::File::ImageMediaMetadata::Location, decorator: Google::Apis::DriveV3::File::ImageMediaMetadata::Location::Representation
property :max_aperture_value, as: 'maxApertureValue'
property :metering_mode, as: 'meteringMode'
property :rotation, as: 'rotation'
property :sensor, as: 'sensor'
property :subject_distance, as: 'subjectDistance'
property :time, as: 'time'
property :white_balance, as: 'whiteBalance'
property :width, as: 'width'
end
class Location
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :altitude, as: 'altitude'
property :latitude, as: 'latitude'
property :longitude, as: 'longitude'
end
end
end
class VideoMediaMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :duration_millis, as: 'durationMillis'
property :height, as: 'height'
property :width, as: 'width'
end
end
end
class FileList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :files, as: 'files', class: Google::Apis::DriveV3::File, decorator: Google::Apis::DriveV3::File::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end
class GeneratedIds
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ids, as: 'ids'
property :kind, as: 'kind'
property :space, as: 'space'
end
end
class Permission
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :allow_file_discovery, as: 'allowFileDiscovery'
property :display_name, as: 'displayName'
property :domain, as: 'domain'
property :email_address, as: 'emailAddress'
property :id, as: 'id'
property :kind, as: 'kind'
property :photo_link, as: 'photoLink'
property :role, as: 'role'
property :type, as: 'type'
end
end
class PermissionList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :permissions, as: 'permissions', class: Google::Apis::DriveV3::Permission, decorator: Google::Apis::DriveV3::Permission::Representation
end
end
class Reply
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action'
property :author, as: 'author', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
property :content, as: 'content'
property :created_time, as: 'createdTime', type: DateTime
property :deleted, as: 'deleted'
property :html_content, as: 'htmlContent'
property :id, as: 'id'
property :kind, as: 'kind'
property :modified_time, as: 'modifiedTime', type: DateTime
end
end
class ReplyList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
collection :replies, as: 'replies', class: Google::Apis::DriveV3::Reply, decorator: Google::Apis::DriveV3::Reply::Representation
end
end
class Revision
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :keep_forever, as: 'keepForever'
property :kind, as: 'kind'
property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
property :md5_checksum, as: 'md5Checksum'
property :mime_type, as: 'mimeType'
property :modified_time, as: 'modifiedTime', type: DateTime
property :original_filename, as: 'originalFilename'
property :publish_auto, as: 'publishAuto'
property :published, as: 'published'
property :published_outside_domain, as: 'publishedOutsideDomain'
property :size, as: 'size'
end
end
class RevisionList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
collection :revisions, as: 'revisions', class: Google::Apis::DriveV3::Revision, decorator: Google::Apis::DriveV3::Revision::Representation
end
end
class StartPageToken
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :start_page_token, as: 'startPageToken'
end
end
class User
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :email_address, as: 'emailAddress'
property :kind, as: 'kind'
property :me, as: 'me'
property :permission_id, as: 'permissionId'
property :photo_link, as: 'photoLink'
end
end
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services
module GamesConfigurationV1configuration
VERSION = 'V1configuration'
REVISION = '20151125'
REVISION = '20151202'
# 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 = '20151125'
REVISION = '20151202'
# 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 = '20151125'
REVISION = '20151202'
# View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'

View File

@ -645,6 +645,33 @@ module Google
end
end
# This is a JSON template for a third party application verification response
# resource.
class ApplicationVerifyResponse
include Google::Apis::Core::Hashable
# Uniquely identifies the type of this resource. Value is always the fixed
# string games#applicationVerifyResponse.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The ID of the player that was issued the auth token used in this request.
# Corresponds to the JSON property `player_id`
# @return [String]
attr_accessor :player_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@player_id = args[:player_id] unless args[:player_id].nil?
end
end
# This is a JSON template for data related to individual game categories.
class Category
include Google::Apis::Core::Hashable

View File

@ -78,6 +78,10 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ApplicationVerifyResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Category
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -571,6 +575,14 @@ module Google
end
end
class ApplicationVerifyResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :kind, as: 'kind'
property :player_id, as: 'player_id'
end
end
class Category
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -411,6 +411,42 @@ module Google
execute_or_queue_command(command, &block)
end
# Verifies the auth token provided with this request is for the application with
# the specified ID, and returns the ID of the player it was granted for.
# @param [String] application_id
# The application ID from the Google Play developer console.
# @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::GamesV1::ApplicationVerifyResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GamesV1::ApplicationVerifyResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def verify_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'applications/{applicationId}/verify', options)
command.response_representation = Google::Apis::GamesV1::ApplicationVerifyResponse::Representation
command.response_class = Google::Apis::GamesV1::ApplicationVerifyResponse
command.params['applicationId'] = application_id unless application_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Returns a list showing the current progress on events in this application for
# the currently authenticated user.
# @param [String] language

View File

@ -20,13 +20,15 @@ module Google
module Apis
# Genomics API
#
# An API to store, process, explore, and share DNA sequence reads, reference-
# based alignments, and variant calls.
# An API to store, process, explore, and share genomic data. It supports
# reference-based alignements, genetic variants, and reference genomes. This API
# provides an implementation of the Global Alliance for Genomics and Health (
# GA4GH) v0.5.1 API as well as several extensions.
#
# @see
module GenomicsV1
VERSION = 'V1'
REVISION = '20151130'
REVISION = '20151210'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -520,7 +520,8 @@ module Google
class ExportReadGroupSetRequest
include Google::Apis::Core::Hashable
# Required. The Google Developers Console project ID that owns this export.
# Required. The Google Developers Console project ID that owns this export. The
# caller must have WRITE access to this project.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
@ -574,8 +575,8 @@ module Google
# @return [String]
attr_accessor :page_token
# Specifies number of results to return in a single page. If unspecified, it
# will default to 256. The maximum value is 1024.
# The maximum number of results to return in a single page. If unspecified,
# defaults to 256. The maximum value is 1024.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
@ -635,12 +636,12 @@ module Google
# @return [String]
attr_accessor :id
# The dataset ID.
# The dataset to which this read group set belongs.
# Corresponds to the JSON property `datasetId`
# @return [String]
attr_accessor :dataset_id
# The reference set the reads in this read group set are aligned to.
# The reference set to which the reads in this read group set are aligned.
# Corresponds to the JSON property `referenceSetId`
# @return [String]
attr_accessor :reference_set_id
@ -688,13 +689,12 @@ module Google
include Google::Apis::Core::Hashable
# The server-generated read group ID, unique for all read groups. Note: This is
# different than the `@RG ID` field in the SAM spec. For that value, see the `
# name` field.
# different than the @RG ID field in the SAM spec. For that value, see name.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The ID of the dataset this read group belongs to.
# The dataset to which this read group belongs.
# Corresponds to the JSON property `datasetId`
# @return [String]
attr_accessor :dataset_id
@ -709,9 +709,7 @@ module Google
# @return [String]
attr_accessor :description
# The sample this read group's data was generated from. Note: This is not an
# actual ID within this repository, but rather an identifier for a sample which
# may be meaningful to some external system.
# A client-supplied sample identifier for the reads in this read group.
# Corresponds to the JSON property `sampleId`
# @return [String]
attr_accessor :sample_id
@ -734,8 +732,7 @@ module Google
# @return [Array<Google::Apis::GenomicsV1::Program>]
attr_accessor :programs
# The reference set the reads in this read group are aligned to. Required if
# there are any read alignments.
# The reference set the reads in this read group are aligned to.
# Corresponds to the JSON property `referenceSetId`
# @return [String]
attr_accessor :reference_set_id
@ -769,16 +766,17 @@ module Google
class Experiment
include Google::Apis::Core::Hashable
# The library used as part of this experiment. Note: This is not an actual ID
# within this repository, but rather an identifier for a library which may be
# meaningful to some external system.
# A client-supplied library identifier; a library is a collection of DNA
# fragments which have been prepared for sequencing from a sample. This field is
# important for quality control as error or bias can be introduced during sample
# preparation.
# Corresponds to the JSON property `libraryId`
# @return [String]
attr_accessor :library_id
# The platform unit used as part of this experiment e.g. flowcell-barcode.lane
# for Illumina or slide for SOLiD. Corresponds to the @RG PU field in the SAM
# spec.
# The platform unit used as part of this experiment, for example flowcell-
# barcode.lane for Illumina or slide for SOLiD. Corresponds to the @RG PU field
# in the SAM spec.
# Corresponds to the JSON property `platformUnit`
# @return [String]
attr_accessor :platform_unit
@ -789,7 +787,7 @@ module Google
attr_accessor :sequencing_center
# The instrument model used as part of this experiment. This maps to sequencing
# technology in BAM.
# technology in the SAM spec.
# Corresponds to the JSON property `instrumentModel`
# @return [String]
attr_accessor :instrument_model
@ -822,7 +820,8 @@ module Google
# @return [String]
attr_accessor :id
# The name of the program.
# The display name of the program. This is typically the colloquial name of the
# tool used, for example 'bwa' or 'picard'.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -967,8 +966,9 @@ module Google
# @return [Array<String>]
attr_accessor :read_group_ids
# The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to *,
# only unmapped reads are returned.
# The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to `*`,
# only unmapped reads are returned. If unspecified, all reads (mapped and
# unmapped) are returned.
# Corresponds to the JSON property `referenceName`
# @return [String]
attr_accessor :reference_name
@ -992,8 +992,8 @@ module Google
# @return [String]
attr_accessor :page_token
# Specifies number of results to return in a single page. If unspecified, it
# will default to 256. The maximum value is 2048.
# The maximum number of results to return in a single page. If unspecified,
# defaults to 256. The maximum value is 2048.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
@ -1050,12 +1050,25 @@ module Google
# read is equivalent to a line in a SAM file. A read belongs to exactly one read
# group and exactly one read group set. For more genomics resource definitions,
# see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/
# fundamentals-of-google-genomics) ### Generating a reference-aligned sequence
# string When interacting with mapped reads, it's often useful to produce a
# string representing the local alignment of the read to reference. The
# following pseudocode demonstrates one way of doing this: out = "" offset = 0
# for c in read.alignment.cigar ` switch c.operation ` case "ALIGNMENT_MATCH", "
# SEQUENCE_MATCH", "SEQUENCE_MISMATCH": out += read.alignedSequence[offset:
# fundamentals-of-google-genomics) ### Reverse-stranded reads Mapped reads (
# reads having a non-null `alignment`) can be aligned to either the forward or
# the reverse strand of their associated reference. Strandedness of a mapped
# read is encoded by `alignment.position.reverseStrand`. If we consider the
# reference to be a forward-stranded coordinate space of `[0, reference.length)`
# with `0` as the left-most position and `reference.length` as the right-most
# position, reads are always aligned left to right. That is, `alignment.position.
# position` always refers to the left-most reference coordinate and `alignment.
# cigar` describes the alignment of this read to the reference from left to
# right. All per-base fields such as `alignedSequence` and `alignedQuality`
# share this same left-to-right orientation; this is true of reads which are
# aligned to either strand. For reverse-stranded reads, this means that `
# alignedSequence` is the reverse complement of the bases that were originally
# reported by the sequencing machine. ### Generating a reference-aligned
# sequence string When interacting with mapped reads, it's often useful to
# produce a string representing the local alignment of the read to reference.
# The following pseudocode demonstrates one way of doing this: out = "" offset =
# 0 for c in read.alignment.cigar ` switch c.operation ` case "ALIGNMENT_MATCH",
# "SEQUENCE_MATCH", "SEQUENCE_MISMATCH": out += read.alignedSequence[offset:
# offset+c.operationLength] offset += c.operationLength break case "CLIP_SOFT", "
# INSERT": offset += c.operationLength break case "PAD": out += repeat("*", c.
# operationLength) break case "DELETE": out += repeat("-", c.operationLength)
@ -1076,14 +1089,15 @@ module Google
# @return [String]
attr_accessor :id
# The ID of the read group this read belongs to. (Every read must belong to
# exactly one read group.)
# The ID of the read group this read belongs to. A read belongs to exactly one
# read group. This is a server-generated ID which is distinct from SAM's RG tag (
# for that value, see ReadGroup.name).
# Corresponds to the JSON property `readGroupId`
# @return [String]
attr_accessor :read_group_id
# The ID of the read group set this read belongs to. (Every read must belong to
# exactly one read group set.)
# The ID of the read group set this read belongs to. A read belongs to exactly
# one read group set.
# Corresponds to the JSON property `readGroupSetId`
# @return [String]
attr_accessor :read_group_set_id
@ -1094,13 +1108,13 @@ module Google
attr_accessor :fragment_name
# The orientation and the distance between reads from the fragment are
# consistent with the sequencing protocol (SAM flag 0x2)
# consistent with the sequencing protocol (SAM flag 0x2).
# Corresponds to the JSON property `properPlacement`
# @return [Boolean]
attr_accessor :proper_placement
alias_method :proper_placement?, :proper_placement
# The fragment is a PCR or optical duplicate (SAM flag 0x400)
# The fragment is a PCR or optical duplicate (SAM flag 0x400).
# Corresponds to the JSON property `duplicateFragment`
# @return [Boolean]
attr_accessor :duplicate_fragment
@ -1122,7 +1136,8 @@ module Google
# @return [Fixnum]
attr_accessor :number_reads
# SAM flag 0x200
# Whether this read did not pass filters, such as platform or vendor quality
# controls (SAM flag 0x200).
# Corresponds to the JSON property `failedVendorQualityChecks`
# @return [Boolean]
attr_accessor :failed_vendor_quality_checks
@ -1160,22 +1175,22 @@ module Google
attr_accessor :supplementary_alignment
alias_method :supplementary_alignment?, :supplementary_alignment
# The bases of the read sequence contained in this alignment record, *without
# CIGAR operations applied*. `alignedSequence` and `alignedQuality` may be
# shorter than the full read sequence and quality. This will occur if the
# alignment is part of a chimeric alignment, or if the read was trimmed. When
# this occurs, the CIGAR for this read will begin/end with a hard clip operator
# that will indicate the length of the excised sequence.
# The bases of the read sequence contained in this alignment record, **without
# CIGAR operations applied** (equivalent to SEQ in SAM). `alignedSequence` and `
# alignedQuality` may be shorter than the full read sequence and quality. This
# will occur if the alignment is part of a chimeric alignment, or if the read
# was trimmed. When this occurs, the CIGAR for this read will begin/end with a
# hard clip operator that will indicate the length of the excised sequence.
# Corresponds to the JSON property `alignedSequence`
# @return [String]
attr_accessor :aligned_sequence
# The quality of the read sequence contained in this alignment record. `
# alignedSequence` and `alignedQuality` may be shorter than the full read
# sequence and quality. This will occur if the alignment is part of a chimeric
# alignment, or if the read was trimmed. When this occurs, the CIGAR for this
# read will begin/end with a hard clip operator that will indicate the length of
# the excised sequence.
# The quality of the read sequence contained in this alignment record (
# equivalent to QUAL in SAM). `alignedSequence` and `alignedQuality` may be
# shorter than the full read sequence and quality. This will occur if the
# alignment is part of a chimeric alignment, or if the read was trimmed. When
# this occurs, the CIGAR for this read will begin/end with a hard clip operator
# that will indicate the length of the excised sequence.
# Corresponds to the JSON property `alignedQuality`
# @return [Array<Fixnum>]
attr_accessor :aligned_quality
@ -1234,7 +1249,8 @@ module Google
attr_accessor :position
# The mapping quality of this alignment. Represents how likely the read maps to
# this position as opposed to other locations.
# this position as opposed to other locations. Specifically, this is -10 log10
# Pr(mapping position is wrong), rounded to the nearest integer.
# Corresponds to the JSON property `mappingQuality`
# @return [Fixnum]
attr_accessor :mapping_quality
@ -1326,21 +1342,84 @@ module Google
end
end
# The stream reads request.
class StreamReadsRequest
include Google::Apis::Core::Hashable
# The Google Developers Console project ID or number which will be billed for
# this access. The caller must have WRITE access to this project. Required.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The ID of the read group set from which to stream reads.
# Corresponds to the JSON property `readGroupSetId`
# @return [String]
attr_accessor :read_group_set_id
# The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to *,
# only unmapped reads are returned.
# Corresponds to the JSON property `referenceName`
# @return [String]
attr_accessor :reference_name
# The start position of the range on the reference, 0-based inclusive. If
# specified, `referenceName` must also be specified.
# Corresponds to the JSON property `start`
# @return [String]
attr_accessor :start
# The end position of the range on the reference, 0-based exclusive. If
# specified, `referenceName` must also be specified.
# Corresponds to the JSON property `end`
# @return [String]
attr_accessor :end
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] unless args[:project_id].nil?
@read_group_set_id = args[:read_group_set_id] unless args[:read_group_set_id].nil?
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] unless args[:end].nil?
end
end
#
class StreamReadsResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `alignments`
# @return [Array<Google::Apis::GenomicsV1::Read>]
attr_accessor :alignments
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@alignments = args[:alignments] unless args[:alignments].nil?
end
end
#
class SearchReferenceSetsRequest
include Google::Apis::Core::Hashable
# If present, return references for which the `md5checksum` matches. See `
# ReferenceSet.md5checksum` for details.
# If present, return reference sets for which the md5checksum matches exactly.
# Corresponds to the JSON property `md5checksums`
# @return [Array<String>]
attr_accessor :md5checksums
# If present, return references for which the accession matches any of these
# strings. Best to give a version number, for example `GCF_000001405.26`. If
# only the main accession number is given then all records with that main
# accession will be returned, whichever version. Note that different versions
# will have different sequences.
# If present, return reference sets for which a prefix of any of
# sourceAccessions match any of these strings. Accession numbers typically have
# a main number and a version, for example `NC_000001.11`.
# Corresponds to the JSON property `accessions`
# @return [Array<String>]
attr_accessor :accessions
@ -1358,7 +1437,8 @@ module Google
# @return [String]
attr_accessor :page_token
# Specifies the maximum number of results to return in a single page.
# The maximum number of results to return in a single page. If unspecified,
# defaults to 1024. The maximum value is 4096.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
@ -1434,11 +1514,11 @@ module Google
# @return [String]
attr_accessor :md5checksum
# ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) indicating the
# species which this assembly is intended to model. Note that contained
# references may specify a different `ncbiTaxonId`, as assemblies may contain
# reference sequences which do not belong to the modeled species, e.g. EBV in a
# human reference genome.
# ID from http://www.ncbi.nlm.nih.gov/taxonomy (for example, 9606 for human)
# indicating the species which this reference set is intended to model. Note
# that contained references may specify a different `ncbiTaxonId`, as assemblies
# may contain reference sequences which do not belong to the modeled species,
# for example EBV in a human reference genome.
# Corresponds to the JSON property `ncbiTaxonId`
# @return [Fixnum]
attr_accessor :ncbi_taxon_id
@ -1485,17 +1565,14 @@ module Google
class SearchReferencesRequest
include Google::Apis::Core::Hashable
# If present, return references for which the `md5checksum` matches. See `
# Reference.md5checksum` for construction details.
# If present, return references for which the md5checksum matches exactly.
# Corresponds to the JSON property `md5checksums`
# @return [Array<String>]
attr_accessor :md5checksums
# If present, return references for which the accession matches this string.
# Best to give a version number, for example `GCF_000001405.26`. If only the
# main accession number is given then all records with that main accession will
# be returned, whichever version. Note that different versions will have
# different sequences.
# If present, return references for which a prefix of any of sourceAccessions
# match any of these strings. Accession numbers typically have a main number and
# a version, for example `GCF_000001405.26`.
# Corresponds to the JSON property `accessions`
# @return [Array<String>]
attr_accessor :accessions
@ -1512,7 +1589,8 @@ module Google
# @return [String]
attr_accessor :page_token
# Specifies the maximum number of results to return in a single page.
# The maximum number of results to return in a single page. If unspecified,
# defaults to 1024. The maximum value is 4096.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
@ -1589,8 +1667,8 @@ module Google
# @return [String]
attr_accessor :name
# The URI from which the sequence was obtained. Specifies a FASTA format file/
# string with one name, sequence pair.
# The URI from which the sequence was obtained. Typically specifies a FASTA
# format file.
# Corresponds to the JSON property `sourceUri`
# @return [String]
attr_accessor :source_uri
@ -1601,8 +1679,7 @@ module Google
# @return [Array<String>]
attr_accessor :source_accessions
# ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) if not
# specified by the containing reference set.
# ID from http://www.ncbi.nlm.nih.gov/taxonomy. For example, 9606 for human.
# Corresponds to the JSON property `ncbiTaxonId`
# @return [Fixnum]
attr_accessor :ncbi_taxon_id
@ -1763,7 +1840,7 @@ module Google
class ReferenceBound
include Google::Apis::Core::Hashable
# The reference the bound is associate with.
# The name of the reference associated with this ReferenceBound.
# Corresponds to the JSON property `referenceName`
# @return [String]
attr_accessor :reference_name
@ -1911,7 +1988,8 @@ module Google
# @return [String]
attr_accessor :page_token
# The maximum number of variant sets to return in a request.
# The maximum number of results to return in a single page. If unspecified,
# defaults to 1024.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
@ -2003,14 +2081,16 @@ module Google
# @return [String]
attr_accessor :page_token
# The maximum number of variants to return. If unspecified, defaults to 5000.
# The maximum number of variants to return in a single page. If unspecified,
# defaults to 5000. The maximum value is 10000.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
# The maximum number of calls to return. However, at least one variant will
# always be returned, even if it has more calls than this limit. If unspecified,
# defaults to 5000.
# The maximum number of calls to return in a single page. Note that this limit
# may be exceeded; at least one variant is always returned per page, even if it
# has more calls than this limit. If unspecified, defaults to 5000. The maximum
# value is 10000.
# Corresponds to the JSON property `maxCalls`
# @return [Fixnum]
attr_accessor :max_calls
@ -2256,7 +2336,8 @@ module Google
# @return [String]
attr_accessor :page_token
# The maximum number of call sets to return. If unspecified, defaults to 1000.
# The maximum number of results to return in a single page. If unspecified,
# defaults to 1024.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
@ -2357,6 +2438,78 @@ module Google
end
end
# The stream variants request.
class StreamVariantsRequest
include Google::Apis::Core::Hashable
# The Google Developers Console project ID or number which will be billed for
# this access. The caller must have WRITE access to this project. Required.
# Corresponds to the JSON property `projectId`
# @return [String]
attr_accessor :project_id
# The variant set ID from which to stream variants.
# Corresponds to the JSON property `variantSetId`
# @return [String]
attr_accessor :variant_set_id
# Only return variant calls which belong to call sets with these IDs. Leaving
# this blank returns all variant calls.
# Corresponds to the JSON property `callSetIds`
# @return [Array<String>]
attr_accessor :call_set_ids
# Required. Only return variants in this reference sequence.
# Corresponds to the JSON property `referenceName`
# @return [String]
attr_accessor :reference_name
# The beginning of the window (0-based, inclusive) for which overlapping
# variants should be returned.
# Corresponds to the JSON property `start`
# @return [String]
attr_accessor :start
# The end of the window (0-based, exclusive) for which overlapping variants
# should be returned.
# Corresponds to the JSON property `end`
# @return [String]
attr_accessor :end
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@project_id = args[:project_id] unless args[:project_id].nil?
@variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil?
@call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil?
@reference_name = args[:reference_name] unless args[:reference_name].nil?
@start = args[:start] unless args[:start].nil?
@end = args[:end] unless args[:end].nil?
end
end
#
class StreamVariantsResponse
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `variants`
# @return [Array<Google::Apis::GenomicsV1::Variant>]
attr_accessor :variants
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@variants = args[:variants] unless args[:variants].nil?
end
end
# The read group set import response.
class ImportReadGroupSetsResponse
include Google::Apis::Core::Hashable
@ -2380,7 +2533,7 @@ module Google
class ImportVariantsResponse
include Google::Apis::Core::Hashable
# IDs of the call sets that were created.
# IDs of the call sets created during the import.
# Corresponds to the JSON property `callSetIds`
# @return [Array<String>]
attr_accessor :call_set_ids

View File

@ -146,6 +146,14 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StreamReadsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StreamReadsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class SearchReferenceSetsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -230,6 +238,14 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StreamVariantsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class StreamVariantsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ImportReadGroupSetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
@ -566,6 +582,25 @@ module Google
end
end
class StreamReadsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
property :read_group_set_id, as: 'readGroupSetId'
property :reference_name, as: 'referenceName'
property :start, as: 'start'
property :end, as: 'end'
end
end
class StreamReadsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :alignments, as: 'alignments', class: Google::Apis::GenomicsV1::Read, decorator: Google::Apis::GenomicsV1::Read::Representation
end
end
class SearchReferenceSetsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -818,6 +853,26 @@ module Google
end
end
class StreamVariantsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :project_id, as: 'projectId'
property :variant_set_id, as: 'variantSetId'
collection :call_set_ids, as: 'callSetIds'
property :reference_name, as: 'referenceName'
property :start, as: 'start'
property :end, as: 'end'
end
end
class StreamVariantsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation
end
end
class ImportReadGroupSetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -22,8 +22,10 @@ module Google
module GenomicsV1
# Genomics API
#
# An API to store, process, explore, and share DNA sequence reads, reference-
# based alignments, and variant calls.
# An API to store, process, explore, and share genomic data. It supports
# reference-based alignements, genetic variants, and reference genomes. This API
# provides an implementation of the Global Alliance for Genomics and Health (
# GA4GH) v0.5.1 API as well as several extensions.
#
# @example
# require 'google/apis/genomics_v1'
@ -53,7 +55,7 @@ module Google
# @param [String] project_id
# Required. The project to list datasets for.
# @param [Fixnum] page_size
# The maximum number of results returned by this request. If unspecified,
# The maximum number of results to return in a single page. If unspecified,
# defaults to 50. The maximum value is 1024.
# @param [String] page_token
# The continuation token, which is used to page through large result sets. To
@ -564,7 +566,8 @@ module Google
# ImportReadGroupSets](google.genomics.v1.ReadServiceV1.ImportReadGroupSets) for
# caveats.
# @param [String] read_group_set_id
# Required. The ID of the read group set to export.
# Required. The ID of the read group set to export. The caller must have READ
# access to this read group set.
# @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -638,9 +641,9 @@ module Google
# permissions to the dataset associated with this read group set.
# @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object
# @param [String] update_mask
# An optional mask specifying which fields to update. At this time, mutable
# fields are referenceSetId and name. Acceptable values are "referenceSetId" and
# "name". If unspecified, all mutable fields will be updated.
# An optional mask specifying which fields to update. Supported fields: * name. *
# referenceSetId. Leaving `updateMask` unset is equivalent to specifying all
# mutable fields.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -813,10 +816,13 @@ module Google
# returns all reads whose alignment to the reference genome overlap the range. A
# query which specifies only read group set IDs yields all reads in those read
# group sets, including unmapped reads. All reads returned (including reads on
# subsequent pages) are ordered by genomic coordinate (reference sequence &
# position). Reads with equivalent genomic coordinates are returned in a
# deterministic order. Implements [GlobalAllianceApi.searchReads](https://github.
# com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L85).
# subsequent pages) are ordered by genomic coordinate (by reference sequence,
# then position). Reads with equivalent genomic coordinates are returned in an
# unspecified order. This order is consistent, such that two queries for the
# same content (regardless of page size) yield reads in the same order across
# their respective streams of paginated responses. Implements [GlobalAllianceApi.
# searchReads](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/
# avro/readmethods.avdl#L85).
# @param [Google::Apis::GenomicsV1::SearchReadsRequest] search_reads_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -846,11 +852,43 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a stream of all the reads matching the search request, ordered by
# reference name, position, and ID.
# @param [Google::Apis::GenomicsV1::StreamReadsRequest] stream_reads_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::GenomicsV1::StreamReadsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::StreamReadsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def stream_reads(stream_reads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/reads:stream', options)
command.request_representation = Google::Apis::GenomicsV1::StreamReadsRequest::Representation
command.request_object = stream_reads_request_object
command.response_representation = Google::Apis::GenomicsV1::StreamReadsResponse::Representation
command.response_class = Google::Apis::GenomicsV1::StreamReadsResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches for reference sets which match the given criteria. For the
# definitions of references and other genomics resources, see [Fundamentals of
# Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
# genomics) Implements [GlobalAllianceApi.searchReferenceSets](http://ga4gh.org/
# documentation/api/v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReferenceSets).
# genomics) Implements [GlobalAllianceApi.searchReferenceSets](https://github.
# com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#
# L71)
# @param [Google::Apis::GenomicsV1::SearchReferenceSetsRequest] search_reference_sets_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -999,7 +1037,9 @@ module Google
# get the next page of results, set this parameter to the value of `
# nextPageToken` from the previous response.
# @param [Fixnum] page_size
# Specifies the maximum number of bases to return in a single page.
# The maximum number of bases to return in a single page. If unspecified,
# defaults to 200Kbp (kilo base pairs). The maximum value is 10Mbp (mega base
# pairs).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1245,6 +1285,37 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns a stream of all the variants matching the search request, ordered by
# reference name, position, and ID.
# @param [Google::Apis::GenomicsV1::StreamVariantsRequest] stream_variants_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::GenomicsV1::StreamVariantsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::StreamVariantsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def stream_variants(stream_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/variants:stream', options)
command.request_representation = Google::Apis::GenomicsV1::StreamVariantsRequest::Representation
command.request_object = stream_variants_request_object
command.response_representation = Google::Apis::GenomicsV1::StreamVariantsResponse::Representation
command.response_class = Google::Apis::GenomicsV1::StreamVariantsResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new variant set. For the definitions of variant sets and other
# genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
# com/genomics/fundamentals-of-google-genomics) The provided variant set must

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/licensing/
module LicensingV1
VERSION = 'V1'
REVISION = '20150525'
REVISION = '20150901'
# View and manage Google Apps licenses for your domain
AUTH_APPS_LICENSING = 'https://www.googleapis.com/auth/apps.licensing'

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/maps-engine/
module MapsengineV1
VERSION = 'V1'
REVISION = '20150629'
REVISION = '20151202'
# View and manage your Google My Maps data
AUTH_MAPSENGINE = 'https://www.googleapis.com/auth/mapsengine'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/glass
module MirrorV1
VERSION = 'V1'
REVISION = '20151102'
REVISION = '20151206'
# View your location
AUTH_GLASS_LOCATION = 'https://www.googleapis.com/auth/glass.location'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/domains/
module PlusDomainsV1
VERSION = 'V1'
REVISION = '20151130'
REVISION = '20151209'
# 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 = '20151130'
REVISION = '20151209'
# Know your basic profile info and list of people in your circles.
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/sql/docs/reference/latest
module SqladminV1beta4
VERSION = 'V1beta4'
REVISION = '20151117'
REVISION = '20151201'
# 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 = '20151113'
REVISION = '20151207'
# 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 http://developers.google.com/youtube/analytics/
module YoutubeAnalyticsV1
VERSION = 'V1'
REVISION = '20150921'
REVISION = '20151211'
# Manage your YouTube account
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'

View File

@ -444,6 +444,11 @@ module Google
# @return [String]
attr_accessor :kind
#
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
@ -453,6 +458,7 @@ module Google
@etag = args[:etag] unless args[:etag].nil?
@items = args[:items] unless args[:items].nil?
@kind = args[:kind] unless args[:kind].nil?
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
end
end

View File

@ -212,6 +212,7 @@ module Google
collection :items, as: 'items', class: Google::Apis::YoutubeAnalyticsV1::Group, decorator: Google::Apis::YoutubeAnalyticsV1::Group::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
end
end

View File

@ -377,6 +377,10 @@ module Google
# to all their video and channel data, without having to provide authentication
# credentials for each individual channel. The CMS account that the user
# authenticates with must be linked to the specified YouTube content owner.
# @param [String] page_token
# The pageToken parameter identifies a specific page in the result set that
# should be returned. In an API response, the nextPageToken property identifies
# the next page that can be retrieved.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -398,13 +402,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_groups(id: nil, mine: nil, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_groups(id: nil, mine: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'groups', options)
command.response_representation = Google::Apis::YoutubeAnalyticsV1::ListGroupsResponse::Representation
command.response_class = Google::Apis::YoutubeAnalyticsV1::ListGroupsResponse
command.query['id'] = id unless id.nil?
command.query['mine'] = mine unless mine.nil?
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.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?

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/v3
module YoutubeV3
VERSION = 'V3'
REVISION = '20151201'
REVISION = '20151209'
# Manage your YouTube account
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'