Skip to content

Commit

Permalink
feat: Automated regeneration of adexchangebuyer2 v2beta1 client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Nov 19, 2020
1 parent fc15090 commit 754c0b0
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 2 deletions.
6 changes: 6 additions & 0 deletions api_names_out.yaml
Expand Up @@ -1071,6 +1071,8 @@
"/adexchangebuyer2:v2beta1/PublisherProfile/isParent": is_parent
"/adexchangebuyer2:v2beta1/PublisherProfile/logoUrl": logo_url
"/adexchangebuyer2:v2beta1/PublisherProfile/mediaKitUrl": media_kit_url
"/adexchangebuyer2:v2beta1/PublisherProfile/mobileApps": mobile_apps
"/adexchangebuyer2:v2beta1/PublisherProfile/mobileApps/mobile_app": mobile_app
"/adexchangebuyer2:v2beta1/PublisherProfile/overview": overview
"/adexchangebuyer2:v2beta1/PublisherProfile/programmaticDealsContact": programmatic_deals_contact
"/adexchangebuyer2:v2beta1/PublisherProfile/publisherProfileId": publisher_profile_id
Expand All @@ -1079,6 +1081,10 @@
"/adexchangebuyer2:v2beta1/PublisherProfile/seller": seller
"/adexchangebuyer2:v2beta1/PublisherProfile/topHeadlines": top_headlines
"/adexchangebuyer2:v2beta1/PublisherProfile/topHeadlines/top_headline": top_headline
"/adexchangebuyer2:v2beta1/PublisherProfileMobileApplication": publisher_profile_mobile_application
"/adexchangebuyer2:v2beta1/PublisherProfileMobileApplication/appStore": app_store
"/adexchangebuyer2:v2beta1/PublisherProfileMobileApplication/externalAppId": external_app_id
"/adexchangebuyer2:v2beta1/PublisherProfileMobileApplication/name": name
"/adexchangebuyer2:v2beta1/RealtimeTimeRange": realtime_time_range
"/adexchangebuyer2:v2beta1/RealtimeTimeRange/startTimestamp": start_timestamp
"/adexchangebuyer2:v2beta1/Reason": reason
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/adexchangebuyer2_v2beta1.rb
Expand Up @@ -27,7 +27,7 @@ module Apis
# @see https://developers.google.com/authorized-buyers/apis/reference/rest/
module Adexchangebuyer2V2beta1
VERSION = 'V2beta1'
REVISION = '20201013'
REVISION = '20201118'

# Manage your Ad Exchange buyer account configuration
AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
Expand Down
38 changes: 38 additions & 0 deletions generated/google/apis/adexchangebuyer2_v2beta1/classes.rb
Expand Up @@ -3426,6 +3426,12 @@ class PublisherProfile
# @return [String]
attr_accessor :media_kit_url

# The list of apps represented in this publisher profile. Empty if this is a
# parent profile.
# Corresponds to the JSON property `mobileApps`
# @return [Array<Google::Apis::Adexchangebuyer2V2beta1::PublisherProfileMobileApplication>]
attr_accessor :mobile_apps

# Overview of the publisher.
# Corresponds to the JSON property `overview`
# @return [String]
Expand Down Expand Up @@ -3480,6 +3486,7 @@ def update!(**args)
@is_parent = args[:is_parent] if args.key?(:is_parent)
@logo_url = args[:logo_url] if args.key?(:logo_url)
@media_kit_url = args[:media_kit_url] if args.key?(:media_kit_url)
@mobile_apps = args[:mobile_apps] if args.key?(:mobile_apps)
@overview = args[:overview] if args.key?(:overview)
@programmatic_deals_contact = args[:programmatic_deals_contact] if args.key?(:programmatic_deals_contact)
@publisher_profile_id = args[:publisher_profile_id] if args.key?(:publisher_profile_id)
Expand All @@ -3490,6 +3497,37 @@ def update!(**args)
end
end

# A mobile application that contains a external app ID, name, and app store.
class PublisherProfileMobileApplication
include Google::Apis::Core::Hashable

# The app store the app belongs to.
# Corresponds to the JSON property `appStore`
# @return [String]
attr_accessor :app_store

# The external ID for the app from its app store.
# Corresponds to the JSON property `externalAppId`
# @return [String]
attr_accessor :external_app_id

# The name of the app.
# 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)
@app_store = args[:app_store] if args.key?(:app_store)
@external_app_id = args[:external_app_id] if args.key?(:external_app_id)
@name = args[:name] if args.key?(:name)
end
end

# An open-ended realtime time range specified by the start timestamp. For filter
# sets that specify a realtime time range RTB metrics continue to be aggregated
# throughout the lifetime of the filter set.
Expand Down
17 changes: 17 additions & 0 deletions generated/google/apis/adexchangebuyer2_v2beta1/representations.rb
Expand Up @@ -532,6 +532,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

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

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

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

Expand Down Expand Up @@ -1591,6 +1597,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :is_parent, as: 'isParent'
property :logo_url, as: 'logoUrl'
property :media_kit_url, as: 'mediaKitUrl'
collection :mobile_apps, as: 'mobileApps', class: Google::Apis::Adexchangebuyer2V2beta1::PublisherProfileMobileApplication, decorator: Google::Apis::Adexchangebuyer2V2beta1::PublisherProfileMobileApplication::Representation

property :overview, as: 'overview'
property :programmatic_deals_contact, as: 'programmaticDealsContact'
property :publisher_profile_id, as: 'publisherProfileId'
Expand All @@ -1602,6 +1610,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class PublisherProfileMobileApplication
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :app_store, as: 'appStore'
property :external_app_id, as: 'externalAppId'
property :name, as: 'name'
end
end

class RealtimeTimeRange
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "c98c719bbab68d0890524d53f8b629d7858af9c2"
"sha": "fc15090c6924a8fdcefc69587ba904b941a91b93"
}
}
]
Expand Down

0 comments on commit 754c0b0

Please sign in to comment.