Add youtube partner API, regenerate APIs

This commit is contained in:
Steve Bazyl 2016-04-14 11:15:27 -07:00
parent 801056e208
commit f7bbb050cc
126 changed files with 19684 additions and 780 deletions

View File

@ -8,6 +8,7 @@
"/adexchangeseller:v2.0/adexchangeseller.accounts.adclients.list": list_account_ad_clients
"/adexchangebuyer:v1.4/adexchangebuyer.proposals.setupcomplete": proposal_setup_complete
"/adexchangebuyer:v1.4/adexchangebuyer.pubprofiles.list": list_pub_profiles
"/adexchangebuyer:v1.4/adexchangebuyer.marketplaceprivateauction.updateproposal": update_marketplace_private_auction_proposal
"/adexchangeseller:v2.0/adexchangeseller.accounts.customchannels.get": get_account_custom_channel
"/adexchangeseller:v2.0/adexchangeseller.accounts.customchannels.list": list_account_custom_channels
"/adexchangeseller:v2.0/adexchangeseller.accounts.metadata.dimensions.list": list_account_metadata_dimensions
@ -837,6 +838,8 @@
"/genomics:v1beta2/genomics.references.bases.list/start": start_position
"/genomics:v1beta2/genomics.referencesets.get": get_reference_set
"/genomics:v1beta2/genomics.streamingReadstore.streamreads": stream_reads
"/genomics:v1/genomics.annotationsets.create": create_annotation_set
"/genomics:v1/genomics.annotationsets.get": get_annotation_set
"/genomics:v1/genomics.callsets.create": create_call_set
"/genomics:v1/genomics.callsets.delete": delete_call_set
"/genomics:v1/genomics.callsets.get": get_call_set

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,7 @@ module Google
Google::Apis.logger.level = Logger::DEBUG if options[:verbose]
generate_from_url(options[:url]) if options[:url]
generate_from_file(options[:file]) if options[:file]
generate_from_discovery(preferred_only: options[:preferred_only], id: options[:id] ) if options[:from_discovery]
generate_from_discovery(preferred_only: options[:preferred_only], id: options[:id] ) if options[:id] || options[:from_discovery]
create_file(options[:names_out]) { |*| generator.dump_api_names } if options[:names_out]
end

View File

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

View File

@ -1126,6 +1126,12 @@ module Google
# @return [Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedFixedPriceTerms]
attr_accessor :non_guaranteed_fixed_price_terms
# For deals with Cost Per Day billing, defines the timezone used to mark the
# boundaries of a day (buyer-readonly)
# Corresponds to the JSON property `sellerTimeZone`
# @return [String]
attr_accessor :seller_time_zone
def initialize(**args)
update!(**args)
end
@ -1139,6 +1145,7 @@ module Google
@guaranteed_fixed_price_terms = args[:guaranteed_fixed_price_terms] if args.key?(:guaranteed_fixed_price_terms)
@non_guaranteed_auction_terms = args[:non_guaranteed_auction_terms] if args.key?(:non_guaranteed_auction_terms)
@non_guaranteed_fixed_price_terms = args[:non_guaranteed_fixed_price_terms] if args.key?(:non_guaranteed_fixed_price_terms)
@seller_time_zone = args[:seller_time_zone] if args.key?(:seller_time_zone)
end
end
@ -1338,6 +1345,58 @@ module Google
end
end
# This message carries publisher provided breakdown. E.g. `dimension_type: '
# COUNTRY', [`dimension_value: `id: 1, name: 'US'``, `dimension_value: `id: 2,
# name: 'UK'``]`
class Dimension
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `dimensionType`
# @return [String]
attr_accessor :dimension_type
#
# Corresponds to the JSON property `dimensionValues`
# @return [Array<Google::Apis::AdexchangebuyerV1_4::DimensionDimensionValue>]
attr_accessor :dimension_values
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dimension_type = args[:dimension_type] if args.key?(:dimension_type)
@dimension_values = args[:dimension_values] if args.key?(:dimension_values)
end
end
# Value of the dimension.
class DimensionDimensionValue
include Google::Apis::Core::Hashable
# Id of the dimension.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# Name of the dimension mainly for debugging purposes.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
end
end
#
class EditAllOrderDealsRequest
include Google::Apis::Core::Hashable
@ -1956,10 +2015,7 @@ module Google
end
end
# The configuration data for an Ad Exchange performance report list. https://
# sites.google.com/a/google.com/adx-integration/Home/engineering/binary-releases/
# rtb-api-release https://cs.corp.google.com/#piper///depot/google3/contentads/
# adx/tools/rtb_api/adxrtb.py
# The configuration data for an Ad Exchange performance report list.
class PerformanceReportList
include Google::Apis::Core::Hashable
@ -2470,6 +2526,14 @@ module Google
# @return [String]
attr_accessor :product_id
# Id of the publisher profile for a given seller. A (seller.account_id,
# publisher_profile_id) pair uniquely identifies a publisher profile. Buyers can
# call the PublisherProfiles::List endpoint to get a list of publisher profiles
# for a given seller.
# Corresponds to the JSON property `publisherProfileId`
# @return [String]
attr_accessor :publisher_profile_id
# The revision number of the product. (readonly)
# Corresponds to the JSON property `revisionNumber`
# @return [String]
@ -2503,7 +2567,8 @@ module Google
# @return [Google::Apis::AdexchangebuyerV1_4::DealTerms]
attr_accessor :terms
#
# The web property code for the seller. This field is meant to be copied over as
# is when creating deals.
# Corresponds to the JSON property `webPropertyCode`
# @return [String]
attr_accessor :web_property_code
@ -2528,6 +2593,7 @@ module Google
@name = args[:name] if args.key?(:name)
@private_auction_id = args[:private_auction_id] if args.key?(:private_auction_id)
@product_id = args[:product_id] if args.key?(:product_id)
@publisher_profile_id = args[:publisher_profile_id] if args.key?(:publisher_profile_id)
@revision_number = args[:revision_number] if args.key?(:revision_number)
@seller = args[:seller] if args.key?(:seller)
@shared_targetings = args[:shared_targetings] if args.key?(:shared_targetings)
@ -2710,11 +2776,31 @@ module Google
class PublisherProfileApiProto
include Google::Apis::Core::Hashable
# The account id of the seller.
# Corresponds to the JSON property `accountId`
# @return [String]
attr_accessor :account_id
# Publisher provided info on its audience.
# Corresponds to the JSON property `audience`
# @return [String]
attr_accessor :audience
# A pitch statement for the buyer
# Corresponds to the JSON property `buyerPitchStatement`
# @return [String]
attr_accessor :buyer_pitch_statement
# Direct contact for the publisher profile.
# Corresponds to the JSON property `directContact`
# @return [Google::Apis::AdexchangebuyerV1_4::ContactInformation]
attr_accessor :direct_contact
# Exchange where this publisher profile is from. E.g. AdX, Rubicon etc...
# Corresponds to the JSON property `exchange`
# @return [String]
attr_accessor :exchange
# Link to publisher's Google+ page.
# Corresponds to the JSON property `googlePlusLink`
# @return [String]
@ -2727,6 +2813,12 @@ module Google
attr_accessor :is_parent
alias_method :is_parent?, :is_parent
# True, if this profile is published. Deprecated for state.
# Corresponds to the JSON property `isPublished`
# @return [Boolean]
attr_accessor :is_published
alias_method :is_published?, :is_published
# Identifies what kind of resource this is. Value: the fixed string "
# adexchangebuyer#publisherProfileApiProto".
# Corresponds to the JSON property `kind`
@ -2753,17 +2845,33 @@ module Google
# @return [String]
attr_accessor :overview
# Unique id for the publisher profile
# The pair of (seller.account_id, profile_id) uniquely identifies a publisher
# profile for a given publisher.
# Corresponds to the JSON property `profileId`
# @return [Fixnum]
attr_accessor :profile_id
# Programmatic contact for the publisher profile.
# Corresponds to the JSON property `programmaticContact`
# @return [Google::Apis::AdexchangebuyerV1_4::ContactInformation]
attr_accessor :programmatic_contact
# The list of domains represented in this publisher profile. Empty if this is a
# parent profile.
# Corresponds to the JSON property `publisherDomains`
# @return [Array<String>]
attr_accessor :publisher_domains
# Unique Id for publisher profile.
# Corresponds to the JSON property `publisherProfileId`
# @return [String]
attr_accessor :publisher_profile_id
# This message carries publisher provided forecasting information.
# Corresponds to the JSON property `publisherProvidedForecast`
# @return [Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast]
attr_accessor :publisher_provided_forecast
# Link to publisher rate card
# Corresponds to the JSON property `rateCardInfoLink`
# @return [String]
@ -2774,6 +2882,16 @@ module Google
# @return [String]
attr_accessor :sample_page_link
# Seller of the publisher profile.
# Corresponds to the JSON property `seller`
# @return [Google::Apis::AdexchangebuyerV1_4::Seller]
attr_accessor :seller
# State of the publisher profile.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Publisher provided key metrics and rankings.
# Corresponds to the JSON property `topHeadlines`
# @return [Array<String>]
@ -2785,22 +2903,63 @@ module Google
# Update properties of this object
def update!(**args)
@account_id = args[:account_id] if args.key?(:account_id)
@audience = args[:audience] if args.key?(:audience)
@buyer_pitch_statement = args[:buyer_pitch_statement] if args.key?(:buyer_pitch_statement)
@direct_contact = args[:direct_contact] if args.key?(:direct_contact)
@exchange = args[:exchange] if args.key?(:exchange)
@google_plus_link = args[:google_plus_link] if args.key?(:google_plus_link)
@is_parent = args[:is_parent] if args.key?(:is_parent)
@is_published = args[:is_published] if args.key?(:is_published)
@kind = args[:kind] if args.key?(:kind)
@logo_url = args[:logo_url] if args.key?(:logo_url)
@media_kit_link = args[:media_kit_link] if args.key?(:media_kit_link)
@name = args[:name] if args.key?(:name)
@overview = args[:overview] if args.key?(:overview)
@profile_id = args[:profile_id] if args.key?(:profile_id)
@programmatic_contact = args[:programmatic_contact] if args.key?(:programmatic_contact)
@publisher_domains = args[:publisher_domains] if args.key?(:publisher_domains)
@publisher_profile_id = args[:publisher_profile_id] if args.key?(:publisher_profile_id)
@publisher_provided_forecast = args[:publisher_provided_forecast] if args.key?(:publisher_provided_forecast)
@rate_card_info_link = args[:rate_card_info_link] if args.key?(:rate_card_info_link)
@sample_page_link = args[:sample_page_link] if args.key?(:sample_page_link)
@seller = args[:seller] if args.key?(:seller)
@state = args[:state] if args.key?(:state)
@top_headlines = args[:top_headlines] if args.key?(:top_headlines)
end
end
# This message carries publisher provided forecasting information.
class PublisherProvidedForecast
include Google::Apis::Core::Hashable
# Publisher provided dimensions. E.g. geo, sizes etc...
# Corresponds to the JSON property `dimensions`
# @return [Array<Google::Apis::AdexchangebuyerV1_4::Dimension>]
attr_accessor :dimensions
# Publisher provided weekly impressions.
# Corresponds to the JSON property `weeklyImpressions`
# @return [String]
attr_accessor :weekly_impressions
# Publisher provided weekly uniques.
# Corresponds to the JSON property `weeklyUniques`
# @return [String]
attr_accessor :weekly_uniques
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@weekly_impressions = args[:weekly_impressions] if args.key?(:weekly_impressions)
@weekly_uniques = args[:weekly_uniques] if args.key?(:weekly_uniques)
end
end
#
class Seller
include Google::Apis::Core::Hashable
@ -3020,6 +3179,44 @@ module Google
@width = args[:width] if args.key?(:width)
end
end
#
class UpdatePrivateAuctionProposalRequest
include Google::Apis::Core::Hashable
# The externalDealId of the deal to be updated.
# Corresponds to the JSON property `externalDealId`
# @return [String]
attr_accessor :external_deal_id
# A proposal is associated with a bunch of notes which may optionally be
# associated with a deal and/or revision number.
# Corresponds to the JSON property `note`
# @return [Google::Apis::AdexchangebuyerV1_4::MarketplaceNote]
attr_accessor :note
# The current revision number of the proposal to be updated.
# Corresponds to the JSON property `proposalRevisionNumber`
# @return [String]
attr_accessor :proposal_revision_number
# The proposed action on the private auction proposal.
# Corresponds to the JSON property `updateAction`
# @return [String]
attr_accessor :update_action
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@external_deal_id = args[:external_deal_id] if args.key?(:external_deal_id)
@note = args[:note] if args.key?(:note)
@proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number)
@update_action = args[:update_action] if args.key?(:update_action)
end
end
end
end
end

View File

@ -238,6 +238,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Dimension
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DimensionDimensionValue
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class EditAllOrderDealsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -388,6 +400,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PublisherProvidedForecast
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Seller
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -430,6 +448,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UpdatePrivateAuctionProposalRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Account
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -740,6 +764,7 @@ module Google
property :non_guaranteed_fixed_price_terms, as: 'nonGuaranteedFixedPriceTerms', class: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedFixedPriceTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedFixedPriceTerms::Representation
property :seller_time_zone, as: 'sellerTimeZone'
end
end
@ -807,6 +832,23 @@ module Google
end
end
class Dimension
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :dimension_type, as: 'dimensionType'
collection :dimension_values, as: 'dimensionValues', class: Google::Apis::AdexchangebuyerV1_4::DimensionDimensionValue, decorator: Google::Apis::AdexchangebuyerV1_4::DimensionDimensionValue::Representation
end
end
class DimensionDimensionValue
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :name, as: 'name'
end
end
class EditAllOrderDealsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1098,6 +1140,7 @@ module Google
property :name, as: 'name'
property :private_auction_id, as: 'privateAuctionId'
property :product_id, as: 'productId'
property :publisher_profile_id, as: 'publisherProfileId'
property :revision_number, as: 'revisionNumber'
property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation
@ -1150,22 +1193,46 @@ module Google
class PublisherProfileApiProto
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :audience, as: 'audience'
property :buyer_pitch_statement, as: 'buyerPitchStatement'
property :direct_contact, as: 'directContact', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation
property :exchange, as: 'exchange'
property :google_plus_link, as: 'googlePlusLink'
property :is_parent, as: 'isParent'
property :is_published, as: 'isPublished'
property :kind, as: 'kind'
property :logo_url, as: 'logoUrl'
property :media_kit_link, as: 'mediaKitLink'
property :name, as: 'name'
property :overview, as: 'overview'
property :profile_id, as: 'profileId'
property :programmatic_contact, as: 'programmaticContact', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation
collection :publisher_domains, as: 'publisherDomains'
property :publisher_profile_id, as: 'publisherProfileId'
property :publisher_provided_forecast, as: 'publisherProvidedForecast', class: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast, decorator: Google::Apis::AdexchangebuyerV1_4::PublisherProvidedForecast::Representation
property :rate_card_info_link, as: 'rateCardInfoLink'
property :sample_page_link, as: 'samplePageLink'
property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation
property :state, as: 'state'
collection :top_headlines, as: 'topHeadlines'
end
end
class PublisherProvidedForecast
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dimensions, as: 'dimensions', class: Google::Apis::AdexchangebuyerV1_4::Dimension, decorator: Google::Apis::AdexchangebuyerV1_4::Dimension::Representation
property :weekly_impressions, as: 'weeklyImpressions'
property :weekly_uniques, as: 'weeklyUniques'
end
end
class Seller
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1235,6 +1302,17 @@ module Google
property :width, as: 'width'
end
end
class UpdatePrivateAuctionProposalRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :external_deal_id, as: 'externalDealId'
property :note, as: 'note', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote::Representation
property :proposal_revision_number, as: 'proposalRevisionNumber'
property :update_action, as: 'updateAction'
end
end
end
end
end

View File

@ -817,6 +817,42 @@ module Google
execute_or_queue_command(command, &block)
end
# Update a given private auction proposal
# @param [String] private_auction_id
# The private auction id to be updated.
# @param [Google::Apis::AdexchangebuyerV1_4::UpdatePrivateAuctionProposalRequest] update_private_auction_proposal_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [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 update_marketplace_private_auction_proposal(private_auction_id, update_private_auction_proposal_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, 'privateauction/{privateAuctionId}/updateproposal', options)
command.request_representation = Google::Apis::AdexchangebuyerV1_4::UpdatePrivateAuctionProposalRequest::Representation
command.request_object = update_private_auction_proposal_request_object
command.params['privateAuctionId'] = private_auction_id unless private_auction_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Retrieves the authenticated user's list of performance metrics.
# @param [String] account_id
# The account id to get the reports.

View File

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

View File

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

View File

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

View File

@ -20,13 +20,12 @@ module Google
module Apis
# Google Play EMM API
#
# Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
# for Work users.
# Manages the deployment of apps to Android for Work users.
#
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20160302'
REVISION = '20160408'
# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'

View File

@ -416,7 +416,7 @@ module Google
end
end
# An enterprise resource represents a binding between an organisation and their
# An enterprise resource represents a binding between an organization and their
# EMM.
# 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
@ -962,7 +962,8 @@ module Google
# @return [String]
attr_accessor :distribution_channel
# A link to an image that can be used as an icon for the product.
# A link to an image that can be used as an icon for the product. This image is
# suitable for use at up to 512px x 512px.
# Corresponds to the JSON property `iconUrl`
# @return [String]
attr_accessor :icon_url
@ -991,6 +992,12 @@ module Google
attr_accessor :requires_container_app
alias_method :requires_container_app?, :requires_container_app
# A link to a smaller image that can be used as an icon for the product. This
# image is suitable for use at up to 128px x 128px.
# Corresponds to the JSON property `smallIconUrl`
# @return [String]
attr_accessor :small_icon_url
# The name of the product.
# Corresponds to the JSON property `title`
# @return [String]
@ -1017,6 +1024,7 @@ module Google
@product_id = args[:product_id] if args.key?(:product_id)
@product_pricing = args[:product_pricing] if args.key?(:product_pricing)
@requires_container_app = args[:requires_container_app] if args.key?(:requires_container_app)
@small_icon_url = args[:small_icon_url] if args.key?(:small_icon_url)
@title = args[:title] if args.key?(:title)
@work_details_url = args[:work_details_url] if args.key?(:work_details_url)
end
@ -1359,8 +1367,7 @@ module Google
# @return [String]
attr_accessor :kind
# The user's primary email, e.g. "jsmith@example.com". Will always be set for
# Google managed users and not set for EMM managed users.
# The user's primary email, e.g. "jsmith@example.com".
# Corresponds to the JSON property `primaryEmail`
# @return [String]
attr_accessor :primary_email

View File

@ -488,6 +488,7 @@ module Google
property :product_id, as: 'productId'
property :product_pricing, as: 'productPricing'
property :requires_container_app, as: 'requiresContainerApp'
property :small_icon_url, as: 'smallIconUrl'
property :title, as: 'title'
property :work_details_url, as: 'workDetailsUrl'
end

View File

@ -22,8 +22,7 @@ module Google
module AndroidenterpriseV1
# Google Play EMM API
#
# Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
# for Work users.
# Manages the deployment of apps to Android for Work users.
#
# @example
# require 'google/apis/androidenterprise_v1'
@ -1036,7 +1035,7 @@ module Google
# @param [String] user_id
# The ID of the user.
# @param [String] entitlement_id
# The ID of the entitlement, e.g. "app:com.google.android.gm".
# The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1075,7 +1074,7 @@ module Google
# @param [String] user_id
# The ID of the user.
# @param [String] entitlement_id
# The ID of the entitlement, e.g. "app:com.google.android.gm".
# The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1155,7 +1154,7 @@ module Google
# @param [String] user_id
# The ID of the user.
# @param [String] entitlement_id
# The ID of the entitlement, e.g. "app:com.google.android.gm".
# The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
# @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
# @param [Boolean] install
# Set to true to also install the product on all the user's devices where
@ -1205,7 +1204,7 @@ module Google
# @param [String] user_id
# The ID of the user.
# @param [String] entitlement_id
# The ID of the entitlement, e.g. "app:com.google.android.gm".
# The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
# @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
# @param [Boolean] install
# Set to true to also install the product on all the user's devices where

View File

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

View File

@ -1232,6 +1232,27 @@ module Google
attr_accessor :auto_renewing
alias_method :auto_renewing?, :auto_renewing
# The cancel reason of the subscription, if the subscription is not auto
# renewing. Possible values are:
# - User cancelled the subscription
# - Subscription was cancelled by the system, for example because of a billing
# problem
# Corresponds to the JSON property `cancelReason`
# @return [Fixnum]
attr_accessor :cancel_reason
# ISO 3166-1 alpha-2 billing country/region code of the user at the time the
# subscription was granted.
# Corresponds to the JSON property `countryCode`
# @return [String]
attr_accessor :country_code
# A developer-specified string that contains supplemental information about an
# order.
# Corresponds to the JSON property `developerPayload`
# @return [String]
attr_accessor :developer_payload
# Time at which the subscription will expire, in milliseconds since Epoch.
# Corresponds to the JSON property `expiryTimeMillis`
# @return [String]
@ -1243,6 +1264,26 @@ module Google
# @return [String]
attr_accessor :kind
# The payment state of the subscription. Possible values are:
# - Payment pending
# - Payment received
# Corresponds to the JSON property `paymentState`
# @return [Fixnum]
attr_accessor :payment_state
# Price of the subscription, not including tax. Price is expressed in micro-
# units, where 1,000,000 micro-units equal one unit of the currency. For example,
# if the subscription price is €1.99, price_amount_micros is 1990000.
# Corresponds to the JSON property `priceAmountMicros`
# @return [String]
attr_accessor :price_amount_micros
# ISO 4217 currency code for the subscription price. For example, if the price
# is specified in British pounds sterling, price_currency_code is "GBP".
# Corresponds to the JSON property `priceCurrencyCode`
# @return [String]
attr_accessor :price_currency_code
# Time at which the subscription was granted, in milliseconds since Epoch.
# Corresponds to the JSON property `startTimeMillis`
# @return [String]
@ -1255,8 +1296,14 @@ module Google
# Update properties of this object
def update!(**args)
@auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
@cancel_reason = args[:cancel_reason] if args.key?(:cancel_reason)
@country_code = args[:country_code] if args.key?(:country_code)
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
@expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
@kind = args[:kind] if args.key?(:kind)
@payment_state = args[:payment_state] if args.key?(:payment_state)
@price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros)
@price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code)
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
end
end

View File

@ -679,8 +679,14 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auto_renewing, as: 'autoRenewing'
property :cancel_reason, as: 'cancelReason'
property :country_code, as: 'countryCode'
property :developer_payload, as: 'developerPayload'
property :expiry_time_millis, as: 'expiryTimeMillis'
property :kind, as: 'kind'
property :payment_state, as: 'paymentState'
property :price_amount_micros, as: 'priceAmountMicros'
property :price_currency_code, as: 'priceCurrencyCode'
property :start_time_millis, as: 'startTimeMillis'
end
end

View File

