regen APIs, add sheets_v4 & analyticsreporting_v4
This commit is contained in:
parent
5cdbb667b5
commit
416ae55acf
|
@ -172,6 +172,7 @@
|
|||
"/analytics:v3/analytics.management.webpropertyUserLinks.update": update_web_property_user_link
|
||||
"/analytics:v3/analytics.metadata.columns.list": list_metadata_columns
|
||||
"/analytics:v3/analytics.provisioning.createAccountTicket": create_account_ticket
|
||||
"/analyticsreporting:v4/analyticsreporting.reports.batchGet": batch_get_reports
|
||||
"/androidenterprise:v1/CollectionViewersListResponse": list_collection_viewers_response
|
||||
"/androidenterprise:v1/CollectionsListResponse": list_collections_response
|
||||
"/androidenterprise:v1/DevicesListResponse": list_devices_response
|
||||
|
@ -991,6 +992,9 @@
|
|||
"/siteVerification:v1/SiteVerificationWebResourceGettokenResponse": get_web_resource_token_response
|
||||
"/siteVerification:v1/SiteVerificationWebResourceGettokenResponse/method": verification_method
|
||||
"/siteVerification:v1/SiteVerificationWebResourceListResponse": list_web_resource_response
|
||||
"/sheets:v4/sheets.spreadsheets.sheets.copyTo": copy_spreadsheet
|
||||
"/sheets:v4/sheets.spreadsheets.values.batchGet": batch_get_spreadsheet_values
|
||||
"/sheets:v4/sheets.spreadsheets.values.get": get_spreadsheet_values
|
||||
"/sqladmin:v1beta4/BackupRunsListResponse": list_backup_runs_response
|
||||
"/sqladmin:v1beta4/DatabasesListResponse": list_databases_response
|
||||
"/sqladmin:v1beta4/FlagsListResponse": list_flags_response
|
||||
|
|
1531
api_names_out.yaml
1531
api_names_out.yaml
File diff suppressed because it is too large
Load Diff
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/ad-exchange/buyer-rest
|
||||
module AdexchangebuyerV1_4
|
||||
VERSION = 'V1_4'
|
||||
REVISION = '20160405'
|
||||
REVISION = '20160509'
|
||||
|
||||
# Manage your Ad Exchange buyer account configuration
|
||||
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
|
||||
|
|
|
@ -427,7 +427,7 @@ module Google
|
|||
# @return [Array<Google::Apis::AdexchangebuyerV1_4::Proposal>]
|
||||
attr_accessor :proposals
|
||||
|
||||
#
|
||||
# Web property id of the seller creating these orders
|
||||
# Corresponds to the JSON property `webPropertyCode`
|
||||
# @return [String]
|
||||
attr_accessor :web_property_code
|
||||
|
@ -477,6 +477,11 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :account_id
|
||||
|
||||
# The link to the Ad Preferences page. This is only supported for native ads.
|
||||
# Corresponds to the JSON property `adChoicesDestinationUrl`
|
||||
# @return [String]
|
||||
attr_accessor :ad_choices_destination_url
|
||||
|
||||
# Detected advertiser id, if any. Read-only. This field should not be set in
|
||||
# requests.
|
||||
# Corresponds to the JSON property `advertiserId`
|
||||
|
@ -619,6 +624,7 @@ module Google
|
|||
def update!(**args)
|
||||
@html_snippet = args[:html_snippet] if args.key?(:html_snippet)
|
||||
@account_id = args[:account_id] if args.key?(:account_id)
|
||||
@ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
|
||||
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
|
||||
@advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
|
||||
@agency_id = args[:agency_id] if args.key?(:agency_id)
|
||||
|
@ -1042,7 +1048,8 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Tracks which parties (if any) have paused a deal. The deal is considered
|
||||
# paused if has_buyer_paused || has_seller_paused.
|
||||
# paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused
|
||||
# or the has_seller_paused bits can be set independently.
|
||||
# Corresponds to the JSON property `dealPauseStatus`
|
||||
# @return [Google::Apis::AdexchangebuyerV1_4::DealServingMetadataDealPauseStatus]
|
||||
attr_accessor :deal_pause_status
|
||||
|
@ -1058,10 +1065,16 @@ module Google
|
|||
end
|
||||
|
||||
# Tracks which parties (if any) have paused a deal. The deal is considered
|
||||
# paused if has_buyer_paused || has_seller_paused.
|
||||
# paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused
|
||||
# or the has_seller_paused bits can be set independently.
|
||||
class DealServingMetadataDealPauseStatus
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If the deal is paused, records which party paused the deal first.
|
||||
# Corresponds to the JSON property `firstPausedBy`
|
||||
# @return [String]
|
||||
attr_accessor :first_paused_by
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `hasBuyerPaused`
|
||||
# @return [Boolean]
|
||||
|
@ -1080,6 +1093,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@first_paused_by = args[:first_paused_by] if args.key?(:first_paused_by)
|
||||
@has_buyer_paused = args[:has_buyer_paused] if args.key?(:has_buyer_paused)
|
||||
@has_seller_paused = args[:has_seller_paused] if args.key?(:has_seller_paused)
|
||||
end
|
||||
|
@ -1153,6 +1167,12 @@ module Google
|
|||
class DealTermsGuaranteedFixedPriceTerms
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# External billing info for this Deal. This field is relevant when external
|
||||
# billing info such as price has a different currency code than DFP/AdX.
|
||||
# Corresponds to the JSON property `billingInfo`
|
||||
# @return [Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTermsBillingInfo]
|
||||
attr_accessor :billing_info
|
||||
|
||||
# Fixed price for the specified buyer.
|
||||
# Corresponds to the JSON property `fixedPrices`
|
||||
# @return [Array<Google::Apis::AdexchangebuyerV1_4::PricePerBuyer>]
|
||||
|
@ -1175,12 +1195,49 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@billing_info = args[:billing_info] if args.key?(:billing_info)
|
||||
@fixed_prices = args[:fixed_prices] if args.key?(:fixed_prices)
|
||||
@guaranteed_impressions = args[:guaranteed_impressions] if args.key?(:guaranteed_impressions)
|
||||
@guaranteed_looks = args[:guaranteed_looks] if args.key?(:guaranteed_looks)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class DealTermsGuaranteedFixedPriceTermsBillingInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The timestamp (in ms since epoch) when the original reservation price for the
|
||||
# deal was first converted to DFP currency. This is used to convert the
|
||||
# contracted price into advertiser's currency without discrepancy.
|
||||
# Corresponds to the JSON property `currencyConversionTimeMs`
|
||||
# @return [String]
|
||||
attr_accessor :currency_conversion_time_ms
|
||||
|
||||
# The original contracted quantity (# impressions) for this deal. To ensure
|
||||
# delivery, sometimes publisher will book the deal with a impression buffer,
|
||||
# however clients are billed using the original contracted quantity.
|
||||
# Corresponds to the JSON property `originalContractedQuantity`
|
||||
# @return [String]
|
||||
attr_accessor :original_contracted_quantity
|
||||
|
||||
# The original reservation price for the deal, if the currency code is different
|
||||
# from the one used in negotiation.
|
||||
# Corresponds to the JSON property `price`
|
||||
# @return [Google::Apis::AdexchangebuyerV1_4::Price]
|
||||
attr_accessor :price
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@currency_conversion_time_ms = args[:currency_conversion_time_ms] if args.key?(:currency_conversion_time_ms)
|
||||
@original_contracted_quantity = args[:original_contracted_quantity] if args.key?(:original_contracted_quantity)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class DealTermsNonGuaranteedAuctionTerms
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1241,7 +1298,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :proposal_revision_number
|
||||
|
||||
#
|
||||
# Indicates an optional action to take on the proposal
|
||||
# Corresponds to the JSON property `updateAction`
|
||||
# @return [String]
|
||||
attr_accessor :update_action
|
||||
|
@ -2389,6 +2446,11 @@ module Google
|
|||
class PricePerBuyer
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Optional access type for this buyer.
|
||||
# Corresponds to the JSON property `auctionTier`
|
||||
# @return [String]
|
||||
attr_accessor :auction_tier
|
||||
|
||||
# The buyer who will pay this price. If unset, all buyers can pay this price (if
|
||||
# the advertisers match, and there's no more specific rule matching the buyer).
|
||||
# Corresponds to the JSON property `buyer`
|
||||
|
@ -2406,6 +2468,7 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@auction_tier = args[:auction_tier] if args.key?(:auction_tier)
|
||||
@buyer = args[:buyer] if args.key?(:buyer)
|
||||
@price = args[:price] if args.key?(:price)
|
||||
end
|
||||
|
@ -2534,6 +2597,11 @@ module Google
|
|||
# @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
|
||||
|
||||
# The revision number of the product. (readonly)
|
||||
# Corresponds to the JSON property `revisionNumber`
|
||||
# @return [String]
|
||||
|
@ -2594,6 +2662,7 @@ module Google
|
|||
@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)
|
||||
@publisher_provided_forecast = args[:publisher_provided_forecast] if args.key?(:publisher_provided_forecast)
|
||||
@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)
|
||||
|
@ -2685,11 +2754,6 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :last_updater_or_commentor_role
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `lastUpdaterRole`
|
||||
# @return [String]
|
||||
attr_accessor :last_updater_role
|
||||
|
||||
# The name for the proposal (updatable)
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
|
@ -2758,7 +2822,6 @@ module Google
|
|||
@kind = args[:kind] if args.key?(:kind)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@last_updater_or_commentor_role = args[:last_updater_or_commentor_role] if args.key?(:last_updater_or_commentor_role)
|
||||
@last_updater_role = args[:last_updater_role] if args.key?(:last_updater_role)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@negotiation_id = args[:negotiation_id] if args.key?(:negotiation_id)
|
||||
@originator_role = args[:originator_role] if args.key?(:originator_role)
|
||||
|
@ -2793,7 +2856,7 @@ module Google
|
|||
|
||||
# Direct contact for the publisher profile.
|
||||
# Corresponds to the JSON property `directContact`
|
||||
# @return [Google::Apis::AdexchangebuyerV1_4::ContactInformation]
|
||||
# @return [String]
|
||||
attr_accessor :direct_contact
|
||||
|
||||
# Exchange where this publisher profile is from. E.g. AdX, Rubicon etc...
|
||||
|
@ -2853,7 +2916,7 @@ module Google
|
|||
|
||||
# Programmatic contact for the publisher profile.
|
||||
# Corresponds to the JSON property `programmaticContact`
|
||||
# @return [Google::Apis::AdexchangebuyerV1_4::ContactInformation]
|
||||
# @return [String]
|
||||
attr_accessor :programmatic_contact
|
||||
|
||||
# The list of domains represented in this publisher profile. Empty if this is a
|
||||
|
|
|
@ -202,6 +202,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DealTermsGuaranteedFixedPriceTermsBillingInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DealTermsNonGuaranteedAuctionTerms
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -591,6 +597,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :html_snippet, as: 'HTMLSnippet'
|
||||
property :account_id, as: 'accountId'
|
||||
property :ad_choices_destination_url, as: 'adChoicesDestinationUrl'
|
||||
collection :advertiser_id, as: 'advertiserId'
|
||||
property :advertiser_name, as: 'advertiserName'
|
||||
property :agency_id, as: 'agencyId'
|
||||
|
@ -745,6 +752,7 @@ module Google
|
|||
class DealServingMetadataDealPauseStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :first_paused_by, as: 'firstPausedBy'
|
||||
property :has_buyer_paused, as: 'hasBuyerPaused'
|
||||
property :has_seller_paused, as: 'hasSellerPaused'
|
||||
end
|
||||
|
@ -771,6 +779,8 @@ module Google
|
|||
class DealTermsGuaranteedFixedPriceTerms
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :billing_info, as: 'billingInfo', class: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTermsBillingInfo, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTermsBillingInfo::Representation
|
||||
|
||||
collection :fixed_prices, as: 'fixedPrices', class: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer, decorator: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer::Representation
|
||||
|
||||
property :guaranteed_impressions, as: 'guaranteedImpressions'
|
||||
|
@ -778,6 +788,16 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class DealTermsGuaranteedFixedPriceTermsBillingInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :currency_conversion_time_ms, as: 'currencyConversionTimeMs'
|
||||
property :original_contracted_quantity, as: 'originalContractedQuantity'
|
||||
property :price, as: 'price', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class DealTermsNonGuaranteedAuctionTerms
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1105,6 +1125,7 @@ module Google
|
|||
class PricePerBuyer
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :auction_tier, as: 'auctionTier'
|
||||
property :buyer, as: 'buyer', class: Google::Apis::AdexchangebuyerV1_4::Buyer, decorator: Google::Apis::AdexchangebuyerV1_4::Buyer::Representation
|
||||
|
||||
property :price, as: 'price', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation
|
||||
|
@ -1141,6 +1162,8 @@ module Google
|
|||
property :private_auction_id, as: 'privateAuctionId'
|
||||
property :product_id, as: 'productId'
|
||||
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 :revision_number, as: 'revisionNumber'
|
||||
property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation
|
||||
|
||||
|
@ -1174,7 +1197,6 @@ module Google
|
|||
collection :labels, as: 'labels', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel::Representation
|
||||
|
||||
property :last_updater_or_commentor_role, as: 'lastUpdaterOrCommentorRole'
|
||||
property :last_updater_role, as: 'lastUpdaterRole'
|
||||
property :name, as: 'name'
|
||||
property :negotiation_id, as: 'negotiationId'
|
||||
property :originator_role, as: 'originatorRole'
|
||||
|
@ -1196,8 +1218,7 @@ module Google
|
|||
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 :direct_contact, as: 'directContact'
|
||||
property :exchange, as: 'exchange'
|
||||
property :google_plus_link, as: 'googlePlusLink'
|
||||
property :is_parent, as: 'isParent'
|
||||
|
@ -1208,8 +1229,7 @@ module Google
|
|||
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
|
||||
|
||||
property :programmatic_contact, as: 'programmaticContact'
|
||||
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
|
||||
|
|
|
@ -673,7 +673,10 @@ module Google
|
|||
|
||||
# List all the deals for a given proposal
|
||||
# @param [String] proposal_id
|
||||
# The proposalId to get deals for.
|
||||
# The proposalId to get deals for. To search across proposals specify order_id =
|
||||
# '-' as part of the URL.
|
||||
# @param [String] pql_query
|
||||
# Query string to retrieve specific deals.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -695,11 +698,12 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_marketplacedeals(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def list_marketplacedeals(proposal_id, pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'proposals/{proposalId}/deals', options)
|
||||
command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse::Representation
|
||||
command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse
|
||||
command.params['proposalId'] = proposal_id unless proposal_id.nil?
|
||||
command.query['pqlQuery'] = pql_query unless pql_query.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?
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/ad-exchange/seller-rest/
|
||||
module AdexchangesellerV2_0
|
||||
VERSION = 'V2_0'
|
||||
REVISION = '20151127'
|
||||
REVISION = '20160513'
|
||||
|
||||
# View and manage your Ad Exchange data
|
||||
AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller'
|
||||
|
|
|
@ -71,7 +71,7 @@ module Google
|
|||
|
||||
# List of alias objects.
|
||||
# Corresponds to the JSON property `aliases`
|
||||
# @return [Array<Google::Apis::AdminDirectoryV1::Alias>]
|
||||
# @return [Array<Object>]
|
||||
attr_accessor :aliases
|
||||
|
||||
# ETag of the resource.
|
||||
|
|
|
@ -390,8 +390,7 @@ module Google
|
|||
class Aliases
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :aliases, as: 'aliases', class: Google::Apis::AdminDirectoryV1::Alias, decorator: Google::Apis::AdminDirectoryV1::Alias::Representation
|
||||
|
||||
collection :aliases, as: 'aliases'
|
||||
property :etag, as: 'etag'
|
||||
property :kind, as: 'kind'
|
||||
end
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/adsense/management/
|
||||
module AdsenseV1_4
|
||||
VERSION = 'V1_4'
|
||||
REVISION = '20160411'
|
||||
REVISION = '20160507'
|
||||
|
||||
# View and manage your AdSense data
|
||||
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/adsense/host/
|
||||
module AdsensehostV4_1
|
||||
VERSION = 'V4_1'
|
||||
REVISION = '20160411'
|
||||
REVISION = '20160507'
|
||||
|
||||
# View and manage your AdSense host data and associated accounts
|
||||
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/analytics/
|
||||
module AnalyticsV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20160308'
|
||||
REVISION = '20160401'
|
||||
|
||||
# View and manage your Google Analytics data
|
||||
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
# 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/analyticsreporting_v4/service.rb'
|
||||
require 'google/apis/analyticsreporting_v4/classes.rb'
|
||||
require 'google/apis/analyticsreporting_v4/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Analytics Reporting API
|
||||
#
|
||||
# Accesses Analytics report data.
|
||||
#
|
||||
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
||||
module AnalyticsreportingV4
|
||||
VERSION = 'V4'
|
||||
REVISION = '20160512'
|
||||
|
||||
# View your Google Analytics data
|
||||
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
|
||||
|
||||
# View and manage your Google Analytics data
|
||||
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,597 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'date'
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module AnalyticsreportingV4
|
||||
|
||||
class PivotHeader
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Metric
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ColumnHeader
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DynamicSegment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricHeader
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Report
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentFilterClause
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DimensionFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentDimensionFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SimpleSegment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentDefinition
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentMetricFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportData
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetReportsRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrderBy
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Cohort
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class OrFiltersForSegment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SequenceSegment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PivotHeaderEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DimensionFilterClause
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SegmentSequenceStep
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Pivot
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DateRangeValues
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricFilterClause
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Segment
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DateRange
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ReportRow
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CohortGroup
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class GetReportsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricHeaderEntry
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MetricFilter
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Dimension
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PivotValueRegion
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PivotHeader
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :total_pivot_groups_count, as: 'totalPivotGroupsCount'
|
||||
collection :pivot_header_entries, as: 'pivotHeaderEntries', class: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::PivotHeaderEntry::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Metric
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :alias, as: 'alias'
|
||||
property :formatting_type, as: 'formattingType'
|
||||
property :expression, as: 'expression'
|
||||
end
|
||||
end
|
||||
|
||||
class ColumnHeader
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :dimensions, as: 'dimensions'
|
||||
property :metric_header, as: 'metricHeader', class: Google::Apis::AnalyticsreportingV4::MetricHeader, decorator: Google::Apis::AnalyticsreportingV4::MetricHeader::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class DynamicSegment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :session_segment, as: 'sessionSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :user_segment, as: 'userSegment', class: Google::Apis::AnalyticsreportingV4::SegmentDefinition, decorator: Google::Apis::AnalyticsreportingV4::SegmentDefinition::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class MetricHeader
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :metric_header_entries, as: 'metricHeaderEntries', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
|
||||
|
||||
collection :pivot_headers, as: 'pivotHeaders', class: Google::Apis::AnalyticsreportingV4::PivotHeader, decorator: Google::Apis::AnalyticsreportingV4::PivotHeader::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Report
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :column_header, as: 'columnHeader', class: Google::Apis::AnalyticsreportingV4::ColumnHeader, decorator: Google::Apis::AnalyticsreportingV4::ColumnHeader::Representation
|
||||
|
||||
property :data, as: 'data', class: Google::Apis::AnalyticsreportingV4::ReportData, decorator: Google::Apis::AnalyticsreportingV4::ReportData::Representation
|
||||
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentFilterClause
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentDimensionFilter::Representation
|
||||
|
||||
property :metric_filter, as: 'metricFilter', class: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentMetricFilter::Representation
|
||||
|
||||
property :not, as: 'not'
|
||||
end
|
||||
end
|
||||
|
||||
class DimensionFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dimension_name, as: 'dimensionName'
|
||||
property :operator, as: 'operator'
|
||||
property :case_sensitive, as: 'caseSensitive'
|
||||
collection :expressions, as: 'expressions'
|
||||
property :not, as: 'not'
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentDimensionFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_comparison_value, as: 'maxComparisonValue'
|
||||
property :dimension_name, as: 'dimensionName'
|
||||
property :case_sensitive, as: 'caseSensitive'
|
||||
property :operator, as: 'operator'
|
||||
collection :expressions, as: 'expressions'
|
||||
property :min_comparison_value, as: 'minComparisonValue'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :cohort_group, as: 'cohortGroup', class: Google::Apis::AnalyticsreportingV4::CohortGroup, decorator: Google::Apis::AnalyticsreportingV4::CohortGroup::Representation
|
||||
|
||||
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
|
||||
|
||||
collection :metric_filter_clauses, as: 'metricFilterClauses', class: Google::Apis::AnalyticsreportingV4::MetricFilterClause, decorator: Google::Apis::AnalyticsreportingV4::MetricFilterClause::Representation
|
||||
|
||||
property :hide_totals, as: 'hideTotals'
|
||||
property :include_empty_rows, as: 'includeEmptyRows'
|
||||
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
|
||||
|
||||
collection :pivots, as: 'pivots', class: Google::Apis::AnalyticsreportingV4::Pivot, decorator: Google::Apis::AnalyticsreportingV4::Pivot::Representation
|
||||
|
||||
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
|
||||
|
||||
collection :segments, as: 'segments', class: Google::Apis::AnalyticsreportingV4::Segment, decorator: Google::Apis::AnalyticsreportingV4::Segment::Representation
|
||||
|
||||
property :sampling_level, as: 'samplingLevel'
|
||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
|
||||
|
||||
property :page_size, as: 'pageSize'
|
||||
collection :order_bys, as: 'orderBys', class: Google::Apis::AnalyticsreportingV4::OrderBy, decorator: Google::Apis::AnalyticsreportingV4::OrderBy::Representation
|
||||
|
||||
property :filters_expression, as: 'filtersExpression'
|
||||
property :hide_value_ranges, as: 'hideValueRanges'
|
||||
property :view_id, as: 'viewId'
|
||||
property :page_token, as: 'pageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class SimpleSegment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentDefinition
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :segment_filters, as: 'segmentFilters', class: Google::Apis::AnalyticsreportingV4::SegmentFilter, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentMetricFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :metric_name, as: 'metricName'
|
||||
property :operator, as: 'operator'
|
||||
property :comparison_value, as: 'comparisonValue'
|
||||
property :scope, as: 'scope'
|
||||
property :max_comparison_value, as: 'maxComparisonValue'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportData
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :row_count, as: 'rowCount'
|
||||
collection :sampling_space_sizes, as: 'samplingSpaceSizes'
|
||||
collection :maximums, as: 'maximums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
collection :samples_read_counts, as: 'samplesReadCounts'
|
||||
collection :minimums, as: 'minimums', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
collection :rows, as: 'rows', class: Google::Apis::AnalyticsreportingV4::ReportRow, decorator: Google::Apis::AnalyticsreportingV4::ReportRow::Representation
|
||||
|
||||
collection :totals, as: 'totals', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
property :is_data_golden, as: 'isDataGolden'
|
||||
end
|
||||
end
|
||||
|
||||
class GetReportsRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :report_requests, as: 'reportRequests', class: Google::Apis::AnalyticsreportingV4::ReportRequest, decorator: Google::Apis::AnalyticsreportingV4::ReportRequest::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class OrderBy
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :sort_order, as: 'sortOrder'
|
||||
property :order_type, as: 'orderType'
|
||||
property :field_name, as: 'fieldName'
|
||||
end
|
||||
end
|
||||
|
||||
class Cohort
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :date_range, as: 'dateRange', class: Google::Apis::AnalyticsreportingV4::DateRange, decorator: Google::Apis::AnalyticsreportingV4::DateRange::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class OrFiltersForSegment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :segment_filter_clauses, as: 'segmentFilterClauses', class: Google::Apis::AnalyticsreportingV4::SegmentFilterClause, decorator: Google::Apis::AnalyticsreportingV4::SegmentFilterClause::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SequenceSegment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :first_step_should_match_first_hit, as: 'firstStepShouldMatchFirstHit'
|
||||
collection :segment_sequence_steps, as: 'segmentSequenceSteps', class: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep, decorator: Google::Apis::AnalyticsreportingV4::SegmentSequenceStep::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :sequence_segment, as: 'sequenceSegment', class: Google::Apis::AnalyticsreportingV4::SequenceSegment, decorator: Google::Apis::AnalyticsreportingV4::SequenceSegment::Representation
|
||||
|
||||
property :not, as: 'not'
|
||||
property :simple_segment, as: 'simpleSegment', class: Google::Apis::AnalyticsreportingV4::SimpleSegment, decorator: Google::Apis::AnalyticsreportingV4::SimpleSegment::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class PivotHeaderEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :dimension_names, as: 'dimensionNames'
|
||||
collection :dimension_values, as: 'dimensionValues'
|
||||
property :metric, as: 'metric', class: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry, decorator: Google::Apis::AnalyticsreportingV4::MetricHeaderEntry::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class DimensionFilterClause
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operator, as: 'operator'
|
||||
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::DimensionFilter, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class SegmentSequenceStep
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :match_type, as: 'matchType'
|
||||
collection :or_filters_for_segment, as: 'orFiltersForSegment', class: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment, decorator: Google::Apis::AnalyticsreportingV4::OrFiltersForSegment::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Pivot
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsreportingV4::Dimension, decorator: Google::Apis::AnalyticsreportingV4::Dimension::Representation
|
||||
|
||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::Metric, decorator: Google::Apis::AnalyticsreportingV4::Metric::Representation
|
||||
|
||||
property :max_group_count, as: 'maxGroupCount'
|
||||
collection :dimension_filter_clauses, as: 'dimensionFilterClauses', class: Google::Apis::AnalyticsreportingV4::DimensionFilterClause, decorator: Google::Apis::AnalyticsreportingV4::DimensionFilterClause::Representation
|
||||
|
||||
property :start_group, as: 'startGroup'
|
||||
end
|
||||
end
|
||||
|
||||
class DateRangeValues
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :values, as: 'values'
|
||||
collection :pivot_value_regions, as: 'pivotValueRegions', class: Google::Apis::AnalyticsreportingV4::PivotValueRegion, decorator: Google::Apis::AnalyticsreportingV4::PivotValueRegion::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class MetricFilterClause
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :operator, as: 'operator'
|
||||
collection :filters, as: 'filters', class: Google::Apis::AnalyticsreportingV4::MetricFilter, decorator: Google::Apis::AnalyticsreportingV4::MetricFilter::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class Segment
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :dynamic_segment, as: 'dynamicSegment', class: Google::Apis::AnalyticsreportingV4::DynamicSegment, decorator: Google::Apis::AnalyticsreportingV4::DynamicSegment::Representation
|
||||
|
||||
property :segment_id, as: 'segmentId'
|
||||
end
|
||||
end
|
||||
|
||||
class DateRange
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :start_date, as: 'startDate'
|
||||
property :end_date, as: 'endDate'
|
||||
end
|
||||
end
|
||||
|
||||
class ReportRow
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :dimensions, as: 'dimensions'
|
||||
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsreportingV4::DateRangeValues, decorator: Google::Apis::AnalyticsreportingV4::DateRangeValues::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CohortGroup
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :lifetime_value, as: 'lifetimeValue'
|
||||
collection :cohorts, as: 'cohorts', class: Google::Apis::AnalyticsreportingV4::Cohort, decorator: Google::Apis::AnalyticsreportingV4::Cohort::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class GetReportsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :reports, as: 'reports', class: Google::Apis::AnalyticsreportingV4::Report, decorator: Google::Apis::AnalyticsreportingV4::Report::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class MetricHeaderEntry
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :type, as: 'type'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class MetricFilter
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :metric_name, as: 'metricName'
|
||||
property :operator, as: 'operator'
|
||||
property :comparison_value, as: 'comparisonValue'
|
||||
property :not, as: 'not'
|
||||
end
|
||||
end
|
||||
|
||||
class Dimension
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :histogram_buckets, as: 'histogramBuckets'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
||||
class PivotValueRegion
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :values, as: 'values'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,88 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module AnalyticsreportingV4
|
||||
# Google Analytics Reporting API
|
||||
#
|
||||
# Accesses Analytics report data.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/analyticsreporting_v4'
|
||||
#
|
||||
# Analyticsreporting = Google::Apis::AnalyticsreportingV4 # Alias the module
|
||||
# service = Analyticsreporting::AnalyticsReportingService.new
|
||||
#
|
||||
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
|
||||
class AnalyticsReportingService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://analyticsreporting.googleapis.com/', '')
|
||||
end
|
||||
|
||||
# Returns the Analytics data.
|
||||
# @param [Google::Apis::AnalyticsreportingV4::GetReportsRequest] get_reports_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AnalyticsreportingV4::GetReportsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AnalyticsreportingV4::GetReportsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def batch_get_reports(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v4/reports:batchGet', options)
|
||||
command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation
|
||||
command.request_object = get_reports_request_object
|
||||
command.response_representation = Google::Apis::AnalyticsreportingV4::GetReportsResponse::Representation
|
||||
command.response_class = Google::Apis::AnalyticsreportingV4::GetReportsResponse
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android/work/play/emm-api
|
||||
module AndroidenterpriseV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160408'
|
||||
REVISION = '20160511'
|
||||
|
||||
# Manage corporate Android devices
|
||||
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|
||||
|
|
|
@ -343,7 +343,8 @@ module Google
|
|||
# means that the EMM's app is a device owner. "managedProfile" means that the
|
||||
# EMM's app is the profile owner (and there is a separate personal profile which
|
||||
# is not managed). "containerApp" means that the EMM's app is managing the
|
||||
# Android for Work container app on the device.
|
||||
# Android for Work container app on the device. ?unmanagedProfile? means that
|
||||
# the EMM?s app is managing a managed user on an unmanaged device
|
||||
# Corresponds to the JSON property `managementType`
|
||||
# @return [String]
|
||||
attr_accessor :management_type
|
||||
|
@ -882,6 +883,37 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class PageInfo
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `resultPerPage`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :result_per_page
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `startIndex`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :start_index
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `totalResults`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :total_results
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@result_per_page = args[:result_per_page] if args.key?(:result_per_page)
|
||||
@start_index = args[:start_index] if args.key?(:start_index)
|
||||
@total_results = args[:total_results] if args.key?(:total_results)
|
||||
end
|
||||
end
|
||||
|
||||
# A permission represents some extra capability, to be granted to an Android app,
|
||||
# which requires explicit consent. An enterprise admin must consent to these
|
||||
# permissions on behalf of their users before an entitlement for the app can be
|
||||
|
@ -1163,6 +1195,45 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# The matching products.
|
||||
class ProductsListResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Identifies what kind of resource this is. Value: the fixed string "
|
||||
# androidenterprise#productsListResponse".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# General pagination information.
|
||||
# Corresponds to the JSON property `pageInfo`
|
||||
# @return [Google::Apis::AndroidenterpriseV1::PageInfo]
|
||||
attr_accessor :page_info
|
||||
|
||||
# Information about a product (e.g. an app) in the Google Play Store, for
|
||||
# display to an enterprise admin.
|
||||
# Corresponds to the JSON property `product`
|
||||
# @return [Array<Google::Apis::AndroidenterpriseV1::Product>]
|
||||
attr_accessor :product
|
||||
|
||||
# Pagination information for token pagination.
|
||||
# Corresponds to the JSON property `tokenPagination`
|
||||
# @return [Google::Apis::AndroidenterpriseV1::TokenPagination]
|
||||
attr_accessor :token_pagination
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@page_info = args[:page_info] if args.key?(:page_info)
|
||||
@product = args[:product] if args.key?(:product)
|
||||
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
|
||||
end
|
||||
end
|
||||
|
||||
# Definition of a Google Play for Work store cluster, a list of products
|
||||
# displayed as part of a store page.
|
||||
class StoreCluster
|
||||
|
@ -1191,7 +1262,7 @@ module Google
|
|||
# this field. Duplicated values are allowed, but ordering between elements with
|
||||
# duplicate order is undefined.
|
||||
# The value of this field is never visible to a user, it is used solely for the
|
||||
# purpose of defining an ordering. Maximum length is 20 characters.
|
||||
# purpose of defining an ordering. Maximum length is 256 characters.
|
||||
# Corresponds to the JSON property `orderInPage`
|
||||
# @return [String]
|
||||
attr_accessor :order_in_page
|
||||
|
@ -1345,6 +1416,31 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TokenPagination
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `nextPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `previousPageToken`
|
||||
# @return [String]
|
||||
attr_accessor :previous_page_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
||||
@previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
|
||||
end
|
||||
end
|
||||
|
||||
# A user resource represents an individual user within the enterprise's domain.
|
||||
# Note that each user is associated with a Google account based on the user's
|
||||
# corporate email address (which must be in one of the enterprise's domains). As
|
||||
|
|
|
@ -160,6 +160,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PageInfo
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Permission
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -202,6 +208,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ProductsListResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class StoreCluster
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -232,6 +244,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TokenPagination
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class User
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -465,6 +483,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class PageInfo
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :result_per_page, as: 'resultPerPage'
|
||||
property :start_index, as: 'startIndex'
|
||||
property :total_results, as: 'totalResults'
|
||||
end
|
||||
end
|
||||
|
||||
class Permission
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -535,6 +562,19 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ProductsListResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :page_info, as: 'pageInfo', class: Google::Apis::AndroidenterpriseV1::PageInfo, decorator: Google::Apis::AndroidenterpriseV1::PageInfo::Representation
|
||||
|
||||
collection :product, as: 'product', class: Google::Apis::AndroidenterpriseV1::Product, decorator: Google::Apis::AndroidenterpriseV1::Product::Representation
|
||||
|
||||
property :token_pagination, as: 'tokenPagination', class: Google::Apis::AndroidenterpriseV1::TokenPagination, decorator: Google::Apis::AndroidenterpriseV1::TokenPagination::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class StoreCluster
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -584,6 +624,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class TokenPagination
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :next_page_token, as: 'nextPageToken'
|
||||
property :previous_page_token, as: 'previousPageToken'
|
||||
end
|
||||
end
|
||||
|
||||
class User
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -1630,7 +1630,11 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Approves the specified product (and the relevant app permissions, if any).
|
||||
# Approves the specified product and the relevant app permissions, if any. The
|
||||
# maximum number of products that you can approve per enterprise customer is 1,
|
||||
# 000.
|
||||
# To learn how to use Google Play for Work to design and create a store layout
|
||||
# to display approved products to your users, see Store Layout Design.
|
||||
# @param [String] enterprise_id
|
||||
# The ID of the enterprise.
|
||||
# @param [String] product_id
|
||||
|
@ -1840,6 +1844,64 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Finds approved products that match a query.
|
||||
# @param [String] enterprise_id
|
||||
# The ID of the enterprise.
|
||||
# @param [Boolean] approved
|
||||
# Specifies whether to search among all products (false) or among only products
|
||||
# that have been approved (true). Only "true" is supported, and should be
|
||||
# specified.
|
||||
# @param [String] language
|
||||
# The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results
|
||||
# are returned in the language best matching the preferred language.
|
||||
# @param [Fixnum] max_results
|
||||
# Specifies the maximum number of products that can be returned per request. If
|
||||
# not specified, uses a default value of 100, which is also the maximum
|
||||
# retrievable within a single response.
|
||||
# @param [String] query
|
||||
# The search query as typed in the Google Play Store search box. If omitted, all
|
||||
# approved apps will be returned (using the pagination parameters).
|
||||
# @param [String] token
|
||||
# A pagination token is contained in a requests response when there are more
|
||||
# products. The token can be used in a subsequent request to obtain more
|
||||
# products, and so forth. This parameter cannot be used in the initial request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductsListResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::AndroidenterpriseV1::ProductsListResponse]
|
||||
#
|
||||
# @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_products(enterprise_id, approved: nil, language: nil, max_results: nil, query: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'enterprises/{enterpriseId}/products', options)
|
||||
command.response_representation = Google::Apis::AndroidenterpriseV1::ProductsListResponse::Representation
|
||||
command.response_class = Google::Apis::AndroidenterpriseV1::ProductsListResponse
|
||||
command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
|
||||
command.query['approved'] = approved unless approved.nil?
|
||||
command.query['language'] = language unless language.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['query'] = query unless query.nil?
|
||||
command.query['token'] = token unless token.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# This method has been deprecated. To programmatically approve applications, you
|
||||
# must use the iframe mechanism via the generateApprovalUrl and approve
|
||||
# methods of the Products resource. For more information, see the Play EMM API
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/android-publisher
|
||||
module AndroidpublisherV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160324'
|
||||
REVISION = '20160507'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/games/services/web/api/states
|
||||
module AppstateV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160407'
|
||||
REVISION = '20160509'
|
||||
|
||||
# View and manage your data for this application
|
||||
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see http://developers.google.com/compute/docs/autoscaler
|
||||
module AutoscalerV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20150629'
|
||||
REVISION = '20160511'
|
||||
|
||||
# View and manage your Google Compute Engine resources
|
||||
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
|
||||
|
|
|
@ -308,6 +308,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
|
@ -338,7 +343,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]
|
||||
|
@ -417,6 +422,7 @@ module Google
|
|||
def update!(**args)
|
||||
@client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@http_error_message = args[:http_error_message] if args.key?(:http_error_message)
|
||||
|
@ -614,16 +620,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] Type of the resource. Always kind#zone for zones.
|
||||
# [Output Only] Type of the resource. Always compute#zone for zones.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `maintenanceWindows`
|
||||
# @return [Array<Google::Apis::AutoscalerV1beta2::Zone::MaintenanceWindow>]
|
||||
attr_accessor :maintenance_windows
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
|
@ -634,7 +635,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :region
|
||||
|
||||
# [Output Only] Server defined URL for the resource.
|
||||
#
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
@ -655,49 +656,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
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `beginTime`
|
||||
# @return [String]
|
||||
attr_accessor :begin_time
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
#
|
||||
# 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
|
||||
|
||||
#
|
||||
|
@ -724,7 +687,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :next_page_token
|
||||
|
||||
# Server defined URL for this resource (output only).
|
||||
# [Output Only] Server-defined URL for this resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
|
|
@ -103,12 +103,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
|
||||
|
||||
|
@ -197,6 +191,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :client_operation_id, as: 'clientOperationId'
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
property :end_time, as: 'endTime'
|
||||
property :error, as: 'error', class: Google::Apis::AutoscalerV1beta2::Operation::Error, decorator: Google::Apis::AutoscalerV1beta2::Operation::Error::Representation
|
||||
|
||||
|
@ -278,23 +273,11 @@ module Google
|
|||
property :description, as: 'description'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :maintenance_windows, as: 'maintenanceWindows', class: Google::Apis::AutoscalerV1beta2::Zone::MaintenanceWindow, decorator: Google::Apis::AutoscalerV1beta2::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
|
||||
|
|
|
@ -426,10 +426,10 @@ module Google
|
|||
end
|
||||
|
||||
#
|
||||
# @param [String] project
|
||||
# @param [String] filter
|
||||
# @param [Fixnum] max_results
|
||||
# @param [String] page_token
|
||||
# @param [String] project
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -451,14 +451,14 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_zones(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/zones', options)
|
||||
def list_zones(filter: nil, max_results: nil, page_token: nil, project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'zones', options)
|
||||
command.response_representation = Google::Apis::AutoscalerV1beta2::ZoneList::Representation
|
||||
command.response_class = Google::Apis::AutoscalerV1beta2::ZoneList
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.query['filter'] = filter unless filter.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['project'] = project unless project.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/bigquery/
|
||||
module BigqueryV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160408'
|
||||
REVISION = '20160511'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -238,7 +238,7 @@ module Google
|
|||
# when reading the data. The default value is 0. This property is useful if you
|
||||
# have header rows in the file that should be skipped.
|
||||
# Corresponds to the JSON property `skipLeadingRows`
|
||||
# @return [Fixnum]
|
||||
# @return [String]
|
||||
attr_accessor :skip_leading_rows
|
||||
|
||||
def initialize(**args)
|
||||
|
@ -714,6 +714,11 @@ module Google
|
|||
# @return [Google::Apis::BigqueryV2::CsvOptions]
|
||||
attr_accessor :csv_options
|
||||
|
||||
# [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
|
||||
# Corresponds to the JSON property `googleSheetsOptions`
|
||||
# @return [Google::Apis::BigqueryV2::GoogleSheetsOptions]
|
||||
attr_accessor :google_sheets_options
|
||||
|
||||
# [Optional] Indicates if BigQuery should allow extra values that are not
|
||||
# represented in the table schema. If true, the extra values are ignored. If
|
||||
# false, records with extra columns are treated as bad records, and if there are
|
||||
|
@ -744,13 +749,13 @@ module Google
|
|||
# @return [Google::Apis::BigqueryV2::TableSchema]
|
||||
attr_accessor :schema
|
||||
|
||||
# [Required] The data format. For CSV files, specify "CSV". For newline-
|
||||
# delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify "
|
||||
# AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". [
|
||||
# Experimental] For Google Cloud Bigtable, specify "BIGTABLE". Please note that
|
||||
# reading from Google Cloud Bigtable is experimental and has to be enabled for
|
||||
# your project. Please contact Google Cloud Support to enable this for your
|
||||
# project.
|
||||
# [Required] The data format. For CSV files, specify "CSV". For Google sheets,
|
||||
# specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "
|
||||
# NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud
|
||||
# Datastore backups, specify "DATASTORE_BACKUP". [Experimental] For Google Cloud
|
||||
# Bigtable, specify "BIGTABLE". Please note that reading from Google Cloud
|
||||
# Bigtable is experimental and has to be enabled for your project. Please
|
||||
# contact Google Cloud Support to enable this for your project.
|
||||
# Corresponds to the JSON property `sourceFormat`
|
||||
# @return [String]
|
||||
attr_accessor :source_format
|
||||
|
@ -758,12 +763,11 @@ module Google
|
|||
# [Required] The fully-qualified URIs that point to your data in Google Cloud.
|
||||
# For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character
|
||||
# and it must come after the 'bucket' name. Size limits related to load jobs
|
||||
# apply to external data sources, plus an additional limit of 10 GB maximum size
|
||||
# across all URIs. For Google Cloud Bigtable URIs: Exactly one URI can be
|
||||
# specified and it has be a fully specified and valid HTTPS URL for a Google
|
||||
# Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can
|
||||
# be specified, and it must end with '.backup_info'. Also, the '*' wildcard
|
||||
# character is not allowed.
|
||||
# apply to external data sources. For Google Cloud Bigtable URIs: Exactly one
|
||||
# URI can be specified and it has be a fully specified and valid HTTPS URL for a
|
||||
# Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one
|
||||
# URI can be specified, and it must end with '.backup_info'. Also, the '*'
|
||||
# wildcard character is not allowed.
|
||||
# Corresponds to the JSON property `sourceUris`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :source_uris
|
||||
|
@ -778,6 +782,7 @@ module Google
|
|||
@bigtable_options = args[:bigtable_options] if args.key?(:bigtable_options)
|
||||
@compression = args[:compression] if args.key?(:compression)
|
||||
@csv_options = args[:csv_options] if args.key?(:csv_options)
|
||||
@google_sheets_options = args[:google_sheets_options] if args.key?(:google_sheets_options)
|
||||
@ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
|
||||
@max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
|
||||
@schema = args[:schema] if args.key?(:schema)
|
||||
|
@ -880,18 +885,23 @@ module Google
|
|||
end
|
||||
|
||||
#
|
||||
class IntervalPartitionConfiguration
|
||||
class GoogleSheetsOptions
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `expirationMs`
|
||||
# [Optional] The number of rows at the top of a sheet that BigQuery will skip
|
||||
# when reading the data. The default value is 0. This property is useful if you
|
||||
# have header rows that should be skipped. When autodetect is on, behavior is
|
||||
# the following: * skipLeadingRows unspecified - Autodetect tries to detect
|
||||
# headers in the first row. If they are not detected, the row is read as data.
|
||||
# Otherwise data is read starting from the second row. * skipLeadingRows is 0 -
|
||||
# Instructs autodetect that there are no headers and data should be read
|
||||
# starting from the first row. * skipLeadingRows = N > 0 - Autodetect skips N-1
|
||||
# rows and tries to detect headers in row N. If headers are not detected, row N
|
||||
# is just skipped. Otherwise row N is used to extract column names for the
|
||||
# detected schema.
|
||||
# Corresponds to the JSON property `skipLeadingRows`
|
||||
# @return [String]
|
||||
attr_accessor :expiration_ms
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `type`
|
||||
# @return [String]
|
||||
attr_accessor :type
|
||||
attr_accessor :skip_leading_rows
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
|
@ -899,8 +909,7 @@ module Google
|
|||
|
||||
# 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)
|
||||
@skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1128,6 +1137,13 @@ module Google
|
|||
attr_accessor :allow_quoted_newlines
|
||||
alias_method :allow_quoted_newlines?, :allow_quoted_newlines
|
||||
|
||||
# [Experimental] Indicates if we should automatically infer the options and
|
||||
# schema for CSV and JSON sources.
|
||||
# Corresponds to the JSON property `autodetect`
|
||||
# @return [Boolean]
|
||||
attr_accessor :autodetect
|
||||
alias_method :autodetect?, :autodetect
|
||||
|
||||
# [Optional] Specifies whether the job is allowed to create new tables. The
|
||||
# following values are supported: CREATE_IF_NEEDED: If the table does not exist,
|
||||
# BigQuery creates the table. CREATE_NEVER: The table must already exist. If it
|
||||
|
@ -1262,6 +1278,7 @@ module Google
|
|||
def update!(**args)
|
||||
@allow_jagged_rows = args[:allow_jagged_rows] if args.key?(:allow_jagged_rows)
|
||||
@allow_quoted_newlines = args[:allow_quoted_newlines] if args.key?(:allow_quoted_newlines)
|
||||
@autodetect = args[:autodetect] if args.key?(:autodetect)
|
||||
@create_disposition = args[:create_disposition] if args.key?(:create_disposition)
|
||||
@destination_table = args[:destination_table] if args.key?(:destination_table)
|
||||
@encoding = args[:encoding] if args.key?(:encoding)
|
||||
|
@ -1354,10 +1371,10 @@ module Google
|
|||
|
||||
# [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
|
||||
# query. The default value is true. If set to false, the query will use BigQuery'
|
||||
# s updated SQL dialect with improved standards compliance. When using BigQuery'
|
||||
# s updated SQL, the values of allowLargeResults and flattenResults are ignored.
|
||||
# Queries with useLegacySql set to false will be run as if allowLargeResults is
|
||||
# true and flattenResults is false.
|
||||
# s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
|
||||
# useLegacySql is set to false, the values of allowLargeResults and
|
||||
# flattenResults are ignored; query will be run as if allowLargeResults is true
|
||||
# and flattenResults is false.
|
||||
# Corresponds to the JSON property `useLegacySql`
|
||||
# @return [Boolean]
|
||||
attr_accessor :use_legacy_sql
|
||||
|
@ -1687,6 +1704,12 @@ module Google
|
|||
# @return [Array<Google::Apis::BigqueryV2::TableReference>]
|
||||
attr_accessor :referenced_tables
|
||||
|
||||
# [Output-only, Experimental] The schema of the results. Present only for
|
||||
# successful dry run of non-legacy SQL queries.
|
||||
# Corresponds to the JSON property `schema`
|
||||
# @return [Google::Apis::BigqueryV2::TableSchema]
|
||||
attr_accessor :schema
|
||||
|
||||
# [Output-only] Total bytes billed for the job.
|
||||
# Corresponds to the JSON property `totalBytesBilled`
|
||||
# @return [String]
|
||||
|
@ -1707,6 +1730,7 @@ module Google
|
|||
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
||||
@query_plan = args[:query_plan] if args.key?(:query_plan)
|
||||
@referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
|
||||
@schema = args[:schema] if args.key?(:schema)
|
||||
@total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
|
||||
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
|
||||
end
|
||||
|
@ -1970,10 +1994,10 @@ module Google
|
|||
|
||||
# [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this
|
||||
# query. The default value is true. If set to false, the query will use BigQuery'
|
||||
# s updated SQL dialect with improved standards compliance. When using BigQuery'
|
||||
# s updated SQL, the values of allowLargeResults and flattenResults are ignored.
|
||||
# Queries with useLegacySql set to false will be run as if allowLargeResults is
|
||||
# true and flattenResults is false.
|
||||
# s standard SQL: https://cloud.google.com/bigquery/sql-reference/ When
|
||||
# useLegacySql is set to false, the values of allowLargeResults and
|
||||
# flattenResults are ignored; query will be run as if allowLargeResults is true
|
||||
# and flattenResults is false.
|
||||
# Corresponds to the JSON property `useLegacySql`
|
||||
# @return [Boolean]
|
||||
attr_accessor :use_legacy_sql
|
||||
|
@ -2192,19 +2216,18 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :num_bytes
|
||||
|
||||
# [Output-only] The number of bytes in the table that are considered "long-term
|
||||
# storage".
|
||||
# Corresponds to the JSON property `numLongTermBytes`
|
||||
# @return [String]
|
||||
attr_accessor :num_long_term_bytes
|
||||
|
||||
# [Output-only] The number of rows of data in this table, excluding any data in
|
||||
# the streaming buffer.
|
||||
# Corresponds to the JSON property `numRows`
|
||||
# @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]
|
||||
|
@ -2227,6 +2250,11 @@ module Google
|
|||
# @return [Google::Apis::BigqueryV2::TableReference]
|
||||
attr_accessor :table_reference
|
||||
|
||||
# [Experimental] If specified, configures time-based partitioning for this table.
|
||||
# Corresponds to the JSON property `timePartitioning`
|
||||
# @return [Google::Apis::BigqueryV2::TimePartitioning]
|
||||
attr_accessor :time_partitioning
|
||||
|
||||
# [Output-only] Describes the table type. The following values are supported:
|
||||
# TABLE: A normal BigQuery table. VIEW: A virtual table defined by a SQL query.
|
||||
# EXTERNAL: A table that references data stored in an external storage system,
|
||||
|
@ -2257,12 +2285,13 @@ module Google
|
|||
@last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@num_bytes = args[:num_bytes] if args.key?(:num_bytes)
|
||||
@num_long_term_bytes = args[:num_long_term_bytes] if args.key?(:num_long_term_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)
|
||||
@table_reference = args[:table_reference] if args.key?(:table_reference)
|
||||
@time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)
|
||||
@type = args[:type] if args.key?(:type)
|
||||
@view = args[:view] if args.key?(:view)
|
||||
end
|
||||
|
@ -2597,26 +2626,6 @@ 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
|
||||
|
@ -2687,6 +2696,33 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class TimePartitioning
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Optional] Number of milliseconds for which to keep the storage for a
|
||||
# partition.
|
||||
# Corresponds to the JSON property `expirationMs`
|
||||
# @return [String]
|
||||
attr_accessor :expiration_ms
|
||||
|
||||
# [Required] The only type supported is DAY, which will generate one partition
|
||||
# per day based on data loading time.
|
||||
# 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 UserDefinedFunctionResource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -106,7 +106,7 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class IntervalPartitionConfiguration
|
||||
class GoogleSheetsOptions
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
|
@ -298,12 +298,6 @@ 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
|
||||
|
||||
|
@ -322,6 +316,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class TimePartitioning
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class UserDefinedFunctionResource
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -489,6 +489,8 @@ module Google
|
|||
property :compression, as: 'compression'
|
||||
property :csv_options, as: 'csvOptions', class: Google::Apis::BigqueryV2::CsvOptions, decorator: Google::Apis::BigqueryV2::CsvOptions::Representation
|
||||
|
||||
property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation
|
||||
|
||||
property :ignore_unknown_values, as: 'ignoreUnknownValues'
|
||||
property :max_bad_records, as: 'maxBadRecords'
|
||||
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
||||
|
@ -519,11 +521,10 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class IntervalPartitionConfiguration
|
||||
class GoogleSheetsOptions
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :expiration_ms, as: 'expirationMs'
|
||||
property :type, as: 'type'
|
||||
property :skip_leading_rows, as: 'skipLeadingRows'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -589,6 +590,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :allow_jagged_rows, as: 'allowJaggedRows'
|
||||
property :allow_quoted_newlines, as: 'allowQuotedNewlines'
|
||||
property :autodetect, as: 'autodetect'
|
||||
property :create_disposition, as: 'createDisposition'
|
||||
property :destination_table, as: 'destinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
||||
|
||||
|
@ -711,6 +713,8 @@ module Google
|
|||
|
||||
collection :referenced_tables, as: 'referencedTables', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
||||
|
||||
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
|
||||
|
||||
property :total_bytes_billed, as: 'totalBytesBilled'
|
||||
property :total_bytes_processed, as: 'totalBytesProcessed'
|
||||
end
|
||||
|
@ -835,9 +839,8 @@ module Google
|
|||
property :last_modified_time, as: 'lastModifiedTime'
|
||||
property :location, as: 'location'
|
||||
property :num_bytes, as: 'numBytes'
|
||||
property :num_long_term_bytes, as: 'numLongTermBytes'
|
||||
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'
|
||||
|
@ -845,6 +848,8 @@ module Google
|
|||
|
||||
property :table_reference, as: 'tableReference', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
|
||||
|
||||
property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
|
||||
|
||||
property :type, as: 'type'
|
||||
property :view, as: 'view', class: Google::Apis::BigqueryV2::ViewDefinition, decorator: Google::Apis::BigqueryV2::ViewDefinition::Representation
|
||||
|
||||
|
@ -944,14 +949,6 @@ 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
|
||||
|
@ -977,6 +974,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class TimePartitioning
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :expiration_ms, as: 'expirationMs'
|
||||
property :type, as: 'type'
|
||||
end
|
||||
end
|
||||
|
||||
class UserDefinedFunctionResource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/google-apps/calendar/firstapp
|
||||
module CalendarV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20160410'
|
||||
REVISION = '20160510'
|
||||
|
||||
# Manage your calendars
|
||||
AUTH_CALENDAR = 'https://www.googleapis.com/auth/calendar'
|
||||
|
|
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Google Classroom API
|
||||
#
|
||||
# Google Classroom API
|
||||
# Manages classes, rosters, and invitations in Google Classroom.
|
||||
#
|
||||
# @see https://developers.google.com/classroom/
|
||||
module ClassroomV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20151013'
|
||||
REVISION = '20160428'
|
||||
|
||||
# Manage your Google Classroom classes
|
||||
AUTH_CLASSROOM_COURSES = 'https://www.googleapis.com/auth/classroom.courses'
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module ClassroomV1
|
||||
# Google Classroom API
|
||||
#
|
||||
# Google Classroom API
|
||||
# Manages classes, rosters, and invitations in Google Classroom.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/classroom_v1'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-builder/docs/
|
||||
module CloudbuildV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160413'
|
||||
REVISION = '20160512'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -193,6 +193,14 @@ module Google
|
|||
attr_accessor :done
|
||||
alias_method :done?, :done
|
||||
|
||||
# Service-specific metadata associated with the operation. It typically
|
||||
# contains progress information and common metadata such as create time.
|
||||
# Some services might not provide such metadata. Any method that returns a
|
||||
# long-running operation should document the metadata type, if any.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The normal response of the operation in case of success. If the original
|
||||
# method returns no data on success, such as `Delete`, the response is
|
||||
# `google.protobuf.Empty`. If the original method is standard
|
||||
|
@ -205,14 +213,6 @@ module Google
|
|||
# @return [Hash<String,Object>]
|
||||
attr_accessor :response
|
||||
|
||||
# Service-specific metadata associated with the operation. It typically
|
||||
# contains progress information and common metadata such as create time.
|
||||
# Some services might not provide such metadata. Any method that returns a
|
||||
# long-running operation should document the metadata type, if any.
|
||||
# Corresponds to the JSON property `metadata`
|
||||
# @return [Hash<String,Object>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
|
@ -228,8 +228,8 @@ module Google
|
|||
def update!(**args)
|
||||
@error = args[:error] if args.key?(:error)
|
||||
@done = args[:done] if args.key?(:done)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@response = args[:response] if args.key?(:response)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
end
|
||||
end
|
||||
|
@ -265,12 +265,6 @@ module Google
|
|||
class StorageSource
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Google Cloud Storage generation for the object. If the generation is
|
||||
# omitted, the latest generation will be used.
|
||||
# Corresponds to the JSON property `generation`
|
||||
# @return [String]
|
||||
attr_accessor :generation
|
||||
|
||||
# Google Cloud Storage bucket containing source (see
|
||||
# [Bucket Name
|
||||
# Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)
|
||||
|
@ -279,6 +273,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :bucket
|
||||
|
||||
# Google Cloud Storage generation for the object. If the generation is
|
||||
# omitted, the latest generation will be used.
|
||||
# Corresponds to the JSON property `generation`
|
||||
# @return [String]
|
||||
attr_accessor :generation
|
||||
|
||||
# Google Cloud Storage object containing source.
|
||||
# This object must be a gzipped archive file (.tar.gz) containing source to
|
||||
# build.
|
||||
|
@ -292,8 +292,8 @@ module Google
|
|||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@generation = args[:generation] if args.key?(:generation)
|
||||
@bucket = args[:bucket] if args.key?(:bucket)
|
||||
@generation = args[:generation] if args.key?(:generation)
|
||||
@object = args[:object] if args.key?(:object)
|
||||
end
|
||||
end
|
||||
|
@ -372,6 +372,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# Customer-readable message about the current status.
|
||||
# @OutputOnly
|
||||
# Corresponds to the JSON property `statusDetail`
|
||||
# @return [String]
|
||||
attr_accessor :status_detail
|
||||
|
||||
# List of images expected to be built and pushed to Google Container
|
||||
# Registry. If an image is listed here and the image is not produced by
|
||||
# one of the build steps, the build will fail. Any images present when
|
||||
|
@ -415,6 +421,7 @@ module Google
|
|||
@steps = args[:steps] if args.key?(:steps)
|
||||
@source = args[:source] if args.key?(:source)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@status_detail = args[:status_detail] if args.key?(:status_detail)
|
||||
@images = args[:images] if args.key?(:images)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
|
||||
|
@ -475,17 +482,17 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :dir
|
||||
|
||||
# Additional environment variables to set for this step's container.
|
||||
# Corresponds to the JSON property `env`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :env
|
||||
|
||||
# Name of the container image to use for creating this stage in the
|
||||
# pipeline, as presented to `docker pull`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Additional environment variables to set for this step's container.
|
||||
# Corresponds to the JSON property `env`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :env
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -494,8 +501,8 @@ module Google
|
|||
def update!(**args)
|
||||
@args = args[:args] if args.key?(:args)
|
||||
@dir = args[:dir] if args.key?(:dir)
|
||||
@env = args[:env] if args.key?(:env)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@env = args[:env] if args.key?(:env)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -125,8 +125,8 @@ module Google
|
|||
property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation
|
||||
|
||||
property :done, as: 'done'
|
||||
hash :response, as: 'response'
|
||||
hash :metadata, as: 'metadata'
|
||||
hash :response, as: 'response'
|
||||
property :name, as: 'name'
|
||||
end
|
||||
end
|
||||
|
@ -142,8 +142,8 @@ module Google
|
|||
class StorageSource
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :generation, as: 'generation'
|
||||
property :bucket, as: 'bucket'
|
||||
property :generation, as: 'generation'
|
||||
property :object, as: 'object'
|
||||
end
|
||||
end
|
||||
|
@ -170,6 +170,7 @@ module Google
|
|||
property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation
|
||||
|
||||
property :create_time, as: 'createTime'
|
||||
property :status_detail, as: 'statusDetail'
|
||||
collection :images, as: 'images'
|
||||
property :start_time, as: 'startTime'
|
||||
property :logs_bucket, as: 'logsBucket'
|
||||
|
@ -197,8 +198,8 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :args, as: 'args'
|
||||
property :dir, as: 'dir'
|
||||
collection :env, as: 'env'
|
||||
property :name, as: 'name'
|
||||
collection :env, as: 'env'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -46,41 +46,6 @@ module Google
|
|||
super('https://cloudbuild.googleapis.com/', '')
|
||||
end
|
||||
|
||||
# Returns information about a previously requested build.
|
||||
# The Build that is returned includes its status (e.g., success or failure,
|
||||
# or in-progress), and timing information.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] id
|
||||
# ID of the build.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::Build]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['id'] = id unless id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Starts a build with the specified configuration.
|
||||
# The long-running Operation returned by this method will include the ID of
|
||||
# the build, which can be passed to GetBuild to determine its status (e.g.,
|
||||
|
@ -117,6 +82,41 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns information about a previously requested build.
|
||||
# The Build that is returned includes its status (e.g., success or failure,
|
||||
# or in-progress), and timing information.
|
||||
# @param [String] project_id
|
||||
# ID of the project.
|
||||
# @param [String] id
|
||||
# ID of the build.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::CloudbuildV1::Build]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options)
|
||||
command.response_representation = Google::Apis::CloudbuildV1::Build::Representation
|
||||
command.response_class = Google::Apis::CloudbuildV1::Build
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['id'] = id unless id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists previously requested builds.
|
||||
# Previously requested builds may still be in-progress, or may have finished
|
||||
# successfully or unsuccessfully.
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/monitoring/v2beta2/
|
||||
module CloudmonitoringV2beta2
|
||||
VERSION = 'V2beta2'
|
||||
REVISION = '20160403'
|
||||
REVISION = '20160415'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Compute Engine API
|
||||
#
|
||||
# API for the Google Compute Engine service.
|
||||
# Creates and runs virtual machines on Google Cloud Platform.
|
||||
#
|
||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||
module ComputeBeta
|
||||
VERSION = 'Beta'
|
||||
REVISION = '20160407'
|
||||
REVISION = '20160426'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1272,6 +1272,32 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class CustomerEncryptionKeyProtectedDisk
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Represents a customer-supplied encryption key
|
||||
# Corresponds to the JSON property `diskEncryptionKey`
|
||||
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
|
||||
attr_accessor :disk_encryption_key
|
||||
|
||||
# Specifies a valid partial or full URL to an existing Persistent Disk resource.
|
||||
# This field is only applicable for persistent disks.
|
||||
# Corresponds to the JSON property `source`
|
||||
# @return [String]
|
||||
attr_accessor :source
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key)
|
||||
@source = args[:source] if args.key?(:source)
|
||||
end
|
||||
end
|
||||
|
||||
# Deprecation status for a public resource.
|
||||
class DeprecationStatus
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -1365,13 +1391,9 @@ module Google
|
|||
# @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. 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": "").
|
||||
# Labels to apply to this disk. These can be later modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -1638,6 +1660,39 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class DiskMoveRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URL of the destination zone to move the disk. This can be a full or
|
||||
# partial URL. For example, the following are all valid URLs to a zone:
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone
|
||||
# - projects/project/zones/zone
|
||||
# - zones/zone
|
||||
# Corresponds to the JSON property `destinationZone`
|
||||
# @return [String]
|
||||
attr_accessor :destination_zone
|
||||
|
||||
# The URL of the target disk to move. This can be a full or partial URL. For
|
||||
# example, the following are all valid URLs to a disk:
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk
|
||||
# - projects/project/zones/zone/disks/disk
|
||||
# - zones/zone/disks/disk
|
||||
# Corresponds to the JSON property `targetDisk`
|
||||
# @return [String]
|
||||
attr_accessor :target_disk
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@destination_zone = args[:destination_zone] if args.key?(:destination_zone)
|
||||
@target_disk = args[:target_disk] if args.key?(:target_disk)
|
||||
end
|
||||
end
|
||||
|
||||
# A DiskType resource.
|
||||
class DiskType
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -2212,7 +2267,7 @@ module Google
|
|||
attr_accessor :ip_address
|
||||
|
||||
# The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP,
|
||||
# AH or SCTP.
|
||||
# AH, SCTP or ICMP.
|
||||
# Corresponds to the JSON property `IPProtocol`
|
||||
# @return [String]
|
||||
attr_accessor :ip_protocol
|
||||
|
@ -2498,7 +2553,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# The labels to set for this resource.
|
||||
# A list of labels to apply for this resource. 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. For example, "webserver-frontend": "images". A label value can also be
|
||||
# empty (e.g. "my-label": "").
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -2980,13 +3041,9 @@ module Google
|
|||
# @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. 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": "").
|
||||
# Labels to apply to this image. These can be later modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -3613,9 +3670,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output Only] The fingerprint of the target pools information. You can use
|
||||
# this optional field for optimistic locking when you update the target pool
|
||||
# entries.
|
||||
# [Output Only] The fingerprint of the resource data. You can use this optional
|
||||
# field for optimistic locking when you update the resource.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
@ -4472,6 +4528,40 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class MoveInstanceRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The URL of the destination zone to move the instance. This can be a full or
|
||||
# partial URL. For example, the following are all valid URLs to a zone:
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone
|
||||
# - projects/project/zones/zone
|
||||
# - zones/zone
|
||||
# Corresponds to the JSON property `destinationZone`
|
||||
# @return [String]
|
||||
attr_accessor :destination_zone
|
||||
|
||||
# The URL of the target instance to move. This can be a full or partial URL. For
|
||||
# example, the following are all valid URLs to an instance:
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
|
||||
# instance
|
||||
# - projects/project/zones/zone/instances/instance
|
||||
# - zones/zone/instances/instance
|
||||
# Corresponds to the JSON property `targetInstance`
|
||||
# @return [String]
|
||||
attr_accessor :target_instance
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@destination_zone = args[:destination_zone] if args.key?(:destination_zone)
|
||||
@target_instance = args[:target_instance] if args.key?(:target_instance)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class InstanceProperties
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -4815,7 +4905,14 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :label_fingerprint
|
||||
|
||||
# The new labels for the resource, in the form of key/value pairs.
|
||||
# A list of labels to apply for this instance. Changing instance labels will
|
||||
# also change the instance tags.
|
||||
# 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. For example, "webserver-frontend": "
|
||||
# images". A label value can also be empty (e.g. "my-label": "").
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -4852,6 +4949,30 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
#
|
||||
class InstancesStartWithEncryptionKeyRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Array of disks associated with this instance that are protected with a
|
||||
# customer-supplied encryption key.
|
||||
# In order to start the instance, the disk url and its corresponding key must be
|
||||
# provided.
|
||||
# If the disk is not protected with a customer-supplied encryption key it should
|
||||
# not be specified.
|
||||
# Corresponds to the JSON property `disks`
|
||||
# @return [Array<Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk>]
|
||||
attr_accessor :disks
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@disks = args[:disks] if args.key?(:disks)
|
||||
end
|
||||
end
|
||||
|
||||
# A license resource.
|
||||
class License
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -4922,6 +5043,12 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :id
|
||||
|
||||
# [Output Only] Whether this machine type has a shared CPU.
|
||||
# Corresponds to the JSON property `isSharedCpu`
|
||||
# @return [Boolean]
|
||||
attr_accessor :is_shared_cpu
|
||||
alias_method :is_shared_cpu?, :is_shared_cpu
|
||||
|
||||
# [Output Only] The type of the resource. Always compute#machineType for machine
|
||||
# types.
|
||||
# Corresponds to the JSON property `kind`
|
||||
|
@ -4971,6 +5098,7 @@ module Google
|
|||
@description = args[:description] if args.key?(:description)
|
||||
@guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@is_shared_cpu = args[:is_shared_cpu] if args.key?(:is_shared_cpu)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@maximum_persistent_disks = args[:maximum_persistent_disks] if args.key?(:maximum_persistent_disks)
|
||||
@maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] if args.key?(:maximum_persistent_disks_size_gb)
|
||||
|
@ -5520,8 +5648,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# [Output Only] An optional IPV4 internal network address assigned to the
|
||||
# instance for this network interface.
|
||||
# An IPV4 internal network address to assign to the instance for this network
|
||||
# interface. If not specified by user an unused internal IP is assigned by
|
||||
# system.
|
||||
# Corresponds to the JSON property `networkIP`
|
||||
# @return [String]
|
||||
attr_accessor :network_ip
|
||||
|
@ -5532,9 +5661,9 @@ module Google
|
|||
# subnet mode, then this field should be specified. If you specify this property,
|
||||
# you can specify the subnetwork as a full or partial URL. For example, the
|
||||
# following are all valid URLs:
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/regions/region/
|
||||
# subnetworks/subnetwork
|
||||
# - zones/zone/subnetworks/subnetwork
|
||||
# - regions/region/subnetworks/subnetwork
|
||||
# Corresponds to the JSON property `subnetwork`
|
||||
# @return [String]
|
||||
attr_accessor :subnetwork
|
||||
|
@ -7329,13 +7458,9 @@ module Google
|
|||
# @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. 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": "").
|
||||
# Labels to apply to this snapshot. These can be later modified by the setLabels
|
||||
# method. Each label key/value pair must comply with RFC1035. Label values may
|
||||
# be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
@ -9295,7 +9420,7 @@ module Google
|
|||
attr_accessor :self_link
|
||||
|
||||
# The list of expected URL mappings. Request to update this UrlMap will succeed
|
||||
# only all of the test cases pass.
|
||||
# only if all of the test cases pass.
|
||||
# Corresponds to the JSON property `tests`
|
||||
# @return [Array<Google::Apis::ComputeBeta::UrlMapTest>]
|
||||
attr_accessor :tests
|
||||
|
|
|
@ -172,6 +172,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CustomerEncryptionKeyProtectedDisk
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DeprecationStatus
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -196,6 +202,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiskMoveRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class DiskType
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -556,6 +568,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class MoveInstanceRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InstanceProperties
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -616,6 +634,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InstancesStartWithEncryptionKeyRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class License
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -1583,6 +1607,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class CustomerEncryptionKeyProtectedDisk
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :disk_encryption_key, as: 'diskEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
||||
|
||||
property :source, as: 'source'
|
||||
end
|
||||
end
|
||||
|
||||
class DeprecationStatus
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -1652,6 +1685,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class DiskMoveRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destination_zone, as: 'destinationZone'
|
||||
property :target_disk, as: 'targetDisk'
|
||||
end
|
||||
end
|
||||
|
||||
class DiskType
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2340,6 +2381,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class MoveInstanceRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :destination_zone, as: 'destinationZone'
|
||||
property :target_instance, as: 'targetInstance'
|
||||
end
|
||||
end
|
||||
|
||||
class InstanceProperties
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2447,6 +2496,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class InstancesStartWithEncryptionKeyRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class License
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -2466,6 +2523,7 @@ module Google
|
|||
property :description, as: 'description'
|
||||
property :guest_cpus, as: 'guestCpus'
|
||||
property :id, as: 'id'
|
||||
property :is_shared_cpu, as: 'isSharedCpu'
|
||||
property :kind, as: 'kind'
|
||||
property :maximum_persistent_disks, as: 'maximumPersistentDisks'
|
||||
property :maximum_persistent_disks_size_gb, as: 'maximumPersistentDisksSizeGb'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Compute Engine API
|
||||
#
|
||||
# API for the Google Compute Engine service.
|
||||
# Creates and runs virtual machines on Google Cloud Platform.
|
||||
#
|
||||
# @see https://developers.google.com/compute/docs/reference/latest/
|
||||
module ComputeV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160407'
|
||||
REVISION = '20160426'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -2114,7 +2114,7 @@ module Google
|
|||
attr_accessor :ip_address
|
||||
|
||||
# The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP,
|
||||
# AH or SCTP.
|
||||
# AH, SCTP or ICMP.
|
||||
# Corresponds to the JSON property `IPProtocol`
|
||||
# @return [String]
|
||||
attr_accessor :ip_protocol
|
||||
|
@ -2820,6 +2820,13 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :disk_size_gb
|
||||
|
||||
# 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
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
|
@ -2899,6 +2906,7 @@ module Google
|
|||
@deprecated = args[:deprecated] if args.key?(:deprecated)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
|
||||
@family = args[:family] if args.key?(:family)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@licenses = args[:licenses] if args.key?(:licenses)
|
||||
|
@ -3418,9 +3426,8 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# [Output Only] The fingerprint of the target pools information. You can use
|
||||
# this optional field for optimistic locking when you update the target pool
|
||||
# entries.
|
||||
# [Output Only] The fingerprint of the resource data. You can use this optional
|
||||
# field for optimistic locking when you update the resource.
|
||||
# Corresponds to the JSON property `fingerprint`
|
||||
# @return [String]
|
||||
attr_accessor :fingerprint
|
||||
|
@ -5266,8 +5273,9 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :network
|
||||
|
||||
# [Output Only] An optional IPV4 internal network address assigned to the
|
||||
# instance for this network interface.
|
||||
# An IPV4 internal network address to assign to the instance for this network
|
||||
# interface. If not specified by user an unused internal IP is assigned by
|
||||
# system.
|
||||
# Corresponds to the JSON property `networkIP`
|
||||
# @return [String]
|
||||
attr_accessor :network_ip
|
||||
|
@ -5278,9 +5286,9 @@ module Google
|
|||
# subnet mode, then this field should be specified. If you specify this property,
|
||||
# you can specify the subnetwork as a full or partial URL. For example, the
|
||||
# following are all valid URLs:
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/zones/zone/
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/regions/region/
|
||||
# subnetworks/subnetwork
|
||||
# - zones/zone/subnetworks/subnetwork
|
||||
# - regions/region/subnetworks/subnetwork
|
||||
# Corresponds to the JSON property `subnetwork`
|
||||
# @return [String]
|
||||
attr_accessor :subnetwork
|
||||
|
@ -8429,7 +8437,7 @@ module Google
|
|||
attr_accessor :self_link
|
||||
|
||||
# The list of expected URL mappings. Request to update this UrlMap will succeed
|
||||
# only all of the test cases pass.
|
||||
# only if all of the test cases pass.
|
||||
# Corresponds to the JSON property `tests`
|
||||
# @return [Array<Google::Apis::ComputeV1::UrlMapTest>]
|
||||
attr_accessor :tests
|
||||
|
|
|
@ -1823,6 +1823,7 @@ module Google
|
|||
|
||||
property :description, as: 'description'
|
||||
property :disk_size_gb, as: 'diskSizeGb'
|
||||
property :family, as: 'family'
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
collection :licenses, as: 'licenses'
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module ComputeV1
|
||||
# Compute Engine API
|
||||
#
|
||||
# API for the Google Compute Engine service.
|
||||
# Creates and runs virtual machines on Google Cloud Platform.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/compute_v1'
|
||||
|
@ -68,11 +68,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
|
||||
|
@ -263,11 +263,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
|
||||
|
@ -333,11 +333,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
|
||||
|
@ -529,11 +529,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
|
||||
|
@ -848,11 +848,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
|
||||
|
@ -1004,11 +1004,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
|
||||
|
@ -1117,11 +1117,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
|
||||
|
@ -1187,11 +1187,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
|
||||
|
@ -1434,11 +1434,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
|
||||
|
@ -1663,11 +1663,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
|
||||
|
@ -1815,11 +1815,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
|
||||
|
@ -2011,11 +2011,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
|
||||
|
@ -2242,11 +2242,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
|
||||
|
@ -2428,11 +2428,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
|
||||
|
@ -2539,11 +2539,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
|
||||
|
@ -2683,11 +2683,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
|
||||
|
@ -2869,11 +2869,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
|
||||
|
@ -3139,11 +3139,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
|
||||
|
@ -3395,6 +3395,44 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# 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
|
||||
# Name of the image resource to return.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# Overrides userIp if both are provided.
|
||||
# @param [String] user_ip
|
||||
# IP address of the site where the request originates. Use this if you want to
|
||||
# enforce per-user limits.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ComputeV1::Image] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeV1::Image]
|
||||
#
|
||||
# @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_image_from_family(project, family, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, '{project}/global/images/family/{family}', options)
|
||||
command.response_representation = Google::Apis::ComputeV1::Image::Representation
|
||||
command.response_class = Google::Apis::ComputeV1::Image
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['family'] = family unless family.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates an image in the specified project using the data included in the
|
||||
# request.
|
||||
# @param [String] project
|
||||
|
@ -3456,11 +3494,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
|
||||
|
@ -3576,11 +3614,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
|
||||
|
@ -3829,11 +3867,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
|
||||
|
@ -4185,11 +4223,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
|
||||
|
@ -4384,11 +4422,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
|
||||
|
@ -4460,11 +4498,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
|
||||
|
@ -4744,11 +4782,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
|
||||
|
@ -4860,11 +4898,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
|
||||
|
@ -5236,11 +5274,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
|
||||
|
@ -5698,11 +5736,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
|
||||
|
@ -5811,11 +5849,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
|
||||
|
@ -5997,11 +6035,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
|
||||
|
@ -6338,11 +6376,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
|
||||
|
@ -6447,11 +6485,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
|
||||
|
@ -6632,11 +6670,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
|
||||
|
@ -6783,11 +6821,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
|
||||
|
@ -6969,11 +7007,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
|
||||
|
@ -7038,11 +7076,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
|
||||
|
@ -7132,8 +7170,8 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the specified subnetwork. Get a list of available subnetworks by
|
||||
# making a list() request.
|
||||
# Returns the specified subnetwork. Get a list of available subnetworks list()
|
||||
# request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] region
|
||||
|
@ -7234,11 +7272,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
|
||||
|
@ -7421,11 +7459,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
|
||||
|
@ -7648,11 +7686,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
|
||||
|
@ -7799,11 +7837,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
|
||||
|
@ -7996,11 +8034,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
|
||||
|
@ -8154,11 +8192,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
|
||||
|
@ -8395,11 +8433,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
|
||||
|
@ -8600,11 +8638,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
|
||||
|
@ -8797,11 +8835,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
|
||||
|
@ -8983,11 +9021,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
|
||||
|
@ -9177,11 +9215,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
|
||||
|
@ -9374,11 +9412,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
|
||||
|
@ -9526,11 +9564,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
|
||||
|
@ -9635,11 +9673,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
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-engine/
|
||||
module ContainerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160321'
|
||||
REVISION = '20160421'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -129,6 +129,19 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :subnetwork
|
||||
|
||||
# The node pools associated with this cluster. When creating a new cluster, only
|
||||
# a single node pool should be specified. This field should not be set if "
|
||||
# node_config" or "initial_node_count" are specified.
|
||||
# Corresponds to the JSON property `nodePools`
|
||||
# @return [Array<Google::Apis::ContainerV1::NodePool>]
|
||||
attr_accessor :node_pools
|
||||
|
||||
# The list of Google Compute Engine [locations](/compute/docs/zones#available)
|
||||
# in which the cluster's nodes should be located.
|
||||
# Corresponds to the JSON property `locations`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :locations
|
||||
|
||||
# [Output only] Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
|
@ -225,6 +238,8 @@ module Google
|
|||
@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)
|
||||
@node_pools = args[:node_pools] if args.key?(:node_pools)
|
||||
@locations = args[:locations] if args.key?(:locations)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@zone = args[:zone] if args.key?(:zone)
|
||||
@endpoint = args[:endpoint] if args.key?(:endpoint)
|
||||
|
@ -420,6 +435,76 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# NodePool contains the name and configuration for a cluster's node pool. Node
|
||||
# pools are a set of nodes (i.e. VM's), with a common configuration and
|
||||
# specification, under the control of the cluster master. They may have a set of
|
||||
# Kubernetes labels applied to them, which may be used to reference them during
|
||||
# pod scheduling. They may also be resized up or down, to accommodate the
|
||||
# workload.
|
||||
class NodePool
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the node pool.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# Parameters that describe the nodes in a cluster.
|
||||
# Corresponds to the JSON property `config`
|
||||
# @return [Google::Apis::ContainerV1::NodeConfig]
|
||||
attr_accessor :config
|
||||
|
||||
# The initial node count for the pool. You must ensure that your Compute Engine
|
||||
# resource quota is sufficient for this number of instances. You must also have
|
||||
# available firewall and routes quota.
|
||||
# Corresponds to the JSON property `initialNodeCount`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :initial_node_count
|
||||
|
||||
# Server-defined URL for the resource.
|
||||
# Corresponds to the JSON property `selfLink`
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# The version of the Kubernetes of this node.
|
||||
# Corresponds to the JSON property `version`
|
||||
# @return [String]
|
||||
attr_accessor :version
|
||||
|
||||
# [Output only] The resource URLs of [instance groups](/compute/docs/instance-
|
||||
# groups/) associated with this node pool.
|
||||
# Corresponds to the JSON property `instanceGroupUrls`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :instance_group_urls
|
||||
|
||||
# The status of the nodes in this pool instance.
|
||||
# Corresponds to the JSON property `status`
|
||||
# @return [String]
|
||||
attr_accessor :status
|
||||
|
||||
# [Output only] Additional information about the current status of this node
|
||||
# pool instance, if available.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@config = args[:config] if args.key?(:config)
|
||||
@initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
|
||||
@self_link = args[:self_link] if args.key?(:self_link)
|
||||
@version = args[:version] if args.key?(:version)
|
||||
@instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
|
||||
@status = args[:status] if args.key?(:status)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
end
|
||||
end
|
||||
|
||||
# CreateClusterRequest creates a cluster.
|
||||
class CreateClusterRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -546,6 +631,13 @@ module Google
|
|||
# @return [Google::Apis::ContainerV1::AddonsConfig]
|
||||
attr_accessor :desired_addons_config
|
||||
|
||||
# The node pool to be upgraded. This field is mandatory if the "
|
||||
# desired_node_version" or "desired_image_family" is specified and there is more
|
||||
# than one node pool on the cluster.
|
||||
# Corresponds to the JSON property `desiredNodePoolId`
|
||||
# @return [String]
|
||||
attr_accessor :desired_node_pool_id
|
||||
|
||||
# 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.
|
||||
|
@ -562,6 +654,7 @@ module Google
|
|||
@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_node_pool_id = args[:desired_node_pool_id] if args.key?(:desired_node_pool_id)
|
||||
@desired_master_version = args[:desired_master_version] if args.key?(:desired_master_version)
|
||||
end
|
||||
end
|
||||
|
@ -606,6 +699,16 @@ module Google
|
|||
# @return [Array<String>]
|
||||
attr_accessor :valid_node_versions
|
||||
|
||||
# Default image family.
|
||||
# Corresponds to the JSON property `defaultImageFamily`
|
||||
# @return [String]
|
||||
attr_accessor :default_image_family
|
||||
|
||||
# List of valid image families.
|
||||
# Corresponds to the JSON property `validImageFamilies`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :valid_image_families
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -614,6 +717,51 @@ module Google
|
|||
def update!(**args)
|
||||
@default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version)
|
||||
@valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions)
|
||||
@default_image_family = args[:default_image_family] if args.key?(:default_image_family)
|
||||
@valid_image_families = args[:valid_image_families] if args.key?(:valid_image_families)
|
||||
end
|
||||
end
|
||||
|
||||
# ListNodePoolsResponse is the result of ListNodePoolsRequest.
|
||||
class ListNodePoolsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A list of node pools for a cluster.
|
||||
# Corresponds to the JSON property `nodePools`
|
||||
# @return [Array<Google::Apis::ContainerV1::NodePool>]
|
||||
attr_accessor :node_pools
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@node_pools = args[:node_pools] if args.key?(:node_pools)
|
||||
end
|
||||
end
|
||||
|
||||
# CreateNodePoolRequest creates a node pool for a cluster.
|
||||
class CreateNodePoolRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# NodePool contains the name and configuration for a cluster's node pool. Node
|
||||
# pools are a set of nodes (i.e. VM's), with a common configuration and
|
||||
# specification, under the control of the cluster master. They may have a set of
|
||||
# Kubernetes labels applied to them, which may be used to reference them during
|
||||
# pod scheduling. They may also be resized up or down, to accommodate the
|
||||
# workload.
|
||||
# Corresponds to the JSON property `nodePool`
|
||||
# @return [Google::Apis::ContainerV1::NodePool]
|
||||
attr_accessor :node_pool
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@node_pool = args[:node_pool] if args.key?(:node_pool)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -64,6 +64,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class NodePool
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateClusterRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -100,6 +106,18 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListNodePoolsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class CreateNodePoolRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListClustersResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -126,6 +144,9 @@ module Google
|
|||
property :addons_config, as: 'addonsConfig', class: Google::Apis::ContainerV1::AddonsConfig, decorator: Google::Apis::ContainerV1::AddonsConfig::Representation
|
||||
|
||||
property :subnetwork, as: 'subnetwork'
|
||||
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
|
||||
collection :locations, as: 'locations'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :zone, as: 'zone'
|
||||
property :endpoint, as: 'endpoint'
|
||||
|
@ -187,6 +208,21 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class NodePool
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :config, as: 'config', class: Google::Apis::ContainerV1::NodeConfig, decorator: Google::Apis::ContainerV1::NodeConfig::Representation
|
||||
|
||||
property :initial_node_count, as: 'initialNodeCount'
|
||||
property :self_link, as: 'selfLink'
|
||||
property :version, as: 'version'
|
||||
collection :instance_group_urls, as: 'instanceGroupUrls'
|
||||
property :status, as: 'status'
|
||||
property :status_message, as: 'statusMessage'
|
||||
end
|
||||
end
|
||||
|
||||
class CreateClusterRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -224,6 +260,7 @@ module Google
|
|||
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_node_pool_id, as: 'desiredNodePoolId'
|
||||
property :desired_master_version, as: 'desiredMasterVersion'
|
||||
end
|
||||
end
|
||||
|
@ -242,6 +279,24 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :default_cluster_version, as: 'defaultClusterVersion'
|
||||
collection :valid_node_versions, as: 'validNodeVersions'
|
||||
property :default_image_family, as: 'defaultImageFamily'
|
||||
collection :valid_image_families, as: 'validImageFamilies'
|
||||
end
|
||||
end
|
||||
|
||||
class ListNodePoolsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :node_pools, as: 'nodePools', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class CreateNodePoolRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :node_pool, as: 'nodePool', class: Google::Apis::ContainerV1::NodePool, decorator: Google::Apis::ContainerV1::NodePool::Representation
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -283,6 +283,167 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists the node pools for a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://
|
||||
# developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @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::ContainerV1::ListNodePoolsResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::ListNodePoolsResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_project_zone_cluster_node_pools(project_id, zone, cluster_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::ListNodePoolsResponse::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::ListNodePoolsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_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
|
||||
|
||||
# Retrieves the node pool requested.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://
|
||||
# developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [String] node_pool_id
|
||||
# The name of the node pool.
|
||||
# @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::ContainerV1::NodePool] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::NodePool]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::NodePool::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::NodePool
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a node pool for a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://
|
||||
# developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [Google::Apis::ContainerV1::CreateNodePoolRequest] create_node_pool_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::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::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 create_node_pool(project_id, zone, cluster_id, create_node_pool_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools', options)
|
||||
command.request_representation = Google::Apis::ContainerV1::CreateNodePoolRequest::Representation
|
||||
command.request_object = create_node_pool_request_object
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Deletes a node pool from a cluster.
|
||||
# @param [String] project_id
|
||||
# The Google Developers Console [project ID or project number](https://
|
||||
# developers.google.com/console/help/new/#projectnumber).
|
||||
# @param [String] zone
|
||||
# The name of the Google Compute Engine [zone](/compute/docs/zones#available) in
|
||||
# which the cluster resides.
|
||||
# @param [String] cluster_id
|
||||
# The name of the cluster.
|
||||
# @param [String] node_pool_id
|
||||
# The name of the node pool to delete.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::ContainerV1::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ContainerV1::Operation]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_project_zone_cluster_node_pool(project_id, zone, cluster_id, node_pool_id, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}', options)
|
||||
command.response_representation = Google::Apis::ContainerV1::Operation::Representation
|
||||
command.response_class = Google::Apis::ContainerV1::Operation
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['clusterId'] = cluster_id unless cluster_id.nil?
|
||||
command.params['nodePoolId'] = node_pool_id unless node_pool_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Lists 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://support.
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/shopping-content
|
||||
module ContentV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160331'
|
||||
REVISION = '20160419'
|
||||
|
||||
# Manage your product listings and accounts for Google Shopping
|
||||
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
||||
|
|
|
@ -2733,7 +2733,9 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :quantity
|
||||
|
||||
# The reason for the cancellation.
|
||||
# The reason for the cancellation. Orders that are cancelled with a noIventory
|
||||
# reason will lead to the removal of the product from POG until you make an
|
||||
# update to that product. This will not affect your Shopping ads.
|
||||
# Corresponds to the JSON property `reason`
|
||||
# @return [String]
|
||||
attr_accessor :reason
|
||||
|
@ -2766,7 +2768,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :email
|
||||
|
||||
# If set, this indicates the user had a choice to opt in or out of providing
|
||||
# If set, this indicates the user explicitly chose to opt in or out of providing
|
||||
# marketing rights to the merchant. If unset, this indicates the user has
|
||||
# already made this choice in a previous purchase, and was thus not shown the
|
||||
# marketing right opt in/out checkbox during the Purchases on Google checkout
|
||||
|
@ -4792,7 +4794,10 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :multipack
|
||||
|
||||
# An identifier of the item.
|
||||
# An identifier of the item. Leading and trailing whitespaces are stripped and
|
||||
# multiple whitespaces are replaced by a single whitespace upon submission. Only
|
||||
# valid unicode characters are accepted. See the products feed specification for
|
||||
# details.
|
||||
# Corresponds to the JSON property `offerId`
|
||||
# @return [String]
|
||||
attr_accessor :offer_id
|
||||
|
@ -4813,7 +4818,7 @@ module Google
|
|||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :price
|
||||
|
||||
# Your category of the item (formatted as in product feeds specification).
|
||||
# Your category of the item (formatted as in products feed specification).
|
||||
# Corresponds to the JSON property `productType`
|
||||
# @return [String]
|
||||
attr_accessor :product_type
|
||||
|
@ -4828,7 +4833,7 @@ module Google
|
|||
# @return [Google::Apis::ContentV2::Price]
|
||||
attr_accessor :sale_price
|
||||
|
||||
# Date range during which the item is on sale (see product feed specifications).
|
||||
# Date range during which the item is on sale (see products feed specification).
|
||||
# Corresponds to the JSON property `salePriceEffectiveDate`
|
||||
# @return [String]
|
||||
attr_accessor :sale_price_effective_date
|
||||
|
@ -5886,7 +5891,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :email
|
||||
|
||||
# If set, this indicates the user had a choice to opt in or out of providing
|
||||
# If set, this indicates the user explicitly chose to opt in or out of providing
|
||||
# marketing rights to the merchant. If unset, this indicates the user has
|
||||
# already made this choice in a previous purchase, and was thus not shown the
|
||||
# marketing right opt in/out checkbox during the Purchases on Google checkout
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/custom-search/v1/using_rest
|
||||
module CustomsearchV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20151130'
|
||||
REVISION = '20160411'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,24 +20,15 @@ module Google
|
|||
module Apis
|
||||
# Google Cloud Dataproc API
|
||||
#
|
||||
# An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
|
||||
# Manages Hadoop-based clusters and jobs on Google Cloud Platform.
|
||||
#
|
||||
# @see https://cloud.google.com/dataproc/
|
||||
module DataprocV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160219'
|
||||
REVISION = '20160503'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
||||
# Administrate log data for your projects
|
||||
AUTH_LOGGING_ADMIN = 'https://www.googleapis.com/auth/logging.admin'
|
||||
|
||||
# View log data for your projects
|
||||
AUTH_LOGGING_READ = 'https://www.googleapis.com/auth/logging.read'
|
||||
|
||||
# Submit log data for your projects
|
||||
AUTH_LOGGING_WRITE = 'https://www.googleapis.com/auth/logging.write'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,25 +22,6 @@ module Google
|
|||
module Apis
|
||||
module DataprocV1
|
||||
|
||||
# Media resource.
|
||||
class Media
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Name of the media resource.
|
||||
# Corresponds to the JSON property `resourceName`
|
||||
# @return [String]
|
||||
attr_accessor :resource_name
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
||||
end
|
||||
end
|
||||
|
||||
# Describes the identifying information, config, and status of a cluster of
|
||||
# Google Compute Engine instances.
|
||||
class Cluster
|
||||
|
|
|
@ -22,12 +22,6 @@ module Google
|
|||
module Apis
|
||||
module DataprocV1
|
||||
|
||||
class Media
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Cluster
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -244,13 +238,6 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Media
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :resource_name, as: 'resourceName'
|
||||
end
|
||||
end
|
||||
|
||||
class Cluster
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module DataprocV1
|
||||
# Google Cloud Dataproc API
|
||||
#
|
||||
# An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
|
||||
# Manages Hadoop-based clusters and jobs on Google Cloud Platform.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/dataproc_v1'
|
||||
|
@ -46,90 +46,6 @@ module Google
|
|||
super('https://dataproc.googleapis.com/', '')
|
||||
end
|
||||
|
||||
# Method for media upload. Upload is supported on the URI `/upload/v1/media/`+
|
||||
# name``.
|
||||
# @param [String] resource_name
|
||||
# Name of the media that is being downloaded. See ByteStream.ReadRequest.
|
||||
# resource_name.
|
||||
# @param [Google::Apis::DataprocV1::Media] media_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 [IO, String] upload_source
|
||||
# IO stream or filename containing content to upload
|
||||
# @param [String] content_type
|
||||
# Content type of the uploaded content.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Media] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Media]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def upload_medium(resource_name, media_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
|
||||
if upload_source.nil?
|
||||
command = make_simple_command(:post, 'v1/media/{+resourceName}', options)
|
||||
else
|
||||
command = make_upload_command(:post, 'v1/media/{+resourceName}', options)
|
||||
command.upload_source = upload_source
|
||||
command.upload_content_type = content_type
|
||||
end
|
||||
command.request_representation = Google::Apis::DataprocV1::Media::Representation
|
||||
command.request_object = media_object
|
||||
command.response_representation = Google::Apis::DataprocV1::Media::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Media
|
||||
command.params['resourceName'] = resource_name unless resource_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Method for media download. Download is supported on the URI `/v1/media/`+name`?
|
||||
# alt=media`.
|
||||
# @param [String] resource_name
|
||||
# Name of the media that is being downloaded. See ByteStream.ReadRequest.
|
||||
# resource_name.
|
||||
# @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 [IO, String] download_dest
|
||||
# IO stream or filename to receive content download
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataprocV1::Media] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataprocV1::Media]
|
||||
#
|
||||
# @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 download_medium(resource_name, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
|
||||
if download_dest.nil?
|
||||
command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
|
||||
else
|
||||
command = make_download_command(:get, 'v1/media/{+resourceName}', options)
|
||||
command.download_dest = download_dest
|
||||
end
|
||||
command.response_representation = Google::Apis::DataprocV1::Media::Representation
|
||||
command.response_class = Google::Apis::DataprocV1::Media
|
||||
command.params['resourceName'] = resource_name unless resource_name.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a cluster in a project.
|
||||
# @param [String] project_id
|
||||
# [Required] The ID of the Google Cloud Platform project that the cluster
|
||||
|
@ -180,8 +96,13 @@ module Google
|
|||
# For example, to change the number of workers in a cluster to 5, the
|
||||
# update_mask parameter would be specified as config.worker_config.num_instances,
|
||||
# and the `PATCH` request body would specify the new value, as follows: ` "
|
||||
# config":` "workerConfig":` "numInstances":"5" ` ` ` Note: Currently, config.
|
||||
# worker_config.num_instances is the only field that can be updated.
|
||||
# config":` "workerConfig":` "numInstances":"5" ` ` ` Similarly, to change the
|
||||
# number of preemptible workers in a cluster to 5, the update_mask parameter
|
||||
# would be config.secondary_worker_config.num_instances, and the `PATCH` request
|
||||
# body would be set as follows: ` "config":` "secondaryWorkerConfig":` "
|
||||
# numInstances":"5" ` ` ` Note: Currently, config.worker_config.num_instances
|
||||
# and config.secondary_worker_config.num_instances are the only fields that can
|
||||
# be updated.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/deployment-manager/
|
||||
module DeploymentmanagerV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160406'
|
||||
REVISION = '20160426'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/doubleclick-advertisers/reporting/
|
||||
module DfareportingV2_3
|
||||
VERSION = 'V2_3'
|
||||
REVISION = '20160323'
|
||||
REVISION = '20160509'
|
||||
|
||||
# View and manage DoubleClick for Advertisers reports
|
||||
AUTH_DFAREPORTING = 'https://www.googleapis.com/auth/dfareporting'
|
||||
|
|
|
@ -2373,7 +2373,8 @@ module Google
|
|||
attr_accessor :background_color
|
||||
|
||||
# Click-through URL for backup image. Applicable to the following creative types:
|
||||
# ENHANCED_BANNER, FLASH_INPAGE, and HTML5_BANNER.
|
||||
# FLASH_INPAGE, and HTML5_BANNER. Applicable to ENHANCED_BANNER when the
|
||||
# primary asset type is not HTML_IMAGE.
|
||||
# Corresponds to the JSON property `backupImageClickThroughUrl`
|
||||
# @return [String]
|
||||
attr_accessor :backup_image_click_through_url
|
||||
|
@ -2385,13 +2386,14 @@ module Google
|
|||
# all features detected by DCM for all the assets of this creative and can then
|
||||
# be modified by the client. To reset this field, copy over all the
|
||||
# creativeAssets' detected features. Applicable to the following creative types:
|
||||
# ENHANCED_BANNER and HTML5_BANNER.
|
||||
# HTML5_BANNER. Applicable to ENHANCED_BANNER when the primary asset is not
|
||||
# HTML_IMAGE.
|
||||
# Corresponds to the JSON property `backupImageFeatures`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :backup_image_features
|
||||
|
||||
# Reporting label used for HTML5 banner backup image. Applicable to the
|
||||
# following creative types: ENHANCED_BANNER.
|
||||
# Reporting label used for HTML5 banner backup image. Applicable to
|
||||
# ENHANCED_BANNER when the primary asset type is not HTML_IMAGE.
|
||||
# Corresponds to the JSON property `backupImageReportingLabel`
|
||||
# @return [String]
|
||||
attr_accessor :backup_image_reporting_label
|
||||
|
@ -2410,8 +2412,9 @@ module Google
|
|||
# should be exactly one entry in this list for each image creative asset. A
|
||||
# click tag is matched with a corresponding creative asset by matching the
|
||||
# clickTag.name field with the creativeAsset.assetIdentifier.name field.
|
||||
# Applicable to the following creative types: ENHANCED_BANNER, ENHANCED_IMAGE,
|
||||
# FLASH_INPAGE, HTML5_BANNER.
|
||||
# Applicable to the following creative types: ENHANCED_IMAGE, FLASH_INPAGE
|
||||
# HTML5_BANNER. Applicable to ENHANCED_BANNER when the primary asset type is not
|
||||
# HTML_IMAGE.
|
||||
# Corresponds to the JSON property `clickTags`
|
||||
# @return [Array<Google::Apis::DfareportingV2_3::ClickTag>]
|
||||
attr_accessor :click_tags
|
||||
|
@ -2447,8 +2450,8 @@ module Google
|
|||
# Whether Flash assets associated with the creative need to be automatically
|
||||
# converted to HTML5. This flag is enabled by default and users can choose to
|
||||
# disable it if they don't want the system to generate and use HTML5 asset for
|
||||
# this creative. Applicable to the following creative types: ENHANCED_BANNER and
|
||||
# FLASH_INPAGE.
|
||||
# this creative. Applicable to the following creative type: FLASH_INPAGE.
|
||||
# Applicable to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE.
|
||||
# Corresponds to the JSON property `convertFlashToHtml5`
|
||||
# @return [Boolean]
|
||||
attr_accessor :convert_flash_to_html5
|
||||
|
@ -2486,7 +2489,8 @@ module Google
|
|||
# ENHANCED_IMAGE creatives, these are read-only and auto-generated from
|
||||
# clickTags, For ENHANCED_BANNER, an event is also created from the
|
||||
# backupImageReportingLabel. Applicable to the following creative types:
|
||||
# ENHANCED_BANNER, ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID.
|
||||
# ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID. Applicable to ENHANCED_BANNER
|
||||
# when the primary asset is not HTML_IMAGE.
|
||||
# Corresponds to the JSON property `exitCustomEvents`
|
||||
# @return [Array<Google::Apis::DfareportingV2_3::CreativeCustomEvent>]
|
||||
attr_accessor :exit_custom_events
|
||||
|
@ -2582,7 +2586,8 @@ module Google
|
|||
|
||||
# The internal Flash version for this creative as calculated by DoubleClick
|
||||
# Studio. This is a read-only field. Applicable to the following creative types:
|
||||
# FLASH_INPAGE, ENHANCED_BANNER, all RICH_MEDIA, and all VPAID.
|
||||
# FLASH_INPAGE, all RICH_MEDIA, and all VPAID. Applicable to ENHANCED_BANNER
|
||||
# when the primary asset type is not HTML_IMAGE.
|
||||
# Corresponds to the JSON property `requiredFlashVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :required_flash_version
|
||||
|
@ -2642,13 +2647,13 @@ module Google
|
|||
attr_accessor :subaccount_id
|
||||
|
||||
# Third-party URL used to record backup image impressions. Applicable to the
|
||||
# following creative types: all RICH_MEDIA
|
||||
# following creative types: all RICH_MEDIA.
|
||||
# Corresponds to the JSON property `thirdPartyBackupImageImpressionsUrl`
|
||||
# @return [String]
|
||||
attr_accessor :third_party_backup_image_impressions_url
|
||||
|
||||
# Third-party URL used to record rich media impressions. Applicable to the
|
||||
# following creative types: all RICH_MEDIA
|
||||
# following creative types: all RICH_MEDIA.
|
||||
# Corresponds to the JSON property `thirdPartyRichMediaImpressionsUrl`
|
||||
# @return [String]
|
||||
attr_accessor :third_party_rich_media_impressions_url
|
||||
|
@ -2662,6 +2667,7 @@ module Google
|
|||
# List of timer events configured for the creative. For ENHANCED_IMAGE creatives,
|
||||
# these are read-only and auto-generated from clickTags. Applicable to the
|
||||
# following creative types: ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID.
|
||||
# Applicable to ENHANCED_BANNER when the primary asset is not HTML_IMAGE.
|
||||
# Corresponds to the JSON property `timerCustomEvents`
|
||||
# @return [Array<Google::Apis::DfareportingV2_3::CreativeCustomEvent>]
|
||||
attr_accessor :timer_custom_events
|
||||
|
@ -2773,8 +2779,8 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Whether ActionScript3 is enabled for the flash asset. This is a read-only
|
||||
# field. Applicable to the following creative types: FLASH_INPAGE and
|
||||
# ENHANCED_BANNER.
|
||||
# field. Applicable to the following creative type: FLASH_INPAGE. Applicable to
|
||||
# ENHANCED_BANNER when the primary asset type is not HTML_IMAGE.
|
||||
# Corresponds to the JSON property `actionScript3`
|
||||
# @return [Boolean]
|
||||
attr_accessor :action_script3
|
||||
|
@ -2873,8 +2879,8 @@ module Google
|
|||
attr_accessor :file_size
|
||||
|
||||
# Flash version of the asset. This is a read-only field. Applicable to the
|
||||
# following creative types: FLASH_INPAGE, ENHANCED_BANNER, all RICH_MEDIA, and
|
||||
# all VPAID.
|
||||
# following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID.
|
||||
# Applicable to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE.
|
||||
# Corresponds to the JSON property `flashVersion`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :flash_version
|
||||
|
@ -2982,8 +2988,8 @@ module Google
|
|||
# TRANSCODED_VIDEO refers to videos transcoded by DCM from PARENT_VIDEO assets
|
||||
# and is applicable to INSTREAM_VIDEO and VPAID_LINEAR creatives.
|
||||
# ALTERNATE_VIDEO refers to the DCM representation of child asset videos from
|
||||
# Studio, and is applicable to VPAID_LINEAR creatives. These cannot be added or
|
||||
# removed within DCM.
|
||||
# Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be
|
||||
# added or removed within DCM.
|
||||
# For VPAID_LINEAR creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO
|
||||
# assets that are marked active serve as backup in case the VPAID creative
|
||||
# cannot be served. Only PARENT_VIDEO assets can be added or removed for an
|
||||
|
@ -3177,27 +3183,30 @@ module Google
|
|||
# Rules validated during code generation that generated a warning. This is a
|
||||
# read-only, auto-generated field.
|
||||
# Possible values are:
|
||||
# - "CLICK_TAG_NON_TOP_LEVEL"
|
||||
# - "ADMOB_REFERENCED"
|
||||
# - "ASSET_FORMAT_UNSUPPORTED_DCM"
|
||||
# - "ASSET_INVALID"
|
||||
# - "CLICK_TAG_HARD_CODED"
|
||||
# - "CLICK_TAG_INVALID"
|
||||
# - "CLICK_TAG_IN_GWD"
|
||||
# - "CLICK_TAG_MISSING"
|
||||
# - "CLICK_TAG_MORE_THAN_ONE"
|
||||
# - "CLICK_TAG_INVALID"
|
||||
# - "ORPHANED_ASSET"
|
||||
# - "PRIMARY_HTML_MISSING"
|
||||
# - "CLICK_TAG_NON_TOP_LEVEL"
|
||||
# - "COMPONENT_UNSUPPORTED_DCM"
|
||||
# - "ENABLER_UNSUPPORTED_METHOD_DCM"
|
||||
# - "EXTERNAL_FILE_REFERENCED"
|
||||
# - "MRAID_REFERENCED"
|
||||
# - "ADMOB_REFERENCED"
|
||||
# - "FILE_DETAIL_EMPTY"
|
||||
# - "FILE_TYPE_INVALID"
|
||||
# - "ZIP_INVALID"
|
||||
# - "GWD_PROPERTIES_INVALID"
|
||||
# - "HTML5_FEATURE_UNSUPPORTED"
|
||||
# - "LINKED_FILE_NOT_FOUND"
|
||||
# - "MAX_FLASH_VERSION_11"
|
||||
# - "MRAID_REFERENCED"
|
||||
# - "NOT_SSL_COMPLIANT"
|
||||
# - "FILE_DETAIL_EMPTY"
|
||||
# - "ASSET_INVALID"
|
||||
# - "GWD_PROPERTIES_INVALID"
|
||||
# - "ENABLER_UNSUPPORTED_METHOD_DCM"
|
||||
# - "ASSET_FORMAT_UNSUPPORTED_DCM"
|
||||
# - "COMPONENT_UNSUPPORTED_DCM"
|
||||
# - "HTML5_FEATURE_UNSUPPORTED' "
|
||||
# - "ORPHANED_ASSET"
|
||||
# - "PRIMARY_HTML_MISSING"
|
||||
# - "SVG_INVALID"
|
||||
# - "ZIP_INVALID"
|
||||
# Corresponds to the JSON property `warnedValidationRules`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :warned_validation_rules
|
||||
|
|
|
@ -20,8 +20,8 @@ module Google
|
|||
module Apis
|
||||
# APIs Discovery Service
|
||||
#
|
||||
# Lets you discover information about other Google APIs, such as what APIs are
|
||||
# available, the resource and method details for each API.
|
||||
# Provides information about other Google APIs, such as what APIs are available,
|
||||
# the resource, and method details for each API.
|
||||
#
|
||||
# @see https://developers.google.com/discovery/
|
||||
module DiscoveryV1
|
||||
|
|
|
@ -22,8 +22,8 @@ module Google
|
|||
module DiscoveryV1
|
||||
# APIs Discovery Service
|
||||
#
|
||||
# Lets you discover information about other Google APIs, such as what APIs are
|
||||
# available, the resource and method details for each API.
|
||||
# Provides information about other Google APIs, such as what APIs are available,
|
||||
# the resource, and method details for each API.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/discovery_v1'
|
||||
|
|
|
@ -20,13 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Google Cloud DNS API
|
||||
#
|
||||
# The Google Cloud DNS API provides services for configuring and serving
|
||||
# authoritative DNS records.
|
||||
# Configures and serves authoritative DNS records.
|
||||
#
|
||||
# @see https://developers.google.com/cloud-dns
|
||||
module DnsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160224'
|
||||
REVISION = '20160509'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -22,8 +22,7 @@ module Google
|
|||
module DnsV1
|
||||
# Google Cloud DNS API
|
||||
#
|
||||
# The Google Cloud DNS API provides services for configuring and serving
|
||||
# authoritative DNS records.
|
||||
# Configures and serves authoritative DNS records.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/dns_v1'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/bid-manager/
|
||||
module DoubleclickbidmanagerV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160225'
|
||||
REVISION = '20160426'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/doubleclick-search/
|
||||
module DoubleclicksearchV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160407'
|
||||
REVISION = '20160506'
|
||||
|
||||
# View and manage your advertising data in DoubleClick Search
|
||||
AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
|
||||
|
|
|
@ -20,12 +20,13 @@ module Google
|
|||
module Apis
|
||||
# Drive API
|
||||
#
|
||||
# The API to interact with Drive.
|
||||
# Manages files in Drive including uploading, downloading, searching, detecting
|
||||
# changes, and updating sharing permissions.
|
||||
#
|
||||
# @see https://developers.google.com/drive/
|
||||
module DriveV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160408'
|
||||
REVISION = '20160506'
|
||||
|
||||
# View and manage the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -22,7 +22,8 @@ module Google
|
|||
module DriveV2
|
||||
# Drive API
|
||||
#
|
||||
# The API to interact with Drive.
|
||||
# Manages files in Drive including uploading, downloading, searching, detecting
|
||||
# changes, and updating sharing permissions.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/drive_v2'
|
||||
|
|
|
@ -20,12 +20,13 @@ module Google
|
|||
module Apis
|
||||
# Drive API
|
||||
#
|
||||
# The API to interact with Drive.
|
||||
# Manages files in Drive including uploading, downloading, searching, detecting
|
||||
# changes, and updating sharing permissions.
|
||||
#
|
||||
# @see https://developers.google.com/drive/
|
||||
module DriveV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20160408'
|
||||
REVISION = '20160506'
|
||||
|
||||
# View and manage the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -22,7 +22,8 @@ module Google
|
|||
module DriveV3
|
||||
# Drive API
|
||||
#
|
||||
# The API to interact with Drive.
|
||||
# Manages files in Drive including uploading, downloading, searching, detecting
|
||||
# changes, and updating sharing permissions.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/drive_v3'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/games/services
|
||||
module GamesConfigurationV1configuration
|
||||
VERSION = 'V1configuration'
|
||||
REVISION = '20160407'
|
||||
REVISION = '20160509'
|
||||
|
||||
# View and manage your Google Play Developer account
|
||||
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/games/services
|
||||
module GamesManagementV1management
|
||||
VERSION = 'V1management'
|
||||
REVISION = '20160407'
|
||||
REVISION = '20160509'
|
||||
|
||||
# Share your Google+ profile information and view and manage your game activity
|
||||
AUTH_GAMES = 'https://www.googleapis.com/auth/games'
|
||||
|
|
|
@ -364,6 +364,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :player_id
|
||||
|
||||
# This is a JSON template for profile settings
|
||||
# Corresponds to the JSON property `profileSettings`
|
||||
# @return [Google::Apis::GamesManagementV1management::ProfileSettings]
|
||||
attr_accessor :profile_settings
|
||||
|
||||
# The player's title rewarded for their game activities.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
|
@ -385,6 +390,7 @@ module Google
|
|||
@name = args[:name] if args.key?(:name)
|
||||
@original_player_id = args[:original_player_id] if args.key?(:original_player_id)
|
||||
@player_id = args[:player_id] if args.key?(:player_id)
|
||||
@profile_settings = args[:profile_settings] if args.key?(:profile_settings)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
end
|
||||
|
||||
|
@ -477,6 +483,34 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# This is a JSON template for profile settings
|
||||
class ProfileSettings
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Uniquely identifies the type of this resource. Value is always the fixed
|
||||
# string gamesManagement#profileSettings.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The player's current profile visibility. This field is visible to both 1P and
|
||||
# 3P APIs.
|
||||
# Corresponds to the JSON property `profileVisible`
|
||||
# @return [Boolean]
|
||||
attr_accessor :profile_visible
|
||||
alias_method :profile_visible?, :profile_visible
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@profile_visible = args[:profile_visible] if args.key?(:profile_visible)
|
||||
end
|
||||
end
|
||||
|
||||
# This is a JSON template for multiple quests reset all request.
|
||||
class QuestsResetMultipleForAllRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -100,6 +100,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ProfileSettings
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class QuestsResetMultipleForAllRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -212,6 +218,8 @@ module Google
|
|||
|
||||
property :original_player_id, as: 'originalPlayerId'
|
||||
property :player_id, as: 'playerId'
|
||||
property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesManagementV1management::ProfileSettings, decorator: Google::Apis::GamesManagementV1management::ProfileSettings::Representation
|
||||
|
||||
property :title, as: 'title'
|
||||
end
|
||||
|
||||
|
@ -242,6 +250,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ProfileSettings
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :profile_visible, as: 'profileVisible'
|
||||
end
|
||||
end
|
||||
|
||||
class QuestsResetMultipleForAllRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/games/services/
|
||||
module GamesV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160407'
|
||||
REVISION = '20160509'
|
||||
|
||||
# View and manage its own configuration data in your Google Drive
|
||||
AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
|
||||
|
|
|
@ -2038,6 +2038,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :player_id
|
||||
|
||||
# This is a JSON template for profile settings
|
||||
# Corresponds to the JSON property `profileSettings`
|
||||
# @return [Google::Apis::GamesV1::ProfileSettings]
|
||||
attr_accessor :profile_settings
|
||||
|
||||
# The player's title rewarded for their game activities.
|
||||
# Corresponds to the JSON property `title`
|
||||
# @return [String]
|
||||
|
@ -2059,6 +2064,7 @@ module Google
|
|||
@name = args[:name] if args.key?(:name)
|
||||
@original_player_id = args[:original_player_id] if args.key?(:original_player_id)
|
||||
@player_id = args[:player_id] if args.key?(:player_id)
|
||||
@profile_settings = args[:profile_settings] if args.key?(:profile_settings)
|
||||
@title = args[:title] if args.key?(:title)
|
||||
end
|
||||
|
||||
|
@ -2646,6 +2652,34 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# This is a JSON template for profile settings
|
||||
class ProfileSettings
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Uniquely identifies the type of this resource. Value is always the fixed
|
||||
# string games#profileSettings.
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The player's current profile visibility. This field is visible to both 1P and
|
||||
# 3P APIs.
|
||||
# Corresponds to the JSON property `profileVisible`
|
||||
# @return [Boolean]
|
||||
attr_accessor :profile_visible
|
||||
alias_method :profile_visible?, :profile_visible
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@profile_visible = args[:profile_visible] if args.key?(:profile_visible)
|
||||
end
|
||||
end
|
||||
|
||||
# This is a JSON template for a push token resource.
|
||||
class PushToken
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -382,6 +382,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ProfileSettings
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class PushToken
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -1135,6 +1141,8 @@ module Google
|
|||
|
||||
property :original_player_id, as: 'originalPlayerId'
|
||||
property :player_id, as: 'playerId'
|
||||
property :profile_settings, as: 'profileSettings', class: Google::Apis::GamesV1::ProfileSettings, decorator: Google::Apis::GamesV1::ProfileSettings::Representation
|
||||
|
||||
property :title, as: 'title'
|
||||
end
|
||||
|
||||
|
@ -1295,6 +1303,14 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class ProfileSettings
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :kind, as: 'kind'
|
||||
property :profile_visible, as: 'profileVisible'
|
||||
end
|
||||
end
|
||||
|
||||
class PushToken
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -27,7 +27,7 @@ module Google
|
|||
# @see https://cloud.google.com/genomics/
|
||||
module GenomicsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160411'
|
||||
REVISION = '20160512'
|
||||
|
||||
# View and manage your data in Google BigQuery
|
||||
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'
|
||||
|
|
|
@ -2526,6 +2526,16 @@ module Google
|
|||
# @return [Array<Google::Apis::GenomicsV1::VariantSetMetadata>]
|
||||
attr_accessor :metadata
|
||||
|
||||
# User-specified, mutable name.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# A textual description of this variant set.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -2537,6 +2547,8 @@ module Google
|
|||
@reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id)
|
||||
@reference_bounds = args[:reference_bounds] if args.key?(:reference_bounds)
|
||||
@metadata = args[:metadata] if args.key?(:metadata)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -3299,6 +3311,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :create_time
|
||||
|
||||
# The time at which the job stopped running.
|
||||
# Corresponds to the JSON property `endTime`
|
||||
# @return [String]
|
||||
attr_accessor :end_time
|
||||
|
||||
# The original request that started the operation. Note that this will be in
|
||||
# current version of the API. If the operation was started with v1beta2 API and
|
||||
# a GetOperation is performed on v1 API, a v1 request will be returned.
|
||||
|
@ -3320,6 +3337,7 @@ module Google
|
|||
def update!(**args)
|
||||
@project_id = args[:project_id] if args.key?(:project_id)
|
||||
@create_time = args[:create_time] if args.key?(:create_time)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@request = args[:request] if args.key?(:request)
|
||||
@events = args[:events] if args.key?(:events)
|
||||
end
|
||||
|
|
|
@ -1087,6 +1087,8 @@ module Google
|
|||
|
||||
collection :metadata, as: 'metadata', class: Google::Apis::GenomicsV1::VariantSetMetadata, decorator: Google::Apis::GenomicsV1::VariantSetMetadata::Representation
|
||||
|
||||
property :name, as: 'name'
|
||||
property :description, as: 'description'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1292,6 +1294,7 @@ module Google
|
|||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :project_id, as: 'projectId'
|
||||
property :create_time, as: 'createTime'
|
||||
property :end_time, as: 'endTime'
|
||||
hash :request, as: 'request'
|
||||
collection :events, as: 'events', class: Google::Apis::GenomicsV1::OperationEvent, decorator: Google::Apis::GenomicsV1::OperationEvent::Representation
|
||||
|
||||
|
|
|
@ -1897,8 +1897,8 @@ module Google
|
|||
# @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object
|
||||
# @param [String] update_mask
|
||||
# An optional mask specifying which fields to update. Supported fields: *
|
||||
# metadata. Leaving `updateMask` unset is equivalent to specifying all mutable
|
||||
# fields.
|
||||
# metadata. * name. * description. Leaving `updateMask` unset is equivalent to
|
||||
# specifying all mutable fields.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/identity-toolkit/v3/
|
||||
module IdentitytoolkitV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20160407'
|
||||
REVISION = '20160420'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -890,12 +890,6 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :password
|
||||
|
||||
# Whether return sts id token and refresh token instead of gitkit token.
|
||||
# Corresponds to the JSON property `returnSecureToken`
|
||||
# @return [Boolean]
|
||||
attr_accessor :return_secure_token
|
||||
alias_method :return_secure_token?, :return_secure_token
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -909,7 +903,6 @@ module Google
|
|||
@id_token = args[:id_token] if args.key?(:id_token)
|
||||
@instance_id = args[:instance_id] if args.key?(:instance_id)
|
||||
@password = args[:password] if args.key?(:password)
|
||||
@return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1302,6 +1295,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# The local ID of the user.
|
||||
# Corresponds to the JSON property `localId`
|
||||
# @return [String]
|
||||
attr_accessor :local_id
|
||||
|
||||
# The new email the user attempts to change to.
|
||||
# Corresponds to the JSON property `newEmail`
|
||||
# @return [String]
|
||||
|
@ -1338,6 +1336,7 @@ module Google
|
|||
@expires_in = args[:expires_in] if args.key?(:expires_in)
|
||||
@id_token = args[:id_token] if args.key?(:id_token)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@local_id = args[:local_id] if args.key?(:local_id)
|
||||
@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)
|
||||
|
@ -1354,6 +1353,11 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :display_name
|
||||
|
||||
# User's identifier at IDP.
|
||||
# Corresponds to the JSON property `federatedId`
|
||||
# @return [String]
|
||||
attr_accessor :federated_id
|
||||
|
||||
# The user's photo url at the IDP.
|
||||
# Corresponds to the JSON property `photoUrl`
|
||||
# @return [String]
|
||||
|
@ -1372,6 +1376,7 @@ module Google
|
|||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@display_name = args[:display_name] if args.key?(:display_name)
|
||||
@federated_id = args[:federated_id] if args.key?(:federated_id)
|
||||
@photo_url = args[:photo_url] if args.key?(:photo_url)
|
||||
@provider_id = args[:provider_id] if args.key?(:provider_id)
|
||||
end
|
||||
|
|
|
@ -463,7 +463,6 @@ module Google
|
|||
property :id_token, as: 'idToken'
|
||||
property :instance_id, as: 'instanceId'
|
||||
property :password, as: 'password'
|
||||
property :return_secure_token, as: 'returnSecureToken'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -561,6 +560,7 @@ module Google
|
|||
property :expires_in, as: 'expiresIn'
|
||||
property :id_token, as: 'idToken'
|
||||
property :kind, as: 'kind'
|
||||
property :local_id, as: 'localId'
|
||||
property :new_email, as: 'newEmail'
|
||||
property :password_hash, :base64 => true, as: 'passwordHash'
|
||||
property :photo_url, as: 'photoUrl'
|
||||
|
@ -573,6 +573,7 @@ module Google
|
|||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :display_name, as: 'displayName'
|
||||
property :federated_id, as: 'federatedId'
|
||||
property :photo_url, as: 'photoUrl'
|
||||
property :provider_id, as: 'providerId'
|
||||
end
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/speed/docs/insights/v2/getting-started
|
||||
module PagespeedonlineV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20160306'
|
||||
REVISION = '20160413'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Google+ Domains API
|
||||
#
|
||||
# The Google+ API enables developers to build on top of the Google+ platform.
|
||||
# Builds on top of the Google+ platform for Google Apps Domains.
|
||||
#
|
||||
# @see https://developers.google.com/+/domains/
|
||||
module PlusDomainsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160412'
|
||||
REVISION = '20160511'
|
||||
|
||||
# View your circles and the people and pages in them
|
||||
AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module PlusDomainsV1
|
||||
# Google+ Domains API
|
||||
#
|
||||
# The Google+ API enables developers to build on top of the Google+ platform.
|
||||
# Builds on top of the Google+ platform for Google Apps Domains.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/plus_domains_v1'
|
||||
|
|
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Google+ API
|
||||
#
|
||||
# The Google+ API enables developers to build on top of the Google+ platform.
|
||||
# Builds on top of the Google+ platform.
|
||||
#
|
||||
# @see https://developers.google.com/+/api/
|
||||
module PlusV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20160412'
|
||||
REVISION = '20160511'
|
||||
|
||||
# Know the list of people in your circles, your age range, and language
|
||||
AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module PlusV1
|
||||
# Google+ API
|
||||
#
|
||||
# The Google+ API enables developers to build on top of the Google+ platform.
|
||||
# Builds on top of the Google+ platform.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/plus_v1'
|
||||
|
|
|
@ -20,12 +20,15 @@ module Google
|
|||
module Apis
|
||||
# Google Proximity Beacon API
|
||||
#
|
||||
# This API provides services to register, manage, index, and search beacons.
|
||||
# Registers, manages, indexes, and searches beacons.
|
||||
#
|
||||
# @see https://developers.google.com/beacons/proximity/
|
||||
module ProximitybeaconV1beta1
|
||||
VERSION = 'V1beta1'
|
||||
REVISION = '20150729'
|
||||
REVISION = '20160429'
|
||||
|
||||
# View and modify your beacons
|
||||
AUTH_USERLOCATION_BEACON_REGISTRY = 'https://www.googleapis.com/auth/userlocation.beacon.registry'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -59,7 +59,7 @@ module Google
|
|||
# NormalizeLongitude(longitude): """Wraps decimal degrees longitude to [-180.0,
|
||||
# 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <=
|
||||
# -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """
|
||||
# Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90.
|
||||
# Wraps decimal degrees latitude and longitude to [-90.0, 90.0] and [-180.0, 180.
|
||||
# 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360,
|
||||
# NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude(
|
||||
# longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 ==
|
||||
|
@ -99,6 +99,39 @@ module Google
|
|||
# @return [Hash<String,String>]
|
||||
attr_accessor :properties
|
||||
|
||||
# Write-only registration parameters for beacons using Eddystone-EID format. Two
|
||||
# ways of securely registering an Eddystone-EID beacon with the service are
|
||||
# supported: 1. Perform an ECDH key exchange via this API, including a previous
|
||||
# call to `GET /v1beta1/eidparams`. In this case the fields `
|
||||
# beacon_ecdh_public_key` and `service_ecdh_public_key` should be populated and `
|
||||
# beacon_identity_key` should not be populated. This method ensures that only
|
||||
# the two parties in the ECDH key exchange can compute the identity key, which
|
||||
# becomes a secret between them. 2. Derive or obtain the beacon's identity key
|
||||
# via other secure means (perhaps an ECDH key exchange between the beacon and a
|
||||
# mobile device or any other secure method), and then submit the resulting
|
||||
# identity key to the service. In this case `beacon_identity_key` field should
|
||||
# be populated, and neither of `beacon_ecdh_public_key` nor `
|
||||
# service_ecdh_public_key` fields should be. The security of this method depends
|
||||
# on how securely the parties involved (in particular the bluetooth client)
|
||||
# handle the identity key, and obviously on how securely the identity key was
|
||||
# generated. See [the Eddystone specification](https://github.com/google/
|
||||
# eddystone/tree/master/eddystone-eid) at GitHub.
|
||||
# Corresponds to the JSON property `ephemeralIdRegistration`
|
||||
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration]
|
||||
attr_accessor :ephemeral_id_registration
|
||||
|
||||
# Some beacons may require a user to provide an authorization key before
|
||||
# changing any of its configuration (e.g. broadcast frames, transmit power).
|
||||
# This field provides a place to store and control access to that key. This
|
||||
# field is populated in responses to `GET /v1beta1/beacons/3!beaconId` from
|
||||
# users with write access to the given beacon. That is to say: If the user is
|
||||
# authorized to write the beacon's confidential data in the service, the service
|
||||
# considers them authorized to configure the beacon. Note that this key grants
|
||||
# nothing on the service, only on the beacon itself.
|
||||
# Corresponds to the JSON property `provisioningKey`
|
||||
# @return [String]
|
||||
attr_accessor :provisioning_key
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -114,6 +147,8 @@ module Google
|
|||
@expected_stability = args[:expected_stability] if args.key?(:expected_stability)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@properties = args[:properties] if args.key?(:properties)
|
||||
@ephemeral_id_registration = args[:ephemeral_id_registration] if args.key?(:ephemeral_id_registration)
|
||||
@provisioning_key = args[:provisioning_key] if args.key?(:provisioning_key)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -153,7 +188,7 @@ module Google
|
|||
# NormalizeLongitude(longitude): """Wraps decimal degrees longitude to [-180.0,
|
||||
# 180.0].""" q, r = divmod(longitude, 360.0) if r > 180.0 or (r == 180.0 and q <=
|
||||
# -1.0): return r - 360.0 return r def NormalizeLatLng(latitude, longitude): """
|
||||
# Wraps decimal degrees latitude and longitude to [-180.0, 180.0] and [-90.0, 90.
|
||||
# Wraps decimal degrees latitude and longitude to [-90.0, 90.0] and [-180.0, 180.
|
||||
# 0], respectively.""" r = latitude % 360.0 if r = 270.0: return r - 360,
|
||||
# NormalizeLongitude(longitude) else: return 180 - r, NormalizeLongitude(
|
||||
# longitude + 180.0) assert 180.0 == NormalizeLongitude(180.0) assert -180.0 ==
|
||||
|
@ -209,6 +244,89 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Write-only registration parameters for beacons using Eddystone-EID format. Two
|
||||
# ways of securely registering an Eddystone-EID beacon with the service are
|
||||
# supported: 1. Perform an ECDH key exchange via this API, including a previous
|
||||
# call to `GET /v1beta1/eidparams`. In this case the fields `
|
||||
# beacon_ecdh_public_key` and `service_ecdh_public_key` should be populated and `
|
||||
# beacon_identity_key` should not be populated. This method ensures that only
|
||||
# the two parties in the ECDH key exchange can compute the identity key, which
|
||||
# becomes a secret between them. 2. Derive or obtain the beacon's identity key
|
||||
# via other secure means (perhaps an ECDH key exchange between the beacon and a
|
||||
# mobile device or any other secure method), and then submit the resulting
|
||||
# identity key to the service. In this case `beacon_identity_key` field should
|
||||
# be populated, and neither of `beacon_ecdh_public_key` nor `
|
||||
# service_ecdh_public_key` fields should be. The security of this method depends
|
||||
# on how securely the parties involved (in particular the bluetooth client)
|
||||
# handle the identity key, and obviously on how securely the identity key was
|
||||
# generated. See [the Eddystone specification](https://github.com/google/
|
||||
# eddystone/tree/master/eddystone-eid) at GitHub.
|
||||
class EphemeralIdRegistration
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The beacon's public key used for the Elliptic curve Diffie-Hellman key
|
||||
# exchange. When this field is populated, `service_ecdh_public_key` must also be
|
||||
# populated, and `beacon_identity_key` must not be.
|
||||
# Corresponds to the JSON property `beaconEcdhPublicKey`
|
||||
# @return [String]
|
||||
attr_accessor :beacon_ecdh_public_key
|
||||
|
||||
# The service's public key used for the Elliptic curve Diffie-Hellman key
|
||||
# exchange. When this field is populated, `beacon_ecdh_public_key` must also be
|
||||
# populated, and `beacon_identity_key` must not be.
|
||||
# Corresponds to the JSON property `serviceEcdhPublicKey`
|
||||
# @return [String]
|
||||
attr_accessor :service_ecdh_public_key
|
||||
|
||||
# The private key of the beacon. If this field is populated, `
|
||||
# beacon_ecdh_public_key` and `service_ecdh_public_key` must not be populated.
|
||||
# Corresponds to the JSON property `beaconIdentityKey`
|
||||
# @return [String]
|
||||
attr_accessor :beacon_identity_key
|
||||
|
||||
# Indicates the nominal period between each rotation of the beacon's ephemeral
|
||||
# ID. "Nominal" because the beacon should randomize the actual interval. See [
|
||||
# the spec at github](https://github.com/google/eddystone/tree/master/eddystone-
|
||||
# eid) for details. This value corresponds to a power-of-two scaler on the
|
||||
# beacon's clock: when the scaler value is K, the beacon will begin broadcasting
|
||||
# a new ephemeral ID on average every 2^K seconds.
|
||||
# Corresponds to the JSON property `rotationPeriodExponent`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :rotation_period_exponent
|
||||
|
||||
# The initial clock value of the beacon. The beacon's clock must have begun
|
||||
# counting at this value immediately prior to transmitting this value to the
|
||||
# resolving service. Significant delay in transmitting this value to the service
|
||||
# risks registration or resolution failures. If a value is not provided, the
|
||||
# default is zero.
|
||||
# Corresponds to the JSON property `initialClockValue`
|
||||
# @return [String]
|
||||
attr_accessor :initial_clock_value
|
||||
|
||||
# An initial ephemeral ID calculated using the clock value submitted as `
|
||||
# initial_clock_value`, and the secret key generated by the Diffie-Hellman key
|
||||
# exchange using `service_ecdh_public_key` and `service_ecdh_public_key`. This
|
||||
# initial EID value will be used by the service to confirm that the key exchange
|
||||
# process was successful.
|
||||
# Corresponds to the JSON property `initialEid`
|
||||
# @return [String]
|
||||
attr_accessor :initial_eid
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@beacon_ecdh_public_key = args[:beacon_ecdh_public_key] if args.key?(:beacon_ecdh_public_key)
|
||||
@service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
|
||||
@beacon_identity_key = args[:beacon_identity_key] if args.key?(:beacon_identity_key)
|
||||
@rotation_period_exponent = args[:rotation_period_exponent] if args.key?(:rotation_period_exponent)
|
||||
@initial_clock_value = args[:initial_clock_value] if args.key?(:initial_clock_value)
|
||||
@initial_eid = args[:initial_eid] if args.key?(:initial_eid)
|
||||
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.
|
||||
|
@ -382,6 +500,43 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Information a client needs to provision and register beacons that broadcast
|
||||
# Eddystone-EID format beacon IDs, using Elliptic curve Diffie-Hellman key
|
||||
# exchange. See [the Eddystone specification](https://github.com/google/
|
||||
# eddystone/tree/master/eddystone-eid) at GitHub.
|
||||
class EphemeralIdRegistrationParams
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The beacon service's public key for use by a beacon to derive its Identity Key
|
||||
# using Elliptic Curve Diffie-Hellman key exchange.
|
||||
# Corresponds to the JSON property `serviceEcdhPublicKey`
|
||||
# @return [String]
|
||||
attr_accessor :service_ecdh_public_key
|
||||
|
||||
# Indicates the minimum rotation period supported by the service. See
|
||||
# EddystoneEidRegistration.rotation_period_exponent
|
||||
# Corresponds to the JSON property `minRotationPeriodExponent`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :min_rotation_period_exponent
|
||||
|
||||
# Indicates the maximum rotation period supported by the service. See
|
||||
# EddystoneEidRegistration.rotation_period_exponent
|
||||
# Corresponds to the JSON property `maxRotationPeriodExponent`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_rotation_period_exponent
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@service_ecdh_public_key = args[:service_ecdh_public_key] if args.key?(:service_ecdh_public_key)
|
||||
@min_rotation_period_exponent = args[:min_rotation_period_exponent] if args.key?(:min_rotation_period_exponent)
|
||||
@max_rotation_period_exponent = args[:max_rotation_period_exponent] if args.key?(:max_rotation_period_exponent)
|
||||
end
|
||||
end
|
||||
|
||||
# Response that contains the requested diagnostics.
|
||||
class ListDiagnosticsResponse
|
||||
include Google::Apis::Core::Hashable
|
||||
|
@ -412,7 +567,8 @@ module Google
|
|||
class Diagnostics
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Resource name of the beacon.
|
||||
# Resource name of the beacon. For Eddystone-EID beacons, this may be the beacon'
|
||||
# s current EID, or the beacon's "stable" Eddystone-UID.
|
||||
# Corresponds to the JSON property `beaconName`
|
||||
# @return [String]
|
||||
attr_accessor :beacon_name
|
||||
|
@ -422,8 +578,8 @@ module Google
|
|||
# relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a
|
||||
# year and month where the day is not significant, e.g. credit card expiration
|
||||
# date. The year may be 0 to represent a month and day independent of year, e.g.
|
||||
# anniversary date. Related types are [google.type.TimeOfDay][] and `google.
|
||||
# protobuf.Timestamp`.
|
||||
# anniversary date. Related types are google.type.TimeOfDay and `google.protobuf.
|
||||
# Timestamp`.
|
||||
# Corresponds to the JSON property `estimatedLowBatteryDate`
|
||||
# @return [Google::Apis::ProximitybeaconV1beta1::Date]
|
||||
attr_accessor :estimated_low_battery_date
|
||||
|
@ -450,24 +606,23 @@ module Google
|
|||
# relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a
|
||||
# year and month where the day is not significant, e.g. credit card expiration
|
||||
# date. The year may be 0 to represent a month and day independent of year, e.g.
|
||||
# anniversary date. Related types are [google.type.TimeOfDay][] and `google.
|
||||
# protobuf.Timestamp`.
|
||||
# anniversary date. Related types are google.type.TimeOfDay and `google.protobuf.
|
||||
# Timestamp`.
|
||||
class Date
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Year of date. Must be from 1 to 9,999, or 0 if specifying a date without a
|
||||
# year.
|
||||
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
|
||||
# Corresponds to the JSON property `year`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :year
|
||||
|
||||
# Month of year of date. Must be from 1 to 12.
|
||||
# Month of year. Must be from 1 to 12.
|
||||
# Corresponds to the JSON property `month`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :month
|
||||
|
||||
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if
|
||||
# specifying a year/month where the day is not sigificant.
|
||||
# specifying a year/month where the day is not significant.
|
||||
# Corresponds to the JSON property `day`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :day
|
||||
|
@ -529,8 +684,7 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :telemetry
|
||||
|
||||
# Time when the beacon was observed. Being sourced from a mobile device, this
|
||||
# time may be suspect.
|
||||
# Time when the beacon was observed.
|
||||
# Corresponds to the JSON property `timestampMs`
|
||||
# @return [String]
|
||||
attr_accessor :timestamp_ms
|
||||
|
@ -582,12 +736,6 @@ module Google
|
|||
# @return [String]
|
||||
attr_accessor :beacon_name
|
||||
|
||||
# Free text used to identify or describe the beacon in a registered
|
||||
# establishment. For example: "entrance", "room 101", etc. May be empty.
|
||||
# Corresponds to the JSON property `description`
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# Attachments matching the type(s) requested. May be empty if no attachment
|
||||
# types were requested, or if none matched.
|
||||
# Corresponds to the JSON property `attachments`
|
||||
|
@ -602,7 +750,6 @@ module Google
|
|||
def update!(**args)
|
||||
@advertised_id = args[:advertised_id] if args.key?(:advertised_id)
|
||||
@beacon_name = args[:beacon_name] if args.key?(:beacon_name)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@attachments = args[:attachments] if args.key?(:attachments)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -46,6 +46,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EphemeralIdRegistration
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class Empty
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -88,6 +94,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class EphemeralIdRegistrationParams
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class ListDiagnosticsResponse
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -151,6 +163,9 @@ module Google
|
|||
property :expected_stability, as: 'expectedStability'
|
||||
property :description, as: 'description'
|
||||
hash :properties, as: 'properties'
|
||||
property :ephemeral_id_registration, as: 'ephemeralIdRegistration', class: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration, decorator: Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistration::Representation
|
||||
|
||||
property :provisioning_key, :base64 => true, as: 'provisioningKey'
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -177,6 +192,18 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class EphemeralIdRegistration
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :beacon_ecdh_public_key, :base64 => true, as: 'beaconEcdhPublicKey'
|
||||
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
||||
property :beacon_identity_key, :base64 => true, as: 'beaconIdentityKey'
|
||||
property :rotation_period_exponent, as: 'rotationPeriodExponent'
|
||||
property :initial_clock_value, as: 'initialClockValue'
|
||||
property :initial_eid, :base64 => true, as: 'initialEid'
|
||||
end
|
||||
end
|
||||
|
||||
class Empty
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -233,6 +260,15 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class EphemeralIdRegistrationParams
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :service_ecdh_public_key, :base64 => true, as: 'serviceEcdhPublicKey'
|
||||
property :min_rotation_period_exponent, as: 'minRotationPeriodExponent'
|
||||
property :max_rotation_period_exponent, as: 'maxRotationPeriodExponent'
|
||||
end
|
||||
end
|
||||
|
||||
class ListDiagnosticsResponse
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
@ -294,7 +330,6 @@ module Google
|
|||
property :advertised_id, as: 'advertisedId', class: Google::Apis::ProximitybeaconV1beta1::AdvertisedId, decorator: Google::Apis::ProximitybeaconV1beta1::AdvertisedId::Representation
|
||||
|
||||
property :beacon_name, as: 'beaconName'
|
||||
property :description, as: 'description'
|
||||
collection :attachments, as: 'attachments', class: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo, decorator: Google::Apis::ProximitybeaconV1beta1::AttachmentInfo::Representation
|
||||
|
||||
end
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module ProximitybeaconV1beta1
|
||||
# Google Proximity Beacon API
|
||||
#
|
||||
# This API provides services to register, manage, index, and search beacons.
|
||||
# Registers, manages, indexes, and searches beacons.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/proximitybeacon_v1beta1'
|
||||
|
@ -47,8 +47,14 @@ module Google
|
|||
end
|
||||
|
||||
# Registers a previously unregistered beacon given its `advertisedId`. These IDs
|
||||
# are unique within the system. An ID can be registered only once.
|
||||
# are unique within the system. An ID can be registered only once. Authenticate
|
||||
# using an [OAuth access token](https://developers.google.com/identity/protocols/
|
||||
# OAuth2) from a signed-in user with **Is owner** or **Can edit** permissions in
|
||||
# the Google Developers Console project.
|
||||
# @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
|
||||
# @param [String] project_id
|
||||
# The project id of the project the beacon will be registered to. If the project
|
||||
# id is not specified then the project making the request is used. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -66,12 +72,13 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def register_beacon(beacon_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def register_beacon(beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/beacons:register', options)
|
||||
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
||||
command.request_object = beacon_object
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -79,9 +86,21 @@ module Google
|
|||
|
||||
# Decommissions the specified beacon in the service. This beacon will no longer
|
||||
# be returned from `beaconinfo.getforobserved`. This operation is permanent --
|
||||
# you will not be able to re-register a beacon with this ID again.
|
||||
# you will not be able to re-register a beacon with this ID again. Authenticate
|
||||
# using an [OAuth access token](https://developers.google.com/identity/protocols/
|
||||
# OAuth2) from a signed-in user with **Is owner** or **Can edit** permissions in
|
||||
# the Google Developers Console project.
|
||||
# @param [String] beacon_name
|
||||
# Beacon that should be decommissioned. Required.
|
||||
# Beacon that should be decommissioned. A beacon name has the format "beacons/N!
|
||||
# beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is
|
||||
# a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4`
|
||||
# for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
|
||||
# beacons, you may use either the current EID of the beacon's "stable" UID.
|
||||
# Required.
|
||||
# @param [String] project_id
|
||||
# The project id of the beacon to decommission. If the project id is not
|
||||
# specified then the project making the request is used. The project id must
|
||||
# match the project that owns the beacon. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -99,19 +118,37 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def decommission_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def decommission_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+beaconName}:decommission', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
|
||||
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
||||
command.query['projectId'] = project_id unless project_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
|
||||
|
||||
# Returns detailed information about the specified beacon.
|
||||
# Returns detailed information about the specified beacon. Authenticate using an
|
||||
# [OAuth access token](https://developers.google.com/identity/protocols/OAuth2)
|
||||
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
||||
# permissions in the Google Developers Console project. Requests may supply an
|
||||
# Eddystone-EID beacon name in the form: `beacons/4!beaconId` where the `
|
||||
# beaconId` is the base16 ephemeral ID broadcast by the beacon. The returned `
|
||||
# Beacon` object will contain the beacon's stable Eddystone-UID. Clients not
|
||||
# authorized to resolve the beacon's ephemeral Eddystone-EID broadcast will
|
||||
# receive an error.
|
||||
# @param [String] beacon_name
|
||||
# Beacon that is requested.
|
||||
# Resource name of this beacon. A beacon name has the format "beacons/N!beaconId"
|
||||
# where the beaconId is the base16 ID broadcast by the beacon and N is a code
|
||||
# for the beacon's type. Possible values are `3` for Eddystone-UID, `4` for
|
||||
# Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
|
||||
# beacons, you may use either the current EID or the beacon's "stable" UID.
|
||||
# Required.
|
||||
# @param [String] project_id
|
||||
# The project id of the beacon to request. If the project id is not specified
|
||||
# then the project making the request is used. The project id must match the
|
||||
# project that owns the beacon. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -129,11 +166,12 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def get_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+beaconName}', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
|
||||
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -141,6 +179,9 @@ module Google
|
|||
|
||||
# Searches the beacon registry for beacons that match the given search criteria.
|
||||
# Only those beacons that the client has permission to list will be returned.
|
||||
# Authenticate using an [OAuth access token](https://developers.google.com/
|
||||
# identity/protocols/OAuth2) from a signed-in user with **viewer**, **Is owner**
|
||||
# or **Can edit** permissions in the Google Developers Console project.
|
||||
# @param [String] q
|
||||
# Filter query string that supports the following field filters: * `description:"
|
||||
# "` For example: `description:"Room 3"` Returns beacons whose description
|
||||
|
@ -167,8 +208,8 @@ module Google
|
|||
# Returns beacons whose registered location is within the given circle. When any
|
||||
# of these fields are given, all are required. Latitude and longitude must be
|
||||
# decimal degrees between -90.0 and 90.0 and between -180.0 and 180.0
|
||||
# respectively. Radius must be an integer number of meters less than 1,000,000 (
|
||||
# 1000 km). * `property:"="` For example: `property:"battery-type=CR2032"`
|
||||
# respectively. Radius must be an integer number of meters between 10 and 1,000,
|
||||
# 000 (1000 km). * `property:"="` For example: `property:"battery-type=CR2032"`
|
||||
# Returns beacons which have a property of the given name and value. Supports
|
||||
# multiple filters which will be combined with OR logic. The entire name=value
|
||||
# string must be double-quoted as one string. * `attachment_type:""` For example:
|
||||
|
@ -187,6 +228,9 @@ module Google
|
|||
# @param [Fixnum] page_size
|
||||
# The maximum number of records to return for this request, up to a server-
|
||||
# defined upper limit.
|
||||
# @param [String] project_id
|
||||
# The project id to list beacons under. If not present then the project
|
||||
# credential that made the request is used as the project. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -204,13 +248,14 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_beacons(q: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_beacons(q: nil, page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/beacons', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconsResponse
|
||||
command.query['q'] = q unless q.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -220,8 +265,11 @@ module Google
|
|||
# not populate in the submitted beacon will be permanently erased**, so you
|
||||
# should follow the "read, modify, write" pattern to avoid inadvertently
|
||||
# destroying data. Changes to the beacon status via this method will be silently
|
||||
# ignored. To update beacon status, use the separate methods on this API for (de)
|
||||
# activation and decommissioning.
|
||||
# ignored. To update beacon status, use the separate methods on this API for
|
||||
# activation, deactivation, and decommissioning. Authenticate using an [OAuth
|
||||
# access token](https://developers.google.com/identity/protocols/OAuth2) from a
|
||||
# signed-in user with **Is owner** or **Can edit** permissions in the Google
|
||||
# Developers Console project.
|
||||
# @param [String] beacon_name
|
||||
# Resource name of this beacon. A beacon name has the format "beacons/N!beaconId"
|
||||
# where the beaconId is the base16 ID broadcast by the beacon and N is a code
|
||||
|
@ -229,6 +277,10 @@ module Google
|
|||
# or `5` for AltBeacon. This field must be left empty when registering. After
|
||||
# reading a beacon, clients can use the name for future operations.
|
||||
# @param [Google::Apis::ProximitybeaconV1beta1::Beacon] beacon_object
|
||||
# @param [String] project_id
|
||||
# The project id of the beacon to update. If the project id is not specified
|
||||
# then the project making the request is used. The project id must match the
|
||||
# project that owns the beacon. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -246,24 +298,37 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_beacon(beacon_name, beacon_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def update_beacon(beacon_name, beacon_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1beta1/{+beaconName}', options)
|
||||
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
||||
command.request_object = beacon_object
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Beacon::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::Beacon
|
||||
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
||||
command.query['projectId'] = project_id unless project_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
|
||||
|
||||
# (Re)activates a beacon. A beacon that is active will return information and
|
||||
# Activates a beacon. A beacon that is active will return information and
|
||||
# attachment data when queried via `beaconinfo.getforobserved`. Calling this
|
||||
# method on an already active beacon will do nothing (but will return a
|
||||
# successful response code).
|
||||
# successful response code). Authenticate using an [OAuth access token](https://
|
||||
# developers.google.com/identity/protocols/OAuth2) from a signed-in user with **
|
||||
# Is owner** or **Can edit** permissions in the Google Developers Console
|
||||
# project.
|
||||
# @param [String] beacon_name
|
||||
# The beacon to activate. Required.
|
||||
# Beacon that should be activated. A beacon name has the format "beacons/N!
|
||||
# beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is
|
||||
# a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4`
|
||||
# for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
|
||||
# beacons, you may use either the current EID or the beacon's "stable" UID.
|
||||
# Required.
|
||||
# @param [String] project_id
|
||||
# The project id of the beacon to activate. If the project id is not specified
|
||||
# then the project making the request is used. The project id must match the
|
||||
# project that owns the beacon. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -281,11 +346,12 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def activate_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def activate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+beaconName}:activate', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
|
||||
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -294,9 +360,21 @@ module Google
|
|||
# Deactivates a beacon. Once deactivated, the API will not return information
|
||||
# nor attachment data for the beacon when queried via `beaconinfo.getforobserved`
|
||||
# . Calling this method on an already inactive beacon will do nothing (but will
|
||||
# return a successful response code).
|
||||
# return a successful response code). Authenticate using an [OAuth access token](
|
||||
# https://developers.google.com/identity/protocols/OAuth2) from a signed-in user
|
||||
# with **Is owner** or **Can edit** permissions in the Google Developers Console
|
||||
# project.
|
||||
# @param [String] beacon_name
|
||||
# The beacon name of this beacon.
|
||||
# Beacon that should be deactivated. A beacon name has the format "beacons/N!
|
||||
# beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is
|
||||
# a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4`
|
||||
# for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID
|
||||
# beacons, you may use either the current EID or the beacon's "stable" UID.
|
||||
# Required.
|
||||
# @param [String] project_id
|
||||
# The project id of the beacon to deactivate. If the project id is not specified
|
||||
# then the project making the request is used. The project id must match the
|
||||
# project that owns the beacon. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -314,11 +392,12 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def deactivate_beacon(beacon_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def deactivate_beacon(beacon_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+beaconName}:deactivate', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
|
||||
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -331,10 +410,21 @@ module Google
|
|||
# parts, the namespace and the type. The namespace must be one of the values
|
||||
# returned by the `namespaces` endpoint, while the type can be a string of any
|
||||
# characters except for the forward slash (`/`) up to 100 characters in length.
|
||||
# Attachment data can be up to 1024 bytes long.
|
||||
# Attachment data can be up to 1024 bytes long. Authenticate using an [OAuth
|
||||
# access token](https://developers.google.com/identity/protocols/OAuth2) from a
|
||||
# signed-in user with **Is owner** or **Can edit** permissions in the Google
|
||||
# Developers Console project.
|
||||
# @param [String] beacon_name
|
||||
# The beacon on which the attachment should be created. Required.
|
||||
# Beacon on which the attachment should be created. A beacon name has the format
|
||||
# "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the
|
||||
# beacon and N is a code for the beacon's type. Possible values are `3` for
|
||||
# Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon.
|
||||
# For Eddystone-EID beacons, you may use either the current EID or the beacon's "
|
||||
# stable" UID. Required.
|
||||
# @param [Google::Apis::ProximitybeaconV1beta1::BeaconAttachment] beacon_attachment_object
|
||||
# @param [String] project_id
|
||||
# The project id of the project the attachment will belong to. If the project id
|
||||
# is not specified then the project making the request is used. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -352,13 +442,14 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def create_beacon_attachment(beacon_name, beacon_attachment_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments', options)
|
||||
command.request_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
|
||||
command.request_object = beacon_attachment_object
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::BeaconAttachment
|
||||
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -368,12 +459,25 @@ module Google
|
|||
# namespaced-type pattern. To control which namespaced types are returned, you
|
||||
# add the `namespacedType` query parameter to the request. You must either use `*
|
||||
# /*`, to return all attachments, or the namespace must be one of the ones
|
||||
# returned from the `namespaces` endpoint.
|
||||
# returned from the `namespaces` endpoint. Authenticate using an [OAuth access
|
||||
# token](https://developers.google.com/identity/protocols/OAuth2) from a signed-
|
||||
# in user with **viewer**, **Is owner** or **Can edit** permissions in the
|
||||
# Google Developers Console project.
|
||||
# @param [String] beacon_name
|
||||
# The beacon whose attachments are to be fetched. Required.
|
||||
# Beacon whose attachments should be fetched. A beacon name has the format "
|
||||
# beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the
|
||||
# beacon and N is a code for the beacon's type. Possible values are `3` for
|
||||
# Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon.
|
||||
# For Eddystone-EID beacons, you may use either the current EID or the beacon's "
|
||||
# stable" UID. Required.
|
||||
# @param [String] namespaced_type
|
||||
# Specifies the namespace and type of attachment to include in response in
|
||||
# namespace/type format. Accepts `*/*` to specify "all types in all namespaces".
|
||||
# @param [String] project_id
|
||||
# The project id to list beacon attachments under. This field can be used when "*
|
||||
# " is specified to mean all attachment namespaces. Projects may have multiple
|
||||
# attachments with multiple namespaces. If "*" is specified and the projectId
|
||||
# string is empty, then the project making the request is used. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -391,12 +495,13 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_beacon_attachments(beacon_name, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_beacon_attachments(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+beaconName}/attachments', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListBeaconAttachmentsResponse
|
||||
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
||||
command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -406,10 +511,17 @@ module Google
|
|||
# unique attachment name (`attachmentName`) which is returned when you fetch the
|
||||
# attachment data via this API. You specify this with the delete request to
|
||||
# control which attachment is removed. This operation cannot be undone.
|
||||
# Authenticate using an [OAuth access token](https://developers.google.com/
|
||||
# identity/protocols/OAuth2) from a signed-in user with **Is owner** or **Can
|
||||
# edit** permissions in the Google Developers Console project.
|
||||
# @param [String] attachment_name
|
||||
# The attachment name (`attachmentName`) of the attachment to remove. For
|
||||
# example: `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`
|
||||
# Required.
|
||||
# example: `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For
|
||||
# Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the
|
||||
# beacon's current EID, or its "stable" Eddystone-UID. Required.
|
||||
# @param [String] project_id
|
||||
# The project id of the attachment to delete. If not provided, the project that
|
||||
# is making the request is used. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -427,11 +539,12 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def delete_beacon_attachment(attachment_name, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def delete_beacon_attachment(attachment_name, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:delete, 'v1beta1/{+attachmentName}', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Empty::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::Empty
|
||||
command.params['attachmentName'] = attachment_name unless attachment_name.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -441,12 +554,25 @@ module Google
|
|||
# and cannot be undone. You can optionally specify `namespacedType` to choose
|
||||
# which attachments should be deleted. If you do not specify `namespacedType`,
|
||||
# all your attachments on the given beacon will be deleted. You also may
|
||||
# explicitly specify `*/*` to delete all.
|
||||
# explicitly specify `*/*` to delete all. Authenticate using an [OAuth access
|
||||
# token](https://developers.google.com/identity/protocols/OAuth2) from a signed-
|
||||
# in user with **Is owner** or **Can edit** permissions in the Google Developers
|
||||
# Console project.
|
||||
# @param [String] beacon_name
|
||||
# The beacon whose attachments are to be deleted. Required.
|
||||
# The beacon whose attachments should be deleted. A beacon name has the format "
|
||||
# beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the
|
||||
# beacon and N is a code for the beacon's type. Possible values are `3` for
|
||||
# Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon.
|
||||
# For Eddystone-EID beacons, you may use either the current EID or the beacon's "
|
||||
# stable" UID. Required.
|
||||
# @param [String] namespaced_type
|
||||
# Specifies the namespace and type of attachments to delete in `namespace/type`
|
||||
# format. Accepts `*/*` to specify "all types in all namespaces". Optional.
|
||||
# @param [String] project_id
|
||||
# The project id to delete beacon attachments under. This field can be used when
|
||||
# "*" is specified to mean all attachment namespaces. Projects may have multiple
|
||||
# attachments with multiple namespaces. If "*" is specified and the projectId
|
||||
# string is empty, then the project making the request is used. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -464,12 +590,13 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def batch_beacon_attachment_delete(beacon_name, namespaced_type: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1beta1/{+beaconName}/attachments:batchDelete', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::DeleteAttachmentsResponse
|
||||
command.params['beaconName'] = beacon_name unless beacon_name.nil?
|
||||
command.query['namespacedType'] = namespaced_type unless namespaced_type.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -477,7 +604,10 @@ module Google
|
|||
|
||||
# List the diagnostics for a single beacon. You can also list diagnostics for
|
||||
# all the beacons owned by your Google Developers Console project by using the
|
||||
# beacon name `beacons/-`.
|
||||
# beacon name `beacons/-`. Authenticate using an [OAuth access token](https://
|
||||
# developers.google.com/identity/protocols/OAuth2) from a signed-in user with **
|
||||
# viewer**, **Is owner** or **Can edit** permissions in the Google Developers
|
||||
# Console project.
|
||||
# @param [String] beacon_name
|
||||
# Beacon that the diagnostics are for.
|
||||
# @param [Fixnum] page_size
|
||||
|
@ -489,6 +619,10 @@ module Google
|
|||
# @param [String] alert_filter
|
||||
# Requests only beacons that have the given alert. For example, to find beacons
|
||||
# that have low batteries use `alert_filter=LOW_BATTERY`.
|
||||
# @param [String] project_id
|
||||
# Requests only diagnostic records for the given project id. If not set, then
|
||||
# the project making the request will be used for looking up diagnostic records.
|
||||
# Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -506,7 +640,7 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_beacon_diagnostics(beacon_name, page_size: nil, page_token: nil, alert_filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_beacon_diagnostics(beacon_name, page_size: nil, page_token: nil, alert_filter: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/{+beaconName}/diagnostics', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListDiagnosticsResponse
|
||||
|
@ -514,6 +648,7 @@ module Google
|
|||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['alertFilter'] = alert_filter unless alert_filter.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
|
@ -521,7 +656,12 @@ module Google
|
|||
|
||||
# Lists all attachment namespaces owned by your Google Developers Console
|
||||
# project. Attachment data associated with a beacon must include a namespaced
|
||||
# type, and the namespace must be owned by your project.
|
||||
# type, and the namespace must be owned by your project. Authenticate using an [
|
||||
# OAuth access token](https://developers.google.com/identity/protocols/OAuth2)
|
||||
# from a signed-in user with **viewer**, **Is owner** or **Can edit**
|
||||
# permissions in the Google Developers Console project.
|
||||
# @param [String] project_id
|
||||
# The project id to list namespaces under. Optional.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
|
@ -539,17 +679,92 @@ module Google
|
|||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def list_namespaces(fields: nil, quota_user: nil, options: nil, &block)
|
||||
def list_namespaces(project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/namespaces', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::ListNamespacesResponse
|
||||
command.query['projectId'] = project_id unless project_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 the information about the specified namespace. Only the namespace
|
||||
# visibility can be updated.
|
||||
# @param [String] namespace_name
|
||||
# Resource name of this namespace. Namespaces names have the format: namespaces/
|
||||
# namespace.
|
||||
# @param [Google::Apis::ProximitybeaconV1beta1::Namespace] namespace_object
|
||||
# @param [String] project_id
|
||||
# The project id of the namespace to update. If the project id is not specified
|
||||
# then the project making the request is used. The project id must match the
|
||||
# project that owns the beacon. Optional.
|
||||
# @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::ProximitybeaconV1beta1::Namespace] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProximitybeaconV1beta1::Namespace]
|
||||
#
|
||||
# @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_namespace(namespace_name, namespace_object = nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1beta1/{+namespaceName}', options)
|
||||
command.request_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
||||
command.request_object = namespace_object
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::Namespace::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::Namespace
|
||||
command.params['namespaceName'] = namespace_name unless namespace_name.nil?
|
||||
command.query['projectId'] = project_id unless project_id.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Gets the Proximity Beacon API's current public key and associated parameters
|
||||
# used to initiate the Diffie-Hellman key exchange required to register a beacon
|
||||
# that broadcasts the Eddystone-EID format. This key changes periodically;
|
||||
# clients may cache it and re-use the same public key to provision and register
|
||||
# multiple beacons. However, clients should be prepared to refresh this key when
|
||||
# they encounter an error registering an Eddystone-EID beacon.
|
||||
# @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::ProximitybeaconV1beta1::EphemeralIdRegistrationParams] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams]
|
||||
#
|
||||
# @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_eidparams(fields: nil, quota_user: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1beta1/eidparams', options)
|
||||
command.response_representation = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams::Representation
|
||||
command.response_class = Google::Apis::ProximitybeaconV1beta1::EphemeralIdRegistrationParams
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Given one or more beacon observations, returns any beacon information and
|
||||
# attachments accessible to your application.
|
||||
# attachments accessible to your application. Authorize by using the [API key](
|
||||
# https://developers.google.com/beacons/proximity/how-tos/authorizing#APIKey)
|
||||
# for the application.
|
||||
# @param [Google::Apis::ProximitybeaconV1beta1::GetInfoForObservedBeaconsRequest] get_info_for_observed_beacons_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
|
|
@ -20,13 +20,13 @@ module Google
|
|||
module Apis
|
||||
# Google Compute Engine Instance Group Manager API
|
||||
#
|
||||
# The Google Compute Engine Instance Group Manager API provides groups of
|
||||
# homogenous Compute Engine Instances.
|
||||
# [Deprecated. Please use Instance Group Manager in Compute API] Provides groups
|
||||
# of homogenous Compute Engine instances.
|
||||
#
|
||||
# @see https://developers.google.com/compute/docs/instance-groups/manager/v1beta2
|
||||
module ReplicapoolV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20150708'
|
||||
REVISION = '20160509'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -22,8 +22,8 @@ module Google
|
|||
module ReplicapoolV1beta2
|
||||
# Google Compute Engine Instance Group Manager API
|
||||
#
|
||||
# The Google Compute Engine Instance Group Manager API provides groups of
|
||||
# homogenous Compute Engine Instances.
|
||||
# [Deprecated. Please use Instance Group Manager in Compute API] Provides groups
|
||||
# of homogenous Compute Engine instances.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/replicapool_v1beta2'
|
||||
|
|
|
@ -20,12 +20,12 @@ module Google
|
|||
module Apis
|
||||
# Google Apps Script Execution API
|
||||
#
|
||||
# An API for executing Google Apps Script projects.
|
||||
# Executes Google Apps Script projects.
|
||||
#
|
||||
# @see https://developers.google.com/apps-script/execution/rest/v1/run
|
||||
# @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
|
||||
module ScriptV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20150922'
|
||||
REVISION = '20160426'
|
||||
|
||||
# View and manage your mail
|
||||
AUTH_SCOPE = 'https://mail.google.com/'
|
||||
|
@ -54,6 +54,9 @@ module Google
|
|||
# View and manage your Google Groups
|
||||
AUTH_GROUPS = 'https://www.googleapis.com/auth/groups'
|
||||
|
||||
# View and manage your spreadsheets in Google Drive
|
||||
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
|
||||
|
||||
# View your email address
|
||||
AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
|
||||
end
|
||||
|
|
|
@ -22,7 +22,7 @@ module Google
|
|||
module ScriptV1
|
||||
# Google Apps Script Execution API
|
||||
#
|
||||
# An API for executing Google Apps Script projects.
|
||||
# Executes Google Apps Script projects.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/script_v1'
|
||||
|
@ -30,7 +30,7 @@ module Google
|
|||
# Script = Google::Apis::ScriptV1 # Alias the module
|
||||
# service = Script::ScriptService.new
|
||||
#
|
||||
# @see https://developers.google.com/apps-script/execution/rest/v1/run
|
||||
# @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
|
||||
class ScriptService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
|
|
|
@ -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_v4/service.rb'
|
||||
require 'google/apis/sheets_v4/classes.rb'
|
||||
require 'google/apis/sheets_v4/representations.rb'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
# Google Sheets API
|
||||
#
|
||||
# An API for reading and modifying Google Sheets.
|
||||
#
|
||||
# @see https://developers.google.com/sheets/
|
||||
module SheetsV4
|
||||
VERSION = 'V4'
|
||||
REVISION = '20160511'
|
||||
|
||||
# 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 the files in your Google Drive
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
||||
# View and manage your spreadsheets in Google Drive
|
||||
AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
|
||||
end
|
||||
end
|
||||
end
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,403 @@
|
|||
# Copyright 2015 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
require 'google/apis/core/base_service'
|
||||
require 'google/apis/core/json_representation'
|
||||
require 'google/apis/core/hashable'
|
||||
require 'google/apis/errors'
|
||||
|
||||
module Google
|
||||
module Apis
|
||||
module SheetsV4
|
||||
# Google Sheets API
|
||||
#
|
||||
# An API for reading and modifying Google Sheets.
|
||||
#
|
||||
# @example
|
||||
# require 'google/apis/sheets_v4'
|
||||
#
|
||||
# Sheets = Google::Apis::SheetsV4 # Alias the module
|
||||
# service = Sheets::SheetsService.new
|
||||
#
|
||||
# @see https://developers.google.com/sheets/
|
||||
class SheetsService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
def initialize
|
||||
super('https://sheets.googleapis.com/', '')
|
||||
end
|
||||
|
||||
# Creates a spreadsheet, returning the newly created spreadsheet.
|
||||
# @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SheetsV4::Spreadsheet]
|
||||
#
|
||||
# @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_spreadsheet(spreadsheet_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v4/spreadsheets', options)
|
||||
command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
||||
command.request_object = spreadsheet_object
|
||||
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
||||
command.response_class = Google::Apis::SheetsV4::Spreadsheet
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns the spreadsheet at the given id.
|
||||
# The caller must specify the spreadsheet ID.
|
||||
# By default, data within grids will not be returned.
|
||||
# You can include grid data one of two ways: specify a field mask listing
|
||||
# your desired fields (using the `fields` URL parameter in HTTP,
|
||||
# or `FieldMaskContext.response_mask` in the request extensions in an RPC),
|
||||
# or by setting the
|
||||
# includeGridData URL parameter
|
||||
# to true. If a field mask is set, the `includeGridData` parameter is
|
||||
# ignored.
|
||||
# For large spreadsheets, it is recommended to retrieve only the specific
|
||||
# fields of the spreadsheet that you want.
|
||||
# To retrieve only subsets of the spreadsheet, use the
|
||||
# ranges URL parameter.
|
||||
# Multiple ranges can be specified. Limiting the range will
|
||||
# return only the portions of the spreadsheet that intersect the requested
|
||||
# ranges. Ranges are specified using A1 notation.
|
||||
# @param [String] spreadsheet_id
|
||||
# The spreadsheet to request.
|
||||
# @param [Array<String>, String] ranges
|
||||
# The ranges to retrieve from the spreadsheet.
|
||||
# @param [Boolean] include_grid_data
|
||||
# True if grid data should be returned.
|
||||
# This parameter is ignored if a field mask was set in the request.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SheetsV4::Spreadsheet] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SheetsV4::Spreadsheet]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
|
||||
command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
|
||||
command.response_class = Google::Apis::SheetsV4::Spreadsheet
|
||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||
command.query['ranges'] = ranges unless ranges.nil?
|
||||
command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Applies one or more updates to the spreadsheet.
|
||||
# Each request is validated before
|
||||
# being applied. If any request is not valid then the entire request will
|
||||
# fail and nothing will be applied.
|
||||
# Some requests have replies to
|
||||
# give you some information about how
|
||||
# they applied. The replies will mirror the requests. For example,
|
||||
# if you applied 4 updates and the 3rd one had a reply, then the
|
||||
# response will have 2 empty replies, the actual reply, and another empty
|
||||
# reply, in that order.
|
||||
# Due to the collaborative nature of spreadsheets, it is not guaranteed that
|
||||
# the spreadsheet will reflect exactly your changes after this completes,
|
||||
# however it is guaranteed that all the updates in the request will be
|
||||
# applied atomically. Your changes may be altered with respect to
|
||||
# collaborator changes. If there are no collaborators, the spreadsheet
|
||||
# should reflect your changes.
|
||||
# @param [String] spreadsheet_id
|
||||
# The spreadsheet to apply the updates to.
|
||||
# @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
|
||||
command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
|
||||
command.request_object = batch_update_spreadsheet_request_object
|
||||
command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
|
||||
command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
|
||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets values in a range of a spreadsheet.
|
||||
# The caller must specify the spreadsheet ID, range, and
|
||||
# a valueInputOption.
|
||||
# @param [String] spreadsheet_id
|
||||
# The id of the spreadsheet to update.
|
||||
# @param [String] range
|
||||
# The A1 notation of the values to update.
|
||||
# @param [Google::Apis::SheetsV4::ValueRange] value_range_object
|
||||
# @param [String] value_input_option
|
||||
# How the input data should be interpreted.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SheetsV4::UpdateValuesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SheetsV4::UpdateValuesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
||||
command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
||||
command.request_object = value_range_object
|
||||
command.response_representation = Google::Apis::SheetsV4::UpdateValuesResponse::Representation
|
||||
command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
|
||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||
command.params['range'] = range unless range.nil?
|
||||
command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns a range of values from a spreadsheet.
|
||||
# The caller must specify the spreadsheet ID and a range.
|
||||
# @param [String] spreadsheet_id
|
||||
# The id of the spreadsheet to retrieve data from.
|
||||
# @param [String] range
|
||||
# The A1 notation of the values to retrieve.
|
||||
# @param [String] value_render_option
|
||||
# How values should be represented in the output.
|
||||
# @param [String] date_time_render_option
|
||||
# How dates, times, and durations should be represented in the output.
|
||||
# This is ignored if the ValueRenderOption option is
|
||||
# FORMATTED_VALUE.
|
||||
# @param [String] major_dimension
|
||||
# The major dimension that results should use.
|
||||
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
||||
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
||||
# `[[1,2],[3,4]]`,
|
||||
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
||||
# `[[1,3],[2,4]]`.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SheetsV4::ValueRange] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SheetsV4::ValueRange]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
|
||||
command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
|
||||
command.response_class = Google::Apis::SheetsV4::ValueRange
|
||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||
command.params['range'] = range unless range.nil?
|
||||
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
||||
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
||||
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Returns one or more ranges of values from a spreadsheet.
|
||||
# The caller must specify the spreadsheet ID and one or more ranges.
|
||||
# @param [String] spreadsheet_id
|
||||
# The id of the spreadsheet to retrieve data from.
|
||||
# @param [Array<String>, String] ranges
|
||||
# The A1 notation of the values to retrieve.
|
||||
# @param [String] value_render_option
|
||||
# How values should be represented in the output.
|
||||
# @param [String] date_time_render_option
|
||||
# How dates, times, and durations should be represented in the output.
|
||||
# This is ignored if ValueRenderOption option is
|
||||
# FORMATTED_VALUE.
|
||||
# @param [String] major_dimension
|
||||
# The major dimension that results should use.
|
||||
# For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
|
||||
# then requesting `range=A1:B2,majorDimension=ROWS` will return
|
||||
# `[[1,2],[3,4]]`,
|
||||
# whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
|
||||
# `[[1,3],[2,4]]`.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
|
||||
command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
|
||||
command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
|
||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||
command.query['ranges'] = ranges unless ranges.nil?
|
||||
command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
|
||||
command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
|
||||
command.query['majorDimension'] = major_dimension unless major_dimension.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets values in a range of a spreadsheet.
|
||||
# The caller must specify the spreadsheet ID,
|
||||
# a valueInputOption, and one or more
|
||||
# ValueRanges.
|
||||
# @param [String] spreadsheet_id
|
||||
# The id of the spreadsheet to update.
|
||||
# @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
|
||||
#
|
||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
||||
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||
def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
|
||||
command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
|
||||
command.request_object = batch_update_values_request_object
|
||||
command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
|
||||
command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
|
||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Copies a single sheet from a spreadsheet to another spreadsheet.
|
||||
# Returns the properties of the newly created sheet.
|
||||
# @param [String] spreadsheet_id
|
||||
# The id of the spreadsheet containing the sheet to copy.
|
||||
# @param [Fixnum] sheet_id
|
||||
# The ID of the sheet to copy.
|
||||
# @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::SheetsV4::SheetProperties] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::SheetsV4::SheetProperties]
|
||||
#
|
||||
# @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 copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
|
||||
command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
|
||||
command.request_object = copy_sheet_to_another_spreadsheet_request_object
|
||||
command.response_representation = Google::Apis::SheetsV4::SheetProperties::Representation
|
||||
command.response_class = Google::Apis::SheetsV4::SheetProperties
|
||||
command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
|
||||
command.params['sheetId'] = sheet_id unless sheet_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue