Add people API, remove Mapsengine

This commit is contained in:
Steve Bazyl 2016-02-10 13:57:13 -08:00
parent 554c20d304
commit a68c43da9c
68 changed files with 4598 additions and 9224 deletions

View File

@ -909,49 +909,6 @@
"/logging:v2beta1/logging.projects.logs.entries.write": write_log_entries "/logging:v2beta1/logging.projects.logs.entries.write": write_log_entries
"/manager:v1beta2/DeploymentsListResponse": list_deployments_response "/manager:v1beta2/DeploymentsListResponse": list_deployments_response
"/manager:v1beta2/TemplatesListResponse": list_templates_response "/manager:v1beta2/TemplatesListResponse": list_templates_response
"/mapsengine:v1/AssetsListResponse": list_assets_response
"/mapsengine:v1/FeaturesBatchDeleteRequest": batch_delete_features_request
"/mapsengine:v1/FeaturesBatchInsertRequest": batch_insert_features_request
"/mapsengine:v1/FeaturesBatchPatchRequest": batch_patch_features_request
"/mapsengine:v1/FeaturesListResponse": list_features_response
"/mapsengine:v1/IconsListResponse": list_icons_response
"/mapsengine:v1/LayersListResponse": list_layers_response
"/mapsengine:v1/MapsListResponse": list_maps_response
"/mapsengine:v1/ParentsListResponse": list_parents_response
"/mapsengine:v1/PermissionsBatchDeleteRequest": batch_delete_permissions_request
"/mapsengine:v1/PermissionsBatchDeleteResponse": batch_delete_permissions_response
"/mapsengine:v1/PermissionsBatchUpdateRequest": batch_update_permissions_request
"/mapsengine:v1/PermissionsBatchUpdateResponse": batch_update_permissions_response
"/mapsengine:v1/PermissionsListResponse": list_permissions_response
"/mapsengine:v1/ProjectsListResponse": list_projects_response
"/mapsengine:v1/PublishedLayersListResponse": list_published_layers_response
"/mapsengine:v1/PublishedMapsListResponse": list_published_maps_response
"/mapsengine:v1/RasterCollectionsListResponse": list_raster_collections_response
"/mapsengine:v1/RasterCollectionsRasterBatchDeleteRequest": batch_delete_raster_collections_raster_request
"/mapsengine:v1/RasterCollectionsRastersBatchDeleteResponse": batch_delete_raster_collections_rasters_response
"/mapsengine:v1/RasterCollectionsRastersBatchInsertRequest": batch_insert_raster_collections_rasters_request
"/mapsengine:v1/RasterCollectionsRastersBatchInsertResponse": batch_insert_raster_collections_rasters_response
"/mapsengine:v1/RasterCollectionsRastersListResponse": list_raster_collections_rasters_response
"/mapsengine:v1/RastersListResponse": list_rasters_response
"/mapsengine:v1/TablesListResponse": list_tables_response
"/mapsengine:v1/mapsengine.layers.getPublished": get_published_layer
"/mapsengine:v1/mapsengine.layers.listPublished": list_published_layers
"/mapsengine:v1/mapsengine.layers.permissions.batchDelete": batch_delete_layer_permission
"/mapsengine:v1/mapsengine.layers.permissions.batchUpdate": batch_update_layer_permission
"/mapsengine:v1/mapsengine.maps.getPublished": get_published_map
"/mapsengine:v1/mapsengine.maps.permissions.batchDelete": batch_delete_map_permission
"/mapsengine:v1/mapsengine.maps.permissions.batchUpdate": batch_update_map_permission
"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchDelete": batch_delete_raster_collection_permission
"/mapsengine:v1/mapsengine.rasterCollections.permissions.batchUpdate": batch_update_raster_collection_permission
"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchDelete": batch_delete_raster_collection_raster
"/mapsengine:v1/mapsengine.rasterCollections.rasters.batchInsert": batch_insert_raster_collection_raster
"/mapsengine:v1/mapsengine.rasters.permissions.batchDelete": batch_delete_raster_permission
"/mapsengine:v1/mapsengine.rasters.permissions.batchUpdate": batch_update_raster_permission
"/mapsengine:v1/mapsengine.tables.features.batchDelete": batch_delete_table_feature
"/mapsengine:v1/mapsengine.tables.features.batchInsert": batch_insert_table_feature
"/mapsengine:v1/mapsengine.tables.features.batchPatch": batch_patch_table_feature
"/mapsengine:v1/mapsengine.tables.permissions.batchDelete": batch_delete_table_permission
"/mapsengine:v1/mapsengine.tables.permissions.batchUpdate": batch_update_table_permission
"/mirror:v1/AttachmentsListResponse": list_attachments_response "/mirror:v1/AttachmentsListResponse": list_attachments_response
"/mirror:v1/ContactsListResponse": list_contacts_response "/mirror:v1/ContactsListResponse": list_contacts_response
"/mirror:v1/LocationsListResponse": list_locations_response "/mirror:v1/LocationsListResponse": list_locations_response
@ -961,6 +918,7 @@
"/pagespeedonline:v2/PagespeedApiFormatStringV2": format_string "/pagespeedonline:v2/PagespeedApiFormatStringV2": format_string
"/pagespeedonline:v2/PagespeedApiImageV2": image "/pagespeedonline:v2/PagespeedApiImageV2": image
"/pagespeedonline:v2/pagespeedonline.pagespeedapi.runpagespeed": run_pagespeed "/pagespeedonline:v2/pagespeedonline.pagespeedapi.runpagespeed": run_pagespeed
"/people:v1/people.people.getBatchGet": get_people
"/plus:v1/plus.people.listByActivity": list_people_by_activity "/plus:v1/plus.people.listByActivity": list_people_by_activity
"/plusDomains:v1/plusDomains.circles.addPeople": add_people "/plusDomains:v1/plusDomains.circles.addPeople": add_people
"/plusDomains:v1/plusDomains.circles.removePeople": remove_people "/plusDomains:v1/plusDomains.circles.removePeople": remove_people

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

View File

@ -320,7 +320,7 @@ module Google
end end
end end
# A device resource represents a mobile device managed by the MDM and belonging # A device resource represents a mobile device managed by the EMM and belonging
# to a specific enterprise user. # to a specific enterprise user.
# This collection cannot be modified via the API; it is automatically populated # This collection cannot be modified via the API; it is automatically populated
# as devices are set up to be managed. # as devices are set up to be managed.
@ -339,10 +339,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# The mechanism by which this device is managed by the MDM. "managedDevice" # The mechanism by which this device is managed by the EMM. "managedDevice"
# means that the MDM's app is a device owner. "managedProfile" means that the # means that the EMM's app is a device owner. "managedProfile" means that the
# MDM's app is the profile owner (and there is a separate personal profile which # EMM's app is the profile owner (and there is a separate personal profile which
# is not managed). "containerApp" means that the MDM's app is managing the # is not managed). "containerApp" means that the EMM's app is managing the
# Android for Work container app on the device. # Android for Work container app on the device.
# Corresponds to the JSON property `managementType` # Corresponds to the JSON property `managementType`
# @return [String] # @return [String]
@ -417,21 +417,21 @@ module Google
end end
# An enterprise resource represents a binding between an organisation and their # An enterprise resource represents a binding between an organisation and their
# MDM. # EMM.
# To create an enterprise, an admin of the enterprise must first go through a # To create an enterprise, an admin of the enterprise must first go through a
# Play for Work sign-up flow. At the end of this the admin will be presented # Play for Work sign-up flow. At the end of this the admin will be presented
# with a token (a short opaque alphanumeric string). They must then present this # with a token (a short opaque alphanumeric string). They must then present this
# to the MDM, who then supplies it to the enroll method. Until this is done the # to the EMM, who then supplies it to the enroll method. Until this is done the
# MDM will not have any access to the enterprise. # EMM will not have any access to the enterprise.
# After calling enroll the MDM should call setAccount to specify the service # After calling enroll the EMM should call setAccount to specify the service
# account that will be allowed to act on behalf of the enterprise, which will be # account that will be allowed to act on behalf of the enterprise, which will be
# required for access to the enterprise's data through this API. Only one call # required for access to the enterprise's data through this API. Only one call
# of setAccount is allowed for a given enterprise; the only way to change the # of setAccount is allowed for a given enterprise; the only way to change the
# account later is to unenroll the enterprise and enroll it again (obtaining a # account later is to unenroll the enterprise and enroll it again (obtaining a
# new token). # new token).
# The MDM can unenroll an enterprise in order to sever the binding between them. # The EMM can unenroll an enterprise in order to sever the binding between them.
# Re-enrolling an enterprise is possible, but requires a new token to be # Re-enrolling an enterprise is possible, but requires a new token to be
# retrieved. Enterprises.unenroll requires the MDM's credentials (as enroll does) # retrieved. Enterprises.unenroll requires the EMM's credentials (as enroll does)
# , not the enterprise's. Enterprises.unenroll can only be used for enterprises # , not the enterprise's. Enterprises.unenroll can only be used for enterprises
# that were previously enrolled with the enroll call. Any enterprises that were # that were previously enrolled with the enroll call. Any enterprises that were
# enrolled using the (deprecated) Enterprises.insert call must be unenrolled # enrolled using the (deprecated) Enterprises.insert call must be unenrolled
@ -563,7 +563,7 @@ module Google
# It should always be true that a user has an app installed on one of their # It should always be true that a user has an app installed on one of their
# devices only if they have an entitlement to it. So if an entitlement is # devices only if they have an entitlement to it. So if an entitlement is
# deleted, the app will be uninstalled from all devices. Similarly if the user # deleted, the app will be uninstalled from all devices. Similarly if the user
# installs an app (and is permitted to do so), or the MDM triggers an install of # installs an app (and is permitted to do so), or the EMM triggers an install of
# the app, an entitlement to that app is automatically created. If this is # the app, an entitlement to that app is automatically created. If this is
# impossible - e.g. the enterprise has not purchased sufficient licenses - then # impossible - e.g. the enterprise has not purchased sufficient licenses - then
# installation fails. # installation fails.
@ -887,7 +887,7 @@ module Google
# permissions on behalf of their users before an entitlement for the app can be # permissions on behalf of their users before an entitlement for the app can be
# created. # created.
# The permissions collection is read-only. The information provided for each # The permissions collection is read-only. The information provided for each
# permission (localized name and description) is intended to be used in the MDM # permission (localized name and description) is intended to be used in the EMM
# user interface when obtaining consent from the enterprise. # user interface when obtaining consent from the enterprise.
class Permission class Permission
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -932,7 +932,7 @@ module Google
# enterprise.) # enterprise.)
# The information provided for each product (localized name, icon, link to the # The information provided for each product (localized name, icon, link to the
# full Google Play details page) is intended to allow a basic representation of # full Google Play details page) is intended to allow a basic representation of
# the product within an MDM user interface. # the product within an EMM user interface.
class Product class Product
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1340,9 +1340,9 @@ module Google
# A user resource represents an individual user within the enterprise's domain. # A user resource represents an individual user within the enterprise's domain.
# Note that each user is associated with a Google account based on the user's # Note that each user is associated with a Google account based on the user's
# corporate email address (which must be in one of the enterprise's domains). As # corporate email address (which must be in one of the enterprise's domains). As
# part of installing an MDM app to manage a device the Google account must be # part of installing the EMM's DPC app to manage a device the Google account
# provisioned to the device, and so the user resource must be created before # must be provisioned to the device, and so the user resource must be created
# that. This can be done using the Google Admin SDK Directory API. # before that. This can be done using the Google Admin SDK Directory API.
# The ID for a user is an opaque string. It can be retrieved using the list # The ID for a user is an opaque string. It can be retrieved using the list
# method queried by the user's primary email address. # method queried by the user's primary email address.
class User class User
@ -1379,7 +1379,7 @@ module Google
# A UserToken is used by a user when setting up a managed device or profile with # A UserToken is used by a user when setting up a managed device or profile with
# their work account on a device. When the user enters their email address and # their work account on a device. When the user enters their email address and
# token (activation code) the appropriate MDM app can be automatically # token (activation code) the appropriate EMM app can be automatically
# downloaded. # downloaded.
class UserToken class UserToken
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -668,7 +668,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Deletes the binding between the MDM and enterprise. This is now deprecated; # Deletes the binding between the EMM and enterprise. This is now deprecated;
# use this to unenroll customers that were previously enrolled with the 'insert' # use this to unenroll customers that were previously enrolled with the 'insert'
# call, then enroll them again with the 'enroll' call. # call, then enroll them again with the 'enroll' call.
# @param [String] enterprise_id # @param [String] enterprise_id
@ -703,9 +703,9 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Enrolls an enterprise with the calling MDM. # Enrolls an enterprise with the calling EMM.
# @param [String] token # @param [String] token
# The token provided by the enterprise to register the MDM. # The token provided by the enterprise to register the EMM.
# @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -811,10 +811,10 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Establishes the binding between the MDM and an enterprise. This is now # Establishes the binding between the EMM and an enterprise. This is now
# deprecated; use enroll instead. # deprecated; use enroll instead.
# @param [String] token # @param [String] token
# The token provided by the enterprise to register the MDM. # The token provided by the enterprise to register the EMM.
# @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
@ -885,7 +885,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Sends a test push notification to validate the MDM integration with the Google # Sends a test push notification to validate the EMM integration with the Google
# Cloud Pub/Sub service for this enterprise. # Cloud Pub/Sub service for this enterprise.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
@ -997,7 +997,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Unenrolls an enterprise from the calling MDM. # Unenrolls an enterprise from the calling EMM.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
# @param [String] fields # @param [String] fields
@ -2361,6 +2361,7 @@ module Google
# Generates a token (activation code) to allow this user to configure their work # Generates a token (activation code) to allow this user to configure their work
# account in the Android Setup Wizard. Revokes any previously generated token. # account in the Android Setup Wizard. Revokes any previously generated token.
# This call only works with Google managed accounts.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
# @param [String] user_id # @param [String] user_id
@ -2474,7 +2475,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Looks up a user by email address. This only works for Google managed users. # Looks up a user by their primary email address.
# @param [String] enterprise_id # @param [String] enterprise_id
# The ID of the enterprise. # The ID of the enterprise.
# @param [String] email # @param [String] email

View File

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

View File

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

View File

@ -1131,10 +1131,10 @@ module Google
# @return [String] # @return [String]
attr_accessor :query attr_accessor :query
# [Experimental] If querying an external data source outside of BigQuery, # [Optional] If querying an external data source outside of BigQuery, describes
# describes the data format, location and other properties of the data source. # the data format, location and other properties of the data source. By defining
# By defining these properties, the data source can then be queried as if it # these properties, the data source can then be queried as if it were a standard
# were a standard BigQuery table. # BigQuery table.
# Corresponds to the JSON property `tableDefinitions` # Corresponds to the JSON property `tableDefinitions`
# @return [Hash<String,Google::Apis::BigqueryV2::ExternalDataConfiguration>] # @return [Hash<String,Google::Apis::BigqueryV2::ExternalDataConfiguration>]
attr_accessor :table_definitions attr_accessor :table_definitions
@ -1908,7 +1908,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :expiration_time attr_accessor :expiration_time
# [Experimental] Describes the data format, location, and other properties of a # [Optional] Describes the data format, location, and other properties of a
# table stored outside of BigQuery. By defining these properties, the data # table stored outside of BigQuery. By defining these properties, the data
# source can then be queried as if it were a standard BigQuery table. # source can then be queried as if it were a standard BigQuery table.
# Corresponds to the JSON property `externalDataConfiguration` # Corresponds to the JSON property `externalDataConfiguration`
@ -2065,11 +2065,12 @@ module Google
attr_accessor :skip_invalid_rows attr_accessor :skip_invalid_rows
alias_method :skip_invalid_rows?, :skip_invalid_rows alias_method :skip_invalid_rows?, :skip_invalid_rows
# [Optional] If specified, treats the destination table as a base template, and # [Experimental] If specified, treats the destination table as a base template,
# inserts the rows into an instance table named "`destination``templateSuffix`". # and inserts the rows into an instance table named "`destination``
# BigQuery will manage creation of the instance table, using the schema of the # templateSuffix`". BigQuery will manage creation of the instance table, using
# base template table. See https://cloud.google.com/bigquery/streaming-data-into- # the schema of the base template table. See https://cloud.google.com/bigquery/
# bigquery#template-tables for considerations when working with templates tables. # streaming-data-into-bigquery#template-tables for considerations when working
# with templates tables.
# Corresponds to the JSON property `templateSuffix` # Corresponds to the JSON property `templateSuffix`
# @return [String] # @return [String]
attr_accessor :template_suffix attr_accessor :template_suffix

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/books/docs/v1/getting_started # @see https://developers.google.com/books/docs/v1/getting_started
module BooksV1 module BooksV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20151218' REVISION = '20160113'
# Manage your books # Manage your books
AUTH_BOOKS = 'https://www.googleapis.com/auth/books' AUTH_BOOKS = 'https://www.googleapis.com/auth/books'

View File

@ -1526,8 +1526,6 @@ module Google
# generating notification title and body. # generating notification title and body.
# @param [String] source # @param [String] source
# String to identify the originator of this request. # String to identify the originator of this request.
# @param [Array<String>, String] target_ids
# List of target ids used for experiments or user segments
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1549,14 +1547,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_notification(notification_id, locale: nil, source: nil, target_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_notification(notification_id, locale: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'notification/get', options) command = make_simple_command(:get, 'notification/get', options)
command.response_representation = Google::Apis::BooksV1::Notification::Representation command.response_representation = Google::Apis::BooksV1::Notification::Representation
command.response_class = Google::Apis::BooksV1::Notification command.response_class = Google::Apis::BooksV1::Notification
command.query['locale'] = locale unless locale.nil? command.query['locale'] = locale unless locale.nil?
command.query['notification_id'] = notification_id unless notification_id.nil? command.query['notification_id'] = notification_id unless notification_id.nil?
command.query['source'] = source unless source.nil? command.query['source'] = source unless source.nil?
command.query['targetIds'] = target_ids unless target_ids.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?
@ -1655,8 +1652,6 @@ module Google
# higher maturity rating are filtered out. # higher maturity rating are filtered out.
# @param [String] source # @param [String] source
# String to identify the originator of this request. # String to identify the originator of this request.
# @param [Array<String>, String] target_ids
# List of target ids used for experiments or user segments
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -1678,14 +1673,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, target_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def get_personalizedstream(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'personalizedstream/get', options) command = make_simple_command(:get, 'personalizedstream/get', options)
command.response_representation = Google::Apis::BooksV1::Discoveryclusters::Representation command.response_representation = Google::Apis::BooksV1::Discoveryclusters::Representation
command.response_class = Google::Apis::BooksV1::Discoveryclusters command.response_class = Google::Apis::BooksV1::Discoveryclusters
command.query['locale'] = locale unless locale.nil? command.query['locale'] = locale unless locale.nil?
command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil? command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
command.query['source'] = source unless source.nil? command.query['source'] = source unless source.nil?
command.query['targetIds'] = target_ids unless target_ids.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?
@ -2155,8 +2149,6 @@ module Google
# higher maturity rating are filtered out. # higher maturity rating are filtered out.
# @param [String] source # @param [String] source
# String to identify the originator of this request. # String to identify the originator of this request.
# @param [Array<String>, String] target_ids
# List of target ids used for experiments or user segments
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user
@ -2178,14 +2170,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required # @raise [Google::Apis::AuthorizationError] Authorization is required
def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, target_ids: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) def list_recommended_volumes(locale: nil, max_allowed_maturity_rating: nil, source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'volumes/recommended', options) command = make_simple_command(:get, 'volumes/recommended', options)
command.response_representation = Google::Apis::BooksV1::Volumes::Representation command.response_representation = Google::Apis::BooksV1::Volumes::Representation
command.response_class = Google::Apis::BooksV1::Volumes command.response_class = Google::Apis::BooksV1::Volumes
command.query['locale'] = locale unless locale.nil? command.query['locale'] = locale unless locale.nil?
command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil? command.query['maxAllowedMaturityRating'] = max_allowed_maturity_rating unless max_allowed_maturity_rating.nil?
command.query['source'] = source unless source.nil? command.query['source'] = source unless source.nil?
command.query['targetIds'] = target_ids unless target_ids.nil?
command.query['fields'] = fields unless fields.nil? command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil? command.query['userIp'] = user_ip unless user_ip.nil?

View File

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

View File

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

View File

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

View File

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

View File