@ -20,13 +20,12 @@ module Google
module Apis
# Google App Engine Admin API
#
# The Google App Engine Admin API enables developers to provision and manage
# their App Engine applications.
# Provisions and manages App Engine applications.
#
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1beta5
VERSION = 'V1beta5'
REVISION = '20160223'
REVISION = '20160407'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -28,8 +28,8 @@ module Google
include Google::Apis::Core::Hashable
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping above, the `name`
# should have the format of `operations/some/unique/name`.
# originally returns it. If you use the default HTTP mapping, the `name` should
# have the format of `operations/some/unique/name`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -217,7 +217,7 @@ module Google
attr_accessor :id
# HTTP path dispatch rules for requests to the app that do not explicitly target
# a service or version. The rules are order-dependent.
# a service or version. The rules are order-dependent. @OutputOnly
# Corresponds to the JSON property `dispatchRules`
# @return [Array<Google::Apis::AppengineV1beta5::UrlDispatchRule>]
attr_accessor :dispatch_rules
@ -229,10 +229,11 @@ module Google
# @return [String]
attr_accessor :auth_domain
# The location from which the application will be run. Choices are "us" for
# United States and "eu" for European Union. Application instances will run out
# of data centers in the chosen location and all of the application's End User
# Content will be stored at rest in the chosen location. The default is "us".
# The location from which the application will be run. Application instances
# will run out of data centers in the chosen location and all of the application'
# s End User Content will be stored at rest. The default is "us-central".
# Choices are: "us-central" - Central US "europe-west" - Western Europe "us-
# east1" - Eastern US
# Corresponds to the JSON property `location`
# @return [String]
attr_accessor :location
@ -244,7 +245,7 @@ module Google
# @return [String]
attr_accessor :code_bucket
# Determines the cookie expiration policy for the application.
# Determines the cookie expiration policy for the application. @OutputOnly
# Corresponds to the JSON property `defaultCookieExpiration`
# @return [String]
attr_accessor :default_cookie_expiration
@ -1441,6 +1442,140 @@ module Google
end
end
# Response message for `Instances.ListInstances`.
class ListInstancesResponse
include Google::Apis::Core::Hashable
# The instances belonging to the requested version.
# Corresponds to the JSON property `instances`
# @return [Array<Google::Apis::AppengineV1beta5::Instance>]
attr_accessor :instances
# Continuation token for fetching the next page of results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@instances = args[:instances] if args.key?(:instances)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Instances are the computing units that App Engine uses to automatically scale
# an application.
class Instance
include Google::Apis::Core::Hashable
# The full path to the Instance resource in the API. Example: "apps/myapp/
# services/default/versions/v1/instances/instance-1" @OutputOnly
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The relative name/path of the instance within the version. Example: "instance-
# 1" @OutputOnly
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The App Engine release the instance is running on. @OutputOnly
# Corresponds to the JSON property `appEngineRelease`
# @return [String]
attr_accessor :app_engine_release
# Availability of instance. @OutputOnly
# Corresponds to the JSON property `availability`
# @return [String]
attr_accessor :availability
# For VMEngines instances, the name of GCE VM where the instance lives. @
# OutputOnly
# Corresponds to the JSON property `vmName`
# @return [String]
attr_accessor :vm_name
# For VMEngines instances, the zone where the GCE VM is located. @OutputOnly
# Corresponds to the JSON property `vmZoneName`
# @return [String]
attr_accessor :vm_zone_name
# For VMEngines instances, the GCE VM ID of the instance. @OutputOnly
# Corresponds to the JSON property `vmId`
# @return [String]
attr_accessor :vm_id
# Time when instance was started. @OutputOnly
# Corresponds to the JSON property `startTimestamp`
# @return [String]
attr_accessor :start_timestamp
# Number of requests (since the clone was started). @OutputOnly
# Corresponds to the JSON property `requests`
# @return [Fixnum]
attr_accessor :requests
# Number of errors since the instance was started. @OutputOnly
# Corresponds to the JSON property `errors`
# @return [Fixnum]
attr_accessor :errors
# QPS for this instance (averaged over the last minute). @OutputOnly
# Corresponds to the JSON property `qps`
# @return [Float]
attr_accessor :qps
# Latency in milliseconds (averaged over the last minute). @OutputOnly
# Corresponds to the JSON property `averageLatency`
# @return [Fixnum]
attr_accessor :average_latency
# Memory usage (in bytes). @OutputOnly
# Corresponds to the JSON property `memoryUsage`
# @return [String]
attr_accessor :memory_usage
# For VMEngines instances, the status of GCE VM where the instance lives. @
# OutputOnly
# Corresponds to the JSON property `vmStatus`
# @return [String]
attr_accessor :vm_status
# For VMEngines instances, whether the instance has been unlocked. @OutputOnly
# Corresponds to the JSON property `vmUnlocked`
# @return [Boolean]
attr_accessor :vm_unlocked
alias_method :vm_unlocked?, :vm_unlocked
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@id = args[:id] if args.key?(:id)
@app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
@availability = args[:availability] if args.key?(:availability)
@vm_name = args[:vm_name] if args.key?(:vm_name)
@vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name)
@vm_id = args[:vm_id] if args.key?(:vm_id)
@start_timestamp = args[:start_timestamp] if args.key?(:start_timestamp)
@requests = args[:requests] if args.key?(:requests)
@errors = args[:errors] if args.key?(:errors)
@qps = args[:qps] if args.key?(:qps)
@average_latency = args[:average_latency] if args.key?(:average_latency)
@memory_usage = args[:memory_usage] if args.key?(:memory_usage)
@vm_status = args[:vm_status] if args.key?(:vm_status)
@vm_unlocked = args[:vm_unlocked] if args.key?(:vm_unlocked)
end
end
# Metadata for the given google.longrunning.Operation.
class OperationMetadata
include Google::Apis::Core::Hashable

View File

@ -208,6 +208,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListInstancesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Instance
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OperationMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -567,6 +579,36 @@ module Google
end
end
class ListInstancesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :instances, as: 'instances', class: Google::Apis::AppengineV1beta5::Instance, decorator: Google::Apis::AppengineV1beta5::Instance::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Instance
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :id, as: 'id'
property :app_engine_release, as: 'appEngineRelease'
property :availability, as: 'availability'
property :vm_name, as: 'vmName'
property :vm_zone_name, as: 'vmZoneName'
property :vm_id, as: 'vmId'
property :start_timestamp, as: 'startTimestamp'
property :requests, as: 'requests'
property :errors, as: 'errors'
property :qps, as: 'qps'
property :average_latency, as: 'averageLatency'
property :memory_usage, as: 'memoryUsage'
property :vm_status, as: 'vmStatus'
property :vm_unlocked, as: 'vmUnlocked'
end
end
class OperationMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -22,8 +22,7 @@ module Google
module AppengineV1beta5
# Google App Engine Admin API
#
# The Google App Engine Admin API enables developers to provision and manage
# their App Engine applications.
# Provisions and manages App Engine applications.
#
# @example
# require 'google/apis/appengine_v1beta5'
@ -486,10 +485,10 @@ module Google
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1beta5::Version] parsed result object
# @yieldparam result [Google::Apis::AppengineV1beta5::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::Version]
# @return [Google::Apis::AppengineV1beta5::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
@ -498,8 +497,8 @@ module Google
command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options)
command.request_representation = Google::Apis::AppengineV1beta5::Version::Representation
command.request_object = version_object
command.response_representation = Google::Apis::AppengineV1beta5::Version::Representation
command.response_class = Google::Apis::AppengineV1beta5::Version
command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation
command.response_class = Google::Apis::AppengineV1beta5::Operation
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
@ -509,6 +508,49 @@ module Google
execute_or_queue_command(command, &block)
end
# Lists the instances of a version.
# @param [String] apps_id
# Part of `name`. Name of the resource requested. For example: "apps/myapp/
# services/default/versions/v1".
# @param [String] services_id
# Part of `name`. See documentation of `appsId`.
# @param [String] versions_id
# Part of `name`. See documentation of `appsId`.
# @param [Fixnum] page_size
# Maximum results to return per page.
# @param [String] page_token
# Continuation token for fetching the next page of results.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::AppengineV1beta5::ListInstancesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::AppengineV1beta5::ListInstancesResponse]
#
# @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_app_service_version_instances(apps_id, services_id, versions_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances', options)
command.response_representation = Google::Apis::AppengineV1beta5::ListInstancesResponse::Representation
command.response_class = Google::Apis::AppengineV1beta5::ListInstancesResponse
command.params['appsId'] = apps_id unless apps_id.nil?
command.params['servicesId'] = services_id unless services_id.nil?
command.params['versionsId'] = versions_id unless versions_id.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
protected
def apply_command_defaults(command)

View File

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

View File

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

View File

@ -283,16 +283,16 @@ module Google
# @return [Google::Apis::BigqueryV2::DatasetReference]
attr_accessor :dataset_reference
# [Experimental] The default lifetime of all tables in the dataset, in
# milliseconds. The minimum value is 3600000 milliseconds (one hour). Once this
# property is set, all newly-created tables in the dataset will have an
# expirationTime property set to the creation time plus the value in this
# property, and changing the value will only affect new tables, not existing
# ones. When the expirationTime for a given table is reached, that table will be
# deleted automatically. If a table's expirationTime is modified or removed
# before the table expires, or if you provide an explicit expirationTime when
# creating a table, that value takes precedence over the default expiration time
# indicated by this property.
# [Optional] The default lifetime of all tables in the dataset, in milliseconds.
# The minimum value is 3600000 milliseconds (one hour). Once this property is
# set, all newly-created tables in the dataset will have an expirationTime
# property set to the creation time plus the value in this property, and
# changing the value will only affect new tables, not existing ones. When the
# expirationTime for a given table is reached, that table will be deleted
# automatically. If a table's expirationTime is modified or removed before the
# table expires, or if you provide an explicit expirationTime when creating a
# table, that value takes precedence over the default expiration time indicated
# by this property.
# Corresponds to the JSON property `defaultTableExpirationMs`
# @return [String]
attr_accessor :default_table_expiration_ms
@ -879,6 +879,31 @@ module Google
end
end
#
class IntervalPartitionConfiguration
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `expirationMs`
# @return [String]
attr_accessor :expiration_ms
#
# 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)
@expiration_ms = args[:expiration_ms] if args.key?(:expiration_ms)
@type = args[:type] if args.key?(:type)
end
end
#
class Job
include Google::Apis::Core::Hashable
@ -1204,7 +1229,8 @@ module Google
# [Optional] The format of the data files. For CSV files, specify "CSV". For
# datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON,
# specify "NEWLINE_DELIMITED_JSON". The default value is CSV.
# specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". The default value
# is CSV.
# Corresponds to the JSON property `sourceFormat`
# @return [String]
attr_accessor :source_format
@ -2172,6 +2198,13 @@ module Google
# @return [String]
attr_accessor :num_rows
# [Experimental] List of partition configurations for this table. Currently only
# one configuration can be specified and it can only be an interval partition
# with type daily.
# Corresponds to the JSON property `partitionConfigurations`
# @return [Array<Google::Apis::BigqueryV2::TablePartitionConfiguration>]
attr_accessor :partition_configurations
# [Optional] Describes the schema of this table.
# Corresponds to the JSON property `schema`
# @return [Google::Apis::BigqueryV2::TableSchema]
@ -2225,6 +2258,7 @@ module Google
@location = args[:location] if args.key?(:location)
@num_bytes = args[:num_bytes] if args.key?(:num_bytes)
@num_rows = args[:num_rows] if args.key?(:num_rows)
@partition_configurations = args[:partition_configurations] if args.key?(:partition_configurations)
@schema = args[:schema] if args.key?(:schema)
@self_link = args[:self_link] if args.key?(:self_link)
@streaming_buffer = args[:streaming_buffer] if args.key?(:streaming_buffer)
@ -2456,9 +2490,9 @@ module Google
# @return [String]
attr_accessor :name
# [Required] The field data type. Possible values include STRING, INTEGER, FLOAT,
# BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains
# a nested schema).
# [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
# FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field
# contains a nested schema).
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
@ -2563,6 +2597,26 @@ module Google
end
end
# [Required] A partition configuration. Only one type of partition should be
# configured.
class TablePartitionConfiguration
include Google::Apis::Core::Hashable
# [Pick one] Configures an interval partition.
# Corresponds to the JSON property `interval`
# @return [Google::Apis::BigqueryV2::IntervalPartitionConfiguration]
attr_accessor :interval
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@interval = args[:interval] if args.key?(:interval)
end
end
#
class TableReference
include Google::Apis::Core::Hashable

View File

@ -106,6 +106,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class IntervalPartitionConfiguration
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Job
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -292,6 +298,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class TablePartitionConfiguration
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TableReference
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -507,6 +519,14 @@ module Google
end
end
class IntervalPartitionConfiguration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :expiration_ms, as: 'expirationMs'
property :type, as: 'type'
end
end
class Job
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -816,6 +836,8 @@ module Google
property :location, as: 'location'
property :num_bytes, as: 'numBytes'
property :num_rows, as: 'numRows'
collection :partition_configurations, as: 'partitionConfigurations', class: Google::Apis::BigqueryV2::TablePartitionConfiguration, decorator: Google::Apis::BigqueryV2::TablePartitionConfiguration::Representation
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
property :self_link, as: 'selfLink'
@ -922,6 +944,14 @@ module Google
end
end
class TablePartitionConfiguration
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :interval, as: 'interval', class: Google::Apis::BigqueryV2::IntervalPartitionConfiguration, decorator: Google::Apis::BigqueryV2::IntervalPartitionConfiguration::Representation
end
end
class TableReference
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

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

View File

@ -1995,6 +1995,21 @@ module Google
# @return [String]
attr_accessor :body
# The list of crm experiment ids.
# Corresponds to the JSON property `crmExperimentIds`
# @return [Array<String>]
attr_accessor :crm_experiment_ids
#
# Corresponds to the JSON property `doc_id`
# @return [String]
attr_accessor :doc_id
#
# Corresponds to the JSON property `doc_type`
# @return [String]
attr_accessor :doc_type
#
# Corresponds to the JSON property `dont_show_notification`
# @return [Boolean]
@ -2049,6 +2064,9 @@ module Google
# Update properties of this object
def update!(**args)
@body = args[:body] if args.key?(:body)
@crm_experiment_ids = args[:crm_experiment_ids] if args.key?(:crm_experiment_ids)
@doc_id = args[:doc_id] if args.key?(:doc_id)
@doc_type = args[:doc_type] if args.key?(:doc_type)
@dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification)
@icon_url = args[:icon_url] if args.key?(:icon_url)
@kind = args[:kind] if args.key?(:kind)
@ -3191,6 +3209,11 @@ module Google
# @return [Fixnum]
attr_accessor :entitlement_type
# Information on the ability to share with the family.
# Corresponds to the JSON property `familySharing`
# @return [Google::Apis::BooksV1::Volume::UserInfo::FamilySharing]
attr_accessor :family_sharing
# Whether or not the user shared this volume with the family.
# Corresponds to the JSON property `isFamilySharedFromUser`
# @return [Boolean]
@ -3203,14 +3226,18 @@ module Google
attr_accessor :is_family_shared_to_user
alias_method :is_family_shared_to_user?, :is_family_shared_to_user
# Whether or not this volume can be shared with the family by the user. This
# includes sharing eligibility of both the volume and the user. If the value is
# true, the user can initiate a family sharing action.
# Deprecated: Replaced by familySharing.
# Corresponds to the JSON property `isFamilySharingAllowed`
# @return [Boolean]
attr_accessor :is_family_sharing_allowed
alias_method :is_family_sharing_allowed?, :is_family_sharing_allowed
# Deprecated: Replaced by familySharing.
# Corresponds to the JSON property `isFamilySharingDisabledByFop`
# @return [Boolean]
attr_accessor :is_family_sharing_disabled_by_fop
alias_method :is_family_sharing_disabled_by_fop?, :is_family_sharing_disabled_by_fop
# Whether or not this volume is currently in "my books."
# Corresponds to the JSON property `isInMyBooks`
# @return [Boolean]
@ -3280,9 +3307,11 @@ module Google
@acquisition_type = args[:acquisition_type] if args.key?(:acquisition_type)
@copy = args[:copy] if args.key?(:copy)
@entitlement_type = args[:entitlement_type] if args.key?(:entitlement_type)
@family_sharing = args[:family_sharing] if args.key?(:family_sharing)
@is_family_shared_from_user = args[:is_family_shared_from_user] if args.key?(:is_family_shared_from_user)
@is_family_shared_to_user = args[:is_family_shared_to_user] if args.key?(:is_family_shared_to_user)
@is_family_sharing_allowed = args[:is_family_sharing_allowed] if args.key?(:is_family_sharing_allowed)
@is_family_sharing_disabled_by_fop = args[:is_family_sharing_disabled_by_fop] if args.key?(:is_family_sharing_disabled_by_fop)
@is_in_my_books = args[:is_in_my_books] if args.key?(:is_in_my_books)
@is_preordered = args[:is_preordered] if args.key?(:is_preordered)
@is_purchased = args[:is_purchased] if args.key?(:is_purchased)
@ -3332,6 +3361,42 @@ module Google
end
end
# Information on the ability to share with the family.
class FamilySharing
include Google::Apis::Core::Hashable
# The role of the user in the family.
# Corresponds to the JSON property `familyRole`
# @return [String]
attr_accessor :family_role
# Whether or not this volume can be shared with the family by the user. This
# includes sharing eligibility of both the volume and the user. If the value is
# true, the user can initiate a family sharing action.
# Corresponds to the JSON property `isSharingAllowed`
# @return [Boolean]
attr_accessor :is_sharing_allowed
alias_method :is_sharing_allowed?, :is_sharing_allowed
# Whether or not sharing this volume is temporarily disabled due to issues with
# the Family Wallet.
# Corresponds to the JSON property `isSharingDisabledByFop`
# @return [Boolean]
attr_accessor :is_sharing_disabled_by_fop
alias_method :is_sharing_disabled_by_fop?, :is_sharing_disabled_by_fop
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@family_role = args[:family_role] if args.key?(:family_role)
@is_sharing_allowed = args[:is_sharing_allowed] if args.key?(:is_sharing_allowed)
@is_sharing_disabled_by_fop = args[:is_sharing_disabled_by_fop] if args.key?(:is_sharing_disabled_by_fop)
end
end
# Period during this book is/was a valid rental.
class RentalPeriod
include Google::Apis::Core::Hashable

View File

@ -520,6 +520,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class FamilySharing
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RentalPeriod
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1188,6 +1194,9 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :body, as: 'body'
collection :crm_experiment_ids, as: 'crmExperimentIds'
property :doc_id, as: 'doc_id'
property :doc_type, as: 'doc_type'
property :dont_show_notification, as: 'dont_show_notification'
property :icon_url, as: 'iconUrl'
property :kind, as: 'kind'
@ -1529,9 +1538,12 @@ module Google
property :copy, as: 'copy', class: Google::Apis::BooksV1::Volume::UserInfo::Copy, decorator: Google::Apis::BooksV1::Volume::UserInfo::Copy::Representation
property :entitlement_type, as: 'entitlementType'
property :family_sharing, as: 'familySharing', class: Google::Apis::BooksV1::Volume::UserInfo::FamilySharing, decorator: Google::Apis::BooksV1::Volume::UserInfo::FamilySharing::Representation
property :is_family_shared_from_user, as: 'isFamilySharedFromUser'
property :is_family_shared_to_user, as: 'isFamilySharedToUser'
property :is_family_sharing_allowed, as: 'isFamilySharingAllowed'
property :is_family_sharing_disabled_by_fop, as: 'isFamilySharingDisabledByFop'
property :is_in_my_books, as: 'isInMyBooks'
property :is_preordered, as: 'isPreordered'
property :is_purchased, as: 'isPurchased'
@ -1560,6 +1572,15 @@ module Google
end
end
class FamilySharing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :family_role, as: 'familyRole'
property :is_sharing_allowed, as: 'isSharingAllowed'
property :is_sharing_disabled_by_fop, as: 'isSharingDisabledByFop'
end
end
class RentalPeriod
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -20,12 +20,12 @@ module Google
module Apis
# Calendar API
#
# Lets you manipulate events and other calendar data.
# Manipulates events and other calendar data.
#
# @see https://developers.google.com/google-apps/calendar/firstapp
module CalendarV3
VERSION = 'V3'
REVISION = '20160306'
REVISION = '20160410'
# Manage your calendars
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'

View File

@ -22,7 +22,7 @@ module Google
module CalendarV3
# Calendar API
#
# Lets you manipulate events and other calendar data.
# Manipulates events and other calendar data.
#
# @example
# require 'google/apis/calendar_v3'

View File

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

View File

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

View File

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

View File

@ -29,10 +29,10 @@ module Google
# require 'google/apis/cloudresourcemanager_v1'
#
# Cloudresourcemanager = Google::Apis::CloudresourcemanagerV1 # Alias the module
# service = Cloudresourcemanager::CloudresourcemanagerService.new
# service = Cloudresourcemanager::CloudResourceManagerService.new
#
# @see https://cloud.google.com/resource-manager
class CloudresourcemanagerService < Google::Apis::Core::BaseService
class CloudResourceManagerService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/resource-manager
module CloudresourcemanagerV1beta1
VERSION = 'V1beta1'
REVISION = '20160225'
REVISION = '20160316'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -29,10 +29,10 @@ module Google
# require 'google/apis/cloudresourcemanager_v1beta1'
#
# Cloudresourcemanager = Google::Apis::CloudresourcemanagerV1beta1 # Alias the module
# service = Cloudresourcemanager::CloudresourcemanagerService.new
# service = Cloudresourcemanager::CloudResourceManagerService.new
#
# @see https://cloud.google.com/resource-manager
class CloudresourcemanagerService < Google::Apis::Core::BaseService
class CloudResourceManagerService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
# quota, and reports. Required unless you provide an OAuth 2.0 token.

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
module ClouduseraccountsBeta
VERSION = 'Beta'
REVISION = '20160301'
REVISION = '20160316'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -401,7 +401,7 @@ module Google
# @return [String]
attr_accessor :insert_time
# [Output Only] Type of the resource. Always compute#operation for operation
# [Output Only] Type of the resource. Always compute#operation for Operation
# resources.
# Corresponds to the JSON property `kind`
# @return [String]

View File

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

View File

