From ff14c096f59824cf542ae5af4fc7c5d930844755 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 15 Sep 2018 00:36:19 +0000 Subject: [PATCH] Autogenerated update (2018-09-15) Delete: - adexchangeseller_v1 - adexchangeseller_v1_1 - adexchangeseller_v2_0 Update: - adexchangebuyer2_v2beta1 - admin_directory_v1 - dataproc_v1 - sqladmin_v1beta4 - youtube_partner_v1 --- api_names_out.yaml | 421 ++++ .../google/apis/adexchangebuyer2_v2beta1.rb | 2 +- .../apis/adexchangebuyer2_v2beta1/classes.rb | 1972 +++++++++++++++++ .../representations.rb | 835 +++++++ .../apis/adexchangebuyer2_v2beta1/service.rb | 604 +++++ generated/google/apis/adexchangeseller_v1.rb | 37 - .../apis/adexchangeseller_v1/classes.rb | 557 ----- .../adexchangeseller_v1/representations.rb | 248 --- .../apis/adexchangeseller_v1/service.rb | 544 ----- .../google/apis/adexchangeseller_v1_1.rb | 37 - .../apis/adexchangeseller_v1_1/classes.rb | 842 ------- .../adexchangeseller_v1_1/representations.rb | 364 --- .../apis/adexchangeseller_v1_1/service.rb | 735 ------ .../google/apis/adexchangeseller_v2_0.rb | 37 - .../apis/adexchangeseller_v2_0/classes.rb | 792 ------- .../adexchangeseller_v2_0/representations.rb | 347 --- .../apis/adexchangeseller_v2_0/service.rb | 638 ------ generated/google/apis/admin_directory_v1.rb | 2 +- .../google/apis/admin_directory_v1/classes.rb | 10 +- .../admin_directory_v1/representations.rb | 1 + generated/google/apis/dataproc_v1.rb | 2 +- generated/google/apis/dataproc_v1/classes.rb | 475 ++++ .../apis/dataproc_v1/representations.rb | 188 ++ generated/google/apis/dataproc_v1/service.rb | 550 +++++ generated/google/apis/sqladmin_v1beta4.rb | 2 +- .../google/apis/sqladmin_v1beta4/service.rb | 6 +- generated/google/apis/testing_v1/classes.rb | 9 +- .../google/apis/testing_v1/representations.rb | 1 - generated/google/apis/youtube_partner_v1.rb | 2 +- 29 files changed, 5063 insertions(+), 5197 deletions(-) delete mode 100644 generated/google/apis/adexchangeseller_v1.rb delete mode 100644 generated/google/apis/adexchangeseller_v1/classes.rb delete mode 100644 generated/google/apis/adexchangeseller_v1/representations.rb delete mode 100644 generated/google/apis/adexchangeseller_v1/service.rb delete mode 100644 generated/google/apis/adexchangeseller_v1_1.rb delete mode 100644 generated/google/apis/adexchangeseller_v1_1/classes.rb delete mode 100644 generated/google/apis/adexchangeseller_v1_1/representations.rb delete mode 100644 generated/google/apis/adexchangeseller_v1_1/service.rb delete mode 100644 generated/google/apis/adexchangeseller_v2_0.rb delete mode 100644 generated/google/apis/adexchangeseller_v2_0/classes.rb delete mode 100644 generated/google/apis/adexchangeseller_v2_0/representations.rb delete mode 100644 generated/google/apis/adexchangeseller_v2_0/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 3a146838d..238b1dd79 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -40,8 +40,16 @@ "/adexchangebuyer2:v2beta1/AbsoluteDateRange": absolute_date_range "/adexchangebuyer2:v2beta1/AbsoluteDateRange/endDate": end_date "/adexchangebuyer2:v2beta1/AbsoluteDateRange/startDate": start_date +"/adexchangebuyer2:v2beta1/AcceptProposalRequest": accept_proposal_request +"/adexchangebuyer2:v2beta1/AcceptProposalRequest/proposalRevision": proposal_revision +"/adexchangebuyer2:v2beta1/AdSize": ad_size +"/adexchangebuyer2:v2beta1/AdSize/height": height +"/adexchangebuyer2:v2beta1/AdSize/sizeType": size_type +"/adexchangebuyer2:v2beta1/AdSize/width": width "/adexchangebuyer2:v2beta1/AddDealAssociationRequest": add_deal_association_request "/adexchangebuyer2:v2beta1/AddDealAssociationRequest/association": association +"/adexchangebuyer2:v2beta1/AddNoteRequest": add_note_request +"/adexchangebuyer2:v2beta1/AddNoteRequest/note": note "/adexchangebuyer2:v2beta1/AppContext": app_context "/adexchangebuyer2:v2beta1/AppContext/appTypes": app_types "/adexchangebuyer2:v2beta1/AppContext/appTypes/app_type": app_type @@ -60,10 +68,13 @@ "/adexchangebuyer2:v2beta1/BidResponseWithoutBidsStatusRow/impressionCount": impression_count "/adexchangebuyer2:v2beta1/BidResponseWithoutBidsStatusRow/rowDimensions": row_dimensions "/adexchangebuyer2:v2beta1/BidResponseWithoutBidsStatusRow/status": status +"/adexchangebuyer2:v2beta1/Buyer": buyer +"/adexchangebuyer2:v2beta1/Buyer/accountId": account_id "/adexchangebuyer2:v2beta1/CalloutStatusRow": callout_status_row "/adexchangebuyer2:v2beta1/CalloutStatusRow/calloutStatusId": callout_status_id "/adexchangebuyer2:v2beta1/CalloutStatusRow/impressionCount": impression_count "/adexchangebuyer2:v2beta1/CalloutStatusRow/rowDimensions": row_dimensions +"/adexchangebuyer2:v2beta1/CancelNegotiationRequest": cancel_negotiation_request "/adexchangebuyer2:v2beta1/Client": client "/adexchangebuyer2:v2beta1/Client/clientAccountId": client_account_id "/adexchangebuyer2:v2beta1/Client/clientName": client_name @@ -83,6 +94,10 @@ "/adexchangebuyer2:v2beta1/ClientUserInvitation/clientAccountId": client_account_id "/adexchangebuyer2:v2beta1/ClientUserInvitation/email": email "/adexchangebuyer2:v2beta1/ClientUserInvitation/invitationId": invitation_id +"/adexchangebuyer2:v2beta1/CompleteSetupRequest": complete_setup_request +"/adexchangebuyer2:v2beta1/ContactInformation": contact_information +"/adexchangebuyer2:v2beta1/ContactInformation/email": email +"/adexchangebuyer2:v2beta1/ContactInformation/name": name "/adexchangebuyer2:v2beta1/Correction": correction "/adexchangebuyer2:v2beta1/Correction/contexts": contexts "/adexchangebuyer2:v2beta1/Correction/contexts/context": context @@ -133,14 +148,95 @@ "/adexchangebuyer2:v2beta1/CreativeDealAssociation/accountId": account_id "/adexchangebuyer2:v2beta1/CreativeDealAssociation/creativeId": creative_id "/adexchangebuyer2:v2beta1/CreativeDealAssociation/dealsId": deals_id +"/adexchangebuyer2:v2beta1/CreativeRestrictions": creative_restrictions +"/adexchangebuyer2:v2beta1/CreativeRestrictions/creativeFormat": creative_format +"/adexchangebuyer2:v2beta1/CreativeRestrictions/creativeSpecifications": creative_specifications +"/adexchangebuyer2:v2beta1/CreativeRestrictions/creativeSpecifications/creative_specification": creative_specification +"/adexchangebuyer2:v2beta1/CreativeRestrictions/skippableAdType": skippable_ad_type +"/adexchangebuyer2:v2beta1/CreativeSize": creative_size +"/adexchangebuyer2:v2beta1/CreativeSize/allowedFormats": allowed_formats +"/adexchangebuyer2:v2beta1/CreativeSize/allowedFormats/allowed_format": allowed_format +"/adexchangebuyer2:v2beta1/CreativeSize/companionSizes": companion_sizes +"/adexchangebuyer2:v2beta1/CreativeSize/companionSizes/companion_size": companion_size +"/adexchangebuyer2:v2beta1/CreativeSize/creativeSizeType": creative_size_type +"/adexchangebuyer2:v2beta1/CreativeSize/nativeTemplate": native_template +"/adexchangebuyer2:v2beta1/CreativeSize/size": size +"/adexchangebuyer2:v2beta1/CreativeSize/skippableAdType": skippable_ad_type +"/adexchangebuyer2:v2beta1/CreativeSpecification": creative_specification +"/adexchangebuyer2:v2beta1/CreativeSpecification/creativeCompanionSizes": creative_companion_sizes +"/adexchangebuyer2:v2beta1/CreativeSpecification/creativeCompanionSizes/creative_companion_size": creative_companion_size +"/adexchangebuyer2:v2beta1/CreativeSpecification/creativeSize": creative_size "/adexchangebuyer2:v2beta1/CreativeStatusRow": creative_status_row "/adexchangebuyer2:v2beta1/CreativeStatusRow/bidCount": bid_count "/adexchangebuyer2:v2beta1/CreativeStatusRow/creativeStatusId": creative_status_id "/adexchangebuyer2:v2beta1/CreativeStatusRow/rowDimensions": row_dimensions +"/adexchangebuyer2:v2beta1/CriteriaTargeting": criteria_targeting +"/adexchangebuyer2:v2beta1/CriteriaTargeting/excludedCriteriaIds": excluded_criteria_ids +"/adexchangebuyer2:v2beta1/CriteriaTargeting/excludedCriteriaIds/excluded_criteria_id": excluded_criteria_id +"/adexchangebuyer2:v2beta1/CriteriaTargeting/targetedCriteriaIds": targeted_criteria_ids +"/adexchangebuyer2:v2beta1/CriteriaTargeting/targetedCriteriaIds/targeted_criteria_id": targeted_criteria_id "/adexchangebuyer2:v2beta1/Date": date "/adexchangebuyer2:v2beta1/Date/day": day "/adexchangebuyer2:v2beta1/Date/month": month "/adexchangebuyer2:v2beta1/Date/year": year +"/adexchangebuyer2:v2beta1/DayPart": day_part +"/adexchangebuyer2:v2beta1/DayPart/dayOfWeek": day_of_week +"/adexchangebuyer2:v2beta1/DayPart/endTime": end_time +"/adexchangebuyer2:v2beta1/DayPart/startTime": start_time +"/adexchangebuyer2:v2beta1/DayPartTargeting": day_part_targeting +"/adexchangebuyer2:v2beta1/DayPartTargeting/dayParts": day_parts +"/adexchangebuyer2:v2beta1/DayPartTargeting/dayParts/day_part": day_part +"/adexchangebuyer2:v2beta1/DayPartTargeting/timeZoneType": time_zone_type +"/adexchangebuyer2:v2beta1/Deal": deal +"/adexchangebuyer2:v2beta1/Deal/availableEndTime": available_end_time +"/adexchangebuyer2:v2beta1/Deal/availableStartTime": available_start_time +"/adexchangebuyer2:v2beta1/Deal/buyerPrivateData": buyer_private_data +"/adexchangebuyer2:v2beta1/Deal/createProductId": create_product_id +"/adexchangebuyer2:v2beta1/Deal/createProductRevision": create_product_revision +"/adexchangebuyer2:v2beta1/Deal/createTime": create_time +"/adexchangebuyer2:v2beta1/Deal/creativePreApprovalPolicy": creative_pre_approval_policy +"/adexchangebuyer2:v2beta1/Deal/creativeRestrictions": creative_restrictions +"/adexchangebuyer2:v2beta1/Deal/creativeSafeFrameCompatibility": creative_safe_frame_compatibility +"/adexchangebuyer2:v2beta1/Deal/dealId": deal_id +"/adexchangebuyer2:v2beta1/Deal/dealServingMetadata": deal_serving_metadata +"/adexchangebuyer2:v2beta1/Deal/dealTerms": deal_terms +"/adexchangebuyer2:v2beta1/Deal/deliveryControl": delivery_control +"/adexchangebuyer2:v2beta1/Deal/description": description +"/adexchangebuyer2:v2beta1/Deal/displayName": display_name +"/adexchangebuyer2:v2beta1/Deal/externalDealId": external_deal_id +"/adexchangebuyer2:v2beta1/Deal/isSetupComplete": is_setup_complete +"/adexchangebuyer2:v2beta1/Deal/programmaticCreativeSource": programmatic_creative_source +"/adexchangebuyer2:v2beta1/Deal/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/Deal/sellerContacts": seller_contacts +"/adexchangebuyer2:v2beta1/Deal/sellerContacts/seller_contact": seller_contact +"/adexchangebuyer2:v2beta1/Deal/syndicationProduct": syndication_product +"/adexchangebuyer2:v2beta1/Deal/targeting": targeting +"/adexchangebuyer2:v2beta1/Deal/targetingCriterion": targeting_criterion +"/adexchangebuyer2:v2beta1/Deal/targetingCriterion/targeting_criterion": targeting_criterion +"/adexchangebuyer2:v2beta1/Deal/updateTime": update_time +"/adexchangebuyer2:v2beta1/Deal/webPropertyCode": web_property_code +"/adexchangebuyer2:v2beta1/DealPauseStatus": deal_pause_status +"/adexchangebuyer2:v2beta1/DealPauseStatus/buyerPauseReason": buyer_pause_reason +"/adexchangebuyer2:v2beta1/DealPauseStatus/firstPausedBy": first_paused_by +"/adexchangebuyer2:v2beta1/DealPauseStatus/hasBuyerPaused": has_buyer_paused +"/adexchangebuyer2:v2beta1/DealPauseStatus/hasSellerPaused": has_seller_paused +"/adexchangebuyer2:v2beta1/DealPauseStatus/sellerPauseReason": seller_pause_reason +"/adexchangebuyer2:v2beta1/DealServingMetadata": deal_serving_metadata +"/adexchangebuyer2:v2beta1/DealServingMetadata/dealPauseStatus": deal_pause_status +"/adexchangebuyer2:v2beta1/DealTerms": deal_terms +"/adexchangebuyer2:v2beta1/DealTerms/brandingType": branding_type +"/adexchangebuyer2:v2beta1/DealTerms/description": description +"/adexchangebuyer2:v2beta1/DealTerms/estimatedGrossSpend": estimated_gross_spend +"/adexchangebuyer2:v2beta1/DealTerms/estimatedImpressionsPerDay": estimated_impressions_per_day +"/adexchangebuyer2:v2beta1/DealTerms/guaranteedFixedPriceTerms": guaranteed_fixed_price_terms +"/adexchangebuyer2:v2beta1/DealTerms/nonGuaranteedAuctionTerms": non_guaranteed_auction_terms +"/adexchangebuyer2:v2beta1/DealTerms/nonGuaranteedFixedPriceTerms": non_guaranteed_fixed_price_terms +"/adexchangebuyer2:v2beta1/DealTerms/sellerTimeZone": seller_time_zone +"/adexchangebuyer2:v2beta1/DeliveryControl": delivery_control +"/adexchangebuyer2:v2beta1/DeliveryControl/creativeBlockingLevel": creative_blocking_level +"/adexchangebuyer2:v2beta1/DeliveryControl/deliveryRateType": delivery_rate_type +"/adexchangebuyer2:v2beta1/DeliveryControl/frequencyCaps": frequency_caps +"/adexchangebuyer2:v2beta1/DeliveryControl/frequencyCaps/frequency_cap": frequency_cap "/adexchangebuyer2:v2beta1/Disapproval": disapproval "/adexchangebuyer2:v2beta1/Disapproval/details": details "/adexchangebuyer2:v2beta1/Disapproval/details/detail": detail @@ -179,6 +275,21 @@ "/adexchangebuyer2:v2beta1/FilteringStats/date": date "/adexchangebuyer2:v2beta1/FilteringStats/reasons": reasons "/adexchangebuyer2:v2beta1/FilteringStats/reasons/reason": reason +"/adexchangebuyer2:v2beta1/FirstPartyMobileApplicationTargeting": first_party_mobile_application_targeting +"/adexchangebuyer2:v2beta1/FirstPartyMobileApplicationTargeting/excludedAppIds": excluded_app_ids +"/adexchangebuyer2:v2beta1/FirstPartyMobileApplicationTargeting/excludedAppIds/excluded_app_id": excluded_app_id +"/adexchangebuyer2:v2beta1/FirstPartyMobileApplicationTargeting/targetedAppIds": targeted_app_ids +"/adexchangebuyer2:v2beta1/FirstPartyMobileApplicationTargeting/targetedAppIds/targeted_app_id": targeted_app_id +"/adexchangebuyer2:v2beta1/FrequencyCap": frequency_cap +"/adexchangebuyer2:v2beta1/FrequencyCap/maxImpressions": max_impressions +"/adexchangebuyer2:v2beta1/FrequencyCap/numTimeUnits": num_time_units +"/adexchangebuyer2:v2beta1/FrequencyCap/timeUnitType": time_unit_type +"/adexchangebuyer2:v2beta1/GuaranteedFixedPriceTerms": guaranteed_fixed_price_terms +"/adexchangebuyer2:v2beta1/GuaranteedFixedPriceTerms/fixedPrices": fixed_prices +"/adexchangebuyer2:v2beta1/GuaranteedFixedPriceTerms/fixedPrices/fixed_price": fixed_price +"/adexchangebuyer2:v2beta1/GuaranteedFixedPriceTerms/guaranteedImpressions": guaranteed_impressions +"/adexchangebuyer2:v2beta1/GuaranteedFixedPriceTerms/guaranteedLooks": guaranteed_looks +"/adexchangebuyer2:v2beta1/GuaranteedFixedPriceTerms/minimumDailyLooks": minimum_daily_looks "/adexchangebuyer2:v2beta1/HtmlContent": html_content "/adexchangebuyer2:v2beta1/HtmlContent/height": height "/adexchangebuyer2:v2beta1/HtmlContent/snippet": snippet @@ -194,6 +305,11 @@ "/adexchangebuyer2:v2beta1/ImpressionMetricsRow/responsesWithBids": responses_with_bids "/adexchangebuyer2:v2beta1/ImpressionMetricsRow/rowDimensions": row_dimensions "/adexchangebuyer2:v2beta1/ImpressionMetricsRow/successfulResponses": successful_responses +"/adexchangebuyer2:v2beta1/InventorySizeTargeting": inventory_size_targeting +"/adexchangebuyer2:v2beta1/InventorySizeTargeting/excludedInventorySizes": excluded_inventory_sizes +"/adexchangebuyer2:v2beta1/InventorySizeTargeting/excludedInventorySizes/excluded_inventory_size": excluded_inventory_size +"/adexchangebuyer2:v2beta1/InventorySizeTargeting/targetedInventorySizes": targeted_inventory_sizes +"/adexchangebuyer2:v2beta1/InventorySizeTargeting/targetedInventorySizes/targeted_inventory_size": targeted_inventory_size "/adexchangebuyer2:v2beta1/ListBidMetricsResponse": list_bid_metrics_response "/adexchangebuyer2:v2beta1/ListBidMetricsResponse/bidMetricsRows": bid_metrics_rows "/adexchangebuyer2:v2beta1/ListBidMetricsResponse/bidMetricsRows/bid_metrics_row": bid_metrics_row @@ -260,15 +376,39 @@ "/adexchangebuyer2:v2beta1/ListNonBillableWinningBidsResponse/nextPageToken": next_page_token "/adexchangebuyer2:v2beta1/ListNonBillableWinningBidsResponse/nonBillableWinningBidStatusRows": non_billable_winning_bid_status_rows "/adexchangebuyer2:v2beta1/ListNonBillableWinningBidsResponse/nonBillableWinningBidStatusRows/non_billable_winning_bid_status_row": non_billable_winning_bid_status_row +"/adexchangebuyer2:v2beta1/ListProductsResponse": list_products_response +"/adexchangebuyer2:v2beta1/ListProductsResponse/nextPageToken": next_page_token +"/adexchangebuyer2:v2beta1/ListProductsResponse/products": products +"/adexchangebuyer2:v2beta1/ListProductsResponse/products/product": product +"/adexchangebuyer2:v2beta1/ListProposalsResponse": list_proposals_response +"/adexchangebuyer2:v2beta1/ListProposalsResponse/nextPageToken": next_page_token +"/adexchangebuyer2:v2beta1/ListProposalsResponse/proposals": proposals +"/adexchangebuyer2:v2beta1/ListProposalsResponse/proposals/proposal": proposal +"/adexchangebuyer2:v2beta1/ListPublisherProfilesResponse": list_publisher_profiles_response +"/adexchangebuyer2:v2beta1/ListPublisherProfilesResponse/nextPageToken": next_page_token +"/adexchangebuyer2:v2beta1/ListPublisherProfilesResponse/publisherProfiles": publisher_profiles +"/adexchangebuyer2:v2beta1/ListPublisherProfilesResponse/publisherProfiles/publisher_profile": publisher_profile "/adexchangebuyer2:v2beta1/ListPublishersResponse": list_publishers_response "/adexchangebuyer2:v2beta1/ListPublishersResponse/publisher": publisher "/adexchangebuyer2:v2beta1/ListPublishersResponse/publisher/publisher": publisher "/adexchangebuyer2:v2beta1/LocationContext": location_context "/adexchangebuyer2:v2beta1/LocationContext/geoCriteriaIds": geo_criteria_ids "/adexchangebuyer2:v2beta1/LocationContext/geoCriteriaIds/geo_criteria_id": geo_criteria_id +"/adexchangebuyer2:v2beta1/MarketplaceTargeting": marketplace_targeting +"/adexchangebuyer2:v2beta1/MarketplaceTargeting/geoTargeting": geo_targeting +"/adexchangebuyer2:v2beta1/MarketplaceTargeting/inventorySizeTargeting": inventory_size_targeting +"/adexchangebuyer2:v2beta1/MarketplaceTargeting/placementTargeting": placement_targeting +"/adexchangebuyer2:v2beta1/MarketplaceTargeting/technologyTargeting": technology_targeting +"/adexchangebuyer2:v2beta1/MarketplaceTargeting/videoTargeting": video_targeting "/adexchangebuyer2:v2beta1/MetricValue": metric_value "/adexchangebuyer2:v2beta1/MetricValue/value": value "/adexchangebuyer2:v2beta1/MetricValue/variance": variance +"/adexchangebuyer2:v2beta1/MobileApplicationTargeting": mobile_application_targeting +"/adexchangebuyer2:v2beta1/MobileApplicationTargeting/firstPartyTargeting": first_party_targeting +"/adexchangebuyer2:v2beta1/Money": money +"/adexchangebuyer2:v2beta1/Money/currencyCode": currency_code +"/adexchangebuyer2:v2beta1/Money/nanos": nanos +"/adexchangebuyer2:v2beta1/Money/units": units "/adexchangebuyer2:v2beta1/NativeContent": native_content "/adexchangebuyer2:v2beta1/NativeContent/advertiserName": advertiser_name "/adexchangebuyer2:v2beta1/NativeContent/appIcon": app_icon @@ -287,12 +427,102 @@ "/adexchangebuyer2:v2beta1/NonBillableWinningBidStatusRow/bidCount": bid_count "/adexchangebuyer2:v2beta1/NonBillableWinningBidStatusRow/rowDimensions": row_dimensions "/adexchangebuyer2:v2beta1/NonBillableWinningBidStatusRow/status": status +"/adexchangebuyer2:v2beta1/NonGuaranteedAuctionTerms": non_guaranteed_auction_terms +"/adexchangebuyer2:v2beta1/NonGuaranteedAuctionTerms/autoOptimizePrivateAuction": auto_optimize_private_auction +"/adexchangebuyer2:v2beta1/NonGuaranteedAuctionTerms/reservePricesPerBuyer": reserve_prices_per_buyer +"/adexchangebuyer2:v2beta1/NonGuaranteedAuctionTerms/reservePricesPerBuyer/reserve_prices_per_buyer": reserve_prices_per_buyer +"/adexchangebuyer2:v2beta1/NonGuaranteedFixedPriceTerms": non_guaranteed_fixed_price_terms +"/adexchangebuyer2:v2beta1/NonGuaranteedFixedPriceTerms/fixedPrices": fixed_prices +"/adexchangebuyer2:v2beta1/NonGuaranteedFixedPriceTerms/fixedPrices/fixed_price": fixed_price +"/adexchangebuyer2:v2beta1/Note": note +"/adexchangebuyer2:v2beta1/Note/createTime": create_time +"/adexchangebuyer2:v2beta1/Note/creatorRole": creator_role +"/adexchangebuyer2:v2beta1/Note/note": note +"/adexchangebuyer2:v2beta1/Note/noteId": note_id +"/adexchangebuyer2:v2beta1/Note/proposalRevision": proposal_revision +"/adexchangebuyer2:v2beta1/OperatingSystemTargeting": operating_system_targeting +"/adexchangebuyer2:v2beta1/OperatingSystemTargeting/operatingSystemCriteria": operating_system_criteria +"/adexchangebuyer2:v2beta1/OperatingSystemTargeting/operatingSystemVersionCriteria": operating_system_version_criteria +"/adexchangebuyer2:v2beta1/PauseProposalRequest": pause_proposal_request +"/adexchangebuyer2:v2beta1/PauseProposalRequest/reason": reason +"/adexchangebuyer2:v2beta1/PlacementTargeting": placement_targeting +"/adexchangebuyer2:v2beta1/PlacementTargeting/mobileApplicationTargeting": mobile_application_targeting +"/adexchangebuyer2:v2beta1/PlacementTargeting/urlTargeting": url_targeting "/adexchangebuyer2:v2beta1/PlatformContext": platform_context "/adexchangebuyer2:v2beta1/PlatformContext/platforms": platforms "/adexchangebuyer2:v2beta1/PlatformContext/platforms/platform": platform +"/adexchangebuyer2:v2beta1/Price": price +"/adexchangebuyer2:v2beta1/Price/amount": amount +"/adexchangebuyer2:v2beta1/Price/pricingType": pricing_type +"/adexchangebuyer2:v2beta1/PricePerBuyer": price_per_buyer +"/adexchangebuyer2:v2beta1/PricePerBuyer/advertiserIds": advertiser_ids +"/adexchangebuyer2:v2beta1/PricePerBuyer/advertiserIds/advertiser_id": advertiser_id +"/adexchangebuyer2:v2beta1/PricePerBuyer/buyer": buyer +"/adexchangebuyer2:v2beta1/PricePerBuyer/price": price +"/adexchangebuyer2:v2beta1/PrivateData": private_data +"/adexchangebuyer2:v2beta1/PrivateData/referenceId": reference_id +"/adexchangebuyer2:v2beta1/Product": product +"/adexchangebuyer2:v2beta1/Product/availableEndTime": available_end_time +"/adexchangebuyer2:v2beta1/Product/availableStartTime": available_start_time +"/adexchangebuyer2:v2beta1/Product/createTime": create_time +"/adexchangebuyer2:v2beta1/Product/creatorContacts": creator_contacts +"/adexchangebuyer2:v2beta1/Product/creatorContacts/creator_contact": creator_contact +"/adexchangebuyer2:v2beta1/Product/displayName": display_name +"/adexchangebuyer2:v2beta1/Product/hasCreatorSignedOff": has_creator_signed_off +"/adexchangebuyer2:v2beta1/Product/productId": product_id +"/adexchangebuyer2:v2beta1/Product/productRevision": product_revision +"/adexchangebuyer2:v2beta1/Product/publisherProfileId": publisher_profile_id +"/adexchangebuyer2:v2beta1/Product/seller": seller +"/adexchangebuyer2:v2beta1/Product/syndicationProduct": syndication_product +"/adexchangebuyer2:v2beta1/Product/targetingCriterion": targeting_criterion +"/adexchangebuyer2:v2beta1/Product/targetingCriterion/targeting_criterion": targeting_criterion +"/adexchangebuyer2:v2beta1/Product/terms": terms +"/adexchangebuyer2:v2beta1/Product/updateTime": update_time +"/adexchangebuyer2:v2beta1/Product/webPropertyCode": web_property_code +"/adexchangebuyer2:v2beta1/Proposal": proposal +"/adexchangebuyer2:v2beta1/Proposal/billedBuyer": billed_buyer +"/adexchangebuyer2:v2beta1/Proposal/buyer": buyer +"/adexchangebuyer2:v2beta1/Proposal/buyerContacts": buyer_contacts +"/adexchangebuyer2:v2beta1/Proposal/buyerContacts/buyer_contact": buyer_contact +"/adexchangebuyer2:v2beta1/Proposal/buyerPrivateData": buyer_private_data +"/adexchangebuyer2:v2beta1/Proposal/deals": deals +"/adexchangebuyer2:v2beta1/Proposal/deals/deal": deal +"/adexchangebuyer2:v2beta1/Proposal/displayName": display_name +"/adexchangebuyer2:v2beta1/Proposal/isRenegotiating": is_renegotiating +"/adexchangebuyer2:v2beta1/Proposal/isSetupComplete": is_setup_complete +"/adexchangebuyer2:v2beta1/Proposal/lastUpdaterOrCommentorRole": last_updater_or_commentor_role +"/adexchangebuyer2:v2beta1/Proposal/notes": notes +"/adexchangebuyer2:v2beta1/Proposal/notes/note": note +"/adexchangebuyer2:v2beta1/Proposal/originatorRole": originator_role +"/adexchangebuyer2:v2beta1/Proposal/privateAuctionId": private_auction_id +"/adexchangebuyer2:v2beta1/Proposal/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/Proposal/proposalRevision": proposal_revision +"/adexchangebuyer2:v2beta1/Proposal/proposalState": proposal_state +"/adexchangebuyer2:v2beta1/Proposal/seller": seller +"/adexchangebuyer2:v2beta1/Proposal/sellerContacts": seller_contacts +"/adexchangebuyer2:v2beta1/Proposal/sellerContacts/seller_contact": seller_contact +"/adexchangebuyer2:v2beta1/Proposal/updateTime": update_time "/adexchangebuyer2:v2beta1/Publisher": publisher "/adexchangebuyer2:v2beta1/Publisher/publisherDisplayName": publisher_display_name "/adexchangebuyer2:v2beta1/Publisher/publisherId": publisher_id +"/adexchangebuyer2:v2beta1/PublisherProfile": publisher_profile +"/adexchangebuyer2:v2beta1/PublisherProfile/audienceDescription": audience_description +"/adexchangebuyer2:v2beta1/PublisherProfile/buyerPitchStatement": buyer_pitch_statement +"/adexchangebuyer2:v2beta1/PublisherProfile/directDealsContact": direct_deals_contact +"/adexchangebuyer2:v2beta1/PublisherProfile/displayName": display_name +"/adexchangebuyer2:v2beta1/PublisherProfile/domains": domains +"/adexchangebuyer2:v2beta1/PublisherProfile/domains/domain": domain +"/adexchangebuyer2:v2beta1/PublisherProfile/googlePlusUrl": google_plus_url +"/adexchangebuyer2:v2beta1/PublisherProfile/logoUrl": logo_url +"/adexchangebuyer2:v2beta1/PublisherProfile/mediaKitUrl": media_kit_url +"/adexchangebuyer2:v2beta1/PublisherProfile/overview": overview +"/adexchangebuyer2:v2beta1/PublisherProfile/programmaticDealsContact": programmatic_deals_contact +"/adexchangebuyer2:v2beta1/PublisherProfile/publisherProfileId": publisher_profile_id +"/adexchangebuyer2:v2beta1/PublisherProfile/rateCardInfoUrl": rate_card_info_url +"/adexchangebuyer2:v2beta1/PublisherProfile/samplePageUrl": sample_page_url +"/adexchangebuyer2:v2beta1/PublisherProfile/seller": seller +"/adexchangebuyer2:v2beta1/PublisherProfile/topHeadlines": top_headlines +"/adexchangebuyer2:v2beta1/PublisherProfile/topHeadlines/top_headline": top_headline "/adexchangebuyer2:v2beta1/RealtimeTimeRange": realtime_time_range "/adexchangebuyer2:v2beta1/RealtimeTimeRange/startTimestamp": start_timestamp "/adexchangebuyer2:v2beta1/Reason": reason @@ -303,11 +533,15 @@ "/adexchangebuyer2:v2beta1/RelativeDateRange/offsetDays": offset_days "/adexchangebuyer2:v2beta1/RemoveDealAssociationRequest": remove_deal_association_request "/adexchangebuyer2:v2beta1/RemoveDealAssociationRequest/association": association +"/adexchangebuyer2:v2beta1/ResumeProposalRequest": resume_proposal_request "/adexchangebuyer2:v2beta1/RowDimensions": row_dimensions "/adexchangebuyer2:v2beta1/RowDimensions/timeInterval": time_interval "/adexchangebuyer2:v2beta1/SecurityContext": security_context "/adexchangebuyer2:v2beta1/SecurityContext/securities": securities "/adexchangebuyer2:v2beta1/SecurityContext/securities/security": security +"/adexchangebuyer2:v2beta1/Seller": seller +"/adexchangebuyer2:v2beta1/Seller/accountId": account_id +"/adexchangebuyer2:v2beta1/Seller/subAccountId": sub_account_id "/adexchangebuyer2:v2beta1/ServingContext": serving_context "/adexchangebuyer2:v2beta1/ServingContext/all": all "/adexchangebuyer2:v2beta1/ServingContext/appType": app_type @@ -322,13 +556,46 @@ "/adexchangebuyer2:v2beta1/ServingRestriction/disapprovalReasons": disapproval_reasons "/adexchangebuyer2:v2beta1/ServingRestriction/disapprovalReasons/disapproval_reason": disapproval_reason "/adexchangebuyer2:v2beta1/ServingRestriction/status": status +"/adexchangebuyer2:v2beta1/Size": size +"/adexchangebuyer2:v2beta1/Size/height": height +"/adexchangebuyer2:v2beta1/Size/width": width "/adexchangebuyer2:v2beta1/StopWatchingCreativeRequest": stop_watching_creative_request +"/adexchangebuyer2:v2beta1/TargetingCriteria": targeting_criteria +"/adexchangebuyer2:v2beta1/TargetingCriteria/exclusions": exclusions +"/adexchangebuyer2:v2beta1/TargetingCriteria/exclusions/exclusion": exclusion +"/adexchangebuyer2:v2beta1/TargetingCriteria/inclusions": inclusions +"/adexchangebuyer2:v2beta1/TargetingCriteria/inclusions/inclusion": inclusion +"/adexchangebuyer2:v2beta1/TargetingCriteria/key": key +"/adexchangebuyer2:v2beta1/TargetingValue": targeting_value +"/adexchangebuyer2:v2beta1/TargetingValue/creativeSizeValue": creative_size_value +"/adexchangebuyer2:v2beta1/TargetingValue/dayPartTargetingValue": day_part_targeting_value +"/adexchangebuyer2:v2beta1/TargetingValue/longValue": long_value +"/adexchangebuyer2:v2beta1/TargetingValue/stringValue": string_value +"/adexchangebuyer2:v2beta1/TechnologyTargeting": technology_targeting +"/adexchangebuyer2:v2beta1/TechnologyTargeting/deviceCapabilityTargeting": device_capability_targeting +"/adexchangebuyer2:v2beta1/TechnologyTargeting/deviceCategoryTargeting": device_category_targeting +"/adexchangebuyer2:v2beta1/TechnologyTargeting/operatingSystemTargeting": operating_system_targeting "/adexchangebuyer2:v2beta1/TimeInterval": time_interval "/adexchangebuyer2:v2beta1/TimeInterval/endTime": end_time "/adexchangebuyer2:v2beta1/TimeInterval/startTime": start_time +"/adexchangebuyer2:v2beta1/TimeOfDay": time_of_day +"/adexchangebuyer2:v2beta1/TimeOfDay/hours": hours +"/adexchangebuyer2:v2beta1/TimeOfDay/minutes": minutes +"/adexchangebuyer2:v2beta1/TimeOfDay/nanos": nanos +"/adexchangebuyer2:v2beta1/TimeOfDay/seconds": seconds +"/adexchangebuyer2:v2beta1/UrlTargeting": url_targeting +"/adexchangebuyer2:v2beta1/UrlTargeting/excludedUrls": excluded_urls +"/adexchangebuyer2:v2beta1/UrlTargeting/excludedUrls/excluded_url": excluded_url +"/adexchangebuyer2:v2beta1/UrlTargeting/targetedUrls": targeted_urls +"/adexchangebuyer2:v2beta1/UrlTargeting/targetedUrls/targeted_url": targeted_url "/adexchangebuyer2:v2beta1/VideoContent": video_content "/adexchangebuyer2:v2beta1/VideoContent/videoUrl": video_url "/adexchangebuyer2:v2beta1/VideoContent/videoVastXml": video_vast_xml +"/adexchangebuyer2:v2beta1/VideoTargeting": video_targeting +"/adexchangebuyer2:v2beta1/VideoTargeting/excludedPositionTypes": excluded_position_types +"/adexchangebuyer2:v2beta1/VideoTargeting/excludedPositionTypes/excluded_position_type": excluded_position_type +"/adexchangebuyer2:v2beta1/VideoTargeting/targetedPositionTypes": targeted_position_types +"/adexchangebuyer2:v2beta1/VideoTargeting/targetedPositionTypes/targeted_position_type": targeted_position_type "/adexchangebuyer2:v2beta1/WatchCreativeRequest": watch_creative_request "/adexchangebuyer2:v2beta1/WatchCreativeRequest/topic": topic "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.clients.create": create_account_client @@ -468,6 +735,59 @@ "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.nonBillableWinningBids.list/filterSetId": filter_set_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.nonBillableWinningBids.list/pageSize": page_size "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.filterSets.nonBillableWinningBids.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.finalizedProposals.list": list_account_finalized_proposals +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.finalizedProposals.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.finalizedProposals.list/filter": filter +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.finalizedProposals.list/filterSyntax": filter_syntax +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.finalizedProposals.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.finalizedProposals.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.products.get": get_account_product +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.products.get/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.products.get/productId": product_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.products.list": list_account_products +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.products.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.products.list/filter": filter +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.products.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.products.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.accept": accept_proposal +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.accept/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.accept/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.addNote": add_proposal_note +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.addNote/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.addNote/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.cancelNegotiation": cancel_proposal_negotiation +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.cancelNegotiation/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.cancelNegotiation/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.completeSetup": complete_proposal_setup +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.completeSetup/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.completeSetup/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.create": create_account_proposal +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.create/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.get": get_account_proposal +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.get/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.get/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.list": list_account_proposals +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.list/filter": filter +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.list/filterSyntax": filter_syntax +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.list/pageToken": page_token +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.pause": pause_proposal +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.pause/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.pause/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.resume": resume_proposal +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.resume/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.resume/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.update": update_account_proposal +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.update/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.proposals.update/proposalId": proposal_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publisherProfiles.get": get_account_publisher_profile +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publisherProfiles.get/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publisherProfiles.get/publisherProfileId": publisher_profile_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publisherProfiles.list": list_account_publisher_profiles +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publisherProfiles.list/accountId": account_id +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publisherProfiles.list/pageSize": page_size +"/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publisherProfiles.list/pageToken": page_token "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publishers.list": list_account_publishers "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publishers.list/accountId": account_id "/adexchangebuyer2:v2beta1/adexchangebuyer2.accounts.publishers.list/environment": environment @@ -2463,6 +2783,7 @@ "/admin:directory_v1/Groups/kind": kind "/admin:directory_v1/Groups/nextPageToken": next_page_token "/admin:directory_v1/Member": member +"/admin:directory_v1/Member/delivery_settings": delivery_settings "/admin:directory_v1/Member/email": email "/admin:directory_v1/Member/etag": etag "/admin:directory_v1/Member/id": id @@ -39128,6 +39449,10 @@ "/dataproc:v1/ClusterOperationStatus/innerState": inner_state "/dataproc:v1/ClusterOperationStatus/state": state "/dataproc:v1/ClusterOperationStatus/stateStartTime": state_start_time +"/dataproc:v1/ClusterSelector": cluster_selector +"/dataproc:v1/ClusterSelector/clusterLabels": cluster_labels +"/dataproc:v1/ClusterSelector/clusterLabels/cluster_label": cluster_label +"/dataproc:v1/ClusterSelector/zone": zone "/dataproc:v1/ClusterStatus": cluster_status "/dataproc:v1/ClusterStatus/detail": detail "/dataproc:v1/ClusterStatus/state": state @@ -39196,6 +39521,11 @@ "/dataproc:v1/InstanceGroupConfig/machineTypeUri": machine_type_uri "/dataproc:v1/InstanceGroupConfig/managedGroupConfig": managed_group_config "/dataproc:v1/InstanceGroupConfig/numInstances": num_instances +"/dataproc:v1/InstantiateWorkflowTemplateRequest": instantiate_workflow_template_request +"/dataproc:v1/InstantiateWorkflowTemplateRequest/parameters": parameters +"/dataproc:v1/InstantiateWorkflowTemplateRequest/parameters/parameter": parameter +"/dataproc:v1/InstantiateWorkflowTemplateRequest/requestId": request_id +"/dataproc:v1/InstantiateWorkflowTemplateRequest/version": version "/dataproc:v1/Job": job "/dataproc:v1/Job/driverControlFilesUri": driver_control_files_uri "/dataproc:v1/Job/driverOutputResourceUri": driver_output_resource_uri @@ -39240,9 +39570,18 @@ "/dataproc:v1/ListOperationsResponse/nextPageToken": next_page_token "/dataproc:v1/ListOperationsResponse/operations": operations "/dataproc:v1/ListOperationsResponse/operations/operation": operation +"/dataproc:v1/ListWorkflowTemplatesResponse": list_workflow_templates_response +"/dataproc:v1/ListWorkflowTemplatesResponse/nextPageToken": next_page_token +"/dataproc:v1/ListWorkflowTemplatesResponse/templates": templates +"/dataproc:v1/ListWorkflowTemplatesResponse/templates/template": template "/dataproc:v1/LoggingConfig": logging_config "/dataproc:v1/LoggingConfig/driverLogLevels": driver_log_levels "/dataproc:v1/LoggingConfig/driverLogLevels/driver_log_level": driver_log_level +"/dataproc:v1/ManagedCluster": managed_cluster +"/dataproc:v1/ManagedCluster/clusterName": cluster_name +"/dataproc:v1/ManagedCluster/config": config +"/dataproc:v1/ManagedCluster/labels": labels +"/dataproc:v1/ManagedCluster/labels/label": label "/dataproc:v1/ManagedGroupConfig": managed_group_config "/dataproc:v1/ManagedGroupConfig/instanceGroupManagerName": instance_group_manager_name "/dataproc:v1/ManagedGroupConfig/instanceTemplateName": instance_template_name @@ -39257,6 +39596,22 @@ "/dataproc:v1/Operation/name": name "/dataproc:v1/Operation/response": response "/dataproc:v1/Operation/response/response": response +"/dataproc:v1/OrderedJob": ordered_job +"/dataproc:v1/OrderedJob/hadoopJob": hadoop_job +"/dataproc:v1/OrderedJob/hiveJob": hive_job +"/dataproc:v1/OrderedJob/labels": labels +"/dataproc:v1/OrderedJob/labels/label": label +"/dataproc:v1/OrderedJob/pigJob": pig_job +"/dataproc:v1/OrderedJob/prerequisiteStepIds": prerequisite_step_ids +"/dataproc:v1/OrderedJob/prerequisiteStepIds/prerequisite_step_id": prerequisite_step_id +"/dataproc:v1/OrderedJob/pysparkJob": pyspark_job +"/dataproc:v1/OrderedJob/scheduling": scheduling +"/dataproc:v1/OrderedJob/sparkJob": spark_job +"/dataproc:v1/OrderedJob/sparkSqlJob": spark_sql_job +"/dataproc:v1/OrderedJob/stepId": step_id +"/dataproc:v1/ParameterValidation": parameter_validation +"/dataproc:v1/ParameterValidation/regex": regex +"/dataproc:v1/ParameterValidation/values": values "/dataproc:v1/PigJob": pig_job "/dataproc:v1/PigJob/continueOnFailure": continue_on_failure "/dataproc:v1/PigJob/jarFileUris": jar_file_uris @@ -39291,6 +39646,9 @@ "/dataproc:v1/QueryList": query_list "/dataproc:v1/QueryList/queries": queries "/dataproc:v1/QueryList/queries/query": query +"/dataproc:v1/RegexValidation": regex_validation +"/dataproc:v1/RegexValidation/regexes": regexes +"/dataproc:v1/RegexValidation/regexes/regex": regex "/dataproc:v1/SetIamPolicyRequest": set_iam_policy_request "/dataproc:v1/SetIamPolicyRequest/policy": policy "/dataproc:v1/SoftwareConfig": software_config @@ -39330,12 +39688,21 @@ "/dataproc:v1/SubmitJobRequest": submit_job_request "/dataproc:v1/SubmitJobRequest/job": job "/dataproc:v1/SubmitJobRequest/requestId": request_id +"/dataproc:v1/TemplateParameter": template_parameter +"/dataproc:v1/TemplateParameter/description": description +"/dataproc:v1/TemplateParameter/fields": fields +"/dataproc:v1/TemplateParameter/fields/field": field +"/dataproc:v1/TemplateParameter/name": name +"/dataproc:v1/TemplateParameter/validation": validation "/dataproc:v1/TestIamPermissionsRequest": test_iam_permissions_request "/dataproc:v1/TestIamPermissionsRequest/permissions": permissions "/dataproc:v1/TestIamPermissionsRequest/permissions/permission": permission "/dataproc:v1/TestIamPermissionsResponse": test_iam_permissions_response "/dataproc:v1/TestIamPermissionsResponse/permissions": permissions "/dataproc:v1/TestIamPermissionsResponse/permissions/permission": permission +"/dataproc:v1/ValueValidation": value_validation +"/dataproc:v1/ValueValidation/values": values +"/dataproc:v1/ValueValidation/values/value": value "/dataproc:v1/WorkflowGraph": workflow_graph "/dataproc:v1/WorkflowGraph/nodes": nodes "/dataproc:v1/WorkflowGraph/nodes/node": node @@ -39356,17 +39723,52 @@ "/dataproc:v1/WorkflowNode/prerequisiteStepIds/prerequisite_step_id": prerequisite_step_id "/dataproc:v1/WorkflowNode/state": state "/dataproc:v1/WorkflowNode/stepId": step_id +"/dataproc:v1/WorkflowTemplate": workflow_template +"/dataproc:v1/WorkflowTemplate/createTime": create_time +"/dataproc:v1/WorkflowTemplate/id": id +"/dataproc:v1/WorkflowTemplate/jobs": jobs +"/dataproc:v1/WorkflowTemplate/jobs/job": job +"/dataproc:v1/WorkflowTemplate/labels": labels +"/dataproc:v1/WorkflowTemplate/labels/label": label +"/dataproc:v1/WorkflowTemplate/name": name +"/dataproc:v1/WorkflowTemplate/parameters": parameters +"/dataproc:v1/WorkflowTemplate/parameters/parameter": parameter +"/dataproc:v1/WorkflowTemplate/placement": placement +"/dataproc:v1/WorkflowTemplate/updateTime": update_time +"/dataproc:v1/WorkflowTemplate/version": version +"/dataproc:v1/WorkflowTemplatePlacement": workflow_template_placement +"/dataproc:v1/WorkflowTemplatePlacement/clusterSelector": cluster_selector +"/dataproc:v1/WorkflowTemplatePlacement/managedCluster": managed_cluster "/dataproc:v1/YarnApplication": yarn_application "/dataproc:v1/YarnApplication/name": name "/dataproc:v1/YarnApplication/progress": progress "/dataproc:v1/YarnApplication/state": state "/dataproc:v1/YarnApplication/trackingUrl": tracking_url +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.create": create_project_location_workflow_template +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.create/parent": parent +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.delete": delete_project_location_workflow_template +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.delete/name": name +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.delete/version": version +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.get": get_project_location_workflow_template +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.get/name": name +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.get/version": version "/dataproc:v1/dataproc.projects.locations.workflowTemplates.getIamPolicy": get_project_location_workflow_template_iam_policy "/dataproc:v1/dataproc.projects.locations.workflowTemplates.getIamPolicy/resource": resource +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.instantiate": instantiate_project_location_workflow_template +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.instantiate/name": name +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.instantiateInline": instantiate_project_location_workflow_template_inline +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.instantiateInline/parent": parent +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.instantiateInline/requestId": request_id +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.list": list_project_location_workflow_templates +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.list/pageSize": page_size +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.list/pageToken": page_token +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.list/parent": parent "/dataproc:v1/dataproc.projects.locations.workflowTemplates.setIamPolicy": set_project_location_workflow_template_iam_policy "/dataproc:v1/dataproc.projects.locations.workflowTemplates.setIamPolicy/resource": resource "/dataproc:v1/dataproc.projects.locations.workflowTemplates.testIamPermissions": test_project_location_workflow_template_iam_permissions "/dataproc:v1/dataproc.projects.locations.workflowTemplates.testIamPermissions/resource": resource +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.update": update_project_location_workflow_template +"/dataproc:v1/dataproc.projects.locations.workflowTemplates.update/name": name "/dataproc:v1/dataproc.projects.regions.clusters.create": create_cluster "/dataproc:v1/dataproc.projects.regions.clusters.create/projectId": project_id "/dataproc:v1/dataproc.projects.regions.clusters.create/region": region @@ -39455,12 +39857,31 @@ "/dataproc:v1/dataproc.projects.regions.operations.setIamPolicy/resource": resource "/dataproc:v1/dataproc.projects.regions.operations.testIamPermissions": test_operation_iam_permissions "/dataproc:v1/dataproc.projects.regions.operations.testIamPermissions/resource": resource +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.create": create_project_region_workflow_template +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.create/parent": parent +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.delete": delete_project_region_workflow_template +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.delete/name": name +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.delete/version": version +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.get": get_project_region_workflow_template +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.get/name": name +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.get/version": version "/dataproc:v1/dataproc.projects.regions.workflowTemplates.getIamPolicy": get_project_region_workflow_template_iam_policy "/dataproc:v1/dataproc.projects.regions.workflowTemplates.getIamPolicy/resource": resource +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.instantiate": instantiate_project_region_workflow_template +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.instantiate/name": name +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.instantiateInline": instantiate_project_region_workflow_template_inline +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.instantiateInline/parent": parent +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.instantiateInline/requestId": request_id +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.list": list_project_region_workflow_templates +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.list/pageSize": page_size +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.list/pageToken": page_token +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.list/parent": parent "/dataproc:v1/dataproc.projects.regions.workflowTemplates.setIamPolicy": set_project_region_workflow_template_iam_policy "/dataproc:v1/dataproc.projects.regions.workflowTemplates.setIamPolicy/resource": resource "/dataproc:v1/dataproc.projects.regions.workflowTemplates.testIamPermissions": test_project_region_workflow_template_iam_permissions "/dataproc:v1/dataproc.projects.regions.workflowTemplates.testIamPermissions/resource": resource +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.update": update_project_region_workflow_template +"/dataproc:v1/dataproc.projects.regions.workflowTemplates.update/name": name "/dataproc:v1/fields": fields "/dataproc:v1/key": key "/dataproc:v1/quotaUser": quota_user diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index 6ae239ce9..b7ff695db 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20180906' + REVISION = '20180912' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb index e01daae53..fd143a88a 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb @@ -63,6 +63,58 @@ module Google end end + # Request to accept a proposal. + class AcceptProposalRequest + include Google::Apis::Core::Hashable + + # The last known client revision number of the proposal. + # Corresponds to the JSON property `proposalRevision` + # @return [Fixnum] + attr_accessor :proposal_revision + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @proposal_revision = args[:proposal_revision] if args.key?(:proposal_revision) + end + end + + # Represents size of a single ad slot, or a creative. + class AdSize + include Google::Apis::Core::Hashable + + # The height of the ad slot in pixels. + # This field will be present only when size type is `PIXEL`. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # The size type of the ad slot. + # Corresponds to the JSON property `sizeType` + # @return [String] + attr_accessor :size_type + + # The width of the ad slot in pixels. + # This field will be present only when size type is `PIXEL`. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] if args.key?(:height) + @size_type = args[:size_type] if args.key?(:size_type) + @width = args[:width] if args.key?(:width) + end + end + # A request for associating a deal and a creative. class AddDealAssociationRequest include Google::Apis::Core::Hashable @@ -82,6 +134,25 @@ module Google end end + # Request message for adding a note to a given proposal. + class AddNoteRequest + include Google::Apis::Core::Hashable + + # A proposal may be associated to several notes. + # Corresponds to the JSON property `note` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Note] + attr_accessor :note + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @note = args[:note] if args.key?(:note) + end + end + # @OutputOnly The app type the restriction applies to for mobile device. class AppContext include Google::Apis::Core::Hashable @@ -219,6 +290,26 @@ module Google end end + # Represents a buyer of inventory. Each buyer is identified by a unique + # Ad Exchange account ID. + class Buyer + include Google::Apis::Core::Hashable + + # Ad Exchange account ID of the buyer. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + end + end + # The number of impressions with the specified dimension values where the # corresponding bid request or bid response was not successful, as described by # the specified callout status. @@ -256,6 +347,19 @@ module Google end end + # Request to cancel an ongoing negotiation. + class CancelNegotiationRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # A client resource represents a client buyer—an agency, # a brand, or an advertiser customer of the sponsor buyer. # Users associated with the client buyer have restricted access to @@ -449,6 +553,44 @@ module Google end end + # Request message for indicating that the proposal's setup step is complete. + class CompleteSetupRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Contains information on how a buyer or seller can be reached. + class ContactInformation + include Google::Apis::Core::Hashable + + # Email address for the contact. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # The name of the contact. + # 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) + @email = args[:email] if args.key?(:email) + @name = args[:name] if args.key?(:name) + end + end + # @OutputOnly Shows any corrections that were applied to this creative. class Correction include Google::Apis::Core::Hashable @@ -719,6 +861,122 @@ module Google end end + # Represents creative restrictions associated to Programmatic Guaranteed/ + # Preferred Deal in DFP. + # This doesn't apply to Private Auction and AdX Preferred Deals. + class CreativeRestrictions + include Google::Apis::Core::Hashable + + # The format of the environment that the creatives will be displayed in. + # Corresponds to the JSON property `creativeFormat` + # @return [String] + attr_accessor :creative_format + + # + # Corresponds to the JSON property `creativeSpecifications` + # @return [Array] + attr_accessor :creative_specifications + + # Skippable video ads allow viewers to skip ads after 5 seconds. + # Corresponds to the JSON property `skippableAdType` + # @return [String] + attr_accessor :skippable_ad_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_format = args[:creative_format] if args.key?(:creative_format) + @creative_specifications = args[:creative_specifications] if args.key?(:creative_specifications) + @skippable_ad_type = args[:skippable_ad_type] if args.key?(:skippable_ad_type) + end + end + + # Specifies the size of the creative. + class CreativeSize + include Google::Apis::Core::Hashable + + # What formats are allowed by the publisher. + # If this repeated field is empty then all formats are allowed. + # E.g., if this field contains AllowedFormatType.AUDIO then the publisher + # only allows an audio ad (without any video). + # Corresponds to the JSON property `allowedFormats` + # @return [Array] + attr_accessor :allowed_formats + + # For video creatives specifies the sizes of companion ads (if present). + # Companion sizes may be filled in only when creative_size_type = VIDEO + # Corresponds to the JSON property `companionSizes` + # @return [Array] + attr_accessor :companion_sizes + + # The creative size type. + # Corresponds to the JSON property `creativeSizeType` + # @return [String] + attr_accessor :creative_size_type + + # The native template for this creative. It will have a value only if + # creative_size_type = CreativeSizeType.NATIVE. + # @OutputOnly + # Corresponds to the JSON property `nativeTemplate` + # @return [String] + attr_accessor :native_template + + # Message depicting the size of the creative. The units of width and + # height depend on the type of the targeting. + # Corresponds to the JSON property `size` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Size] + attr_accessor :size + + # The type of skippable ad for this creative. It will have a value only if + # creative_size_type = CreativeSizeType.VIDEO. + # Corresponds to the JSON property `skippableAdType` + # @return [String] + attr_accessor :skippable_ad_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @allowed_formats = args[:allowed_formats] if args.key?(:allowed_formats) + @companion_sizes = args[:companion_sizes] if args.key?(:companion_sizes) + @creative_size_type = args[:creative_size_type] if args.key?(:creative_size_type) + @native_template = args[:native_template] if args.key?(:native_template) + @size = args[:size] if args.key?(:size) + @skippable_ad_type = args[:skippable_ad_type] if args.key?(:skippable_ad_type) + end + end + + # Represents information for a creative that is associated with a Programmatic + # Guaranteed/Preferred Deal in DFP. + class CreativeSpecification + include Google::Apis::Core::Hashable + + # Companion sizes may be filled in only when this is a video creative. + # Corresponds to the JSON property `creativeCompanionSizes` + # @return [Array] + attr_accessor :creative_companion_sizes + + # Represents size of a single ad slot, or a creative. + # Corresponds to the JSON property `creativeSize` + # @return [Google::Apis::Adexchangebuyer2V2beta1::AdSize] + attr_accessor :creative_size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_companion_sizes = args[:creative_companion_sizes] if args.key?(:creative_companion_sizes) + @creative_size = args[:creative_size] if args.key?(:creative_size) + end + end + # The number of bids with the specified dimension values that did not win the # auction (either were filtered pre-auction or lost the auction), as described # by the specified creative status. @@ -756,6 +1014,32 @@ module Google end end + # Generic targeting used for targeting dimensions that contains a list of + # included and excluded numeric IDs. + class CriteriaTargeting + include Google::Apis::Core::Hashable + + # A list of numeric IDs to be excluded. + # Corresponds to the JSON property `excludedCriteriaIds` + # @return [Array] + attr_accessor :excluded_criteria_ids + + # A list of numeric IDs to be included. + # Corresponds to the JSON property `targetedCriteriaIds` + # @return [Array] + attr_accessor :targeted_criteria_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @excluded_criteria_ids = args[:excluded_criteria_ids] if args.key?(:excluded_criteria_ids) + @targeted_criteria_ids = args[:targeted_criteria_ids] if args.key?(:targeted_criteria_ids) + end + end + # Represents a whole calendar date, for example date of birth. The time of day # and time zone are either specified elsewhere or are not significant. The date # is relative to the Proleptic Gregorian Calendar. The day can be 0 to @@ -796,6 +1080,442 @@ module Google end end + # Daypart targeting message that specifies if the ad can be shown + # only during certain parts of a day/week. + class DayPart + include Google::Apis::Core::Hashable + + # The day of the week to target. If unspecified, applicable to all days. + # Corresponds to the JSON property `dayOfWeek` + # @return [String] + attr_accessor :day_of_week + + # Represents a time of day. The date and time zone are either not significant + # or are specified elsewhere. An API may choose to allow leap seconds. Related + # types are google.type.Date and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `endTime` + # @return [Google::Apis::Adexchangebuyer2V2beta1::TimeOfDay] + attr_accessor :end_time + + # Represents a time of day. The date and time zone are either not significant + # or are specified elsewhere. An API may choose to allow leap seconds. Related + # types are google.type.Date and `google.protobuf.Timestamp`. + # Corresponds to the JSON property `startTime` + # @return [Google::Apis::Adexchangebuyer2V2beta1::TimeOfDay] + attr_accessor :start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day_of_week = args[:day_of_week] if args.key?(:day_of_week) + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) + end + end + + # Specifies the day part targeting criteria. + class DayPartTargeting + include Google::Apis::Core::Hashable + + # A list of day part targeting criterion. + # Corresponds to the JSON property `dayParts` + # @return [Array] + attr_accessor :day_parts + + # The timezone to use for interpreting the day part targeting. + # Corresponds to the JSON property `timeZoneType` + # @return [String] + attr_accessor :time_zone_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day_parts = args[:day_parts] if args.key?(:day_parts) + @time_zone_type = args[:time_zone_type] if args.key?(:time_zone_type) + end + end + + # A deal represents a segment of inventory for displaying ads on. + # A proposal can contain multiple deals. A deal contains the terms and targeting + # information that + # is used for serving. + class Deal + include Google::Apis::Core::Hashable + + # Proposed flight end time of the deal. + # This will generally be stored in a granularity of a second. + # A value is not required for Private Auction deals or Preferred Deals. + # Corresponds to the JSON property `availableEndTime` + # @return [String] + attr_accessor :available_end_time + + # Optional proposed flight start time of the deal. + # This will generally be stored in the granularity of one second since deal + # serving + # starts at seconds boundary. Any time specified with more granularity + # (e.g., in milliseconds) will be truncated towards the start of time in seconds. + # Corresponds to the JSON property `availableStartTime` + # @return [String] + attr_accessor :available_start_time + + # Buyers are allowed to store certain types of private data in a proposal/deal. + # Corresponds to the JSON property `buyerPrivateData` + # @return [Google::Apis::Adexchangebuyer2V2beta1::PrivateData] + attr_accessor :buyer_private_data + + # The product ID from which this deal was created. + # Note: This field may be set only when creating the resource. Modifying + # this field while updating the resource will result in an error. + # Corresponds to the JSON property `createProductId` + # @return [String] + attr_accessor :create_product_id + + # Optional revision number of the product that the deal was created from. + # If present on create, and the server `product_revision` has advanced sinced + # the passed-in `create_product_revision`, an `ABORTED` error will be + # returned. + # Note: This field may be set only when creating the resource. Modifying + # this field while updating the resource will result in an error. + # Corresponds to the JSON property `createProductRevision` + # @return [Fixnum] + attr_accessor :create_product_revision + + # The time of the deal creation. + # @OutputOnly + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Specifies the creative pre-approval policy. + # @OutputOnly + # Corresponds to the JSON property `creativePreApprovalPolicy` + # @return [String] + attr_accessor :creative_pre_approval_policy + + # Represents creative restrictions associated to Programmatic Guaranteed/ + # Preferred Deal in DFP. + # This doesn't apply to Private Auction and AdX Preferred Deals. + # Corresponds to the JSON property `creativeRestrictions` + # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeRestrictions] + attr_accessor :creative_restrictions + + # Specifies whether the creative is safeFrame compatible. + # @OutputOnly + # Corresponds to the JSON property `creativeSafeFrameCompatibility` + # @return [String] + attr_accessor :creative_safe_frame_compatibility + + # A unique deal ID for the deal (server-assigned). + # @OutputOnly + # Corresponds to the JSON property `dealId` + # @return [String] + attr_accessor :deal_id + + # Message captures metadata about the serving status of a deal. + # Corresponds to the JSON property `dealServingMetadata` + # @return [Google::Apis::Adexchangebuyer2V2beta1::DealServingMetadata] + attr_accessor :deal_serving_metadata + + # The deal terms specify the details of a Product/deal. They specify things + # like price per buyer, the type of pricing model (e.g., fixed price, auction) + # and expected impressions from the publisher. + # Corresponds to the JSON property `dealTerms` + # @return [Google::Apis::Adexchangebuyer2V2beta1::DealTerms] + attr_accessor :deal_terms + + # Message contains details about how the deals will be paced. + # Corresponds to the JSON property `deliveryControl` + # @return [Google::Apis::Adexchangebuyer2V2beta1::DeliveryControl] + attr_accessor :delivery_control + + # Description for the deal terms. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The name of the deal. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The external deal ID assigned to this deal once the deal is finalized. + # This is the deal ID that shows up in serving/reporting etc. + # @OutputOnly + # Corresponds to the JSON property `externalDealId` + # @return [String] + attr_accessor :external_deal_id + + # True, if the buyside inventory setup is complete for this deal. + # @OutputOnly + # Corresponds to the JSON property `isSetupComplete` + # @return [Boolean] + attr_accessor :is_setup_complete + alias_method :is_setup_complete?, :is_setup_complete + + # Specifies the creative source for programmatic deals. PUBLISHER means + # creative is provided by seller and ADVERTISER means creative is + # provided by buyer. + # @OutputOnly + # Corresponds to the JSON property `programmaticCreativeSource` + # @return [String] + attr_accessor :programmatic_creative_source + + # ID of the proposal that this deal is part of. + # @OutputOnly + # Corresponds to the JSON property `proposalId` + # @return [String] + attr_accessor :proposal_id + + # Seller contact information for the deal. + # @OutputOnly + # Corresponds to the JSON property `sellerContacts` + # @return [Array] + attr_accessor :seller_contacts + + # The syndication product associated with the deal. + # Note: This field may be set only when creating the resource. Modifying + # this field while updating the resource will result in an error. + # Corresponds to the JSON property `syndicationProduct` + # @return [String] + attr_accessor :syndication_product + + # Targeting represents different criteria that can be used by advertisers to + # target ad inventory. For example, they can choose to target ad requests only + # if the user is in the US. + # Multiple types of targeting are always applied as a logical AND, unless noted + # otherwise. + # Corresponds to the JSON property `targeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MarketplaceTargeting] + attr_accessor :targeting + + # The shared targeting visible to buyers and sellers. Each shared + # targeting entity is AND'd together. + # Corresponds to the JSON property `targetingCriterion` + # @return [Array] + attr_accessor :targeting_criterion + + # The time when the deal was last updated. + # @OutputOnly + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # The web property code for the seller copied over from the product. + # Corresponds to the JSON property `webPropertyCode` + # @return [String] + attr_accessor :web_property_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @available_end_time = args[:available_end_time] if args.key?(:available_end_time) + @available_start_time = args[:available_start_time] if args.key?(:available_start_time) + @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data) + @create_product_id = args[:create_product_id] if args.key?(:create_product_id) + @create_product_revision = args[:create_product_revision] if args.key?(:create_product_revision) + @create_time = args[:create_time] if args.key?(:create_time) + @creative_pre_approval_policy = args[:creative_pre_approval_policy] if args.key?(:creative_pre_approval_policy) + @creative_restrictions = args[:creative_restrictions] if args.key?(:creative_restrictions) + @creative_safe_frame_compatibility = args[:creative_safe_frame_compatibility] if args.key?(:creative_safe_frame_compatibility) + @deal_id = args[:deal_id] if args.key?(:deal_id) + @deal_serving_metadata = args[:deal_serving_metadata] if args.key?(:deal_serving_metadata) + @deal_terms = args[:deal_terms] if args.key?(:deal_terms) + @delivery_control = args[:delivery_control] if args.key?(:delivery_control) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @external_deal_id = args[:external_deal_id] if args.key?(:external_deal_id) + @is_setup_complete = args[:is_setup_complete] if args.key?(:is_setup_complete) + @programmatic_creative_source = args[:programmatic_creative_source] if args.key?(:programmatic_creative_source) + @proposal_id = args[:proposal_id] if args.key?(:proposal_id) + @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts) + @syndication_product = args[:syndication_product] if args.key?(:syndication_product) + @targeting = args[:targeting] if args.key?(:targeting) + @targeting_criterion = args[:targeting_criterion] if args.key?(:targeting_criterion) + @update_time = args[:update_time] if args.key?(:update_time) + @web_property_code = args[:web_property_code] if args.key?(:web_property_code) + end + end + + # Tracks which parties (if any) have paused a deal. + # The deal is considered paused if either hasBuyerPaused or + # hasSellPaused is true. + class DealPauseStatus + include Google::Apis::Core::Hashable + + # The buyer's reason for pausing, if the buyer paused the deal. + # Corresponds to the JSON property `buyerPauseReason` + # @return [String] + attr_accessor :buyer_pause_reason + + # The role of the person who first paused this deal. + # Corresponds to the JSON property `firstPausedBy` + # @return [String] + attr_accessor :first_paused_by + + # True, if the buyer has paused the deal unilaterally. + # Corresponds to the JSON property `hasBuyerPaused` + # @return [Boolean] + attr_accessor :has_buyer_paused + alias_method :has_buyer_paused?, :has_buyer_paused + + # True, if the seller has paused the deal unilaterally. + # Corresponds to the JSON property `hasSellerPaused` + # @return [Boolean] + attr_accessor :has_seller_paused + alias_method :has_seller_paused?, :has_seller_paused + + # The seller's reason for pausing, if the seller paused the deal. + # Corresponds to the JSON property `sellerPauseReason` + # @return [String] + attr_accessor :seller_pause_reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buyer_pause_reason = args[:buyer_pause_reason] if args.key?(:buyer_pause_reason) + @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) + @seller_pause_reason = args[:seller_pause_reason] if args.key?(:seller_pause_reason) + end + end + + # Message captures metadata about the serving status of a deal. + class DealServingMetadata + include Google::Apis::Core::Hashable + + # Tracks which parties (if any) have paused a deal. + # The deal is considered paused if either hasBuyerPaused or + # hasSellPaused is true. + # Corresponds to the JSON property `dealPauseStatus` + # @return [Google::Apis::Adexchangebuyer2V2beta1::DealPauseStatus] + attr_accessor :deal_pause_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deal_pause_status = args[:deal_pause_status] if args.key?(:deal_pause_status) + end + end + + # The deal terms specify the details of a Product/deal. They specify things + # like price per buyer, the type of pricing model (e.g., fixed price, auction) + # and expected impressions from the publisher. + class DealTerms + include Google::Apis::Core::Hashable + + # Visibility of the URL in bid requests. (default: BRANDED) + # Corresponds to the JSON property `brandingType` + # @return [String] + attr_accessor :branding_type + + # Publisher provided description for the terms. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Represents a price and a pricing type for a product / deal. + # Corresponds to the JSON property `estimatedGrossSpend` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Price] + attr_accessor :estimated_gross_spend + + # Non-binding estimate of the impressions served per day. + # Can be set by buyer or seller. + # Corresponds to the JSON property `estimatedImpressionsPerDay` + # @return [Fixnum] + attr_accessor :estimated_impressions_per_day + + # Terms for Programmatic Guaranteed Deals. + # Corresponds to the JSON property `guaranteedFixedPriceTerms` + # @return [Google::Apis::Adexchangebuyer2V2beta1::GuaranteedFixedPriceTerms] + attr_accessor :guaranteed_fixed_price_terms + + # Terms for Private Auctions. Note that Private Auctions can be created only + # by the seller, but they can be returned in a get or list request. + # Corresponds to the JSON property `nonGuaranteedAuctionTerms` + # @return [Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedAuctionTerms] + attr_accessor :non_guaranteed_auction_terms + + # Terms for Preferred Deals. Note that Preferred Deals cannot be created via + # the API at this time, but can be returned in a get or list request. + # Corresponds to the JSON property `nonGuaranteedFixedPriceTerms` + # @return [Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedFixedPriceTerms] + attr_accessor :non_guaranteed_fixed_price_terms + + # The time zone name. For deals with Cost Per Day billing, defines the + # time zone used to mark the boundaries of a day. It should be an + # IANA TZ name, such as "America/Los_Angeles". For more information, + # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. + # Corresponds to the JSON property `sellerTimeZone` + # @return [String] + attr_accessor :seller_time_zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @branding_type = args[:branding_type] if args.key?(:branding_type) + @description = args[:description] if args.key?(:description) + @estimated_gross_spend = args[:estimated_gross_spend] if args.key?(:estimated_gross_spend) + @estimated_impressions_per_day = args[:estimated_impressions_per_day] if args.key?(:estimated_impressions_per_day) + @guaranteed_fixed_price_terms = args[:guaranteed_fixed_price_terms] if args.key?(:guaranteed_fixed_price_terms) + @non_guaranteed_auction_terms = args[:non_guaranteed_auction_terms] if args.key?(:non_guaranteed_auction_terms) + @non_guaranteed_fixed_price_terms = args[:non_guaranteed_fixed_price_terms] if args.key?(:non_guaranteed_fixed_price_terms) + @seller_time_zone = args[:seller_time_zone] if args.key?(:seller_time_zone) + end + end + + # Message contains details about how the deals will be paced. + class DeliveryControl + include Google::Apis::Core::Hashable + + # Specified the creative blocking levels to be applied. + # @OutputOnly + # Corresponds to the JSON property `creativeBlockingLevel` + # @return [String] + attr_accessor :creative_blocking_level + + # Specifies how the impression delivery will be paced. + # @OutputOnly + # Corresponds to the JSON property `deliveryRateType` + # @return [String] + attr_accessor :delivery_rate_type + + # Specifies any frequency caps. + # @OutputOnly + # Corresponds to the JSON property `frequencyCaps` + # @return [Array] + attr_accessor :frequency_caps + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_blocking_level = args[:creative_blocking_level] if args.key?(:creative_blocking_level) + @delivery_rate_type = args[:delivery_rate_type] if args.key?(:delivery_rate_type) + @frequency_caps = args[:frequency_caps] if args.key?(:frequency_caps) + end + end + # @OutputOnly The reason and details for a disapproval. class Disapproval include Google::Apis::Core::Hashable @@ -1070,6 +1790,109 @@ module Google end end + # Represents a list of targeted and excluded mobile application IDs that + # publishers own. + # Mobile application IDs are from App Store and Google Play Store. + # Android App ID, for example, com.google.android.apps.maps, can be found in + # Google Play Store URL. + # iOS App ID (which is a number) can be found at the end of iTunes store URL. + # First party mobile applications is either included or excluded. + class FirstPartyMobileApplicationTargeting + include Google::Apis::Core::Hashable + + # A list of application IDs to be excluded. + # Corresponds to the JSON property `excludedAppIds` + # @return [Array] + attr_accessor :excluded_app_ids + + # A list of application IDs to be included. + # Corresponds to the JSON property `targetedAppIds` + # @return [Array] + attr_accessor :targeted_app_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @excluded_app_ids = args[:excluded_app_ids] if args.key?(:excluded_app_ids) + @targeted_app_ids = args[:targeted_app_ids] if args.key?(:targeted_app_ids) + end + end + + # Frequency cap. + class FrequencyCap + include Google::Apis::Core::Hashable + + # The maximum number of impressions that can be served to a user within the + # specified time period. + # Corresponds to the JSON property `maxImpressions` + # @return [Fixnum] + attr_accessor :max_impressions + + # The amount of time, in the units specified by time_unit_type. Defines the + # amount of time over which impressions per user are counted and capped. + # Corresponds to the JSON property `numTimeUnits` + # @return [Fixnum] + attr_accessor :num_time_units + + # The time unit. Along with num_time_units defines the amount of time over + # which impressions per user are counted and capped. + # Corresponds to the JSON property `timeUnitType` + # @return [String] + attr_accessor :time_unit_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_impressions = args[:max_impressions] if args.key?(:max_impressions) + @num_time_units = args[:num_time_units] if args.key?(:num_time_units) + @time_unit_type = args[:time_unit_type] if args.key?(:time_unit_type) + end + end + + # Terms for Programmatic Guaranteed Deals. + class GuaranteedFixedPriceTerms + include Google::Apis::Core::Hashable + + # Fixed price for the specified buyer. + # Corresponds to the JSON property `fixedPrices` + # @return [Array] + attr_accessor :fixed_prices + + # Guaranteed impressions as a percentage. This is the percentage + # of guaranteed looks that the buyer is guaranteeing to buy. + # Corresponds to the JSON property `guaranteedImpressions` + # @return [Fixnum] + attr_accessor :guaranteed_impressions + + # Count of guaranteed looks. Required for deal, optional for product. + # Corresponds to the JSON property `guaranteedLooks` + # @return [Fixnum] + attr_accessor :guaranteed_looks + + # Daily minimum looks for CPD deal types. + # Corresponds to the JSON property `minimumDailyLooks` + # @return [Fixnum] + attr_accessor :minimum_daily_looks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @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) + @minimum_daily_looks = args[:minimum_daily_looks] if args.key?(:minimum_daily_looks) + end + end + # HTML content for a creative. class HtmlContent include Google::Apis::Core::Hashable @@ -1190,6 +2013,34 @@ module Google end end + # Represents the size of an ad unit that can be targeted on an ad + # request. It only applies to Private Auction, AdX Preferred Deals and + # Auction Packages. This targeting does not apply to Programmatic Guaranteed + # and Preferred Deals in DFP. + class InventorySizeTargeting + include Google::Apis::Core::Hashable + + # A list of inventory sizes to be excluded. + # Corresponds to the JSON property `excludedInventorySizes` + # @return [Array] + attr_accessor :excluded_inventory_sizes + + # A list of inventory sizes to be included. + # Corresponds to the JSON property `targetedInventorySizes` + # @return [Array] + attr_accessor :targeted_inventory_sizes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @excluded_inventory_sizes = args[:excluded_inventory_sizes] if args.key?(:excluded_inventory_sizes) + @targeted_inventory_sizes = args[:targeted_inventory_sizes] if args.key?(:targeted_inventory_sizes) + end + end + # Response message for listing the metrics that are measured in number of bids. class ListBidMetricsResponse include Google::Apis::Core::Hashable @@ -1680,6 +2531,81 @@ module Google end end + # Response message for listing products visible to the buyer. + class ListProductsResponse + include Google::Apis::Core::Hashable + + # List pagination support. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of matching products at their head revision number. + # Corresponds to the JSON property `products` + # @return [Array] + attr_accessor :products + + 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) + @products = args[:products] if args.key?(:products) + end + end + + # Response message for listing proposals. + class ListProposalsResponse + include Google::Apis::Core::Hashable + + # Continuation token for fetching the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of proposals. + # Corresponds to the JSON property `proposals` + # @return [Array] + attr_accessor :proposals + + 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) + @proposals = args[:proposals] if args.key?(:proposals) + end + end + + # Response message for profiles visible to the buyer. + class ListPublisherProfilesResponse + include Google::Apis::Core::Hashable + + # List pagination support + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of matching publisher profiles. + # Corresponds to the JSON property `publisherProfiles` + # @return [Array] + attr_accessor :publisher_profiles + + 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) + @publisher_profiles = args[:publisher_profiles] if args.key?(:publisher_profiles) + end + end + # @OutputOnly The Geo criteria the restriction applies to. class LocationContext include Google::Apis::Core::Hashable @@ -1703,6 +2629,59 @@ module Google end end + # Targeting represents different criteria that can be used by advertisers to + # target ad inventory. For example, they can choose to target ad requests only + # if the user is in the US. + # Multiple types of targeting are always applied as a logical AND, unless noted + # otherwise. + class MarketplaceTargeting + include Google::Apis::Core::Hashable + + # Generic targeting used for targeting dimensions that contains a list of + # included and excluded numeric IDs. + # Corresponds to the JSON property `geoTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting] + attr_accessor :geo_targeting + + # Represents the size of an ad unit that can be targeted on an ad + # request. It only applies to Private Auction, AdX Preferred Deals and + # Auction Packages. This targeting does not apply to Programmatic Guaranteed + # and Preferred Deals in DFP. + # Corresponds to the JSON property `inventorySizeTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::InventorySizeTargeting] + attr_accessor :inventory_size_targeting + + # Represents targeting about where the ads can appear, e.g. certain sites or + # mobile applications. + # Different placement targeting types will be logically OR'ed. + # Corresponds to the JSON property `placementTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::PlacementTargeting] + attr_accessor :placement_targeting + + # Represents targeting about various types of technology. + # Corresponds to the JSON property `technologyTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::TechnologyTargeting] + attr_accessor :technology_targeting + + # Represents targeting information about video. + # Corresponds to the JSON property `videoTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::VideoTargeting] + attr_accessor :video_targeting + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @geo_targeting = args[:geo_targeting] if args.key?(:geo_targeting) + @inventory_size_targeting = args[:inventory_size_targeting] if args.key?(:inventory_size_targeting) + @placement_targeting = args[:placement_targeting] if args.key?(:placement_targeting) + @technology_targeting = args[:technology_targeting] if args.key?(:technology_targeting) + @video_targeting = args[:video_targeting] if args.key?(:video_targeting) + end + end + # A metric value, with an expected value and a variance; represents a count # that may be either exact or estimated (i.e. when sampled). class MetricValue @@ -1735,6 +2714,68 @@ module Google end end + # Mobile application targeting settings. + class MobileApplicationTargeting + include Google::Apis::Core::Hashable + + # Represents a list of targeted and excluded mobile application IDs that + # publishers own. + # Mobile application IDs are from App Store and Google Play Store. + # Android App ID, for example, com.google.android.apps.maps, can be found in + # Google Play Store URL. + # iOS App ID (which is a number) can be found at the end of iTunes store URL. + # First party mobile applications is either included or excluded. + # Corresponds to the JSON property `firstPartyTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::FirstPartyMobileApplicationTargeting] + attr_accessor :first_party_targeting + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @first_party_targeting = args[:first_party_targeting] if args.key?(:first_party_targeting) + end + end + + # Represents an amount of money with its currency type. + class Money + include Google::Apis::Core::Hashable + + # The 3-letter currency code defined in ISO 4217. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # Number of nano (10^-9) units of the amount. + # The value must be between -999,999,999 and +999,999,999 inclusive. + # If `units` is positive, `nanos` must be positive or zero. + # If `units` is zero, `nanos` can be positive, zero, or negative. + # If `units` is negative, `nanos` must be negative or zero. + # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # The whole units of the amount. + # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. + # Corresponds to the JSON property `units` + # @return [Fixnum] + attr_accessor :units + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @nanos = args[:nanos] if args.key?(:nanos) + @units = args[:units] if args.key?(:units) + end + end + # Native content for a creative. class NativeContent include Google::Apis::Core::Hashable @@ -1863,6 +2904,182 @@ module Google end end + # Terms for Private Auctions. Note that Private Auctions can be created only + # by the seller, but they can be returned in a get or list request. + class NonGuaranteedAuctionTerms + include Google::Apis::Core::Hashable + + # True if open auction buyers are allowed to compete with invited buyers + # in this private auction. + # Corresponds to the JSON property `autoOptimizePrivateAuction` + # @return [Boolean] + attr_accessor :auto_optimize_private_auction + alias_method :auto_optimize_private_auction?, :auto_optimize_private_auction + + # Reserve price for the specified buyer. + # Corresponds to the JSON property `reservePricesPerBuyer` + # @return [Array] + attr_accessor :reserve_prices_per_buyer + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auto_optimize_private_auction = args[:auto_optimize_private_auction] if args.key?(:auto_optimize_private_auction) + @reserve_prices_per_buyer = args[:reserve_prices_per_buyer] if args.key?(:reserve_prices_per_buyer) + end + end + + # Terms for Preferred Deals. Note that Preferred Deals cannot be created via + # the API at this time, but can be returned in a get or list request. + class NonGuaranteedFixedPriceTerms + include Google::Apis::Core::Hashable + + # Fixed price for the specified buyer. + # Corresponds to the JSON property `fixedPrices` + # @return [Array] + attr_accessor :fixed_prices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fixed_prices = args[:fixed_prices] if args.key?(:fixed_prices) + end + end + + # A proposal may be associated to several notes. + class Note + include Google::Apis::Core::Hashable + + # The timestamp for when this note was created. + # @OutputOnly + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # The role of the person (buyer/seller) creating the note. + # @OutputOnly + # Corresponds to the JSON property `creatorRole` + # @return [String] + attr_accessor :creator_role + + # The actual note to attach. + # (max-length: 1024 unicode code units) + # Note: This field may be set only when creating the resource. Modifying + # this field while updating the resource will result in an error. + # Corresponds to the JSON property `note` + # @return [String] + attr_accessor :note + + # The unique ID for the note. + # @OutputOnly + # Corresponds to the JSON property `noteId` + # @return [String] + attr_accessor :note_id + + # The revision number of the proposal when the note is created. + # @OutputOnly + # Corresponds to the JSON property `proposalRevision` + # @return [Fixnum] + attr_accessor :proposal_revision + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @creator_role = args[:creator_role] if args.key?(:creator_role) + @note = args[:note] if args.key?(:note) + @note_id = args[:note_id] if args.key?(:note_id) + @proposal_revision = args[:proposal_revision] if args.key?(:proposal_revision) + end + end + + # Represents targeting information for operating systems. + class OperatingSystemTargeting + include Google::Apis::Core::Hashable + + # Generic targeting used for targeting dimensions that contains a list of + # included and excluded numeric IDs. + # Corresponds to the JSON property `operatingSystemCriteria` + # @return [Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting] + attr_accessor :operating_system_criteria + + # Generic targeting used for targeting dimensions that contains a list of + # included and excluded numeric IDs. + # Corresponds to the JSON property `operatingSystemVersionCriteria` + # @return [Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting] + attr_accessor :operating_system_version_criteria + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @operating_system_criteria = args[:operating_system_criteria] if args.key?(:operating_system_criteria) + @operating_system_version_criteria = args[:operating_system_version_criteria] if args.key?(:operating_system_version_criteria) + end + end + + # Request message to pause serving for an already-finalized proposal. + class PauseProposalRequest + include Google::Apis::Core::Hashable + + # The reason why the proposal is being paused. + # This human readable message will be displayed in the seller's UI. + # (Max length: 100 unicode code units.) + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reason = args[:reason] if args.key?(:reason) + end + end + + # Represents targeting about where the ads can appear, e.g. certain sites or + # mobile applications. + # Different placement targeting types will be logically OR'ed. + class PlacementTargeting + include Google::Apis::Core::Hashable + + # Mobile application targeting settings. + # Corresponds to the JSON property `mobileApplicationTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::MobileApplicationTargeting] + attr_accessor :mobile_application_targeting + + # Represents a list of targeted and excluded URLs (e.g google.com). + # For Private Auction and AdX Preferred Deals, URLs are either included or + # excluded. + # For DFP Programmatic Guaranteed and Preferred Deals, this doesn't apply. + # Corresponds to the JSON property `urlTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::UrlTargeting] + attr_accessor :url_targeting + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @mobile_application_targeting = args[:mobile_application_targeting] if args.key?(:mobile_application_targeting) + @url_targeting = args[:url_targeting] if args.key?(:url_targeting) + end + end + # @OutputOnly The type of platform the restriction applies to. class PlatformContext include Google::Apis::Core::Hashable @@ -1882,6 +3099,488 @@ module Google end end + # Represents a price and a pricing type for a product / deal. + class Price + include Google::Apis::Core::Hashable + + # Represents an amount of money with its currency type. + # Corresponds to the JSON property `amount` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Money] + attr_accessor :amount + + # The pricing type for the deal/product. (default: CPM) + # Corresponds to the JSON property `pricingType` + # @return [String] + attr_accessor :pricing_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount = args[:amount] if args.key?(:amount) + @pricing_type = args[:pricing_type] if args.key?(:pricing_type) + end + end + + # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in + # a product can become 0 or 1 deals. To check if there is a PricePerBuyer for + # a particular buyer or buyer/advertiser pair, we look for the most specific + # matching rule - we first look for a rule matching the buyer and advertiser, + # next a rule with the buyer but an empty advertiser list, and otherwise look + # for a matching rule where no buyer is set. + class PricePerBuyer + include Google::Apis::Core::Hashable + + # The list of advertisers for this price when associated with this buyer. + # If empty, all advertisers with this buyer pay this price. + # Corresponds to the JSON property `advertiserIds` + # @return [Array] + attr_accessor :advertiser_ids + + # Represents a buyer of inventory. Each buyer is identified by a unique + # Ad Exchange account ID. + # Corresponds to the JSON property `buyer` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Buyer] + attr_accessor :buyer + + # Represents a price and a pricing type for a product / deal. + # Corresponds to the JSON property `price` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Price] + attr_accessor :price + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @advertiser_ids = args[:advertiser_ids] if args.key?(:advertiser_ids) + @buyer = args[:buyer] if args.key?(:buyer) + @price = args[:price] if args.key?(:price) + end + end + + # Buyers are allowed to store certain types of private data in a proposal/deal. + class PrivateData + include Google::Apis::Core::Hashable + + # A buyer or seller specified reference ID. This can be queried in the list + # operations (max-length: 1024 unicode code units). + # Corresponds to the JSON property `referenceId` + # @return [String] + attr_accessor :reference_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reference_id = args[:reference_id] if args.key?(:reference_id) + end + end + + # Note: this resource requires whitelisting for access. Please contact your + # account manager for access to Marketplace resources. + # A product is a segment of inventory that a seller wishes to sell. It is + # associated with certain terms and targeting information which helps the buyer + # know more about the inventory. + class Product + include Google::Apis::Core::Hashable + + # The proposed end time for the deal. The field will be truncated to the order + # of + # seconds during serving. + # Corresponds to the JSON property `availableEndTime` + # @return [String] + attr_accessor :available_end_time + + # Inventory availability dates. The start time will be truncated to seconds + # during serving. + # Thus, a field specified as 3:23:34.456 (HH:mm:ss.SSS) will be truncated to 3: + # 23:34 + # when serving. + # Corresponds to the JSON property `availableStartTime` + # @return [String] + attr_accessor :available_start_time + + # Creation time. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Optional contact information for the creator of this product. + # Corresponds to the JSON property `creatorContacts` + # @return [Array] + attr_accessor :creator_contacts + + # The display name for this product as set by the seller. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # If the creator has already signed off on the product, then the buyer can + # finalize the deal by accepting the product as is. When copying to a + # proposal, if any of the terms are changed, then auto_finalize is + # automatically set to false. + # Corresponds to the JSON property `hasCreatorSignedOff` + # @return [Boolean] + attr_accessor :has_creator_signed_off + alias_method :has_creator_signed_off?, :has_creator_signed_off + + # The unique ID for the product. + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The revision number of the product. (auto-assigned by marketplace) + # Corresponds to the JSON property `productRevision` + # @return [Fixnum] + attr_accessor :product_revision + + # An ID which can be used by the Publisher Profile API to get more + # information about the seller that created this product. + # Corresponds to the JSON property `publisherProfileId` + # @return [String] + attr_accessor :publisher_profile_id + + # Represents a seller of inventory. Each seller is identified by a unique + # Ad Exchange account ID. + # Corresponds to the JSON property `seller` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Seller] + attr_accessor :seller + + # The syndication product associated with the deal. + # Corresponds to the JSON property `syndicationProduct` + # @return [String] + attr_accessor :syndication_product + + # Targeting that is shared between the buyer and the seller. Each targeting + # criterion has a specified key and for each key there is a list of inclusion + # value or exclusion values. + # Corresponds to the JSON property `targetingCriterion` + # @return [Array] + attr_accessor :targeting_criterion + + # The deal terms specify the details of a Product/deal. They specify things + # like price per buyer, the type of pricing model (e.g., fixed price, auction) + # and expected impressions from the publisher. + # Corresponds to the JSON property `terms` + # @return [Google::Apis::Adexchangebuyer2V2beta1::DealTerms] + attr_accessor :terms + + # Time of last update. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # The web-property code for the seller. This needs to be copied as is when + # adding a new deal to a proposal. + # Corresponds to the JSON property `webPropertyCode` + # @return [String] + attr_accessor :web_property_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @available_end_time = args[:available_end_time] if args.key?(:available_end_time) + @available_start_time = args[:available_start_time] if args.key?(:available_start_time) + @create_time = args[:create_time] if args.key?(:create_time) + @creator_contacts = args[:creator_contacts] if args.key?(:creator_contacts) + @display_name = args[:display_name] if args.key?(:display_name) + @has_creator_signed_off = args[:has_creator_signed_off] if args.key?(:has_creator_signed_off) + @product_id = args[:product_id] if args.key?(:product_id) + @product_revision = args[:product_revision] if args.key?(:product_revision) + @publisher_profile_id = args[:publisher_profile_id] if args.key?(:publisher_profile_id) + @seller = args[:seller] if args.key?(:seller) + @syndication_product = args[:syndication_product] if args.key?(:syndication_product) + @targeting_criterion = args[:targeting_criterion] if args.key?(:targeting_criterion) + @terms = args[:terms] if args.key?(:terms) + @update_time = args[:update_time] if args.key?(:update_time) + @web_property_code = args[:web_property_code] if args.key?(:web_property_code) + end + end + + # Note: this resource requires whitelisting for access. Please contact your + # account manager for access to Marketplace resources. + # Represents a proposal in the marketplace. A proposal is the unit of + # negotiation between a seller and a buyer and contains deals which + # are served. + # Note: you can not update, create, or otherwise modify Private + # Auction or Preferred Deals deals through the API. + # Fields are updatable unless noted otherwise. + class Proposal + include Google::Apis::Core::Hashable + + # Represents a buyer of inventory. Each buyer is identified by a unique + # Ad Exchange account ID. + # Corresponds to the JSON property `billedBuyer` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Buyer] + attr_accessor :billed_buyer + + # Represents a buyer of inventory. Each buyer is identified by a unique + # Ad Exchange account ID. + # Corresponds to the JSON property `buyer` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Buyer] + attr_accessor :buyer + + # Contact information for the buyer. + # Corresponds to the JSON property `buyerContacts` + # @return [Array] + attr_accessor :buyer_contacts + + # Buyers are allowed to store certain types of private data in a proposal/deal. + # Corresponds to the JSON property `buyerPrivateData` + # @return [Google::Apis::Adexchangebuyer2V2beta1::PrivateData] + attr_accessor :buyer_private_data + + # The deals associated with this proposal. For Private Auction proposals (whose + # deals have + # NonGuaranteedAuctionTerms), there will only be one deal. + # Corresponds to the JSON property `deals` + # @return [Array] + attr_accessor :deals + + # The name for the proposal. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # True if the proposal is being renegotiated. + # @OutputOnly + # Corresponds to the JSON property `isRenegotiating` + # @return [Boolean] + attr_accessor :is_renegotiating + alias_method :is_renegotiating?, :is_renegotiating + + # True, if the buyside inventory setup is complete for this proposal. + # @OutputOnly + # Corresponds to the JSON property `isSetupComplete` + # @return [Boolean] + attr_accessor :is_setup_complete + alias_method :is_setup_complete?, :is_setup_complete + + # The role of the last user that either updated the proposal or left a + # comment. + # @OutputOnly + # Corresponds to the JSON property `lastUpdaterOrCommentorRole` + # @return [String] + attr_accessor :last_updater_or_commentor_role + + # The notes associated with this proposal. + # @OutputOnly + # Corresponds to the JSON property `notes` + # @return [Array] + attr_accessor :notes + + # Indicates whether the buyer/seller created the proposal. + # @OutputOnly + # Corresponds to the JSON property `originatorRole` + # @return [String] + attr_accessor :originator_role + + # Private auction ID if this proposal is a private auction proposal. + # @OutputOnly + # Corresponds to the JSON property `privateAuctionId` + # @return [String] + attr_accessor :private_auction_id + + # The unique ID of the proposal. + # @OutputOnly + # Corresponds to the JSON property `proposalId` + # @return [String] + attr_accessor :proposal_id + + # The revision number for the proposal. + # Each update to the proposal or the deal causes the proposal revision number + # to auto-increment. The buyer keeps track of the last revision number they + # know of and pass it in when making an update. If the head revision number + # on the server has since incremented, then an ABORTED error is returned + # during the update operation to let the buyer know that a subsequent update + # was made. + # @OutputOnly + # Corresponds to the JSON property `proposalRevision` + # @return [Fixnum] + attr_accessor :proposal_revision + + # The current state of the proposal. + # @OutputOnly + # Corresponds to the JSON property `proposalState` + # @return [String] + attr_accessor :proposal_state + + # Represents a seller of inventory. Each seller is identified by a unique + # Ad Exchange account ID. + # Corresponds to the JSON property `seller` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Seller] + attr_accessor :seller + + # Contact information for the seller. + # @OutputOnly + # Corresponds to the JSON property `sellerContacts` + # @return [Array] + attr_accessor :seller_contacts + + # The time when the proposal was last revised. + # @OutputOnly + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @billed_buyer = args[:billed_buyer] if args.key?(:billed_buyer) + @buyer = args[:buyer] if args.key?(:buyer) + @buyer_contacts = args[:buyer_contacts] if args.key?(:buyer_contacts) + @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data) + @deals = args[:deals] if args.key?(:deals) + @display_name = args[:display_name] if args.key?(:display_name) + @is_renegotiating = args[:is_renegotiating] if args.key?(:is_renegotiating) + @is_setup_complete = args[:is_setup_complete] if args.key?(:is_setup_complete) + @last_updater_or_commentor_role = args[:last_updater_or_commentor_role] if args.key?(:last_updater_or_commentor_role) + @notes = args[:notes] if args.key?(:notes) + @originator_role = args[:originator_role] if args.key?(:originator_role) + @private_auction_id = args[:private_auction_id] if args.key?(:private_auction_id) + @proposal_id = args[:proposal_id] if args.key?(:proposal_id) + @proposal_revision = args[:proposal_revision] if args.key?(:proposal_revision) + @proposal_state = args[:proposal_state] if args.key?(:proposal_state) + @seller = args[:seller] if args.key?(:seller) + @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # Note: this resource requires whitelisting for access. Please contact your + # account manager for access to Marketplace resources. + # Represents a publisher profile in Marketplace. + # All fields are read only. All string fields are free-form text entered by the + # publisher + # unless noted otherwise. + class PublisherProfile + include Google::Apis::Core::Hashable + + # Description on the publisher's audience. + # Corresponds to the JSON property `audienceDescription` + # @return [String] + attr_accessor :audience_description + + # Statement explaining what's unique about publisher's business, and why buyers + # should + # partner with the publisher. + # Corresponds to the JSON property `buyerPitchStatement` + # @return [String] + attr_accessor :buyer_pitch_statement + + # Contact information for direct reservation deals. This is free text entered by + # the publisher + # and may include information like names, phone numbers and email addresses. + # Corresponds to the JSON property `directDealsContact` + # @return [String] + attr_accessor :direct_deals_contact + + # Name of the publisher profile. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The list of domains represented in this publisher profile. Empty if this is a + # parent profile. + # These are top private domains, meaning that these will not contain a string + # like + # "photos.google.co.uk/123", but will instead contain "google.co.uk". + # Corresponds to the JSON property `domains` + # @return [Array] + attr_accessor :domains + + # URL to publisher's Google+ page. + # Corresponds to the JSON property `googlePlusUrl` + # @return [String] + attr_accessor :google_plus_url + + # A Google public URL to the logo for this publisher profile. The logo is stored + # as + # a PNG, JPG, or GIF image. + # Corresponds to the JSON property `logoUrl` + # @return [String] + attr_accessor :logo_url + + # URL to additional marketing and sales materials. + # Corresponds to the JSON property `mediaKitUrl` + # @return [String] + attr_accessor :media_kit_url + + # Overview of the publisher. + # Corresponds to the JSON property `overview` + # @return [String] + attr_accessor :overview + + # Contact information for programmatic deals. This is free text entered by the + # publisher + # and may include information like names, phone numbers and email addresses. + # Corresponds to the JSON property `programmaticDealsContact` + # @return [String] + attr_accessor :programmatic_deals_contact + + # Unique ID for publisher profile. + # Corresponds to the JSON property `publisherProfileId` + # @return [String] + attr_accessor :publisher_profile_id + + # URL to a publisher rate card. + # Corresponds to the JSON property `rateCardInfoUrl` + # @return [String] + attr_accessor :rate_card_info_url + + # URL to a sample content page. + # Corresponds to the JSON property `samplePageUrl` + # @return [String] + attr_accessor :sample_page_url + + # Represents a seller of inventory. Each seller is identified by a unique + # Ad Exchange account ID. + # Corresponds to the JSON property `seller` + # @return [Google::Apis::Adexchangebuyer2V2beta1::Seller] + attr_accessor :seller + + # Up to three key metrics and rankings. Max 100 characters each. + # For example "#1 Mobile News Site for 20 Straight Months". + # Corresponds to the JSON property `topHeadlines` + # @return [Array] + attr_accessor :top_headlines + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @audience_description = args[:audience_description] if args.key?(:audience_description) + @buyer_pitch_statement = args[:buyer_pitch_statement] if args.key?(:buyer_pitch_statement) + @direct_deals_contact = args[:direct_deals_contact] if args.key?(:direct_deals_contact) + @display_name = args[:display_name] if args.key?(:display_name) + @domains = args[:domains] if args.key?(:domains) + @google_plus_url = args[:google_plus_url] if args.key?(:google_plus_url) + @logo_url = args[:logo_url] if args.key?(:logo_url) + @media_kit_url = args[:media_kit_url] if args.key?(:media_kit_url) + @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) + @rate_card_info_url = args[:rate_card_info_url] if args.key?(:rate_card_info_url) + @sample_page_url = args[:sample_page_url] if args.key?(:sample_page_url) + @seller = args[:seller] if args.key?(:seller) + @top_headlines = args[:top_headlines] if args.key?(:top_headlines) + 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. @@ -1983,6 +3682,20 @@ module Google end end + # Request message to resume (unpause) serving for an already-finalized + # proposal. + class ResumeProposalRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # A response may include multiple rows, breaking down along various dimensions. # Encapsulates the values of all dimensions for a given row. class RowDimensions @@ -2022,6 +3735,33 @@ module Google end end + # Represents a seller of inventory. Each seller is identified by a unique + # Ad Exchange account ID. + class Seller + include Google::Apis::Core::Hashable + + # The unique ID for the seller. The seller fills in this field. + # The seller account ID is then available to buyer in the product. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # Optional sub-account ID for the seller. + # Corresponds to the JSON property `subAccountId` + # @return [String] + attr_accessor :sub_account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @sub_account_id = args[:sub_account_id] if args.key?(:sub_account_id) + end + end + # The serving context for this restriction. class ServingContext include Google::Apis::Core::Hashable @@ -2119,6 +3859,32 @@ module Google end end + # Message depicting the size of the creative. The units of width and + # height depend on the type of the targeting. + class Size + include Google::Apis::Core::Hashable + + # The height of the creative. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # The width of the creative + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] if args.key?(:height) + @width = args[:width] if args.key?(:width) + end + end + # A request for stopping notifications for changes to creative Status. class StopWatchingCreativeRequest include Google::Apis::Core::Hashable @@ -2132,6 +3898,115 @@ module Google end end + # Advertisers can target different attributes of an ad slot. For example, + # they can choose to show ads only if the user is in the U.S. Such + # targeting criteria can be specified as part of Shared Targeting. + class TargetingCriteria + include Google::Apis::Core::Hashable + + # The list of values to exclude from targeting. Each value is AND'd + # together. + # Corresponds to the JSON property `exclusions` + # @return [Array] + attr_accessor :exclusions + + # The list of value to include as part of the targeting. Each value is OR'd + # together. + # Corresponds to the JSON property `inclusions` + # @return [Array] + attr_accessor :inclusions + + # The key representing the shared targeting criterion. + # Targeting criteria defined by Google ad servers will begin with GOOG_. + # Third parties may define their own keys. + # A list of permissible keys along with the acceptable values will be + # provided as part of the external documentation. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @exclusions = args[:exclusions] if args.key?(:exclusions) + @inclusions = args[:inclusions] if args.key?(:inclusions) + @key = args[:key] if args.key?(:key) + end + end + + # A polymorphic targeting value used as part of Shared Targeting. + class TargetingValue + include Google::Apis::Core::Hashable + + # Specifies the size of the creative. + # Corresponds to the JSON property `creativeSizeValue` + # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeSize] + attr_accessor :creative_size_value + + # Specifies the day part targeting criteria. + # Corresponds to the JSON property `dayPartTargetingValue` + # @return [Google::Apis::Adexchangebuyer2V2beta1::DayPartTargeting] + attr_accessor :day_part_targeting_value + + # The long value to include/exclude. + # Corresponds to the JSON property `longValue` + # @return [Fixnum] + attr_accessor :long_value + + # The string value to include/exclude. + # Corresponds to the JSON property `stringValue` + # @return [String] + attr_accessor :string_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_size_value = args[:creative_size_value] if args.key?(:creative_size_value) + @day_part_targeting_value = args[:day_part_targeting_value] if args.key?(:day_part_targeting_value) + @long_value = args[:long_value] if args.key?(:long_value) + @string_value = args[:string_value] if args.key?(:string_value) + end + end + + # Represents targeting about various types of technology. + class TechnologyTargeting + include Google::Apis::Core::Hashable + + # Generic targeting used for targeting dimensions that contains a list of + # included and excluded numeric IDs. + # Corresponds to the JSON property `deviceCapabilityTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting] + attr_accessor :device_capability_targeting + + # Generic targeting used for targeting dimensions that contains a list of + # included and excluded numeric IDs. + # Corresponds to the JSON property `deviceCategoryTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting] + attr_accessor :device_category_targeting + + # Represents targeting information for operating systems. + # Corresponds to the JSON property `operatingSystemTargeting` + # @return [Google::Apis::Adexchangebuyer2V2beta1::OperatingSystemTargeting] + attr_accessor :operating_system_targeting + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device_capability_targeting = args[:device_capability_targeting] if args.key?(:device_capability_targeting) + @device_category_targeting = args[:device_category_targeting] if args.key?(:device_category_targeting) + @operating_system_targeting = args[:operating_system_targeting] if args.key?(:operating_system_targeting) + end + end + # An interval of time, with an absolute start and end. class TimeInterval include Google::Apis::Core::Hashable @@ -2159,6 +4034,75 @@ module Google end end + # Represents a time of day. The date and time zone are either not significant + # or are specified elsewhere. An API may choose to allow leap seconds. Related + # types are google.type.Date and `google.protobuf.Timestamp`. + class TimeOfDay + include Google::Apis::Core::Hashable + + # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose + # to allow the value "24:00:00" for scenarios like business closing time. + # Corresponds to the JSON property `hours` + # @return [Fixnum] + attr_accessor :hours + + # Minutes of hour of day. Must be from 0 to 59. + # Corresponds to the JSON property `minutes` + # @return [Fixnum] + attr_accessor :minutes + + # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. + # Corresponds to the JSON property `nanos` + # @return [Fixnum] + attr_accessor :nanos + + # Seconds of minutes of the time. Must normally be from 0 to 59. An API may + # allow the value 60 if it allows leap-seconds. + # Corresponds to the JSON property `seconds` + # @return [Fixnum] + attr_accessor :seconds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hours = args[:hours] if args.key?(:hours) + @minutes = args[:minutes] if args.key?(:minutes) + @nanos = args[:nanos] if args.key?(:nanos) + @seconds = args[:seconds] if args.key?(:seconds) + end + end + + # Represents a list of targeted and excluded URLs (e.g google.com). + # For Private Auction and AdX Preferred Deals, URLs are either included or + # excluded. + # For DFP Programmatic Guaranteed and Preferred Deals, this doesn't apply. + class UrlTargeting + include Google::Apis::Core::Hashable + + # A list of URLs to be excluded. + # Corresponds to the JSON property `excludedUrls` + # @return [Array] + attr_accessor :excluded_urls + + # A list of URLs to be included. + # Corresponds to the JSON property `targetedUrls` + # @return [Array] + attr_accessor :targeted_urls + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @excluded_urls = args[:excluded_urls] if args.key?(:excluded_urls) + @targeted_urls = args[:targeted_urls] if args.key?(:targeted_urls) + end + end + # Video content for a creative. class VideoContent include Google::Apis::Core::Hashable @@ -2185,6 +4129,34 @@ module Google end end + # Represents targeting information about video. + class VideoTargeting + include Google::Apis::Core::Hashable + + # A list of video positions to be excluded. + # Position types can either be included or excluded (XOR). + # Corresponds to the JSON property `excludedPositionTypes` + # @return [Array] + attr_accessor :excluded_position_types + + # A list of video positions to be included. + # When the included list is present, the excluded list must be empty. + # When the excluded list is present, the included list must be empty. + # Corresponds to the JSON property `targetedPositionTypes` + # @return [Array] + attr_accessor :targeted_position_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @excluded_position_types = args[:excluded_position_types] if args.key?(:excluded_position_types) + @targeted_position_types = args[:targeted_position_types] if args.key?(:targeted_position_types) + end + end + # A request for watching changes to creative Status. class WatchCreativeRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb index 24e914ebc..000ae565c 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb @@ -28,12 +28,30 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AcceptProposalRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdSize + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AddDealAssociationRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class AddNoteRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AppContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,12 +76,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Buyer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CalloutStatusRow class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CancelNegotiationRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Client class Representation < Google::Apis::Core::JsonRepresentation; end @@ -82,6 +112,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CompleteSetupRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContactInformation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Correction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -100,18 +142,84 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class CreativeRestrictions + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeSize + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class CreativeSpecification + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CreativeStatusRow class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CriteriaTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Date class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DayPart + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DayPartTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Deal + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DealPauseStatus + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DealServingMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DealTerms + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class DeliveryControl + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Disapproval class Representation < Google::Apis::Core::JsonRepresentation; end @@ -148,6 +256,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class FirstPartyMobileApplicationTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class FrequencyCap + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GuaranteedFixedPriceTerms + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class HtmlContent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -166,6 +292,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InventorySizeTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListBidMetricsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -262,18 +394,54 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListProductsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListProposalsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ListPublisherProfilesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LocationContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class MarketplaceTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MetricValue class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class MobileApplicationTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Money + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NativeContent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -286,12 +454,84 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NonGuaranteedAuctionTerms + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class NonGuaranteedFixedPriceTerms + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Note + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class OperatingSystemTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PauseProposalRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PlacementTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PlatformContext class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Price + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PricePerBuyer + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PrivateData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Product + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class Proposal + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PublisherProfile + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RealtimeTimeRange class Representation < Google::Apis::Core::JsonRepresentation; end @@ -316,6 +556,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ResumeProposalRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RowDimensions class Representation < Google::Apis::Core::JsonRepresentation; end @@ -328,6 +574,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Seller + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ServingContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -340,24 +592,66 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Size + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class StopWatchingCreativeRequest class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class TargetingCriteria + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TargetingValue + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class TechnologyTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TimeInterval class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class TimeOfDay + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UrlTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VideoContent class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class VideoTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WatchCreativeRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -374,6 +668,22 @@ module Google end end + class AcceptProposalRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :proposal_revision, :numeric_string => true, as: 'proposalRevision' + end + end + + class AdSize + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, :numeric_string => true, as: 'height' + property :size_type, as: 'sizeType' + property :width, :numeric_string => true, as: 'width' + end + end + class AddDealAssociationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -382,6 +692,14 @@ module Google end end + class AddNoteRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :note, as: 'note', class: Google::Apis::Adexchangebuyer2V2beta1::Note, decorator: Google::Apis::Adexchangebuyer2V2beta1::Note::Representation + + end + end + class AppContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -427,6 +745,13 @@ module Google end end + class Buyer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + end + end + class CalloutStatusRow # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -438,6 +763,12 @@ module Google end end + class CancelNegotiationRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Client # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -472,6 +803,20 @@ module Google end end + class CompleteSetupRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ContactInformation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :name, as: 'name' + end + end + class Correction # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -529,6 +874,40 @@ module Google end end + class CreativeRestrictions + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creative_format, as: 'creativeFormat' + collection :creative_specifications, as: 'creativeSpecifications', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeSpecification, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeSpecification::Representation + + property :skippable_ad_type, as: 'skippableAdType' + end + end + + class CreativeSize + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :allowed_formats, as: 'allowedFormats' + collection :companion_sizes, as: 'companionSizes', class: Google::Apis::Adexchangebuyer2V2beta1::Size, decorator: Google::Apis::Adexchangebuyer2V2beta1::Size::Representation + + property :creative_size_type, as: 'creativeSizeType' + property :native_template, as: 'nativeTemplate' + property :size, as: 'size', class: Google::Apis::Adexchangebuyer2V2beta1::Size, decorator: Google::Apis::Adexchangebuyer2V2beta1::Size::Representation + + property :skippable_ad_type, as: 'skippableAdType' + end + end + + class CreativeSpecification + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :creative_companion_sizes, as: 'creativeCompanionSizes', class: Google::Apis::Adexchangebuyer2V2beta1::AdSize, decorator: Google::Apis::Adexchangebuyer2V2beta1::AdSize::Representation + + property :creative_size, as: 'creativeSize', class: Google::Apis::Adexchangebuyer2V2beta1::AdSize, decorator: Google::Apis::Adexchangebuyer2V2beta1::AdSize::Representation + + end + end + class CreativeStatusRow # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -540,6 +919,14 @@ module Google end end + class CriteriaTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :excluded_criteria_ids, as: 'excludedCriteriaIds' + collection :targeted_criteria_ids, as: 'targetedCriteriaIds' + end + end + class Date # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -549,6 +936,112 @@ module Google end end + class DayPart + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day_of_week, as: 'dayOfWeek' + property :end_time, as: 'endTime', class: Google::Apis::Adexchangebuyer2V2beta1::TimeOfDay, decorator: Google::Apis::Adexchangebuyer2V2beta1::TimeOfDay::Representation + + property :start_time, as: 'startTime', class: Google::Apis::Adexchangebuyer2V2beta1::TimeOfDay, decorator: Google::Apis::Adexchangebuyer2V2beta1::TimeOfDay::Representation + + end + end + + class DayPartTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :day_parts, as: 'dayParts', class: Google::Apis::Adexchangebuyer2V2beta1::DayPart, decorator: Google::Apis::Adexchangebuyer2V2beta1::DayPart::Representation + + property :time_zone_type, as: 'timeZoneType' + end + end + + class Deal + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :available_end_time, as: 'availableEndTime' + property :available_start_time, as: 'availableStartTime' + property :buyer_private_data, as: 'buyerPrivateData', class: Google::Apis::Adexchangebuyer2V2beta1::PrivateData, decorator: Google::Apis::Adexchangebuyer2V2beta1::PrivateData::Representation + + property :create_product_id, as: 'createProductId' + property :create_product_revision, :numeric_string => true, as: 'createProductRevision' + property :create_time, as: 'createTime' + property :creative_pre_approval_policy, as: 'creativePreApprovalPolicy' + property :creative_restrictions, as: 'creativeRestrictions', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeRestrictions, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeRestrictions::Representation + + property :creative_safe_frame_compatibility, as: 'creativeSafeFrameCompatibility' + property :deal_id, as: 'dealId' + property :deal_serving_metadata, as: 'dealServingMetadata', class: Google::Apis::Adexchangebuyer2V2beta1::DealServingMetadata, decorator: Google::Apis::Adexchangebuyer2V2beta1::DealServingMetadata::Representation + + property :deal_terms, as: 'dealTerms', class: Google::Apis::Adexchangebuyer2V2beta1::DealTerms, decorator: Google::Apis::Adexchangebuyer2V2beta1::DealTerms::Representation + + property :delivery_control, as: 'deliveryControl', class: Google::Apis::Adexchangebuyer2V2beta1::DeliveryControl, decorator: Google::Apis::Adexchangebuyer2V2beta1::DeliveryControl::Representation + + property :description, as: 'description' + property :display_name, as: 'displayName' + property :external_deal_id, as: 'externalDealId' + property :is_setup_complete, as: 'isSetupComplete' + property :programmatic_creative_source, as: 'programmaticCreativeSource' + property :proposal_id, as: 'proposalId' + collection :seller_contacts, as: 'sellerContacts', class: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation::Representation + + property :syndication_product, as: 'syndicationProduct' + property :targeting, as: 'targeting', class: Google::Apis::Adexchangebuyer2V2beta1::MarketplaceTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::MarketplaceTargeting::Representation + + collection :targeting_criterion, as: 'targetingCriterion', class: Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria, decorator: Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria::Representation + + property :update_time, as: 'updateTime' + property :web_property_code, as: 'webPropertyCode' + end + end + + class DealPauseStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :buyer_pause_reason, as: 'buyerPauseReason' + property :first_paused_by, as: 'firstPausedBy' + property :has_buyer_paused, as: 'hasBuyerPaused' + property :has_seller_paused, as: 'hasSellerPaused' + property :seller_pause_reason, as: 'sellerPauseReason' + end + end + + class DealServingMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :deal_pause_status, as: 'dealPauseStatus', class: Google::Apis::Adexchangebuyer2V2beta1::DealPauseStatus, decorator: Google::Apis::Adexchangebuyer2V2beta1::DealPauseStatus::Representation + + end + end + + class DealTerms + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :branding_type, as: 'brandingType' + property :description, as: 'description' + property :estimated_gross_spend, as: 'estimatedGrossSpend', class: Google::Apis::Adexchangebuyer2V2beta1::Price, decorator: Google::Apis::Adexchangebuyer2V2beta1::Price::Representation + + property :estimated_impressions_per_day, :numeric_string => true, as: 'estimatedImpressionsPerDay' + property :guaranteed_fixed_price_terms, as: 'guaranteedFixedPriceTerms', class: Google::Apis::Adexchangebuyer2V2beta1::GuaranteedFixedPriceTerms, decorator: Google::Apis::Adexchangebuyer2V2beta1::GuaranteedFixedPriceTerms::Representation + + property :non_guaranteed_auction_terms, as: 'nonGuaranteedAuctionTerms', class: Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedAuctionTerms, decorator: Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedAuctionTerms::Representation + + property :non_guaranteed_fixed_price_terms, as: 'nonGuaranteedFixedPriceTerms', class: Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedFixedPriceTerms, decorator: Google::Apis::Adexchangebuyer2V2beta1::NonGuaranteedFixedPriceTerms::Representation + + property :seller_time_zone, as: 'sellerTimeZone' + end + end + + class DeliveryControl + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creative_blocking_level, as: 'creativeBlockingLevel' + property :delivery_rate_type, as: 'deliveryRateType' + collection :frequency_caps, as: 'frequencyCaps', class: Google::Apis::Adexchangebuyer2V2beta1::FrequencyCap, decorator: Google::Apis::Adexchangebuyer2V2beta1::FrequencyCap::Representation + + end + end + class Disapproval # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -616,6 +1109,34 @@ module Google end end + class FirstPartyMobileApplicationTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :excluded_app_ids, as: 'excludedAppIds' + collection :targeted_app_ids, as: 'targetedAppIds' + end + end + + class FrequencyCap + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_impressions, as: 'maxImpressions' + property :num_time_units, as: 'numTimeUnits' + property :time_unit_type, as: 'timeUnitType' + end + end + + class GuaranteedFixedPriceTerms + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :fixed_prices, as: 'fixedPrices', class: Google::Apis::Adexchangebuyer2V2beta1::PricePerBuyer, decorator: Google::Apis::Adexchangebuyer2V2beta1::PricePerBuyer::Representation + + property :guaranteed_impressions, :numeric_string => true, as: 'guaranteedImpressions' + property :guaranteed_looks, :numeric_string => true, as: 'guaranteedLooks' + property :minimum_daily_looks, :numeric_string => true, as: 'minimumDailyLooks' + end + end + class HtmlContent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -652,6 +1173,16 @@ module Google end end + class InventorySizeTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :excluded_inventory_sizes, as: 'excludedInventorySizes', class: Google::Apis::Adexchangebuyer2V2beta1::AdSize, decorator: Google::Apis::Adexchangebuyer2V2beta1::AdSize::Representation + + collection :targeted_inventory_sizes, as: 'targetedInventorySizes', class: Google::Apis::Adexchangebuyer2V2beta1::AdSize, decorator: Google::Apis::Adexchangebuyer2V2beta1::AdSize::Representation + + end + end + class ListBidMetricsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -797,6 +1328,33 @@ module Google end end + class ListProductsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :products, as: 'products', class: Google::Apis::Adexchangebuyer2V2beta1::Product, decorator: Google::Apis::Adexchangebuyer2V2beta1::Product::Representation + + end + end + + class ListProposalsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :proposals, as: 'proposals', class: Google::Apis::Adexchangebuyer2V2beta1::Proposal, decorator: Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + + end + end + + class ListPublisherProfilesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :publisher_profiles, as: 'publisherProfiles', class: Google::Apis::Adexchangebuyer2V2beta1::PublisherProfile, decorator: Google::Apis::Adexchangebuyer2V2beta1::PublisherProfile::Representation + + end + end + class LocationContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -804,6 +1362,22 @@ module Google end end + class MarketplaceTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :geo_targeting, as: 'geoTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting::Representation + + property :inventory_size_targeting, as: 'inventorySizeTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::InventorySizeTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::InventorySizeTargeting::Representation + + property :placement_targeting, as: 'placementTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::PlacementTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlacementTargeting::Representation + + property :technology_targeting, as: 'technologyTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::TechnologyTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::TechnologyTargeting::Representation + + property :video_targeting, as: 'videoTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::VideoTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoTargeting::Representation + + end + end + class MetricValue # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -812,6 +1386,23 @@ module Google end end + class MobileApplicationTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :first_party_targeting, as: 'firstPartyTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::FirstPartyMobileApplicationTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::FirstPartyMobileApplicationTargeting::Representation + + end + end + + class Money + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :currency_code, as: 'currencyCode' + property :nanos, as: 'nanos' + property :units, :numeric_string => true, as: 'units' + end + end + class NativeContent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -845,6 +1436,61 @@ module Google end end + class NonGuaranteedAuctionTerms + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :auto_optimize_private_auction, as: 'autoOptimizePrivateAuction' + collection :reserve_prices_per_buyer, as: 'reservePricesPerBuyer', class: Google::Apis::Adexchangebuyer2V2beta1::PricePerBuyer, decorator: Google::Apis::Adexchangebuyer2V2beta1::PricePerBuyer::Representation + + end + end + + class NonGuaranteedFixedPriceTerms + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :fixed_prices, as: 'fixedPrices', class: Google::Apis::Adexchangebuyer2V2beta1::PricePerBuyer, decorator: Google::Apis::Adexchangebuyer2V2beta1::PricePerBuyer::Representation + + end + end + + class Note + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :creator_role, as: 'creatorRole' + property :note, as: 'note' + property :note_id, as: 'noteId' + property :proposal_revision, :numeric_string => true, as: 'proposalRevision' + end + end + + class OperatingSystemTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :operating_system_criteria, as: 'operatingSystemCriteria', class: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting::Representation + + property :operating_system_version_criteria, as: 'operatingSystemVersionCriteria', class: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting::Representation + + end + end + + class PauseProposalRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reason, as: 'reason' + end + end + + class PlacementTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :mobile_application_targeting, as: 'mobileApplicationTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::MobileApplicationTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::MobileApplicationTargeting::Representation + + property :url_targeting, as: 'urlTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::UrlTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::UrlTargeting::Representation + + end + end + class PlatformContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -852,6 +1498,112 @@ module Google end end + class Price + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount, as: 'amount', class: Google::Apis::Adexchangebuyer2V2beta1::Money, decorator: Google::Apis::Adexchangebuyer2V2beta1::Money::Representation + + property :pricing_type, as: 'pricingType' + end + end + + class PricePerBuyer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :advertiser_ids, as: 'advertiserIds' + property :buyer, as: 'buyer', class: Google::Apis::Adexchangebuyer2V2beta1::Buyer, decorator: Google::Apis::Adexchangebuyer2V2beta1::Buyer::Representation + + property :price, as: 'price', class: Google::Apis::Adexchangebuyer2V2beta1::Price, decorator: Google::Apis::Adexchangebuyer2V2beta1::Price::Representation + + end + end + + class PrivateData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reference_id, as: 'referenceId' + end + end + + class Product + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :available_end_time, as: 'availableEndTime' + property :available_start_time, as: 'availableStartTime' + property :create_time, as: 'createTime' + collection :creator_contacts, as: 'creatorContacts', class: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation::Representation + + property :display_name, as: 'displayName' + property :has_creator_signed_off, as: 'hasCreatorSignedOff' + property :product_id, as: 'productId' + property :product_revision, :numeric_string => true, as: 'productRevision' + property :publisher_profile_id, as: 'publisherProfileId' + property :seller, as: 'seller', class: Google::Apis::Adexchangebuyer2V2beta1::Seller, decorator: Google::Apis::Adexchangebuyer2V2beta1::Seller::Representation + + property :syndication_product, as: 'syndicationProduct' + collection :targeting_criterion, as: 'targetingCriterion', class: Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria, decorator: Google::Apis::Adexchangebuyer2V2beta1::TargetingCriteria::Representation + + property :terms, as: 'terms', class: Google::Apis::Adexchangebuyer2V2beta1::DealTerms, decorator: Google::Apis::Adexchangebuyer2V2beta1::DealTerms::Representation + + property :update_time, as: 'updateTime' + property :web_property_code, as: 'webPropertyCode' + end + end + + class Proposal + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :billed_buyer, as: 'billedBuyer', class: Google::Apis::Adexchangebuyer2V2beta1::Buyer, decorator: Google::Apis::Adexchangebuyer2V2beta1::Buyer::Representation + + property :buyer, as: 'buyer', class: Google::Apis::Adexchangebuyer2V2beta1::Buyer, decorator: Google::Apis::Adexchangebuyer2V2beta1::Buyer::Representation + + collection :buyer_contacts, as: 'buyerContacts', class: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation::Representation + + property :buyer_private_data, as: 'buyerPrivateData', class: Google::Apis::Adexchangebuyer2V2beta1::PrivateData, decorator: Google::Apis::Adexchangebuyer2V2beta1::PrivateData::Representation + + collection :deals, as: 'deals', class: Google::Apis::Adexchangebuyer2V2beta1::Deal, decorator: Google::Apis::Adexchangebuyer2V2beta1::Deal::Representation + + property :display_name, as: 'displayName' + property :is_renegotiating, as: 'isRenegotiating' + property :is_setup_complete, as: 'isSetupComplete' + property :last_updater_or_commentor_role, as: 'lastUpdaterOrCommentorRole' + collection :notes, as: 'notes', class: Google::Apis::Adexchangebuyer2V2beta1::Note, decorator: Google::Apis::Adexchangebuyer2V2beta1::Note::Representation + + property :originator_role, as: 'originatorRole' + property :private_auction_id, as: 'privateAuctionId' + property :proposal_id, as: 'proposalId' + property :proposal_revision, :numeric_string => true, as: 'proposalRevision' + property :proposal_state, as: 'proposalState' + property :seller, as: 'seller', class: Google::Apis::Adexchangebuyer2V2beta1::Seller, decorator: Google::Apis::Adexchangebuyer2V2beta1::Seller::Representation + + collection :seller_contacts, as: 'sellerContacts', class: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ContactInformation::Representation + + property :update_time, as: 'updateTime' + end + end + + class PublisherProfile + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :audience_description, as: 'audienceDescription' + property :buyer_pitch_statement, as: 'buyerPitchStatement' + property :direct_deals_contact, as: 'directDealsContact' + property :display_name, as: 'displayName' + collection :domains, as: 'domains' + property :google_plus_url, as: 'googlePlusUrl' + property :logo_url, as: 'logoUrl' + property :media_kit_url, as: 'mediaKitUrl' + property :overview, as: 'overview' + property :programmatic_deals_contact, as: 'programmaticDealsContact' + property :publisher_profile_id, as: 'publisherProfileId' + property :rate_card_info_url, as: 'rateCardInfoUrl' + property :sample_page_url, as: 'samplePageUrl' + property :seller, as: 'seller', class: Google::Apis::Adexchangebuyer2V2beta1::Seller, decorator: Google::Apis::Adexchangebuyer2V2beta1::Seller::Representation + + collection :top_headlines, as: 'topHeadlines' + end + end + class RealtimeTimeRange # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -883,6 +1635,12 @@ module Google end end + class ResumeProposalRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class RowDimensions # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -898,6 +1656,14 @@ module Google end end + class Seller + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :sub_account_id, as: 'subAccountId' + end + end + class ServingContext # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -928,12 +1694,55 @@ module Google end end + class Size + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :width, as: 'width' + end + end + class StopWatchingCreativeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation end end + class TargetingCriteria + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exclusions, as: 'exclusions', class: Google::Apis::Adexchangebuyer2V2beta1::TargetingValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::TargetingValue::Representation + + collection :inclusions, as: 'inclusions', class: Google::Apis::Adexchangebuyer2V2beta1::TargetingValue, decorator: Google::Apis::Adexchangebuyer2V2beta1::TargetingValue::Representation + + property :key, as: 'key' + end + end + + class TargetingValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creative_size_value, as: 'creativeSizeValue', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeSize, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeSize::Representation + + property :day_part_targeting_value, as: 'dayPartTargetingValue', class: Google::Apis::Adexchangebuyer2V2beta1::DayPartTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::DayPartTargeting::Representation + + property :long_value, :numeric_string => true, as: 'longValue' + property :string_value, as: 'stringValue' + end + end + + class TechnologyTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device_capability_targeting, as: 'deviceCapabilityTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting::Representation + + property :device_category_targeting, as: 'deviceCategoryTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::CriteriaTargeting::Representation + + property :operating_system_targeting, as: 'operatingSystemTargeting', class: Google::Apis::Adexchangebuyer2V2beta1::OperatingSystemTargeting, decorator: Google::Apis::Adexchangebuyer2V2beta1::OperatingSystemTargeting::Representation + + end + end + class TimeInterval # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -942,6 +1751,24 @@ module Google end end + class TimeOfDay + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hours, as: 'hours' + property :minutes, as: 'minutes' + property :nanos, as: 'nanos' + property :seconds, as: 'seconds' + end + end + + class UrlTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :excluded_urls, as: 'excludedUrls' + collection :targeted_urls, as: 'targetedUrls' + end + end + class VideoContent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -950,6 +1777,14 @@ module Google end end + class VideoTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :excluded_position_types, as: 'excludedPositionTypes' + collection :targeted_position_types, as: 'targetedPositionTypes' + end + end + class WatchCreativeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb index a6803dd5a..d78b8ba68 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1/service.rb @@ -839,6 +839,610 @@ module Google execute_or_queue_command(command, &block) end + # List finalized proposals, regardless if a proposal is being renegotiated. + # A filter expression (PQL query) may be specified to filter the results. + # The notes will not be returned. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] filter + # An optional PQL filter query used to query for proposals. + # Nested repeated fields, such as proposal.deals.targetingCriterion, + # cannot be filtered. + # @param [String] filter_syntax + # Syntax the filter is written in. Current implementation defaults to PQL + # but in the future it will be LIST_FILTER. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] page_token + # The page token as returned from ListProposalsResponse. + # @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::Adexchangebuyer2V2beta1::ListProposalsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse] + # + # @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_account_finalized_proposals(account_id, filter: nil, filter_syntax: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/finalizedProposals', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.query['filter'] = filter unless filter.nil? + command.query['filterSyntax'] = filter_syntax unless filter_syntax.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the requested product by ID. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] product_id + # The ID for the product to get the head revision for. + # @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::Adexchangebuyer2V2beta1::Product] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Product] + # + # @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_account_product(account_id, product_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/products/{productId}', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Product::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Product + command.params['accountId'] = account_id unless account_id.nil? + command.params['productId'] = product_id unless product_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 + + # List all products visible to the buyer (optionally filtered by the + # specified PQL query). + # @param [String] account_id + # Account ID of the buyer. + # @param [String] filter + # An optional PQL query used to query for products. See + # https://developers.google.com/doubleclick-publishers/docs/pqlreference + # for documentation about PQL and examples. + # Nested repeated fields, such as product.targetingCriterion.inclusions, + # cannot be filtered. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] page_token + # The page token as returned from ListProductsResponse. + # @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::Adexchangebuyer2V2beta1::ListProductsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListProductsResponse] + # + # @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_account_products(account_id, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/products', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListProductsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListProductsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Mark the proposal as accepted at the given revision number. If the number + # does not match the server's revision number an `ABORTED` error message will + # be returned. This call updates the proposal_state from `PROPOSED` to + # `BUYER_ACCEPTED`, or from `SELLER_ACCEPTED` to `FINALIZED`. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] proposal_id + # The ID of the proposal to accept. + # @param [Google::Apis::Adexchangebuyer2V2beta1::AcceptProposalRequest] accept_proposal_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal] + # + # @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 accept_proposal(account_id, proposal_id, accept_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:accept', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AcceptProposalRequest::Representation + command.request_object = accept_proposal_request_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal + command.params['accountId'] = account_id unless account_id.nil? + command.params['proposalId'] = proposal_id unless proposal_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 + + # Create a new note and attach it to the proposal. The note is assigned + # a unique ID by the server. + # The proposal revision number will not increase when associated with a + # new note. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] proposal_id + # The ID of the proposal to attach the note to. + # @param [Google::Apis::Adexchangebuyer2V2beta1::AddNoteRequest] add_note_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::Adexchangebuyer2V2beta1::Note] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Note] + # + # @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 add_proposal_note(account_id, proposal_id, add_note_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:addNote', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddNoteRequest::Representation + command.request_object = add_note_request_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Note::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Note + command.params['accountId'] = account_id unless account_id.nil? + command.params['proposalId'] = proposal_id unless proposal_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 + + # Cancel an ongoing negotiation on a proposal. This does not cancel or end + # serving for the deals if the proposal has been finalized, but only cancels + # a negotiation unilaterally. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] proposal_id + # The ID of the proposal to cancel negotiation for. + # @param [Google::Apis::Adexchangebuyer2V2beta1::CancelNegotiationRequest] cancel_negotiation_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::Adexchangebuyer2V2beta1::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal] + # + # @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 cancel_proposal_negotiation(account_id, proposal_id, cancel_negotiation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:cancelNegotiation', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::CancelNegotiationRequest::Representation + command.request_object = cancel_negotiation_request_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal + command.params['accountId'] = account_id unless account_id.nil? + command.params['proposalId'] = proposal_id unless proposal_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 + + # Update the given proposal to indicate that setup has been completed. + # This method is called by the buyer when the line items have been created + # on their end for a finalized proposal and all the required creatives + # have been uploaded using the creatives API. This call updates the + # `is_setup_completed` bit on the proposal and also notifies the seller. + # The server will advance the revision number of the most recent proposal. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] proposal_id + # The ID of the proposal to mark as setup completed. + # @param [Google::Apis::Adexchangebuyer2V2beta1::CompleteSetupRequest] complete_setup_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::Adexchangebuyer2V2beta1::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal] + # + # @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 complete_proposal_setup(account_id, proposal_id, complete_setup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:completeSetup', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::CompleteSetupRequest::Representation + command.request_object = complete_setup_request_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal + command.params['accountId'] = account_id unless account_id.nil? + command.params['proposalId'] = proposal_id unless proposal_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 + + # Create the given proposal. Each created proposal and any deals it contains + # are assigned a unique ID by the server. + # @param [String] account_id + # Account ID of the buyer. + # @param [Google::Apis::Adexchangebuyer2V2beta1::Proposal] proposal_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::Adexchangebuyer2V2beta1::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal] + # + # @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_account_proposal(account_id, proposal_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.request_object = proposal_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal + command.params['accountId'] = account_id unless account_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 a proposal given its ID. The proposal is returned at its head + # revision. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] proposal_id + # The unique ID of the proposal + # @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::Adexchangebuyer2V2beta1::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal] + # + # @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_account_proposal(account_id, proposal_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/proposals/{proposalId}', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal + command.params['accountId'] = account_id unless account_id.nil? + command.params['proposalId'] = proposal_id unless proposal_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 + + # List proposals. A filter expression (PQL query) may be specified to + # filter the results. To retrieve all finalized proposals, regardless if a + # proposal is being renegotiated, see the FinalizedProposals resource. + # Note that Bidder/ChildSeat relationships differ from the usual behavior. + # A Bidder account can only see its child seats' proposals by specifying + # the ChildSeat's accountId in the request path. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] filter + # An optional PQL filter query used to query for proposals. + # Nested repeated fields, such as proposal.deals.targetingCriterion, + # cannot be filtered. + # @param [String] filter_syntax + # Syntax the filter is written in. Current implementation defaults to PQL + # but in the future it will be LIST_FILTER. + # @param [Fixnum] page_size + # Requested page size. The server may return fewer results than requested. + # If unspecified, the server will pick an appropriate default. + # @param [String] page_token + # The page token as returned from ListProposalsResponse. + # @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::Adexchangebuyer2V2beta1::ListProposalsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse] + # + # @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_account_proposals(account_id, filter: nil, filter_syntax: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/proposals', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListProposalsResponse + command.params['accountId'] = account_id unless account_id.nil? + command.query['filter'] = filter unless filter.nil? + command.query['filterSyntax'] = filter_syntax unless filter_syntax.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Update the given proposal to pause serving. + # This method will set the + # `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all + # deals in the proposal. + # It is a no-op to pause an already-paused proposal. + # It is an error to call PauseProposal for a proposal that is not + # finalized or renegotiating. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] proposal_id + # The ID of the proposal to pause. + # @param [Google::Apis::Adexchangebuyer2V2beta1::PauseProposalRequest] pause_proposal_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal] + # + # @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 pause_proposal(account_id, proposal_id, pause_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:pause', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::PauseProposalRequest::Representation + command.request_object = pause_proposal_request_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal + command.params['accountId'] = account_id unless account_id.nil? + command.params['proposalId'] = proposal_id unless proposal_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 + + # Update the given proposal to resume serving. + # This method will set the + # `DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all + # deals in the proposal. + # Note that if the `has_seller_paused` bit is also set, serving will not + # resume until the seller also resumes. + # It is a no-op to resume an already-running proposal. + # It is an error to call ResumeProposal for a proposal that is not + # finalized or renegotiating. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] proposal_id + # The ID of the proposal to resume. + # @param [Google::Apis::Adexchangebuyer2V2beta1::ResumeProposalRequest] resume_proposal_request_object + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal] + # + # @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 resume_proposal(account_id, proposal_id, resume_proposal_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/proposals/{proposalId}:resume', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ResumeProposalRequest::Representation + command.request_object = resume_proposal_request_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal + command.params['accountId'] = account_id unless account_id.nil? + command.params['proposalId'] = proposal_id unless proposal_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 + + # Update the given proposal at the client known revision number. If the + # server revision has advanced since the passed-in + # `proposal.proposal_revision`, an `ABORTED` error message will be returned. + # Only the buyer-modifiable fields of the proposal will be updated. + # Note that the deals in the proposal will be updated to match the passed-in + # copy. + # If a passed-in deal does not have a `deal_id`, the server will assign a new + # unique ID and create the deal. + # If passed-in deal has a `deal_id`, it will be updated to match the + # passed-in copy. + # Any existing deals not present in the passed-in proposal will be deleted. + # It is an error to pass in a deal with a `deal_id` not present at head. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] proposal_id + # The unique ID of the proposal. + # @param [Google::Apis::Adexchangebuyer2V2beta1::Proposal] proposal_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::Adexchangebuyer2V2beta1::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal] + # + # @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_account_proposal(account_id, proposal_id, proposal_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/proposals/{proposalId}', options) + command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.request_object = proposal_object + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal + command.params['accountId'] = account_id unless account_id.nil? + command.params['proposalId'] = proposal_id unless proposal_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 requested publisher profile by id. + # @param [String] account_id + # Account ID of the buyer. + # @param [String] publisher_profile_id + # The id for the publisher profile to get. + # @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::Adexchangebuyer2V2beta1::PublisherProfile] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::PublisherProfile] + # + # @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_account_publisher_profile(account_id, publisher_profile_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/publisherProfiles/{publisherProfileId}', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::PublisherProfile::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::PublisherProfile + command.params['accountId'] = account_id unless account_id.nil? + command.params['publisherProfileId'] = publisher_profile_id unless publisher_profile_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 + + # List all publisher profiles visible to the buyer + # @param [String] account_id + # Account ID of the buyer. + # @param [Fixnum] page_size + # Specify the number of results to include per page. + # @param [String] page_token + # The page token as return from ListPublisherProfilesResponse. + # @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::Adexchangebuyer2V2beta1::ListPublisherProfilesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::Adexchangebuyer2V2beta1::ListPublisherProfilesResponse] + # + # @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_account_publisher_profiles(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/publisherProfiles', options) + command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListPublisherProfilesResponse::Representation + command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListPublisherProfilesResponse + command.params['accountId'] = account_id unless account_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Creates the specified filter set for the account with the given account ID. # @param [String] owner_name # Name of the owner (bidder or account) of the filter set to be created. diff --git a/generated/google/apis/adexchangeseller_v1.rb b/generated/google/apis/adexchangeseller_v1.rb deleted file mode 100644 index 639aa435f..000000000 --- a/generated/google/apis/adexchangeseller_v1.rb +++ /dev/null @@ -1,37 +0,0 @@ -# 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/adexchangeseller_v1/service.rb' -require 'google/apis/adexchangeseller_v1/classes.rb' -require 'google/apis/adexchangeseller_v1/representations.rb' - -module Google - module Apis - # Ad Exchange Seller API - # - # Accesses the inventory of Ad Exchange seller users and generates reports. - # - # @see https://developers.google.com/ad-exchange/seller-rest/ - module AdexchangesellerV1 - VERSION = 'V1' - REVISION = '20180708' - - # View and manage your Ad Exchange data - AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' - - # View your Ad Exchange data - AUTH_ADEXCHANGE_SELLER_READONLY = 'https://www.googleapis.com/auth/adexchange.seller.readonly' - end - end -end diff --git a/generated/google/apis/adexchangeseller_v1/classes.rb b/generated/google/apis/adexchangeseller_v1/classes.rb deleted file mode 100644 index 1a16c8509..000000000 --- a/generated/google/apis/adexchangeseller_v1/classes.rb +++ /dev/null @@ -1,557 +0,0 @@ -# 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 AdexchangesellerV1 - - # - class AdClient - include Google::Apis::Core::Hashable - - # Whether this ad client is opted in to ARC. - # Corresponds to the JSON property `arcOptIn` - # @return [Boolean] - attr_accessor :arc_opt_in - alias_method :arc_opt_in?, :arc_opt_in - - # Unique identifier of this ad client. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#adClient. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This ad client's product code, which corresponds to the PRODUCT_CODE report - # dimension. - # Corresponds to the JSON property `productCode` - # @return [String] - attr_accessor :product_code - - # Whether this ad client supports being reported on. - # Corresponds to the JSON property `supportsReporting` - # @return [Boolean] - attr_accessor :supports_reporting - alias_method :supports_reporting?, :supports_reporting - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @product_code = args[:product_code] if args.key?(:product_code) - @supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting) - end - end - - # - class AdClients - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ad clients returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#adClients. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through ad clients. To retrieve the next page - # of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class AdUnit - include Google::Apis::Core::Hashable - - # Identity code of this ad unit, not necessarily unique across ad clients. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # Unique identifier of this ad unit. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#adUnit. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Name of this ad unit. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Status of this ad unit. Possible values are: - # NEW: Indicates that the ad unit was created within the last seven days and - # does not yet have any activity associated with it. - # ACTIVE: Indicates that there has been activity on this ad unit in the last - # seven days. - # INACTIVE: Indicates that there has been no activity on this ad unit in the - # last seven days. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @status = args[:status] if args.key?(:status) - end - end - - # - class AdUnits - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ad units returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#adUnits. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through ad units. To retrieve the next page of - # results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class CustomChannel - include Google::Apis::Core::Hashable - - # Code of this custom channel, not necessarily unique across ad clients. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # Unique identifier of this custom channel. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#customChannel. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Name of this custom channel. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The targeting information of this custom channel, if activated. - # Corresponds to the JSON property `targetingInfo` - # @return [Google::Apis::AdexchangesellerV1::CustomChannel::TargetingInfo] - attr_accessor :targeting_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @targeting_info = args[:targeting_info] if args.key?(:targeting_info) - end - - # The targeting information of this custom channel, if activated. - class TargetingInfo - include Google::Apis::Core::Hashable - - # The name used to describe this channel externally. - # Corresponds to the JSON property `adsAppearOn` - # @return [String] - attr_accessor :ads_appear_on - - # The external description of the channel. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The locations in which ads appear. (Only valid for content and mobile content - # ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, - # MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, - # BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: - # TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The language of the sites ads will be displayed on. - # Corresponds to the JSON property `siteLanguage` - # @return [String] - attr_accessor :site_language - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ads_appear_on = args[:ads_appear_on] if args.key?(:ads_appear_on) - @description = args[:description] if args.key?(:description) - @location = args[:location] if args.key?(:location) - @site_language = args[:site_language] if args.key?(:site_language) - end - end - end - - # - class CustomChannels - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The custom channels returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#customChannels. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through custom channels. To retrieve the next - # page of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class Report - include Google::Apis::Core::Hashable - - # The averages of the report. This is the same length as any other row in the - # report; cells corresponding to dimension columns are empty. - # Corresponds to the JSON property `averages` - # @return [Array] - attr_accessor :averages - - # The header information of the columns requested in the report. This is a list - # of headers; one for each dimension in the request, followed by one for each - # metric in the request. - # Corresponds to the JSON property `headers` - # @return [Array] - attr_accessor :headers - - # Kind this is, in this case adexchangeseller#report. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The output rows of the report. Each row is a list of cells; one for each - # dimension in the request, followed by one for each metric in the request. The - # dimension cells contain strings, and the metric cells contain numbers. - # Corresponds to the JSON property `rows` - # @return [Array>] - attr_accessor :rows - - # The total number of rows matched by the report request. Fewer rows may be - # returned in the response due to being limited by the row count requested or - # the report row limit. - # Corresponds to the JSON property `totalMatchedRows` - # @return [Fixnum] - attr_accessor :total_matched_rows - - # The totals of the report. This is the same length as any other row in the - # report; cells corresponding to dimension columns are empty. - # Corresponds to the JSON property `totals` - # @return [Array] - attr_accessor :totals - - # Any warnings associated with generation of the report. - # Corresponds to the JSON property `warnings` - # @return [Array] - attr_accessor :warnings - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @averages = args[:averages] if args.key?(:averages) - @headers = args[:headers] if args.key?(:headers) - @kind = args[:kind] if args.key?(:kind) - @rows = args[:rows] if args.key?(:rows) - @total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows) - @totals = args[:totals] if args.key?(:totals) - @warnings = args[:warnings] if args.key?(:warnings) - end - - # - class Header - include Google::Apis::Core::Hashable - - # The currency of this column. Only present if the header type is - # METRIC_CURRENCY. - # Corresponds to the JSON property `currency` - # @return [String] - attr_accessor :currency - - # The name of the header. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or - # METRIC_CURRENCY. - # 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) - @currency = args[:currency] if args.key?(:currency) - @name = args[:name] if args.key?(:name) - @type = args[:type] if args.key?(:type) - end - end - end - - # - class SavedReport - include Google::Apis::Core::Hashable - - # Unique identifier of this saved report. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#savedReport. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This saved report's name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - end - end - - # - class SavedReports - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The saved reports returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#savedReports. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through saved reports. To retrieve the next - # page of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class UrlChannel - include Google::Apis::Core::Hashable - - # Unique identifier of this URL channel. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#urlChannel. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # URL Pattern of this URL channel. Does not include "http://" or "https://". - # Example: www.example.com/home - # Corresponds to the JSON property `urlPattern` - # @return [String] - attr_accessor :url_pattern - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @url_pattern = args[:url_pattern] if args.key?(:url_pattern) - end - end - - # - class UrlChannels - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The URL channels returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#urlChannels. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through URL channels. To retrieve the next - # page of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - end - end -end diff --git a/generated/google/apis/adexchangeseller_v1/representations.rb b/generated/google/apis/adexchangeseller_v1/representations.rb deleted file mode 100644 index f19a9ef73..000000000 --- a/generated/google/apis/adexchangeseller_v1/representations.rb +++ /dev/null @@ -1,248 +0,0 @@ -# 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 AdexchangesellerV1 - - class AdClient - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdClients - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdUnit - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdUnits - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CustomChannel - class Representation < Google::Apis::Core::JsonRepresentation; end - - class TargetingInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class CustomChannels - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Report - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Header - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class SavedReport - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SavedReports - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UrlChannel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UrlChannels - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdClient - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :arc_opt_in, as: 'arcOptIn' - property :id, as: 'id' - property :kind, as: 'kind' - property :product_code, as: 'productCode' - property :supports_reporting, as: 'supportsReporting' - end - end - - class AdClients - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::AdClient, decorator: Google::Apis::AdexchangesellerV1::AdClient::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class AdUnit - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - property :status, as: 'status' - end - end - - class AdUnits - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::AdUnit, decorator: Google::Apis::AdexchangesellerV1::AdUnit::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class CustomChannel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - property :targeting_info, as: 'targetingInfo', class: Google::Apis::AdexchangesellerV1::CustomChannel::TargetingInfo, decorator: Google::Apis::AdexchangesellerV1::CustomChannel::TargetingInfo::Representation - - end - - class TargetingInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ads_appear_on, as: 'adsAppearOn' - property :description, as: 'description' - property :location, as: 'location' - property :site_language, as: 'siteLanguage' - end - end - end - - class CustomChannels - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::CustomChannel, decorator: Google::Apis::AdexchangesellerV1::CustomChannel::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class Report - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :averages, as: 'averages' - collection :headers, as: 'headers', class: Google::Apis::AdexchangesellerV1::Report::Header, decorator: Google::Apis::AdexchangesellerV1::Report::Header::Representation - - property :kind, as: 'kind' - collection :rows, as: 'rows', :class => Array do - include Representable::JSON::Collection - items - end - - property :total_matched_rows, :numeric_string => true, as: 'totalMatchedRows' - collection :totals, as: 'totals' - collection :warnings, as: 'warnings' - end - - class Header - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :currency, as: 'currency' - property :name, as: 'name' - property :type, as: 'type' - end - end - end - - class SavedReport - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - end - end - - class SavedReports - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::SavedReport, decorator: Google::Apis::AdexchangesellerV1::SavedReport::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class UrlChannel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :url_pattern, as: 'urlPattern' - end - end - - class UrlChannels - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1::UrlChannel, decorator: Google::Apis::AdexchangesellerV1::UrlChannel::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - end - end -end diff --git a/generated/google/apis/adexchangeseller_v1/service.rb b/generated/google/apis/adexchangeseller_v1/service.rb deleted file mode 100644 index 039bf2b1b..000000000 --- a/generated/google/apis/adexchangeseller_v1/service.rb +++ /dev/null @@ -1,544 +0,0 @@ -# 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 AdexchangesellerV1 - # Ad Exchange Seller API - # - # Accesses the inventory of Ad Exchange seller users and generates reports. - # - # @example - # require 'google/apis/adexchangeseller_v1' - # - # Adexchangeseller = Google::Apis::AdexchangesellerV1 # Alias the module - # service = Adexchangeseller::AdExchangeSellerService.new - # - # @see https://developers.google.com/ad-exchange/seller-rest/ - class AdExchangeSellerService < 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', 'adexchangeseller/v1/') - @batch_path = 'batch/adexchangeseller/v1' - end - - # List all ad clients in this Ad Exchange account. - # @param [Fixnum] max_results - # The maximum number of ad clients to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through ad clients. To retrieve the next - # page, set this parameter to the value of "nextPageToken" from the previous - # response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::AdClients] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::AdClients] - # - # @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_adclients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients', options) - command.response_representation = Google::Apis::AdexchangesellerV1::AdClients::Representation - command.response_class = Google::Apis::AdexchangesellerV1::AdClients - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Gets the specified ad unit in the specified ad client. - # @param [String] ad_client_id - # Ad client for which to get the ad unit. - # @param [String] ad_unit_id - # Ad unit to retrieve. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::AdUnit] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::AdUnit] - # - # @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_adunit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}', options) - command.response_representation = Google::Apis::AdexchangesellerV1::AdUnit::Representation - command.response_class = Google::Apis::AdexchangesellerV1::AdUnit - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all ad units in the specified ad client for this Ad Exchange account. - # @param [String] ad_client_id - # Ad client for which to list ad units. - # @param [Boolean] include_inactive - # Whether to include inactive ad units. Default: true. - # @param [Fixnum] max_results - # The maximum number of ad units to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through ad units. To retrieve the next page, - # set this parameter to the value of "nextPageToken" from the previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::AdUnits] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::AdUnits] - # - # @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_adunits(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options) - command.response_representation = Google::Apis::AdexchangesellerV1::AdUnits::Representation - command.response_class = Google::Apis::AdexchangesellerV1::AdUnits - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.query['includeInactive'] = include_inactive unless include_inactive.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all custom channels which the specified ad unit belongs to. - # @param [String] ad_client_id - # Ad client which contains the ad unit. - # @param [String] ad_unit_id - # Ad unit for which to list custom channels. - # @param [Fixnum] max_results - # The maximum number of custom channels to include in the response, used for - # paging. - # @param [String] page_token - # A continuation token, used to page through custom channels. To retrieve the - # next page, set this parameter to the value of "nextPageToken" from the - # previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::CustomChannels] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::CustomChannels] - # - # @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_adunit_customchannels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options) - command.response_representation = Google::Apis::AdexchangesellerV1::CustomChannels::Representation - command.response_class = Google::Apis::AdexchangesellerV1::CustomChannels - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Get the specified custom channel from the specified ad client. - # @param [String] ad_client_id - # Ad client which contains the custom channel. - # @param [String] custom_channel_id - # Custom channel to retrieve. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::CustomChannel] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::CustomChannel] - # - # @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_customchannel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options) - command.response_representation = Google::Apis::AdexchangesellerV1::CustomChannel::Representation - command.response_class = Google::Apis::AdexchangesellerV1::CustomChannel - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all custom channels in the specified ad client for this Ad Exchange - # account. - # @param [String] ad_client_id - # Ad client for which to list custom channels. - # @param [Fixnum] max_results - # The maximum number of custom channels to include in the response, used for - # paging. - # @param [String] page_token - # A continuation token, used to page through custom channels. To retrieve the - # next page, set this parameter to the value of "nextPageToken" from the - # previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::CustomChannels] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::CustomChannels] - # - # @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_customchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options) - command.response_representation = Google::Apis::AdexchangesellerV1::CustomChannels::Representation - command.response_class = Google::Apis::AdexchangesellerV1::CustomChannels - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all ad units in the specified custom channel. - # @param [String] ad_client_id - # Ad client which contains the custom channel. - # @param [String] custom_channel_id - # Custom channel for which to list ad units. - # @param [Boolean] include_inactive - # Whether to include inactive ad units. Default: true. - # @param [Fixnum] max_results - # The maximum number of ad units to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through ad units. To retrieve the next page, - # set this parameter to the value of "nextPageToken" from the previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::AdUnits] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::AdUnits] - # - # @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_customchannel_adunits(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options) - command.response_representation = Google::Apis::AdexchangesellerV1::AdUnits::Representation - command.response_class = Google::Apis::AdexchangesellerV1::AdUnits - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil? - command.query['includeInactive'] = include_inactive unless include_inactive.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Generate an Ad Exchange report based on the report request sent in the query - # parameters. Returns the result as JSON; to retrieve output in CSV format - # specify "alt=csv" as a query parameter. - # @param [String] start_date - # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. - # @param [String] end_date - # End of the date range to report on in "YYYY-MM-DD" format, inclusive. - # @param [Array, String] dimension - # Dimensions to base the report on. - # @param [Array, String] filter - # Filters to be run on the report. - # @param [String] locale - # Optional locale to use for translating report output to a local language. - # Defaults to "en_US" if not specified. - # @param [Fixnum] max_results - # The maximum number of rows of report data to return. - # @param [Array, String] metric - # Numeric columns to include in the report. - # @param [Array, String] sort - # The name of a dimension or metric to sort the resulting report on, optionally - # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is - # specified, the column is sorted ascending. - # @param [Fixnum] start_index - # Index of the first row of report data to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @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::AdexchangesellerV1::Report] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::Report] - # - # @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 generate_report(start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, 'reports', options) - else - command = make_download_command(:get, 'reports', options) - command.download_dest = download_dest - end - command.response_representation = Google::Apis::AdexchangesellerV1::Report::Representation - command.response_class = Google::Apis::AdexchangesellerV1::Report - command.query['dimension'] = dimension unless dimension.nil? - command.query['endDate'] = end_date unless end_date.nil? - command.query['filter'] = filter unless filter.nil? - command.query['locale'] = locale unless locale.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['metric'] = metric unless metric.nil? - command.query['sort'] = sort unless sort.nil? - command.query['startDate'] = start_date unless start_date.nil? - command.query['startIndex'] = start_index unless start_index.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 - - # Generate an Ad Exchange report based on the saved report ID sent in the query - # parameters. - # @param [String] saved_report_id - # The saved report to retrieve. - # @param [String] locale - # Optional locale to use for translating report output to a local language. - # Defaults to "en_US" if not specified. - # @param [Fixnum] max_results - # The maximum number of rows of report data to return. - # @param [Fixnum] start_index - # Index of the first row of report data to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::Report] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::Report] - # - # @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 generate_report_saved(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'reports/{savedReportId}', options) - command.response_representation = Google::Apis::AdexchangesellerV1::Report::Representation - command.response_class = Google::Apis::AdexchangesellerV1::Report - command.params['savedReportId'] = saved_report_id unless saved_report_id.nil? - command.query['locale'] = locale unless locale.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['startIndex'] = start_index unless start_index.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 - - # List all saved reports in this Ad Exchange account. - # @param [Fixnum] max_results - # The maximum number of saved reports to include in the response, used for - # paging. - # @param [String] page_token - # A continuation token, used to page through saved reports. To retrieve the next - # page, set this parameter to the value of "nextPageToken" from the previous - # response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::SavedReports] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::SavedReports] - # - # @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_report_saveds(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'reports/saved', options) - command.response_representation = Google::Apis::AdexchangesellerV1::SavedReports::Representation - command.response_class = Google::Apis::AdexchangesellerV1::SavedReports - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all URL channels in the specified ad client for this Ad Exchange account. - # @param [String] ad_client_id - # Ad client for which to list URL channels. - # @param [Fixnum] max_results - # The maximum number of URL channels to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through URL channels. To retrieve the next - # page, set this parameter to the value of "nextPageToken" from the previous - # response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1::UrlChannels] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1::UrlChannels] - # - # @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_urlchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options) - command.response_representation = Google::Apis::AdexchangesellerV1::UrlChannels::Representation - command.response_class = Google::Apis::AdexchangesellerV1::UrlChannels - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.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? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end diff --git a/generated/google/apis/adexchangeseller_v1_1.rb b/generated/google/apis/adexchangeseller_v1_1.rb deleted file mode 100644 index 00c2bb718..000000000 --- a/generated/google/apis/adexchangeseller_v1_1.rb +++ /dev/null @@ -1,37 +0,0 @@ -# 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/adexchangeseller_v1_1/service.rb' -require 'google/apis/adexchangeseller_v1_1/classes.rb' -require 'google/apis/adexchangeseller_v1_1/representations.rb' - -module Google - module Apis - # Ad Exchange Seller API - # - # Accesses the inventory of Ad Exchange seller users and generates reports. - # - # @see https://developers.google.com/ad-exchange/seller-rest/ - module AdexchangesellerV1_1 - VERSION = 'V1_1' - REVISION = '20180708' - - # View and manage your Ad Exchange data - AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' - - # View your Ad Exchange data - AUTH_ADEXCHANGE_SELLER_READONLY = 'https://www.googleapis.com/auth/adexchange.seller.readonly' - end - end -end diff --git a/generated/google/apis/adexchangeseller_v1_1/classes.rb b/generated/google/apis/adexchangeseller_v1_1/classes.rb deleted file mode 100644 index c9e288cf1..000000000 --- a/generated/google/apis/adexchangeseller_v1_1/classes.rb +++ /dev/null @@ -1,842 +0,0 @@ -# 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 AdexchangesellerV1_1 - - # - class Account - include Google::Apis::Core::Hashable - - # Unique identifier of this account. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#account. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Name of this account. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - end - end - - # - class AdClient - include Google::Apis::Core::Hashable - - # Whether this ad client is opted in to ARC. - # Corresponds to the JSON property `arcOptIn` - # @return [Boolean] - attr_accessor :arc_opt_in - alias_method :arc_opt_in?, :arc_opt_in - - # Unique identifier of this ad client. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#adClient. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This ad client's product code, which corresponds to the PRODUCT_CODE report - # dimension. - # Corresponds to the JSON property `productCode` - # @return [String] - attr_accessor :product_code - - # Whether this ad client supports being reported on. - # Corresponds to the JSON property `supportsReporting` - # @return [Boolean] - attr_accessor :supports_reporting - alias_method :supports_reporting?, :supports_reporting - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @product_code = args[:product_code] if args.key?(:product_code) - @supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting) - end - end - - # - class AdClients - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ad clients returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#adClients. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through ad clients. To retrieve the next page - # of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class AdUnit - include Google::Apis::Core::Hashable - - # Identity code of this ad unit, not necessarily unique across ad clients. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # Unique identifier of this ad unit. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#adUnit. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Name of this ad unit. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Status of this ad unit. Possible values are: - # NEW: Indicates that the ad unit was created within the last seven days and - # does not yet have any activity associated with it. - # ACTIVE: Indicates that there has been activity on this ad unit in the last - # seven days. - # INACTIVE: Indicates that there has been no activity on this ad unit in the - # last seven days. - # Corresponds to the JSON property `status` - # @return [String] - attr_accessor :status - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @status = args[:status] if args.key?(:status) - end - end - - # - class AdUnits - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ad units returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#adUnits. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through ad units. To retrieve the next page of - # results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class Alert - include Google::Apis::Core::Hashable - - # Unique identifier of this alert. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#alert. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The localized alert message. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - # Severity of this alert. Possible values: INFO, WARNING, SEVERE. - # Corresponds to the JSON property `severity` - # @return [String] - attr_accessor :severity - - # Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, - # ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, - # GRAYLISTED_PUBLISHER, API_HOLD. - # 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) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @message = args[:message] if args.key?(:message) - @severity = args[:severity] if args.key?(:severity) - @type = args[:type] if args.key?(:type) - end - end - - # - class Alerts - include Google::Apis::Core::Hashable - - # The alerts returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#alerts. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class CustomChannel - include Google::Apis::Core::Hashable - - # Code of this custom channel, not necessarily unique across ad clients. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # Unique identifier of this custom channel. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#customChannel. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Name of this custom channel. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The targeting information of this custom channel, if activated. - # Corresponds to the JSON property `targetingInfo` - # @return [Google::Apis::AdexchangesellerV1_1::CustomChannel::TargetingInfo] - attr_accessor :targeting_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @targeting_info = args[:targeting_info] if args.key?(:targeting_info) - end - - # The targeting information of this custom channel, if activated. - class TargetingInfo - include Google::Apis::Core::Hashable - - # The name used to describe this channel externally. - # Corresponds to the JSON property `adsAppearOn` - # @return [String] - attr_accessor :ads_appear_on - - # The external description of the channel. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The locations in which ads appear. (Only valid for content and mobile content - # ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, - # MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, - # BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: - # TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The language of the sites ads will be displayed on. - # Corresponds to the JSON property `siteLanguage` - # @return [String] - attr_accessor :site_language - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ads_appear_on = args[:ads_appear_on] if args.key?(:ads_appear_on) - @description = args[:description] if args.key?(:description) - @location = args[:location] if args.key?(:location) - @site_language = args[:site_language] if args.key?(:site_language) - end - end - end - - # - class CustomChannels - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The custom channels returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#customChannels. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through custom channels. To retrieve the next - # page of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class Metadata - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#metadata. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class PreferredDeal - include Google::Apis::Core::Hashable - - # The name of the advertiser this deal is for. - # Corresponds to the JSON property `advertiserName` - # @return [String] - attr_accessor :advertiser_name - - # The name of the buyer network this deal is for. - # Corresponds to the JSON property `buyerNetworkName` - # @return [String] - attr_accessor :buyer_network_name - - # The currency code that applies to the fixed_cpm value. If not set then assumed - # to be USD. - # Corresponds to the JSON property `currencyCode` - # @return [String] - attr_accessor :currency_code - - # Time when this deal stops being active in seconds since the epoch (GMT). If - # not set then this deal is valid until manually disabled by the publisher. - # Corresponds to the JSON property `endTime` - # @return [Fixnum] - attr_accessor :end_time - - # The fixed price for this preferred deal. In cpm micros of currency according - # to currencyCode. If set, then this preferred deal is eligible for the fixed - # price tier of buying (highest priority, pay exactly the configured fixed price) - # . - # Corresponds to the JSON property `fixedCpm` - # @return [Fixnum] - attr_accessor :fixed_cpm - - # Unique identifier of this preferred deal. - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#preferredDeal. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Time when this deal becomes active in seconds since the epoch (GMT). If not - # set then this deal is active immediately upon creation. - # Corresponds to the JSON property `startTime` - # @return [Fixnum] - attr_accessor :start_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) - @buyer_network_name = args[:buyer_network_name] if args.key?(:buyer_network_name) - @currency_code = args[:currency_code] if args.key?(:currency_code) - @end_time = args[:end_time] if args.key?(:end_time) - @fixed_cpm = args[:fixed_cpm] if args.key?(:fixed_cpm) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @start_time = args[:start_time] if args.key?(:start_time) - end - end - - # - class PreferredDeals - include Google::Apis::Core::Hashable - - # The preferred deals returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#preferredDeals. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class Report - include Google::Apis::Core::Hashable - - # The averages of the report. This is the same length as any other row in the - # report; cells corresponding to dimension columns are empty. - # Corresponds to the JSON property `averages` - # @return [Array] - attr_accessor :averages - - # The header information of the columns requested in the report. This is a list - # of headers; one for each dimension in the request, followed by one for each - # metric in the request. - # Corresponds to the JSON property `headers` - # @return [Array] - attr_accessor :headers - - # Kind this is, in this case adexchangeseller#report. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The output rows of the report. Each row is a list of cells; one for each - # dimension in the request, followed by one for each metric in the request. The - # dimension cells contain strings, and the metric cells contain numbers. - # Corresponds to the JSON property `rows` - # @return [Array>] - attr_accessor :rows - - # The total number of rows matched by the report request. Fewer rows may be - # returned in the response due to being limited by the row count requested or - # the report row limit. - # Corresponds to the JSON property `totalMatchedRows` - # @return [Fixnum] - attr_accessor :total_matched_rows - - # The totals of the report. This is the same length as any other row in the - # report; cells corresponding to dimension columns are empty. - # Corresponds to the JSON property `totals` - # @return [Array] - attr_accessor :totals - - # Any warnings associated with generation of the report. - # Corresponds to the JSON property `warnings` - # @return [Array] - attr_accessor :warnings - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @averages = args[:averages] if args.key?(:averages) - @headers = args[:headers] if args.key?(:headers) - @kind = args[:kind] if args.key?(:kind) - @rows = args[:rows] if args.key?(:rows) - @total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows) - @totals = args[:totals] if args.key?(:totals) - @warnings = args[:warnings] if args.key?(:warnings) - end - - # - class Header - include Google::Apis::Core::Hashable - - # The currency of this column. Only present if the header type is - # METRIC_CURRENCY. - # Corresponds to the JSON property `currency` - # @return [String] - attr_accessor :currency - - # The name of the header. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or - # METRIC_CURRENCY. - # 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) - @currency = args[:currency] if args.key?(:currency) - @name = args[:name] if args.key?(:name) - @type = args[:type] if args.key?(:type) - end - end - end - - # - class ReportingMetadataEntry - include Google::Apis::Core::Hashable - - # For metrics this is a list of dimension IDs which the metric is compatible - # with, for dimensions it is a list of compatibility groups the dimension - # belongs to. - # Corresponds to the JSON property `compatibleDimensions` - # @return [Array] - attr_accessor :compatible_dimensions - - # The names of the metrics the dimension or metric this reporting metadata entry - # describes is compatible with. - # Corresponds to the JSON property `compatibleMetrics` - # @return [Array] - attr_accessor :compatible_metrics - - # Unique identifier of this reporting metadata entry, corresponding to the name - # of the appropriate dimension or metric. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#reportingMetadataEntry. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The names of the dimensions which the dimension or metric this reporting - # metadata entry describes requires to also be present in order for the report - # to be valid. Omitting these will not cause an error or warning, but may result - # in data which cannot be correctly interpreted. - # Corresponds to the JSON property `requiredDimensions` - # @return [Array] - attr_accessor :required_dimensions - - # The names of the metrics which the dimension or metric this reporting metadata - # entry describes requires to also be present in order for the report to be - # valid. Omitting these will not cause an error or warning, but may result in - # data which cannot be correctly interpreted. - # Corresponds to the JSON property `requiredMetrics` - # @return [Array] - attr_accessor :required_metrics - - # The codes of the projects supported by the dimension or metric this reporting - # metadata entry describes. - # Corresponds to the JSON property `supportedProducts` - # @return [Array] - attr_accessor :supported_products - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @compatible_dimensions = args[:compatible_dimensions] if args.key?(:compatible_dimensions) - @compatible_metrics = args[:compatible_metrics] if args.key?(:compatible_metrics) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @required_dimensions = args[:required_dimensions] if args.key?(:required_dimensions) - @required_metrics = args[:required_metrics] if args.key?(:required_metrics) - @supported_products = args[:supported_products] if args.key?(:supported_products) - end - end - - # - class SavedReport - include Google::Apis::Core::Hashable - - # Unique identifier of this saved report. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#savedReport. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This saved report's name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - end - end - - # - class SavedReports - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The saved reports returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#savedReports. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through saved reports. To retrieve the next - # page of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class UrlChannel - include Google::Apis::Core::Hashable - - # Unique identifier of this URL channel. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#urlChannel. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # URL Pattern of this URL channel. Does not include "http://" or "https://". - # Example: www.example.com/home - # Corresponds to the JSON property `urlPattern` - # @return [String] - attr_accessor :url_pattern - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @url_pattern = args[:url_pattern] if args.key?(:url_pattern) - end - end - - # - class UrlChannels - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The URL channels returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#urlChannels. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through URL channels. To retrieve the next - # page of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - end - end -end diff --git a/generated/google/apis/adexchangeseller_v1_1/representations.rb b/generated/google/apis/adexchangeseller_v1_1/representations.rb deleted file mode 100644 index 0c75e4986..000000000 --- a/generated/google/apis/adexchangeseller_v1_1/representations.rb +++ /dev/null @@ -1,364 +0,0 @@ -# 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 AdexchangesellerV1_1 - - class Account - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdClient - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdClients - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdUnit - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdUnits - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Alert - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Alerts - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CustomChannel - class Representation < Google::Apis::Core::JsonRepresentation; end - - class TargetingInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class CustomChannels - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Metadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PreferredDeal - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PreferredDeals - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Report - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Header - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class ReportingMetadataEntry - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SavedReport - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SavedReports - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UrlChannel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UrlChannels - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Account - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - end - end - - class AdClient - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :arc_opt_in, as: 'arcOptIn' - property :id, as: 'id' - property :kind, as: 'kind' - property :product_code, as: 'productCode' - property :supports_reporting, as: 'supportsReporting' - end - end - - class AdClients - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1_1::AdClient, decorator: Google::Apis::AdexchangesellerV1_1::AdClient::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class AdUnit - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - property :status, as: 'status' - end - end - - class AdUnits - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1_1::AdUnit, decorator: Google::Apis::AdexchangesellerV1_1::AdUnit::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class Alert - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :message, as: 'message' - property :severity, as: 'severity' - property :type, as: 'type' - end - end - - class Alerts - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1_1::Alert, decorator: Google::Apis::AdexchangesellerV1_1::Alert::Representation - - property :kind, as: 'kind' - end - end - - class CustomChannel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - property :targeting_info, as: 'targetingInfo', class: Google::Apis::AdexchangesellerV1_1::CustomChannel::TargetingInfo, decorator: Google::Apis::AdexchangesellerV1_1::CustomChannel::TargetingInfo::Representation - - end - - class TargetingInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ads_appear_on, as: 'adsAppearOn' - property :description, as: 'description' - property :location, as: 'location' - property :site_language, as: 'siteLanguage' - end - end - end - - class CustomChannels - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1_1::CustomChannel, decorator: Google::Apis::AdexchangesellerV1_1::CustomChannel::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class Metadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1_1::ReportingMetadataEntry, decorator: Google::Apis::AdexchangesellerV1_1::ReportingMetadataEntry::Representation - - property :kind, as: 'kind' - end - end - - class PreferredDeal - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :advertiser_name, as: 'advertiserName' - property :buyer_network_name, as: 'buyerNetworkName' - property :currency_code, as: 'currencyCode' - property :end_time, :numeric_string => true, as: 'endTime' - property :fixed_cpm, :numeric_string => true, as: 'fixedCpm' - property :id, :numeric_string => true, as: 'id' - property :kind, as: 'kind' - property :start_time, :numeric_string => true, as: 'startTime' - end - end - - class PreferredDeals - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1_1::PreferredDeal, decorator: Google::Apis::AdexchangesellerV1_1::PreferredDeal::Representation - - property :kind, as: 'kind' - end - end - - class Report - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :averages, as: 'averages' - collection :headers, as: 'headers', class: Google::Apis::AdexchangesellerV1_1::Report::Header, decorator: Google::Apis::AdexchangesellerV1_1::Report::Header::Representation - - property :kind, as: 'kind' - collection :rows, as: 'rows', :class => Array do - include Representable::JSON::Collection - items - end - - property :total_matched_rows, :numeric_string => true, as: 'totalMatchedRows' - collection :totals, as: 'totals' - collection :warnings, as: 'warnings' - end - - class Header - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :currency, as: 'currency' - property :name, as: 'name' - property :type, as: 'type' - end - end - end - - class ReportingMetadataEntry - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :compatible_dimensions, as: 'compatibleDimensions' - collection :compatible_metrics, as: 'compatibleMetrics' - property :id, as: 'id' - property :kind, as: 'kind' - collection :required_dimensions, as: 'requiredDimensions' - collection :required_metrics, as: 'requiredMetrics' - collection :supported_products, as: 'supportedProducts' - end - end - - class SavedReport - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - end - end - - class SavedReports - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1_1::SavedReport, decorator: Google::Apis::AdexchangesellerV1_1::SavedReport::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class UrlChannel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :url_pattern, as: 'urlPattern' - end - end - - class UrlChannels - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV1_1::UrlChannel, decorator: Google::Apis::AdexchangesellerV1_1::UrlChannel::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - end - end -end diff --git a/generated/google/apis/adexchangeseller_v1_1/service.rb b/generated/google/apis/adexchangeseller_v1_1/service.rb deleted file mode 100644 index 42b72a911..000000000 --- a/generated/google/apis/adexchangeseller_v1_1/service.rb +++ /dev/null @@ -1,735 +0,0 @@ -# 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 AdexchangesellerV1_1 - # Ad Exchange Seller API - # - # Accesses the inventory of Ad Exchange seller users and generates reports. - # - # @example - # require 'google/apis/adexchangeseller_v1_1' - # - # Adexchangeseller = Google::Apis::AdexchangesellerV1_1 # Alias the module - # service = Adexchangeseller::AdExchangeSellerService.new - # - # @see https://developers.google.com/ad-exchange/seller-rest/ - class AdExchangeSellerService < 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', 'adexchangeseller/v1.1/') - @batch_path = 'batch/adexchangeseller/v1.1' - end - - # Get information about the selected Ad Exchange account. - # @param [String] account_id - # Account to get information about. Tip: 'myaccount' is a valid ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::Account] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::Account] - # - # @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_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::Account::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::Account - command.params['accountId'] = account_id unless account_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all ad clients in this Ad Exchange account. - # @param [Fixnum] max_results - # The maximum number of ad clients to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through ad clients. To retrieve the next - # page, set this parameter to the value of "nextPageToken" from the previous - # response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::AdClients] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::AdClients] - # - # @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_adclients(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::AdClients::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::AdClients - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Gets the specified ad unit in the specified ad client. - # @param [String] ad_client_id - # Ad client for which to get the ad unit. - # @param [String] ad_unit_id - # Ad unit to retrieve. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::AdUnit] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::AdUnit] - # - # @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_adunit(ad_client_id, ad_unit_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::AdUnit::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::AdUnit - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all ad units in the specified ad client for this Ad Exchange account. - # @param [String] ad_client_id - # Ad client for which to list ad units. - # @param [Boolean] include_inactive - # Whether to include inactive ad units. Default: true. - # @param [Fixnum] max_results - # The maximum number of ad units to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through ad units. To retrieve the next page, - # set this parameter to the value of "nextPageToken" from the previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::AdUnits] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::AdUnits] - # - # @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_adunits(ad_client_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/adunits', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::AdUnits::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::AdUnits - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.query['includeInactive'] = include_inactive unless include_inactive.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all custom channels which the specified ad unit belongs to. - # @param [String] ad_client_id - # Ad client which contains the ad unit. - # @param [String] ad_unit_id - # Ad unit for which to list custom channels. - # @param [Fixnum] max_results - # The maximum number of custom channels to include in the response, used for - # paging. - # @param [String] page_token - # A continuation token, used to page through custom channels. To retrieve the - # next page, set this parameter to the value of "nextPageToken" from the - # previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::CustomChannels] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::CustomChannels] - # - # @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_adunit_customchannels(ad_client_id, ad_unit_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/adunits/{adUnitId}/customchannels', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::CustomChannels::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::CustomChannels - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.params['adUnitId'] = ad_unit_id unless ad_unit_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List the alerts for this Ad Exchange account. - # @param [String] locale - # The locale to use for translating alert messages. The account locale will be - # used if this is not supplied. The AdSense default (English) will be used if - # the supplied locale is invalid or unsupported. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::Alerts] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::Alerts] - # - # @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_alerts(locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'alerts', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::Alerts::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::Alerts - command.query['locale'] = locale unless locale.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 - - # Get the specified custom channel from the specified ad client. - # @param [String] ad_client_id - # Ad client which contains the custom channel. - # @param [String] custom_channel_id - # Custom channel to retrieve. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::CustomChannel] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::CustomChannel] - # - # @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_customchannel(ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::CustomChannel::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::CustomChannel - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all custom channels in the specified ad client for this Ad Exchange - # account. - # @param [String] ad_client_id - # Ad client for which to list custom channels. - # @param [Fixnum] max_results - # The maximum number of custom channels to include in the response, used for - # paging. - # @param [String] page_token - # A continuation token, used to page through custom channels. To retrieve the - # next page, set this parameter to the value of "nextPageToken" from the - # previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::CustomChannels] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::CustomChannels] - # - # @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_customchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/customchannels', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::CustomChannels::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::CustomChannels - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all ad units in the specified custom channel. - # @param [String] ad_client_id - # Ad client which contains the custom channel. - # @param [String] custom_channel_id - # Custom channel for which to list ad units. - # @param [Boolean] include_inactive - # Whether to include inactive ad units. Default: true. - # @param [Fixnum] max_results - # The maximum number of ad units to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through ad units. To retrieve the next page, - # set this parameter to the value of "nextPageToken" from the previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::AdUnits] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::AdUnits] - # - # @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_customchannel_adunits(ad_client_id, custom_channel_id, include_inactive: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/customchannels/{customChannelId}/adunits', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::AdUnits::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::AdUnits - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil? - command.query['includeInactive'] = include_inactive unless include_inactive.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List the metadata for the dimensions available to this AdExchange account. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::Metadata] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::Metadata] - # - # @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_metadatum_dimensions(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'metadata/dimensions', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::Metadata::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::Metadata - 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 - - # List the metadata for the metrics available to this AdExchange account. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::Metadata] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::Metadata] - # - # @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_metadatum_metrics(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'metadata/metrics', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::Metadata::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::Metadata - 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 - - # Get information about the selected Ad Exchange Preferred Deal. - # @param [String] deal_id - # Preferred deal to get information about. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::PreferredDeal] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::PreferredDeal] - # - # @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_preferreddeal(deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'preferreddeals/{dealId}', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::PreferredDeal::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::PreferredDeal - command.params['dealId'] = deal_id unless deal_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List the preferred deals for this Ad Exchange account. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::PreferredDeals] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::PreferredDeals] - # - # @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_preferreddeals(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'preferreddeals', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::PreferredDeals::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::PreferredDeals - 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 - - # Generate an Ad Exchange report based on the report request sent in the query - # parameters. Returns the result as JSON; to retrieve output in CSV format - # specify "alt=csv" as a query parameter. - # @param [String] start_date - # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. - # @param [String] end_date - # End of the date range to report on in "YYYY-MM-DD" format, inclusive. - # @param [Array, String] dimension - # Dimensions to base the report on. - # @param [Array, String] filter - # Filters to be run on the report. - # @param [String] locale - # Optional locale to use for translating report output to a local language. - # Defaults to "en_US" if not specified. - # @param [Fixnum] max_results - # The maximum number of rows of report data to return. - # @param [Array, String] metric - # Numeric columns to include in the report. - # @param [Array, String] sort - # The name of a dimension or metric to sort the resulting report on, optionally - # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is - # specified, the column is sorted ascending. - # @param [Fixnum] start_index - # Index of the first row of report data to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @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::AdexchangesellerV1_1::Report] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::Report] - # - # @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 generate_report(start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, 'reports', options) - else - command = make_download_command(:get, 'reports', options) - command.download_dest = download_dest - end - command.response_representation = Google::Apis::AdexchangesellerV1_1::Report::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::Report - command.query['dimension'] = dimension unless dimension.nil? - command.query['endDate'] = end_date unless end_date.nil? - command.query['filter'] = filter unless filter.nil? - command.query['locale'] = locale unless locale.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['metric'] = metric unless metric.nil? - command.query['sort'] = sort unless sort.nil? - command.query['startDate'] = start_date unless start_date.nil? - command.query['startIndex'] = start_index unless start_index.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 - - # Generate an Ad Exchange report based on the saved report ID sent in the query - # parameters. - # @param [String] saved_report_id - # The saved report to retrieve. - # @param [String] locale - # Optional locale to use for translating report output to a local language. - # Defaults to "en_US" if not specified. - # @param [Fixnum] max_results - # The maximum number of rows of report data to return. - # @param [Fixnum] start_index - # Index of the first row of report data to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::Report] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::Report] - # - # @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 generate_report_saved(saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'reports/{savedReportId}', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::Report::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::Report - command.params['savedReportId'] = saved_report_id unless saved_report_id.nil? - command.query['locale'] = locale unless locale.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['startIndex'] = start_index unless start_index.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 - - # List all saved reports in this Ad Exchange account. - # @param [Fixnum] max_results - # The maximum number of saved reports to include in the response, used for - # paging. - # @param [String] page_token - # A continuation token, used to page through saved reports. To retrieve the next - # page, set this parameter to the value of "nextPageToken" from the previous - # response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::SavedReports] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::SavedReports] - # - # @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_report_saveds(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'reports/saved', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::SavedReports::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::SavedReports - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all URL channels in the specified ad client for this Ad Exchange account. - # @param [String] ad_client_id - # Ad client for which to list URL channels. - # @param [Fixnum] max_results - # The maximum number of URL channels to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through URL channels. To retrieve the next - # page, set this parameter to the value of "nextPageToken" from the previous - # response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV1_1::UrlChannels] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV1_1::UrlChannels] - # - # @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_urlchannels(ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'adclients/{adClientId}/urlchannels', options) - command.response_representation = Google::Apis::AdexchangesellerV1_1::UrlChannels::Representation - command.response_class = Google::Apis::AdexchangesellerV1_1::UrlChannels - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.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? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end diff --git a/generated/google/apis/adexchangeseller_v2_0.rb b/generated/google/apis/adexchangeseller_v2_0.rb deleted file mode 100644 index 5e4c3c829..000000000 --- a/generated/google/apis/adexchangeseller_v2_0.rb +++ /dev/null @@ -1,37 +0,0 @@ -# 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/adexchangeseller_v2_0/service.rb' -require 'google/apis/adexchangeseller_v2_0/classes.rb' -require 'google/apis/adexchangeseller_v2_0/representations.rb' - -module Google - module Apis - # Ad Exchange Seller API - # - # Accesses the inventory of Ad Exchange seller users and generates reports. - # - # @see https://developers.google.com/ad-exchange/seller-rest/ - module AdexchangesellerV2_0 - VERSION = 'V2_0' - REVISION = '20180708' - - # View and manage your Ad Exchange data - AUTH_ADEXCHANGE_SELLER = 'https://www.googleapis.com/auth/adexchange.seller' - - # View your Ad Exchange data - AUTH_ADEXCHANGE_SELLER_READONLY = 'https://www.googleapis.com/auth/adexchange.seller.readonly' - end - end -end diff --git a/generated/google/apis/adexchangeseller_v2_0/classes.rb b/generated/google/apis/adexchangeseller_v2_0/classes.rb deleted file mode 100644 index 4d479a609..000000000 --- a/generated/google/apis/adexchangeseller_v2_0/classes.rb +++ /dev/null @@ -1,792 +0,0 @@ -# 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 AdexchangesellerV2_0 - - # - class Account - include Google::Apis::Core::Hashable - - # Unique identifier of this account. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#account. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Name of this account. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - end - end - - # - class Accounts - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The accounts returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#accounts. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through accounts. To retrieve the next page of - # results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class AdClient - include Google::Apis::Core::Hashable - - # Whether this ad client is opted in to ARC. - # Corresponds to the JSON property `arcOptIn` - # @return [Boolean] - attr_accessor :arc_opt_in - alias_method :arc_opt_in?, :arc_opt_in - - # Unique identifier of this ad client. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#adClient. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This ad client's product code, which corresponds to the PRODUCT_CODE report - # dimension. - # Corresponds to the JSON property `productCode` - # @return [String] - attr_accessor :product_code - - # Whether this ad client supports being reported on. - # Corresponds to the JSON property `supportsReporting` - # @return [Boolean] - attr_accessor :supports_reporting - alias_method :supports_reporting?, :supports_reporting - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @product_code = args[:product_code] if args.key?(:product_code) - @supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting) - end - end - - # - class AdClients - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The ad clients returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#adClients. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through ad clients. To retrieve the next page - # of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class Alert - include Google::Apis::Core::Hashable - - # Unique identifier of this alert. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#alert. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The localized alert message. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - # Severity of this alert. Possible values: INFO, WARNING, SEVERE. - # Corresponds to the JSON property `severity` - # @return [String] - attr_accessor :severity - - # Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, - # ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, - # GRAYLISTED_PUBLISHER, API_HOLD. - # 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) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @message = args[:message] if args.key?(:message) - @severity = args[:severity] if args.key?(:severity) - @type = args[:type] if args.key?(:type) - end - end - - # - class Alerts - include Google::Apis::Core::Hashable - - # The alerts returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#alerts. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class CustomChannel - include Google::Apis::Core::Hashable - - # Code of this custom channel, not necessarily unique across ad clients. - # Corresponds to the JSON property `code` - # @return [String] - attr_accessor :code - - # Unique identifier of this custom channel. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#customChannel. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Name of this custom channel. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The targeting information of this custom channel, if activated. - # Corresponds to the JSON property `targetingInfo` - # @return [Google::Apis::AdexchangesellerV2_0::CustomChannel::TargetingInfo] - attr_accessor :targeting_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - @targeting_info = args[:targeting_info] if args.key?(:targeting_info) - end - - # The targeting information of this custom channel, if activated. - class TargetingInfo - include Google::Apis::Core::Hashable - - # The name used to describe this channel externally. - # Corresponds to the JSON property `adsAppearOn` - # @return [String] - attr_accessor :ads_appear_on - - # The external description of the channel. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # The locations in which ads appear. (Only valid for content and mobile content - # ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, - # MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, - # BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: - # TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # The language of the sites ads will be displayed on. - # Corresponds to the JSON property `siteLanguage` - # @return [String] - attr_accessor :site_language - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @ads_appear_on = args[:ads_appear_on] if args.key?(:ads_appear_on) - @description = args[:description] if args.key?(:description) - @location = args[:location] if args.key?(:location) - @site_language = args[:site_language] if args.key?(:site_language) - end - end - end - - # - class CustomChannels - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The custom channels returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#customChannels. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through custom channels. To retrieve the next - # page of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class Metadata - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#metadata. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class PreferredDeal - include Google::Apis::Core::Hashable - - # The name of the advertiser this deal is for. - # Corresponds to the JSON property `advertiserName` - # @return [String] - attr_accessor :advertiser_name - - # The name of the buyer network this deal is for. - # Corresponds to the JSON property `buyerNetworkName` - # @return [String] - attr_accessor :buyer_network_name - - # The currency code that applies to the fixed_cpm value. If not set then assumed - # to be USD. - # Corresponds to the JSON property `currencyCode` - # @return [String] - attr_accessor :currency_code - - # Time when this deal stops being active in seconds since the epoch (GMT). If - # not set then this deal is valid until manually disabled by the publisher. - # Corresponds to the JSON property `endTime` - # @return [Fixnum] - attr_accessor :end_time - - # The fixed price for this preferred deal. In cpm micros of currency according - # to currencyCode. If set, then this preferred deal is eligible for the fixed - # price tier of buying (highest priority, pay exactly the configured fixed price) - # . - # Corresponds to the JSON property `fixedCpm` - # @return [Fixnum] - attr_accessor :fixed_cpm - - # Unique identifier of this preferred deal. - # Corresponds to the JSON property `id` - # @return [Fixnum] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#preferredDeal. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Time when this deal becomes active in seconds since the epoch (GMT). If not - # set then this deal is active immediately upon creation. - # Corresponds to the JSON property `startTime` - # @return [Fixnum] - attr_accessor :start_time - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) - @buyer_network_name = args[:buyer_network_name] if args.key?(:buyer_network_name) - @currency_code = args[:currency_code] if args.key?(:currency_code) - @end_time = args[:end_time] if args.key?(:end_time) - @fixed_cpm = args[:fixed_cpm] if args.key?(:fixed_cpm) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @start_time = args[:start_time] if args.key?(:start_time) - end - end - - # - class PreferredDeals - include Google::Apis::Core::Hashable - - # The preferred deals returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#preferredDeals. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - end - end - - # - class Report - include Google::Apis::Core::Hashable - - # The averages of the report. This is the same length as any other row in the - # report; cells corresponding to dimension columns are empty. - # Corresponds to the JSON property `averages` - # @return [Array] - attr_accessor :averages - - # The header information of the columns requested in the report. This is a list - # of headers; one for each dimension in the request, followed by one for each - # metric in the request. - # Corresponds to the JSON property `headers` - # @return [Array] - attr_accessor :headers - - # Kind this is, in this case adexchangeseller#report. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The output rows of the report. Each row is a list of cells; one for each - # dimension in the request, followed by one for each metric in the request. The - # dimension cells contain strings, and the metric cells contain numbers. - # Corresponds to the JSON property `rows` - # @return [Array>] - attr_accessor :rows - - # The total number of rows matched by the report request. Fewer rows may be - # returned in the response due to being limited by the row count requested or - # the report row limit. - # Corresponds to the JSON property `totalMatchedRows` - # @return [Fixnum] - attr_accessor :total_matched_rows - - # The totals of the report. This is the same length as any other row in the - # report; cells corresponding to dimension columns are empty. - # Corresponds to the JSON property `totals` - # @return [Array] - attr_accessor :totals - - # Any warnings associated with generation of the report. - # Corresponds to the JSON property `warnings` - # @return [Array] - attr_accessor :warnings - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @averages = args[:averages] if args.key?(:averages) - @headers = args[:headers] if args.key?(:headers) - @kind = args[:kind] if args.key?(:kind) - @rows = args[:rows] if args.key?(:rows) - @total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows) - @totals = args[:totals] if args.key?(:totals) - @warnings = args[:warnings] if args.key?(:warnings) - end - - # - class Header - include Google::Apis::Core::Hashable - - # The currency of this column. Only present if the header type is - # METRIC_CURRENCY. - # Corresponds to the JSON property `currency` - # @return [String] - attr_accessor :currency - - # The name of the header. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or - # METRIC_CURRENCY. - # 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) - @currency = args[:currency] if args.key?(:currency) - @name = args[:name] if args.key?(:name) - @type = args[:type] if args.key?(:type) - end - end - end - - # - class ReportingMetadataEntry - include Google::Apis::Core::Hashable - - # For metrics this is a list of dimension IDs which the metric is compatible - # with, for dimensions it is a list of compatibility groups the dimension - # belongs to. - # Corresponds to the JSON property `compatibleDimensions` - # @return [Array] - attr_accessor :compatible_dimensions - - # The names of the metrics the dimension or metric this reporting metadata entry - # describes is compatible with. - # Corresponds to the JSON property `compatibleMetrics` - # @return [Array] - attr_accessor :compatible_metrics - - # Unique identifier of this reporting metadata entry, corresponding to the name - # of the appropriate dimension or metric. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#reportingMetadataEntry. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The names of the dimensions which the dimension or metric this reporting - # metadata entry describes requires to also be present in order for the report - # to be valid. Omitting these will not cause an error or warning, but may result - # in data which cannot be correctly interpreted. - # Corresponds to the JSON property `requiredDimensions` - # @return [Array] - attr_accessor :required_dimensions - - # The names of the metrics which the dimension or metric this reporting metadata - # entry describes requires to also be present in order for the report to be - # valid. Omitting these will not cause an error or warning, but may result in - # data which cannot be correctly interpreted. - # Corresponds to the JSON property `requiredMetrics` - # @return [Array] - attr_accessor :required_metrics - - # The codes of the projects supported by the dimension or metric this reporting - # metadata entry describes. - # Corresponds to the JSON property `supportedProducts` - # @return [Array] - attr_accessor :supported_products - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @compatible_dimensions = args[:compatible_dimensions] if args.key?(:compatible_dimensions) - @compatible_metrics = args[:compatible_metrics] if args.key?(:compatible_metrics) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @required_dimensions = args[:required_dimensions] if args.key?(:required_dimensions) - @required_metrics = args[:required_metrics] if args.key?(:required_metrics) - @supported_products = args[:supported_products] if args.key?(:supported_products) - end - end - - # - class SavedReport - include Google::Apis::Core::Hashable - - # Unique identifier of this saved report. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#savedReport. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # This saved report's name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - end - end - - # - class SavedReports - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The saved reports returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#savedReports. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through saved reports. To retrieve the next - # page of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # - class UrlChannel - include Google::Apis::Core::Hashable - - # Unique identifier of this URL channel. This should be considered an opaque - # identifier; it is not safe to rely on it being in any particular format. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Kind of resource this is, in this case adexchangeseller#urlChannel. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # URL Pattern of this URL channel. Does not include "http://" or "https://". - # Example: www.example.com/home - # Corresponds to the JSON property `urlPattern` - # @return [String] - attr_accessor :url_pattern - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @kind = args[:kind] if args.key?(:kind) - @url_pattern = args[:url_pattern] if args.key?(:url_pattern) - end - end - - # - class UrlChannels - include Google::Apis::Core::Hashable - - # ETag of this response for caching purposes. - # Corresponds to the JSON property `etag` - # @return [String] - attr_accessor :etag - - # The URL channels returned in this list response. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # Kind of list this is, in this case adexchangeseller#urlChannels. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # Continuation token used to page through URL channels. To retrieve the next - # page of results, set the next request's "pageToken" value to this. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @etag = args[:etag] if args.key?(:etag) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - end - end -end diff --git a/generated/google/apis/adexchangeseller_v2_0/representations.rb b/generated/google/apis/adexchangeseller_v2_0/representations.rb deleted file mode 100644 index c88f8f9ab..000000000 --- a/generated/google/apis/adexchangeseller_v2_0/representations.rb +++ /dev/null @@ -1,347 +0,0 @@ -# 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 AdexchangesellerV2_0 - - class Account - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Accounts - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdClient - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AdClients - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Alert - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Alerts - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class CustomChannel - class Representation < Google::Apis::Core::JsonRepresentation; end - - class TargetingInfo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class CustomChannels - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Metadata - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PreferredDeal - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PreferredDeals - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Report - class Representation < Google::Apis::Core::JsonRepresentation; end - - class Header - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - include Google::Apis::Core::JsonObjectSupport - end - - class ReportingMetadataEntry - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SavedReport - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class SavedReports - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UrlChannel - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class UrlChannels - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Account - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - end - end - - class Accounts - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::Account, decorator: Google::Apis::AdexchangesellerV2_0::Account::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class AdClient - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :arc_opt_in, as: 'arcOptIn' - property :id, as: 'id' - property :kind, as: 'kind' - property :product_code, as: 'productCode' - property :supports_reporting, as: 'supportsReporting' - end - end - - class AdClients - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::AdClient, decorator: Google::Apis::AdexchangesellerV2_0::AdClient::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class Alert - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :message, as: 'message' - property :severity, as: 'severity' - property :type, as: 'type' - end - end - - class Alerts - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::Alert, decorator: Google::Apis::AdexchangesellerV2_0::Alert::Representation - - property :kind, as: 'kind' - end - end - - class CustomChannel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - property :targeting_info, as: 'targetingInfo', class: Google::Apis::AdexchangesellerV2_0::CustomChannel::TargetingInfo, decorator: Google::Apis::AdexchangesellerV2_0::CustomChannel::TargetingInfo::Representation - - end - - class TargetingInfo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :ads_appear_on, as: 'adsAppearOn' - property :description, as: 'description' - property :location, as: 'location' - property :site_language, as: 'siteLanguage' - end - end - end - - class CustomChannels - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::CustomChannel, decorator: Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class Metadata - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::ReportingMetadataEntry, decorator: Google::Apis::AdexchangesellerV2_0::ReportingMetadataEntry::Representation - - property :kind, as: 'kind' - end - end - - class PreferredDeal - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :advertiser_name, as: 'advertiserName' - property :buyer_network_name, as: 'buyerNetworkName' - property :currency_code, as: 'currencyCode' - property :end_time, :numeric_string => true, as: 'endTime' - property :fixed_cpm, :numeric_string => true, as: 'fixedCpm' - property :id, :numeric_string => true, as: 'id' - property :kind, as: 'kind' - property :start_time, :numeric_string => true, as: 'startTime' - end - end - - class PreferredDeals - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::PreferredDeal, decorator: Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation - - property :kind, as: 'kind' - end - end - - class Report - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :averages, as: 'averages' - collection :headers, as: 'headers', class: Google::Apis::AdexchangesellerV2_0::Report::Header, decorator: Google::Apis::AdexchangesellerV2_0::Report::Header::Representation - - property :kind, as: 'kind' - collection :rows, as: 'rows', :class => Array do - include Representable::JSON::Collection - items - end - - property :total_matched_rows, :numeric_string => true, as: 'totalMatchedRows' - collection :totals, as: 'totals' - collection :warnings, as: 'warnings' - end - - class Header - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :currency, as: 'currency' - property :name, as: 'name' - property :type, as: 'type' - end - end - end - - class ReportingMetadataEntry - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :compatible_dimensions, as: 'compatibleDimensions' - collection :compatible_metrics, as: 'compatibleMetrics' - property :id, as: 'id' - property :kind, as: 'kind' - collection :required_dimensions, as: 'requiredDimensions' - collection :required_metrics, as: 'requiredMetrics' - collection :supported_products, as: 'supportedProducts' - end - end - - class SavedReport - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :name, as: 'name' - end - end - - class SavedReports - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::SavedReport, decorator: Google::Apis::AdexchangesellerV2_0::SavedReport::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - - class UrlChannel - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :kind, as: 'kind' - property :url_pattern, as: 'urlPattern' - end - end - - class UrlChannels - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :etag, as: 'etag' - collection :items, as: 'items', class: Google::Apis::AdexchangesellerV2_0::UrlChannel, decorator: Google::Apis::AdexchangesellerV2_0::UrlChannel::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - end - end - end - end -end diff --git a/generated/google/apis/adexchangeseller_v2_0/service.rb b/generated/google/apis/adexchangeseller_v2_0/service.rb deleted file mode 100644 index c30f38611..000000000 --- a/generated/google/apis/adexchangeseller_v2_0/service.rb +++ /dev/null @@ -1,638 +0,0 @@ -# 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 AdexchangesellerV2_0 - # Ad Exchange Seller API - # - # Accesses the inventory of Ad Exchange seller users and generates reports. - # - # @example - # require 'google/apis/adexchangeseller_v2_0' - # - # Adexchangeseller = Google::Apis::AdexchangesellerV2_0 # Alias the module - # service = Adexchangeseller::AdExchangeSellerService.new - # - # @see https://developers.google.com/ad-exchange/seller-rest/ - class AdExchangeSellerService < 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] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', 'adexchangeseller/v2.0/') - @batch_path = 'batch/adexchangeseller/v2.0' - end - - # Get information about the selected Ad Exchange account. - # @param [String] account_id - # Account to get information about. Tip: 'myaccount' is a valid ID. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::Account] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::Account] - # - # @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_account(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::Account::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::Account - command.params['accountId'] = account_id unless account_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all accounts available to this Ad Exchange account. - # @param [Fixnum] max_results - # The maximum number of accounts to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through accounts. To retrieve the next page, - # set this parameter to the value of "nextPageToken" from the previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::Accounts] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::Accounts] - # - # @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_accounts(max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::Accounts::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::Accounts - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all ad clients in this Ad Exchange account. - # @param [String] account_id - # Account to which the ad client belongs. - # @param [Fixnum] max_results - # The maximum number of ad clients to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through ad clients. To retrieve the next - # page, set this parameter to the value of "nextPageToken" from the previous - # response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::AdClients] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::AdClients] - # - # @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_account_ad_clients(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/adclients', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::AdClients::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::AdClients - command.params['accountId'] = account_id unless account_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List the alerts for this Ad Exchange account. - # @param [String] account_id - # Account owning the alerts. - # @param [String] locale - # The locale to use for translating alert messages. The account locale will be - # used if this is not supplied. The AdSense default (English) will be used if - # the supplied locale is invalid or unsupported. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::Alerts] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::Alerts] - # - # @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_account_alerts(account_id, locale: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/alerts', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::Alerts::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::Alerts - command.params['accountId'] = account_id unless account_id.nil? - command.query['locale'] = locale unless locale.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 - - # Get the specified custom channel from the specified ad client. - # @param [String] account_id - # Account to which the ad client belongs. - # @param [String] ad_client_id - # Ad client which contains the custom channel. - # @param [String] custom_channel_id - # Custom channel to retrieve. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::CustomChannel] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::CustomChannel] - # - # @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_account_custom_channel(account_id, ad_client_id, custom_channel_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannel::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannel - command.params['accountId'] = account_id unless account_id.nil? - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.params['customChannelId'] = custom_channel_id unless custom_channel_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all custom channels in the specified ad client for this Ad Exchange - # account. - # @param [String] account_id - # Account to which the ad client belongs. - # @param [String] ad_client_id - # Ad client for which to list custom channels. - # @param [Fixnum] max_results - # The maximum number of custom channels to include in the response, used for - # paging. - # @param [String] page_token - # A continuation token, used to page through custom channels. To retrieve the - # next page, set this parameter to the value of "nextPageToken" from the - # previous response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::CustomChannels] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::CustomChannels] - # - # @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_account_custom_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/customchannels', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::CustomChannels::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::CustomChannels - command.params['accountId'] = account_id unless account_id.nil? - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List the metadata for the dimensions available to this AdExchange account. - # @param [String] account_id - # Account with visibility to the dimensions. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::Metadata] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::Metadata] - # - # @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_account_metadata_dimensions(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/metadata/dimensions', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata - command.params['accountId'] = account_id unless account_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List the metadata for the metrics available to this AdExchange account. - # @param [String] account_id - # Account with visibility to the metrics. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::Metadata] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::Metadata] - # - # @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_account_metadata_metrics(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/metadata/metrics', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::Metadata::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::Metadata - command.params['accountId'] = account_id unless account_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Get information about the selected Ad Exchange Preferred Deal. - # @param [String] account_id - # Account owning the deal. - # @param [String] deal_id - # Preferred deal to get information about. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::PreferredDeal] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::PreferredDeal] - # - # @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_account_preferred_deal(account_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals/{dealId}', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeal::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeal - command.params['accountId'] = account_id unless account_id.nil? - command.params['dealId'] = deal_id unless deal_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List the preferred deals for this Ad Exchange account. - # @param [String] account_id - # Account owning the deals. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::PreferredDeals] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::PreferredDeals] - # - # @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_account_preferred_deals(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/preferreddeals', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::PreferredDeals::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::PreferredDeals - command.params['accountId'] = account_id unless account_id.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Generate an Ad Exchange report based on the report request sent in the query - # parameters. Returns the result as JSON; to retrieve output in CSV format - # specify "alt=csv" as a query parameter. - # @param [String] account_id - # Account which owns the generated report. - # @param [String] start_date - # Start of the date range to report on in "YYYY-MM-DD" format, inclusive. - # @param [String] end_date - # End of the date range to report on in "YYYY-MM-DD" format, inclusive. - # @param [Array, String] dimension - # Dimensions to base the report on. - # @param [Array, String] filter - # Filters to be run on the report. - # @param [String] locale - # Optional locale to use for translating report output to a local language. - # Defaults to "en_US" if not specified. - # @param [Fixnum] max_results - # The maximum number of rows of report data to return. - # @param [Array, String] metric - # Numeric columns to include in the report. - # @param [Array, String] sort - # The name of a dimension or metric to sort the resulting report on, optionally - # prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is - # specified, the column is sorted ascending. - # @param [Fixnum] start_index - # Index of the first row of report data to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @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::AdexchangesellerV2_0::Report] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::Report] - # - # @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 generate_account_report(account_id, start_date, end_date, dimension: nil, filter: nil, locale: nil, max_results: nil, metric: nil, sort: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block) - if download_dest.nil? - command = make_simple_command(:get, 'accounts/{accountId}/reports', options) - else - command = make_download_command(:get, 'accounts/{accountId}/reports', options) - command.download_dest = download_dest - end - command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::Report - command.params['accountId'] = account_id unless account_id.nil? - command.query['dimension'] = dimension unless dimension.nil? - command.query['endDate'] = end_date unless end_date.nil? - command.query['filter'] = filter unless filter.nil? - command.query['locale'] = locale unless locale.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['metric'] = metric unless metric.nil? - command.query['sort'] = sort unless sort.nil? - command.query['startDate'] = start_date unless start_date.nil? - command.query['startIndex'] = start_index unless start_index.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 - - # Generate an Ad Exchange report based on the saved report ID sent in the query - # parameters. - # @param [String] account_id - # Account owning the saved report. - # @param [String] saved_report_id - # The saved report to retrieve. - # @param [String] locale - # Optional locale to use for translating report output to a local language. - # Defaults to "en_US" if not specified. - # @param [Fixnum] max_results - # The maximum number of rows of report data to return. - # @param [Fixnum] start_index - # Index of the first row of report data to return. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::Report] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::Report] - # - # @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 generate_account_saved_report(account_id, saved_report_id, locale: nil, max_results: nil, start_index: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/reports/{savedReportId}', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::Report::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::Report - command.params['accountId'] = account_id unless account_id.nil? - command.params['savedReportId'] = saved_report_id unless saved_report_id.nil? - command.query['locale'] = locale unless locale.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['startIndex'] = start_index unless start_index.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 - - # List all saved reports in this Ad Exchange account. - # @param [String] account_id - # Account owning the saved reports. - # @param [Fixnum] max_results - # The maximum number of saved reports to include in the response, used for - # paging. - # @param [String] page_token - # A continuation token, used to page through saved reports. To retrieve the next - # page, set this parameter to the value of "nextPageToken" from the previous - # response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::SavedReports] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::SavedReports] - # - # @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_account_saved_reports(account_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/reports/saved', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::SavedReports::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::SavedReports - command.params['accountId'] = account_id unless account_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # List all URL channels in the specified ad client for this Ad Exchange account. - # @param [String] account_id - # Account to which the ad client belongs. - # @param [String] ad_client_id - # Ad client for which to list URL channels. - # @param [Fixnum] max_results - # The maximum number of URL channels to include in the response, used for paging. - # @param [String] page_token - # A continuation token, used to page through URL channels. To retrieve the next - # page, set this parameter to the value of "nextPageToken" from the previous - # response. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::AdexchangesellerV2_0::UrlChannels] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AdexchangesellerV2_0::UrlChannels] - # - # @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_account_url_channels(account_id, ad_client_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'accounts/{accountId}/adclients/{adClientId}/urlchannels', options) - command.response_representation = Google::Apis::AdexchangesellerV2_0::UrlChannels::Representation - command.response_class = Google::Apis::AdexchangesellerV2_0::UrlChannels - command.params['accountId'] = account_id unless account_id.nil? - command.params['adClientId'] = ad_client_id unless ad_client_id.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.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? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end diff --git a/generated/google/apis/admin_directory_v1.rb b/generated/google/apis/admin_directory_v1.rb index 1092b2859..214560b07 100644 --- a/generated/google/apis/admin_directory_v1.rb +++ b/generated/google/apis/admin_directory_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/admin-sdk/directory/ module AdminDirectoryV1 VERSION = 'DirectoryV1' - REVISION = '20180705' + REVISION = '20180911' # View and manage customer related information AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer' diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 00bdf7893..36696847e 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -1527,6 +1527,11 @@ module Google class Member include Google::Apis::Core::Hashable + # Delivery settings of member + # Corresponds to the JSON property `delivery_settings` + # @return [String] + attr_accessor :delivery_settings + # Email of member (Read-only) # Corresponds to the JSON property `email` # @return [String] @@ -1569,6 +1574,7 @@ module Google # Update properties of this object def update!(**args) + @delivery_settings = args[:delivery_settings] if args.key?(:delivery_settings) @email = args[:email] if args.key?(:email) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @@ -2896,7 +2902,7 @@ module Google # @return [Array] attr_accessor :aliases - # Indicates if user is archived + # Indicates if user is archived. # Corresponds to the JSON property `archived` # @return [Boolean] attr_accessor :archived @@ -3085,7 +3091,7 @@ module Google # @return [Object] attr_accessor :ssh_public_keys - # Indicates if user is suspended + # Indicates if user is suspended. # Corresponds to the JSON property `suspended` # @return [Boolean] attr_accessor :suspended diff --git a/generated/google/apis/admin_directory_v1/representations.rb b/generated/google/apis/admin_directory_v1/representations.rb index 48b57cb0b..fe8b15b2b 100644 --- a/generated/google/apis/admin_directory_v1/representations.rb +++ b/generated/google/apis/admin_directory_v1/representations.rb @@ -889,6 +889,7 @@ module Google class Member # @private class Representation < Google::Apis::Core::JsonRepresentation + property :delivery_settings, as: 'delivery_settings' property :email, as: 'email' property :etag, as: 'etag' property :id, as: 'id' diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index 431b3f287..cefd815ec 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20180824' + REVISION = '20180910' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index 0f6c7dbbd..8ef951006 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -423,6 +423,33 @@ module Google end end + # A selector that chooses target cluster for jobs based on metadata. + class ClusterSelector + include Google::Apis::Core::Hashable + + # Required. The cluster labels. Cluster must have all labels to match. + # Corresponds to the JSON property `clusterLabels` + # @return [Hash] + attr_accessor :cluster_labels + + # Optional. The zone where workflow process executes. This parameter does not + # affect the selection of the cluster.If unspecified, the zone of the first + # cluster matching the selector is used. + # Corresponds to the JSON property `zone` + # @return [String] + attr_accessor :zone + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster_labels = args[:cluster_labels] if args.key?(:cluster_labels) + @zone = args[:zone] if args.key?(:zone) + end + end + # The status of a cluster and its instances. class ClusterStatus include Google::Apis::Core::Hashable @@ -945,6 +972,46 @@ module Google end end + # A request to instantiate a workflow template. + class InstantiateWorkflowTemplateRequest + include Google::Apis::Core::Hashable + + # Optional. Map from parameter names to values that should be used for those + # parameters. + # Corresponds to the JSON property `parameters` + # @return [Hash] + attr_accessor :parameters + + # Optional. A tag that prevents multiple concurrent workflow instances with the + # same tag from running. This mitigates risk of concurrent instances started due + # to retries.It is recommended to always set this value to a UUID (https://en. + # wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only + # letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The + # maximum length is 40 characters. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + # Optional. The version of workflow template to instantiate. If specified, the + # workflow will be instantiated only if the current version of the workflow + # template has the supplied version.This option cannot be used to instantiate a + # previous version of workflow template. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @parameters = args[:parameters] if args.key?(:parameters) + @request_id = args[:request_id] if args.key?(:request_id) + @version = args[:version] if args.key?(:version) + end + end + # A Cloud Dataproc job resource. class Job include Google::Apis::Core::Hashable @@ -1260,6 +1327,33 @@ module Google end end + # A response to a request to list workflow templates in a project. + class ListWorkflowTemplatesResponse + include Google::Apis::Core::Hashable + + # Output only. This token is included in the response if there are more results + # to fetch. To fetch additional results, provide this value as the page_token in + # a subsequent ListWorkflowTemplatesRequest. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Output only. WorkflowTemplates list. + # Corresponds to the JSON property `templates` + # @return [Array] + attr_accessor :templates + + 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) + @templates = args[:templates] if args.key?(:templates) + end + end + # The runtime logging config of the job. class LoggingConfig include Google::Apis::Core::Hashable @@ -1281,6 +1375,44 @@ module Google end end + # Cluster that is managed by the workflow. + class ManagedCluster + include Google::Apis::Core::Hashable + + # Required. The cluster name prefix. A unique cluster name will be formed by + # appending a random suffix.The name must contain only lower-case letters (a-z), + # numbers (0-9), and hyphens (-). Must begin with a letter. Cannot begin or end + # with hyphen. Must consist of between 2 and 35 characters. + # Corresponds to the JSON property `clusterName` + # @return [String] + attr_accessor :cluster_name + + # The cluster config. + # Corresponds to the JSON property `config` + # @return [Google::Apis::DataprocV1::ClusterConfig] + attr_accessor :config + + # Optional. The labels to associate with this cluster.Label keys must be between + # 1 and 63 characters long, and must conform to the following PCRE regular + # expression: \p`Ll`\p`Lo``0,62`Label values must be between 1 and 63 characters + # long, and must conform to the following PCRE regular expression: \p`Ll`\p`Lo`\ + # p`N`_-`0,63`No more than 32 labels can be associated with a given cluster. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster_name = args[:cluster_name] if args.key?(:cluster_name) + @config = args[:config] if args.key?(:config) + @labels = args[:labels] if args.key?(:labels) + end + end + # Specifies the resources used to actively manage an instance group. class ManagedGroupConfig include Google::Apis::Core::Hashable @@ -1426,6 +1558,122 @@ module Google end end + # A job executed by the workflow. + class OrderedJob + include Google::Apis::Core::Hashable + + # A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop. + # apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/ + # MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/ + # docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). + # Corresponds to the JSON property `hadoopJob` + # @return [Google::Apis::DataprocV1::HadoopJob] + attr_accessor :hadoop_job + + # A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/) + # queries on YARN. + # Corresponds to the JSON property `hiveJob` + # @return [Google::Apis::DataprocV1::HiveJob] + attr_accessor :hive_job + + # Optional. The labels to associate with this job.Label keys must be between 1 + # and 63 characters long, and must conform to the following regular expression: \ + # p`Ll`\p`Lo``0,62`Label values must be between 1 and 63 characters long, and + # must conform to the following regular expression: \p`Ll`\p`Lo`\p`N`_-`0,63`No + # more than 32 labels can be associated with a given job. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries + # on YARN. + # Corresponds to the JSON property `pigJob` + # @return [Google::Apis::DataprocV1::PigJob] + attr_accessor :pig_job + + # Optional. The optional list of prerequisite job step_ids. If not specified, + # the job will start at the beginning of workflow. + # Corresponds to the JSON property `prerequisiteStepIds` + # @return [Array] + attr_accessor :prerequisite_step_ids + + # A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/ + # 0.9.0/python-programming-guide.html) applications on YARN. + # Corresponds to the JSON property `pysparkJob` + # @return [Google::Apis::DataprocV1::PySparkJob] + attr_accessor :pyspark_job + + # Job scheduling options. + # Corresponds to the JSON property `scheduling` + # @return [Google::Apis::DataprocV1::JobScheduling] + attr_accessor :scheduling + + # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) + # applications on YARN. + # Corresponds to the JSON property `sparkJob` + # @return [Google::Apis::DataprocV1::SparkJob] + attr_accessor :spark_job + + # A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/ + # ) queries. + # Corresponds to the JSON property `sparkSqlJob` + # @return [Google::Apis::DataprocV1::SparkSqlJob] + attr_accessor :spark_sql_job + + # Required. The step id. The id must be unique among all jobs within the + # template.The step id is used as prefix for job id, as job goog-dataproc- + # workflow-step-id label, and in prerequisiteStepIds field from other steps.The + # id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and + # hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of + # between 3 and 50 characters. + # Corresponds to the JSON property `stepId` + # @return [String] + attr_accessor :step_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job) + @hive_job = args[:hive_job] if args.key?(:hive_job) + @labels = args[:labels] if args.key?(:labels) + @pig_job = args[:pig_job] if args.key?(:pig_job) + @prerequisite_step_ids = args[:prerequisite_step_ids] if args.key?(:prerequisite_step_ids) + @pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job) + @scheduling = args[:scheduling] if args.key?(:scheduling) + @spark_job = args[:spark_job] if args.key?(:spark_job) + @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job) + @step_id = args[:step_id] if args.key?(:step_id) + end + end + + # Configuration for parameter validation. + class ParameterValidation + include Google::Apis::Core::Hashable + + # Validation based on regular expressions. + # Corresponds to the JSON property `regex` + # @return [Google::Apis::DataprocV1::RegexValidation] + attr_accessor :regex + + # Validation based on a list of allowed values. + # Corresponds to the JSON property `values` + # @return [Google::Apis::DataprocV1::ValueValidation] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @regex = args[:regex] if args.key?(:regex) + @values = args[:values] if args.key?(:values) + end + end + # A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries # on YARN. class PigJob @@ -1667,6 +1915,27 @@ module Google end end + # Validation based on regular expressions. + class RegexValidation + include Google::Apis::Core::Hashable + + # Required. RE2 regular expressions used to validate the parameter's value. The + # value must match the regex in its entirety (substring matches are not + # sufficient). + # Corresponds to the JSON property `regexes` + # @return [Array] + attr_accessor :regexes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @regexes = args[:regexes] if args.key?(:regexes) + end + end + # Request message for SetIamPolicy method. class SetIamPolicyRequest include Google::Apis::Core::Hashable @@ -1982,6 +2251,82 @@ module Google end end + # A configurable parameter that replaces one or more fields in the template. + # Parameterizable fields: - Labels - File uris - Job properties - Job arguments - + # Script variables - Main class (in HadoopJob and SparkJob) - Zone (in + # ClusterSelector) + class TemplateParameter + include Google::Apis::Core::Hashable + + # Optional. Brief description of the parameter. Must not exceed 1024 characters. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Required. Paths to all fields that the parameter replaces. A field is allowed + # to appear in at most one parameter's list of field paths.A field path is + # similar in syntax to a google.protobuf.FieldMask. For example, a field path + # that references the zone field of a workflow template's cluster selector would + # be specified as placement.clusterSelector.zone.Also, field paths + # can reference fields using the following syntax: + # Values in maps can be referenced by key. Examples
+ # labels'key' + # placement.clusterSelector.clusterLabels'key' + # placement.managedCluster.labels'key' + # placement.clusterSelector.clusterLabels'key' + # jobsstep-id.labels'key' + # Jobs in the jobs list can be referenced by step-id. Examples:
+ # jobsstep-id.hadoopJob.mainJarFileUri + # jobsstep-id.hiveJob.queryFileUri + # jobsstep-id.pySparkJob.mainPythonFileUri + # jobsstep-id.hadoopJob.jarFileUris0 + # jobsstep-id.hadoopJob.archiveUris0 + # jobsstep-id.hadoopJob.fileUris0 + # jobsstep-id.pySparkJob.pythonFileUris0 + # Items in repeated fields can be referenced by a zero-based index. Example:
+ # jobsstep-id.sparkJob.args0 + # Other examples: + # jobsstep-id.hadoopJob.properties'key' + # jobsstep-id.hadoopJob.args0 + # jobsstep-id.hiveJob.scriptVariables'key' + # jobsstep-id.hadoopJob.mainJarFileUri + # placement.clusterSelector.zoneIt may not be possible to parameterize maps and + # repeated fields in their entirety since only individual map values and + # individual items in repeated fields can be referenced. For example, the + # following field paths are invalid: + # placement.clusterSelector.clusterLabels + # jobsstep-id.sparkJob.args + # Corresponds to the JSON property `fields` + # @return [Array] + attr_accessor :fields + + # Required. Parameter name. The parameter name is used as the key, and paired + # with the parameter value, which are passed to the template when the template + # is instantiated. The name must contain only capital letters (A-Z), numbers (0- + # 9), and underscores (_), and must not start with a number. The maximum length + # is 40 characters. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Configuration for parameter validation. + # Corresponds to the JSON property `validation` + # @return [Google::Apis::DataprocV1::ParameterValidation] + attr_accessor :validation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @fields = args[:fields] if args.key?(:fields) + @name = args[:name] if args.key?(:name) + @validation = args[:validation] if args.key?(:validation) + end + end + # Request message for TestIamPermissions method. class TestIamPermissionsRequest include Google::Apis::Core::Hashable @@ -2022,6 +2367,25 @@ module Google end end + # Validation based on a list of allowed values. + class ValueValidation + include Google::Apis::Core::Hashable + + # Required. List of allowed values for the parameter. + # Corresponds to the JSON property `values` + # @return [Array] + attr_accessor :values + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @values = args[:values] if args.key?(:values) + end + end + # The workflow graph. class WorkflowGraph include Google::Apis::Core::Hashable @@ -2145,6 +2509,117 @@ module Google end end + # A Cloud Dataproc workflow template resource. + class WorkflowTemplate + include Google::Apis::Core::Hashable + + # Output only. The time template was created. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # Required. The template id.The id must contain only letters (a-z, A-Z), numbers + # (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore + # or hyphen. Must consist of between 3 and 50 characters. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Required. The Directed Acyclic Graph of Jobs to submit. + # Corresponds to the JSON property `jobs` + # @return [Array] + attr_accessor :jobs + + # Optional. The labels to associate with this template. These labels will be + # propagated to all jobs and clusters created by the workflow instance.Label + # keys must contain 1 to 63 characters, and must conform to RFC 1035 (https:// + # www.ietf.org/rfc/rfc1035.txt).Label values may be empty, but, if present, must + # contain 1 to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/ + # rfc/rfc1035.txt).No more than 32 labels can be associated with a template. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Output only. The "resource name" of the template, as described in https:// + # cloud.google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/workflowTemplates/`template_id` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Optional. Template parameters whose values are substituted into the template. + # Values for parameters must be provided when the template is instantiated. + # Corresponds to the JSON property `parameters` + # @return [Array] + attr_accessor :parameters + + # Specifies workflow execution target.Either managed_cluster or cluster_selector + # is required. + # Corresponds to the JSON property `placement` + # @return [Google::Apis::DataprocV1::WorkflowTemplatePlacement] + attr_accessor :placement + + # Output only. The time template was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + # Optional. Used to perform a consistent read-modify-write.This field should be + # left blank for a CreateWorkflowTemplate request. It is required for an + # UpdateWorkflowTemplate request, and must match the current server version. A + # typical update template flow would fetch the current template with a + # GetWorkflowTemplate request, which will return the current template with the + # version field filled in with the current server version. The user updates + # other fields in the template, then returns it as part of the + # UpdateWorkflowTemplate request. + # Corresponds to the JSON property `version` + # @return [Fixnum] + attr_accessor :version + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_time = args[:create_time] if args.key?(:create_time) + @id = args[:id] if args.key?(:id) + @jobs = args[:jobs] if args.key?(:jobs) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @parameters = args[:parameters] if args.key?(:parameters) + @placement = args[:placement] if args.key?(:placement) + @update_time = args[:update_time] if args.key?(:update_time) + @version = args[:version] if args.key?(:version) + end + end + + # Specifies workflow execution target.Either managed_cluster or cluster_selector + # is required. + class WorkflowTemplatePlacement + include Google::Apis::Core::Hashable + + # A selector that chooses target cluster for jobs based on metadata. + # Corresponds to the JSON property `clusterSelector` + # @return [Google::Apis::DataprocV1::ClusterSelector] + attr_accessor :cluster_selector + + # Cluster that is managed by the workflow. + # Corresponds to the JSON property `managedCluster` + # @return [Google::Apis::DataprocV1::ManagedCluster] + attr_accessor :managed_cluster + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @cluster_selector = args[:cluster_selector] if args.key?(:cluster_selector) + @managed_cluster = args[:managed_cluster] if args.key?(:managed_cluster) + end + end + # A YARN application created by a job. Application information is a subset of < # code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. # Beta Feature: This report is available for testing purposes only. It may be diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index 74b3ab39c..99376552f 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -76,6 +76,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ClusterSelector + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ClusterStatus class Representation < Google::Apis::Core::JsonRepresentation; end @@ -148,6 +154,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class InstantiateWorkflowTemplateRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Job class Representation < Google::Apis::Core::JsonRepresentation; end @@ -196,12 +208,24 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ListWorkflowTemplatesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LoggingConfig class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ManagedCluster + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ManagedGroupConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -220,6 +244,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OrderedJob + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ParameterValidation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PigJob class Representation < Google::Apis::Core::JsonRepresentation; end @@ -244,6 +280,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RegexValidation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class SetIamPolicyRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -280,6 +322,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TemplateParameter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class TestIamPermissionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -292,6 +340,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ValueValidation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WorkflowGraph class Representation < Google::Apis::Core::JsonRepresentation; end @@ -310,6 +364,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class WorkflowTemplate + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class WorkflowTemplatePlacement + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class YarnApplication class Representation < Google::Apis::Core::JsonRepresentation; end @@ -422,6 +488,14 @@ module Google end end + class ClusterSelector + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :cluster_labels, as: 'clusterLabels' + property :zone, as: 'zone' + end + end + class ClusterStatus # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -542,6 +616,15 @@ module Google end end + class InstantiateWorkflowTemplateRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + hash :parameters, as: 'parameters' + property :request_id, as: 'requestId' + property :version, as: 'version' + end + end + class Job # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -635,6 +718,15 @@ module Google end end + class ListWorkflowTemplatesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :templates, as: 'templates', class: Google::Apis::DataprocV1::WorkflowTemplate, decorator: Google::Apis::DataprocV1::WorkflowTemplate::Representation + + end + end + class LoggingConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -642,6 +734,16 @@ module Google end end + class ManagedCluster + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_name, as: 'clusterName' + property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation + + hash :labels, as: 'labels' + end + end + class ManagedGroupConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -670,6 +772,39 @@ module Google end end + class OrderedJob + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation + + property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation + + hash :labels, as: 'labels' + property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation + + collection :prerequisite_step_ids, as: 'prerequisiteStepIds' + property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation + + property :scheduling, as: 'scheduling', class: Google::Apis::DataprocV1::JobScheduling, decorator: Google::Apis::DataprocV1::JobScheduling::Representation + + property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation + + property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation + + property :step_id, as: 'stepId' + end + end + + class ParameterValidation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :regex, as: 'regex', class: Google::Apis::DataprocV1::RegexValidation, decorator: Google::Apis::DataprocV1::RegexValidation::Representation + + property :values, as: 'values', class: Google::Apis::DataprocV1::ValueValidation, decorator: Google::Apis::DataprocV1::ValueValidation::Representation + + end + end + class PigJob # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -717,6 +852,13 @@ module Google end end + class RegexValidation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :regexes, as: 'regexes' + end + end + class SetIamPolicyRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -780,6 +922,17 @@ module Google end end + class TemplateParameter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + collection :fields, as: 'fields' + property :name, as: 'name' + property :validation, as: 'validation', class: Google::Apis::DataprocV1::ParameterValidation, decorator: Google::Apis::DataprocV1::ParameterValidation::Representation + + end + end + class TestIamPermissionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -794,6 +947,13 @@ module Google end end + class ValueValidation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :values, as: 'values' + end + end + class WorkflowGraph # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -830,6 +990,34 @@ module Google end end + class WorkflowTemplate + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_time, as: 'createTime' + property :id, as: 'id' + collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::OrderedJob, decorator: Google::Apis::DataprocV1::OrderedJob::Representation + + hash :labels, as: 'labels' + property :name, as: 'name' + collection :parameters, as: 'parameters', class: Google::Apis::DataprocV1::TemplateParameter, decorator: Google::Apis::DataprocV1::TemplateParameter::Representation + + property :placement, as: 'placement', class: Google::Apis::DataprocV1::WorkflowTemplatePlacement, decorator: Google::Apis::DataprocV1::WorkflowTemplatePlacement::Representation + + property :update_time, as: 'updateTime' + property :version, as: 'version' + end + end + + class WorkflowTemplatePlacement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :cluster_selector, as: 'clusterSelector', class: Google::Apis::DataprocV1::ClusterSelector, decorator: Google::Apis::DataprocV1::ClusterSelector::Representation + + property :managed_cluster, as: 'managedCluster', class: Google::Apis::DataprocV1::ManagedCluster, decorator: Google::Apis::DataprocV1::ManagedCluster::Representation + + end + end + class YarnApplication # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dataproc_v1/service.rb b/generated/google/apis/dataproc_v1/service.rb index 14d95492c..09098f975 100644 --- a/generated/google/apis/dataproc_v1/service.rb +++ b/generated/google/apis/dataproc_v1/service.rb @@ -47,6 +47,115 @@ module Google @batch_path = 'batch' end + # Creates new workflow template. + # @param [String] parent + # Required. The "resource name" of the region, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region` + # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_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::DataprocV1::WorkflowTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::WorkflowTemplate] + # + # @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_project_location_workflow_template(parent, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/workflowTemplates', options) + command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.request_object = workflow_template_object + command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.response_class = Google::Apis::DataprocV1::WorkflowTemplate + command.params['parent'] = parent unless parent.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 workflow template. It does not cancel in-progress workflows. + # @param [String] name + # Required. The "resource name" of the workflow template, as described in https:/ + # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/workflowTemplates/`template_id` + # @param [Fixnum] version + # Optional. The version of workflow template to delete. If specified, will only + # delete the template if the current server version matches specified version. + # @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::DataprocV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_location_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::DataprocV1::Empty::Representation + command.response_class = Google::Apis::DataprocV1::Empty + command.params['name'] = name unless name.nil? + command.query['version'] = version unless version.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 latest workflow template.Can retrieve previously instantiated + # template by specifying optional version parameter. + # @param [String] name + # Required. The "resource name" of the workflow template, as described in https:/ + # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/workflowTemplates/`template_id` + # @param [Fixnum] version + # Optional. The version of workflow template to retrieve. Only previously + # instatiated versions can be retrieved.If unspecified, retrieves the current + # version. + # @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::DataprocV1::WorkflowTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::WorkflowTemplate] + # + # @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_location_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.response_class = Google::Apis::DataprocV1::WorkflowTemplate + command.params['name'] = name unless name.nil? + command.query['version'] = version unless version.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 access control policy for a resource. Returns an empty policy if the # resource exists and does not have a policy set. # @param [String] resource @@ -82,6 +191,136 @@ module Google execute_or_queue_command(command, &block) end + # Instantiates a template and begins execution.The returned Operation can be + # used to track execution of workflow by polling operations.get. The Operation + # will complete when entire workflow is finished.The running workflow can be + # aborted via operations.cancel. This will cause any inflight jobs to be + # cancelled and workflow-owned clusters to be deleted.The Operation.metadata + # will be WorkflowMetadata.On successful completion, Operation.response will be + # Empty. + # @param [String] name + # Required. The "resource name" of the workflow template, as described in https:/ + # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/workflowTemplates/`template_id` + # @param [Google::Apis::DataprocV1::InstantiateWorkflowTemplateRequest] instantiate_workflow_template_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::DataprocV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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 instantiate_project_location_workflow_template(name, instantiate_workflow_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:instantiate', options) + command.request_representation = Google::Apis::DataprocV1::InstantiateWorkflowTemplateRequest::Representation + command.request_object = instantiate_workflow_template_request_object + command.response_representation = Google::Apis::DataprocV1::Operation::Representation + command.response_class = Google::Apis::DataprocV1::Operation + command.params['name'] = name unless 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 + + # Instantiates a template and begins execution.This method is equivalent to + # executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, + # DeleteWorkflowTemplate.The returned Operation can be used to track execution + # of workflow by polling operations.get. The Operation will complete when entire + # workflow is finished.The running workflow can be aborted via operations.cancel. + # This will cause any inflight jobs to be cancelled and workflow-owned clusters + # to be deleted.The Operation.metadata will be WorkflowMetadata.On successful + # completion, Operation.response will be Empty. + # @param [String] parent + # Required. The "resource name" of the workflow template region, as described in + # https://cloud.google.com/apis/design/resource_names of the form projects/` + # project_id`/regions/`region` + # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_object + # @param [String] request_id + # Optional. A tag that prevents multiple concurrent workflow instances with the + # same tag from running. This mitigates risk of concurrent instances started due + # to retries.It is recommended to always set this value to a UUID (https://en. + # wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only + # letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The + # maximum length is 40 characters. + # @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::DataprocV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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 instantiate_project_location_workflow_template_inline(parent, workflow_template_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/workflowTemplates:instantiateInline', options) + command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.request_object = workflow_template_object + command.response_representation = Google::Apis::DataprocV1::Operation::Representation + command.response_class = Google::Apis::DataprocV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['requestId'] = request_id unless request_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 workflows that match the specified filter in the request. + # @param [String] parent + # Required. The "resource name" of the region, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region` + # @param [Fixnum] page_size + # Optional. The maximum number of results to return in each response. + # @param [String] page_token + # Optional. The page token, returned by a previous call, to request the next + # page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1::ListWorkflowTemplatesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::ListWorkflowTemplatesResponse] + # + # @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_location_workflow_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/workflowTemplates', options) + command.response_representation = Google::Apis::DataprocV1::ListWorkflowTemplatesResponse::Representation + command.response_class = Google::Apis::DataprocV1::ListWorkflowTemplatesResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource @@ -155,6 +394,42 @@ module Google execute_or_queue_command(command, &block) end + # Updates (replaces) workflow template. The updated template must contain + # version that matches the current server version. + # @param [String] name + # Output only. The "resource name" of the template, as described in https:// + # cloud.google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/workflowTemplates/`template_id` + # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_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::DataprocV1::WorkflowTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::WorkflowTemplate] + # + # @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_project_location_workflow_template(name, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.request_object = workflow_template_object + command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.response_class = Google::Apis::DataprocV1::WorkflowTemplate + command.params['name'] = name unless 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 belongs @@ -1191,6 +1466,115 @@ module Google execute_or_queue_command(command, &block) end + # Creates new workflow template. + # @param [String] parent + # Required. The "resource name" of the region, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region` + # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_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::DataprocV1::WorkflowTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::WorkflowTemplate] + # + # @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_project_region_workflow_template(parent, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/workflowTemplates', options) + command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.request_object = workflow_template_object + command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.response_class = Google::Apis::DataprocV1::WorkflowTemplate + command.params['parent'] = parent unless parent.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 workflow template. It does not cancel in-progress workflows. + # @param [String] name + # Required. The "resource name" of the workflow template, as described in https:/ + # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/workflowTemplates/`template_id` + # @param [Fixnum] version + # Optional. The version of workflow template to delete. If specified, will only + # delete the template if the current server version matches specified version. + # @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::DataprocV1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::Empty] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def delete_project_region_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1/{+name}', options) + command.response_representation = Google::Apis::DataprocV1::Empty::Representation + command.response_class = Google::Apis::DataprocV1::Empty + command.params['name'] = name unless name.nil? + command.query['version'] = version unless version.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 latest workflow template.Can retrieve previously instantiated + # template by specifying optional version parameter. + # @param [String] name + # Required. The "resource name" of the workflow template, as described in https:/ + # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/workflowTemplates/`template_id` + # @param [Fixnum] version + # Optional. The version of workflow template to retrieve. Only previously + # instatiated versions can be retrieved.If unspecified, retrieves the current + # version. + # @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::DataprocV1::WorkflowTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::WorkflowTemplate] + # + # @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_region_workflow_template(name, version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.response_class = Google::Apis::DataprocV1::WorkflowTemplate + command.params['name'] = name unless name.nil? + command.query['version'] = version unless version.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 access control policy for a resource. Returns an empty policy if the # resource exists and does not have a policy set. # @param [String] resource @@ -1226,6 +1610,136 @@ module Google execute_or_queue_command(command, &block) end + # Instantiates a template and begins execution.The returned Operation can be + # used to track execution of workflow by polling operations.get. The Operation + # will complete when entire workflow is finished.The running workflow can be + # aborted via operations.cancel. This will cause any inflight jobs to be + # cancelled and workflow-owned clusters to be deleted.The Operation.metadata + # will be WorkflowMetadata.On successful completion, Operation.response will be + # Empty. + # @param [String] name + # Required. The "resource name" of the workflow template, as described in https:/ + # /cloud.google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/workflowTemplates/`template_id` + # @param [Google::Apis::DataprocV1::InstantiateWorkflowTemplateRequest] instantiate_workflow_template_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::DataprocV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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 instantiate_project_region_workflow_template(name, instantiate_workflow_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+name}:instantiate', options) + command.request_representation = Google::Apis::DataprocV1::InstantiateWorkflowTemplateRequest::Representation + command.request_object = instantiate_workflow_template_request_object + command.response_representation = Google::Apis::DataprocV1::Operation::Representation + command.response_class = Google::Apis::DataprocV1::Operation + command.params['name'] = name unless 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 + + # Instantiates a template and begins execution.This method is equivalent to + # executing the sequence CreateWorkflowTemplate, InstantiateWorkflowTemplate, + # DeleteWorkflowTemplate.The returned Operation can be used to track execution + # of workflow by polling operations.get. The Operation will complete when entire + # workflow is finished.The running workflow can be aborted via operations.cancel. + # This will cause any inflight jobs to be cancelled and workflow-owned clusters + # to be deleted.The Operation.metadata will be WorkflowMetadata.On successful + # completion, Operation.response will be Empty. + # @param [String] parent + # Required. The "resource name" of the workflow template region, as described in + # https://cloud.google.com/apis/design/resource_names of the form projects/` + # project_id`/regions/`region` + # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_object + # @param [String] request_id + # Optional. A tag that prevents multiple concurrent workflow instances with the + # same tag from running. This mitigates risk of concurrent instances started due + # to retries.It is recommended to always set this value to a UUID (https://en. + # wikipedia.org/wiki/Universally_unique_identifier).The tag must contain only + # letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The + # maximum length is 40 characters. + # @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::DataprocV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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 instantiate_project_region_workflow_template_inline(parent, workflow_template_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/workflowTemplates:instantiateInline', options) + command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.request_object = workflow_template_object + command.response_representation = Google::Apis::DataprocV1::Operation::Representation + command.response_class = Google::Apis::DataprocV1::Operation + command.params['parent'] = parent unless parent.nil? + command.query['requestId'] = request_id unless request_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 workflows that match the specified filter in the request. + # @param [String] parent + # Required. The "resource name" of the region, as described in https://cloud. + # google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region` + # @param [Fixnum] page_size + # Optional. The maximum number of results to return in each response. + # @param [String] page_token + # Optional. The page token, returned by a previous call, to request the next + # page of results. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1::ListWorkflowTemplatesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::ListWorkflowTemplatesResponse] + # + # @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_region_workflow_templates(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+parent}/workflowTemplates', options) + command.response_representation = Google::Apis::DataprocV1::ListWorkflowTemplatesResponse::Representation + command.response_class = Google::Apis::DataprocV1::ListWorkflowTemplatesResponse + command.params['parent'] = parent unless parent.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Sets the access control policy on the specified resource. Replaces any # existing policy. # @param [String] resource @@ -1298,6 +1812,42 @@ module Google command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + + # Updates (replaces) workflow template. The updated template must contain + # version that matches the current server version. + # @param [String] name + # Output only. The "resource name" of the template, as described in https:// + # cloud.google.com/apis/design/resource_names of the form projects/`project_id`/ + # regions/`region`/workflowTemplates/`template_id` + # @param [Google::Apis::DataprocV1::WorkflowTemplate] workflow_template_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::DataprocV1::WorkflowTemplate] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::WorkflowTemplate] + # + # @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_project_region_workflow_template(name, workflow_template_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v1/{+name}', options) + command.request_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.request_object = workflow_template_object + command.response_representation = Google::Apis::DataprocV1::WorkflowTemplate::Representation + command.response_class = Google::Apis::DataprocV1::WorkflowTemplate + command.params['name'] = name unless 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 protected diff --git a/generated/google/apis/sqladmin_v1beta4.rb b/generated/google/apis/sqladmin_v1beta4.rb index e9d0207d4..d107b1007 100644 --- a/generated/google/apis/sqladmin_v1beta4.rb +++ b/generated/google/apis/sqladmin_v1beta4.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/sql/docs/reference/latest module SqladminV1beta4 VERSION = 'V1beta4' - REVISION = '20180907' + REVISION = '20180912' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/sqladmin_v1beta4/service.rb b/generated/google/apis/sqladmin_v1beta4/service.rb index 79ee19e2b..389ab65c1 100644 --- a/generated/google/apis/sqladmin_v1beta4/service.rb +++ b/generated/google/apis/sqladmin_v1beta4/service.rb @@ -1739,11 +1739,11 @@ module Google # Project ID of the project that contains the instance. # @param [String] instance # Database instance ID. This does not include the project ID. - # @param [String] host - # Host of the user in the instance. # @param [String] name # Name of the user in the instance. # @param [Google::Apis::SqladminV1beta4::User] user_object + # @param [String] host + # Host of the user in the instance. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1763,7 +1763,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 update_user(project, instance, host, name, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def update_user(project, instance, name, user_object = nil, host: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:put, 'projects/{project}/instances/{instance}/users', options) command.request_representation = Google::Apis::SqladminV1beta4::User::Representation command.request_object = user_object diff --git a/generated/google/apis/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb index 678f1d8a4..ab54ae2d2 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -300,7 +300,7 @@ module Google # @return [String] attr_accessor :form - # Whether this device is a phone, tablet, wearable, etc. + # Whther this device is a phone, tablet, wearable, etc. # @OutputOnly # Corresponds to the JSON property `formFactor` # @return [String] @@ -1184,12 +1184,6 @@ module Google # @return [Array] attr_accessor :device_capabilities - # Whether this device is a phone, tablet, wearable, etc. - # @OutputOnly - # Corresponds to the JSON property `formFactor` - # @return [String] - attr_accessor :form_factor - # Output only. The unique opaque id for this model. # Use this for invoking the TestExecutionService. # Corresponds to the JSON property `id` @@ -1220,7 +1214,6 @@ module Google # Update properties of this object def update!(**args) @device_capabilities = args[:device_capabilities] if args.key?(:device_capabilities) - @form_factor = args[:form_factor] if args.key?(:form_factor) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids) diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb index 3dea76639..a49d6d47b 100644 --- a/generated/google/apis/testing_v1/representations.rb +++ b/generated/google/apis/testing_v1/representations.rb @@ -688,7 +688,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :device_capabilities, as: 'deviceCapabilities' - property :form_factor, as: 'formFactor' property :id, as: 'id' property :name, as: 'name' collection :supported_version_ids, as: 'supportedVersionIds' diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index db56eb7e4..c617e1707 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20180903' + REVISION = '20180910' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'