@ -196,7 +196,7 @@ module Google
end end
end end
# Contains a list of address resources. # Contains a list of addresses.
class AddressList class AddressList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -206,7 +206,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# [Output Only] A list of Address resources. # [Output Only] A list of addresses.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::Address>] # @return [Array<Google::Apis::ComputeBeta::Address>]
attr_accessor :items attr_accessor :items
@ -387,9 +387,11 @@ module Google
# @return [Google::Apis::ComputeBeta::AttachedDiskInitializeParams] # @return [Google::Apis::ComputeBeta::AttachedDiskInitializeParams]
attr_accessor :initialize_params attr_accessor :initialize_params
# Specifies the disk interface to use for attaching this disk, either SCSI or # Specifies the disk interface to use for attaching this disk, which is either
# NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
# see Local SSD performance. # the request will fail if you attempt to attach a persistent disk in any other
# format than SCSI. Local SSDs can use either NVME or SCSI. For performance
# characteristics of SCSI over NVMe, see Local SSD performance.
# Corresponds to the JSON property `interface` # Corresponds to the JSON property `interface`
# @return [String] # @return [String]
attr_accessor :interface attr_accessor :interface
@ -923,8 +925,8 @@ module Google
class Backend class Backend
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies the balancing mode for this backend. The default is UTILIZATION but # Specifies the balancing mode for this backend. For global HTTP(S) load
# available values are UTILIZATION and RATE. # balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
# Corresponds to the JSON property `balancingMode` # Corresponds to the JSON property `balancingMode`
# @return [String] # @return [String]
attr_accessor :balancing_mode attr_accessor :balancing_mode
@ -955,14 +957,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :group attr_accessor :group
# The max requests per second (RPS) of the group. Can be used with either # The max requests per second (RPS) of the group. Can be used with either RATE
# balancing mode, but required if RATE mode. For RATE mode, either maxRate or # or UTILIZATION balancing modes, but required if RATE mode. For RATE mode,
# maxRatePerInstance must be set. # either maxRate or maxRatePerInstance must be set.
# Corresponds to the JSON property `maxRate` # Corresponds to the JSON property `maxRate`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_rate attr_accessor :max_rate
# The max requests per second (RPS) that a single backed instance can handle. # The max requests per second (RPS) that a single backend instance can handle.
# This is used to calculate the capacity of the group. Can be used in either # This is used to calculate the capacity of the group. Can be used in either
# balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be # balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be
# set. # set.
@ -1056,13 +1058,14 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :port attr_accessor :port
# Name of backend port. The same name should appear in the resource views # Name of backend port. The same name should appear in the instance groups
# referenced by this service. Required. # referenced by this service. Required.
# Corresponds to the JSON property `portName` # Corresponds to the JSON property `portName`
# @return [String] # @return [String]
attr_accessor :port_name attr_accessor :port_name
# # The protocol this BackendService uses to communicate with backends.
# Possible values are HTTP, HTTPS, HTTP2, TCP and SSL.
# Corresponds to the JSON property `protocol` # Corresponds to the JSON property `protocol`
# @return [String] # @return [String]
attr_accessor :protocol attr_accessor :protocol
@ -1073,7 +1076,7 @@ module Google
attr_accessor :self_link attr_accessor :self_link
# How many seconds to wait for the backend before considering it a failed # How many seconds to wait for the backend before considering it a failed
# request. Default is 30 seconds. Valid range is [1, 86400]. # request. Default is 30 seconds.
# Corresponds to the JSON property `timeoutSec` # Corresponds to the JSON property `timeoutSec`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :timeout_sec attr_accessor :timeout_sec
@ -1308,7 +1311,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :last_detach_timestamp attr_accessor :last_detach_timestamp
# Any applicable publicly visible licenses. # [Output Only] Any applicable publicly visible licenses.
# Corresponds to the JSON property `licenses` # Corresponds to the JSON property `licenses`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :licenses attr_accessor :licenses
@ -1356,6 +1359,13 @@ module Google
# projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD # projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
# where vYYYYMMDD is the image version. The fully-qualified URL will also work # where vYYYYMMDD is the image version. The fully-qualified URL will also work
# in both cases. # in both cases.
# You can also specify the latest image for a private image family by replacing
# the image name suffix with family/family-name. For example:
# global/images/family/my-private-family
# Or you can specify an image family from a publicly-available project. For
# example, to use the latest Debian 7 from the debian-cloud project, make sure
# to include the project in the URL:
# projects/debian-cloud/global/images/family/debian-7
# Corresponds to the JSON property `sourceImage` # Corresponds to the JSON property `sourceImage`
# @return [String] # @return [String]
attr_accessor :source_image attr_accessor :source_image
@ -1365,11 +1375,11 @@ module Google
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey] # @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
attr_accessor :source_image_encryption_key attr_accessor :source_image_encryption_key
# The ID value of the image used to create this disk. This value identifies the # [Output Only] The ID value of the image used to create this disk. This value
# exact image that was used to create this persistent disk. For example, if you # identifies the exact image that was used to create this persistent disk. For
# created the persistent disk from an image that was later deleted and recreated # example, if you created the persistent disk from an image that was later
# under the same name, the source image ID would identify the exact version of # deleted and recreated under the same name, the source image ID would identify
# the image that was used. # the exact version of the image that was used.
# Corresponds to the JSON property `sourceImageId` # Corresponds to the JSON property `sourceImageId`
# @return [String] # @return [String]
attr_accessor :source_image_id attr_accessor :source_image_id
@ -1411,13 +1421,13 @@ module Google
attr_accessor :storage_type attr_accessor :storage_type
# URL of the disk type resource describing which disk type to use to create the # URL of the disk type resource describing which disk type to use to create the
# disk; provided by the client when the disk is created. # disk. Provide this when creating the disk.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
# Links to the users of the disk (attached instances) in form: project/zones/ # [Output Only] Links to the users of the disk (attached instances) in form:
# zone/instances/instance # project/zones/zone/instances/instance
# Corresponds to the JSON property `users` # Corresponds to the JSON property `users`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :users attr_accessor :users
@ -1556,7 +1566,7 @@ module Google
end end
end end
# A disk type resource. # A DiskType resource.
class DiskType class DiskType
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1679,7 +1689,7 @@ module Google
end end
end end
# Contains a list of disk type resources. # Contains a list of disk types.
class DiskTypeList class DiskTypeList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1928,7 +1938,7 @@ module Google
end end
end end
# A Firewall resource. # Represents a Firewall resource.
class Firewall class Firewall
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2038,9 +2048,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The IP protocol that is allowed for this rule. The protocol type is required # The IP protocol that is allowed for this rule. The protocol type is required
# when creating a firewall. This value can either be one of the following well # when creating a firewall rule. This value can either be one of the following
# known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP protocol # well known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP
# number. # protocol number.
# Corresponds to the JSON property `IPProtocol` # Corresponds to the JSON property `IPProtocol`
# @return [String] # @return [String]
attr_accessor :ip_protocol attr_accessor :ip_protocol
@ -2065,7 +2075,7 @@ module Google
end end
end end
# Contains a list of Firewall resources. # Contains a list of firewalls.
class FirewallList class FirewallList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2231,7 +2241,8 @@ module Google
# @return [Hash<String,Google::Apis::ComputeBeta::ForwardingRulesScopedList>] # @return [Hash<String,Google::Apis::ComputeBeta::ForwardingRulesScopedList>]
attr_accessor :items attr_accessor :items
# Type of resource. # [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList
# for lists of forwarding rules.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -2402,7 +2413,12 @@ module Google
end end
end end
# # A full or valid partial URL to a health check. For example, the following are
# valid URLs:
# - https://www.googleapis.com/compute/beta/projects/project-id/global/
# httpHealthChecks/health-check
# - projects/project-id/global/httpHealthChecks/health-check
# - global/httpHealthChecks/health-check
class HealthCheckReference class HealthCheckReference
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2534,7 +2550,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# Type of the resource. # [Output Only] Type of the resource. Always compute#httpHealthCheck for HTTP
# health checks.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -2554,7 +2571,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :port attr_accessor :port
# The request path of the HTTP health check request. The default value is "/". # The request path of the HTTP health check request. The default value is /.
# Corresponds to the JSON property `requestPath` # Corresponds to the JSON property `requestPath`
# @return [String] # @return [String]
attr_accessor :request_path attr_accessor :request_path
@ -2829,6 +2846,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :disk_size_gb attr_accessor :disk_size_gb
# Image family for the resource; provided by the client when the resource is
# created.
# Corresponds to the JSON property `family`
# @return [String]
attr_accessor :family
# [Output Only] The unique identifier for the resource. This identifier is # [Output Only] The unique identifier for the resource. This identifier is
# defined by the server. # defined by the server.
# Corresponds to the JSON property `id` # Corresponds to the JSON property `id`
@ -2918,6 +2941,7 @@ module Google
@deprecated = args[:deprecated] if args.key?(:deprecated) @deprecated = args[:deprecated] if args.key?(:deprecated)
@description = args[:description] if args.key?(:description) @description = args[:description] if args.key?(:description)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@family = args[:family] if args.key?(:family)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@image_encryption_key = args[:image_encryption_key] if args.key?(:image_encryption_key) @image_encryption_key = args[:image_encryption_key] if args.key?(:image_encryption_key)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@ -2968,7 +2992,7 @@ module Google
end end
end end
# Contains a list of Image resources. # Contains a list of images.
class ImageList class ImageList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -3079,7 +3103,7 @@ module Google
attr_accessor :labels attr_accessor :labels
# Full or partial URL of the machine type resource to use for this instance, in # Full or partial URL of the machine type resource to use for this instance, in
# the format: zones/zone/machineTypes/ machine-type. This is provided by the # the format: zones/zone/machineTypes/machine-type. This is provided by the
# client when the instance is created. For example, the following is a valid # client when the instance is created. For example, the following is a valid
# partial url to a predefined machine type: # partial url to a predefined machine type:
# zones/us-central1-f/machineTypes/n1-standard-1 # zones/us-central1-f/machineTypes/n1-standard-1
@ -3284,8 +3308,7 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::NamedPort>] # @return [Array<Google::Apis::ComputeBeta::NamedPort>]
attr_accessor :named_ports attr_accessor :named_ports
# [Output Only] The URL of the network to which all instances in the instance # The URL of the network to which all instances in the instance group belong.
# group belong.
# Corresponds to the JSON property `network` # Corresponds to the JSON property `network`
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
@ -3300,8 +3323,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :size attr_accessor :size
# [Output Only] The URL of the subnetwork to which all instances in the instance # The URL of the subnetwork to which all instances in the instance group belong.
# group belong.
# Corresponds to the JSON property `subnetwork` # Corresponds to the JSON property `subnetwork`
# @return [String] # @return [String]
attr_accessor :subnetwork attr_accessor :subnetwork
@ -3430,8 +3452,7 @@ module Google
end end
end end
# InstanceGroupManagers #
# Next available tag: 20
class InstanceGroupManager class InstanceGroupManager
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4228,7 +4249,7 @@ module Google
end end
end end
# Contains a list of instance resources. # Contains a list of instances.
class InstanceList class InstanceList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4238,7 +4259,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# [Output Only] A list of Instance resources. # [Output Only] A list of instances.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::Instance>] # @return [Array<Google::Apis::ComputeBeta::Instance>]
attr_accessor :items attr_accessor :items
@ -4835,7 +4856,7 @@ module Google
end end
end end
# Contains a list of Machine Type resources. # Contains a list of machine types.
class MachineTypeList class MachineTypeList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5204,7 +5225,8 @@ module Google
end end
end end
# A network resource. # Represents a Network resource. Read Networks and Firewalls for more
# information.
class Network class Network
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5357,7 +5379,7 @@ module Google
end end
end end
# Contains a list of Network resources. # Contains a list of networks.
class NetworkList class NetworkList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5410,7 +5432,7 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Output Only] A unique client ID generated by the server. # [Output Only] Reserved for future use.
# Corresponds to the JSON property `clientOperationId` # Corresponds to the JSON property `clientOperationId`
# @return [String] # @return [String]
attr_accessor :client_operation_id attr_accessor :client_operation_id
@ -5474,7 +5496,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# [Output Only] The type of operation, which can be insert, update, or delete. # [Output Only] The type of operation, such as insert, update, or delete, and so
# on.
# Corresponds to the JSON property `operationType` # Corresponds to the JSON property `operationType`
# @return [String] # @return [String]
attr_accessor :operation_type attr_accessor :operation_type
@ -5487,8 +5510,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :progress attr_accessor :progress
# [Output Only] URL of the region where the operation resides. Only available # [Output Only] The URL of the region where the operation resides. Only
# when performing regional operations. # available when performing regional operations.
# Corresponds to the JSON property `region` # Corresponds to the JSON property `region`
# @return [String] # @return [String]
attr_accessor :region attr_accessor :region
@ -5522,7 +5545,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :target_id attr_accessor :target_id
# [Output Only] The URL of the resource that the operation is modifying. # [Output Only] The URL of the resource that the operation modifies.
# Corresponds to the JSON property `targetLink` # Corresponds to the JSON property `targetLink`
# @return [String] # @return [String]
attr_accessor :target_link attr_accessor :target_link
@ -5538,8 +5561,8 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::Operation::Warning>] # @return [Array<Google::Apis::ComputeBeta::Operation::Warning>]
attr_accessor :warnings attr_accessor :warnings
# [Output Only] URL of the zone where the operation resides. Only available when # [Output Only] The URL of the zone where the operation resides. Only available
# performing per-zone operations. # when performing per-zone operations.
# Corresponds to the JSON property `zone` # Corresponds to the JSON property `zone`
# @return [String] # @return [String]
attr_accessor :zone attr_accessor :zone
@ -5751,7 +5774,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# [Output Only] The Operation resources. # [Output Only] A list of Operation resources.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeBeta::Operation>] # @return [Array<Google::Apis::ComputeBeta::Operation>]
attr_accessor :items attr_accessor :items
@ -5957,7 +5980,7 @@ module Google
end end
end end
# A Project resource. Projects can only be created in the Google Developers # A Project resource. Projects can only be created in the Google Cloud Platform
# Console. Unless marked otherwise, values can only be modified in the console. # Console. Unless marked otherwise, values can only be modified in the console.
class Project class Project
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -6208,19 +6231,20 @@ module Google
end end
end end
# The route resource. A Route is a rule that specifies how certain packets # Represents a Routes resource. A route specifies how certain packets should be
# should be handled by the virtual network. Routes are associated with instances # handled by the network. Routes are associated with instances by tags and the
# by tags and the set of Routes for a particular instance is called its routing # set of routes for a particular instance is called its routing table.
# table. For each packet leaving a instance, the system searches that instance's # For each packet leaving a instance, the system searches that instance's
# routing table for a single best matching Route. Routes match packets by # routing table for a single best matching route. Routes match packets by
# destination IP address, preferring smaller or more specific ranges over larger # destination IP address, preferring smaller or more specific ranges over larger
# ones. If there is a tie, the system selects the Route with the smallest # ones. If there is a tie, the system selects the route with the smallest
# priority value. If there is still a tie, it uses the layer three and four # priority value. If there is still a tie, it uses the layer three and four
# packet headers to select just one of the remaining matching Routes. The packet # packet headers to select just one of the remaining matching Routes. The packet
# is then forwarded as specified by the nextHop field of the winning Route -- # is then forwarded as specified by the nextHop field of the winning route -
# either to another instance destination, a instance gateway or a Google Compute # either to another instance destination, a instance gateway or a Google Compute
# Engien-operated gateway. Packets that do not match any Route in the sending # Engine-operated gateway.
# instance's routing table are dropped. # Packets that do not match any route in the sending instance's routing table
# are dropped.
class Route class Route
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -6471,7 +6495,7 @@ module Google
# Defines the maintenance behavior for this instance. For standard instances, # Defines the maintenance behavior for this instance. For standard instances,
# the default behavior is MIGRATE. For preemptible instances, the default and # the default behavior is MIGRATE. For preemptible instances, the default and
# only possible behavior is TERMINATE. For more information, see Setting # only possible behavior is TERMINATE. For more information, see Setting
# maintenance behavior. # Instance Scheduling Options.
# Corresponds to the JSON property `onHostMaintenance` # Corresponds to the JSON property `onHostMaintenance`
# @return [String] # @return [String]
attr_accessor :on_host_maintenance attr_accessor :on_host_maintenance
@ -6583,7 +6607,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Public visible licenses. # [Output Only] A list of public visible licenses that apply to this snapshot.
# This can be because the original image had licenses attached (such as a
# Windows image).
# Corresponds to the JSON property `licenses` # Corresponds to the JSON property `licenses`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :licenses attr_accessor :licenses
@ -6625,7 +6651,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :source_disk_id attr_accessor :source_disk_id
# [Output Only] The status of the snapshot. # [Output Only] The status of the snapshot. This can be CREATING, DELETING,
# FAILED, READY, or UPLOADING.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -6638,7 +6665,9 @@ module Google
attr_accessor :storage_bytes attr_accessor :storage_bytes
# [Output Only] An indicator whether storageBytes is in a stable state or it is # [Output Only] An indicator whether storageBytes is in a stable state or it is
# being adjusted as a result of shared storage reallocation. # being adjusted as a result of shared storage reallocation. This status can
# either be UPDATING, meaning the size of the snapshot is being updated, or
# UP_TO_DATE, meaning the size of the snapshot is up-to-date.
# Corresponds to the JSON property `storageBytesStatus` # Corresponds to the JSON property `storageBytesStatus`
# @return [String] # @return [String]
attr_accessor :storage_bytes_status attr_accessor :storage_bytes_status
@ -7219,7 +7248,7 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::TargetHttpProxy>] # @return [Array<Google::Apis::ComputeBeta::TargetHttpProxy>]
attr_accessor :items attr_accessor :items
# Type of resource. Always compute#targetHttpProxyList for lists of Target HTTP # Type of resource. Always compute#targetHttpProxyList for lists of target HTTP
# proxies. # proxies.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
@ -7258,7 +7287,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# New set of URLs to SslCertificate resources to associate with this # New set of URLs to SslCertificate resources to associate with this
# TargetHttpProxy. Currently exactly one ssl certificate must be specified. # TargetHttpProxy. Currently exactly one SSL certificate must be specified.
# Corresponds to the JSON property `sslCertificates` # Corresponds to the JSON property `sslCertificates`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ssl_certificates attr_accessor :ssl_certificates
@ -7316,14 +7345,18 @@ module Google
attr_accessor :self_link attr_accessor :self_link
# URLs to SslCertificate resources that are used to authenticate connections # URLs to SslCertificate resources that are used to authenticate connections
# between users and the load balancer. Currently exactly one SSL certificate # between users and the load balancer. Currently, exactly one SSL certificate
# must be specified. # must be specified.
# Corresponds to the JSON property `sslCertificates` # Corresponds to the JSON property `sslCertificates`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ssl_certificates attr_accessor :ssl_certificates
# URL to the UrlMap resource that defines the mapping from URL to the # A fully-qualified or valid partial URL to the UrlMap resource that defines the
# BackendService. # mapping from URL to the BackendService. For example, the following are all
# valid URLs for specifying a URL map:
# - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map
# - projects/project/global/urlMaps/url-map
# - global/urlMaps/url-map
# Corresponds to the JSON property `urlMap` # Corresponds to the JSON property `urlMap`
# @return [String] # @return [String]
attr_accessor :url_map attr_accessor :url_map
@ -7415,7 +7448,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# The URL to the instance that terminates the relevant traffic. # A URL to the virtual machine instance that handles traffic for this target
# instance. When creating a target instance, you can provide the fully-qualified
# URL or a valid partial URL to the desired virtual machine. For example, the
# following are all valid URLs:
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
# instance
# - projects/project/zones/zone/instances/instance
# - zones/zone/instances/instance
# Corresponds to the JSON property `instance` # Corresponds to the JSON property `instance`
# @return [String] # @return [String]
attr_accessor :instance attr_accessor :instance
@ -7657,7 +7697,7 @@ module Google
end end
# A TargetPool resource. This resource defines a pool of instances, associated # A TargetPool resource. This resource defines a pool of instances, associated
# HttpHealthCheck resources, and the fallback TargetPool. # HttpHealthCheck resources, and the fallback target pool.
class TargetPool class TargetPool
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -7716,8 +7756,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# A list of resource URLs to the member virtual machines serving this pool. They # A list of resource URLs to the virtual machine instances serving this pool.
# must live in zones contained in the same region as this pool. # They must live in zones contained in the same region as this pool.
# Corresponds to the JSON property `instances` # Corresponds to the JSON property `instances`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :instances attr_accessor :instances
@ -7787,12 +7827,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# A map of scoped target pool lists. # [Output Only] A map of scoped target pool lists.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::ComputeBeta::TargetPoolsScopedList>] # @return [Hash<String,Google::Apis::ComputeBeta::TargetPoolsScopedList>]
attr_accessor :items attr_accessor :items
# Type of resource. # [Output Only] Type of resource. Always compute#targetPoolAggregatedList for
# aggregated lists of target pools.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -7834,7 +7875,8 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::HealthStatus>] # @return [Array<Google::Apis::ComputeBeta::HealthStatus>]
attr_accessor :health_status attr_accessor :health_status
# Type of resource. # [Output Only] Type of resource. Always compute#targetPoolInstanceHealth when
# checking the health of an instance.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -7864,7 +7906,8 @@ module Google
# @return [Array<Google::Apis::ComputeBeta::TargetPool>] # @return [Array<Google::Apis::ComputeBeta::TargetPool>]
attr_accessor :items attr_accessor :items
# Type of resource. # [Output Only] Type of resource. Always compute#targetPoolList for lists of
# target pools.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -7901,7 +7944,7 @@ module Google
class AddTargetPoolsHealthCheckRequest class AddTargetPoolsHealthCheckRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Health check URLs to be added to targetPool. # A list of HttpHealthCheck resources to add to the target pool.
# Corresponds to the JSON property `healthChecks` # Corresponds to the JSON property `healthChecks`
# @return [Array<Google::Apis::ComputeBeta::HealthCheckReference>] # @return [Array<Google::Apis::ComputeBeta::HealthCheckReference>]
attr_accessor :health_checks attr_accessor :health_checks
@ -7920,7 +7963,12 @@ module Google
class AddTargetPoolsInstanceRequest class AddTargetPoolsInstanceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# URLs of the instances to be added to targetPool. # A full or partial URL to an instance to add to this target pool. This can be a
# full or partial URL. For example, the following are valid URLs:
# - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/
# instances/instance-name
# - projects/project-id/zones/zone/instances/instance-name
# - zones/zone/instances/instance-name
# Corresponds to the JSON property `instances` # Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::ComputeBeta::InstanceReference>] # @return [Array<Google::Apis::ComputeBeta::InstanceReference>]
attr_accessor :instances attr_accessor :instances
@ -7939,7 +7987,12 @@ module Google
class RemoveTargetPoolsHealthCheckRequest class RemoveTargetPoolsHealthCheckRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Health check URLs to be removed from targetPool. # Health check URL to be removed. This can be a full or valid partial URL. For
# example, the following are valid URLs:
# - https://www.googleapis.com/compute/beta/projects/project/global/
# httpHealthChecks/health-check
# - projects/project/global/httpHealthChecks/health-check
# - global/httpHealthChecks/health-check
# Corresponds to the JSON property `healthChecks` # Corresponds to the JSON property `healthChecks`
# @return [Array<Google::Apis::ComputeBeta::HealthCheckReference>] # @return [Array<Google::Apis::ComputeBeta::HealthCheckReference>]
attr_accessor :health_checks attr_accessor :health_checks
@ -7958,7 +8011,7 @@ module Google
class RemoveTargetPoolsInstanceRequest class RemoveTargetPoolsInstanceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# URLs of the instances to be removed from targetPool. # URLs of the instances to be removed from target pool.
# Corresponds to the JSON property `instances` # Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::ComputeBeta::InstanceReference>] # @return [Array<Google::Apis::ComputeBeta::InstanceReference>]
attr_accessor :instances attr_accessor :instances
@ -8083,7 +8136,7 @@ module Google
end end
end end
# # Represents a Target VPN gateway resource.
class TargetVpnGateway class TargetVpnGateway
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -8149,7 +8202,7 @@ module Google
attr_accessor :status attr_accessor :status
# [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created # [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created
# using compute.vpntunnels.insert and associated to a VPN gateway. # using compute.vpntunnels.insert method and associated to a VPN gateway.
# Corresponds to the JSON property `tunnels` # Corresponds to the JSON property `tunnels`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :tunnels attr_accessor :tunnels

View File