@ -485,16 +485,21 @@ module Google
# @return [String]
attr_accessor :disk_type
# A source image used to create the disk. You can provide a private (custom)
# image, and Compute Engine will use the corresponding image from your project.
# For example:
# The source image used to create this disk. If the source image is deleted,
# this field will not be set.
# To create a disk with one of the public operating system images, specify the
# image by its family name. For example, specify family/debian-8 to use the
# latest Debian 8 image:
# projects/debian-cloud/global/images/family/debian-8
# Alternatively, use a specific version of a public operating system image:
# projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
# To create a disk with a private image that you created, specify the image name
# in the following format:
# global/images/my-private-image
# Or you can provide an image from a publicly-available project. For example, to
# use a Debian image from the debian-cloud project, make sure to include the
# project in the URL:
# projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
# where vYYYYMMDD is the image version. The fully-qualified URL will also work
# in both cases.
# You can also specify a private image by its image family, which returns the
# latest version of the image in that family. Replace the image name with family/
# family-name:
# global/images/family/my-private-family
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
@ -1092,6 +1097,12 @@ module Google
# @return [String]
attr_accessor :protocol
# [Output Only] URL of the region where the regional backend service resides.
# This field is not applicable to global backend services.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -1121,6 +1132,7 @@ module Google
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@protocol = args[:protocol] if args.key?(:protocol)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
end
@ -1346,16 +1358,20 @@ module Google
# A fingerprint for the labels being applied to this disk, which is essentially
# a hash of the labels set used for optimistic locking. The fingerprint is
# initially generated by Compute Engine and changes after every request to
# modify or update metadata. You must always provide an up-to-date fingerprint
# modify or update labels. You must always provide an up-to-date fingerprint
# hash in order to update or change labels.
# To see the latest fingerprint, make get() request to the disk.
# To see the latest fingerprint, make a get() request to retrieve a disk.
# Corresponds to the JSON property `labelFingerprint`
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this disk. These can be later modified by the setLabels
# method. Each label key & value must comply with RFC1035. Label values may be
# empty.
# Labels to apply to this disk. These can be later modified by the setLabels()
# method. Each label key & value must comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. A label value can also be
# empty (e.g. "example-label": "").
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -1405,26 +1421,21 @@ module Google
# @return [String]
attr_accessor :size_gb
# The source image used to create this disk. If the source image is deleted from
# the system, this field will not be set, even if an image with the same name
# has been re-created.
# When creating a disk, you can provide a private (custom) image using the
# following input, and Compute Engine will use the corresponding image from your
# project. For example:
# The source image used to create this disk. If the source image is deleted,
# this field will not be set.
# To create a disk with one of the public operating system images, specify the
# image by its family name. For example, specify family/debian-8 to use the
# latest Debian 8 image:
# projects/debian-cloud/global/images/family/debian-8
# Alternatively, use a specific version of a public operating system image:
# projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
# To create a disk with a private image that you created, specify the image name
# in the following format:
# global/images/my-private-image
# Or you can provide an image from a publicly-available project. For example, to
# use a Debian image from the debian-cloud project, make sure to include the
# project in the URL:
# projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
# where vYYYYMMDD is the image version. The fully-qualified URL will also work
# 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:
# You can also specify a private image by its image family, which returns the
# latest version of the image in that family. Replace the image name with family/
# family-name:
# 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`
# @return [String]
attr_accessor :source_image
@ -2478,13 +2489,16 @@ module Google
class GlobalSetLabelsRequest
include Google::Apis::Core::Hashable
# Fingerprint of the previous set of labels for this resource, used to detect
# conflicts.
# The fingerprint of the previous set of labels for this resource, used to
# detect conflicts. The fingerprint is initially generated by Compute Engine and
# changes after every request to modify or update labels. You must always
# provide an up-to-date fingerprint hash when updating or changing labels. Make
# a get() request to the resource to get the latest fingerprint.
# Corresponds to the JSON property `labelFingerprint`
# @return [String]
attr_accessor :label_fingerprint
# The new labels for the resource.
# The labels to set for this resource.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -2933,8 +2947,9 @@ module Google
# @return [String]
attr_accessor :disk_size_gb
# Image family for the resource; provided by the client when the resource is
# created.
# The name of the image family to which this image belongs. You can create disks
# by specifying an image family instead of a specific image name. The image
# family always returns its latest image that is not deprecated.
# Corresponds to the JSON property `family`
# @return [String]
attr_accessor :family
@ -2956,18 +2971,22 @@ module Google
attr_accessor :kind
# A fingerprint for the labels being applied to this image, which is essentially
# a hash of the labels set used for optimistic locking. The fingerprint is
# initially generated by Compute Engine and changes after every request to
# modify or update metadata. You must always provide an up-to-date fingerprint
# hash in order to update or change labels.
# To see the latest fingerprint, make get() request to retrieve the image.
# a hash of the labels used for optimistic locking. The fingerprint is initially
# generated by Compute Engine and changes after every request to modify or
# update labels. You must always provide an up-to-date fingerprint hash in order
# to update or change labels.
# To see the latest fingerprint, make a get() request to retrieve an image.
# Corresponds to the JSON property `labelFingerprint`
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this image. These can be later modified by the setLabels
# method. Each label key & value must comply with RFC1035. Label values may be
# empty.
# Labels to apply to this image. These can be later modified by the setLabels()
# method. Each label key & value must comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. A label value can also be
# empty (e.g. "example-label": "").
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -3706,6 +3725,14 @@ module Google
# @return [Fixnum]
attr_accessor :creating
# [Output Only] The number of instances that the managed instance group will
# attempt to create. The group attempts to create each instance only once. If
# the group fails to create one of these instances, it decreases the group's
# target_size value accordingly.
# Corresponds to the JSON property `creatingWithoutRetries`
# @return [Fixnum]
attr_accessor :creating_without_retries
# [Output Only] The number of instances in the managed instance group that are
# scheduled to be deleted or are currently being deleted.
# Corresponds to the JSON property `deleting`
@ -3747,6 +3774,7 @@ module Google
def update!(**args)
@abandoning = args[:abandoning] if args.key?(:abandoning)
@creating = args[:creating] if args.key?(:creating)
@creating_without_retries = args[:creating_without_retries] if args.key?(:creating_without_retries)
@deleting = args[:deleting] if args.key?(:deleting)
@none = args[:none] if args.key?(:none)
@recreating = args[:recreating] if args.key?(:recreating)
@ -3960,6 +3988,46 @@ module Google
end
end
#
class InstanceGroupManagersResizeAdvancedRequest
include Google::Apis::Core::Hashable
# If this flag is true, we will attempt to create all instances resized up with
# this request only once. In case of an error during creation, we will not
# create this instance, and we will decrease the target_size. If the flag is
# false, we will keep trying to create each instance until we succeed.
# This flag matters only in the first attempt of creation of an instance. If an
# instance creation with this flag succeeds, the instance behaves the same way
# as all the other instances created with the flag set to false. In particular,
# consecutive instance creations (in case an instance dies and needs to be
# recreated) will not fail after the first attempt.
# This flag is applicable only to the current resize request. It does not
# influence other resize requests in any way.
# You can see which instances is being creating in which mode by calling the
# listManagedInstances API.
# Corresponds to the JSON property `noCreationRetries`
# @return [Boolean]
attr_accessor :no_creation_retries
alias_method :no_creation_retries?, :no_creation_retries
# The number of running instances that the managed instance group should
# maintain at any given time. The group automatically adds or removes instances
# to maintain the number of instances specified by this parameter.
# Corresponds to the JSON property `targetSize`
# @return [Fixnum]
attr_accessor :target_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@no_creation_retries = args[:no_creation_retries] if args.key?(:no_creation_retries)
@target_size = args[:target_size] if args.key?(:target_size)
end
end
#
class InstanceGroupManagersScopedList
include Google::Apis::Core::Hashable
@ -5591,7 +5659,7 @@ module Google
# @return [String]
attr_accessor :insert_time
# [Output Only] Type of the resource. Always compute#operation for operation
# [Output Only] Type of the resource. Always compute#operation for Operation
# resources.
# Corresponds to the JSON property `kind`
# @return [String]
@ -6729,10 +6797,9 @@ module Google
class RouterBgp
include Google::Apis::Core::Hashable
# Local BGP Autonomous System Number (ASN). Can be a constant public ASN value
# for Google, or a customer-specified private ASN. In either case, the value
# will be fixed for this router resource. All VPN tunnels that link to this
# router will have the same local ASN.
# Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN,
# either 16-bit or 32-bit. The value will be fixed for this router resource. All
# VPN tunnels that link to this router will have the same local ASN.
# Corresponds to the JSON property `asn`
# @return [Fixnum]
attr_accessor :asn
@ -6807,9 +6874,10 @@ module Google
class RouterInterface
include Google::Apis::Core::Hashable
# IP address and range of the interface. The value should be a CIDR-formatted
# string, for example: 169.254.0.1/30. NOTE: Do NOT truncate address, as it
# represents IP address of interface.
# IP address and range of the interface. The IP range must be in the RFC3927
# link-local IP space. The value must be a CIDR-formatted string, for example:
# 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP
# address of the interface.
# Corresponds to the JSON property `ipRange`
# @return [String]
attr_accessor :ip_range
@ -6936,7 +7004,7 @@ module Google
# @return [String]
attr_accessor :linked_vpn_tunnel
# Name of this BGP peer. Unique within the routes resource.
# Name of this BGP peer. Unique within the Routers resource.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -7254,16 +7322,20 @@ module Google
# A fingerprint for the labels being applied to this snapshot, which is
# essentially a hash of the labels set used for optimistic locking. The
# fingerprint is initially generated by Compute Engine and changes after every
# request to modify or update metadata. You must always provide an up-to-date
# request to modify or update labels. You must always provide an up-to-date
# fingerprint hash in order to update or change labels.
# To see the latest fingerprint, make get() request to the snapshot.
# To see the latest fingerprint, make a get() request to retrieve a snapshot.
# Corresponds to the JSON property `labelFingerprint`
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this snapshot. These can be later modified by the setLabels
# method. Each label key & value must comply with RFC1035. Label values may be
# empty.
# Labels to apply to this snapshot. These can be later modified by the setLabels(
# ) method. Each label key & value must comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression [a-z]([-a-
# z0-9]*[a-z0-9])? which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash. A label value can also be
# empty (e.g. "example-label": "").
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -7585,7 +7657,7 @@ module Google
# @return [String]
attr_accessor :network
# [Output Only] URL of the region where the Subnetwork resides.
# URL of the region where the Subnetwork resides.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
@ -9804,13 +9876,6 @@ module Google
# @return [String]
attr_accessor :kind
# [Output Only] Any scheduled maintenance windows for this zone. When the zone
# is in a maintenance window, all resources which reside in the zone will be
# unavailable. For more information, see Maintenance Windows
# Corresponds to the JSON property `maintenanceWindows`
# @return [Array<Google::Apis::ComputeBeta::Zone::MaintenanceWindow>]
attr_accessor :maintenance_windows
# [Output Only] Name of the resource.
# Corresponds to the JSON property `name`
# @return [String]
@ -9842,49 +9907,11 @@ module Google
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
end
#
class MaintenanceWindow
include Google::Apis::Core::Hashable
# [Output Only] Starting time of the maintenance window, in RFC3339 format.
# Corresponds to the JSON property `beginTime`
# @return [String]
attr_accessor :begin_time
# [Output Only] Textual description of the maintenance window.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] Ending time of the maintenance window, in RFC3339 format.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# [Output Only] Name of the maintenance window.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@begin_time = args[:begin_time] if args.key?(:begin_time)
@description = args[:description] if args.key?(:description)
@end_time = args[:end_time] if args.key?(:end_time)
@name = args[:name] if args.key?(:name)
end
end
end
# Contains a list of zone resources.
@ -9938,13 +9965,16 @@ module Google
class ZoneSetLabelsRequest
include Google::Apis::Core::Hashable
# Fingerprint of the previous set of labels for this resource, used to detect
# conflicts.
# The fingerprint of the previous set of labels for this resource, used to
# detect conflicts. The fingerprint is initially generated by Compute Engine and
# changes after every request to modify or update labels. You must always
# provide an up-to-date fingerprint hash in order to update or change labels.
# Make a get() request to the resource to get the latest fingerprint.
# Corresponds to the JSON property `labelFingerprint`
# @return [String]
attr_accessor :label_fingerprint
# The new labels for the resource.
# The labels to set for this resource.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels

View File

@ -460,6 +460,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersResizeAdvancedRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupManagersScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1273,12 +1279,6 @@ module Google
class Zone
class Representation < Google::Apis::Core::JsonRepresentation; end
class MaintenanceWindow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
@ -1540,6 +1540,7 @@ module Google
property :port, as: 'port'
property :port_name, as: 'portName'
property :protocol, as: 'protocol'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :timeout_sec, as: 'timeoutSec'
end
@ -2126,6 +2127,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :abandoning, as: 'abandoning'
property :creating, as: 'creating'
property :creating_without_retries, as: 'creatingWithoutRetries'
property :deleting, as: 'deleting'
property :none, as: 'none'
property :recreating, as: 'recreating'
@ -2195,6 +2197,14 @@ module Google
end
end
class InstanceGroupManagersResizeAdvancedRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :no_creation_retries, as: 'noCreationRetries'
property :target_size, as: 'targetSize'
end
end
class InstanceGroupManagersScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3684,23 +3694,11 @@ module Google
property :description, as: 'description'
property :id, as: 'id'
property :kind, as: 'kind'
collection :maintenance_windows, as: 'maintenanceWindows', class: Google::Apis::ComputeBeta::Zone::MaintenanceWindow, decorator: Google::Apis::ComputeBeta::Zone::MaintenanceWindow::Representation
property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :status, as: 'status'
end
class MaintenanceWindow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :begin_time, as: 'beginTime'
property :description, as: 'description'
property :end_time, as: 'endTime'
property :name, as: 'name'
end
end
end
class ZoneList

View File

@ -1580,7 +1580,7 @@ module Google
# Creates a persistent disk in the specified project using the data in the
# request. You can create a disk with a sourceImage, a sourceSnapshot, or create
# an empty 200 GB data disk by omitting all properties. You can also create a
# an empty 500 GB data disk by omitting all properties. You can also create a
# disk that is larger than the default size by specifying the sizeGb property.
# @param [String] project
# Project ID for this request.
@ -4041,7 +4041,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the latest undeprecated image for an image family.
# Returns the latest image that is part of an image family and is not deprecated.
# @param [String] project
# Project ID for this request.
# @param [String] family
@ -4824,6 +4824,56 @@ module Google
execute_or_queue_command(command, &block)
end
# Resizes the managed instance group. If you increase the size, the group
# creates new instances using the current instance template. If you decrease the
# size, the group deletes instances. The resize operation is marked DONE when
# the resize actions are scheduled even if the group has not yet added or
# deleted any instances. You must separately verify the status of the creating
# or deleting actions with the listmanagedinstances method. This method is an
# extended version of Resize and it supports more advanced options.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone where the managed instance group is located.
# @param [String] instance_group_manager
# The name of the managed instance group.
# @param [Google::Apis::ComputeBeta::InstanceGroupManagersResizeAdvancedRequest] instance_group_managers_resize_advanced_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeBeta::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def resize_instance_group_manager_advanced(project, zone, instance_group_manager, instance_group_managers_resize_advanced_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced', options)
command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagersResizeAdvancedRequest::Representation
command.request_object = instance_group_managers_resize_advanced_request_object
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
command.response_class = Google::Apis::ComputeBeta::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.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
# Modifies the autohealing policies.
# @param [String] project
# Project ID for this request.

View File

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

View File

@ -474,16 +474,21 @@ module Google
# @return [String]
attr_accessor :disk_type
# A source image used to create the disk. You can provide a private (custom)
# image, and Compute Engine will use the corresponding image from your project.
# For example:
# The source image used to create this disk. If the source image is deleted,
# this field will not be set.
# To create a disk with one of the public operating system images, specify the
# image by its family name. For example, specify family/debian-8 to use the
# latest Debian 8 image:
# projects/debian-cloud/global/images/family/debian-8
# Alternatively, use a specific version of a public operating system image:
# projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
# To create a disk with a private image that you created, specify the image name
# in the following format:
# global/images/my-private-image
# Or you can provide an image from a publicly-available project. For example, to
# use a Debian image from the debian-cloud project, make sure to include the
# project in the URL:
# projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
# where vYYYYMMDD is the image version. The fully-qualified URL will also work
# in both cases.
# You can also specify a private image by its image family, which returns the
# latest version of the image in that family. Replace the image name with family/
# family-name:
# global/images/family/my-private-family
# Corresponds to the JSON property `sourceImage`
# @return [String]
attr_accessor :source_image
@ -1068,6 +1073,12 @@ module Google
# @return [String]
attr_accessor :protocol
# [Output Only] URL of the region where the regional backend service resides.
# This field is not applicable to global backend services.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -1096,6 +1107,7 @@ module Google
@port = args[:port] if args.key?(:port)
@port_name = args[:port_name] if args.key?(:port_name)
@protocol = args[:protocol] if args.key?(:protocol)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec)
end
@ -1299,26 +1311,21 @@ module Google
# @return [String]
attr_accessor :size_gb
# The source image used to create this disk. If the source image is deleted from
# the system, this field will not be set, even if an image with the same name
# has been re-created.
# When creating a disk, you can provide a private (custom) image using the
# following input, and Compute Engine will use the corresponding image from your
# project. For example:
# The source image used to create this disk. If the source image is deleted,
# this field will not be set.
# To create a disk with one of the public operating system images, specify the
# image by its family name. For example, specify family/debian-8 to use the
# latest Debian 8 image:
# projects/debian-cloud/global/images/family/debian-8
# Alternatively, use a specific version of a public operating system image:
# projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD
# To create a disk with a private image that you created, specify the image name
# in the following format:
# global/images/my-private-image
# Or you can provide an image from a publicly-available project. For example, to
# use a Debian image from the debian-cloud project, make sure to include the
# project in the URL:
# projects/debian-cloud/global/images/debian-7-wheezy-vYYYYMMDD
# where vYYYYMMDD is the image version. The fully-qualified URL will also work
# 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:
# You can also specify a private image by its image family, which returns the
# latest version of the image in that family. Replace the image name with family/
# family-name:
# 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`
# @return [String]
attr_accessor :source_image
@ -1795,6 +1802,25 @@ module Google
end
end
#
class DisksResizeRequest
include Google::Apis::Core::Hashable
# The new size of the persistent disk, which is specified in GB.
# Corresponds to the JSON property `sizeGb`
# @return [String]
attr_accessor :size_gb
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@size_gb = args[:size_gb] if args.key?(:size_gb)
end
end
#
class DisksScopedList
include Google::Apis::Core::Hashable
@ -5379,7 +5405,7 @@ module Google
# @return [String]
attr_accessor :insert_time
# [Output Only] Type of the resource. Always compute#operation for operation
# [Output Only] Type of the resource. Always compute#operation for Operation
# resources.
# Corresponds to the JSON property `kind`
# @return [String]
@ -6804,7 +6830,7 @@ module Google
# @return [String]
attr_accessor :network
# [Output Only] URL of the region where the Subnetwork resides.
# URL of the region where the Subnetwork resides.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
@ -8978,13 +9004,6 @@ module Google
# @return [String]
attr_accessor :kind
# [Output Only] Any scheduled maintenance windows for this zone. When the zone
# is in a maintenance window, all resources which reside in the zone will be
# unavailable. For more information, see Maintenance Windows
# Corresponds to the JSON property `maintenanceWindows`
# @return [Array<Google::Apis::ComputeV1::Zone::MaintenanceWindow>]
attr_accessor :maintenance_windows
# [Output Only] Name of the resource.
# Corresponds to the JSON property `name`
# @return [String]
@ -9016,49 +9035,11 @@ module Google
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@status = args[:status] if args.key?(:status)
end
#
class MaintenanceWindow
include Google::Apis::Core::Hashable
# [Output Only] Starting time of the maintenance window, in RFC3339 format.
# Corresponds to the JSON property `beginTime`
# @return [String]
attr_accessor :begin_time
# [Output Only] Textual description of the maintenance window.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] Ending time of the maintenance window, in RFC3339 format.
# Corresponds to the JSON property `endTime`
# @return [String]
attr_accessor :end_time
# [Output Only] Name of the maintenance window.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@begin_time = args[:begin_time] if args.key?(:begin_time)
@description = args[:description] if args.key?(:description)
@end_time = args[:end_time] if args.key?(:end_time)
@name = args[:name] if args.key?(:name)
end
end
end
# Contains a list of zone resources.

View File

@ -226,6 +226,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class DisksResizeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class DisksScopedList
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1165,12 +1171,6 @@ module Google
class Zone
class Representation < Google::Apis::Core::JsonRepresentation; end
class MaintenanceWindow
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
@ -1420,6 +1420,7 @@ module Google
property :port, as: 'port'
property :port_name, as: 'portName'
property :protocol, as: 'protocol'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :timeout_sec, as: 'timeoutSec'
end
@ -1583,6 +1584,13 @@ module Google
end
end
class DisksResizeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :size_gb, as: 'sizeGb'
end
end
class DisksScopedList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3354,23 +3362,11 @@ module Google
property :description, as: 'description'
property :id, as: 'id'
property :kind, as: 'kind'
collection :maintenance_windows, as: 'maintenanceWindows', class: Google::Apis::ComputeV1::Zone::MaintenanceWindow, decorator: Google::Apis::ComputeV1::Zone::MaintenanceWindow::Representation
property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :status, as: 'status'
end
class MaintenanceWindow
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :begin_time, as: 'beginTime'
property :description, as: 'description'
property :end_time, as: 'endTime'
property :name, as: 'name'
end
end
end
class ZoneList

View File

@ -1371,7 +1371,7 @@ module Google
# Creates a persistent disk in the specified project using the data in the
# request. You can create a disk with a sourceImage, a sourceSnapshot, or create
# an empty 200 GB data disk by omitting all properties. You can also create a
# an empty 500 GB data disk by omitting all properties. You can also create a
# disk that is larger than the default size by specifying the sizeGb property.
# @param [String] project
# Project ID for this request.
@ -1488,6 +1488,50 @@ module Google
execute_or_queue_command(command, &block)
end
# Resizes the specified persistent disk.
# @param [String] project
# Project ID for this request.
# @param [String] zone
# The name of the zone for this request.
# @param [String] disk
# The name of the persistent disk.
# @param [Google::Apis::ComputeV1::DisksResizeRequest] disks_resize_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeV1::Operation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def resize_disk(project, zone, disk, disks_resize_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/zones/{zone}/disks/{disk}/resize', options)
command.request_representation = Google::Apis::ComputeV1::DisksResizeRequest::Representation
command.request_object = disks_resize_request_object
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
command.response_class = Google::Apis::ComputeV1::Operation
command.params['project'] = project unless project.nil?
command.params['zone'] = zone unless zone.nil?
command.params['disk'] = disk unless disk.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Deletes the specified firewall.
# @param [String] project
# Project ID for this request.

View File

