Skip to content

Commit

Permalink
Regenerate apis, add monitoring_v3
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrrl committed Jun 9, 2016
1 parent 8f941ff commit daee54a
Show file tree
Hide file tree
Showing 68 changed files with 5,178 additions and 162 deletions.
503 changes: 421 additions & 82 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 = '20160509'
REVISION = '20160606'

# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
Expand Down
77 changes: 76 additions & 1 deletion generated/google/apis/adexchangebuyer_v1_4/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,12 @@ class Creative
# @return [String]
attr_accessor :kind

# Detected languages for this creative. Read-only. This field should not be set
# in requests.
# Corresponds to the JSON property `languages`
# @return [Array<String>]
attr_accessor :languages

# If nativeAd is set, HTMLSnippet and videoURL should not be set.
# Corresponds to the JSON property `nativeAd`
# @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd]
Expand Down Expand Up @@ -638,6 +644,7 @@ def update!(**args)
@height = args[:height] if args.key?(:height)
@impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url)
@kind = args[:kind] if args.key?(:kind)
@languages = args[:languages] if args.key?(:languages)
@native_ad = args[:native_ad] if args.key?(:native_ad)
@open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
@product_categories = args[:product_categories] if args.key?(:product_categories)
Expand All @@ -654,6 +661,11 @@ def update!(**args)
class Correction
include Google::Apis::Core::Hashable

# All known serving contexts containing serving status information.
# Corresponds to the JSON property `contexts`
# @return [Array<Google::Apis::AdexchangebuyerV1_4::Creative::Correction::Context>]
attr_accessor :contexts

# Additional details about the correction.
# Corresponds to the JSON property `details`
# @return [Array<String>]
Expand All @@ -670,9 +682,50 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@contexts = args[:contexts] if args.key?(:contexts)
@details = args[:details] if args.key?(:details)
@reason = args[:reason] if args.key?(:reason)
end

#
class Context
include Google::Apis::Core::Hashable

# Only set when contextType=AUCTION_TYPE. Represents the auction types this
# correction applies to.
# Corresponds to the JSON property `auctionType`
# @return [Array<String>]
attr_accessor :auction_type

# The type of context (e.g., location, platform, auction type, SSL-ness).
# Corresponds to the JSON property `contextType`
# @return [String]
attr_accessor :context_type

# Only set when contextType=LOCATION. Represents the geo criterias this
# correction applies to.
# Corresponds to the JSON property `geoCriteriaId`
# @return [Array<Fixnum>]
attr_accessor :geo_criteria_id

# Only set when contextType=PLATFORM. Represents the platforms this correction
# applies to.
# Corresponds to the JSON property `platform`
# @return [Array<String>]
attr_accessor :platform

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@auction_type = args[:auction_type] if args.key?(:auction_type)
@context_type = args[:context_type] if args.key?(:context_type)
@geo_criteria_id = args[:geo_criteria_id] if args.key?(:geo_criteria_id)
@platform = args[:platform] if args.key?(:platform)
end
end
end

# The filtering reasons for the creative. Read-only. This field should not be
Expand Down Expand Up @@ -1213,6 +1266,12 @@ class DealTermsGuaranteedFixedPriceTermsBillingInfo
# @return [String]
attr_accessor :currency_conversion_time_ms

# The DFP line item id associated with this deal. For features like CPD, buyers
# can retrieve the DFP line item for billing reconciliation.
# Corresponds to the JSON property `dfpLineItemId`
# @return [String]
attr_accessor :dfp_line_item_id

# 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.
Expand All @@ -1233,6 +1292,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@currency_conversion_time_ms = args[:currency_conversion_time_ms] if args.key?(:currency_conversion_time_ms)
@dfp_line_item_id = args[:dfp_line_item_id] if args.key?(:dfp_line_item_id)
@original_contracted_quantity = args[:original_contracted_quantity] if args.key?(:original_contracted_quantity)
@price = args[:price] if args.key?(:price)
end
Expand Down Expand Up @@ -1438,11 +1498,19 @@ class DimensionDimensionValue
# @return [Fixnum]
attr_accessor :id

# Name of the dimension mainly for debugging purposes.
# Name of the dimension mainly for debugging purposes, except for the case of
# CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

# Percent of total impressions for a dimension type. e.g. `dimension_type: '
# GENDER', [`dimension_value: `id: 1, name: 'MALE', percentage: 60``]` Gender
# MALE is 60% of all impressions which have gender.
# Corresponds to the JSON property `percentage`
# @return [Fixnum]
attr_accessor :percentage