@ -1457,6 +1457,7 @@ module Google
property :description, as: 'description' property :description, as: 'description'
property :disk_size_gb, as: 'diskSizeGb' property :disk_size_gb, as: 'diskSizeGb'
property :family, as: 'family'
property :id, as: 'id' property :id, as: 'id'
property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation property :image_encryption_key, as: 'imageEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -196,7 +196,7 @@ module Google
end end
end end
# Contains a list of address resources. # Contains a list of addresses.
class AddressList class AddressList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -206,7 +206,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# [Output Only] A list of Address resources. # [Output Only] A list of addresses.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::Address>] # @return [Array<Google::Apis::ComputeV1::Address>]
attr_accessor :items attr_accessor :items
@ -382,9 +382,11 @@ module Google
# @return [Google::Apis::ComputeV1::AttachedDiskInitializeParams] # @return [Google::Apis::ComputeV1::AttachedDiskInitializeParams]
attr_accessor :initialize_params attr_accessor :initialize_params
# Specifies the disk interface to use for attaching this disk, either SCSI or # Specifies the disk interface to use for attaching this disk, which is either
# NVME. The default is SCSI. For performance characteristics of SCSI over NVMe, # SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and
# see Local SSD performance. # the request will fail if you attempt to attach a persistent disk in any other
# format than SCSI. Local SSDs can use either NVME or SCSI. For performance
# characteristics of SCSI over NVMe, see Local SSD performance.
# Corresponds to the JSON property `interface` # Corresponds to the JSON property `interface`
# @return [String] # @return [String]
attr_accessor :interface attr_accessor :interface
@ -905,8 +907,8 @@ module Google
class Backend class Backend
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies the balancing mode for this backend. The default is UTILIZATION but # Specifies the balancing mode for this backend. For global HTTP(S) load
# available values are UTILIZATION and RATE. # balancing, the default is UTILIZATION. Valid values are UTILIZATION and RATE.
# Corresponds to the JSON property `balancingMode` # Corresponds to the JSON property `balancingMode`
# @return [String] # @return [String]
attr_accessor :balancing_mode attr_accessor :balancing_mode
@ -937,14 +939,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :group attr_accessor :group
# The max requests per second (RPS) of the group. Can be used with either # The max requests per second (RPS) of the group. Can be used with either RATE
# balancing mode, but required if RATE mode. For RATE mode, either maxRate or # or UTILIZATION balancing modes, but required if RATE mode. For RATE mode,
# maxRatePerInstance must be set. # either maxRate or maxRatePerInstance must be set.
# Corresponds to the JSON property `maxRate` # Corresponds to the JSON property `maxRate`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_rate attr_accessor :max_rate
# The max requests per second (RPS) that a single backed instance can handle. # The max requests per second (RPS) that a single backend instance can handle.
# This is used to calculate the capacity of the group. Can be used in either # This is used to calculate the capacity of the group. Can be used in either
# balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be # balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be
# set. # set.
@ -1038,13 +1040,14 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :port attr_accessor :port
# Name of backend port. The same name should appear in the resource views # Name of backend port. The same name should appear in the instance groups
# referenced by this service. Required. # referenced by this service. Required.
# Corresponds to the JSON property `portName` # Corresponds to the JSON property `portName`
# @return [String] # @return [String]
attr_accessor :port_name attr_accessor :port_name
# # The protocol this BackendService uses to communicate with backends.
# Possible values are HTTP, HTTPS, HTTP2, TCP and SSL.
# Corresponds to the JSON property `protocol` # Corresponds to the JSON property `protocol`
# @return [String] # @return [String]
attr_accessor :protocol attr_accessor :protocol
@ -1055,7 +1058,7 @@ module Google
attr_accessor :self_link attr_accessor :self_link
# How many seconds to wait for the backend before considering it a failed # How many seconds to wait for the backend before considering it a failed
# request. Default is 30 seconds. Valid range is [1, 86400]. # request. Default is 30 seconds.
# Corresponds to the JSON property `timeoutSec` # Corresponds to the JSON property `timeoutSec`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :timeout_sec attr_accessor :timeout_sec
@ -1245,7 +1248,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :last_detach_timestamp attr_accessor :last_detach_timestamp
# Any applicable publicly visible licenses. # [Output Only] Any applicable publicly visible licenses.
# Corresponds to the JSON property `licenses` # Corresponds to the JSON property `licenses`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :licenses attr_accessor :licenses
@ -1293,15 +1296,22 @@ module Google
# projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD # projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
# where vYYYYMMDD is the image version. The fully-qualified URL will also work # where vYYYYMMDD is the image version. The fully-qualified URL will also work
# in both cases. # in both cases.
# You can also specify the latest image for a private image family by replacing
# the image name suffix with family/family-name. For example:
# global/images/family/my-private-family
# Or you can specify an image family from a publicly-available project. For
# example, to use the latest Debian 7 from the debian-cloud project, make sure
# to include the project in the URL:
# projects/debian-cloud/global/images/family/debian-7
# Corresponds to the JSON property `sourceImage` # Corresponds to the JSON property `sourceImage`
# @return [String] # @return [String]
attr_accessor :source_image attr_accessor :source_image
# The ID value of the image used to create this disk. This value identifies the # [Output Only] The ID value of the image used to create this disk. This value
# exact image that was used to create this persistent disk. For example, if you # identifies the exact image that was used to create this persistent disk. For
# created the persistent disk from an image that was later deleted and recreated # example, if you created the persistent disk from an image that was later
# under the same name, the source image ID would identify the exact version of # deleted and recreated under the same name, the source image ID would identify
# the image that was used. # the exact version of the image that was used.
# Corresponds to the JSON property `sourceImageId` # Corresponds to the JSON property `sourceImageId`
# @return [String] # @return [String]
attr_accessor :source_image_id attr_accessor :source_image_id
@ -1333,13 +1343,13 @@ module Google
attr_accessor :status attr_accessor :status
# URL of the disk type resource describing which disk type to use to create the # URL of the disk type resource describing which disk type to use to create the
# disk; provided by the client when the disk is created. # disk. Provide this when creating the disk.
# Corresponds to the JSON property `type` # Corresponds to the JSON property `type`
# @return [String] # @return [String]
attr_accessor :type attr_accessor :type
# Links to the users of the disk (attached instances) in form: project/zones/ # [Output Only] Links to the users of the disk (attached instances) in form:
# zone/instances/instance # project/zones/zone/instances/instance
# Corresponds to the JSON property `users` # Corresponds to the JSON property `users`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :users attr_accessor :users
@ -1478,7 +1488,7 @@ module Google
class MoveDiskRequest class MoveDiskRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The URL of the destination zone to move the disk to. This can be a full or # The URL of the destination zone to move the disk. This can be a full or
# partial URL. For example, the following are all valid URLs to a zone: # partial URL. For example, the following are all valid URLs to a zone:
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone # - https://www.googleapis.com/compute/v1/projects/project/zones/zone
# - projects/project/zones/zone # - projects/project/zones/zone
@ -1507,7 +1517,7 @@ module Google
end end
end end
# A disk type resource. # A DiskType resource.
class DiskType class DiskType
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1630,7 +1640,7 @@ module Google
end end
end end
# Contains a list of disk type resources. # Contains a list of disk types.
class DiskTypeList class DiskTypeList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1860,7 +1870,7 @@ module Google
end end
end end
# A Firewall resource. # Represents a Firewall resource.
class Firewall class Firewall
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1970,9 +1980,9 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The IP protocol that is allowed for this rule. The protocol type is required # The IP protocol that is allowed for this rule. The protocol type is required
# when creating a firewall. This value can either be one of the following well # when creating a firewall rule. This value can either be one of the following
# known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP protocol # well known protocol strings (tcp, udp, icmp, esp, ah, sctp), or the IP
# number. # protocol number.
# Corresponds to the JSON property `IPProtocol` # Corresponds to the JSON property `IPProtocol`
# @return [String] # @return [String]
attr_accessor :ip_protocol attr_accessor :ip_protocol
@ -1997,7 +2007,7 @@ module Google
end end
end end
# Contains a list of Firewall resources. # Contains a list of firewalls.
class FirewallList class FirewallList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2163,7 +2173,8 @@ module Google
# @return [Hash<String,Google::Apis::ComputeV1::ForwardingRulesScopedList>] # @return [Hash<String,Google::Apis::ComputeV1::ForwardingRulesScopedList>]
attr_accessor :items attr_accessor :items
# Type of resource. # [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList
# for lists of forwarding rules.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -2334,7 +2345,12 @@ module Google
end end
end end
# # A full or valid partial URL to a health check. For example, the following are
# valid URLs:
# - https://www.googleapis.com/compute/beta/projects/project-id/global/
# httpHealthChecks/health-check
# - projects/project-id/global/httpHealthChecks/health-check
# - global/httpHealthChecks/health-check
class HealthCheckReference class HealthCheckReference
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2466,7 +2482,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# Type of the resource. # [Output Only] Type of the resource. Always compute#httpHealthCheck for HTTP
# health checks.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -2486,7 +2503,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :port attr_accessor :port
# The request path of the HTTP health check request. The default value is "/". # The request path of the HTTP health check request. The default value is /.
# Corresponds to the JSON property `requestPath` # Corresponds to the JSON property `requestPath`
# @return [String] # @return [String]
attr_accessor :request_path attr_accessor :request_path
@ -2888,7 +2905,7 @@ module Google
end end
end end
# Contains a list of Image resources. # Contains a list of images.
class ImageList class ImageList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -2982,7 +2999,7 @@ module Google
attr_accessor :kind attr_accessor :kind
# Full or partial URL of the machine type resource to use for this instance, in # Full or partial URL of the machine type resource to use for this instance, in
# the format: zones/zone/machineTypes/ machine-type. This is provided by the # the format: zones/zone/machineTypes/machine-type. This is provided by the
# client when the instance is created. For example, the following is a valid # client when the instance is created. For example, the following is a valid
# partial url to a predefined machine type: # partial url to a predefined machine type:
# zones/us-central1-f/machineTypes/n1-standard-1 # zones/us-central1-f/machineTypes/n1-standard-1
@ -3185,8 +3202,7 @@ module Google
# @return [Array<Google::Apis::ComputeV1::NamedPort>] # @return [Array<Google::Apis::ComputeV1::NamedPort>]
attr_accessor :named_ports attr_accessor :named_ports
# [Output Only] The URL of the network to which all instances in the instance # The URL of the network to which all instances in the instance group belong.
# group belong.
# Corresponds to the JSON property `network` # Corresponds to the JSON property `network`
# @return [String] # @return [String]
attr_accessor :network attr_accessor :network
@ -3201,8 +3217,7 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :size attr_accessor :size
# [Output Only] The URL of the subnetwork to which all instances in the instance # The URL of the subnetwork to which all instances in the instance group belong.
# group belong.
# Corresponds to the JSON property `subnetwork` # Corresponds to the JSON property `subnetwork`
# @return [String] # @return [String]
attr_accessor :subnetwork attr_accessor :subnetwork
@ -3331,8 +3346,7 @@ module Google
end end
end end
# InstanceGroupManagers #
# Next available tag: 20
class InstanceGroupManager class InstanceGroupManager
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4074,7 +4088,7 @@ module Google
end end
end end
# Contains a list of instance resources. # Contains a list of instances.
class InstanceList class InstanceList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4084,7 +4098,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# [Output Only] A list of Instance resources. # [Output Only] A list of instances.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::Instance>] # @return [Array<Google::Apis::ComputeV1::Instance>]
attr_accessor :items attr_accessor :items
@ -4127,7 +4141,7 @@ module Google
class MoveInstanceRequest class MoveInstanceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The URL of the destination zone to move the instance to. This can be a full or # The URL of the destination zone to move the instance. This can be a full or
# partial URL. For example, the following are all valid URLs to a zone: # partial URL. For example, the following are all valid URLs to a zone:
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone # - https://www.googleapis.com/compute/v1/projects/project/zones/zone
# - projects/project/zones/zone # - projects/project/zones/zone
@ -4720,7 +4734,7 @@ module Google
end end
end end
# Contains a list of Machine Type resources. # Contains a list of machine types.
class MachineTypeList class MachineTypeList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5089,7 +5103,8 @@ module Google
end end
end end
# A network resource. # Represents a Network resource. Read Networks and Firewalls for more
# information.
class Network class Network
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5242,7 +5257,7 @@ module Google
end end
end end
# Contains a list of Network resources. # Contains a list of networks.
class NetworkList class NetworkList
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -5295,7 +5310,7 @@ module Google
class Operation class Operation
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Output Only] A unique client ID generated by the server. # [Output Only] Reserved for future use.
# Corresponds to the JSON property `clientOperationId` # Corresponds to the JSON property `clientOperationId`
# @return [String] # @return [String]
attr_accessor :client_operation_id attr_accessor :client_operation_id
@ -5359,7 +5374,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
# [Output Only] The type of operation, which can be insert, update, or delete. # [Output Only] The type of operation, such as insert, update, or delete, and so
# on.
# Corresponds to the JSON property `operationType` # Corresponds to the JSON property `operationType`
# @return [String] # @return [String]
attr_accessor :operation_type attr_accessor :operation_type
@ -5372,8 +5388,8 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :progress attr_accessor :progress
# [Output Only] URL of the region where the operation resides. Only available # [Output Only] The URL of the region where the operation resides. Only
# when performing regional operations. # available when performing regional operations.
# Corresponds to the JSON property `region` # Corresponds to the JSON property `region`
# @return [String] # @return [String]
attr_accessor :region attr_accessor :region
@ -5407,7 +5423,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :target_id attr_accessor :target_id
# [Output Only] The URL of the resource that the operation is modifying. # [Output Only] The URL of the resource that the operation modifies.
# Corresponds to the JSON property `targetLink` # Corresponds to the JSON property `targetLink`
# @return [String] # @return [String]
attr_accessor :target_link attr_accessor :target_link
@ -5423,8 +5439,8 @@ module Google
# @return [Array<Google::Apis::ComputeV1::Operation::Warning>] # @return [Array<Google::Apis::ComputeV1::Operation::Warning>]
attr_accessor :warnings attr_accessor :warnings
# [Output Only] URL of the zone where the operation resides. Only available when # [Output Only] The URL of the zone where the operation resides. Only available
# performing per-zone operations. # when performing per-zone operations.
# Corresponds to the JSON property `zone` # Corresponds to the JSON property `zone`
# @return [String] # @return [String]
attr_accessor :zone attr_accessor :zone
@ -5636,7 +5652,7 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# [Output Only] The Operation resources. # [Output Only] A list of Operation resources.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeV1::Operation>] # @return [Array<Google::Apis::ComputeV1::Operation>]
attr_accessor :items attr_accessor :items
@ -5842,7 +5858,7 @@ module Google
end end
end end
# A Project resource. Projects can only be created in the Google Developers # A Project resource. Projects can only be created in the Google Cloud Platform
# Console. Unless marked otherwise, values can only be modified in the console. # Console. Unless marked otherwise, values can only be modified in the console.
class Project class Project
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -6093,19 +6109,20 @@ module Google
end end
end end
# The route resource. A Route is a rule that specifies how certain packets # Represents a Routes resource. A route specifies how certain packets should be
# should be handled by the virtual network. Routes are associated with instances # handled by the network. Routes are associated with instances by tags and the
# by tags and the set of Routes for a particular instance is called its routing # set of routes for a particular instance is called its routing table.
# table. For each packet leaving a instance, the system searches that instance's # For each packet leaving a instance, the system searches that instance's
# routing table for a single best matching Route. Routes match packets by # routing table for a single best matching route. Routes match packets by
# destination IP address, preferring smaller or more specific ranges over larger # destination IP address, preferring smaller or more specific ranges over larger
# ones. If there is a tie, the system selects the Route with the smallest # ones. If there is a tie, the system selects the route with the smallest
# priority value. If there is still a tie, it uses the layer three and four # priority value. If there is still a tie, it uses the layer three and four
# packet headers to select just one of the remaining matching Routes. The packet # packet headers to select just one of the remaining matching Routes. The packet
# is then forwarded as specified by the nextHop field of the winning Route -- # is then forwarded as specified by the nextHop field of the winning route -
# either to another instance destination, a instance gateway or a Google Compute # either to another instance destination, a instance gateway or a Google Compute
# Engien-operated gateway. Packets that do not match any Route in the sending # Engine-operated gateway.
# instance's routing table are dropped. # Packets that do not match any route in the sending instance's routing table
# are dropped.
class Route class Route
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -6356,7 +6373,7 @@ module Google
# Defines the maintenance behavior for this instance. For standard instances, # Defines the maintenance behavior for this instance. For standard instances,
# the default behavior is MIGRATE. For preemptible instances, the default and # the default behavior is MIGRATE. For preemptible instances, the default and
# only possible behavior is TERMINATE. For more information, see Setting # only possible behavior is TERMINATE. For more information, see Setting
# maintenance behavior. # Instance Scheduling Options.
# Corresponds to the JSON property `onHostMaintenance` # Corresponds to the JSON property `onHostMaintenance`
# @return [String] # @return [String]
attr_accessor :on_host_maintenance attr_accessor :on_host_maintenance
@ -6468,7 +6485,9 @@ module Google
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
# Public visible licenses. # [Output Only] A list of public visible licenses that apply to this snapshot.
# This can be because the original image had licenses attached (such as a
# Windows image).
# Corresponds to the JSON property `licenses` # Corresponds to the JSON property `licenses`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :licenses attr_accessor :licenses
@ -6500,7 +6519,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :source_disk_id attr_accessor :source_disk_id
# [Output Only] The status of the snapshot. # [Output Only] The status of the snapshot. This can be CREATING, DELETING,
# FAILED, READY, or UPLOADING.
# Corresponds to the JSON property `status` # Corresponds to the JSON property `status`
# @return [String] # @return [String]
attr_accessor :status attr_accessor :status
@ -6513,7 +6533,9 @@ module Google
attr_accessor :storage_bytes attr_accessor :storage_bytes
# [Output Only] An indicator whether storageBytes is in a stable state or it is # [Output Only] An indicator whether storageBytes is in a stable state or it is
# being adjusted as a result of shared storage reallocation. # being adjusted as a result of shared storage reallocation. This status can
# either be UPDATING, meaning the size of the snapshot is being updated, or
# UP_TO_DATE, meaning the size of the snapshot is up-to-date.
# Corresponds to the JSON property `storageBytesStatus` # Corresponds to the JSON property `storageBytesStatus`
# @return [String] # @return [String]
attr_accessor :storage_bytes_status attr_accessor :storage_bytes_status
@ -7092,7 +7114,7 @@ module Google
# @return [Array<Google::Apis::ComputeV1::TargetHttpProxy>] # @return [Array<Google::Apis::ComputeV1::TargetHttpProxy>]
attr_accessor :items attr_accessor :items
# Type of resource. Always compute#targetHttpProxyList for lists of Target HTTP # Type of resource. Always compute#targetHttpProxyList for lists of target HTTP
# proxies. # proxies.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
@ -7131,7 +7153,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# New set of URLs to SslCertificate resources to associate with this # New set of URLs to SslCertificate resources to associate with this
# TargetHttpProxy. Currently exactly one ssl certificate must be specified. # TargetHttpProxy. Currently exactly one SSL certificate must be specified.
# Corresponds to the JSON property `sslCertificates` # Corresponds to the JSON property `sslCertificates`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ssl_certificates attr_accessor :ssl_certificates
@ -7189,14 +7211,18 @@ module Google
attr_accessor :self_link attr_accessor :self_link
# URLs to SslCertificate resources that are used to authenticate connections # URLs to SslCertificate resources that are used to authenticate connections
# between users and the load balancer. Currently exactly one SSL certificate # between users and the load balancer. Currently, exactly one SSL certificate
# must be specified. # must be specified.
# Corresponds to the JSON property `sslCertificates` # Corresponds to the JSON property `sslCertificates`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :ssl_certificates attr_accessor :ssl_certificates
# URL to the UrlMap resource that defines the mapping from URL to the # A fully-qualified or valid partial URL to the UrlMap resource that defines the
# BackendService. # mapping from URL to the BackendService. For example, the following are all
# valid URLs for specifying a URL map:
# - https://www.googleapis.compute/v1/projects/project/global/urlMaps/url-map
# - projects/project/global/urlMaps/url-map
# - global/urlMaps/url-map
# Corresponds to the JSON property `urlMap` # Corresponds to the JSON property `urlMap`
# @return [String] # @return [String]
attr_accessor :url_map attr_accessor :url_map
@ -7288,7 +7314,14 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# The URL to the instance that terminates the relevant traffic. # A URL to the virtual machine instance that handles traffic for this target
# instance. When creating a target instance, you can provide the fully-qualified
# URL or a valid partial URL to the desired virtual machine. For example, the
# following are all valid URLs:
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
# instance
# - projects/project/zones/zone/instances/instance
# - zones/zone/instances/instance
# Corresponds to the JSON property `instance` # Corresponds to the JSON property `instance`
# @return [String] # @return [String]
attr_accessor :instance attr_accessor :instance
@ -7530,7 +7563,7 @@ module Google
end end
# A TargetPool resource. This resource defines a pool of instances, associated # A TargetPool resource. This resource defines a pool of instances, associated
# HttpHealthCheck resources, and the fallback TargetPool. # HttpHealthCheck resources, and the fallback target pool.
class TargetPool class TargetPool
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -7589,8 +7622,8 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# A list of resource URLs to the member virtual machines serving this pool. They # A list of resource URLs to the virtual machine instances serving this pool.
# must live in zones contained in the same region as this pool. # They must live in zones contained in the same region as this pool.
# Corresponds to the JSON property `instances` # Corresponds to the JSON property `instances`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :instances attr_accessor :instances
@ -7660,12 +7693,13 @@ module Google
# @return [String] # @return [String]
attr_accessor :id attr_accessor :id
# A map of scoped target pool lists. # [Output Only] A map of scoped target pool lists.
# Corresponds to the JSON property `items` # Corresponds to the JSON property `items`
# @return [Hash<String,Google::Apis::ComputeV1::TargetPoolsScopedList>] # @return [Hash<String,Google::Apis::ComputeV1::TargetPoolsScopedList>]
attr_accessor :items attr_accessor :items
# Type of resource. # [Output Only] Type of resource. Always compute#targetPoolAggregatedList for
# aggregated lists of target pools.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -7707,7 +7741,8 @@ module Google
# @return [Array<Google::Apis::ComputeV1::HealthStatus>] # @return [Array<Google::Apis::ComputeV1::HealthStatus>]
attr_accessor :health_status attr_accessor :health_status
# Type of resource. # [Output Only] Type of resource. Always compute#targetPoolInstanceHealth when
# checking the health of an instance.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -7737,7 +7772,8 @@ module Google
# @return [Array<Google::Apis::ComputeV1::TargetPool>] # @return [Array<Google::Apis::ComputeV1::TargetPool>]
attr_accessor :items attr_accessor :items
# Type of resource. # [Output Only] Type of resource. Always compute#targetPoolList for lists of
# target pools.
# Corresponds to the JSON property `kind` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind
@ -7774,7 +7810,7 @@ module Google
class AddTargetPoolsHealthCheckRequest class AddTargetPoolsHealthCheckRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Health check URLs to be added to targetPool. # A list of HttpHealthCheck resources to add to the target pool.
# Corresponds to the JSON property `healthChecks` # Corresponds to the JSON property `healthChecks`
# @return [Array<Google::Apis::ComputeV1::HealthCheckReference>] # @return [Array<Google::Apis::ComputeV1::HealthCheckReference>]
attr_accessor :health_checks attr_accessor :health_checks
@ -7793,7 +7829,12 @@ module Google
class AddTargetPoolsInstanceRequest class AddTargetPoolsInstanceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# URLs of the instances to be added to targetPool. # A full or partial URL to an instance to add to this target pool. This can be a
# full or partial URL. For example, the following are valid URLs:
# - https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/
# instances/instance-name
# - projects/project-id/zones/zone/instances/instance-name
# - zones/zone/instances/instance-name
# Corresponds to the JSON property `instances` # Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::ComputeV1::InstanceReference>] # @return [Array<Google::Apis::ComputeV1::InstanceReference>]
attr_accessor :instances attr_accessor :instances
@ -7812,7 +7853,12 @@ module Google
class RemoveTargetPoolsHealthCheckRequest class RemoveTargetPoolsHealthCheckRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Health check URLs to be removed from targetPool. # Health check URL to be removed. This can be a full or valid partial URL. For
# example, the following are valid URLs:
# - https://www.googleapis.com/compute/beta/projects/project/global/
# httpHealthChecks/health-check
# - projects/project/global/httpHealthChecks/health-check
# - global/httpHealthChecks/health-check
# Corresponds to the JSON property `healthChecks` # Corresponds to the JSON property `healthChecks`
# @return [Array<Google::Apis::ComputeV1::HealthCheckReference>] # @return [Array<Google::Apis::ComputeV1::HealthCheckReference>]
attr_accessor :health_checks attr_accessor :health_checks
@ -7831,7 +7877,7 @@ module Google
class RemoveTargetPoolsInstanceRequest class RemoveTargetPoolsInstanceRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# URLs of the instances to be removed from targetPool. # URLs of the instances to be removed from target pool.
# Corresponds to the JSON property `instances` # Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::ComputeV1::InstanceReference>] # @return [Array<Google::Apis::ComputeV1::InstanceReference>]
attr_accessor :instances attr_accessor :instances
@ -7956,7 +8002,7 @@ module Google
end end
end end
# # Represents a Target VPN gateway resource.
class TargetVpnGateway class TargetVpnGateway
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -8022,7 +8068,7 @@ module Google
attr_accessor :status attr_accessor :status
# [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created # [Output Only] A list of URLs to VpnTunnel resources. VpnTunnels are created
# using compute.vpntunnels.insert and associated to a VPN gateway. # using compute.vpntunnels.insert method and associated to a VPN gateway.
# Corresponds to the JSON property `tunnels` # Corresponds to the JSON property `tunnels`
# @return [Array<String>] # @return [Array<String>]
attr_accessor :tunnels attr_accessor :tunnels

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 # @see https://developers.google.com/shopping-content
module ContentV2 module ContentV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160115' REVISION = '20160204'
# Manage your product listings and accounts for Google Shopping # Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content' AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -2576,6 +2576,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :placed_date attr_accessor :placed_date
# The details of the merchant provided promotions applied to the order. More
# details about the program are here.
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2::OrderPromotion>]
attr_accessor :promotions
# Refunds for the order. # Refunds for the order.
# Corresponds to the JSON property `refunds` # Corresponds to the JSON property `refunds`
# @return [Array<Google::Apis::ContentV2::OrderRefund>] # @return [Array<Google::Apis::ContentV2::OrderRefund>]
@ -2624,6 +2630,7 @@ module Google
@payment_method = args[:payment_method] if args.key?(:payment_method) @payment_method = args[:payment_method] if args.key?(:payment_method)
@payment_status = args[:payment_status] if args.key?(:payment_status) @payment_status = args[:payment_status] if args.key?(:payment_status)
@placed_date = args[:placed_date] if args.key?(:placed_date) @placed_date = args[:placed_date] if args.key?(:placed_date)
@promotions = args[:promotions] if args.key?(:promotions)
@refunds = args[:refunds] if args.key?(:refunds) @refunds = args[:refunds] if args.key?(:refunds)
@shipments = args[:shipments] if args.key?(:shipments) @shipments = args[:shipments] if args.key?(:shipments)
@shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
@ -3183,6 +3190,114 @@ module Google
end end
end end
#
class OrderPromotion
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `benefits`
# @return [Array<Google::Apis::ContentV2::OrderPromotionBenefit>]
attr_accessor :benefits
# The date and time frame when the promotion is active and ready for validation
# review. Note that the promotion live time may be delayed for a few hours due
# to the validation review.
# Start date and end date are separated by a forward slash (/). The start date
# is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
# of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
# expression of the time zone for the sale. The end date is in the same format.
# Corresponds to the JSON property `effectiveDates`
# @return [String]
attr_accessor :effective_dates
# Optional. The text code that corresponds to the promotion when applied on the
# retailer?s website.
# Corresponds to the JSON property `genericRedemptionCode`
# @return [String]
attr_accessor :generic_redemption_code
# The unique ID of the promotion.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The full title of the promotion.
# Corresponds to the JSON property `longTitle`
# @return [String]
attr_accessor :long_title
# Whether the promotion is applicable to all products or only specific products.
# Corresponds to the JSON property `productApplicability`
# @return [String]
attr_accessor :product_applicability
# Indicates that the promotion is valid online.
# Corresponds to the JSON property `redemptionChannel`
# @return [String]
attr_accessor :redemption_channel
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@benefits = args[:benefits] if args.key?(:benefits)
@effective_dates = args[:effective_dates] if args.key?(:effective_dates)
@generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
@id = args[:id] if args.key?(:id)
@long_title = args[:long_title] if args.key?(:long_title)
@product_applicability = args[:product_applicability] if args.key?(:product_applicability)
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
end
end
#
class OrderPromotionBenefit
include Google::Apis::Core::Hashable
# The discount in the order price when the promotion is applied.
# Corresponds to the JSON property `discount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :discount
# The OfferId(s) that were purchased in this order and map to this specific
# benefit of the promotion.
# Corresponds to the JSON property `offerIds`
# @return [Array<String>]
attr_accessor :offer_ids
# Further describes the benefit of the promotion. Note that we will expand on
# this enumeration as we support new promotion sub-types.
# Corresponds to the JSON property `subType`
# @return [String]
attr_accessor :sub_type
# The impact on tax when the promotion is applied.
# Corresponds to the JSON property `taxImpact`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :tax_impact
# Describes whether the promotion applies to products (e.g. 20% off) or to
# shipping (e.g. Free Shipping).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@discount = args[:discount] if args.key?(:discount)
@offer_ids = args[:offer_ids] if args.key?(:offer_ids)
@sub_type = args[:sub_type] if args.key?(:sub_type)
@tax_impact = args[:tax_impact] if args.key?(:tax_impact)
@type = args[:type] if args.key?(:type)
end
end
# #
class OrderRefund class OrderRefund
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -4697,6 +4812,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :product_type attr_accessor :product_type
# The unique ID of a promotion.
# Corresponds to the JSON property `promotionIds`
# @return [Array<String>]
attr_accessor :promotion_ids
# Advertised sale price of the item. # Advertised sale price of the item.
# Corresponds to the JSON property `salePrice` # Corresponds to the JSON property `salePrice`
# @return [Google::Apis::ContentV2::Price] # @return [Google::Apis::ContentV2::Price]
@ -4850,6 +4970,7 @@ module Google
@pattern = args[:pattern] if args.key?(:pattern) @pattern = args[:pattern] if args.key?(:pattern)
@price = args[:price] if args.key?(:price) @price = args[:price] if args.key?(:price)
@product_type = args[:product_type] if args.key?(:product_type) @product_type = args[:product_type] if args.key?(:product_type)
@promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids)
@sale_price = args[:sale_price] if args.key?(:sale_price) @sale_price = args[:sale_price] if args.key?(:sale_price)
@sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date) @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
@sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity) @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
@ -5711,6 +5832,12 @@ module Google
# @return [String] # @return [String]
attr_accessor :predefined_delivery_address attr_accessor :predefined_delivery_address
# The details of the merchant provided promotions applied to the order. More
# details about the program are here.
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2::OrderPromotion>]
attr_accessor :promotions
# The total cost of shipping for all items. # The total cost of shipping for all items.
# Corresponds to the JSON property `shippingCost` # Corresponds to the JSON property `shippingCost`
# @return [Google::Apis::ContentV2::Price] # @return [Google::Apis::ContentV2::Price]
@ -5737,6 +5864,7 @@ module Google
@line_items = args[:line_items] if args.key?(:line_items) @line_items = args[:line_items] if args.key?(:line_items)
@payment_method = args[:payment_method] if args.key?(:payment_method) @payment_method = args[:payment_method] if args.key?(:payment_method)
@predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address) @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
@promotions = args[:promotions] if args.key?(:promotions)
@shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax) @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
@shipping_option = args[:shipping_option] if args.key?(:shipping_option) @shipping_option = args[:shipping_option] if args.key?(:shipping_option)