@ -20,13 +20,13 @@ module Google
module Apis
# Google Container Engine API
#
# The Google Container Engine API is used for building and managing container
# based applications, powered by the open source Kubernetes technology.
# Builds and manages clusters that run container-based applications, powered by
# open source Kubernetes technology.
#
# @see https://cloud.google.com/container-engine/
module ContainerV1
VERSION = 'V1'
REVISION = '20150603'
REVISION = '20160321'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -31,6 +31,12 @@ module Google
# @return [Array<Google::Apis::ContainerV1::Cluster>]
attr_accessor :clusters
# If any zones are listed here, the list of clusters returned may be missing
# those zones.
# Corresponds to the JSON property `missingZones`
# @return [Array<String>]
attr_accessor :missing_zones
def initialize(**args)
update!(**args)
end
@ -38,6 +44,7 @@ module Google
# Update properties of this object
def update!(**args)
@clusters = args[:clusters] if args.key?(:clusters)
@missing_zones = args[:missing_zones] if args.key?(:missing_zones)
end
end
@ -59,14 +66,16 @@ module Google
attr_accessor :description
# The number of nodes to create in this cluster. You must ensure that your
# Compute Engine [resource quota](/compute/docs/resource-quotas) is sufficient
# for this number of instances. You must also have available firewall and routes
# quota.
# Compute Engine resource quota is sufficient for this number of instances. You
# must also have available firewall and routes quota. For requests, this field
# should only be used in lieu of a "node_pool" object, since this configuration (
# along with the "node_config") will be used to create a "NodePool" object with
# an auto-generated name. Do not use this and a node_pool at the same time.
# Corresponds to the JSON property `initialNodeCount`
# @return [Fixnum]
attr_accessor :initial_node_count
# Per-node parameters.
# Parameters that describe the nodes in a cluster.
# Corresponds to the JSON property `nodeConfig`
# @return [Google::Apis::ContainerV1::NodeConfig]
attr_accessor :node_config
@ -77,25 +86,25 @@ module Google
# @return [Google::Apis::ContainerV1::MasterAuth]
attr_accessor :master_auth
# The logging service that the cluster should write logs to. Currently available
# options: * "logging.googleapis.com" - the Google Cloud Logging service * "none"
# - no logs will be exported from the cluster * "" - default value; the default
# is "logging.googleapis.com"
# The logging service the cluster should use to write logs. Currently available
# options: * `logging.googleapis.com` - the Google Cloud Logging service. * `
# none` - no logs will be exported from the cluster. * if left as an empty
# string,`logging.googleapis.com` will be used.
# Corresponds to the JSON property `loggingService`
# @return [String]
attr_accessor :logging_service
# The monitoring service that the cluster should write metrics to. Currently
# available options: * "monitoring.googleapis.com" - the Google Cloud Monitoring
# service * "none" - no metrics will be exported from the cluster * "" - default
# value; the default is "monitoring.googleapis.com"
# The monitoring service the cluster should use to write metrics. Currently
# available options: * `monitoring.googleapis.com` - the Google Cloud Monitoring
# service. * `none` - no metrics will be exported from the cluster. * if left as
# an empty string, `monitoring.googleapis.com` will be used.
# Corresponds to the JSON property `monitoringService`
# @return [String]
attr_accessor :monitoring_service
# The name of the Google Compute Engine [network](/compute/docs/networking#
# networks_1) to which the cluster is connected. If left unspecified, the "
# default" network will be used.
# The name of the Google Compute Engine [network](/compute/docs/networks-and-
# firewalls#networks) to which the cluster is connected. If left unspecified,
# the `default` network will be used.
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
@ -108,6 +117,18 @@ module Google
# @return [String]
attr_accessor :cluster_ipv4_cidr
# Configuration for the addons that can be automatically spun up in the cluster,
# enabling additional functionality.
# Corresponds to the JSON property `addonsConfig`
# @return [Google::Apis::ContainerV1::AddonsConfig]
attr_accessor :addons_config
# The name of the Google Compute Engine [subnetwork](/compute/docs/subnetworks)
# to which the cluster is connected.
# Corresponds to the JSON property `subnetwork`
# @return [String]
attr_accessor :subnetwork
# [Output only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@ -119,15 +140,15 @@ module Google
# @return [String]
attr_accessor :zone
# [Output only] The IP address of this cluster's Kubernetes master endpoint. The
# endpoint can be accessed from the internet at `https://username:password@
# endpoint/`. See the `masterAuth` property of this resource for username and
# password information.
# [Output only] The IP address of this cluster's master endpoint. The endpoint
# can be accessed from the internet at `https://username:password@endpoint/`.
# See the `masterAuth` property of this resource for username and password
# information.
# Corresponds to the JSON property `endpoint`
# @return [String]
attr_accessor :endpoint
# [Output only] The software version of Kubernetes master and kubelets used in
# [Output only] The software version of the master endpoint and kubelets used in
# the cluster when it was first created. The version can be upgraded over time.
# Corresponds to the JSON property `initialClusterVersion`
# @return [String]
@ -139,8 +160,8 @@ module Google
attr_accessor :current_master_version
# [Output only] The current version of the node software components. If they are
# currently at different versions because they're in the process of being
# upgraded, this reflects the minimum version of any of them.
# currently at multiple versions because they're in the process of being
# upgraded, this reflects the minimum version of all nodes.
# Corresponds to the JSON property `currentNodeVersion`
# @return [String]
attr_accessor :current_node_version
@ -163,15 +184,15 @@ module Google
attr_accessor :status_message
# [Output only] The size of the address space on each node for hosting
# containers. This is provisioned from within the container_ipv4_cidr range.
# containers. This is provisioned from within the `container_ipv4_cidr` range.
# Corresponds to the JSON property `nodeIpv4CidrSize`
# @return [Fixnum]
attr_accessor :node_ipv4_cidr_size
# [Output only] The IP address range of the Kubernetes services in this cluster,
# in [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
# notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last /
# 16 from the container CIDR.
# notation (e.g. `1.2.3.4/29`). Service addresses are typically put in the last `
# /16` from the container CIDR.
# Corresponds to the JSON property `servicesIpv4Cidr`
# @return [String]
attr_accessor :services_ipv4_cidr
@ -182,6 +203,11 @@ module Google
# @return [Array<String>]
attr_accessor :instance_group_urls
# [Output only] The number of nodes currently in the cluster.
# Corresponds to the JSON property `currentNodeCount`
# @return [Fixnum]
attr_accessor :current_node_count
def initialize(**args)
update!(**args)
end
@ -197,6 +223,8 @@ module Google
@monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
@network = args[:network] if args.key?(:network)
@cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
@addons_config = args[:addons_config] if args.key?(:addons_config)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@self_link = args[:self_link] if args.key?(:self_link)
@zone = args[:zone] if args.key?(:zone)
@endpoint = args[:endpoint] if args.key?(:endpoint)
@ -209,10 +237,11 @@ module Google
@node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
@services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
@current_node_count = args[:current_node_count] if args.key?(:current_node_count)
end
end
# Per-node parameters.
# Parameters that describe the nodes in a cluster.
class NodeConfig
include Google::Apis::Core::Hashable
@ -234,11 +263,26 @@ module Google
# required, and by default are not included: * `https://www.googleapis.com/auth/
# compute` is required for mounting persistent storage on your nodes. * `https://
# www.googleapis.com/auth/devstorage.read_only` is required for communicating
# with *gcr.io*. If unspecified, no scopes are added.
# with **gcr.io** (the [Google Container Registry](/container-registry/)). If
# unspecified, no scopes are added, unless Cloud Logging or Cloud Monitoring are
# enabled, in which case their required scopes will be added.
# Corresponds to the JSON property `oauthScopes`
# @return [Array<String>]
attr_accessor :oauth_scopes
# The metadata key/value pairs assigned to instances in the cluster. Keys must
# conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length.
# These are reflected as part of a URL in the metadata server. Additionally, to
# avoid ambiguity, keys must not conflict with any other metadata keys for the
# project or be one of the four reserved keys: "instance-template", "kube-env", "
# startup-script", and "user-data" Values are free-form strings, and only have
# meaning as interpreted by the image running in the instance. The only
# restriction placed on them is that each value's size must be less than or
# equal to 32 KB. The total size of all keys and values must be less than 512 KB.
# Corresponds to the JSON property `metadata`
# @return [Hash<String,String>]
attr_accessor :metadata
def initialize(**args)
update!(**args)
end
@ -248,6 +292,7 @@ module Google
@machine_type = args[:machine_type] if args.key?(:machine_type)
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
@oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
@metadata = args[:metadata] if args.key?(:metadata)
end
end
@ -256,32 +301,31 @@ module Google
class MasterAuth
include Google::Apis::Core::Hashable
# The username to use for HTTP basic authentication when accessing the
# Kubernetes master endpoint.
# The username to use for HTTP basic authentication to the master endpoint.
# Corresponds to the JSON property `username`
# @return [String]
attr_accessor :username
# The password to use for HTTP basic authentication when accessing the
# Kubernetes master endpoint. Because the master endpoint is open to the
# internet, you should create a strong password.
# The password to use for HTTP basic authentication to the master endpoint.
# Because the master endpoint is open to the Internet, you should create a
# strong password.
# Corresponds to the JSON property `password`
# @return [String]
attr_accessor :password
# [Output only] Base64 encoded public certificate that is the root of trust for
# [Output only] Base64-encoded public certificate that is the root of trust for
# the cluster.
# Corresponds to the JSON property `clusterCaCertificate`
# @return [String]
attr_accessor :cluster_ca_certificate
# [Output only] Base64 encoded public certificate used by clients to
# [Output only] Base64-encoded public certificate used by clients to
# authenticate to the cluster endpoint.
# Corresponds to the JSON property `clientCertificate`
# @return [String]
attr_accessor :client_certificate
# [Output only] Base64 encoded private key used by clients to authenticate to
# [Output only] Base64-encoded private key used by clients to authenticate to
# the cluster endpoint.
# Corresponds to the JSON property `clientKey`
# @return [String]
@ -301,6 +345,81 @@ module Google
end
end
# Configuration for the addons that can be automatically spun up in the cluster,
# enabling additional functionality.
class AddonsConfig
include Google::Apis::Core::Hashable
# Configuration options for the HTTP (L7) load balancing controller addon, which
# makes it easy to set up HTTP load balancers for services in a cluster.
# Corresponds to the JSON property `httpLoadBalancing`
# @return [Google::Apis::ContainerV1::HttpLoadBalancing]
attr_accessor :http_load_balancing
# Configuration options for the horizontal pod autoscaling feature, which
# increases or decreases the number of replica pods a replication controller has
# based on the resource usage of the existing pods.
# Corresponds to the JSON property `horizontalPodAutoscaling`
# @return [Google::Apis::ContainerV1::HorizontalPodAutoscaling]
attr_accessor :horizontal_pod_autoscaling
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@http_load_balancing = args[:http_load_balancing] if args.key?(:http_load_balancing)
@horizontal_pod_autoscaling = args[:horizontal_pod_autoscaling] if args.key?(:horizontal_pod_autoscaling)
end
end
# Configuration options for the HTTP (L7) load balancing controller addon, which
# makes it easy to set up HTTP load balancers for services in a cluster.
class HttpLoadBalancing
include Google::Apis::Core::Hashable
# Whether the HTTP Load Balancing controller is enabled in the cluster. When
# enabled, it runs a small pod in the cluster that manages the load balancers.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disabled = args[:disabled] if args.key?(:disabled)
end
end
# Configuration options for the horizontal pod autoscaling feature, which
# increases or decreases the number of replica pods a replication controller has
# based on the resource usage of the existing pods.
class HorizontalPodAutoscaling
include Google::Apis::Core::Hashable
# Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When
# enabled, it ensures that a Heapster pod is running in the cluster, which is
# also used by the Cloud Monitoring service.
# Corresponds to the JSON property `disabled`
# @return [Boolean]
attr_accessor :disabled
alias_method :disabled?, :disabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@disabled = args[:disabled] if args.key?(:disabled)
end
end
# CreateClusterRequest creates a cluster.
class CreateClusterRequest
include Google::Apis::Core::Hashable
@ -320,7 +439,8 @@ module Google
end
end
# Defines the operation resource. All fields are output only.
# This operation resource represents operations that may have happened or are
# happening on the cluster. All fields are output only.
class Operation
include Google::Apis::Core::Hashable
@ -345,6 +465,11 @@ module Google
# @return [String]
attr_accessor :status
# Detailed operation progress, if available.
# Corresponds to the JSON property `detail`
# @return [String]
attr_accessor :detail
# If an error has occurred, a textual description of the error.
# Corresponds to the JSON property `statusMessage`
# @return [String]
@ -370,17 +495,19 @@ module Google
@zone = args[:zone] if args.key?(:zone)
@operation_type = args[:operation_type] if args.key?(:operation_type)
@status = args[:status] if args.key?(:status)
@detail = args[:detail] if args.key?(:detail)
@status_message = args[:status_message] if args.key?(:status_message)
@self_link = args[:self_link] if args.key?(:self_link)
@target_link = args[:target_link] if args.key?(:target_link)
end
end
# UpdateClusterRequest updates a cluster.
# UpdateClusterRequest updates the settings of a cluster.
class UpdateClusterRequest
include Google::Apis::Core::Hashable
# ClusterUpdate describes an update to the cluster.
# ClusterUpdate describes an update to the cluster. Exactly one update can be
# applied to a cluster with each request, so at most one field can be provided.
# Corresponds to the JSON property `update`
# @return [Google::Apis::ContainerV1::ClusterUpdate]
attr_accessor :update
@ -395,16 +522,37 @@ module Google
end
end
# ClusterUpdate describes an update to the cluster.
# ClusterUpdate describes an update to the cluster. Exactly one update can be
# applied to a cluster with each request, so at most one field can be provided.
class ClusterUpdate
include Google::Apis::Core::Hashable
# The Kubernetes version to change the nodes to (typically an upgrade). Use "-"
# The Kubernetes version to change the nodes to (typically an upgrade). Use `-`
# to upgrade to the latest version supported by the server.
# Corresponds to the JSON property `desiredNodeVersion`
# @return [String]
attr_accessor :desired_node_version
# The monitoring service the cluster should use to write metrics. Currently
# available options: * "monitoring.googleapis.com" - the Google Cloud Monitoring
# service * "none" - no metrics will be exported from the cluster
# Corresponds to the JSON property `desiredMonitoringService`
# @return [String]
attr_accessor :desired_monitoring_service
# Configuration for the addons that can be automatically spun up in the cluster,
# enabling additional functionality.
# Corresponds to the JSON property `desiredAddonsConfig`
# @return [Google::Apis::ContainerV1::AddonsConfig]
attr_accessor :desired_addons_config
# The Kubernetes version to change the master to. The only valid value is the
# latest supported version. Use "-" to have the server automatically select the
# latest version.
# Corresponds to the JSON property `desiredMasterVersion`
# @return [String]
attr_accessor :desired_master_version
def initialize(**args)
update!(**args)
end
@ -412,6 +560,9 @@ module Google
# Update properties of this object
def update!(**args)
@desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
@desired_monitoring_service = args[:desired_monitoring_service] if args.key?(:desired_monitoring_service)
@desired_addons_config = args[:desired_addons_config] if args.key?(:desired_addons_config)
@desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version)
end
end
@ -424,6 +575,12 @@ module Google
# @return [Array<Google::Apis::ContainerV1::Operation>]
attr_accessor :operations
# If any zones are listed here, the list of operations returned may be missing
# the operations from those zones.
# Corresponds to the JSON property `missingZones`
# @return [Array<String>]
attr_accessor :missing_zones
def initialize(**args)
update!(**args)
end
@ -431,14 +588,15 @@ module Google
# Update properties of this object
def update!(**args)
@operations = args[:operations] if args.key?(:operations)
@missing_zones = args[:missing_zones] if args.key?(:missing_zones)
end
end
# Container Engine Server configuration.
# Container Engine service configuration.
class ServerConfig
include Google::Apis::Core::Hashable
# What version this server deploys by default.
# Version of Kubernetes the service deploys by default.
# Corresponds to the JSON property `defaultClusterVersion`
# @return [String]
attr_accessor :default_cluster_version

View File

@ -46,6 +46,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AddonsConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HttpLoadBalancing
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class HorizontalPodAutoscaling
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CreateClusterRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -87,6 +105,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :clusters, as: 'clusters', class: Google::Apis::ContainerV1::Cluster, decorator: Google::Apis::ContainerV1::Cluster::Representation
collection :missing_zones, as: 'missingZones'
end
end
@ -104,6 +123,9 @@ module Google
property :monitoring_service, as: 'monitoringService'
property :network, as: 'network'
property :cluster_ipv4_cidr, as: 'clusterIpv4Cidr'
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :subnetwork, as: 'subnetwork'
property :self_link, as: 'selfLink'
property :zone, as: 'zone'
property :endpoint, as: 'endpoint'
@ -116,6 +138,7 @@ module Google
property :node_ipv4_cidr_size, as: 'nodeIpv4CidrSize'
property :services_ipv4_cidr, as: 'servicesIpv4Cidr'
collection :instance_group_urls, as: 'instanceGroupUrls'
property :current_node_count, as: 'currentNodeCount'
end
end
@ -125,6 +148,7 @@ module Google
property :machine_type, as: 'machineType'
property :disk_size_gb, as: 'diskSizeGb'
collection :oauth_scopes, as: 'oauthScopes'
hash :metadata, as: 'metadata'
end
end
@ -139,6 +163,30 @@ module Google
end
end
class AddonsConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :http_load_balancing, as: 'httpLoadBalancing', class: Google::Apis::ContainerV1::HttpLoadBalancing, decorator: Google::Apis::ContainerV1::HttpLoadBalancing::Representation
property :horizontal_pod_autoscaling, as: 'horizontalPodAutoscaling', class: Google::Apis::ContainerV1::HorizontalPodAutoscaling, decorator: Google::Apis::ContainerV1::HorizontalPodAutoscaling::Representation
end
end
class HttpLoadBalancing
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disabled, as: 'disabled'
end
end
class HorizontalPodAutoscaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :disabled, as: 'disabled'
end
end
class CreateClusterRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -154,6 +202,7 @@ module Google
property :zone, as: 'zone'
property :operation_type, as: 'operationType'
property :status, as: 'status'
property :detail, as: 'detail'
property :status_message, as: 'statusMessage'
property :self_link, as: 'selfLink'
property :target_link, as: 'targetLink'
@ -172,6 +221,10 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :desired_node_version, as: 'desiredNodeVersion'
property :desired_monitoring_service, as: 'desiredMonitoringService'
property :desired_addons_config, as: 'desiredAddonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
property :desired_master_version, as: 'desiredMasterVersion'
end
end
@ -180,6 +233,7 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
collection :operations, as: 'operations', class: Google::Apis::ContainerV1::Operation, decorator: Google::Apis::ContainerV1::Operation::Representation
collection :missing_zones, as: 'missingZones'
end
end

View File

@ -22,8 +22,8 @@ module Google
module ContainerV1
# Google Container Engine API
#
# The Google Container Engine API is used for building and managing container
# based applications, powered by the open source Kubernetes technology.
# Builds and manages clusters that run container-based applications, powered by
# open source Kubernetes technology.
#
# @example
# require 'google/apis/container_v1'
@ -49,11 +49,11 @@ module Google
# Returns configuration info about the Container Engine service.
# @param [String] project_id
# The Google Developers Console [project ID or project number](https://
# developers.google.com/console/help/new/#projectnumber).
# The Google Developers Console [project ID or project number](https://support.
# google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) to
# return operations for, or "-" for all zones.
# return operations for.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -85,8 +85,8 @@ module Google
# Lists all clusters owned by a project in either the specified zone or all
# zones.
# @param [String] project_id
# The Google Developers Console [project ID or project number](https://
# developers.google.com/console/help/new/#projectnumber).
# The Google Developers Console [project ID or project number](https://support.
# google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
# which the cluster resides, or "-" for all zones.
@ -118,10 +118,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets a specific cluster.
# Gets the details of a specific cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project number](https://
# developers.google.com/console/help/new/#projectnumber).
# The Google Developers Console [project ID or project number](https://support.
# google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
# which the cluster resides.
@ -157,16 +157,15 @@ module Google
end
# Creates a cluster, consisting of the specified number and type of Google
# Compute Engine instances, plus a Kubernetes master endpoint. By default, the
# cluster is created in the project's [default network](/compute/docs/networking#
# networks_1). One firewall is added for the cluster. After cluster creation,
# the cluster creates routes for each node to allow the containers on that node
# to communicate with all other instances in the cluster. Finally, an entry is
# added to the project's global metadata indicating which CIDR range is being
# used by the cluster.
# Compute Engine instances. By default, the cluster is created in the project's [
# default network](/compute/docs/networks-and-firewalls#networks). One firewall
# is added for the cluster. After cluster creation, the cluster creates routes
# for each node to allow the containers on that node to communicate with all
# other instances in the cluster. Finally, an entry is added to the project's
# global metadata indicating which CIDR range is being used by the cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project number](https://
# developers.google.com/console/help/new/#projectnumber).
# The Google Developers Console [project ID or project number](https://support.
# google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
# which the cluster resides.
@ -201,10 +200,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Update settings of a specific cluster.
# Updates the settings of a specific cluster.
# @param [String] project_id
# The Google Developers Console [project ID or project number](https://
# developers.google.com/console/help/new/#projectnumber).
# The Google Developers Console [project ID or project number](https://support.
# google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
# which the cluster resides.
@ -244,10 +243,12 @@ module Google
# Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
# Firewalls and routes that were configured during cluster creation are also
# deleted.
# deleted. Other Google Compute Engine resources that might be in use by the
# cluster (e.g. load balancer resources) will not be deleted if they weren't
# present at the initial create time.
# @param [String] project_id
# The Google Developers Console [project ID or project number](https://
# developers.google.com/console/help/new/#projectnumber).
# The Google Developers Console [project ID or project number](https://support.
# google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
# which the cluster resides.
@ -284,11 +285,11 @@ module Google
# Lists all operations in a project in a specific zone or all zones.
# @param [String] project_id
# The Google Developers Console [project ID or project number](https://
# developers.google.com/console/help/new/#projectnumber).
# The Google Developers Console [project ID or project number](https://support.
# google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) to
# return operations for, or "-" for all zones.
# return operations for, or `-` for all zones.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -319,8 +320,8 @@ module Google
# Gets the specified operation.
# @param [String] project_id
# The Google Developers Console [project ID or project number](https://
# developers.google.com/console/help/new/#projectnumber).
# The Google Developers Console [project ID or project number](https://support.
# google.com/cloud/answer/6158840).
# @param [String] zone
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
# which the cluster resides.

View File

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

View File

@ -20,12 +20,12 @@ module Google
module Apis
# Google Cloud Datastore API
#
# API for accessing Google Cloud Datastore.
# Stores and queries data in Google Cloud Datastore.
#
# @see https://developers.google.com/datastore/
module DatastoreV1beta2
VERSION = 'V1beta2'
REVISION = '20151008'
REVISION = '20160314'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -22,7 +22,7 @@ module Google
module DatastoreV1beta2
# Google Cloud Datastore API
#
# API for accessing Google Cloud Datastore.
# Stores and queries data in Google Cloud Datastore.
#
# @example
# require 'google/apis/datastore_v1beta2'

View File