def initialize(**args)
update!(**args)
end
Expand All @@ -1451,6 +1519,7 @@ def initialize(**args)
def update!(**args)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@percentage = args[:percentage] if args.key?(:percentage)
end
end

Expand Down Expand Up @@ -3138,6 +3207,11 @@ class TargetingValueCreativeSize
# @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueSize]
attr_accessor :size

# The skippable ad type for video size.
# Corresponds to the JSON property `skippableAdType`
# @return [String]
attr_accessor :skippable_ad_type

def initialize(**args)
update!(**args)
end
Expand All @@ -3147,6 +3221,7 @@ def update!(**args)
@companion_sizes = args[:companion_sizes] if args.key?(:companion_sizes)
@creative_size_type = args[:creative_size_type] if args.key?(:creative_size_type)
@size = args[:size] if args.key?(:size)
@skippable_ad_type = args[:skippable_ad_type] if args.key?(:skippable_ad_type)
end
end

Expand Down
22 changes: 22 additions & 0 deletions generated/google/apis/adexchangebuyer_v1_4/representations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end

class Correction
class Representation < Google::Apis::Core::JsonRepresentation; end

class Context
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

include Google::Apis::Core::JsonObjectSupport
end
Expand Down Expand Up @@ -614,6 +620,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :height, as: 'height'
collection :impression_tracking_url, as: 'impressionTrackingUrl'
property :kind, as: 'kind'
collection :languages, as: 'languages'
property :native_ad, as: 'nativeAd', class: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Representation

property :open_auction_status, as: 'openAuctionStatus'
Expand All @@ -631,9 +638,21 @@ class Representation < Google::Apis::Core::JsonRepresentation
class Correction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :contexts, as: 'contexts', class: Google::Apis::AdexchangebuyerV1_4::Creative::Correction::Context, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::Correction::Context::Representation

collection :details, as: 'details'
property :reason, as: 'reason'
end

class Context
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :auction_type, as: 'auctionType'
property :context_type, as: 'contextType'
collection :geo_criteria_id, as: 'geoCriteriaId'
collection :platform, as: 'platform'
end
end
end

class FilteringReasons
Expand Down Expand Up @@ -792,6 +811,7 @@ class DealTermsGuaranteedFixedPriceTermsBillingInfo
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :currency_conversion_time_ms, as: 'currencyConversionTimeMs'
property :dfp_line_item_id, as: 'dfpLineItemId'
property :original_contracted_quantity, as: 'originalContractedQuantity'
property :price, as: 'price', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation

Expand Down Expand Up @@ -866,6 +886,7 @@ class DimensionDimensionValue
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
property :name, as: 'name'
property :percentage, as: 'percentage'
end
end

Expand Down Expand Up @@ -1292,6 +1313,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :creative_size_type, as: 'creativeSizeType'
property :size, as: 'size', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize::Representation

property :skippable_ad_type, as: 'skippableAdType'
end
end

Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/adsense_v1_4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/adsense/management/
module AdsenseV1_4
VERSION = 'V1_4'
REVISION = '20160523'
REVISION = '20160607'

# View and manage your AdSense data
AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/adsensehost_v4_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://developers.google.com/adsense/host/
module AdsensehostV4_1
VERSION = 'V4_1'
REVISION = '20160523'
REVISION = '20160607'

# View and manage your AdSense host data and associated accounts
AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/analyticsreporting_v4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/analytics/devguides/reporting/core/v4/
module AnalyticsreportingV4
VERSION = 'V4'
REVISION = '20160512'
REVISION = '20160601'

# View your Google Analytics data
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
Expand Down
46 changes: 32 additions & 14 deletions generated/google/apis/analyticsreporting_v4/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -407,22 +407,29 @@ class ReportRequest
# The `reportRequest.dateRanges` field should not be specified for cohorts
# or Lifetime value requests.
# If a date range is not provided, the default date range is (startDate:
# current date - 7 days, endDate: current date - 1 day)
# current date - 7 days, endDate: current date - 1 day). Every
# [ReportRequest](#ReportRequest) within a `batchGet` method must
# contain the same `dateRanges` definition.
# Corresponds to the JSON property `dateRanges`
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRange>]
attr_accessor :date_ranges

# Segment the data returned for the request. A segment definition helps look
# at a subset of the segment request. A request can contain up to four
# segments. All requests should have the same segment definitions. Requests
# segments. Every [ReportRequest](#ReportRequest) within a
# `batchGet` method must contain the same `segments` definition. Requests
# with segments must have the `ga:segment` dimension.
# Corresponds to the JSON property `segments`
# @return [Array<Google::Apis::AnalyticsreportingV4::Segment>]
attr_accessor :segments