View File

@ -338,6 +338,14 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
end end
class OrderPromotion
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class OrderPromotionBenefit
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class OrderRefund class OrderRefund
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
end end
@ -1352,6 +1360,8 @@ module Google
property :payment_status, as: 'paymentStatus' property :payment_status, as: 'paymentStatus'
property :placed_date, as: 'placedDate' property :placed_date, as: 'placedDate'
collection :promotions, as: 'promotions', class: Google::Apis::ContentV2::OrderPromotion, decorator: Google::Apis::ContentV2::OrderPromotion::Representation
collection :refunds, as: 'refunds', class: Google::Apis::ContentV2::OrderRefund, decorator: Google::Apis::ContentV2::OrderRefund::Representation collection :refunds, as: 'refunds', class: Google::Apis::ContentV2::OrderRefund, decorator: Google::Apis::ContentV2::OrderRefund::Representation
collection :shipments, as: 'shipments', class: Google::Apis::ContentV2::OrderShipment, decorator: Google::Apis::ContentV2::OrderShipment::Representation collection :shipments, as: 'shipments', class: Google::Apis::ContentV2::OrderShipment, decorator: Google::Apis::ContentV2::OrderShipment::Representation
@ -1508,6 +1518,33 @@ module Google
end end
end end
class OrderPromotion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :benefits, as: 'benefits', class: Google::Apis::ContentV2::OrderPromotionBenefit, decorator: Google::Apis::ContentV2::OrderPromotionBenefit::Representation
property :effective_dates, as: 'effectiveDates'
property :generic_redemption_code, as: 'genericRedemptionCode'
property :id, as: 'id'
property :long_title, as: 'longTitle'
property :product_applicability, as: 'productApplicability'
property :redemption_channel, as: 'redemptionChannel'
end
end
class OrderPromotionBenefit
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :discount, as: 'discount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
collection :offer_ids, as: 'offerIds'
property :sub_type, as: 'subType'
property :tax_impact, as: 'taxImpact', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :type, as: 'type'
end
end
class OrderRefund class OrderRefund
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1935,6 +1972,7 @@ module Google
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :product_type, as: 'productType' property :product_type, as: 'productType'
collection :promotion_ids, as: 'promotionIds'
property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :sale_price_effective_date, as: 'salePriceEffectiveDate' property :sale_price_effective_date, as: 'salePriceEffectiveDate'
@ -2212,6 +2250,8 @@ module Google
property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::TestOrderPaymentMethod, decorator: Google::Apis::ContentV2::TestOrderPaymentMethod::Representation property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2::TestOrderPaymentMethod, decorator: Google::Apis::ContentV2::TestOrderPaymentMethod::Representation
property :predefined_delivery_address, as: 'predefinedDeliveryAddress' property :predefined_delivery_address, as: 'predefinedDeliveryAddress'
collection :promotions, as: 'promotions', class: Google::Apis::ContentV2::OrderPromotion, decorator: Google::Apis::ContentV2::OrderPromotion::Representation
property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation property :shipping_cost, as: 'shippingCost', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation property :shipping_cost_tax, as: 'shippingCostTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation

View File

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

View File

@ -73,6 +73,15 @@ module Google
# @return [String] # @return [String]
attr_accessor :insert_time attr_accessor :insert_time
# Map of labels; provided by the client when the resource is created or updated.
# Specifically: 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])?)?
# Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>]
attr_accessor :labels
# [Output Only] URL of the manifest representing the last manifest that was # [Output Only] URL of the manifest representing the last manifest that was
# successfully deployed. # successfully deployed.
# Corresponds to the JSON property `manifest` # Corresponds to the JSON property `manifest`
@ -114,6 +123,7 @@ module Google
@fingerprint = args[:fingerprint] if args.key?(:fingerprint) @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@id = args[:id] if args.key?(:id) @id = args[:id] if args.key?(:id)
@insert_time = args[:insert_time] if args.key?(:insert_time) @insert_time = args[:insert_time] if args.key?(:insert_time)
@labels = args[:labels] if args.key?(:labels)
@manifest = args[:manifest] if args.key?(:manifest) @manifest = args[:manifest] if args.key?(:manifest)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@operation = args[:operation] if args.key?(:operation) @operation = args[:operation] if args.key?(:operation)
@ -122,10 +132,44 @@ module Google
end end
end end
#
class DeploymentLabelEntry
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
#
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
# #
class DeploymentUpdate class DeploymentUpdate
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# [Output Only] Map of labels; provided by the client when the resource is
# created or updated. Specifically: 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])?)?
# Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::DeploymentmanagerV2::DeploymentUpdateLabelEntry>]
attr_accessor :labels
# [Output Only] URL of the manifest representing the update configuration of # [Output Only] URL of the manifest representing the update configuration of
# this deployment. # this deployment.
# Corresponds to the JSON property `manifest` # Corresponds to the JSON property `manifest`
@ -138,10 +182,36 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@labels = args[:labels] if args.key?(:labels)
@manifest = args[:manifest] if args.key?(:manifest) @manifest = args[:manifest] if args.key?(:manifest)
end end
end end
#
class DeploymentUpdateLabelEntry
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
#
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
# #
class DeploymentsCancelPreviewRequest class DeploymentsCancelPreviewRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -30,10 +30,18 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
end end
class DeploymentLabelEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DeploymentUpdate class DeploymentUpdate
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
end end
class DeploymentUpdateLabelEntry
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DeploymentsCancelPreviewRequest class DeploymentsCancelPreviewRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
end end
@ -144,6 +152,8 @@ module Google
property :fingerprint, :base64 => true, as: 'fingerprint' property :fingerprint, :base64 => true, as: 'fingerprint'
property :id, as: 'id' property :id, as: 'id'
property :insert_time, as: 'insertTime' property :insert_time, as: 'insertTime'
collection :labels, as: 'labels', class: Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry, decorator: Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry::Representation
property :manifest, as: 'manifest' property :manifest, as: 'manifest'
property :name, as: 'name' property :name, as: 'name'
property :operation, as: 'operation', class: Google::Apis::DeploymentmanagerV2::Operation, decorator: Google::Apis::DeploymentmanagerV2::Operation::Representation property :operation, as: 'operation', class: Google::Apis::DeploymentmanagerV2::Operation, decorator: Google::Apis::DeploymentmanagerV2::Operation::Representation
@ -155,13 +165,31 @@ module Google
end end
end end
class DeploymentLabelEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
class DeploymentUpdate class DeploymentUpdate
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
collection :labels, as: 'labels', class: Google::Apis::DeploymentmanagerV2::DeploymentUpdateLabelEntry, decorator: Google::Apis::DeploymentmanagerV2::DeploymentUpdateLabelEntry::Representation
property :manifest, as: 'manifest' property :manifest, as: 'manifest'
end end
end end
class DeploymentUpdateLabelEntry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
class DeploymentsCancelPreviewRequest class DeploymentsCancelPreviewRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/doubleclick-advertisers/reporting/ # @see https://developers.google.com/doubleclick-advertisers/reporting/
module DfareportingV2_3 module DfareportingV2_3
VERSION = 'V2_3' VERSION = 'V2_3'
REVISION = '20151109' REVISION = '20160128'
# View and manage DoubleClick for Advertisers reports # View and manage DoubleClick for Advertisers reports
AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting' AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting'

View File

@ -112,6 +112,14 @@ module Google
# - "37" for PLN # - "37" for PLN
# - "39" for INR # - "39" for INR
# - "40" for THB # - "40" for THB
# - "41" for IDR
# - "42" for CZK
# - "43" for RON
# - "44" for HUF
# - "45" for RUB
# - "46" for AED
# - "47" for BGN
# - "48" for HRK
# Corresponds to the JSON property `currencyId` # Corresponds to the JSON property `currencyId`
# @return [String] # @return [String]
attr_accessor :currency_id attr_accessor :currency_id
@ -4384,6 +4392,14 @@ module Google
# - "37" for PLN # - "37" for PLN
# - "39" for INR # - "39" for INR
# - "40" for THB # - "40" for THB
# - "41" for IDR
# - "42" for CZK
# - "43" for RON
# - "44" for HUF
# - "45" for RUB
# - "46" for AED
# - "47" for BGN
# - "48" for HRK
# Corresponds to the JSON property `currencyId` # Corresponds to the JSON property `currencyId`
# @return [String] # @return [String]
attr_accessor :currency_id attr_accessor :currency_id

View File

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

View File

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

View File

@ -896,6 +896,50 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Exports a Google Doc to the requested MIME type and returns the exported
# content.
# @param [String] file_id
# The ID of the file.
# @param [String] mime_type
# The MIME type of the format requested for this export.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [IO, String] download_dest
# IO stream or filename to receive content download
# @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 export_file(file_id, mime_type, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
if download_dest.nil?
command = make_simple_command(:get, 'files/{fileId}/export', options)
else
command = make_download_command(:get, 'files/{fileId}/export', options)
command.download_dest = download_dest
end
command.params['fileId'] = file_id unless file_id.nil?
command.query['mimeType'] = mime_type unless mime_type.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Generates a set of file IDs which can be provided in insert requests. # Generates a set of file IDs which can be provided in insert requests.
# @param [Fixnum] max_results # @param [Fixnum] max_results
# Maximum number of IDs to return. # Maximum number of IDs to return.

View File

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

View File

@ -642,7 +642,8 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end end
# Exports a Google Doc to the requested MIME type. # Exports a Google Doc to the requested MIME type and returns the exported
# content.
# @param [String] file_id # @param [String] file_id
# The ID of the file. # The ID of the file.
# @param [String] mime_type # @param [String] mime_type

View File

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

View File

@ -25,12 +25,12 @@ module Google
# @see https://developers.google.com/games/services # @see https://developers.google.com/games/services
module GamesManagementV1management module GamesManagementV1management
VERSION = 'V1management' VERSION = 'V1management'
REVISION = '20160120' REVISION = '20160203'
# Share your Google+ profile information and view and manage your game activity # Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games' AUTH_GAMES = 'https://www.googleapis.com/auth/games'
# Know your basic profile info and list of people in your circles. # Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
end end
end end

View File

@ -351,6 +351,14 @@ module Google
# @return [Google::Apis::GamesManagementV1management::Player::Name] # @return [Google::Apis::GamesManagementV1management::Player::Name]
attr_accessor :name attr_accessor :name
# The player ID that was used for this player the first time they signed into
# the game in question. This is only populated for calls to player.get for the
# requesting player, only if the player ID has subsequently changed, and only to
# clients that support remapping player IDs.
# Corresponds to the JSON property `originalPlayerId`
# @return [String]
attr_accessor :original_player_id
# The ID of the player. # The ID of the player.
# Corresponds to the JSON property `playerId` # Corresponds to the JSON property `playerId`
# @return [String] # @return [String]
@ -375,6 +383,7 @@ module Google
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@last_played_with = args[:last_played_with] if args.key?(:last_played_with) @last_played_with = args[:last_played_with] if args.key?(:last_played_with)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@original_player_id = args[:original_player_id] if args.key?(:original_player_id)
@player_id = args[:player_id] if args.key?(:player_id) @player_id = args[:player_id] if args.key?(:player_id)
@title = args[:title] if args.key?(:title) @title = args[:title] if args.key?(:title)
end end

View File

@ -180,6 +180,7 @@ module Google
property :name, as: 'name', class: Google::Apis::GamesManagementV1management::Player::Name, decorator: Google::Apis::GamesManagementV1management::Player::Name::Representation property :name, as: 'name', class: Google::Apis::GamesManagementV1management::Player::Name, decorator: Google::Apis::GamesManagementV1management::Player::Name::Representation
property :original_player_id, as: 'originalPlayerId'
property :player_id, as: 'playerId' property :player_id, as: 'playerId'
property :title, as: 'title' property :title, as: 'title'
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/games/services/ # @see https://developers.google.com/games/services/
module GamesV1 module GamesV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160120' REVISION = '20160203'
# View and manage its own configuration data in your Google Drive # View and manage its own configuration data in your Google Drive
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
@ -33,7 +33,7 @@ module Google
# Share your Google+ profile information and view and manage your game activity # Share your Google+ profile information and view and manage your game activity
AUTH_GAMES = 'https://www.googleapis.com/auth/games' AUTH_GAMES = 'https://www.googleapis.com/auth/games'
# Know your basic profile info and list of people in your circles. # Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
end end
end end

View File

@ -2018,6 +2018,14 @@ module Google
# @return [Google::Apis::GamesV1::Player::Name] # @return [Google::Apis::GamesV1::Player::Name]
attr_accessor :name attr_accessor :name
# The player ID that was used for this player the first time they signed into
# the game in question. This is only populated for calls to player.get for the
# requesting player, only if the player ID has subsequently changed, and only to
# clients that support remapping player IDs.
# Corresponds to the JSON property `originalPlayerId`
# @return [String]
attr_accessor :original_player_id
# The ID of the player. # The ID of the player.
# Corresponds to the JSON property `playerId` # Corresponds to the JSON property `playerId`
# @return [String] # @return [String]
@ -2042,6 +2050,7 @@ module Google
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@last_played_with = args[:last_played_with] if args.key?(:last_played_with) @last_played_with = args[:last_played_with] if args.key?(:last_played_with)
@name = args[:name] if args.key?(:name) @name = args[:name] if args.key?(:name)
@original_player_id = args[:original_player_id] if args.key?(:original_player_id)
@player_id = args[:player_id] if args.key?(:player_id) @player_id = args[:player_id] if args.key?(:player_id)
@title = args[:title] if args.key?(:title) @title = args[:title] if args.key?(:title)
end end

View File

@ -934,6 +934,7 @@ module Google
property :name, as: 'name', class: Google::Apis::GamesV1::Player::Name, decorator: Google::Apis::GamesV1::Player::Name::Representation property :name, as: 'name', class: Google::Apis::GamesV1::Player::Name, decorator: Google::Apis::GamesV1::Player::Name::Representation
property :original_player_id, as: 'originalPlayerId'
property :player_id, as: 'playerId' property :player_id, as: 'playerId'
property :title, as: 'title' property :title, as: 'title'
end end

View File

@ -28,7 +28,7 @@ module Google
# @see # @see
module GenomicsV1 module GenomicsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160124' REVISION = '20160209'
# View and manage your data in Google BigQuery # View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -171,6 +171,11 @@ module Google
# @return [Array<Google::Apis::GenomicsV1::Binding>] # @return [Array<Google::Apis::GenomicsV1::Binding>]
attr_accessor :bindings attr_accessor :bindings
#
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::GenomicsV1::Rule>]
attr_accessor :rules
# `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 # 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 # suggested that systems make use of the `etag` in the read-modify-write cycle
@ -191,6 +196,7 @@ module Google
def update!(**args) def update!(**args)
@version = args[:version] if args.key?(:version) @version = args[:version] if args.key?(:version)
@bindings = args[:bindings] if args.key?(:bindings) @bindings = args[:bindings] if args.key?(:bindings)
@rules = args[:rules] if args.key?(:rules)
@etag = args[:etag] if args.key?(:etag) @etag = args[:etag] if args.key?(:etag)
end end
end end
@ -232,6 +238,209 @@ module Google
end end
end end
# A rule to be applied in a Policy.
class Rule
include Google::Apis::Core::Hashable
# Human-readable description of the rule.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value
# of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.
# *') matches all verbs.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
# Required
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries.
# Corresponds to the JSON property `in`
# @return [Array<String>]
attr_accessor :in
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of
# entries. The format for in and not_in entries is the same as for members in a
# Binding (see google/iam/v1/policy.proto).
# Corresponds to the JSON property `notIn`
# @return [Array<String>]
attr_accessor :not_in
# Additional restrictions that must be met
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::GenomicsV1::Condition>]
attr_accessor :conditions
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
# that match the LOG action.
# Corresponds to the JSON property `logConfig`
# @return [Array<Google::Apis::GenomicsV1::LogConfig>]
attr_accessor :log_config
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@permissions = args[:permissions] if args.key?(:permissions)
@action = args[:action] if args.key?(:action)
@in = args[:in] if args.key?(:in)
@not_in = args[:not_in] if args.key?(:not_in)
@conditions = args[:conditions] if args.key?(:conditions)
@log_config = args[:log_config] if args.key?(:log_config)
end
end
# A condition to be met.
class Condition
include Google::Apis::Core::Hashable
# Trusted attributes supplied by the IAM system.
# Corresponds to the JSON property `iam`
# @return [String]
attr_accessor :iam
# Trusted attributes supplied by any service that owns resources and uses the
# IAM system for access control.
# Corresponds to the JSON property `sys`
# @return [String]
attr_accessor :sys
# Trusted attributes discharged by the service.
# Corresponds to the JSON property `svc`
# @return [String]
attr_accessor :svc
# An operator to apply the subject with.
# Corresponds to the JSON property `op`
# @return [String]
attr_accessor :op
# The object of the condition. Exactly one of these must be set.
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
# The objects of the condition. This is mutually exclusive with 'value'.
# Corresponds to the JSON property `values`
# @return [Array<String>]
attr_accessor :values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@iam = args[:iam] if args.key?(:iam)
@sys = args[:sys] if args.key?(:sys)
@svc = args[:svc] if args.key?(:svc)
@op = args[:op] if args.key?(:op)
@value = args[:value] if args.key?(:value)
@values = args[:values] if args.key?(:values)
end
end
# Specifies what kind of log the caller must write Increment a streamz counter
# with the specified metric and field names. Metric names should start with a '/'
# , generally be lowercase-only, and end in "_count". Field names should not
# contain an initial slash. The actual exported metric names will have "/iam/
# policy" prepended. Field names correspond to IAM request parameters and field
# values are their respective values. At present only "iam_principal",
# corresponding to IAMContext.principal, is supported. Examples: counter `
# metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter /
# iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext.
# principal]` At this time we do not support: * multiple field names (though
# this may be supported in the future) * decrementing the counter * incrementing
# it by anything other than 1
class LogConfig
include Google::Apis::Core::Hashable
# Options for counters
# Corresponds to the JSON property `counter`
# @return [Google::Apis::GenomicsV1::CounterOptions]
attr_accessor :counter
# Write a Data Access (Gin) log
# Corresponds to the JSON property `dataAccess`
# @return [Google::Apis::GenomicsV1::DataAccessOptions]
attr_accessor :data_access
# Write a Cloud Audit log
# Corresponds to the JSON property `cloudAudit`
# @return [Google::Apis::GenomicsV1::CloudAuditOptions]
attr_accessor :cloud_audit
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@counter = args[:counter] if args.key?(:counter)
@data_access = args[:data_access] if args.key?(:data_access)
@cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
end
end
# Options for counters
class CounterOptions
include Google::Apis::Core::Hashable
# The metric to update.
# Corresponds to the JSON property `metric`
# @return [String]
attr_accessor :metric
# The field value to attribute.
# Corresponds to the JSON property `field`
# @return [String]
attr_accessor :field
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@metric = args[:metric] if args.key?(:metric)
@field = args[:field] if args.key?(:field)
end
end
# Write a Data Access (Gin) log
class DataAccessOptions
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Write a Cloud Audit log
class CloudAuditOptions
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request message for `GetIamPolicy` method. # Request message for `GetIamPolicy` method.
class GetIamPolicyRequest class GetIamPolicyRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1838,7 +2047,7 @@ module Google
class ReferenceBound class ReferenceBound
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# The name of the reference associated with this ReferenceBound. # The name of the reference associated with this reference bound.
# Corresponds to the JSON property `referenceName` # Corresponds to the JSON property `referenceName`
# @return [String] # @return [String]
attr_accessor :reference_name attr_accessor :reference_name
@ -2086,9 +2295,9 @@ module Google
attr_accessor :page_size attr_accessor :page_size
# The maximum number of calls to return in a single page. Note that this limit # 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 # may be exceeded in the event that a matching variant contains more calls than
# has more calls than this limit. If unspecified, defaults to 5000. The maximum # the requested maximum. If unspecified, defaults to 5000. The maximum value is
# value is 10000. # 10000.
# Corresponds to the JSON property `maxCalls` # Corresponds to the JSON property `maxCalls`
# @return [Fixnum] # @return [Fixnum]
attr_accessor :max_calls attr_accessor :max_calls