@ -20,13 +20,12 @@ module Google
module Apis
# Google Cloud Deployment Manager API
#
# The Deployment Manager API allows users to declaratively configure, deploy and
# run complex solutions on the Google Cloud Platform.
# Declares, configures, and deploys complex solutions on Google Cloud Platform.
#
# @see https://cloud.google.com/deployment-manager/
module DeploymentmanagerV2
VERSION = 'V2'
REVISION = '20160301'
REVISION = '20160406'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -103,6 +103,11 @@ module Google
# @return [Google::Apis::DeploymentmanagerV2::Operation]
attr_accessor :operation
# [Output Only] Self link for the deployment.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
#
# Corresponds to the JSON property `target`
# @return [Google::Apis::DeploymentmanagerV2::TargetConfiguration]
@ -127,6 +132,7 @@ module Google
@manifest = args[:manifest] if args.key?(:manifest)
@name = args[:name] if args.key?(:name)
@operation = args[:operation] if args.key?(:operation)
@self_link = args[:self_link] if args.key?(:self_link)
@target = args[:target] if args.key?(:target)
@update = args[:update] if args.key?(:update)
end
@ -462,7 +468,7 @@ module Google
# @return [String]
attr_accessor :insert_time
# [Output Only] Type of the resource. Always compute#operation for operation
# [Output Only] Type of the resource. Always compute#operation for Operation
# resources.
# Corresponds to the JSON property `kind`
# @return [String]

View File

@ -216,6 +216,7 @@ module Google
property :name, as: 'name'
property :operation, as: 'operation', class: Google::Apis::DeploymentmanagerV2::Operation, decorator: Google::Apis::DeploymentmanagerV2::Operation::Representation
property :self_link, as: 'selfLink'
property :target, as: 'target', class: Google::Apis::DeploymentmanagerV2::TargetConfiguration, decorator: Google::Apis::DeploymentmanagerV2::TargetConfiguration::Representation
property :update, as: 'update', class: Google::Apis::DeploymentmanagerV2::DeploymentUpdate, decorator: Google::Apis::DeploymentmanagerV2::DeploymentUpdate::Representation

View File

@ -22,8 +22,7 @@ module Google
module DeploymentmanagerV2
# Google Cloud Deployment Manager API
#
# The Deployment Manager API allows users to declaratively configure, deploy and
# run complex solutions on the Google Cloud Platform.
# Declares, configures, and deploys complex solutions on Google Cloud Platform.
#
# @example
# require 'google/apis/deploymentmanager_v2'
@ -234,11 +233,11 @@ module Google
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also
# filter on nested fields. For example, you could filter on instances that have
# set the scheduling.automaticRestart field to true. Use filtering on nested
# fields to take advantage of labels to organize and search for results based on
# label values.
# The Beta API also supports filtering on multiple expressions by providing each
# separate expression within parentheses. For example, (scheduling.
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
@ -506,11 +505,11 @@ module Google
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also
# filter on nested fields. For example, you could filter on instances that have
# set the scheduling.automaticRestart field to true. Use filtering on nested
# fields to take advantage of labels to organize and search for results based on
# label values.
# The Beta API also supports filtering on multiple expressions by providing each
# separate expression within parentheses. For example, (scheduling.
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
@ -614,11 +613,11 @@ module Google
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also
# filter on nested fields. For example, you could filter on instances that have
# set the scheduling.automaticRestart field to true. Use filtering on nested
# fields to take advantage of labels to organize and search for results based on
# label values.
# The Beta API also supports filtering on multiple expressions by providing each
# separate expression within parentheses. For example, (scheduling.
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
@ -726,11 +725,11 @@ module Google
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also
# filter on nested fields. For example, you could filter on instances that have
# set the scheduling.automaticRestart field to true. Use filtering on nested
# fields to take advantage of labels to organize and search for results based on
# label values.
# The Beta API also supports filtering on multiple expressions by providing each
# separate expression within parentheses. For example, (scheduling.
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
@ -796,11 +795,11 @@ module Google
# must match the entire field.
# For example, to filter for instances that do not have a name of example-
# instance, you would use filter=name ne example-instance.
# Compute Engine Beta API Only: If you use filtering in the Beta API, you can
# also filter on nested fields. For example, you could filter on instances that
# have set the scheduling.automaticRestart field to true. In particular, use
# filtering on nested fields to take advantage of instance labels to organize
# and filter results based on label values.
# Compute Engine Beta API Only: When filtering in the Beta API, you can also
# filter on nested fields. For example, you could filter on instances that have
# set the scheduling.automaticRestart field to true. Use filtering on nested
# fields to take advantage of labels to organize and search for results based on
# label values.
# The Beta API also supports filtering on multiple expressions by providing each
# separate expression within parentheses. For example, (scheduling.
# automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are

View File

@ -20,12 +20,12 @@ module Google
module Apis
# DCM/DFA Reporting And Trafficking API
#
# Manage your DoubleClick Campaign Manager ad campaigns and reports.
# Manages your DoubleClick Campaign Manager ad campaigns and reports.
#
# @see https://developers.google.com/doubleclick-advertisers/reporting/
module DfareportingV2_3
VERSION = 'V2_3'
REVISION = '20160128'
REVISION = '20160323'
# View and manage DoubleClick for Advertisers reports
AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting'

View File

@ -22,7 +22,7 @@ module Google
module DfareportingV2_3
# DCM/DFA Reporting And Trafficking API
#
# Manage your DoubleClick Campaign Manager ad campaigns and reports.
# Manages your DoubleClick Campaign Manager ad campaigns and reports.
#
# @example
# require 'google/apis/dfareporting_v2_3'

View File

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

View File

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

View File

@ -98,7 +98,8 @@ module Google
# @return [String]
attr_accessor :agency_id
# This field is ignored.
# Available to advertisers only after contacting DoubleClick Search customer
# support.
# Corresponds to the JSON property `attributionModel`
# @return [String]
attr_accessor :attribution_model
@ -138,7 +139,8 @@ module Google
# @return [String]
attr_accessor :conversion_timestamp
# This field is ignored.
# Available to advertisers only after contacting DoubleClick Search customer
# support.
# Corresponds to the JSON property `countMillis`
# @return [String]
attr_accessor :count_millis
@ -219,8 +221,8 @@ module Google
attr_accessor :quantity_millis
# The revenue amount of this TRANSACTION conversion, in micros (value multiplied
# by 1000, no decimal). For example, to specify a revenue value of "10" enter "
# 10000" in your request.
# by 1000000, no decimal). For example, to specify a revenue value of "10" enter
# "10000000" (10 million) in your request.
# Corresponds to the JSON property `revenueMicros`
# @return [String]
attr_accessor :revenue_micros

View File

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

View File

@ -1332,6 +1332,12 @@ module Google
# @return [Google::Apis::DriveV2::File::IndexableText]
attr_accessor :indexable_text
# Whether the file was created or opened by the requesting app.
# Corresponds to the JSON property `isAppAuthorized`
# @return [Boolean]
attr_accessor :is_app_authorized
alias_method :is_app_authorized?, :is_app_authorized
# The type of file. This is always drive#file.
# Corresponds to the JSON property `kind`
# @return [String]
@ -1395,10 +1401,9 @@ module Google
# @return [Hash<String,String>]
attr_accessor :open_with_links
# The original filename if the file was uploaded manually, or the original title
# if the file was inserted through the API. Note that renames of the title will
# not change the original filename. This field is only populated for files with
# content stored in Drive; it is not populated for Google Docs or shortcut files.
# The original filename of the uploaded content if available, or else the
# original value of the title field. This is only available for files with
# binary content in Drive.
# Corresponds to the JSON property `originalFilename`
# @return [String]
attr_accessor :original_filename
@ -1558,6 +1563,7 @@ module Google
@id = args[:id] if args.key?(:id)
@image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
@indexable_text = args[:indexable_text] if args.key?(:indexable_text)
@is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
@kind = args[:kind] if args.key?(:kind)
@labels = args[:labels] if args.key?(:labels)
@last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)

View File

@ -587,6 +587,7 @@ module Google
property :indexable_text, as: 'indexableText', class: Google::Apis::DriveV2::File::IndexableText, decorator: Google::Apis::DriveV2::File::IndexableText::Representation
property :is_app_authorized, as: 'isAppAuthorized'
property :kind, as: 'kind'
property :labels, as: 'labels', class: Google::Apis::DriveV2::File::Labels, decorator: Google::Apis::DriveV2::File::Labels::Representation

View File

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

View File

@ -525,6 +525,12 @@ module Google
# @return [Google::Apis::DriveV3::File::ImageMediaMetadata]
attr_accessor :image_media_metadata
# Whether the file was created or opened by the requesting app.
# Corresponds to the JSON property `isAppAuthorized`
# @return [Boolean]
attr_accessor :is_app_authorized
alias_method :is_app_authorized?, :is_app_authorized
# This is always drive#file.
# Corresponds to the JSON property `kind`
# @return [String]
@ -728,6 +734,7 @@ module Google
@icon_link = args[:icon_link] if args.key?(:icon_link)
@id = args[:id] if args.key?(:id)
@image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
@is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
@kind = args[:kind] if args.key?(:kind)
@last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
@md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)

View File

@ -308,6 +308,7 @@ module Google
property :id, as: 'id'
property :image_media_metadata, as: 'imageMediaMetadata', class: Google::Apis::DriveV3::File::ImageMediaMetadata, decorator: Google::Apis::DriveV3::File::ImageMediaMetadata::Representation
property :is_app_authorized, as: 'isAppAuthorized'
property :kind, as: 'kind'
property :last_modifying_user, as: 'lastModifyingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/fusiontables
module FusiontablesV2
VERSION = 'V2'
REVISION = '20160212'
REVISION = '20160317'
# Manage your Fusion Tables
AUTH_FUSIONTABLES = 'https://www.googleapis.com/auth/fusiontables'

View File

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

View File

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

View File

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

View File

@ -24,10 +24,10 @@ module Google
# Global Alliance for Genomics and Health (GA4GH) v0.5.1 API as well as several
# extensions.
#
# @see
# @see https://cloud.google.com/genomics/
module GenomicsV1
VERSION = 'V1'
REVISION = '20160309'
REVISION = '20160411'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -22,6 +22,761 @@ module Google
module Apis
module GenomicsV1
# An annotation set is a logical grouping of annotations that share consistent
# type information and provenance. Examples of annotation sets include 'all
# genes from refseq', and 'all variant annotations from ClinVar'.
class AnnotationSet
include Google::Apis::Core::Hashable
# The server-generated annotation set ID, unique across all annotation sets.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The dataset to which this annotation set belongs.
# Corresponds to the JSON property `datasetId`
# @return [String]
attr_accessor :dataset_id
# The ID of the reference set that defines the coordinate space for this set's
# annotations.
# Corresponds to the JSON property `referenceSetId`
# @return [String]
attr_accessor :reference_set_id
# The display name for this annotation set.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The source URI describing the file from which this annotation set was
# generated, if any.
# Corresponds to the JSON property `sourceUri`
# @return [String]
attr_accessor :source_uri
# The type of annotations contained within this set.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# A map of additional read alignment information. This must be of the form map (
# string key mapping to a list of string values).
# Corresponds to the JSON property `info`
# @return [Hash<String,Array<Object>>]
attr_accessor :info
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@dataset_id = args[:dataset_id] if args.key?(:dataset_id)
@reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id)
@name = args[:name] if args.key?(:name)
@source_uri = args[:source_uri] if args.key?(:source_uri)
@type = args[:type] if args.key?(:type)
@info = args[:info] if args.key?(:info)
end
end
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
#
class SearchAnnotationSetsRequest
include Google::Apis::Core::Hashable
# Required. The dataset IDs to search within. Caller must have `READ` access to
# these datasets.
# Corresponds to the JSON property `datasetIds`
# @return [Array<String>]
attr_accessor :dataset_ids
# If specified, only annotation sets associated with the given reference set are
# returned.
# Corresponds to the JSON property `referenceSetId`
# @return [String]
attr_accessor :reference_set_id
# Only return annotations sets for which a substring of the name matches this
# string (case insensitive).
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# If specified, only annotation sets that have any of these types are returned.
# Corresponds to the JSON property `types`
# @return [Array<String>]
attr_accessor :types
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of `
# nextPageToken` from the previous response.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# The maximum number of results to return in a single page. If unspecified,
# defaults to 128. The maximum value is 1024.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@dataset_ids = args[:dataset_ids] if args.key?(:dataset_ids)
@reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id)
@name = args[:name] if args.key?(:name)
@types = args[:types] if args.key?(:types)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
#
class SearchAnnotationSetsResponse
include Google::Apis::Core::Hashable
# The matching annotation sets.
# Corresponds to the JSON property `annotationSets`
# @return [Array<Google::Apis::GenomicsV1::AnnotationSet>]
attr_accessor :annotation_sets
# The continuation token, which is used to page through large result sets.
# Provide this value in a subsequent request to return the next page of results.
# This field will be empty if there aren't any additional results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_sets = args[:annotation_sets] if args.key?(:annotation_sets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# An annotation describes a region of reference genome. The value of an
# annotation may be one of several canonical types, supplemented by arbitrary
# info tags. An annotation is not inherently associated with a specific sample
# or individual (though a client could choose to use annotations in this way).
# Example canonical annotation types are `GENE` and `VARIANT`.
class Annotation
include Google::Apis::Core::Hashable
# The server-generated annotation ID, unique across all annotations.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# The annotation set to which this annotation belongs.
# Corresponds to the JSON property `annotationSetId`
# @return [String]
attr_accessor :annotation_set_id
# The display name of this annotation.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# The ID of the Google Genomics reference associated with this range.
# Corresponds to the JSON property `referenceId`
# @return [String]
attr_accessor :reference_id
# The display name corresponding to the reference specified by `referenceId`,
# for example `chr1`, `1`, or `chrX`.
# Corresponds to the JSON property `referenceName`
# @return [String]
attr_accessor :reference_name
# The start position of the range on the reference, 0-based inclusive.
# Corresponds to the JSON property `start`
# @return [String]
attr_accessor :start
# The end position of the range on the reference, 0-based exclusive.
# Corresponds to the JSON property `end`
# @return [String]
attr_accessor :end
# Whether this range refers to the reverse strand, as opposed to the forward
# strand. Note that regardless of this field, the start/end position of the
# range always refer to the forward strand.
# Corresponds to the JSON property `reverseStrand`
# @return [Boolean]
attr_accessor :reverse_strand
alias_method :reverse_strand?, :reverse_strand
# The data type for this annotation. Must match the containing annotation set's
# type.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# A variant annotation, which describes the effect of a variant on the genome,
# the coding sequence, and/or higher level consequences at the organism level e.
# g. pathogenicity. This field is only set for annotations of type `VARIANT`.
# Corresponds to the JSON property `variant`
# @return [Google::Apis::GenomicsV1::VariantAnnotation]
attr_accessor :variant
# A transcript represents the assertion that a particular region of the
# reference genome may be transcribed as RNA.
# Corresponds to the JSON property `transcript`
# @return [Google::Apis::GenomicsV1::Transcript]
attr_accessor :transcript
# A map of additional read alignment information. This must be of the form map (
# string key mapping to a list of string values).
# Corresponds to the JSON property `info`
# @return [Hash<String,Array<Object>>]
attr_accessor :info
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@annotation_set_id = args[:annotation_set_id] if args.key?(:annotation_set_id)
@name = args[:name] if args.key?(:name)
@reference_id = args[:reference_id] if args.key?(:reference_id)
@reference_name = args[:reference_name] if args.key?(:reference_name)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
@reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand)
@type = args[:type] if args.key?(:type)
@variant = args[:variant] if args.key?(:variant)
@transcript = args[:transcript] if args.key?(:transcript)
@info = args[:info] if args.key?(:info)
end
end
#
class VariantAnnotation
include Google::Apis::Core::Hashable
# Type has been adapted from ClinVar's list of variant types.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Effect of the variant on the coding sequence.
# Corresponds to the JSON property `effect`
# @return [String]
attr_accessor :effect
# The alternate allele for this variant. If multiple alternate alleles exist at
# this location, create a separate variant for each one, as they may represent
# distinct conditions.
# Corresponds to the JSON property `alternateBases`
# @return [String]
attr_accessor :alternate_bases
# Google annotation ID of the gene affected by this variant. This should be
# provided when the variant is created.
# Corresponds to the JSON property `geneId`
# @return [String]
attr_accessor :gene_id
# Google annotation IDs of the transcripts affected by this variant. These
# should be provided when the variant is created.
# Corresponds to the JSON property `transcriptIds`
# @return [Array<String>]
attr_accessor :transcript_ids
# The set of conditions associated with this variant. A condition describes the
# way a variant influences human health.
# Corresponds to the JSON property `conditions`
# @return [Array<Google::Apis::GenomicsV1::ClinicalCondition>]
attr_accessor :conditions
# Describes the clinical significance of a variant. It is adapted from the
# ClinVar controlled vocabulary for clinical significance described at: http://
# www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/
# Corresponds to the JSON property `clinicalSignificance`
# @return [String]
attr_accessor :clinical_significance
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@type = args[:type] if args.key?(:type)
@effect = args[:effect] if args.key?(:effect)
@alternate_bases = args[:alternate_bases] if args.key?(:alternate_bases)
@gene_id = args[:gene_id] if args.key?(:gene_id)
@transcript_ids = args[:transcript_ids] if args.key?(:transcript_ids)
@conditions = args[:conditions] if args.key?(:conditions)
@clinical_significance = args[:clinical_significance] if args.key?(:clinical_significance)
end
end
#
class ClinicalCondition
include Google::Apis::Core::Hashable
# A set of names for the condition.
# Corresponds to the JSON property `names`
# @return [Array<String>]
attr_accessor :names
# The set of external IDs for this condition.
# Corresponds to the JSON property `externalIds`
# @return [Array<Google::Apis::GenomicsV1::ExternalId>]
attr_accessor :external_ids
# The MedGen concept id associated with this gene. Search for these IDs at http:/
# /www.ncbi.nlm.nih.gov/medgen/
# Corresponds to the JSON property `conceptId`
# @return [String]
attr_accessor :concept_id
# The OMIM id for this condition. Search for these IDs at http://omim.org/
# Corresponds to the JSON property `omimId`
# @return [String]
attr_accessor :omim_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@names = args[:names] if args.key?(:names)
@external_ids = args[:external_ids] if args.key?(:external_ids)
@concept_id = args[:concept_id] if args.key?(:concept_id)
@omim_id = args[:omim_id] if args.key?(:omim_id)
end
end
#
class ExternalId
include Google::Apis::Core::Hashable
# The name of the source of this data.
# Corresponds to the JSON property `sourceName`
# @return [String]
attr_accessor :source_name
# The id used by the source of this data.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source_name = args[:source_name] if args.key?(:source_name)
@id = args[:id] if args.key?(:id)
end
end
# A transcript represents the assertion that a particular region of the
# reference genome may be transcribed as RNA.
class Transcript
include Google::Apis::Core::Hashable
# The annotation ID of the gene from which this transcript is transcribed.
# Corresponds to the JSON property `geneId`
# @return [String]
attr_accessor :gene_id
# The exons that compose this transcript. This field should be unset for genomes
# where transcript splicing does not occur, for example prokaryotes. Introns are
# regions of the transcript that are not included in the spliced RNA product.
# Though not explicitly modeled here, intron ranges can be deduced; all regions
# of this transcript that are not exons are introns. Exonic sequences do not
# necessarily code for a translational product (amino acids). Only the regions
# of exons bounded by the codingSequence correspond to coding DNA sequence.
# Exons are ordered by start position and may not overlap.
# Corresponds to the JSON property `exons`
# @return [Array<Google::Apis::GenomicsV1::Exon>]
attr_accessor :exons
# The range of the coding sequence for this transcript, if any. To determine the
# exact ranges of coding sequence, intersect this range with those of the exons,
# if any. If there are any exons, the codingSequence must start and end within
# them. Note that in some cases, the reference genome will not exactly match the
# observed mRNA transcript e.g. due to variance in the source genome from
# reference. In these cases, exon.frame will not necessarily match the expected
# reference reading frame and coding exon reference bases cannot necessarily be
# concatenated to produce the original transcript mRNA.
# Corresponds to the JSON property `codingSequence`
# @return [Google::Apis::GenomicsV1::CodingSequence]
attr_accessor :coding_sequence
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@gene_id = args[:gene_id] if args.key?(:gene_id)
@exons = args[:exons] if args.key?(:exons)
@coding_sequence = args[:coding_sequence] if args.key?(:coding_sequence)
end
end
#
class Exon
include Google::Apis::Core::Hashable
# The start position of the exon on this annotation's reference sequence, 0-
# based inclusive. Note that this is relative to the reference start, and **not**
# the containing annotation start.
# Corresponds to the JSON property `start`
# @return [String]
attr_accessor :start
# The end position of the exon on this annotation's reference sequence, 0-based
# exclusive. Note that this is relative to the reference start, and *not* the
# containing annotation start.
# Corresponds to the JSON property `end`
# @return [String]
attr_accessor :end
# The frame of this exon. Contains a value of 0, 1, or 2, which indicates the
# offset of the first coding base of the exon within the reading frame of the
# coding DNA sequence, if any. This field is dependent on the strandedness of
# this annotation (see Annotation.reverse_strand). For forward stranded
# annotations, this offset is relative to the exon.start. For reverse strand
# annotations, this offset is relative to the exon.end `- 1`. Unset if this exon
# does not intersect the coding sequence. Upon creation of a transcript, the
# frame must be populated for all or none of the coding exons.
# Corresponds to the JSON property `frame`
# @return [Fixnum]
attr_accessor :frame
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
@frame = args[:frame] if args.key?(:frame)
end
end
#
class CodingSequence
include Google::Apis::Core::Hashable
# The start of the coding sequence on this annotation's reference sequence, 0-
# based inclusive. Note that this position is relative to the reference start,
# and *not* the containing annotation start.
# Corresponds to the JSON property `start`
# @return [String]
attr_accessor :start
# The end of the coding sequence on this annotation's reference sequence, 0-
# based exclusive. Note that this position is relative to the reference start,
# and *not* the containing annotation start.
# Corresponds to the JSON property `end`
# @return [String]
attr_accessor :end
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
end
end
#
class BatchCreateAnnotationsRequest
include Google::Apis::Core::Hashable
# The annotations to be created. At most 4096 can be specified in a single
# request.
# Corresponds to the JSON property `annotations`
# @return [Array<Google::Apis::GenomicsV1::Annotation>]
attr_accessor :annotations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
end
end
#
class BatchCreateAnnotationsResponse
include Google::Apis::Core::Hashable
# The resulting per-annotation entries, ordered consistently with the original
# request.
# Corresponds to the JSON property `entries`
# @return [Array<Google::Apis::GenomicsV1::Entry>]
attr_accessor :entries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@entries = args[:entries] if args.key?(:entries)
end
end
#
class Entry
include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
# use and understand for most users - Flexible enough to meet unexpected needs #
# Overview The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of google.
# rpc.Code, but it may accept additional error codes if needed. The error
# message should be a developer-facing English message that helps developers *
# understand* and *resolve* the error. If a localized user-facing error message
# is needed, put the localized message in the error details or localize it in
# the client. The optional error details may contain arbitrary information about
# the error. There is a predefined set of error detail types in the package `
# google.rpc` which can be used for common error conditions. # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C. # Other uses The
# error model and the `Status` message can be used in a variety of environments,
# either with or without APIs, to provide a consistent developer experience
# across different environments. Example uses of this error model include: -
# Partial errors. If a service needs to return partial errors to the client, it
# may embed the `Status` in the normal response to indicate the partial errors. -
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
# Status` message for error reporting purpose. - Batch operations. If a client
# uses batch request and batch response, the `Status` message should be used
# directly inside batch response, one for each error sub-response. -
# Asynchronous operations. If an API call embeds asynchronous operation results
# in its response, the status of those operations should be represented directly
# using the `Status` message. - Logging. If some API errors are stored in logs,
# the message `Status` could be used directly after any stripping needed for
# security/privacy reasons.
# Corresponds to the JSON property `status`
# @return [Google::Apis::GenomicsV1::Status]
attr_accessor :status
# An annotation describes a region of reference genome. The value of an
# annotation may be one of several canonical types, supplemented by arbitrary
# info tags. An annotation is not inherently associated with a specific sample
# or individual (though a client could choose to use annotations in this way).
# Example canonical annotation types are `GENE` and `VARIANT`.
# Corresponds to the JSON property `annotation`
# @return [Google::Apis::GenomicsV1::Annotation]
attr_accessor :annotation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@status = args[:status] if args.key?(:status)
@annotation = args[:annotation] if args.key?(:annotation)
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
# use and understand for most users - Flexible enough to meet unexpected needs #
# Overview The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of google.
# rpc.Code, but it may accept additional error codes if needed. The error
# message should be a developer-facing English message that helps developers *
# understand* and *resolve* the error. If a localized user-facing error message
# is needed, put the localized message in the error details or localize it in
# the client. The optional error details may contain arbitrary information about
# the error. There is a predefined set of error detail types in the package `
# google.rpc` which can be used for common error conditions. # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C. # Other uses The
# error model and the `Status` message can be used in a variety of environments,
# either with or without APIs, to provide a consistent developer experience
# across different environments. Example uses of this error model include: -
# Partial errors. If a service needs to return partial errors to the client, it
# may embed the `Status` in the normal response to indicate the partial errors. -
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
# Status` message for error reporting purpose. - Batch operations. If a client
# uses batch request and batch response, the `Status` message should be used
# directly inside batch response, one for each error sub-response. -
# Asynchronous operations. If an API call embeds asynchronous operation results
# in its response, the status of those operations should be represented directly
# using the `Status` message. - Logging. If some API errors are stored in logs,
# the message `Status` could be used directly after any stripping needed for
# security/privacy reasons.
class Status
include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# A list of messages that carry the error details. There will be a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@message = args[:message] if args.key?(:message)
@details = args[:details] if args.key?(:details)
end
end
#
class SearchAnnotationsRequest
include Google::Apis::Core::Hashable
# Required. The annotation sets to search within. The caller must have `READ`
# access to these annotation sets. All queried annotation sets must have the
# same type.
# Corresponds to the JSON property `annotationSetIds`
# @return [Array<String>]
attr_accessor :annotation_set_ids
# The ID of the reference to query.
# Corresponds to the JSON property `referenceId`
# @return [String]
attr_accessor :reference_id
# The name of the reference to query, within the reference set associated with
# this query.
# Corresponds to the JSON property `referenceName`
# @return [String]
attr_accessor :reference_name
# The start position of the range on the reference, 0-based inclusive. If
# specified, referenceId or referenceName must be specified. Defaults to 0.
# Corresponds to the JSON property `start`
# @return [String]
attr_accessor :start
# The end position of the range on the reference, 0-based exclusive. If
# referenceId or referenceName must be specified, Defaults to the length of the
# reference.
# Corresponds to the JSON property `end`
# @return [String]
attr_accessor :end
# The continuation token, which is used to page through large result sets. To
# get the next page of results, set this parameter to the value of `
# nextPageToken` from the previous response.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# The maximum number of results to return in a single page. If unspecified,
# defaults to 256. The maximum value is 2048.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_set_ids = args[:annotation_set_ids] if args.key?(:annotation_set_ids)
@reference_id = args[:reference_id] if args.key?(:reference_id)
@reference_name = args[:reference_name] if args.key?(:reference_name)
@start = args[:start] if args.key?(:start)
@end = args[:end] if args.key?(:end)
@page_token = args[:page_token] if args.key?(:page_token)
@page_size = args[:page_size] if args.key?(:page_size)
end
end
#
class SearchAnnotationsResponse
include Google::Apis::Core::Hashable
# The matching annotations.
# Corresponds to the JSON property `annotations`
# @return [Array<Google::Apis::GenomicsV1::Annotation>]
attr_accessor :annotations
# The continuation token, which is used to page through large result sets.
# Provide this value in a subsequent request to return the next page of results.
# This field will be empty if there aren't any additional results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotations = args[:annotations] if args.key?(:annotations)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# The dataset list response.
class ListDatasetsResponse
include Google::Apis::Core::Hashable
@ -88,23 +843,6 @@ module Google
end
end
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
# `Empty` is empty JSON object ````.
class Empty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
#
class UndeleteDatasetRequest
include Google::Apis::Core::Hashable
@ -368,71 +1106,6 @@ module Google
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
# use and understand for most users - Flexible enough to meet unexpected needs #
# Overview The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of google.
# rpc.Code, but it may accept additional error codes if needed. The error
# message should be a developer-facing English message that helps developers *
# understand* and *resolve* the error. If a localized user-facing error message
# is needed, put the localized message in the error details or localize it in
# the client. The optional error details may contain arbitrary information about
# the error. There is a predefined set of error detail types in the package `
# google.rpc` which can be used for common error conditions. # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C. # Other uses The
# error model and the `Status` message can be used in a variety of environments,
# either with or without APIs, to provide a consistent developer experience
# across different environments. Example uses of this error model include: -
# Partial errors. If a service needs to return partial errors to the client, it
# may embed the `Status` in the normal response to indicate the partial errors. -
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
# Status` message for error reporting purpose. - Batch operations. If a client
# uses batch request and batch response, the `Status` message should be used
# directly inside batch response, one for each error sub-response. -
# Asynchronous operations. If an API call embeds asynchronous operation results
# in its response, the status of those operations should be represented directly
# using the `Status` message. - Logging. If some API errors are stored in logs,
# the message `Status` could be used directly after any stripping needed for
# security/privacy reasons.
class Status
include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# A list of messages that carry the error details. There will be a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@message = args[:message] if args.key?(:message)
@details = args[:details] if args.key?(:details)
end
end
# The response message for Operations.ListOperations.
class ListOperationsResponse
include Google::Apis::Core::Hashable
@ -1792,6 +2465,13 @@ module Google
attr_accessor :normalize_reference_names
alias_method :normalize_reference_names?, :normalize_reference_names
# A mapping between info field keys and the InfoMergeOperations to be performed
# on them. This is plumbed down to the MergeVariantRequests generated by the
# resulting import job.
# Corresponds to the JSON property `infoMergeConfig`
# @return [Hash<String,String>]
attr_accessor :info_merge_config
def initialize(**args)
update!(**args)
end
@ -1802,6 +2482,7 @@ module Google
@source_uris = args[:source_uris] if args.key?(:source_uris)
@format = args[:format] if args.key?(:format)
@normalize_reference_names = args[:normalize_reference_names] if args.key?(:normalize_reference_names)
@info_merge_config = args[:info_merge_config] if args.key?(:info_merge_config)
end
end
@ -2352,6 +3033,12 @@ module Google
# @return [Array<Google::Apis::GenomicsV1::Variant>]
attr_accessor :variants
# A mapping between info field keys and the InfoMergeOperations to be performed
# on them.
# Corresponds to the JSON property `infoMergeConfig`
# @return [Hash<String,String>]
attr_accessor :info_merge_config
def initialize(**args)
update!(**args)
end
@ -2360,6 +3047,7 @@ module Google
def update!(**args)
@variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id)
@variants = args[:variants] if args.key?(:variants)
@info_merge_config = args[:info_merge_config] if args.key?(:info_merge_config)
end
end

