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
This commit is contained in:
Google APIs 2018-09-15 00:36:19 +00:00
parent 8faa43b9f7
commit ff14c096f5
29 changed files with 5063 additions and 5197 deletions

View File

@ -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

View File

@ -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'

File diff suppressed because it is too large Load Diff

View File

@ -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.

View File

@ -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

View File

@ -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<Google::Apis::AdexchangesellerV1::AdClient>]
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<Google::Apis::AdexchangesellerV1::AdUnit>]
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<Google::Apis::AdexchangesellerV1::CustomChannel>]
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<String>]
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<Google::Apis::AdexchangesellerV1::Report::Header>]
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<Array<String>>]
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<String>]
attr_accessor :totals
# Any warnings associated with generation of the report.
# Corresponds to the JSON property `warnings`
# @return [Array<String>]
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<Google::Apis::AdexchangesellerV1::SavedReport>]
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<Google::Apis::AdexchangesellerV1::UrlChannel>]
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

View File

@ -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

View File

@ -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>, String] dimension
# Dimensions to base the report on.
# @param [Array<String>, 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>, String] metric
# Numeric columns to include in the report.
# @param [Array<String>, 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

View File

@ -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

View File

@ -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<Google::Apis::AdexchangesellerV1_1::AdClient>]
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<Google::Apis::AdexchangesellerV1_1::AdUnit>]
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<Google::Apis::AdexchangesellerV1_1::Alert>]
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<Google::Apis::AdexchangesellerV1_1::CustomChannel>]
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<Google::Apis::AdexchangesellerV1_1::ReportingMetadataEntry>]
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<Google::Apis::AdexchangesellerV1_1::PreferredDeal>]
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<String>]
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<Google::Apis::AdexchangesellerV1_1::Report::Header>]
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<Array<String>>]
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<String>]
attr_accessor :totals
# Any warnings associated with generation of the report.
# Corresponds to the JSON property `warnings`
# @return [Array<String>]
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<String>]
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<String>]
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<String>]
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<String>]
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<String>]
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<Google::Apis::AdexchangesellerV1_1::SavedReport>]
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<Google::Apis::AdexchangesellerV1_1::UrlChannel>]
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

View File

@ -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

View File

@ -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>, String] dimension
# Dimensions to base the report on.
# @param [Array<String>, 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>, String] metric
# Numeric columns to include in the report.
# @param [Array<String>, 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

View File

@ -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

View File

@ -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<Google::Apis::AdexchangesellerV2_0::Account>]
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<Google::Apis::AdexchangesellerV2_0::AdClient>]
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<Google::Apis::AdexchangesellerV2_0::Alert>]
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<Google::Apis::AdexchangesellerV2_0::CustomChannel>]
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<Google::Apis::AdexchangesellerV2_0::ReportingMetadataEntry>]
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<Google::Apis::AdexchangesellerV2_0::PreferredDeal>]
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<String>]
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<Google::Apis::AdexchangesellerV2_0::Report::Header>]
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<Array<String>>]
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<String>]
attr_accessor :totals
# Any warnings associated with generation of the report.
# Corresponds to the JSON property `warnings`
# @return [Array<String>]
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<String>]
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<String>]
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<String>]
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<String>]
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<String>]
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<Google::Apis::AdexchangesellerV2_0::SavedReport>]
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<Google::Apis::AdexchangesellerV2_0::UrlChannel>]
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

View File

@ -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

View File

@ -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>, String] dimension
# Dimensions to base the report on.
# @param [Array<String>, 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>, String] metric
# Numeric columns to include in the report.
# @param [Array<String>, 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

View File

@ -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'

View File

@ -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<String>]
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

View File

@ -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'

View File

@ -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'

View File

@ -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<String,String>]
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<String,String>]
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 <code>ListWorkflowTemplatesRequest</code>.
# 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<Google::Apis::DataprocV1::WorkflowTemplate>]
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<String,String>]
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<String,String>]
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<String>]
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<String>]
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 <code>placement.clusterSelector.zone</code>.Also, field paths
# can reference fields using the following syntax:
# Values in maps can be referenced by key. Examples<br>
# 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:<br>
# 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:<br>
# 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<String>]
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<String>]
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<Google::Apis::DataprocV1::OrderedJob>]
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<String,String>]
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<Google::Apis::DataprocV1::TemplateParameter>]
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</code>.
# Beta Feature: This report is available for testing purposes only. It may be

View File

@ -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

View File

@ -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
@ -1299,6 +1813,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_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
def apply_command_defaults(command)

View File

@ -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'

View File

@ -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

View File

@ -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<String>]
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)

View File

@ -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'

View File

@ -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'