View File

@ -50,6 +50,30 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
end end
class Rule
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Condition
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class LogConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class CounterOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DataAccessOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class CloudAuditOptions
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class GetIamPolicyRequest class GetIamPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
end end
@ -307,6 +331,8 @@ module Google
property :version, as: 'version' property :version, as: 'version'
collection :bindings, as: 'bindings', class: Google::Apis::GenomicsV1::Binding, decorator: Google::Apis::GenomicsV1::Binding::Representation collection :bindings, as: 'bindings', class: Google::Apis::GenomicsV1::Binding, decorator: Google::Apis::GenomicsV1::Binding::Representation
collection :rules, as: 'rules', class: Google::Apis::GenomicsV1::Rule, decorator: Google::Apis::GenomicsV1::Rule::Representation
property :etag, :base64 => true, as: 'etag' property :etag, :base64 => true, as: 'etag'
end end
end end
@ -319,6 +345,65 @@ module Google
end end
end end
class Rule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
collection :permissions, as: 'permissions'
property :action, as: 'action'
collection :in, as: 'in'
collection :not_in, as: 'notIn'
collection :conditions, as: 'conditions', class: Google::Apis::GenomicsV1::Condition, decorator: Google::Apis::GenomicsV1::Condition::Representation
collection :log_config, as: 'logConfig', class: Google::Apis::GenomicsV1::LogConfig, decorator: Google::Apis::GenomicsV1::LogConfig::Representation
end
end
class Condition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :iam, as: 'iam'
property :sys, as: 'sys'
property :svc, as: 'svc'
property :op, as: 'op'
property :value, as: 'value'
collection :values, as: 'values'
end
end
class LogConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :counter, as: 'counter', class: Google::Apis::GenomicsV1::CounterOptions, decorator: Google::Apis::GenomicsV1::CounterOptions::Representation
property :data_access, as: 'dataAccess', class: Google::Apis::GenomicsV1::DataAccessOptions, decorator: Google::Apis::GenomicsV1::DataAccessOptions::Representation
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::GenomicsV1::CloudAuditOptions, decorator: Google::Apis::GenomicsV1::CloudAuditOptions::Representation
end
end
class CounterOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :metric, as: 'metric'
property :field, as: 'field'
end
end
class DataAccessOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class CloudAuditOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class GetIamPolicyRequest class GetIamPolicyRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/identity-toolkit/v3/ # @see https://developers.google.com/identity-toolkit/v3/
module IdentitytoolkitV3 module IdentitytoolkitV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20160125' REVISION = '20160204'
end end
end end
end end

View File

@ -534,6 +534,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :password attr_accessor :password
# The photo url of the user.
# Corresponds to the JSON property `photoUrl`
# @return [String]
attr_accessor :photo_url
# The associated IDPs of the user. # The associated IDPs of the user.
# Corresponds to the JSON property `provider` # Corresponds to the JSON property `provider`
# @return [Array<String>] # @return [Array<String>]
@ -568,6 +573,7 @@ module Google
@local_id = args[:local_id] if args.key?(:local_id) @local_id = args[:local_id] if args.key?(:local_id)
@oob_code = args[:oob_code] if args.key?(:oob_code) @oob_code = args[:oob_code] if args.key?(:oob_code)
@password = args[:password] if args.key?(:password) @password = args[:password] if args.key?(:password)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider = args[:provider] if args.key?(:provider) @provider = args[:provider] if args.key?(:provider)
@upgrade_to_federated_login = args[:upgrade_to_federated_login] if args.key?(:upgrade_to_federated_login) @upgrade_to_federated_login = args[:upgrade_to_federated_login] if args.key?(:upgrade_to_federated_login)
@valid_since = args[:valid_since] if args.key?(:valid_since) @valid_since = args[:valid_since] if args.key?(:valid_since)
@ -967,6 +973,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :new_email attr_accessor :new_email
# The photo url of the user.
# Corresponds to the JSON property `photoUrl`
# @return [String]
attr_accessor :photo_url
# The user's profiles at the associated IdPs. # The user's profiles at the associated IdPs.
# Corresponds to the JSON property `providerUserInfo` # Corresponds to the JSON property `providerUserInfo`
# @return [Array<Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo>] # @return [Array<Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo>]
@ -983,6 +994,7 @@ module Google
@id_token = args[:id_token] if args.key?(:id_token) @id_token = args[:id_token] if args.key?(:id_token)
@kind = args[:kind] if args.key?(:kind) @kind = args[:kind] if args.key?(:kind)
@new_email = args[:new_email] if args.key?(:new_email) @new_email = args[:new_email] if args.key?(:new_email)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info) @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
end end
@ -1164,6 +1176,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :display_name attr_accessor :display_name
# User's email at IDP.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# User's identifier at IDP. # User's identifier at IDP.
# Corresponds to the JSON property `federatedId` # Corresponds to the JSON property `federatedId`
# @return [String] # @return [String]
@ -1187,6 +1204,7 @@ module Google
# Update properties of this object # Update properties of this object
def update!(**args) def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name) @display_name = args[:display_name] if args.key?(:display_name)
@email = args[:email] if args.key?(:email)
@federated_id = args[:federated_id] if args.key?(:federated_id) @federated_id = args[:federated_id] if args.key?(:federated_id)
@photo_url = args[:photo_url] if args.key?(:photo_url) @photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_id = args[:provider_id] if args.key?(:provider_id) @provider_id = args[:provider_id] if args.key?(:provider_id)

View File

@ -282,6 +282,7 @@ module Google
property :local_id, as: 'localId' property :local_id, as: 'localId'
property :oob_code, as: 'oobCode' property :oob_code, as: 'oobCode'
property :password, as: 'password' property :password, as: 'password'
property :photo_url, as: 'photoUrl'
collection :provider, as: 'provider' collection :provider, as: 'provider'
property :upgrade_to_federated_login, as: 'upgradeToFederatedLogin' property :upgrade_to_federated_login, as: 'upgradeToFederatedLogin'
property :valid_since, as: 'validSince' property :valid_since, as: 'validSince'
@ -391,6 +392,7 @@ module Google
property :id_token, as: 'idToken' property :id_token, as: 'idToken'
property :kind, as: 'kind' property :kind, as: 'kind'
property :new_email, as: 'newEmail' property :new_email, as: 'newEmail'
property :photo_url, as: 'photoUrl'
collection :provider_user_info, as: 'providerUserInfo', class: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo, decorator: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo::Representation collection :provider_user_info, as: 'providerUserInfo', class: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo, decorator: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo::Representation
end end
@ -444,6 +446,7 @@ module Google
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName' property :display_name, as: 'displayName'
property :email, as: 'email'
property :federated_id, as: 'federatedId' property :federated_id, as: 'federatedId'
property :photo_url, as: 'photoUrl' property :photo_url, as: 'photoUrl'
property :provider_id, as: 'providerId' property :provider_id, as: 'providerId'

View File

@ -1,38 +0,0 @@
# 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/mapsengine_v1/service.rb'
require 'google/apis/mapsengine_v1/classes.rb'
require 'google/apis/mapsengine_v1/representations.rb'
module Google
module Apis
# Google Maps Engine API
#
# The Google Maps Engine API allows developers to store and query geospatial
# vector and raster data.
#
# @see https://developers.google.com/maps-engine/
module MapsengineV1
VERSION = 'V1'
REVISION = '20151202'
# View and manage your Google My Maps data
AUTH_MAPSENGINE = 'https://www.googleapis.com/auth/mapsengine'
# View your Google My Maps data
AUTH_MAPSENGINE_READONLY = 'https://www.googleapis.com/auth/mapsengine.readonly'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@ module Google
VERSION = 'V2' VERSION = 'V2'
REVISION = '20160122' REVISION = '20160122'
# Know your basic profile info and list of people in your circles. # Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
# Know who you are on Google # Know who you are on Google

View File

@ -0,0 +1,59 @@
# 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/people_v1/service.rb'
require 'google/apis/people_v1/classes.rb'
require 'google/apis/people_v1/representations.rb'
module Google
module Apis
# Google People API
#
# The Google People API service gives access to information about profiles and
# contacts.
#
# @see https://developers.google.com/people/
module PeopleV1
VERSION = 'V1'
REVISION = '20160210'
# View your street addresses
AUTH_USER_ADDRESSES_READ = 'https://www.googleapis.com/auth/user.addresses.read'
# Know your basic profile info and list of people in your circles.
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
# Manage your contacts
AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts'
# View your complete date of birth
AUTH_USER_BIRTHDAY_READ = 'https://www.googleapis.com/auth/user.birthday.read'
# View your email address
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
# View your phone numbers
AUTH_USER_PHONENUMBERS_READ = 'https://www.googleapis.com/auth/user.phonenumbers.read'
# View your email addresses
AUTH_USER_EMAILS_READ = 'https://www.googleapis.com/auth/user.emails.read'
# View your basic profile info
AUTH_USERINFO_PROFILE = 'https://www.googleapis.com/auth/userinfo.profile'
# View your contacts
AUTH_CONTACTS_READONLY = 'https://www.googleapis.com/auth/contacts.readonly'
end
end
end

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,593 @@
# 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 PeopleV1
class Birthday
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Residence
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class RelationshipInterest
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Tagline
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Event
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Skill
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Nickname
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Membership
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Source
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Gender
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class FieldMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Locale
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Address
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Organization
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class RelationshipStatus
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ContactGroupMembership
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ImClient
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Person
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class GetPeopleResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class PersonMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class PersonResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Biography
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Photo
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Occupation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class CoverPhoto
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Url
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class BraggingRights
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListConnectionsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class EmailAddress
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class PhoneNumber
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Date
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class DomainMembership
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Interest
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Relation
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Name
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class Birthday
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :text, as: 'text'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
end
end
class Residence
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :current, as: 'current'
end
end
class RelationshipInterest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :formatted_value, as: 'formattedValue'
end
end
class Tagline
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
end
end
class Event
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :formatted_type, as: 'formattedType'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :type, as: 'type'
property :date, as: 'date', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
end
end
class Skill
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
end
end
class Nickname
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :type, as: 'type'
end
end
class Membership
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :contact_group_membership, as: 'contactGroupMembership', class: Google::Apis::PeopleV1::ContactGroupMembership, decorator: Google::Apis::PeopleV1::ContactGroupMembership::Representation
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :domain_membership, as: 'domainMembership', class: Google::Apis::PeopleV1::DomainMembership, decorator: Google::Apis::PeopleV1::DomainMembership::Representation
end
end
class Source
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :id, as: 'id'
end
end
class Gender
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :formatted_value, as: 'formattedValue'
end
end
class FieldMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :verified, as: 'verified'
property :source, as: 'source', class: Google::Apis::PeopleV1::Source, decorator: Google::Apis::PeopleV1::Source::Representation
property :primary, as: 'primary'
end
end
class Locale
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
end
end
class Address
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :postal_code, as: 'postalCode'
property :city, as: 'city'
property :country_code, as: 'countryCode'
property :formatted_value, as: 'formattedValue'
property :formatted_type, as: 'formattedType'
property :extended_address, as: 'extendedAddress'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :region, as: 'region'
property :country, as: 'country'
property :po_box, as: 'poBox'
property :street_address, as: 'streetAddress'
property :type, as: 'type'
end
end
class Organization
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :location, as: 'location'
property :title, as: 'title'
property :formatted_type, as: 'formattedType'
property :job_description, as: 'jobDescription'
property :symbol, as: 'symbol'
property :domain, as: 'domain'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :end_date, as: 'endDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
property :current, as: 'current'
property :name, as: 'name'
property :phonetic_name, as: 'phoneticName'
property :start_date, as: 'startDate', class: Google::Apis::PeopleV1::Date, decorator: Google::Apis::PeopleV1::Date::Representation
property :department, as: 'department'
property :type, as: 'type'
end
end
class RelationshipStatus
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :formatted_value, as: 'formattedValue'
end
end
class ContactGroupMembership
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :contact_group_id, as: 'contactGroupId'
end
end
class ImClient
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :protocol, as: 'protocol'
property :formatted_type, as: 'formattedType'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :username, as: 'username'
property :formatted_protocol, as: 'formattedProtocol'
property :type, as: 'type'
end
end
class Person
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :urls, as: 'urls', class: Google::Apis::PeopleV1::Url, decorator: Google::Apis::PeopleV1::Url::Representation
collection :birthdays, as: 'birthdays', class: Google::Apis::PeopleV1::Birthday, decorator: Google::Apis::PeopleV1::Birthday::Representation
collection :relations, as: 'relations', class: Google::Apis::PeopleV1::Relation, decorator: Google::Apis::PeopleV1::Relation::Representation
collection :nicknames, as: 'nicknames', class: Google::Apis::PeopleV1::Nickname, decorator: Google::Apis::PeopleV1::Nickname::Representation
collection :biographies, as: 'biographies', class: Google::Apis::PeopleV1::Biography, decorator: Google::Apis::PeopleV1::Biography::Representation
collection :im_clients, as: 'imClients', class: Google::Apis::PeopleV1::ImClient, decorator: Google::Apis::PeopleV1::ImClient::Representation
collection :bragging_rights, as: 'braggingRights', class: Google::Apis::PeopleV1::BraggingRights, decorator: Google::Apis::PeopleV1::BraggingRights::Representation
collection :locales, as: 'locales', class: Google::Apis::PeopleV1::Locale, decorator: Google::Apis::PeopleV1::Locale::Representation
collection :relationship_statuses, as: 'relationshipStatuses', class: Google::Apis::PeopleV1::RelationshipStatus, decorator: Google::Apis::PeopleV1::RelationshipStatus::Representation
property :age_range, as: 'ageRange'
collection :events, as: 'events', class: Google::Apis::PeopleV1::Event, decorator: Google::Apis::PeopleV1::Event::Representation
collection :interests, as: 'interests', class: Google::Apis::PeopleV1::Interest, decorator: Google::Apis::PeopleV1::Interest::Representation
collection :relationship_interests, as: 'relationshipInterests', class: Google::Apis::PeopleV1::RelationshipInterest, decorator: Google::Apis::PeopleV1::RelationshipInterest::Representation
property :etag, as: 'etag'
collection :organizations, as: 'organizations', class: Google::Apis::PeopleV1::Organization, decorator: Google::Apis::PeopleV1::Organization::Representation
property :resource_name, as: 'resourceName'
collection :memberships, as: 'memberships', class: Google::Apis::PeopleV1::Membership, decorator: Google::Apis::PeopleV1::Membership::Representation
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::PersonMetadata, decorator: Google::Apis::PeopleV1::PersonMetadata::Representation
collection :occupations, as: 'occupations', class: Google::Apis::PeopleV1::Occupation, decorator: Google::Apis::PeopleV1::Occupation::Representation
collection :names, as: 'names', class: Google::Apis::PeopleV1::Name, decorator: Google::Apis::PeopleV1::Name::Representation
collection :email_addresses, as: 'emailAddresses', class: Google::Apis::PeopleV1::EmailAddress, decorator: Google::Apis::PeopleV1::EmailAddress::Representation
collection :residences, as: 'residences', class: Google::Apis::PeopleV1::Residence, decorator: Google::Apis::PeopleV1::Residence::Representation
collection :skills, as: 'skills', class: Google::Apis::PeopleV1::Skill, decorator: Google::Apis::PeopleV1::Skill::Representation
collection :cover_photos, as: 'coverPhotos', class: Google::Apis::PeopleV1::CoverPhoto, decorator: Google::Apis::PeopleV1::CoverPhoto::Representation
collection :taglines, as: 'taglines', class: Google::Apis::PeopleV1::Tagline, decorator: Google::Apis::PeopleV1::Tagline::Representation
collection :phone_numbers, as: 'phoneNumbers', class: Google::Apis::PeopleV1::PhoneNumber, decorator: Google::Apis::PeopleV1::PhoneNumber::Representation
collection :addresses, as: 'addresses', class: Google::Apis::PeopleV1::Address, decorator: Google::Apis::PeopleV1::Address::Representation
collection :photos, as: 'photos', class: Google::Apis::PeopleV1::Photo, decorator: Google::Apis::PeopleV1::Photo::Representation
collection :genders, as: 'genders', class: Google::Apis::PeopleV1::Gender, decorator: Google::Apis::PeopleV1::Gender::Representation
end
end
class GetPeopleResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :responses, as: 'responses', class: Google::Apis::PeopleV1::PersonResponse, decorator: Google::Apis::PeopleV1::PersonResponse::Representation
end
end
class PersonMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :object_type, as: 'objectType'
collection :previous_resource_names, as: 'previousResourceNames'
collection :sources, as: 'sources', class: Google::Apis::PeopleV1::Source, decorator: Google::Apis::PeopleV1::Source::Representation
property :deleted, as: 'deleted'
end
end
class PersonResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :person, as: 'person', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
property :requested_resource_name, as: 'requestedResourceName'
property :http_status_code, as: 'httpStatusCode'
end
end
class Biography
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
end
end
class Photo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :url, as: 'url'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
end
end
class Occupation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
end
end
class CoverPhoto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :default, as: 'default'
property :url, as: 'url'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
end
end
class Url
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :formatted_type, as: 'formattedType'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :type, as: 'type'
end
end
class BraggingRights
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
end
end
class ListConnectionsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
property :next_sync_token, as: 'nextSyncToken'
collection :connections, as: 'connections', class: Google::Apis::PeopleV1::Person, decorator: Google::Apis::PeopleV1::Person::Representation
end
end
class EmailAddress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :formatted_type, as: 'formattedType'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :type, as: 'type'
end
end
class PhoneNumber
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :formatted_type, as: 'formattedType'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :type, as: 'type'
property :canonical_form, as: 'canonicalForm'
end
end
class Date
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :month, as: 'month'
property :day, as: 'day'
property :year, as: 'year'
end
end
class DomainMembership
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :in_viewer_domain, as: 'inViewerDomain'
end
end
class Interest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
end
end
class Relation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :formatted_type, as: 'formattedType'
property :person, as: 'person'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :type, as: 'type'
end
end
class Name
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :phonetic_family_name, as: 'phoneticFamilyName'
property :given_name, as: 'givenName'
property :phonetic_middle_name, as: 'phoneticMiddleName'
property :middle_name, as: 'middleName'
property :phonetic_given_name, as: 'phoneticGivenName'
property :honorific_prefix, as: 'honorificPrefix'
property :phonetic_honorific_prefix, as: 'phoneticHonorificPrefix'
property :metadata, as: 'metadata', class: Google::Apis::PeopleV1::FieldMetadata, decorator: Google::Apis::PeopleV1::FieldMetadata::Representation
property :phonetic_honorific_suffix, as: 'phoneticHonorificSuffix'
property :family_name, as: 'familyName'
property :display_name, as: 'displayName'
property :honorific_suffix, as: 'honorificSuffix'
end
end
end
end
end

View File

@ -0,0 +1,193 @@
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module PeopleV1
# Google People API
#
# The Google People API service gives access to information about profiles and
# contacts.
#
# @example
# require 'google/apis/people_v1'
#
# People = Google::Apis::PeopleV1 # Alias the module
# service = People::PeopleService.new
#
# @see https://developers.google.com/people/
class PeopleService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.
attr_accessor :key
# @return [String]
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
attr_accessor :quota_user
def initialize
super('https://people.googleapis.com/', '')
end
# Provides information about a list of specific people by specifying a list
# of requested resource names. Use `people/me` to indicate the authenticated
# user.
# @param [String] request_mask_include_field
# Comma-separated list of fields to be included in the response. Omitting
# this field will include all fields.
# Each path should start with `person.`: for example, `person.names` or
# `person.photos`.
# @param [Array<String>, String] resource_names
# The resource name, such as one returned by
# [`people.connections.list`](/people/api/rest/v1/people.connections/list),
# of one of the people to provide information about. You can include this
# parameter up to 50 times in one request.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PeopleV1::GetPeopleResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PeopleV1::GetPeopleResponse]
#
# @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_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/people:batchGet', options)
command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation
command.response_class = Google::Apis::PeopleV1::GetPeopleResponse
command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
command.query['resourceNames'] = resource_names unless resource_names.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Provides information about a person resource for a resource name. Use
# `people/me` to indicate the authenticated user.
# @param [String] resource_name
# The resource name of the person to provide information about.
# - To get information about the authenticated user, specify `people/me`.
# - To get information about any user, specify the resource name that
# identifies the user, such as the resource names returned by
# [`people.connections.list`](/people/api/rest/v1/people.connections/list).
# @param [String] request_mask_include_field
# Comma-separated list of fields to be included in the response. Omitting
# this field will include all fields.
# Each path should start with `person.`: for example, `person.names` or
# `person.photos`.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PeopleV1::Person] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PeopleV1::Person]
#
# @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_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resourceName}', options)
command.response_representation = Google::Apis::PeopleV1::Person::Representation
command.response_class = Google::Apis::PeopleV1::Person
command.params['resourceName'] = resource_name unless resource_name.nil?
command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
# Provides a list of the authenticated user's contacts merged with any
# linked profiles.
# @param [String] resource_name
# The resource name to return connections for. Only `people/me` is valid.
# @param [String] sort_order
# The order in which the connections should be sorted. Defaults to
# `LAST_MODIFIED_ASCENDING`.
# @param [String] sync_token
# A sync token, returned by a previous call to `people.connections.list`.
# Only resources changed since the sync token was created are returned.
# @param [Fixnum] page_size
# The number of connections to include in the response. Valid values are
# between 1 and 500, inclusive. Defaults to 100.
# @param [String] request_mask_include_field
# Comma-separated list of fields to be included in the response. Omitting
# this field will include all fields.
# Each path should start with `person.`: for example, `person.names` or
# `person.photos`.
# @param [String] page_token
# The token of the page to be returned.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::PeopleV1::ListConnectionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::PeopleV1::ListConnectionsResponse]
#
# @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_person_connections(resource_name, sort_order: nil, sync_token: nil, page_size: nil, request_mask_include_field: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+resourceName}/connections', options)
command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation
command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse
command.params['resourceName'] = resource_name unless resource_name.nil?
command.query['sortOrder'] = sort_order unless sort_order.nil?
command.query['syncToken'] = sync_token unless sync_token.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['fields'] = fields unless fields.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)
command.query['key'] = key unless key.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
end
end
end
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/+/domains/ # @see https://developers.google.com/+/domains/
module PlusDomainsV1 module PlusDomainsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160126' REVISION = '20160208'
# View your circles and the people and pages in them # View your circles and the people and pages in them
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read' AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@ -33,7 +33,7 @@ module Google
# Manage your circles and add people and pages. People and pages you add to your circles will be notified. Others may see this information publicly. People you add to circles can use Hangouts with you. # Manage your circles and add people and pages. People and pages you add to your circles will be notified. Others may see this information publicly. People you add to circles can use Hangouts with you.
AUTH_PLUS_CIRCLES_WRITE = 'https://www.googleapis.com/auth/plus.circles.write' AUTH_PLUS_CIRCLES_WRITE = 'https://www.googleapis.com/auth/plus.circles.write'
# Know your basic profile info and list of people in your circles. # Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
# Know who you are on Google # Know who you are on Google

View File

@ -25,9 +25,9 @@ module Google
# @see https://developers.google.com/+/api/ # @see https://developers.google.com/+/api/
module PlusV1 module PlusV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20160126' REVISION = '20160208'
# Know your basic profile info and list of people in your circles. # Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login' AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
# Know who you are on Google # Know who you are on Google

View File

@ -674,7 +674,7 @@ module Google
# The estimated regression value (Regression models only). # The estimated regression value (Regression models only).
# Corresponds to the JSON property `outputValue` # Corresponds to the JSON property `outputValue`
# @return [Float] # @return [String]
attr_accessor :output_value attr_accessor :output_value
# A URL to re-request this resource. # A URL to re-request this resource.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/reseller/ # @see https://developers.google.com/google-apps/reseller/
module ResellerV1 module ResellerV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20151110' REVISION = '20160202'
# Manage users on your domain # Manage users on your domain
AUTH_APPS_ORDER = 'https://www.googleapis.com/auth/apps.order' AUTH_APPS_ORDER = 'https://www.googleapis.com/auth/apps.order'

View File

@ -91,7 +91,7 @@ module Google
# @param [Google::Apis::ResellerV1::Customer] customer_object # @param [Google::Apis::ResellerV1::Customer] customer_object
# @param [String] customer_auth_token # @param [String] customer_auth_token
# An auth token needed for inserting a customer for which domain already exists. # An auth token needed for inserting a customer for which domain already exists.
# Can be generated at https://www.google.com/a/cpanel//TransferToken. Optional. # Can be generated at https://admin.google.com/TransferToken. Optional.
# @param [String] fields # @param [String] fields
# Selector specifying which fields to include in a partial response. # Selector specifying which fields to include in a partial response.
# @param [String] quota_user # @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/storage/docs/json_api/ # @see https://developers.google.com/storage/docs/json_api/
module StorageV1 module StorageV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20151229' REVISION = '20160127'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -25,7 +25,7 @@ module Google
# @see http://developers.google.com/youtube/analytics/ # @see http://developers.google.com/youtube/analytics/
module YoutubeAnalyticsV1 module YoutubeAnalyticsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20151211' REVISION = '20160204'
# Manage your YouTube account # Manage your YouTube account
AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube' AUTH_YOUTUBE = 'https://www.googleapis.com/auth/youtube'

View File

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

View File

@ -1243,25 +1243,6 @@ module Google
end end
end end
#
class ChannelId
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `value`
# @return [String]
attr_accessor :value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@value = args[:value] if args.key?(:value)
end
end
# #
class ListChannelsResponse class ListChannelsResponse
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -1991,7 +1972,7 @@ module Google
# The id of the author's YouTube channel, if any. # The id of the author's YouTube channel, if any.
# Corresponds to the JSON property `authorChannelId` # Corresponds to the JSON property `authorChannelId`
# @return [Google::Apis::YoutubeV3::ChannelId] # @return [Object]
attr_accessor :author_channel_id attr_accessor :author_channel_id
# Link to the author's YouTube channel, if any. # Link to the author's YouTube channel, if any.
@ -5859,6 +5840,11 @@ module Google
# @return [String] # @return [String]
attr_accessor :prev_page_token attr_accessor :prev_page_token
#
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
# Stub token pagination template to suppress results. # Stub token pagination template to suppress results.
# Corresponds to the JSON property `tokenPagination` # Corresponds to the JSON property `tokenPagination`
# @return [Google::Apis::YoutubeV3::TokenPagination] # @return [Google::Apis::YoutubeV3::TokenPagination]
@ -5882,6 +5868,7 @@ module Google
@next_page_token = args[:next_page_token] if args.key?(:next_page_token) @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@page_info = args[:page_info] if args.key?(:page_info) @page_info = args[:page_info] if args.key?(:page_info)
@prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token)
@region_code = args[:region_code] if args.key?(:region_code)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination) @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
@visitor_id = args[:visitor_id] if args.key?(:visitor_id) @visitor_id = args[:visitor_id] if args.key?(:visitor_id)
end end

View File

@ -138,10 +138,6 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
end end
class ChannelId
class Representation < Google::Apis::Core::JsonRepresentation; end
end
class ListChannelsResponse class ListChannelsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
end end
@ -1039,13 +1035,6 @@ module Google
end end
end end
class ChannelId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :value, as: 'value'
end
end
class ListChannelsResponse class ListChannelsResponse
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
@ -1243,8 +1232,7 @@ module Google
class CommentSnippet class CommentSnippet
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation
property :author_channel_id, as: 'authorChannelId', class: Google::Apis::YoutubeV3::ChannelId, decorator: Google::Apis::YoutubeV3::ChannelId::Representation property :author_channel_id, as: 'authorChannelId'
property :author_channel_url, as: 'authorChannelUrl' property :author_channel_url, as: 'authorChannelUrl'
property :author_display_name, as: 'authorDisplayName' property :author_display_name, as: 'authorDisplayName'
property :author_googleplus_profile_url, as: 'authorGoogleplusProfileUrl' property :author_googleplus_profile_url, as: 'authorGoogleplusProfileUrl'
@ -2217,6 +2205,7 @@ module Google
property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation property :page_info, as: 'pageInfo', class: Google::Apis::YoutubeV3::PageInfo, decorator: Google::Apis::YoutubeV3::PageInfo::Representation
property :prev_page_token, as: 'prevPageToken' property :prev_page_token, as: 'prevPageToken'
property :region_code, as: 'regionCode'
property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation property :token_pagination, as: 'tokenPagination', class: Google::Apis::YoutubeV3::TokenPagination, decorator: Google::Apis::YoutubeV3::TokenPagination::Representation
property :visitor_id, as: 'visitorId' property :visitor_id, as: 'visitorId'

View File

@ -68,7 +68,8 @@ APIS=(adexchangebuyer:v1.4 \
oauth2:v2 \ oauth2:v2 \
pagespeedonline:v2 \ pagespeedonline:v2 \
partners:v2 \ partners:v2 \
plus:v1 \ people:v1 \
plus:v1 \
plusDomains:v1 \ plusDomains:v1 \
prediction:v1.6 \ prediction:v1.6 \
proximitybeacon:v1beta1 \ proximitybeacon:v1beta1 \