View File

@ -22,6 +22,108 @@ module Google
module Apis
module GenomicsV1
class AnnotationSet
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAnnotationSetsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAnnotationSetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Annotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class VariantAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ClinicalCondition
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ExternalId
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Transcript
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Exon
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CodingSequence
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchCreateAnnotationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BatchCreateAnnotationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Entry
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAnnotationsRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SearchAnnotationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListDatasetsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -34,12 +136,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Empty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UndeleteDatasetRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -88,12 +184,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListOperationsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -388,6 +478,192 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AnnotationSet
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :dataset_id, as: 'datasetId'
property :reference_set_id, as: 'referenceSetId'
property :name, as: 'name'
property :source_uri, as: 'sourceUri'
property :type, as: 'type'
hash :info, as: 'info', :class => Array do
include Representable::JSON::Collection
items
end
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class SearchAnnotationSetsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :dataset_ids, as: 'datasetIds'
property :reference_set_id, as: 'referenceSetId'
property :name, as: 'name'
collection :types, as: 'types'
property :page_token, as: 'pageToken'
property :page_size, as: 'pageSize'
end
end
class SearchAnnotationSetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotation_sets, as: 'annotationSets', class: Google::Apis::GenomicsV1::AnnotationSet, decorator: Google::Apis::GenomicsV1::AnnotationSet::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class Annotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :annotation_set_id, as: 'annotationSetId'
property :name, as: 'name'
property :reference_id, as: 'referenceId'
property :reference_name, as: 'referenceName'
property :start, as: 'start'
property :end, as: 'end'
property :reverse_strand, as: 'reverseStrand'
property :type, as: 'type'
property :variant, as: 'variant', class: Google::Apis::GenomicsV1::VariantAnnotation, decorator: Google::Apis::GenomicsV1::VariantAnnotation::Representation
property :transcript, as: 'transcript', class: Google::Apis::GenomicsV1::Transcript, decorator: Google::Apis::GenomicsV1::Transcript::Representation
hash :info, as: 'info', :class => Array do
include Representable::JSON::Collection
items
end
end
end
class VariantAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :type, as: 'type'
property :effect, as: 'effect'
property :alternate_bases, as: 'alternateBases'
property :gene_id, as: 'geneId'
collection :transcript_ids, as: 'transcriptIds'
collection :conditions, as: 'conditions', class: Google::Apis::GenomicsV1::ClinicalCondition, decorator: Google::Apis::GenomicsV1::ClinicalCondition::Representation
property :clinical_significance, as: 'clinicalSignificance'
end
end
class ClinicalCondition
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :names, as: 'names'
collection :external_ids, as: 'externalIds', class: Google::Apis::GenomicsV1::ExternalId, decorator: Google::Apis::GenomicsV1::ExternalId::Representation
property :concept_id, as: 'conceptId'
property :omim_id, as: 'omimId'
end
end
class ExternalId
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :source_name, as: 'sourceName'
property :id, as: 'id'
end
end
class Transcript
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :gene_id, as: 'geneId'
collection :exons, as: 'exons', class: Google::Apis::GenomicsV1::Exon, decorator: Google::Apis::GenomicsV1::Exon::Representation
property :coding_sequence, as: 'codingSequence', class: Google::Apis::GenomicsV1::CodingSequence, decorator: Google::Apis::GenomicsV1::CodingSequence::Representation
end
end
class Exon
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :start, as: 'start'
property :end, as: 'end'
property :frame, as: 'frame'
end
end
class CodingSequence
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :start, as: 'start'
property :end, as: 'end'
end
end
class BatchCreateAnnotationsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotations, as: 'annotations', class: Google::Apis::GenomicsV1::Annotation, decorator: Google::Apis::GenomicsV1::Annotation::Representation
end
end
class BatchCreateAnnotationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :entries, as: 'entries', class: Google::Apis::GenomicsV1::Entry, decorator: Google::Apis::GenomicsV1::Entry::Representation
end
end
class Entry
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :status, as: 'status', class: Google::Apis::GenomicsV1::Status, decorator: Google::Apis::GenomicsV1::Status::Representation
property :annotation, as: 'annotation', class: Google::Apis::GenomicsV1::Annotation, decorator: Google::Apis::GenomicsV1::Annotation::Representation
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end
end
class SearchAnnotationsRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotation_set_ids, as: 'annotationSetIds'
property :reference_id, as: 'referenceId'
property :reference_name, as: 'referenceName'
property :start, as: 'start'
property :end, as: 'end'
property :page_token, as: 'pageToken'
property :page_size, as: 'pageSize'
end
end
class SearchAnnotationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotations, as: 'annotations', class: Google::Apis::GenomicsV1::Annotation, decorator: Google::Apis::GenomicsV1::Annotation::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class ListDatasetsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -407,12 +683,6 @@ module Google
end
end
class Empty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
class UndeleteDatasetRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -477,15 +747,6 @@ module Google
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end
end
class ListOperationsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -812,6 +1073,7 @@ module Google
collection :source_uris, as: 'sourceUris'
property :format, as: 'format'
property :normalize_reference_names, as: 'normalizeReferenceNames'
hash :info_merge_config, as: 'infoMergeConfig'
end
end
@ -952,6 +1214,7 @@ module Google
property :variant_set_id, as: 'variantSetId'
collection :variants, as: 'variants', class: Google::Apis::GenomicsV1::Variant, decorator: Google::Apis::GenomicsV1::Variant::Representation
hash :info_merge_config, as: 'infoMergeConfig'
end
end

View File

@ -32,7 +32,7 @@ module Google
# Genomics = Google::Apis::GenomicsV1 # Alias the module
# service = Genomics::GenomicsService.new
#
# @see
# @see https://cloud.google.com/genomics/
class GenomicsService < Google::Apis::Core::BaseService
# @return [String]
# API key. Your API key identifies your project and provides you with API access,
@ -48,6 +48,386 @@ module Google
super('https://genomics.googleapis.com/', '')
end
# Creates a new annotation set. Caller must have WRITE permission for the
# associated dataset. The following fields are required: * datasetId *
# referenceSetId All other fields may be optionally specified, unless documented
# as being server-generated (for example, the `id` field).
# @param [Google::Apis::GenomicsV1::AnnotationSet] annotation_set_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::AnnotationSet]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_annotation_set(annotation_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/annotationsets', options)
command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
command.request_object = annotation_set_object
command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
command.response_class = Google::Apis::GenomicsV1::AnnotationSet
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets an annotation set. Caller must have READ permission for the associated
# dataset.
# @param [String] annotation_set_id
# The ID of the annotation set to be retrieved.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::AnnotationSet]
#
# @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_annotation_set(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/annotationsets/{annotationSetId}', options)
command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
command.response_class = Google::Apis::GenomicsV1::AnnotationSet
command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an annotation set. The update must respect all mutability restrictions
# and other invariants described on the annotation set resource. Caller must
# have WRITE permission for the associated dataset.
# @param [String] annotation_set_id
# The ID of the annotation set to be updated.
# @param [Google::Apis::GenomicsV1::AnnotationSet] annotation_set_object
# @param [String] update_mask
# An optional mask specifying which fields to update. Mutable fields are name,
# source_uri, and info. If unspecified, all mutable fields will be updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::AnnotationSet]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_annotationset(annotation_set_id, annotation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/annotationsets/{annotationSetId}', options)
command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
command.request_object = annotation_set_object
command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
command.response_class = Google::Apis::GenomicsV1::AnnotationSet
command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes an annotation set. Caller must have WRITE permission for the
# associated annotation set.
# @param [String] annotation_set_id
# The ID of the annotation set to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/annotationsets/{annotationSetId}', options)
command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
command.response_class = Google::Apis::GenomicsV1::Empty
command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches for annotation sets that match the given criteria. Annotation sets
# are returned in an unspecified order. This order is consistent, such that two
# queries for the same content (regardless of page size) yield annotation sets
# in the same order across their respective streams of paginated responses.
# Caller must have READ permission for the queried datasets.
# @param [Google::Apis::GenomicsV1::SearchAnnotationSetsRequest] search_annotation_sets_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::SearchAnnotationSetsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::SearchAnnotationSetsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def search_annotationset_annotation_sets(search_annotation_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/annotationsets/search', options)
command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsRequest::Representation
command.request_object = search_annotation_sets_request_object
command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse::Representation
command.response_class = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new annotation. Caller must have WRITE permission for the associated
# annotation set. The following fields are required: * annotationSetId *
# referenceName or referenceId ### Transcripts For annotations of type
# TRANSCRIPT, the following fields of transcript must be provided: * exons.start
# * exons.end All other fields may be optionally specified, unless documented as
# being server-generated (for example, the `id` field). The annotated range must
# be no longer than 100Mbp (mega base pairs). See the Annotation resource for
# additional restrictions on each field.
# @param [Google::Apis::GenomicsV1::Annotation] annotation_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::Annotation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_annotation(annotation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/annotations', options)
command.request_representation = Google::Apis::GenomicsV1::Annotation::Representation
command.request_object = annotation_object
command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation
command.response_class = Google::Apis::GenomicsV1::Annotation
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates one or more new annotations atomically. All annotations must belong to
# the same annotation set. Caller must have WRITE permission for this annotation
# set. For optimal performance, batch positionally adjacent annotations together.
# If the request has a systemic issue, such as an attempt to write to an
# inaccessible annotation set, the entire RPC will fail accordingly. For lesser
# data issues, when possible an error will be isolated to the corresponding
# batch entry in the response; the remaining well formed annotations will be
# created normally. For details on the requirements for each individual
# annotation resource, see CreateAnnotation.
# @param [Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest] batch_create_annotations_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def batch_create_annotations(batch_create_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/annotations:batchCreate', options)
command.request_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest::Representation
command.request_object = batch_create_annotations_request_object
command.response_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse::Representation
command.response_class = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets an annotation. Caller must have READ permission for the associated
# annotation set.
# @param [String] annotation_id
# The ID of the annotation to be retrieved.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::Annotation]
#
# @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_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/annotations/{annotationId}', options)
command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation
command.response_class = Google::Apis::GenomicsV1::Annotation
command.params['annotationId'] = annotation_id unless annotation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates an annotation. Caller must have WRITE permission for the associated
# dataset.
# @param [String] annotation_id
# The ID of the annotation to be updated.
# @param [Google::Apis::GenomicsV1::Annotation] annotation_object
# @param [String] update_mask
# An optional mask specifying which fields to update. Mutable fields are name,
# variant, transcript, and info. If unspecified, all mutable fields will be
# updated.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::Annotation]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def update_annotation(annotation_id, annotation_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/annotations/{annotationId}', options)
command.request_representation = Google::Apis::GenomicsV1::Annotation::Representation
command.request_object = annotation_object
command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation
command.response_class = Google::Apis::GenomicsV1::Annotation
command.params['annotationId'] = annotation_id unless annotation_id.nil?
command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes an annotation. Caller must have WRITE permission for the associated
# annotation set.
# @param [String] annotation_id
# The ID of the annotation to be deleted.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/annotations/{annotationId}', options)
command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
command.response_class = Google::Apis::GenomicsV1::Empty
command.params['annotationId'] = annotation_id unless annotation_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Searches for annotations that match the given criteria. Results are ordered by
# genomic coordinate (by reference sequence, then position). Annotations with
# equivalent genomic coordinates are returned in an unspecified order. This
# order is consistent, such that two queries for the same content (regardless of
# page size) yield annotations in the same order across their respective streams
# of paginated responses. Caller must have READ permission for the queried
# annotation sets.
# @param [Google::Apis::GenomicsV1::SearchAnnotationsRequest] search_annotations_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::GenomicsV1::SearchAnnotationsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::GenomicsV1::SearchAnnotationsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def search_annotations(search_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/annotations/search', options)
command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationsRequest::Representation
command.request_object = search_annotations_request_object
command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationsResponse::Representation
command.response_class = Google::Apis::GenomicsV1::SearchAnnotationsResponse
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists datasets within a project. For the definitions of datasets and other
# genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
# com/genomics/fundamentals-of-google-genomics)
@ -193,9 +573,12 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes a dataset. For the definitions of datasets and other genomics
# resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
# genomics/fundamentals-of-google-genomics)
# Deletes a dataset and all of its contents (all read group sets, reference sets,
# variant sets, call sets, annotation sets, etc.) This is reversible (up to one
# week after the deletion) via the datasets.undelete operation. For the
# definitions of datasets and other genomics resources, see [Fundamentals of
# Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
# genomics)
# @param [String] dataset_id
# The ID of the dataset to be deleted.
# @param [String] fields
@ -1046,13 +1429,11 @@ module Google
# any existing variant that matches its reference sequence, start, end,
# reference bases, and alternative bases. If no such variant exists, a new one
# will be created. When variants are merged, the call information from the new
# variant is added to the existing variant, and other fields (such as key/value
# pairs) are discarded. In particular, this means for merged VCF variants that
# have conflicting INFO fields, some data will be arbitrarily discarded. As a
# special case, for single-sample VCF files, QUAL and FILTER fields will be
# moved to the call level; these are sometimes interpreted in a call-specific
# context. Imported VCF headers are appended to the metadata already in a
# variant set.
# variant is added to the existing variant, and Variant info fields are merged
# as specified in infoMergeConfig. As a special case, for single-sample VCF
# files, QUAL and FILTER fields will be moved to the call level; these are
# sometimes interpreted in a call-specific context. Imported VCF headers are
# appended to the metadata already in a variant set.
# @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -1259,8 +1640,26 @@ module Google
# variant will be merged with an existing variant that matches its reference
# sequence, start, end, reference bases, and alternative bases. If no such
# variant exists, a new one will be created. When variants are merged, the call
# information from the new variant is added to the existing variant, and other
# fields (such as key/value pairs) are discarded.
# information from the new variant is added to the existing variant. Variant
# info fields are merged as specified in the infoMergeConfig field of the
# MergeVariantsRequest. Please exercise caution when using this method! It is
# easy to introduce mistakes in existing variants and difficult to back out of
# them. For example, suppose you were trying to merge a new variant with an
# existing one and both variants contain calls that belong to callsets with the
# same callset ID. // Existing variant - irrelevant fields trimmed for clarity `
# "variantSetId": "10473108253681171589", "referenceName": "1", "start": "10582",
# "referenceBases": "G", "alternateBases": [ "A" ], "calls": [ ` "callSetId": "
# 10473108253681171589-0", "callSetName": "CALLSET0", "genotype": [ 0, 1 ], ` ] `
# // New variant with conflicting call information ` "variantSetId": "
# 10473108253681171589", "referenceName": "1", "start": "10582", "referenceBases"
# : "G", "alternateBases": [ "A" ], "calls": [ ` "callSetId": "
# 10473108253681171589-0", "callSetName": "CALLSET0", "genotype": [ 1, 1 ], ` ] `
# The resulting merged variant would overwrite the existing calls with those
# from the new variant: ` "variantSetId": "10473108253681171589", "referenceName"
# : "1", "start": "10582", "referenceBases": "G", "alternateBases": [ "A" ], "
# calls": [ ` "callSetId": "10473108253681171589-0", "callSetName": "CALLSET0", "
# genotype": [ 1, 1 ], ` ] ` This may be the desired outcome, but it is up to
# the user to determine if if that is indeed the case.
# @param [Google::Apis::GenomicsV1::MergeVariantsRequest] merge_variants_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/gmail/api/
module GmailV1
VERSION = 'V1'
REVISION = '20160301'
REVISION = '20160316'
# View and manage your mail
AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/google-apps/groups-settings/get_started
module GroupssettingsV1
VERSION = 'V1'
REVISION = '20140428'
REVISION = '20160323'
# View and manage the settings of a Google Apps Group
AUTH_APPS_GROUPS_SETTINGS = 'https://www.googleapis.com/auth/apps.groups.settings'

