Skip to content

Commit

Permalink
regen APIs, add sheets_v4 & analyticsreporting_v4
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrrl committed May 16, 2016
1 parent 5cdbb66 commit 416ae55
Show file tree
Hide file tree
Showing 120 changed files with 13,830 additions and 1,676 deletions.
4 changes: 4 additions & 0 deletions api_names.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1,531 changes: 971 additions & 560 deletions api_names_out.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion generated/google/apis/adexchangebuyer_v1_4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Apis
# @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'
Expand Down
87 changes: 75 additions & 12 deletions generated/google/apis/adexchangebuyer_v1_4/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ class CreateOrdersRequest
# @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
Expand Down Expand Up @@ -477,6 +477,11 @@ class Creative
# @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`
Expand Down Expand Up @@ -619,6 +624,7 @@ def initialize(**args)
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)
Expand Down Expand Up @@ -1042,7 +1048,8 @@ class DealServingMetadata
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
Expand All @@ -1058,10 +1065,16 @@ def update!(**args)
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]
Expand All @@ -1080,6 +1093,7 @@ def initialize(**args)

# 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
Expand Down Expand Up @@ -1153,6 +1167,12 @@ def update!(**args)
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>]
Expand All @@ -1175,12 +1195,49 @@ def initialize(**args)

# 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
Expand Down Expand Up @@ -1241,7 +1298,7 @@ class DeleteOrderDealsRequest
# @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
Expand Down Expand Up @@ -2389,6 +2446,11 @@ def update!(**args)
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`
Expand All @@ -2406,6 +2468,7 @@ def initialize(**args)

# 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
Expand Down Expand Up @@ -2534,6 +2597,11 @@ class Product
# @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]
Expand Down Expand Up @@ -2594,6 +2662,7 @@ def update!(**args)
@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)
Expand Down Expand Up @@ -2685,11 +2754,6 @@ class Proposal
# @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]
Expand Down Expand Up @@ -2758,7 +2822,6 @@ def update!(**args)
@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)
Expand Down Expand Up @@ -2793,7 +2856,7 @@ class PublisherProfileApiProto

# 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...
Expand Down Expand Up @@ -2853,7 +2916,7 @@ class PublisherProfileApiProto

# 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
Expand Down
30 changes: 25 additions & 5 deletions generated/google/apis/adexchangebuyer_v1_4/representations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
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

Expand Down Expand Up @@ -591,6 +597,7 @@ class Creative
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'
Expand Down Expand Up @@ -745,6 +752,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
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
Expand All @@ -771,13 +779,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
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'
property :guaranteed_looks, as: 'guaranteedLooks'
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
Expand Down Expand Up @@ -1105,6 +1125,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
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
Expand Down Expand Up @@ -1141,6 +1162,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
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

Expand Down Expand Up @@ -1174,7 +1197,6 @@ class Representation < Google::Apis::Core::JsonRepresentation
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'
Expand All @@ -1196,8 +1218,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :account_id, as: 'accountId'
property :audience, as: 'audience'
property :buyer_pitch_statement, as: 'buyerPitchStatement'
property :direct_contact, as: 'directContact', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation

property :direct_contact, as: 'directContact'
property :exchange, as: 'exchange'
property :google_plus_link, as: 'googlePlusLink'
property :is_parent, as: 'isParent'
Expand All @@ -1208,8 +1229,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
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
Expand Down
8 changes: 6 additions & 2 deletions generated/google/apis/adexchangebuyer_v1_4/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,10 @@ def insert_marketplacedeal(proposal_id, add_order_deals_request_object = nil, fi

# 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
Expand All @@ -695,11 +698,12 @@ def insert_marketplacedeal(proposal_id, add_order_deals_request_object = nil, fi
# @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?
Expand Down
Loading

0 comments on commit 416ae55

Please sign in to comment.