# The desired sampling level. If the sampling level is not specified the
# DEFAULT sampling level will be used. All requests should have same
# `samplingLevel`.
# The desired report
# [sample](https://support.google.com/analytics/answer/2637192) size.
# If the the `samplingLevel` field is unspecified the `DEFAULT` sampling
# level is used. Every [ReportRequest](#ReportRequest) within a
# `batchGet` method must contain the same `samplingLevel` definition. See
# [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
# for details.
# Corresponds to the JSON property `samplingLevel`
# @return [String]
attr_accessor :sampling_level
Expand Down Expand Up @@ -471,7 +478,10 @@ class ReportRequest
attr_accessor :hide_value_ranges
alias_method :hide_value_ranges?, :hide_value_ranges

# Unique View Id for retrieving Analytics data.
# The Analytics
# [view ID](https://support.google.com/analytics/answer/1009618)
# from which to retrieve data. Every [ReportRequest](#ReportRequest)
# within a `batchGet` method must contain the same `viewId`.
# Corresponds to the JSON property `viewId`
# @return [String]
attr_accessor :view_id
Expand Down Expand Up @@ -610,8 +620,13 @@ class ReportData
# @return [Fixnum]
attr_accessor :row_count

# If sampling was enabled, this returns the total number of samples
# present, one entry per date range.
# If the results are
# [sampled](https://support.google.com/analytics/answer/2637192),
# this returns the total number of
# samples present, one entry per date range. If the results are not sampled
# this field will not be defined. See
# [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
# for details.
# Corresponds to the JSON property `samplingSpaceSizes`
# @return [Array<String>]
attr_accessor :sampling_space_sizes
Expand All @@ -623,8 +638,12 @@ class ReportData
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
attr_accessor :maximums

# If sampling was enabled, this returns the total number of samples
# read, one entry per date range
# If the results are
# [sampled](https://support.google.com/analytics/answer/2637192),
# this returns the total number of samples read, one entry per date range.
# If the results are not sampled this field will not be defined. See
# [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
# for details.
# Corresponds to the JSON property `samplesReadCounts`
# @return [Array<String>]
attr_accessor :samples_read_counts
Expand Down Expand Up @@ -684,7 +703,7 @@ class GetReportsRequest

# Requests, each request will have a separate response.
# There can be a maximum of 5 requests. All requests should have the same
# `dateRange`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.
# `dateRanges`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.
# Corresponds to the JSON property `reportRequests`
# @return [Array<Google::Apis::AnalyticsreportingV4::ReportRequest>]
attr_accessor :report_requests
Expand Down Expand Up @@ -880,8 +899,7 @@ def update!(**args)
class PivotHeaderEntry
include Google::Apis::Core::Hashable

# The name of the dimensions in the pivotDimensionValues field in the
# response.
# The name of the dimensions in the pivot response.
# Corresponds to the JSON property `dimensionNames`
# @return [Array<String>]
attr_accessor :dimension_names
Expand Down Expand Up @@ -1144,7 +1162,7 @@ class ReportRow
# @return [Array<String>]
attr_accessor :dimensions

# List of metrics for each requested DateRange
# List of metrics for each requested DateRange.
# Corresponds to the JSON property `metrics`
# @return [Array<Google::Apis::AnalyticsreportingV4::DateRangeValues>]
attr_accessor :metrics
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidenterprise_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20160519'
REVISION = '20160601'

# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidenterprise_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ class User
# @return [String]
attr_accessor :kind

# The user's primary email, e.g. "jsmith@example.com".
# The user's primary email address, e.g. "jsmith@example.com".
# Corresponds to the JSON property `primaryEmail`
# @return [String]
attr_accessor :primary_email
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidpublisher_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/android-publisher
module AndroidpublisherV2
VERSION = 'V2'
REVISION = '20160516'
REVISION = '20160602'

# View and manage your Google Play Developer account
AUTH_ANDROIDPUBLISHER = 'https://www.googleapis.com/auth/androidpublisher'
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/appstate_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module Apis
# @see https://developers.google.com/games/services/web/api/states
module AppstateV1
VERSION = 'V1'
REVISION = '20160519'
REVISION = '20160531'

# View and manage your data for this application
AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate'
Expand Down
Loading

0 comments on commit daee54a

Please sign in to comment.