View File

@ -136,15 +136,21 @@ module Google
# @return [String]
attr_accessor :spam_moderation_level
# Permission to contact owner of the group via web UI. Possbile values are:
# Permissions to add members. Possible values are: ALL_MANAGERS_CAN_ADD
# ALL_MEMBERS_CAN_ADD NONE_CAN_ADD
# Corresponds to the JSON property `whoCanAdd`
# @return [String]
attr_accessor :who_can_add
# Permission to contact owner of the group via web UI. Possible values are:
# ANYONE_CAN_CONTACT ALL_IN_DOMAIN_CAN_CONTACT ALL_MEMBERS_CAN_CONTACT
# ALL_MANAGERS_CAN_CONTACT
# Corresponds to the JSON property `whoCanContactOwner`
# @return [String]
attr_accessor :who_can_contact_owner
# Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE
# ALL_MANAGERS_CAN_INVITE
# Permissions to invite members. Possible values are: ALL_MEMBERS_CAN_INVITE
# ALL_MANAGERS_CAN_INVITE NONE_CAN_INVITE
# Corresponds to the JSON property `whoCanInvite`
# @return [String]
attr_accessor :who_can_invite
@ -156,7 +162,7 @@ module Google
attr_accessor :who_can_join
# Permission to leave the group. Possible values are: ALL_MANAGERS_CAN_LEAVE
# ALL_MEMBERS_CAN_LEAVE
# ALL_MEMBERS_CAN_LEAVE NONE_CAN_LEAVE
# Corresponds to the JSON property `whoCanLeaveGroup`
# @return [String]
attr_accessor :who_can_leave_group
@ -168,13 +174,13 @@ module Google
# @return [String]
attr_accessor :who_can_post_message
# Permissions to view group. Possbile values are: ANYONE_CAN_VIEW
# Permissions to view group. Possible values are: ANYONE_CAN_VIEW
# ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
# Corresponds to the JSON property `whoCanViewGroup`
# @return [String]
attr_accessor :who_can_view_group
# Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW
# Permissions to view membership. Possible values are: ALL_IN_DOMAIN_CAN_VIEW
# ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
# Corresponds to the JSON property `whoCanViewMembership`
# @return [String]
@ -207,6 +213,7 @@ module Google
@send_message_deny_notification = args[:send_message_deny_notification] if args.key?(:send_message_deny_notification)
@show_in_group_directory = args[:show_in_group_directory] if args.key?(:show_in_group_directory)
@spam_moderation_level = args[:spam_moderation_level] if args.key?(:spam_moderation_level)
@who_can_add = args[:who_can_add] if args.key?(:who_can_add)
@who_can_contact_owner = args[:who_can_contact_owner] if args.key?(:who_can_contact_owner)
@who_can_invite = args[:who_can_invite] if args.key?(:who_can_invite)
@who_can_join = args[:who_can_join] if args.key?(:who_can_join)

View File

@ -52,6 +52,7 @@ module Google
property :send_message_deny_notification, as: 'sendMessageDenyNotification'
property :show_in_group_directory, as: 'showInGroupDirectory'
property :spam_moderation_level, as: 'spamModerationLevel'
property :who_can_add, as: 'whoCanAdd'
property :who_can_contact_owner, as: 'whoCanContactOwner'
property :who_can_invite, as: 'whoCanInvite'
property :who_can_join, as: 'whoCanJoin'

View File

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

View File

@ -479,11 +479,22 @@ module Google
# @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
attr_accessor :change_email_template
# Whether anonymous user is enabled.
# Corresponds to the JSON property `enableAnonymousUser`
# @return [Boolean]
attr_accessor :enable_anonymous_user
alias_method :enable_anonymous_user?, :enable_anonymous_user
# OAuth2 provider configuration.
# Corresponds to the JSON property `idpConfig`
# @return [Array<Google::Apis::IdentitytoolkitV3::IdpConfig>]
attr_accessor :idp_config
# Template for an email template.
# Corresponds to the JSON property `legacyResetPasswordTemplate`
# @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
attr_accessor :legacy_reset_password_template
# Project ID of the relying party.
# Corresponds to the JSON property `projectId`
# @return [String]
@ -515,7 +526,9 @@ module Google
@api_key = args[:api_key] if args.key?(:api_key)
@authorized_domains = args[:authorized_domains] if args.key?(:authorized_domains)
@change_email_template = args[:change_email_template] if args.key?(:change_email_template)
@enable_anonymous_user = args[:enable_anonymous_user] if args.key?(:enable_anonymous_user)
@idp_config = args[:idp_config] if args.key?(:idp_config)
@legacy_reset_password_template = args[:legacy_reset_password_template] if args.key?(:legacy_reset_password_template)
@project_id = args[:project_id] if args.key?(:project_id)
@reset_password_template = args[:reset_password_template] if args.key?(:reset_password_template)
@use_email_sending = args[:use_email_sending] if args.key?(:use_email_sending)
@ -707,6 +720,11 @@ module Google
# @return [String]
attr_accessor :api_key
# Authorized domains for widget redirect.
# Corresponds to the JSON property `authorizedDomains`
# @return [Array<String>]
attr_accessor :authorized_domains
# Template for an email template.
# Corresponds to the JSON property `changeEmailTemplate`
# @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
@ -718,11 +736,22 @@ module Google
# @return [String]
attr_accessor :delegated_project_number
# Whether to enable anonymous user.
# Corresponds to the JSON property `enableAnonymousUser`
# @return [Boolean]
attr_accessor :enable_anonymous_user
alias_method :enable_anonymous_user?, :enable_anonymous_user
# Oauth2 provider configuration.
# Corresponds to the JSON property `idpConfig`
# @return [Array<Google::Apis::IdentitytoolkitV3::IdpConfig>]
attr_accessor :idp_config
# Template for an email template.
# Corresponds to the JSON property `legacyResetPasswordTemplate`
# @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
attr_accessor :legacy_reset_password_template
# Template for an email template.
# Corresponds to the JSON property `resetPasswordTemplate`
# @return [Google::Apis::IdentitytoolkitV3::EmailTemplate]
@ -747,9 +776,12 @@ module Google
def update!(**args)
@allow_password_user = args[:allow_password_user] if args.key?(:allow_password_user)
@api_key = args[:api_key] if args.key?(:api_key)
@authorized_domains = args[:authorized_domains] if args.key?(:authorized_domains)
@change_email_template = args[:change_email_template] if args.key?(:change_email_template)
@delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number)
@enable_anonymous_user = args[:enable_anonymous_user] if args.key?(:enable_anonymous_user)
@idp_config = args[:idp_config] if args.key?(:idp_config)
@legacy_reset_password_template = args[:legacy_reset_password_template] if args.key?(:legacy_reset_password_template)
@reset_password_template = args[:reset_password_template] if args.key?(:reset_password_template)
@use_email_sending = args[:use_email_sending] if args.key?(:use_email_sending)
@verify_email_template = args[:verify_email_template] if args.key?(:verify_email_template)
@ -1134,6 +1166,11 @@ module Google
# @return [String]
attr_accessor :provider
# OAuth2 client secret.
# Corresponds to the JSON property `secret`
# @return [String]
attr_accessor :secret
def initialize(**args)
update!(**args)
end
@ -1144,6 +1181,7 @@ module Google
@enabled = args[:enabled] if args.key?(:enabled)
@experiment_percent = args[:experiment_percent] if args.key?(:experiment_percent)
@provider = args[:provider] if args.key?(:provider)
@secret = args[:secret] if args.key?(:secret)
end
end
@ -1269,6 +1307,11 @@ module Google
# @return [String]
attr_accessor :new_email
# The user's hashed password.
# Corresponds to the JSON property `passwordHash`
# @return [String]
attr_accessor :password_hash
# The photo url of the user.
# Corresponds to the JSON property `photoUrl`
# @return [String]
@ -1296,6 +1339,7 @@ module Google
@id_token = args[:id_token] if args.key?(:id_token)
@kind = args[:kind] if args.key?(:kind)
@new_email = args[:new_email] if args.key?(:new_email)
@password_hash = args[:password_hash] if args.key?(:password_hash)
@photo_url = args[:photo_url] if args.key?(:photo_url)
@provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
@refresh_token = args[:refresh_token] if args.key?(:refresh_token)
@ -1719,6 +1763,11 @@ module Google
# @return [Fixnum]
attr_accessor :oauth_expire_in
# The OIDC id token.
# Corresponds to the JSON property `oauthIdToken`
# @return [String]
attr_accessor :oauth_id_token
# The user approved request token for the OpenID OAuth extension.
# Corresponds to the JSON property `oauthRequestToken`
# @return [String]
@ -1800,6 +1849,7 @@ module Google
@oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token)
@oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code)
@oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in)
@oauth_id_token = args[:oauth_id_token] if args.key?(:oauth_id_token)
@oauth_request_token = args[:oauth_request_token] if args.key?(:oauth_request_token)
@oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope)
@oauth_token_secret = args[:oauth_token_secret] if args.key?(:oauth_token_secret)

View File

@ -360,8 +360,11 @@ module Google
collection :authorized_domains, as: 'authorizedDomains'
property :change_email_template, as: 'changeEmailTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation
property :enable_anonymous_user, as: 'enableAnonymousUser'
collection :idp_config, as: 'idpConfig', class: Google::Apis::IdentitytoolkitV3::IdpConfig, decorator: Google::Apis::IdentitytoolkitV3::IdpConfig::Representation
property :legacy_reset_password_template, as: 'legacyResetPasswordTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation
property :project_id, as: 'projectId'
property :reset_password_template, as: 'resetPasswordTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation
@ -411,11 +414,15 @@ module Google
class Representation < Google::Apis::Core::JsonRepresentation
property :allow_password_user, as: 'allowPasswordUser'
property :api_key, as: 'apiKey'
collection :authorized_domains, as: 'authorizedDomains'
property :change_email_template, as: 'changeEmailTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation
property :delegated_project_number, as: 'delegatedProjectNumber'
property :enable_anonymous_user, as: 'enableAnonymousUser'
collection :idp_config, as: 'idpConfig', class: Google::Apis::IdentitytoolkitV3::IdpConfig, decorator: Google::Apis::IdentitytoolkitV3::IdpConfig::Representation
property :legacy_reset_password_template, as: 'legacyResetPasswordTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation
property :reset_password_template, as: 'resetPasswordTemplate', class: Google::Apis::IdentitytoolkitV3::EmailTemplate, decorator: Google::Apis::IdentitytoolkitV3::EmailTemplate::Representation
property :use_email_sending, as: 'useEmailSending'
@ -520,6 +527,7 @@ module Google
property :enabled, as: 'enabled'
property :experiment_percent, as: 'experimentPercent'
property :provider, as: 'provider'
property :secret, as: 'secret'
end
end
@ -554,6 +562,7 @@ module Google
property :id_token, as: 'idToken'
property :kind, as: 'kind'
property :new_email, as: 'newEmail'
property :password_hash, :base64 => true, as: 'passwordHash'
property :photo_url, as: 'photoUrl'
collection :provider_user_info, as: 'providerUserInfo', class: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo, decorator: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse::ProviderUserInfo::Representation
@ -659,6 +668,7 @@ module Google
property :oauth_access_token, as: 'oauthAccessToken'
property :oauth_authorization_code, as: 'oauthAuthorizationCode'
property :oauth_expire_in, as: 'oauthExpireIn'
property :oauth_id_token, as: 'oauthIdToken'
property :oauth_request_token, as: 'oauthRequestToken'
property :oauth_scope, as: 'oauthScope'
property :oauth_token_secret, as: 'oauthTokenSecret'

View File

@ -20,13 +20,12 @@ module Google
module Apis
# Google Cloud Logging API
#
# The Google Cloud Logging API lets you write log entries and manage your logs,
# log sinks and logs-based metrics.
# Writes log entries and manages your logs, log sinks, and logs-based metrics.
#
# @see https://cloud.google.com/logging/docs/
module LoggingV2beta1
VERSION = 'V2beta1'
REVISION = '20160104'
REVISION = '20160322'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -50,7 +50,16 @@ module Google
# @return [String]
attr_accessor :log_name
# A specific monitored resource or a group of monitored resources.
# An object representing a resource that can be used for monitoring, logging,
# billing, or other purposes. Examples include virtual machine instances,
# databases, and storage devices such as disks. The `type` field identifies a
# MonitoredResourceDescriptor object that describes the resource's schema.
# Information in the `labels` field identifies the actual resource and its
# attributes according to the schema. For example, a particular Compute Engine
# VM instance could be represented by the following object, because the
# MonitoredResourceDescriptor for `"gce_instance"` has labels `"instance_id"`
# and `"zone"`: ` "type": "gce_instance", "labels": ` "instance_id": "my-
# instance", "zone": "us-central1-a" ``
# Corresponds to the JSON property `resource`
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
attr_accessor :resource
@ -68,6 +77,16 @@ module Google
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
attr_accessor :entries
# Optional. Whether valid entries should be written even if some other entries
# fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not
# written, the response status will be the error associated with one of the
# failed entries and include error details in the form of
# WriteLogEntriesPartialErrors.
# Corresponds to the JSON property `partialSuccess`
# @return [Boolean]
attr_accessor :partial_success
alias_method :partial_success?, :partial_success
def initialize(**args)
update!(**args)
end
@ -78,25 +97,33 @@ module Google
@resource = args[:resource] if args.key?(:resource)
@labels = args[:labels] if args.key?(:labels)
@entries = args[:entries] if args.key?(:entries)
@partial_success = args[:partial_success] if args.key?(:partial_success)
end
end
# A specific monitored resource or a group of monitored resources.
# An object representing a resource that can be used for monitoring, logging,
# billing, or other purposes. Examples include virtual machine instances,
# databases, and storage devices such as disks. The `type` field identifies a
# MonitoredResourceDescriptor object that describes the resource's schema.
# Information in the `labels` field identifies the actual resource and its
# attributes according to the schema. For example, a particular Compute Engine
# VM instance could be represented by the following object, because the
# MonitoredResourceDescriptor for `"gce_instance"` has labels `"instance_id"`
# and `"zone"`: ` "type": "gce_instance", "labels": ` "instance_id": "my-
# instance", "zone": "us-central1-a" ``
class MonitoredResource
include Google::Apis::Core::Hashable
# The type of monitored resource. This field must match the value of the `type`
# field in a MonitoredResourceDescriptor object. For example, `"
# cloudsql_database"` represents Cloud SQL databases.
# Required. The monitored resource type. This field must match the `type` field
# of a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL
# database is `"cloudsql_database"`.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Values for some or all of the labels listed in the associated monitored
# resource descriptor. For example, specify a specific Cloud SQL database by
# supplying values for both the `"database_id"` and `"zone"` labels. Specify the
# set of all Cloud SQL databases in a particular location by supplying a value
# for only the `"zone"` label.
# Required. Values for all of the labels listed in the associated monitored
# resource descriptor. For example, Cloud SQL databases use the labels `"
# database_id"` and `"zone"`.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -117,18 +144,27 @@ module Google
include Google::Apis::Core::Hashable
# Required. The resource name of the log to which this log entry belongs. The
# format of the name is `projects/<project-id>/logs/<log-id%gt;`. Examples: `"
# projects/my-projectid/logs/syslog"`, `"projects/1234567890/logs/library.
# googleapis.com%2Fbook_log"`. The log ID part of resource name must be less
# than 512 characters long and can only include the following characters: upper
# and lower case alphanumeric characters: [A-Za-z0-9]; and punctuation
# characters: forward-slash, underscore, hyphen, and period. Forward-slash (`/`)
# characters in the log ID must be URL-encoded.
# format of the name is `"projects/
# /logs/"`. Examples: `"projects/my-projectid/logs/syslog"`, `"projects/
# 1234567890/logs/library.googleapis.com%2Fbook_log"`. The log ID part of
# resource name must be less than 512 characters long and can only include the
# following characters: upper and lower case alphanumeric characters: [A-Za-z0-9]
# ; and punctuation characters: forward-slash, underscore, hyphen, and period.
# Forward-slash (`/`) characters in the log ID must be URL-encoded.
# Corresponds to the JSON property `logName`
# @return [String]
attr_accessor :log_name
# A specific monitored resource or a group of monitored resources.
# An object representing a resource that can be used for monitoring, logging,
# billing, or other purposes. Examples include virtual machine instances,
# databases, and storage devices such as disks. The `type` field identifies a
# MonitoredResourceDescriptor object that describes the resource's schema.
# Information in the `labels` field identifies the actual resource and its
# attributes according to the schema. For example, a particular Compute Engine
# VM instance could be represented by the following object, because the
# MonitoredResourceDescriptor for `"gce_instance"` has labels `"instance_id"`
# and `"zone"`: ` "type": "gce_instance", "labels": ` "instance_id": "my-
# instance", "zone": "us-central1-a" ``
# Corresponds to the JSON property `resource`
# @return [Google::Apis::LoggingV2beta1::MonitoredResource]
attr_accessor :resource
@ -257,6 +293,12 @@ module Google
# @return [String]
attr_accessor :referer
# Whether or not a cache lookup was attempted.
# Corresponds to the JSON property `cacheLookup`
# @return [Boolean]
attr_accessor :cache_lookup
alias_method :cache_lookup?, :cache_lookup
# Whether or not an entity was served from cache (with or without validation).
# Corresponds to the JSON property `cacheHit`
# @return [Boolean]
@ -265,10 +307,16 @@ module Google
# Whether or not the response was validated with the origin server before being
# served from cache. This field is only meaningful if `cache_hit` is True.
# Corresponds to the JSON property `validatedWithOriginServer`
# Corresponds to the JSON property `cacheValidatedWithOriginServer`
# @return [Boolean]
attr_accessor :validated_with_origin_server
alias_method :validated_with_origin_server?, :validated_with_origin_server
attr_accessor :cache_validated_with_origin_server
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
# The number of HTTP response bytes inserted into cache. Set only when a cache
# fill was attempted.
# Corresponds to the JSON property `cacheFillBytes`
# @return [String]
attr_accessor :cache_fill_bytes
def initialize(**args)
update!(**args)
@ -284,8 +332,10 @@ module Google
@user_agent = args[:user_agent] if args.key?(:user_agent)
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
@referer = args[:referer] if args.key?(:referer)
@cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
@validated_with_origin_server = args[:validated_with_origin_server] if args.key?(:validated_with_origin_server)
@cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
end
end
@ -364,33 +414,39 @@ module Google
attr_accessor :filter
# Optional. How the results should be sorted. Presently, the only permitted
# values are `"timestamp"` (default) and `"timestamp desc"`. The first option
# returns entries in order of increasing values of `LogEntry.timestamp` (oldest
# first), and the second option returns entries in order of decreasing
# values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
# option returns entries in order of increasing values of `LogEntry.timestamp` (
# oldest first), and the second option returns entries in order of decreasing
# timestamps (newest first). Entries with equal timestamps are returned in order
# of `LogEntry.insertId`.
# Corresponds to the JSON property `orderBy`
# @return [String]
attr_accessor :order_by
# Optional. The maximum number of results to return from this request. Fewer
# results might be returned. You must check for the `nextPageToken` result to
# determine if additional results are available, which you can retrieve by
# passing the `nextPageToken` value in the `pageToken` parameter to the next
# request.
# Optional. The maximum number of results to return from this request. You must
# check for presence of `nextPageToken` to determine if additional results are
# available, which you can retrieve by passing the `nextPageToken` value as the `
# pageToken` parameter in the next request.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
# Optional. If the `pageToken` request parameter is supplied, then the next page
# of results in the set are retrieved. The `pageToken` parameter must be set
# with the value of the `nextPageToken` result parameter from the previous
# request. The values of `projectIds`, `filter`, and `orderBy` must be the same
# as in the previous request.
# Optional. If the `pageToken` parameter is supplied, then the next page of
# results is retrieved. The `pageToken` parameter must be set to the value of
# the `nextPageToken` from the previous response. The values of `projectIds`, `
# filter`, and `orderBy` must be the same as in the previous request.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# Optional. If true, read access to all projects is not required and results
# will be returned for the subset of projects for which read access is permitted
# (empty subset is permitted).
# Corresponds to the JSON property `partialSuccess`
# @return [Boolean]
attr_accessor :partial_success
alias_method :partial_success?, :partial_success
def initialize(**args)
update!(**args)
end
@ -402,6 +458,7 @@ module Google
@order_by = args[:order_by] if args.key?(:order_by)
@page_size = args[:page_size] if args.key?(:page_size)
@page_token = args[:page_token] if args.key?(:page_token)
@partial_success = args[:partial_success] if args.key?(:partial_success)
end
end
@ -414,13 +471,19 @@ module Google
# @return [Array<Google::Apis::LoggingV2beta1::LogEntry>]
attr_accessor :entries
# If there are more results than were returned, then `nextPageToken` is given a
# value in the response. To get the next batch of results, call this method
# again using the value of `nextPageToken` as `pageToken`.
# If there are more results than were returned, then `nextPageToken` is included
# in the response. To get the next set of results, call this method again using
# the value of `nextPageToken` as `pageToken`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# If partial_success is true, contains the project ids that had errors and the
# associated errors.
# Corresponds to the JSON property `projectIdErrors`
# @return [Hash<String,Google::Apis::LoggingV2beta1::Status>]
attr_accessor :project_id_errors
def initialize(**args)
update!(**args)
end
@ -429,6 +492,72 @@ module Google
def update!(**args)
@entries = args[:entries] if args.key?(:entries)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@project_id_errors = args[:project_id_errors] if args.key?(:project_id_errors)
end
end
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by [
# gRPC](https://github.com/grpc). The error model is designed to be: - Simple to
# use and understand for most users - Flexible enough to meet unexpected needs #
# Overview The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of google.
# rpc.Code, but it may accept additional error codes if needed. The error
# message should be a developer-facing English message that helps developers *
# understand* and *resolve* the error. If a localized user-facing error message
# is needed, put the localized message in the error details or localize it in
# the client. The optional error details may contain arbitrary information about
# the error. There is a predefined set of error detail types in the package `
# google.rpc` which can be used for common error conditions. # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C. # Other uses The
# error model and the `Status` message can be used in a variety of environments,
# either with or without APIs, to provide a consistent developer experience
# across different environments. Example uses of this error model include: -
# Partial errors. If a service needs to return partial errors to the client, it
# may embed the `Status` in the normal response to indicate the partial errors. -
# Workflow errors. A typical workflow has multiple steps. Each step may have a `
# Status` message for error reporting purpose. - Batch operations. If a client
# uses batch request and batch response, the `Status` message should be used
# directly inside batch response, one for each error sub-response. -
# Asynchronous operations. If an API call embeds asynchronous operation results
# in its response, the status of those operations should be represented directly
# using the `Status` message. - Logging. If some API errors are stored in logs,
# the message `Status` could be used directly after any stripping needed for
# security/privacy reasons.
class Status
include Google::Apis::Core::Hashable
# The status code, which should be an enum value of google.rpc.Code.
# Corresponds to the JSON property `code`
# @return [Fixnum]
attr_accessor :code
# A developer-facing error message, which should be in English. Any user-facing
# error message should be localized and sent in the google.rpc.Status.details
# field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
# A list of messages that carry the error details. There will be a common set of
# message types for APIs to use.
# Corresponds to the JSON property `details`
# @return [Array<Hash<String,Object>>]
attr_accessor :details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@message = args[:message] if args.key?(:message)
@details = args[:details] if args.key?(:details)
end
end
@ -441,9 +570,9 @@ module Google
# @return [Array<Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor>]
attr_accessor :resource_descriptors
# If there are more results than were returned, then `nextPageToken` is returned
# in the response. To get the next batch of results, call this method again
# using the value of `nextPageToken` as `pageToken`.
# If there are more results than were returned, then `nextPageToken` is included
# in the response. To get the next set of results, call this method again using
# the value of `nextPageToken` as `pageToken`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -459,31 +588,47 @@ module Google
end
end
# A description of a type of monitored resource.
# An object that describes the schema of a MonitoredResource object using a type
# name and a set of labels. For example, the monitored resource descriptor for
# Google Compute Engine VM instances has a type of `"gce_instance"` and
# specifies the use of the labels `"instance_id"` and `"zone"` to identify
# particular VM instances. Different APIs can support different monitored
# resource types. APIs generally provide a `list` method that returns the
# monitored resource descriptors used by the API.
class MonitoredResourceDescriptor
include Google::Apis::Core::Hashable
# The monitored resource type. For example, the type `"cloudsql_database"`
# represents databases in Google Cloud SQL.
# Optional. The resource name of the monitored resource descriptor: `"projects/`
# project_id`/monitoredResourceDescriptors/`type`"` where `type` is the value of
# the `type` field in this object and `project_id` is a project ID that provides
# API-specific context for accessing the type. APIs that do not use project
# information can use the resource name format `"monitoredResourceDescriptors/`
# type`"`.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. The monitored resource type. For example, the type `"
# cloudsql_database"` represents databases in Google Cloud SQL.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# A concise name for the monitored resource type, which is displayed in user
# interfaces. For example, `"Cloud SQL Database"`.
# Optional. A concise name for the monitored resource type that might be
# displayed in user interfaces. For example, `"Google Cloud SQL Database"`.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# A detailed description of the monitored resource type, which is used in
# documentation.
# Optional. A detailed description of the monitored resource type that might be
# used in documentation.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# A set of labels that can be used to describe instances of this monitored
# resource type. For example, Cloud SQL databases can be labeled with their `"
# database_id"` and their `"zone"`.
# Required. A set of labels used to describe instances of this monitored
# resource type. For example, an individual Google Cloud SQL database is
# identified by values for the labels `"database_id"` and `"zone"`.
# Corresponds to the JSON property `labels`
# @return [Array<Google::Apis::LoggingV2beta1::LabelDescriptor>]
attr_accessor :labels
@ -494,6 +639,7 @@ module Google
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
@display_name = args[:display_name] if args.key?(:display_name)
@description = args[:description] if args.key?(:description)
@ -541,9 +687,9 @@ module Google
# @return [Array<Google::Apis::LoggingV2beta1::LogSink>]
attr_accessor :sinks
# If there are more results than were returned, then `nextPageToken` is given a
# value in the response. To get the next batch of results, call this method
# again using the value of `nextPageToken` as `pageToken`.
# If there are more results than were returned, then `nextPageToken` is included
# in the response. To get the next set of results, call this method again using
# the value of `nextPageToken` as `pageToken`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -578,16 +724,17 @@ module Google
# @return [String]
attr_accessor :destination
# An [advanced logs filter](/logging/docs/view/advanced_filters) that defines
# the log entries to be exported. The filter must be consistent with the log
# entry format designed by the `outputVersionFormat` parameter, regardless of
# the format of the log entry that was originally written to Cloud Logging.
# Example: `"logName:syslog AND severity>=ERROR"`.
# An [advanced logs filter](/logging/docs/view/advanced_filters). Only log
# entries matching that filter are exported. The filter must be consistent with
# the log entry format specified by the `outputVersionFormat` parameter,
# regardless of the format of the log entry that was originally written to Cloud
# Logging. Example (V2 format): `"logName=projects/my-projectid/logs/syslog AND
# severity>=ERROR"`.
# Corresponds to the JSON property `filter`
# @return [String]
attr_accessor :filter
# The log entry version used when exporting log entries from this sink. This
# The log entry version to use for this sink's exported log entries. This
# version does not have to correspond to the version of the log entry when it
# was written to Cloud Logging.
# Corresponds to the JSON property `outputVersionFormat`
@ -616,9 +763,9 @@ module Google
# @return [Array<Google::Apis::LoggingV2beta1::LogMetric>]
attr_accessor :metrics
# If there are more results than were returned, then `nextPageToken` is given a
# value in the response. To get the next batch of results, call this method
# again using the value of `nextPageToken` as `pageToken`.
# If there are more results than were returned, then `nextPageToken` is included
# in the response. To get the next set of results, call this method again using
# the value of `nextPageToken` as `pageToken`.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
@ -818,6 +965,14 @@ module Google
attr_accessor :finished
alias_method :finished?, :finished
# Whether this is the first RequestLog entry for this request. If an active
# request has several RequestLog entries written to Cloud Logging, this field
# will be set for one of them.
# Corresponds to the JSON property `first`
# @return [Boolean]
attr_accessor :first
alias_method :first?, :first
# An identifier for the instance that handled the request.
# Corresponds to the JSON property `instanceId`
# @return [String]
@ -877,6 +1032,7 @@ module Google
@pending_time = args[:pending_time] if args.key?(:pending_time)
@instance_index = args[:instance_index] if args.key?(:instance_index)
@finished = args[:finished] if args.key?(:finished)
@first = args[:first] if args.key?(:first)
@instance_id = args[:instance_id] if args.key?(:instance_id)
@line = args[:line] if args.key?(:line)
@app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)

View File

@ -76,6 +76,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Status
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListMonitoredResourceDescriptorsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -157,6 +163,7 @@ module Google
hash :labels, as: 'labels'
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
property :partial_success, as: 'partialSuccess'
end
end
@ -199,8 +206,10 @@ module Google
property :user_agent, as: 'userAgent'
property :remote_ip, as: 'remoteIp'
property :referer, as: 'referer'
property :cache_lookup, as: 'cacheLookup'
property :cache_hit, as: 'cacheHit'
property :validated_with_origin_server, as: 'validatedWithOriginServer'
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
property :cache_fill_bytes, as: 'cacheFillBytes'
end
end
@ -228,6 +237,7 @@ module Google
property :order_by, as: 'orderBy'
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
property :partial_success, as: 'partialSuccess'
end
end
@ -237,6 +247,17 @@ module Google
collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation
property :next_page_token, as: 'nextPageToken'
hash :project_id_errors, as: 'projectIdErrors', class: Google::Apis::LoggingV2beta1::Status, decorator: Google::Apis::LoggingV2beta1::Status::Representation
end
end
class Status
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
property :message, as: 'message'
collection :details, as: 'details'
end
end
@ -252,6 +273,7 @@ module Google
class MonitoredResourceDescriptor
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :type, as: 'type'
property :display_name, as: 'displayName'
property :description, as: 'description'
@ -335,6 +357,7 @@ module Google
property :pending_time, as: 'pendingTime'
property :instance_index, as: 'instanceIndex'
property :finished, as: 'finished'
property :first, as: 'first'
property :instance_id, as: 'instanceId'
collection :line, as: 'line', class: Google::Apis::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation

View File

@ -22,8 +22,7 @@ module Google
module LoggingV2beta1
# Google Cloud Logging API
#
# The Google Cloud Logging API lets you write log entries and manage your logs,
# log sinks and logs-based metrics.
# Writes log entries and manages your logs, log sinks, and logs-based metrics.
#
# @example
# require 'google/apis/logging_v2beta1'
@ -82,19 +81,17 @@ module Google
# Lists sinks.
# @param [String] project_name
# Required. The resource name of the project containing the sinks. Example: `"
# projects/my-logging-project"`, `"projects/01234567890"`.
# projects/my-logging-project"`.
# @param [String] page_token
# Optional. If the `pageToken` request parameter is supplied, then the next page
# of results in the set are retrieved. The `pageToken` parameter must be set
# with the value of the `nextPageToken` result parameter from the previous
# request. The value of `projectName` must be the same as in the previous
# request.
# Optional. If the `pageToken` parameter is supplied, then the next page of
# results is retrieved. The `pageToken` parameter must be set to the value of
# the `nextPageToken` from the previous response. The value of `projectName`
# must be the same as in the previous request.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Fewer
# results might be returned. You must check for the `nextPageToken` result to
# determine if additional results are available, which you can retrieve by
# passing the `nextPageToken` value in the `pageToken` parameter to the next
# request.
# Optional. The maximum number of results to return from this request. You must
# check for presence of `nextPageToken` to determine if additional results are
# available, which you can retrieve by passing the `nextPageToken` value as the `
# pageToken` parameter in the next request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -261,17 +258,15 @@ module Google
# Required. The resource name of the project containing the metrics. Example: `"
# projects/my-project-id"`.
# @param [String] page_token
# Optional. If the `pageToken` request parameter is supplied, then the next page
# of results in the set are retrieved. The `pageToken` parameter must be set
# with the value of the `nextPageToken` result parameter from the previous
# request. The value of `projectName` must be the same as in the previous
# request.
# Optional. If the `pageToken` parameter is supplied, then the next page of
# results is retrieved. The `pageToken` parameter must be set to the value of
# the `nextPageToken` from the previous response. The value of `projectName`
# must be the same as in the previous request.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Fewer
# results might be returned. You must check for the `nextPageToken` result to
# determine if additional results are available, which you can retrieve by
# passing the `nextPageToken` value in the `pageToken` parameter to the next
# request.
# Optional. The maximum number of results to return from this request. You must
# check for presence of `nextPageToken` to determine if additional results are
# available, which you can retrieve by passing the `nextPageToken` value as the `
# pageToken` parameter in the next request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -497,16 +492,14 @@ module Google
# Lists monitored resource descriptors that are used by Cloud Logging.
# @param [Fixnum] page_size
# Optional. The maximum number of results to return from this request. Fewer
# results might be returned. You must check for the `nextPageToken` result to
# determine if additional results are available, which you can retrieve by
# passing the `nextPageToken` value in the `pageToken` parameter to the next
# request.
# Optional. The maximum number of results to return from this request. You must
# check for presence of `nextPageToken` to determine if additional results are
# available, which you can retrieve by passing the `nextPageToken` value as the `
# pageToken` parameter in the next request.
# @param [String] page_token
# Optional. If the `pageToken` request parameter is supplied, then the next page
# of results in the set are retrieved. The `pageToken` parameter must be set
# with the value of the `nextPageToken` result parameter from the previous
# request.
# Optional. If the `pageToken` parameter is supplied, then the next page of
# results is retrieved. The `pageToken` parameter must be set to the value of
# the `nextPageToken` from the previous response.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -20,12 +20,12 @@ module Google
module Apis
# Google OAuth2 API
#
# Lets you access OAuth2 protocol related APIs.
# Obtains end-user authorization grants for use with other Google APIs.
#
# @see https://developers.google.com/accounts/docs/OAuth2
module Oauth2V2
VERSION = 'V2'
REVISION = '20160217'
REVISION = '20160330'
# Know the list of people in your circles, your age range, and language
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'

View File

@ -22,7 +22,7 @@ module Google
module Oauth2V2
# Google OAuth2 API
#
# Lets you access OAuth2 protocol related APIs.
# Obtains end-user authorization grants for use with other Google APIs.
#
# @example
# require 'google/apis/oauth2_v2'

View File

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

View File

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

View File

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

View File

@ -33,7 +33,7 @@ module Google
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
# IAM developer's guide](https://cloud.google.com/iam).
# Corresponds to the JSON property `policy`
@ -57,7 +57,7 @@ module Google
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
# appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
# IAM developer's guide](https://cloud.google.com/iam).
class Policy
@ -75,7 +75,14 @@ module Google
# @return [Array<Google::Apis::PubsubV1::Binding>]
attr_accessor :bindings
# Can be used to perform a read-modify-write.
# `etag` is used for optimistic concurrency control as a way to help prevent
# simultaneous updates of a policy from overwriting each other. It is strongly
# suggested that systems make use of the `etag` in the read-modify-write cycle
# to perform policy updates in order to avoid race conditions: An `etag` is
# returned in the response to `getIamPolicy`, and systems are expected to put
# that etag in the request to `setIamPolicy` to ensure that their change will be
# applied to the same version of the policy. If no `etag` is provided in the
# call to `setIamPolicy`, then the existing policy is overwritten blindly.
# Corresponds to the JSON property `etag`
# @return [String]
attr_accessor :etag
@ -103,7 +110,7 @@ module Google
attr_accessor :role
# Specifies the identities requesting access for a Cloud Platform resource. `
# members` can have the following formats: * `allUsers`: A special identifier
# members` can have the following values: * `allUsers`: A special identifier
# that represents anyone who is on the internet; with or without a Google
# account. * `allAuthenticatedUsers`: A special identifier that represents
# anyone who is authenticated with a Google account or a service account. * `
@ -134,7 +141,8 @@ module Google
include Google::Apis::Core::Hashable
# The set of permissions to check for the `resource`. Permissions with wildcards
# (such as '*' or 'storage.*') are not allowed.
# (such as '*' or 'storage.*') are not allowed. For more information see IAM
# Overview.
# Corresponds to the JSON property `permissions`
# @return [Array<String>]
attr_accessor :permissions
@ -373,13 +381,13 @@ module Google
# the subscriber should acknowledge the message. After message delivery but
# before the ack deadline expires and before the message is acknowledged, it is
# an outstanding message and will not be delivered again during that time (on a
# best-effort basis). For pull delivery this value is used as the initial value
# for the ack deadline. To override this value for a given message, call `
# ModifyAckDeadline` with the corresponding `ack_id`. For push delivery, this
# value is also used to set the request timeout for the call to the push
# endpoint. If the subscriber never acknowledges the message, the Pub/Sub system
# will eventually redeliver the message. If this parameter is not set, the
# default value of 10 seconds is used.
# best-effort basis). For pull subscriptions, this value is used as the initial
# value for the ack deadline. To override this value for a given message, call `
# ModifyAckDeadline` with the corresponding `ack_id` if using pull. For push
# delivery, this value is also used to set the request timeout for the call to
# the push endpoint. If the subscriber never acknowledges the message, the Pub/
# Sub system will eventually redeliver the message. If this parameter is not set,
# the default value of 10 seconds is used.
# Corresponds to the JSON property `ackDeadlineSeconds`
# @return [Fixnum]
attr_accessor :ack_deadline_seconds

View File

@ -49,10 +49,10 @@ module Google
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which policy is being specified. `resource` is
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
# disk``. The format for the path specified in this value is resource specific
# and is specified in the documentation for the respective SetIamPolicy rpc.
# REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
# disk*`. The format for the path specified in this value is resource specific
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -83,13 +83,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a `resource`. Is empty if the policy or the
# resource does not exist.
# Gets the access control policy for a `resource`. Returns an empty policy if
# the resource exists and does not have a policy set.
# @param [String] resource
# REQUIRED: The resource for which policy is being requested. `resource` is
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
# disk``. The format for the path specified in this value is resource specific
# and is specified in the documentation for the respective GetIamPolicy rpc.
# REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
# disk*`. The format for the path specified in this value is resource specific
# and is specified in the `getIamPolicy` documentation.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -119,11 +119,10 @@ module Google
# Returns permissions that a caller has on the specified resource.
# @param [String] resource
# REQUIRED: The resource for which policy detail is being requested. `resource`
# is usually specified as a path, such as, `projects/`project`/zones/`zone`/
# disks/`disk``. The format for the path specified in this value is resource
# specific and is specified in the documentation for the respective
# TestIamPermissions rpc.
# REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path, such as `projects/*project*/zones/*
# zone*/disks/*disk*`. The format for the path specified in this value is
# resource specific and is specified in the `testIamPermissions` documentation.
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -369,10 +368,10 @@ module Google
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which policy is being specified. `resource` is
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
# disk``. The format for the path specified in this value is resource specific
# and is specified in the documentation for the respective SetIamPolicy rpc.
# REQUIRED: The resource for which the policy is being specified. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
# disk*`. The format for the path specified in this value is resource specific
# and is specified in the `setIamPolicy` documentation.
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -403,13 +402,13 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a `resource`. Is empty if the policy or the
# resource does not exist.
# Gets the access control policy for a `resource`. Returns an empty policy if
# the resource exists and does not have a policy set.
# @param [String] resource
# REQUIRED: The resource for which policy is being requested. `resource` is
# usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
# disk``. The format for the path specified in this value is resource specific
# and is specified in the documentation for the respective GetIamPolicy rpc.
# REQUIRED: The resource for which the policy is being requested. `resource` is
# usually specified as a path, such as `projects/*project*/zones/*zone*/disks/*
# disk*`. The format for the path specified in this value is resource specific
# and is specified in the `getIamPolicy` documentation.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -439,11 +438,10 @@ module Google
# Returns permissions that a caller has on the specified resource.
# @param [String] resource
# REQUIRED: The resource for which policy detail is being requested. `resource`
# is usually specified as a path, such as, `projects/`project`/zones/`zone`/
# disks/`disk``. The format for the path specified in this value is resource
# specific and is specified in the documentation for the respective
# TestIamPermissions rpc.
# REQUIRED: The resource for which the policy detail is being requested. `
# resource` is usually specified as a path, such as `projects/*project*/zones/*
# zone*/disks/*disk*`. The format for the path specified in this value is
# resource specific and is specified in the `testIamPermissions` documentation.
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@ -474,11 +472,10 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a subscription to a given topic for a given subscriber. If the
# subscription already exists, returns `ALREADY_EXISTS`. If the corresponding
# topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the
# request, the server will assign a random name for this subscription on the
# same project as the topic.
# Creates a subscription to a given topic. If the subscription already exists,
# returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns `
# NOT_FOUND`. If the name is not provided in the request, the server will assign
# a random name for this subscription on the same project as the topic.
# @param [String] name
# The name of the subscription. It must have the format `"projects/`project`/
# subscriptions/`subscription`"`. ``subscription`` must start with a letter, and

View File

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

View File

@ -102,6 +102,12 @@ module Google
class ChangePlanRequest
include Google::Apis::Core::Hashable
# External name of the deal code applicable for the subscription. This field is
# optional. If missing, the deal price plan won't be used.
# Corresponds to the JSON property `dealCode`
# @return [String]
attr_accessor :deal_code
# Identifies the resource as a subscription change plan request.
# Corresponds to the JSON property `kind`
# @return [String]
@ -128,6 +134,7 @@ module Google
# Update properties of this object
def update!(**args)
@deal_code = args[:deal_code] if args.key?(:deal_code)
@kind = args[:kind] if args.key?(:kind)
@plan_name = args[:plan_name] if args.key?(:plan_name)
@purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)
@ -286,6 +293,12 @@ module Google
# @return [String]
attr_accessor :customer_id
# External name of the deal, if this subscription was provisioned under one.
# Otherwise this field will be empty.
# Corresponds to the JSON property `dealCode`
# @return [String]
attr_accessor :deal_code
# Identifies the resource as a Subscription.
# Corresponds to the JSON property `kind`
# @return [String]
@ -331,17 +344,17 @@ module Google
# @return [String]
attr_accessor :subscription_id
# field listing all current reasons the subscription is suspended. It is
# possible for a subscription to have multiple suspension reasons. A
# subscription's status is SUSPENDED until all pending suspensions are removed.
# Possible options include:
# - PENDING_TOS_ACCEPTANCE The customer has not logged in and accepted the
# Read-only field containing an enumerable of all the current suspension reasons
# for a subscription. It is possible for a subscription to have many concurrent,
# overlapping suspension reasons. A subscription's STATUS is SUSPENDED until all
# pending suspensions are removed. Possible options include:
# - PENDING_TOS_ACCEPTANCE - The customer has not logged in and accepted the
# Google Apps Resold Terms of Services.
# - RENEWAL_WITH_TYPE_CANCEL The customer's commitment ended and their service
# - RENEWAL_WITH_TYPE_CANCEL - The customer's commitment ended and their service
# was cancelled at the end of their term.
# - RESELLER_INITIATED A manual suspension invoked by a Reseller.
# - TRIAL_ENDED The customer's trial expired without a plan selected.
# - OTHER The customer is suspended for an internal Google reason (e.g. abuse
# - RESELLER_INITIATED - A manual suspension invoked by a Reseller.
# - TRIAL_ENDED - The customer's trial expired without a plan selected.
# - OTHER - The customer is suspended for an internal Google reason (e.g. abuse
# or otherwise).
# Corresponds to the JSON property `suspensionReasons`
# @return [Array<String>]
@ -367,6 +380,7 @@ module Google
@creation_time = args[:creation_time] if args.key?(:creation_time)
@customer_domain = args[:customer_domain] if args.key?(:customer_domain)
@customer_id = args[:customer_id] if args.key?(:customer_id)
@deal_code = args[:deal_code] if args.key?(:deal_code)
@kind = args[:kind] if args.key?(:kind)
@plan = args[:plan] if args.key?(:plan)
@purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id)

View File

@ -107,6 +107,7 @@ module Google
class ChangePlanRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :deal_code, as: 'dealCode'
property :kind, as: 'kind'
property :plan_name, as: 'planName'
property :purchase_order_id, as: 'purchaseOrderId'
@ -155,6 +156,7 @@ module Google
property :creation_time, as: 'creationTime'
property :customer_domain, as: 'customerDomain'
property :customer_id, as: 'customerId'
property :deal_code, as: 'dealCode'
property :kind, as: 'kind'
property :plan, as: 'plan', class: Google::Apis::ResellerV1::Subscription::Plan, decorator: Google::Apis::ResellerV1::Subscription::Plan::Representation

View File

@ -0,0 +1,43 @@
# 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/sheets_v1/service.rb'
require 'google/apis/sheets_v1/classes.rb'
require 'google/apis/sheets_v1/representations.rb'
module Google
module Apis
# Google Sheets API
#
# An API for reading and modifying Google Sheets.
#
# @see
module SheetsV1
VERSION = 'V1'
REVISION = '20160328'
# View the files in your Google Drive
AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
# View your Google Spreadsheets
AUTH_SPREADSHEETS_READONLY = 'https://www.googleapis.com/auth/spreadsheets.readonly'
# View and manage your spreadsheets in Google Drive
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
# View and manage the files in your Google Drive
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
end
end
end

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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