From 54a3289c6fac1410e28f91a97795cd5f160f3798 Mon Sep 17 00:00:00 2001 From: henribru <6639509+henribru@users.noreply.github.com> Date: Wed, 15 Nov 2023 20:43:31 +0100 Subject: [PATCH] Modernize generated types --- .../client.pyi | 44 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/account_link_service/client.pyi | 52 +-- .../account_link_service/transports/base.pyi | 20 +- .../account_link_service/transports/grpc.pyi | 28 +- .../ad_group_ad_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/ad_group_ad_service/client.pyi | 44 +- .../ad_group_ad_service/transports/base.pyi | 15 +- .../ad_group_ad_service/transports/grpc.pyi | 28 +- .../ad_group_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../ad_group_asset_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../ad_group_bid_modifier_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../ad_group_criterion_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../ad_group_customizer_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/ad_group_feed_service/client.pyi | 42 +- .../ad_group_feed_service/transports/base.pyi | 15 +- .../ad_group_feed_service/transports/grpc.pyi | 28 +- .../ad_group_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/ad_group_service/client.pyi | 38 +- .../ad_group_service/transports/base.pyi | 15 +- .../ad_group_service/transports/grpc.pyi | 28 +- .../services/ad_parameter_service/client.pyi | 40 +- .../ad_parameter_service/transports/base.pyi | 15 +- .../ad_parameter_service/transports/grpc.pyi | 28 +- .../services/services/ad_service/client.pyi | 44 +- .../services/ad_service/transports/base.pyi | 14 +- .../services/ad_service/transports/grpc.pyi | 28 +- .../asset_group_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/asset_group_service/client.pyi | 40 +- .../asset_group_service/transports/base.pyi | 15 +- .../asset_group_service/transports/grpc.pyi | 28 +- .../asset_group_signal_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/asset_service/client.pyi | 36 +- .../asset_service/transports/base.pyi | 15 +- .../asset_service/transports/grpc.pyi | 28 +- .../asset_set_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/asset_set_service/client.pyi | 36 +- .../asset_set_service/transports/base.pyi | 15 +- .../asset_set_service/transports/grpc.pyi | 28 +- .../audience_insights_service/client.pyi | 93 ++-- .../transports/base.pyi | 32 +- .../transports/grpc.pyi | 28 +- .../services/audience_service/client.pyi | 36 +- .../audience_service/transports/base.pyi | 15 +- .../audience_service/transports/grpc.pyi | 28 +- .../services/batch_job_service/client.pyi | 232 +++++----- .../services/batch_job_service/pagers.pyi | 2 +- .../batch_job_service/transports/base.pyi | 27 +- .../batch_job_service/transports/grpc.pyi | 28 +- .../bidding_data_exclusion_service/client.pyi | 44 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../bidding_strategy_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/billing_setup_service/client.pyi | 38 +- .../billing_setup_service/transports/base.pyi | 15 +- .../billing_setup_service/transports/grpc.pyi | 28 +- .../campaign_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_asset_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_bid_modifier_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_budget_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 45 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../campaign_criterion_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_customizer_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_draft_service/client.pyi | 64 ++- .../campaign_draft_service/pagers.pyi | 2 +- .../transports/base.pyi | 22 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/campaign_feed_service/client.pyi | 42 +- .../campaign_feed_service/transports/base.pyi | 15 +- .../campaign_feed_service/transports/grpc.pyi | 28 +- .../campaign_group_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/campaign_service/client.pyi | 52 ++- .../campaign_service/transports/base.pyi | 15 +- .../campaign_service/transports/grpc.pyi | 28 +- .../campaign_shared_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../conversion_action_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../conversion_upload_service/client.pyi | 58 ++- .../transports/base.pyi | 20 +- .../transports/grpc.pyi | 28 +- .../conversion_value_rule_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../custom_audience_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../custom_conversion_goal_service/client.pyi | 44 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../custom_interest_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_asset_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_asset_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_client_link_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../customer_customizer_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/customer_feed_service/client.pyi | 40 +- .../customer_feed_service/transports/base.pyi | 15 +- .../customer_feed_service/transports/grpc.pyi | 28 +- .../customer_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_manager_link_service/client.pyi | 56 ++- .../transports/base.pyi | 20 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 45 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/customer_service/client.pyi | 60 ++- .../customer_service/transports/base.pyi | 25 +- .../customer_service/transports/grpc.pyi | 28 +- .../client.pyi | 37 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../customer_user_access_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customizer_attribute_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../experiment_arm_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/experiment_service/client.pyi | 104 ++--- .../services/experiment_service/pagers.pyi | 2 +- .../experiment_service/transports/base.pyi | 28 +- .../experiment_service/transports/grpc.pyi | 28 +- .../extension_feed_item_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/feed_item_service/client.pyi | 38 +- .../feed_item_service/transports/base.pyi | 15 +- .../feed_item_service/transports/grpc.pyi | 28 +- .../feed_item_set_link_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/feed_item_set_service/client.pyi | 40 +- .../feed_item_set_service/transports/base.pyi | 15 +- .../feed_item_set_service/transports/grpc.pyi | 28 +- .../feed_item_target_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/feed_mapping_service/client.pyi | 40 +- .../feed_mapping_service/transports/base.pyi | 15 +- .../feed_mapping_service/transports/grpc.pyi | 28 +- .../services/services/feed_service/client.pyi | 34 +- .../services/feed_service/transports/base.pyi | 15 +- .../services/feed_service/transports/grpc.pyi | 28 +- .../geo_target_constant_service/client.pyi | 32 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../google_ads_field_service/client.pyi | 46 +- .../google_ads_field_service/pagers.pyi | 2 +- .../transports/base.pyi | 19 +- .../transports/grpc.pyi | 28 +- .../services/google_ads_service/client.pyi | 384 ++++++++-------- .../services/google_ads_service/pagers.pyi | 2 +- .../google_ads_service/transports/base.pyi | 25 +- .../google_ads_service/transports/grpc.pyi | 28 +- .../services/invoice_service/client.pyi | 38 +- .../invoice_service/transports/base.pyi | 15 +- .../invoice_service/transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../keyword_plan_ad_group_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../keyword_plan_campaign_service/client.pyi | 44 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../keyword_plan_idea_service/client.pyi | 52 +-- .../keyword_plan_idea_service/pagers.pyi | 2 +- .../transports/base.pyi | 27 +- .../transports/grpc.pyi | 28 +- .../services/keyword_plan_service/client.pyi | 86 ++-- .../keyword_plan_service/transports/base.pyi | 35 +- .../keyword_plan_service/transports/grpc.pyi | 28 +- .../keyword_theme_constant_service/client.pyi | 34 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/label_service/client.pyi | 34 +- .../label_service/transports/base.pyi | 15 +- .../label_service/transports/grpc.pyi | 28 +- .../services/media_file_service/client.pyi | 38 +- .../media_file_service/transports/base.pyi | 15 +- .../media_file_service/transports/grpc.pyi | 28 +- .../merchant_center_link_service/client.pyi | 62 ++- .../transports/base.pyi | 25 +- .../transports/grpc.pyi | 28 +- .../offline_user_data_job_service/client.pyi | 67 ++- .../transports/base.pyi | 24 +- .../transports/grpc.pyi | 28 +- .../payments_account_service/client.pyi | 36 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/product_link_service/client.pyi | 52 +-- .../product_link_service/transports/base.pyi | 20 +- .../product_link_service/transports/grpc.pyi | 28 +- .../services/reach_plan_service/client.pyi | 60 ++- .../reach_plan_service/transports/base.pyi | 25 +- .../reach_plan_service/transports/grpc.pyi | 28 +- .../recommendation_service/client.pyi | 62 ++- .../transports/base.pyi | 20 +- .../transports/grpc.pyi | 28 +- .../remarketing_action_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../shared_criterion_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/shared_set_service/client.pyi | 38 +- .../shared_set_service/transports/base.pyi | 15 +- .../shared_set_service/transports/grpc.pyi | 28 +- .../smart_campaign_setting_service/client.pyi | 56 +-- .../transports/base.pyi | 22 +- .../transports/grpc.pyi | 28 +- .../smart_campaign_suggest_service/client.pyi | 57 +-- .../transports/base.pyi | 27 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 37 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 34 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/user_data_service/client.pyi | 28 +- .../user_data_service/transports/base.pyi | 15 +- .../user_data_service/transports/grpc.pyi | 28 +- .../services/user_list_service/client.pyi | 36 +- .../user_list_service/transports/base.pyi | 15 +- .../user_list_service/transports/grpc.pyi | 28 +- .../client.pyi | 44 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/account_link_service/client.pyi | 52 +-- .../account_link_service/transports/base.pyi | 20 +- .../account_link_service/transports/grpc.pyi | 28 +- .../ad_group_ad_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/ad_group_ad_service/client.pyi | 44 +- .../ad_group_ad_service/transports/base.pyi | 15 +- .../ad_group_ad_service/transports/grpc.pyi | 28 +- .../ad_group_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../ad_group_asset_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../ad_group_bid_modifier_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../ad_group_criterion_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../ad_group_customizer_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/ad_group_feed_service/client.pyi | 42 +- .../ad_group_feed_service/transports/base.pyi | 15 +- .../ad_group_feed_service/transports/grpc.pyi | 28 +- .../ad_group_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/ad_group_service/client.pyi | 38 +- .../ad_group_service/transports/base.pyi | 15 +- .../ad_group_service/transports/grpc.pyi | 28 +- .../services/ad_parameter_service/client.pyi | 40 +- .../ad_parameter_service/transports/base.pyi | 15 +- .../ad_parameter_service/transports/grpc.pyi | 28 +- .../services/services/ad_service/client.pyi | 44 +- .../services/ad_service/transports/base.pyi | 14 +- .../services/ad_service/transports/grpc.pyi | 28 +- .../asset_group_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/asset_group_service/client.pyi | 40 +- .../asset_group_service/transports/base.pyi | 15 +- .../asset_group_service/transports/grpc.pyi | 28 +- .../asset_group_signal_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/asset_service/client.pyi | 36 +- .../asset_service/transports/base.pyi | 15 +- .../asset_service/transports/grpc.pyi | 28 +- .../asset_set_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/asset_set_service/client.pyi | 36 +- .../asset_set_service/transports/base.pyi | 15 +- .../asset_set_service/transports/grpc.pyi | 28 +- .../audience_insights_service/client.pyi | 93 ++-- .../transports/base.pyi | 32 +- .../transports/grpc.pyi | 28 +- .../services/audience_service/client.pyi | 36 +- .../audience_service/transports/base.pyi | 15 +- .../audience_service/transports/grpc.pyi | 28 +- .../services/batch_job_service/client.pyi | 232 +++++----- .../services/batch_job_service/pagers.pyi | 2 +- .../batch_job_service/transports/base.pyi | 27 +- .../batch_job_service/transports/grpc.pyi | 28 +- .../bidding_data_exclusion_service/client.pyi | 44 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../bidding_strategy_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/billing_setup_service/client.pyi | 38 +- .../billing_setup_service/transports/base.pyi | 15 +- .../billing_setup_service/transports/grpc.pyi | 28 +- .../campaign_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_asset_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_bid_modifier_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_budget_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 45 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../campaign_criterion_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_customizer_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_draft_service/client.pyi | 64 ++- .../campaign_draft_service/pagers.pyi | 2 +- .../transports/base.pyi | 22 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/campaign_feed_service/client.pyi | 42 +- .../campaign_feed_service/transports/base.pyi | 15 +- .../campaign_feed_service/transports/grpc.pyi | 28 +- .../campaign_group_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/campaign_service/client.pyi | 52 ++- .../campaign_service/transports/base.pyi | 15 +- .../campaign_service/transports/grpc.pyi | 28 +- .../campaign_shared_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../conversion_action_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../conversion_upload_service/client.pyi | 58 ++- .../transports/base.pyi | 20 +- .../transports/grpc.pyi | 28 +- .../conversion_value_rule_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../custom_audience_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../custom_conversion_goal_service/client.pyi | 44 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../custom_interest_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_asset_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_asset_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_client_link_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../customer_customizer_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/customer_feed_service/client.pyi | 40 +- .../customer_feed_service/transports/base.pyi | 15 +- .../customer_feed_service/transports/grpc.pyi | 28 +- .../customer_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_manager_link_service/client.pyi | 56 ++- .../transports/base.pyi | 20 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 45 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/customer_service/client.pyi | 60 ++- .../customer_service/transports/base.pyi | 25 +- .../customer_service/transports/grpc.pyi | 28 +- .../client.pyi | 37 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../customer_user_access_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customizer_attribute_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../experiment_arm_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/experiment_service/client.pyi | 104 ++--- .../services/experiment_service/pagers.pyi | 2 +- .../experiment_service/transports/base.pyi | 28 +- .../experiment_service/transports/grpc.pyi | 28 +- .../extension_feed_item_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/feed_item_service/client.pyi | 38 +- .../feed_item_service/transports/base.pyi | 15 +- .../feed_item_service/transports/grpc.pyi | 28 +- .../feed_item_set_link_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/feed_item_set_service/client.pyi | 40 +- .../feed_item_set_service/transports/base.pyi | 15 +- .../feed_item_set_service/transports/grpc.pyi | 28 +- .../feed_item_target_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/feed_mapping_service/client.pyi | 40 +- .../feed_mapping_service/transports/base.pyi | 15 +- .../feed_mapping_service/transports/grpc.pyi | 28 +- .../services/services/feed_service/client.pyi | 34 +- .../services/feed_service/transports/base.pyi | 15 +- .../services/feed_service/transports/grpc.pyi | 28 +- .../geo_target_constant_service/client.pyi | 32 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../google_ads_field_service/client.pyi | 46 +- .../google_ads_field_service/pagers.pyi | 2 +- .../transports/base.pyi | 19 +- .../transports/grpc.pyi | 28 +- .../services/google_ads_service/client.pyi | 386 ++++++++--------- .../services/google_ads_service/pagers.pyi | 2 +- .../google_ads_service/transports/base.pyi | 25 +- .../google_ads_service/transports/grpc.pyi | 28 +- .../services/invoice_service/client.pyi | 38 +- .../invoice_service/transports/base.pyi | 15 +- .../invoice_service/transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../keyword_plan_ad_group_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../keyword_plan_campaign_service/client.pyi | 44 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../keyword_plan_idea_service/client.pyi | 62 ++- .../keyword_plan_idea_service/pagers.pyi | 2 +- .../transports/base.pyi | 32 +- .../transports/grpc.pyi | 28 +- .../services/keyword_plan_service/client.pyi | 38 +- .../keyword_plan_service/transports/base.pyi | 15 +- .../keyword_plan_service/transports/grpc.pyi | 28 +- .../keyword_theme_constant_service/client.pyi | 34 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/label_service/client.pyi | 34 +- .../label_service/transports/base.pyi | 15 +- .../label_service/transports/grpc.pyi | 28 +- .../services/media_file_service/client.pyi | 38 +- .../media_file_service/transports/base.pyi | 15 +- .../media_file_service/transports/grpc.pyi | 28 +- .../merchant_center_link_service/client.pyi | 62 ++- .../transports/base.pyi | 25 +- .../transports/grpc.pyi | 28 +- .../offline_user_data_job_service/client.pyi | 67 ++- .../transports/base.pyi | 24 +- .../transports/grpc.pyi | 28 +- .../payments_account_service/client.pyi | 36 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/product_link_service/client.pyi | 52 +-- .../product_link_service/transports/base.pyi | 20 +- .../product_link_service/transports/grpc.pyi | 28 +- .../services/reach_plan_service/client.pyi | 60 ++- .../reach_plan_service/transports/base.pyi | 25 +- .../reach_plan_service/transports/grpc.pyi | 28 +- .../recommendation_service/client.pyi | 62 ++- .../transports/base.pyi | 20 +- .../transports/grpc.pyi | 28 +- .../remarketing_action_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../shared_criterion_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/shared_set_service/client.pyi | 38 +- .../shared_set_service/transports/base.pyi | 15 +- .../shared_set_service/transports/grpc.pyi | 28 +- .../smart_campaign_setting_service/client.pyi | 56 +-- .../transports/base.pyi | 22 +- .../transports/grpc.pyi | 28 +- .../smart_campaign_suggest_service/client.pyi | 57 +-- .../transports/base.pyi | 27 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 37 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 34 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/user_data_service/client.pyi | 28 +- .../user_data_service/transports/base.pyi | 15 +- .../user_data_service/transports/grpc.pyi | 28 +- .../services/user_list_service/client.pyi | 36 +- .../user_list_service/transports/base.pyi | 15 +- .../user_list_service/transports/grpc.pyi | 28 +- .../client.pyi | 44 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/account_link_service/client.pyi | 52 +-- .../account_link_service/transports/base.pyi | 20 +- .../account_link_service/transports/grpc.pyi | 28 +- .../ad_group_ad_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/ad_group_ad_service/client.pyi | 44 +- .../ad_group_ad_service/transports/base.pyi | 15 +- .../ad_group_ad_service/transports/grpc.pyi | 28 +- .../ad_group_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../ad_group_asset_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../ad_group_bid_modifier_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../ad_group_criterion_service/client.pyi | 48 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../ad_group_customizer_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/ad_group_feed_service/client.pyi | 42 +- .../ad_group_feed_service/transports/base.pyi | 15 +- .../ad_group_feed_service/transports/grpc.pyi | 28 +- .../ad_group_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/ad_group_service/client.pyi | 38 +- .../ad_group_service/transports/base.pyi | 15 +- .../ad_group_service/transports/grpc.pyi | 28 +- .../services/ad_parameter_service/client.pyi | 40 +- .../ad_parameter_service/transports/base.pyi | 15 +- .../ad_parameter_service/transports/grpc.pyi | 28 +- .../services/services/ad_service/client.pyi | 44 +- .../services/ad_service/transports/base.pyi | 14 +- .../services/ad_service/transports/grpc.pyi | 28 +- .../asset_group_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/asset_group_service/client.pyi | 40 +- .../asset_group_service/transports/base.pyi | 15 +- .../asset_group_service/transports/grpc.pyi | 28 +- .../asset_group_signal_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/asset_service/client.pyi | 36 +- .../asset_service/transports/base.pyi | 15 +- .../asset_service/transports/grpc.pyi | 28 +- .../asset_set_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/asset_set_service/client.pyi | 36 +- .../asset_set_service/transports/base.pyi | 15 +- .../asset_set_service/transports/grpc.pyi | 28 +- .../audience_insights_service/client.pyi | 110 ++--- .../transports/base.pyi | 39 +- .../transports/grpc.pyi | 28 +- .../services/audience_service/client.pyi | 38 +- .../audience_service/transports/base.pyi | 15 +- .../audience_service/transports/grpc.pyi | 28 +- .../services/batch_job_service/client.pyi | 238 +++++----- .../services/batch_job_service/pagers.pyi | 2 +- .../batch_job_service/transports/base.pyi | 27 +- .../batch_job_service/transports/grpc.pyi | 28 +- .../bidding_data_exclusion_service/client.pyi | 44 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../bidding_strategy_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/billing_setup_service/client.pyi | 38 +- .../billing_setup_service/transports/base.pyi | 15 +- .../billing_setup_service/transports/grpc.pyi | 28 +- .../brand_suggestion_service/client.pyi | 34 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_asset_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_asset_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_bid_modifier_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_budget_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 45 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../campaign_criterion_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_customizer_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_draft_service/client.pyi | 64 ++- .../campaign_draft_service/pagers.pyi | 2 +- .../transports/base.pyi | 22 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/campaign_feed_service/client.pyi | 42 +- .../campaign_feed_service/transports/base.pyi | 15 +- .../campaign_feed_service/transports/grpc.pyi | 28 +- .../campaign_group_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../campaign_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/campaign_service/client.pyi | 52 ++- .../campaign_service/transports/base.pyi | 15 +- .../campaign_service/transports/grpc.pyi | 28 +- .../campaign_shared_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../conversion_action_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../conversion_upload_service/client.pyi | 58 ++- .../transports/base.pyi | 20 +- .../transports/grpc.pyi | 28 +- .../conversion_value_rule_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 49 +-- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../custom_audience_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../custom_conversion_goal_service/client.pyi | 44 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../custom_interest_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_asset_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_asset_set_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customer_client_link_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../customer_customizer_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/customer_feed_service/client.pyi | 40 +- .../customer_feed_service/transports/base.pyi | 15 +- .../customer_feed_service/transports/grpc.pyi | 28 +- .../customer_label_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../customer_manager_link_service/client.pyi | 56 ++- .../transports/base.pyi | 20 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/customer_service/client.pyi | 60 ++- .../customer_service/transports/base.pyi | 25 +- .../customer_service/transports/grpc.pyi | 28 +- .../client.pyi | 37 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 43 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../customer_user_access_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../customizer_attribute_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../experiment_arm_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/experiment_service/client.pyi | 104 ++--- .../services/experiment_service/pagers.pyi | 2 +- .../experiment_service/transports/base.pyi | 28 +- .../experiment_service/transports/grpc.pyi | 28 +- .../extension_feed_item_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/feed_item_service/client.pyi | 38 +- .../feed_item_service/transports/base.pyi | 15 +- .../feed_item_service/transports/grpc.pyi | 28 +- .../feed_item_set_link_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/feed_item_set_service/client.pyi | 40 +- .../feed_item_set_service/transports/base.pyi | 15 +- .../feed_item_set_service/transports/grpc.pyi | 28 +- .../feed_item_target_service/client.pyi | 46 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/feed_mapping_service/client.pyi | 40 +- .../feed_mapping_service/transports/base.pyi | 15 +- .../feed_mapping_service/transports/grpc.pyi | 28 +- .../services/services/feed_service/client.pyi | 34 +- .../services/feed_service/transports/base.pyi | 15 +- .../services/feed_service/transports/grpc.pyi | 28 +- .../geo_target_constant_service/client.pyi | 32 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../google_ads_field_service/client.pyi | 46 +- .../google_ads_field_service/pagers.pyi | 2 +- .../transports/base.pyi | 19 +- .../transports/grpc.pyi | 28 +- .../services/google_ads_service/client.pyi | 410 +++++++++--------- .../services/google_ads_service/pagers.pyi | 2 +- .../google_ads_service/transports/base.pyi | 25 +- .../google_ads_service/transports/grpc.pyi | 28 +- .../services/invoice_service/client.pyi | 38 +- .../invoice_service/transports/base.pyi | 15 +- .../invoice_service/transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../keyword_plan_ad_group_service/client.pyi | 40 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 47 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../keyword_plan_campaign_service/client.pyi | 44 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../keyword_plan_idea_service/client.pyi | 62 ++- .../keyword_plan_idea_service/pagers.pyi | 2 +- .../transports/base.pyi | 32 +- .../transports/grpc.pyi | 28 +- .../services/keyword_plan_service/client.pyi | 38 +- .../keyword_plan_service/transports/base.pyi | 15 +- .../keyword_plan_service/transports/grpc.pyi | 28 +- .../keyword_theme_constant_service/client.pyi | 34 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/label_service/client.pyi | 34 +- .../label_service/transports/base.pyi | 15 +- .../label_service/transports/grpc.pyi | 28 +- .../offline_user_data_job_service/client.pyi | 67 ++- .../transports/base.pyi | 24 +- .../transports/grpc.pyi | 28 +- .../payments_account_service/client.pyi | 36 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 42 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../services/product_link_service/client.pyi | 52 +-- .../product_link_service/transports/base.pyi | 20 +- .../product_link_service/transports/grpc.pyi | 28 +- .../services/reach_plan_service/client.pyi | 60 ++- .../reach_plan_service/transports/base.pyi | 25 +- .../reach_plan_service/transports/grpc.pyi | 28 +- .../recommendation_service/client.pyi | 62 ++- .../transports/base.pyi | 20 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 45 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../remarketing_action_service/client.pyi | 38 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../shared_criterion_service/client.pyi | 42 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/shared_set_service/client.pyi | 38 +- .../shared_set_service/transports/base.pyi | 15 +- .../shared_set_service/transports/grpc.pyi | 28 +- .../smart_campaign_setting_service/client.pyi | 56 +-- .../transports/base.pyi | 22 +- .../transports/grpc.pyi | 28 +- .../smart_campaign_suggest_service/client.pyi | 57 +-- .../transports/base.pyi | 27 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 37 +- .../transports/base.pyi | 17 +- .../transports/grpc.pyi | 28 +- .../client.pyi | 34 +- .../transports/base.pyi | 15 +- .../transports/grpc.pyi | 28 +- .../services/user_data_service/client.pyi | 28 +- .../user_data_service/transports/base.pyi | 15 +- .../user_data_service/transports/grpc.pyi | 28 +- .../services/user_list_service/client.pyi | 36 +- .../user_list_service/transports/base.pyi | 15 +- .../user_list_service/transports/grpc.pyi | 28 +- pyproject.toml | 4 + 991 files changed, 13759 insertions(+), 16941 deletions(-) diff --git a/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/client.pyi index b337b7b62..72555ef2a 100644 --- a/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AccountBudgetProposalServiceTransport class AccountBudgetProposalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AccountBudgetProposalServiceTransport]: ... + cls, label: str | None = None + ) -> type[AccountBudgetProposalServiceTransport]: ... class AccountBudgetProposalServiceClient( metaclass=AccountBudgetProposalServiceClientMeta @@ -34,58 +34,52 @@ class AccountBudgetProposalServiceClient( @staticmethod def account_budget_path(customer_id: str, account_budget_id: str) -> str: ... @staticmethod - def parse_account_budget_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_path(path: str) -> dict[str, str]: ... @staticmethod def account_budget_proposal_path( customer_id: str, account_budget_proposal_id: str ) -> str: ... @staticmethod - def parse_account_budget_proposal_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_proposal_path(path: str) -> dict[str, str]: ... @staticmethod def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ... @staticmethod - def parse_billing_setup_path(path: str) -> Dict[str, str]: ... + def parse_billing_setup_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AccountBudgetProposalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AccountBudgetProposalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_account_budget_proposal( self, - request: Optional[ - Union[ - account_budget_proposal_service.MutateAccountBudgetProposalRequest, dict - ] - ] = None, + request: account_budget_proposal_service.MutateAccountBudgetProposalRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - account_budget_proposal_service.AccountBudgetProposalOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: account_budget_proposal_service.AccountBudgetProposalOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> account_budget_proposal_service.MutateAccountBudgetProposalResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/transports/base.pyi index b6aae2f37..cdbaa71ff 100644 --- a/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/transports/base.pyi @@ -14,12 +14,12 @@ class AccountBudgetProposalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class AccountBudgetProposalServiceTransport(abc.ABC): self, ) -> Callable[ [account_budget_proposal_service.MutateAccountBudgetProposalRequest], - Union[ - account_budget_proposal_service.MutateAccountBudgetProposalResponse, - Awaitable[ - account_budget_proposal_service.MutateAccountBudgetProposalResponse - ], - ], + account_budget_proposal_service.MutateAccountBudgetProposalResponse | Awaitable[account_budget_proposal_service.MutateAccountBudgetProposalResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/transports/grpc.pyi index 61014650e..82b23fefd 100644 --- a/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/account_budget_proposal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AccountBudgetProposalServiceGrpcTransport(AccountBudgetProposalServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/account_link_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/account_link_service/client.pyi index 680a5112b..fb1a54e3d 100644 --- a/google-stubs/ads/googleads/v13/services/services/account_link_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/account_link_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import AccountLinkServiceTransport class AccountLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AccountLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[AccountLinkServiceTransport]: ... class AccountLinkServiceClient(metaclass=AccountLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,60 +33,56 @@ class AccountLinkServiceClient(metaclass=AccountLinkServiceClientMeta): @staticmethod def account_link_path(customer_id: str, account_link_id: str) -> str: ... @staticmethod - def parse_account_link_path(path: str) -> Dict[str, str]: ... + def parse_account_link_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AccountLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AccountLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def create_account_link( self, - request: Optional[ - Union[account_link_service.CreateAccountLinkRequest, dict] - ] = None, + request: account_link_service.CreateAccountLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - account_link: Optional[gagr_account_link.AccountLink] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + account_link: gagr_account_link.AccountLink | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> account_link_service.CreateAccountLinkResponse: ... def mutate_account_link( self, - request: Optional[ - Union[account_link_service.MutateAccountLinkRequest, dict] - ] = None, + request: account_link_service.MutateAccountLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[account_link_service.AccountLinkOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: account_link_service.AccountLinkOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> account_link_service.MutateAccountLinkResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/account_link_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/account_link_service/transports/base.pyi index 77e9bd028..b13d13b26 100644 --- a/google-stubs/ads/googleads/v13/services/services/account_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/account_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class AccountLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class AccountLinkServiceTransport(abc.ABC): self, ) -> Callable[ [account_link_service.CreateAccountLinkRequest], - Union[ - account_link_service.CreateAccountLinkResponse, - Awaitable[account_link_service.CreateAccountLinkResponse], - ], + account_link_service.CreateAccountLinkResponse | Awaitable[account_link_service.CreateAccountLinkResponse], ]: ... @property def mutate_account_link( self, ) -> Callable[ [account_link_service.MutateAccountLinkRequest], - Union[ - account_link_service.MutateAccountLinkResponse, - Awaitable[account_link_service.MutateAccountLinkResponse], - ], + account_link_service.MutateAccountLinkResponse | Awaitable[account_link_service.MutateAccountLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/account_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/account_link_service/transports/grpc.pyi index 7d75687be..86c822a8e 100644 --- a/google-stubs/ads/googleads/v13/services/services/account_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/account_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AccountLinkServiceGrpcTransport(AccountLinkServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/client.pyi index 26821cdbc..a02ccfc3f 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAdLabelServiceTransport class AdGroupAdLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAdLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAdLabelServiceTransport]: ... class AdGroupAdLabelServiceClient(metaclass=AdGroupAdLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupAdLabelServiceClient(metaclass=AdGroupAdLabelServiceClientMeta): @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAdLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAdLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_ad_labels( self, - request: Optional[ - Union[ad_group_ad_label_service.MutateAdGroupAdLabelsRequest, dict] - ] = None, + request: ad_group_ad_label_service.MutateAdGroupAdLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_ad_label_service.AdGroupAdLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_ad_label_service.AdGroupAdLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_ad_label_service.MutateAdGroupAdLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/transports/base.pyi index d2a4676f7..dd95b6411 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAdLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAdLabelServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_ad_label_service.MutateAdGroupAdLabelsRequest], - Union[ - ad_group_ad_label_service.MutateAdGroupAdLabelsResponse, - Awaitable[ad_group_ad_label_service.MutateAdGroupAdLabelsResponse], - ], + ad_group_ad_label_service.MutateAdGroupAdLabelsResponse | Awaitable[ad_group_ad_label_service.MutateAdGroupAdLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/transports/grpc.pyi index 650df387d..36cf8c26a 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAdLabelServiceGrpcTransport(AdGroupAdLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/client.pyi index a930d3e02..4f0a0235f 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAdServiceTransport class AdGroupAdServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAdServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAdServiceTransport]: ... class AdGroupAdServiceClient(metaclass=AdGroupAdServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,60 +32,56 @@ class AdGroupAdServiceClient(metaclass=AdGroupAdServiceClientMeta): @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAdServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAdServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_ads( self, - request: Optional[ - Union[ad_group_ad_service.MutateAdGroupAdsRequest, dict] - ] = None, + request: ad_group_ad_service.MutateAdGroupAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_ad_service.AdGroupAdOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_ad_service.AdGroupAdOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_ad_service.MutateAdGroupAdsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/transports/base.pyi index ca75ae9df..f0610788a 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAdServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAdServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_ad_service.MutateAdGroupAdsRequest], - Union[ - ad_group_ad_service.MutateAdGroupAdsResponse, - Awaitable[ad_group_ad_service.MutateAdGroupAdsResponse], - ], + ad_group_ad_service.MutateAdGroupAdsResponse | Awaitable[ad_group_ad_service.MutateAdGroupAdsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/transports/grpc.pyi index 51c6f2ef6..6405b461a 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_ad_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAdServiceGrpcTransport(AdGroupAdServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/client.pyi index feeff9bf7..d043eb0a9 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAssetServiceTransport class AdGroupAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAssetServiceTransport]: ... class AdGroupAssetServiceClient(metaclass=AdGroupAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupAssetServiceClient(metaclass=AdGroupAssetServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_path( customer_id: str, ad_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_assets( self, - request: Optional[ - Union[ad_group_asset_service.MutateAdGroupAssetsRequest, dict] - ] = None, + request: ad_group_asset_service.MutateAdGroupAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_asset_service.AdGroupAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_asset_service.AdGroupAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_asset_service.MutateAdGroupAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/transports/base.pyi index c8436bcb5..155ff341c 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAssetServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_asset_service.MutateAdGroupAssetsRequest], - Union[ - ad_group_asset_service.MutateAdGroupAssetsResponse, - Awaitable[ad_group_asset_service.MutateAdGroupAssetsResponse], - ], + ad_group_asset_service.MutateAdGroupAssetsResponse | Awaitable[ad_group_asset_service.MutateAdGroupAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/transports/grpc.pyi index 033e5b6ba..43d85c3c9 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAssetServiceGrpcTransport(AdGroupAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/client.pyi index 72d5e2aa7..e65f4d2d7 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAssetSetServiceTransport class AdGroupAssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAssetSetServiceTransport]: ... class AdGroupAssetSetServiceClient(metaclass=AdGroupAssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupAssetSetServiceClient(metaclass=AdGroupAssetSetServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_set_path( customer_id: str, ad_group_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_ad_group_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_asset_sets( self, - request: Optional[ - Union[ad_group_asset_set_service.MutateAdGroupAssetSetsRequest, dict] - ] = None, + request: ad_group_asset_set_service.MutateAdGroupAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_asset_set_service.AdGroupAssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_asset_set_service.AdGroupAssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_asset_set_service.MutateAdGroupAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/transports/base.pyi index e1427ecda..13d2ef365 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_asset_set_service.MutateAdGroupAssetSetsRequest], - Union[ - ad_group_asset_set_service.MutateAdGroupAssetSetsResponse, - Awaitable[ad_group_asset_set_service.MutateAdGroupAssetSetsResponse], - ], + ad_group_asset_set_service.MutateAdGroupAssetSetsResponse | Awaitable[ad_group_asset_set_service.MutateAdGroupAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/transports/grpc.pyi index 75e15131e..48a945e7d 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAssetSetServiceGrpcTransport(AdGroupAssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/client.pyi index ceb74ec60..81cbb818f 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupBidModifierServiceTransport class AdGroupBidModifierServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupBidModifierServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupBidModifierServiceTransport]: ... class AdGroupBidModifierServiceClient(metaclass=AdGroupBidModifierServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class AdGroupBidModifierServiceClient(metaclass=AdGroupBidModifierServiceClientM @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_bid_modifier_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupBidModifierServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupBidModifierServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_bid_modifiers( self, - request: Optional[ - Union[ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest, dict] - ] = None, + request: ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_bid_modifier_service.AdGroupBidModifierOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_bid_modifier_service.AdGroupBidModifierOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/transports/base.pyi index 456f2e268..c47f95250 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupBidModifierServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupBidModifierServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest], - Union[ - ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse, - Awaitable[ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse], - ], + ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse | Awaitable[ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/transports/grpc.pyi index 6b96377f0..393107d3f 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_bid_modifier_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupBidModifierServiceGrpcTransport(AdGroupBidModifierServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/client.pyi index d49852df9..6be98ce5c 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import AdGroupCriterionCustomizerServiceTransport class AdGroupCriterionCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCriterionCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCriterionCustomizerServiceTransport]: ... class AdGroupCriterionCustomizerServiceClient( metaclass=AdGroupCriterionCustomizerServiceClientMeta @@ -38,7 +38,7 @@ class AdGroupCriterionCustomizerServiceClient( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_customizer_path( customer_id: str, @@ -47,61 +47,50 @@ class AdGroupCriterionCustomizerServiceClient( customizer_attribute_id: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, AdGroupCriterionCustomizerServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCriterionCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_criterion_customizers( self, - request: Optional[ - Union[ - ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersRequest, - dict, - ] - ] = None, + request: ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - ad_group_criterion_customizer_service.AdGroupCriterionCustomizerOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_criterion_customizer_service.AdGroupCriterionCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse ): ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/transports/base.pyi index e9ef4eaa6..cd4baec83 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/transports/base.pyi @@ -16,12 +16,12 @@ class AdGroupCriterionCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class AdGroupCriterionCustomizerServiceTransport(abc.ABC): [ ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersRequest ], - Union[ - ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse, - Awaitable[ - ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse - ], - ], + ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse | Awaitable[ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi index a86049098..e77354152 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class AdGroupCriterionCustomizerServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/client.pyi index 3c40686a4..98b5df18f 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupCriterionLabelServiceTransport class AdGroupCriterionLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCriterionLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCriterionLabelServiceTransport]: ... class AdGroupCriterionLabelServiceClient( metaclass=AdGroupCriterionLabelServiceClientMeta @@ -36,61 +36,52 @@ class AdGroupCriterionLabelServiceClient( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupCriterionLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCriterionLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_criterion_labels( self, - request: Optional[ - Union[ - ad_group_criterion_label_service.MutateAdGroupCriterionLabelsRequest, - dict, - ] - ] = None, + request: ad_group_criterion_label_service.MutateAdGroupCriterionLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - ad_group_criterion_label_service.AdGroupCriterionLabelOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_criterion_label_service.AdGroupCriterionLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/transports/base.pyi index f7359c601..c5da4063c 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupCriterionLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class AdGroupCriterionLabelServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_criterion_label_service.MutateAdGroupCriterionLabelsRequest], - Union[ - ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse, - Awaitable[ - ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse - ], - ], + ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse | Awaitable[ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/transports/grpc.pyi index 22f4ded30..89fa85be3 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupCriterionLabelServiceGrpcTransport(AdGroupCriterionLabelServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/client.pyi index b0af35487..d564d2694 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupCriterionServiceTransport class AdGroupCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCriterionServiceTransport]: ... class AdGroupCriterionServiceClient(metaclass=AdGroupCriterionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class AdGroupCriterionServiceClient(metaclass=AdGroupCriterionServiceClientMeta) @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupCriterionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_criteria( self, - request: Optional[ - Union[ad_group_criterion_service.MutateAdGroupCriteriaRequest, dict] - ] = None, + request: ad_group_criterion_service.MutateAdGroupCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_criterion_service.AdGroupCriterionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_criterion_service.AdGroupCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_criterion_service.MutateAdGroupCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/transports/base.pyi index dce1eb54f..a30981bb8 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_criterion_service.MutateAdGroupCriteriaRequest], - Union[ - ad_group_criterion_service.MutateAdGroupCriteriaResponse, - Awaitable[ad_group_criterion_service.MutateAdGroupCriteriaResponse], - ], + ad_group_criterion_service.MutateAdGroupCriteriaResponse | Awaitable[ad_group_criterion_service.MutateAdGroupCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/transports/grpc.pyi index facdb1368..5aeb692c1 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_criterion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupCriterionServiceGrpcTransport(AdGroupCriterionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/client.pyi index b66537b9a..5a2cd3146 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupCustomizerServiceTransport class AdGroupCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCustomizerServiceTransport]: ... class AdGroupCustomizerServiceClient(metaclass=AdGroupCustomizerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class AdGroupCustomizerServiceClient(metaclass=AdGroupCustomizerServiceClientMet @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_customizer_path( customer_id: str, ad_group_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupCustomizerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_customizers( self, - request: Optional[ - Union[ad_group_customizer_service.MutateAdGroupCustomizersRequest, dict] - ] = None, + request: ad_group_customizer_service.MutateAdGroupCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_customizer_service.AdGroupCustomizerOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_customizer_service.AdGroupCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_customizer_service.MutateAdGroupCustomizersResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/transports/base.pyi index ce9b27dcf..9ab1e65b6 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupCustomizerServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_customizer_service.MutateAdGroupCustomizersRequest], - Union[ - ad_group_customizer_service.MutateAdGroupCustomizersResponse, - Awaitable[ad_group_customizer_service.MutateAdGroupCustomizersResponse], - ], + ad_group_customizer_service.MutateAdGroupCustomizersResponse | Awaitable[ad_group_customizer_service.MutateAdGroupCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/transports/grpc.pyi index ad530fd90..db90d2dd0 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_customizer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupCustomizerServiceGrpcTransport(AdGroupCustomizerServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/client.pyi index ac39cb618..d0b728661 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupExtensionSettingServiceTransport class AdGroupExtensionSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupExtensionSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupExtensionSettingServiceTransport]: ... class AdGroupExtensionSettingServiceClient( metaclass=AdGroupExtensionSettingServiceClientMeta @@ -34,61 +34,52 @@ class AdGroupExtensionSettingServiceClient( @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_extension_setting_path( customer_id: str, ad_group_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupExtensionSettingServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupExtensionSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_extension_settings( self, - request: Optional[ - Union[ - ad_group_extension_setting_service.MutateAdGroupExtensionSettingsRequest, - dict, - ] - ] = None, + request: ad_group_extension_setting_service.MutateAdGroupExtensionSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - ad_group_extension_setting_service.AdGroupExtensionSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_extension_setting_service.AdGroupExtensionSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/transports/base.pyi index 694ab05a4..b5333cd94 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupExtensionSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class AdGroupExtensionSettingServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_extension_setting_service.MutateAdGroupExtensionSettingsRequest], - Union[ - ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse, - Awaitable[ - ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse - ], - ], + ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse | Awaitable[ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/transports/grpc.pyi index d3a183931..f784c5b00 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_extension_setting_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class AdGroupExtensionSettingServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/client.pyi index 05e27d496..d47c8be62 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupFeedServiceTransport class AdGroupFeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupFeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupFeedServiceTransport]: ... class AdGroupFeedServiceClient(metaclass=AdGroupFeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class AdGroupFeedServiceClient(metaclass=AdGroupFeedServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_feed_path(customer_id: str, ad_group_id: str, feed_id: str) -> str: ... @staticmethod - def parse_ad_group_feed_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupFeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupFeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_feeds( self, - request: Optional[ - Union[ad_group_feed_service.MutateAdGroupFeedsRequest, dict] - ] = None, + request: ad_group_feed_service.MutateAdGroupFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_feed_service.AdGroupFeedOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_feed_service.AdGroupFeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_feed_service.MutateAdGroupFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/transports/base.pyi index 0639479f7..98f05d02f 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupFeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupFeedServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_feed_service.MutateAdGroupFeedsRequest], - Union[ - ad_group_feed_service.MutateAdGroupFeedsResponse, - Awaitable[ad_group_feed_service.MutateAdGroupFeedsResponse], - ], + ad_group_feed_service.MutateAdGroupFeedsResponse | Awaitable[ad_group_feed_service.MutateAdGroupFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/transports/grpc.pyi index 22caf3e6d..5d07e1d6b 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupFeedServiceGrpcTransport(AdGroupFeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/client.pyi index 72c053234..5f3541e6c 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupLabelServiceTransport class AdGroupLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupLabelServiceTransport]: ... class AdGroupLabelServiceClient(metaclass=AdGroupLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupLabelServiceClient(metaclass=AdGroupLabelServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_labels( self, - request: Optional[ - Union[ad_group_label_service.MutateAdGroupLabelsRequest, dict] - ] = None, + request: ad_group_label_service.MutateAdGroupLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_label_service.AdGroupLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_label_service.AdGroupLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_label_service.MutateAdGroupLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/transports/base.pyi index 7630707de..f77d1b4d4 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupLabelServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_label_service.MutateAdGroupLabelsRequest], - Union[ - ad_group_label_service.MutateAdGroupLabelsResponse, - Awaitable[ad_group_label_service.MutateAdGroupLabelsResponse], - ], + ad_group_label_service.MutateAdGroupLabelsResponse | Awaitable[ad_group_label_service.MutateAdGroupLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/transports/grpc.pyi index 2a1fa5ad0..44671db6e 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupLabelServiceGrpcTransport(AdGroupLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_service/client.pyi index 62f147ad5..1dc89ae13 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupServiceTransport class AdGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupServiceTransport]: ... class AdGroupServiceClient(metaclass=AdGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,52 @@ class AdGroupServiceClient(metaclass=AdGroupServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_groups( self, - request: Optional[Union[ad_group_service.MutateAdGroupsRequest, dict]] = None, + request: ad_group_service.MutateAdGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[ad_group_service.AdGroupOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_service.AdGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_service.MutateAdGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_service/transports/base.pyi index 2026a3729..456c308fc 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_service.MutateAdGroupsRequest], - Union[ - ad_group_service.MutateAdGroupsResponse, - Awaitable[ad_group_service.MutateAdGroupsResponse], - ], + ad_group_service.MutateAdGroupsResponse | Awaitable[ad_group_service.MutateAdGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_group_service/transports/grpc.pyi index bed9fbd9e..5eac87e6e 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupServiceGrpcTransport(AdGroupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/client.pyi index 4f83b3f0c..ff4b3b989 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdParameterServiceTransport class AdParameterServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdParameterServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdParameterServiceTransport]: ... class AdParameterServiceClient(metaclass=AdParameterServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,52 +34,48 @@ class AdParameterServiceClient(metaclass=AdParameterServiceClientMeta): customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_parameter_path( customer_id: str, ad_group_id: str, criterion_id: str, parameter_index: str ) -> str: ... @staticmethod - def parse_ad_parameter_path(path: str) -> Dict[str, str]: ... + def parse_ad_parameter_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdParameterServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdParameterServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_parameters( self, - request: Optional[ - Union[ad_parameter_service.MutateAdParametersRequest, dict] - ] = None, + request: ad_parameter_service.MutateAdParametersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_parameter_service.AdParameterOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_parameter_service.AdParameterOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_parameter_service.MutateAdParametersResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/transports/base.pyi index 8253bdffc..1da2a81e7 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdParameterServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdParameterServiceTransport(abc.ABC): self, ) -> Callable[ [ad_parameter_service.MutateAdParametersRequest], - Union[ - ad_parameter_service.MutateAdParametersResponse, - Awaitable[ad_parameter_service.MutateAdParametersResponse], - ], + ad_parameter_service.MutateAdParametersResponse | Awaitable[ad_parameter_service.MutateAdParametersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/transports/grpc.pyi index eeeb591cd..8ccc4b7d1 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_parameter_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdParameterServiceGrpcTransport(AdParameterServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/ad_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/ad_service/client.pyi index 0263a5162..d7ec185cd 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import AdServiceTransport class AdServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdServiceTransport]: ... class AdServiceClient(metaclass=AdServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,51 +33,51 @@ class AdServiceClient(metaclass=AdServiceClientMeta): @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def get_ad( self, - request: Optional[Union[ad_service.GetAdRequest, dict]] = None, + request: ad_service.GetAdRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad.Ad: ... def mutate_ads( self, - request: Optional[Union[ad_service.MutateAdsRequest, dict]] = None, + request: ad_service.MutateAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[ad_service.AdOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_service.AdOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_service.MutateAdsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/ad_service/transports/base.pyi index 42d97ea9f..78fb572c1 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_service/transports/base.pyi @@ -15,23 +15,23 @@ class AdServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @property def get_ad( self, - ) -> Callable[[ad_service.GetAdRequest], Union[ad.Ad, Awaitable[ad.Ad]]]: ... + ) -> Callable[[ad_service.GetAdRequest], ad.Ad | Awaitable[ad.Ad]]: ... @property def mutate_ads( self, ) -> Callable[ [ad_service.MutateAdsRequest], - Union[ad_service.MutateAdsResponse, Awaitable[ad_service.MutateAdsResponse]], + ad_service.MutateAdsResponse | Awaitable[ad_service.MutateAdsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/ad_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/ad_service/transports/grpc.pyi index de0ecee2c..89dabc04c 100644 --- a/google-stubs/ads/googleads/v13/services/services/ad_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/ad_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class AdServiceGrpcTransport(AdServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/client.pyi index 368d98eab..66bc86fb4 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetGroupAssetServiceTransport class AssetGroupAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupAssetServiceTransport]: ... class AssetGroupAssetServiceClient(metaclass=AssetGroupAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AssetGroupAssetServiceClient(metaclass=AssetGroupAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_asset_path( customer_id: str, asset_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_asset_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetGroupAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_group_assets( self, - request: Optional[ - Union[asset_group_asset_service.MutateAssetGroupAssetsRequest, dict] - ] = None, + request: asset_group_asset_service.MutateAssetGroupAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_group_asset_service.AssetGroupAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_asset_service.AssetGroupAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_group_asset_service.MutateAssetGroupAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/transports/base.pyi index a45ce6964..d86ca278b 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetGroupAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetGroupAssetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_group_asset_service.MutateAssetGroupAssetsRequest], - Union[ - asset_group_asset_service.MutateAssetGroupAssetsResponse, - Awaitable[asset_group_asset_service.MutateAssetGroupAssetsResponse], - ], + asset_group_asset_service.MutateAssetGroupAssetsResponse | Awaitable[asset_group_asset_service.MutateAssetGroupAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/transports/grpc.pyi index ac021c99c..b917c39dc 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetGroupAssetServiceGrpcTransport(AssetGroupAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/client.pyi index ca9595513..0cf7645b2 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import AssetGroupListingGroupFilterServiceTransport class AssetGroupListingGroupFilterServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupListingGroupFilterServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupListingGroupFilterServiceTransport]: ... class AssetGroupListingGroupFilterServiceClient( metaclass=AssetGroupListingGroupFilterServiceClientMeta @@ -36,61 +36,50 @@ class AssetGroupListingGroupFilterServiceClient( @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_listing_group_filter_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_listing_group_filter_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_listing_group_filter_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, AssetGroupListingGroupFilterServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupListingGroupFilterServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_group_listing_group_filters( self, - request: Optional[ - Union[ - asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersRequest, - dict, - ] - ] = None, + request: asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - asset_group_listing_group_filter_service.AssetGroupListingGroupFilterOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_listing_group_filter_service.AssetGroupListingGroupFilterOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse ): ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/transports/base.pyi index e6b66175d..63e730d35 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/transports/base.pyi @@ -16,12 +16,12 @@ class AssetGroupListingGroupFilterServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class AssetGroupListingGroupFilterServiceTransport(abc.ABC): [ asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersRequest ], - Union[ - asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse, - Awaitable[ - asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse - ], - ], + asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse | Awaitable[asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi index cb44272ad..99565f817 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class AssetGroupListingGroupFilterServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_service/client.pyi index e7b7f721d..22f182d24 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetGroupServiceTransport class AssetGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupServiceTransport]: ... class AssetGroupServiceClient(metaclass=AssetGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,50 +32,46 @@ class AssetGroupServiceClient(metaclass=AssetGroupServiceClientMeta): @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_groups( self, - request: Optional[ - Union[asset_group_service.MutateAssetGroupsRequest, dict] - ] = None, + request: asset_group_service.MutateAssetGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_group_service.AssetGroupOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_service.AssetGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_group_service.MutateAssetGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_service/transports/base.pyi index ade877670..e48e16d52 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetGroupServiceTransport(abc.ABC): self, ) -> Callable[ [asset_group_service.MutateAssetGroupsRequest], - Union[ - asset_group_service.MutateAssetGroupsResponse, - Awaitable[asset_group_service.MutateAssetGroupsResponse], - ], + asset_group_service.MutateAssetGroupsResponse | Awaitable[asset_group_service.MutateAssetGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_service/transports/grpc.pyi index fb874a399..358ae8c6b 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetGroupServiceGrpcTransport(AssetGroupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/client.pyi index 871ea512d..977a5a425 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetGroupSignalServiceTransport class AssetGroupSignalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupSignalServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupSignalServiceTransport]: ... class AssetGroupSignalServiceClient(metaclass=AssetGroupSignalServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class AssetGroupSignalServiceClient(metaclass=AssetGroupSignalServiceClientMeta) @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_signal_path( customer_id: str, asset_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_asset_group_signal_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_signal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetGroupSignalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupSignalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_group_signals( self, - request: Optional[ - Union[asset_group_signal_service.MutateAssetGroupSignalsRequest, dict] - ] = None, + request: asset_group_signal_service.MutateAssetGroupSignalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_group_signal_service.AssetGroupSignalOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_signal_service.AssetGroupSignalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_group_signal_service.MutateAssetGroupSignalsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/transports/base.pyi index 278be04c5..46dac7e7d 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetGroupSignalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetGroupSignalServiceTransport(abc.ABC): self, ) -> Callable[ [asset_group_signal_service.MutateAssetGroupSignalsRequest], - Union[ - asset_group_signal_service.MutateAssetGroupSignalsResponse, - Awaitable[asset_group_signal_service.MutateAssetGroupSignalsResponse], - ], + asset_group_signal_service.MutateAssetGroupSignalsResponse | Awaitable[asset_group_signal_service.MutateAssetGroupSignalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/transports/grpc.pyi index b33d71d68..742baba08 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_group_signal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetGroupSignalServiceGrpcTransport(AssetGroupSignalServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/asset_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/asset_service/client.pyi index 17981c611..c4470b84a 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetServiceTransport class AssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetServiceTransport]: ... class AssetServiceClient(metaclass=AssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,46 @@ class AssetServiceClient(metaclass=AssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_assets( self, - request: Optional[Union[asset_service.MutateAssetsRequest, dict]] = None, + request: asset_service.MutateAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[asset_service.AssetOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_service.AssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_service.MutateAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/asset_service/transports/base.pyi index 85271f838..53b340960 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_service.MutateAssetsRequest], - Union[ - asset_service.MutateAssetsResponse, - Awaitable[asset_service.MutateAssetsResponse], - ], + asset_service.MutateAssetsResponse | Awaitable[asset_service.MutateAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/asset_service/transports/grpc.pyi index 11c4b0679..1609a2100 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetServiceGrpcTransport(AssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/client.pyi index b549b9e6c..5e1524a14 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetSetAssetServiceTransport class AssetSetAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetSetAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetSetAssetServiceTransport]: ... class AssetSetAssetServiceClient(metaclass=AssetSetAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AssetSetAssetServiceClient(metaclass=AssetSetAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_asset_path( customer_id: str, asset_set_id: str, asset_id: str ) -> str: ... @staticmethod - def parse_asset_set_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetSetAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetSetAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_set_assets( self, - request: Optional[ - Union[asset_set_asset_service.MutateAssetSetAssetsRequest, dict] - ] = None, + request: asset_set_asset_service.MutateAssetSetAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_set_asset_service.AssetSetAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_set_asset_service.AssetSetAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_set_asset_service.MutateAssetSetAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/transports/base.pyi index e3a3e3b35..3c7d75a9e 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetSetAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetSetAssetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_set_asset_service.MutateAssetSetAssetsRequest], - Union[ - asset_set_asset_service.MutateAssetSetAssetsResponse, - Awaitable[asset_set_asset_service.MutateAssetSetAssetsResponse], - ], + asset_set_asset_service.MutateAssetSetAssetsResponse | Awaitable[asset_set_asset_service.MutateAssetSetAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/transports/grpc.pyi index 56d8f34e3..227b3e0d6 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_set_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetSetAssetServiceGrpcTransport(AssetSetAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/asset_set_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/asset_set_service/client.pyi index abeae4b23..1e7959d5e 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetSetServiceTransport class AssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetSetServiceTransport]: ... class AssetSetServiceClient(metaclass=AssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,44 +32,42 @@ class AssetSetServiceClient(metaclass=AssetSetServiceClientMeta): @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_sets( self, - request: Optional[Union[asset_set_service.MutateAssetSetsRequest, dict]] = None, + request: asset_set_service.MutateAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_set_service.AssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_set_service.AssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_set_service.MutateAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/asset_set_service/transports/base.pyi index 8d896847d..ded8aee45 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_set_service.MutateAssetSetsRequest], - Union[ - asset_set_service.MutateAssetSetsResponse, - Awaitable[asset_set_service.MutateAssetSetsResponse], - ], + asset_set_service.MutateAssetSetsResponse | Awaitable[asset_set_service.MutateAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/asset_set_service/transports/grpc.pyi index 73617410b..5e3dd1cd1 100644 --- a/google-stubs/ads/googleads/v13/services/services/asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetSetServiceGrpcTransport(AssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/audience_insights_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/audience_insights_service/client.pyi index 98dc110b2..a639d2fdd 100644 --- a/google-stubs/ads/googleads/v13/services/services/audience_insights_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/audience_insights_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import AudienceInsightsServiceTransport class AudienceInsightsServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AudienceInsightsServiceTransport]: ... + cls, label: str | None = None + ) -> type[AudienceInsightsServiceTransport]: ... class AudienceInsightsServiceClient(metaclass=AudienceInsightsServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,92 +33,69 @@ class AudienceInsightsServiceClient(metaclass=AudienceInsightsServiceClientMeta) @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AudienceInsightsServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AudienceInsightsServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def generate_insights_finder_report( self, - request: Optional[ - Union[audience_insights_service.GenerateInsightsFinderReportRequest, dict] - ] = None, + request: audience_insights_service.GenerateInsightsFinderReportRequest | dict | None = None, *, - customer_id: Optional[str] = None, - baseline_audience: Optional[ - audience_insights_service.BasicInsightsAudience - ] = None, - specific_audience: Optional[ - audience_insights_service.BasicInsightsAudience - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + baseline_audience: audience_insights_service.BasicInsightsAudience | None = None, + specific_audience: audience_insights_service.BasicInsightsAudience | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.GenerateInsightsFinderReportResponse: ... def list_audience_insights_attributes( self, - request: Optional[ - Union[audience_insights_service.ListAudienceInsightsAttributesRequest, dict] - ] = None, + request: audience_insights_service.ListAudienceInsightsAttributesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - dimensions: Optional[ - MutableSequence[ - audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension - ] - ] = None, - query_text: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + dimensions: MutableSequence[audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension] | None = None, + query_text: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.ListAudienceInsightsAttributesResponse: ... def list_insights_eligible_dates( self, - request: Optional[ - Union[audience_insights_service.ListInsightsEligibleDatesRequest, dict] - ] = None, + request: audience_insights_service.ListInsightsEligibleDatesRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.ListInsightsEligibleDatesResponse: ... def generate_audience_composition_insights( self, - request: Optional[ - Union[ - audience_insights_service.GenerateAudienceCompositionInsightsRequest, - dict, - ] - ] = None, + request: audience_insights_service.GenerateAudienceCompositionInsightsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - audience: Optional[audience_insights_service.InsightsAudience] = None, - dimensions: Optional[ - MutableSequence[ - audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + audience: audience_insights_service.InsightsAudience | None = None, + dimensions: MutableSequence[audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.GenerateAudienceCompositionInsightsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/audience_insights_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/audience_insights_service/transports/base.pyi index 1416c39ea..1fcb8f0fb 100644 --- a/google-stubs/ads/googleads/v13/services/services/audience_insights_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/audience_insights_service/transports/base.pyi @@ -14,12 +14,12 @@ class AudienceInsightsServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,40 +28,26 @@ class AudienceInsightsServiceTransport(abc.ABC): self, ) -> Callable[ [audience_insights_service.GenerateInsightsFinderReportRequest], - Union[ - audience_insights_service.GenerateInsightsFinderReportResponse, - Awaitable[audience_insights_service.GenerateInsightsFinderReportResponse], - ], + audience_insights_service.GenerateInsightsFinderReportResponse | Awaitable[audience_insights_service.GenerateInsightsFinderReportResponse], ]: ... @property def list_audience_insights_attributes( self, ) -> Callable[ [audience_insights_service.ListAudienceInsightsAttributesRequest], - Union[ - audience_insights_service.ListAudienceInsightsAttributesResponse, - Awaitable[audience_insights_service.ListAudienceInsightsAttributesResponse], - ], + audience_insights_service.ListAudienceInsightsAttributesResponse | Awaitable[audience_insights_service.ListAudienceInsightsAttributesResponse], ]: ... @property def list_insights_eligible_dates( self, ) -> Callable[ [audience_insights_service.ListInsightsEligibleDatesRequest], - Union[ - audience_insights_service.ListInsightsEligibleDatesResponse, - Awaitable[audience_insights_service.ListInsightsEligibleDatesResponse], - ], + audience_insights_service.ListInsightsEligibleDatesResponse | Awaitable[audience_insights_service.ListInsightsEligibleDatesResponse], ]: ... @property def generate_audience_composition_insights( self, ) -> Callable[ [audience_insights_service.GenerateAudienceCompositionInsightsRequest], - Union[ - audience_insights_service.GenerateAudienceCompositionInsightsResponse, - Awaitable[ - audience_insights_service.GenerateAudienceCompositionInsightsResponse - ], - ], + audience_insights_service.GenerateAudienceCompositionInsightsResponse | Awaitable[audience_insights_service.GenerateAudienceCompositionInsightsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/audience_insights_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/audience_insights_service/transports/grpc.pyi index 67afd08ef..1b74c5d8c 100644 --- a/google-stubs/ads/googleads/v13/services/services/audience_insights_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/audience_insights_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AudienceInsightsServiceGrpcTransport(AudienceInsightsServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/audience_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/audience_service/client.pyi index 9851aaac1..fae1a032d 100644 --- a/google-stubs/ads/googleads/v13/services/services/audience_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/audience_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AudienceServiceTransport class AudienceServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AudienceServiceTransport]: ... + cls, label: str | None = None + ) -> type[AudienceServiceTransport]: ... class AudienceServiceClient(metaclass=AudienceServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,44 +32,42 @@ class AudienceServiceClient(metaclass=AudienceServiceClientMeta): @staticmethod def audience_path(customer_id: str, audience_id: str) -> str: ... @staticmethod - def parse_audience_path(path: str) -> Dict[str, str]: ... + def parse_audience_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AudienceServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AudienceServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_audiences( self, - request: Optional[Union[audience_service.MutateAudiencesRequest, dict]] = None, + request: audience_service.MutateAudiencesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[audience_service.AudienceOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[audience_service.AudienceOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_service.MutateAudiencesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/audience_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/audience_service/transports/base.pyi index 254a5ba74..d7e095f1a 100644 --- a/google-stubs/ads/googleads/v13/services/services/audience_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/audience_service/transports/base.pyi @@ -14,12 +14,12 @@ class AudienceServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AudienceServiceTransport(abc.ABC): self, ) -> Callable[ [audience_service.MutateAudiencesRequest], - Union[ - audience_service.MutateAudiencesResponse, - Awaitable[audience_service.MutateAudiencesResponse], - ], + audience_service.MutateAudiencesResponse | Awaitable[audience_service.MutateAudiencesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/audience_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/audience_service/transports/grpc.pyi index c503beb23..0aaec2771 100644 --- a/google-stubs/ads/googleads/v13/services/services/audience_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/audience_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AudienceServiceGrpcTransport(AudienceServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/batch_job_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/batch_job_service/client.pyi index 0d3a24675..f3ac8dbb0 100644 --- a/google-stubs/ads/googleads/v13/services/services/batch_job_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/batch_job_service/client.pyi @@ -19,8 +19,8 @@ from .transports.base import BatchJobServiceTransport class BatchJobServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BatchJobServiceTransport]: ... + cls, label: str | None = None + ) -> type[BatchJobServiceTransport]: ... class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): DEFAULT_ENDPOINT: str @@ -39,43 +39,43 @@ class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): customer_id: str, bidding_strategy_id: str ) -> str: ... @staticmethod - def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_accessible_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_path( customer_id: str, ad_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_bid_modifier_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_customizer_path( customer_id: str, @@ -84,291 +84,291 @@ class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): customizer_attribute_id: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_customizer_path( customer_id: str, ad_group_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_extension_setting_path( customer_id: str, ad_group_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_feed_path(customer_id: str, ad_group_id: str, feed_id: str) -> str: ... @staticmethod - def parse_ad_group_feed_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_feed_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_parameter_path( customer_id: str, ad_group_id: str, criterion_id: str, parameter_index: str ) -> str: ... @staticmethod - def parse_ad_parameter_path(path: str) -> Dict[str, str]: ... + def parse_ad_parameter_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_asset_path( customer_id: str, asset_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_asset_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_listing_group_filter_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_listing_group_filter_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_listing_group_filter_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_signal_path( customer_id: str, asset_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_asset_group_signal_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_signal_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_asset_path( customer_id: str, asset_set_id: str, asset_id: str ) -> str: ... @staticmethod - def parse_asset_set_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_asset_path(path: str) -> dict[str, str]: ... @staticmethod def audience_path(customer_id: str, audience_id: str) -> str: ... @staticmethod - def parse_audience_path(path: str) -> Dict[str, str]: ... + def parse_audience_path(path: str) -> dict[str, str]: ... @staticmethod def batch_job_path(customer_id: str, batch_job_id: str) -> str: ... @staticmethod - def parse_batch_job_path(path: str) -> Dict[str, str]: ... + def parse_batch_job_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_data_exclusion_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: ... + def parse_bidding_data_exclusion_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_seasonality_adjustment_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: ... + def parse_bidding_seasonality_adjustment_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_path( customer_id: str, campaign_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_campaign_asset_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_set_path( customer_id: str, campaign_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_bid_modifier_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_campaign_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_conversion_goal_path( customer_id: str, campaign_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_criterion_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_customizer_path( customer_id: str, campaign_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_campaign_customizer_path(path: str) -> Dict[str, str]: ... + def parse_campaign_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_draft_path( customer_id: str, base_campaign_id: str, draft_id: str ) -> str: ... @staticmethod - def parse_campaign_draft_path(path: str) -> Dict[str, str]: ... + def parse_campaign_draft_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_extension_setting_path( customer_id: str, campaign_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_campaign_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_feed_path(customer_id: str, campaign_id: str, feed_id: str) -> str: ... @staticmethod - def parse_campaign_feed_path(path: str) -> Dict[str, str]: ... + def parse_campaign_feed_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_shared_set_path( customer_id: str, campaign_id: str, shared_set_id: str ) -> str: ... @staticmethod - def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_custom_variable_path( customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_goal_campaign_config_path( customer_id: str, campaign_id: str ) -> str: ... @staticmethod - def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: ... + def parse_conversion_goal_campaign_config_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_path( customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_set_path( customer_id: str, conversion_value_rule_set_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_set_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_path( customer_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_customer_asset_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_path(path: str) -> dict[str, str]: ... @staticmethod def customer_conversion_goal_path( customer_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_customizer_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customer_customizer_path(path: str) -> Dict[str, str]: ... + def parse_customer_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_extension_setting_path( customer_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_customer_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def customer_feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_customer_feed_path(path: str) -> Dict[str, str]: ... + def parse_customer_feed_path(path: str) -> dict[str, str]: ... @staticmethod def customer_label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_customer_label_path(path: str) -> Dict[str, str]: ... + def parse_customer_label_path(path: str) -> dict[str, str]: ... @staticmethod def customer_negative_criterion_path( customer_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: ... + def parse_customer_negative_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_arm_path( customer_id: str, trial_id: str, trial_arm_id: str ) -> str: ... @staticmethod - def parse_experiment_arm_path(path: str) -> Dict[str, str]: ... + def parse_experiment_arm_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_link_path( customer_id: str, feed_id: str, feed_item_set_id: str, feed_item_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_link_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_target_path( customer_id: str, @@ -378,155 +378,149 @@ class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): feed_item_target_id: str, ) -> str: ... @staticmethod - def parse_feed_item_target_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_target_path(path: str) -> dict[str, str]: ... @staticmethod def feed_mapping_path( customer_id: str, feed_id: str, feed_mapping_id: str ) -> str: ... @staticmethod - def parse_feed_mapping_path(path: str) -> Dict[str, str]: ... + def parse_feed_mapping_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_path( customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_keyword_path( customer_id: str, keyword_plan_ad_group_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_keyword_path( customer_id: str, keyword_plan_campaign_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def language_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_language_constant_path(path: str) -> Dict[str, str]: ... + def parse_language_constant_path(path: str) -> dict[str, str]: ... @staticmethod def media_file_path(customer_id: str, media_file_id: str) -> str: ... @staticmethod - def parse_media_file_path(path: str) -> Dict[str, str]: ... + def parse_media_file_path(path: str) -> dict[str, str]: ... @staticmethod def remarketing_action_path( customer_id: str, remarketing_action_id: str ) -> str: ... @staticmethod - def parse_remarketing_action_path(path: str) -> Dict[str, str]: ... + def parse_remarketing_action_path(path: str) -> dict[str, str]: ... @staticmethod def shared_criterion_path( customer_id: str, shared_set_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_shared_criterion_path(path: str) -> Dict[str, str]: ... + def parse_shared_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_setting_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_setting_path(path: str) -> dict[str, str]: ... @staticmethod def user_interest_path(customer_id: str, user_interest_id: str) -> str: ... @staticmethod - def parse_user_interest_path(path: str) -> Dict[str, str]: ... + def parse_user_interest_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BatchJobServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BatchJobServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_batch_job( self, - request: Optional[Union[batch_job_service.MutateBatchJobRequest, dict]] = None, + request: batch_job_service.MutateBatchJobRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[batch_job_service.BatchJobOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: batch_job_service.BatchJobOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> batch_job_service.MutateBatchJobResponse: ... def list_batch_job_results( self, - request: Optional[ - Union[batch_job_service.ListBatchJobResultsRequest, dict] - ] = None, + request: batch_job_service.ListBatchJobResultsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.ListBatchJobResultsPager: ... def run_batch_job( self, - request: Optional[Union[batch_job_service.RunBatchJobRequest, dict]] = None, + request: batch_job_service.RunBatchJobRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... def add_batch_job_operations( self, - request: Optional[ - Union[batch_job_service.AddBatchJobOperationsRequest, dict] - ] = None, + request: batch_job_service.AddBatchJobOperationsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - sequence_token: Optional[str] = None, - mutate_operations: Optional[ - MutableSequence[google_ads_service.MutateOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + sequence_token: str | None = None, + mutate_operations: MutableSequence[google_ads_service.MutateOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> batch_job_service.AddBatchJobOperationsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/batch_job_service/pagers.pyi b/google-stubs/ads/googleads/v13/services/services/batch_job_service/pagers.pyi index 3ea1d86d3..b20ca1112 100644 --- a/google-stubs/ads/googleads/v13/services/services/batch_job_service/pagers.pyi +++ b/google-stubs/ads/googleads/v13/services/services/batch_job_service/pagers.pyi @@ -10,7 +10,7 @@ class ListBatchJobResultsPager: method: Callable[..., batch_job_service.ListBatchJobResultsResponse], request: batch_job_service.ListBatchJobResultsRequest, response: batch_job_service.ListBatchJobResultsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/batch_job_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/batch_job_service/transports/base.pyi index 8ad9da72e..1061b4be6 100644 --- a/google-stubs/ads/googleads/v13/services/services/batch_job_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/batch_job_service/transports/base.pyi @@ -15,12 +15,12 @@ class BatchJobServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -31,35 +31,26 @@ class BatchJobServiceTransport(abc.ABC): self, ) -> Callable[ [batch_job_service.MutateBatchJobRequest], - Union[ - batch_job_service.MutateBatchJobResponse, - Awaitable[batch_job_service.MutateBatchJobResponse], - ], + batch_job_service.MutateBatchJobResponse | Awaitable[batch_job_service.MutateBatchJobResponse], ]: ... @property def list_batch_job_results( self, ) -> Callable[ [batch_job_service.ListBatchJobResultsRequest], - Union[ - batch_job_service.ListBatchJobResultsResponse, - Awaitable[batch_job_service.ListBatchJobResultsResponse], - ], + batch_job_service.ListBatchJobResultsResponse | Awaitable[batch_job_service.ListBatchJobResultsResponse], ]: ... @property def run_batch_job( self, ) -> Callable[ [batch_job_service.RunBatchJobRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... @property def add_batch_job_operations( self, ) -> Callable[ [batch_job_service.AddBatchJobOperationsRequest], - Union[ - batch_job_service.AddBatchJobOperationsResponse, - Awaitable[batch_job_service.AddBatchJobOperationsResponse], - ], + batch_job_service.AddBatchJobOperationsResponse | Awaitable[batch_job_service.AddBatchJobOperationsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/batch_job_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/batch_job_service/transports/grpc.pyi index 49cb4b1ea..387d66244 100644 --- a/google-stubs/ads/googleads/v13/services/services/batch_job_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/batch_job_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class BatchJobServiceGrpcTransport(BatchJobServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/client.pyi index 5e79669ab..e00c7cd52 100644 --- a/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BiddingDataExclusionServiceTransport class BiddingDataExclusionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BiddingDataExclusionServiceTransport]: ... + cls, label: str | None = None + ) -> type[BiddingDataExclusionServiceTransport]: ... class BiddingDataExclusionServiceClient( metaclass=BiddingDataExclusionServiceClientMeta @@ -36,54 +36,46 @@ class BiddingDataExclusionServiceClient( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: ... + def parse_bidding_data_exclusion_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BiddingDataExclusionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BiddingDataExclusionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_bidding_data_exclusions( self, - request: Optional[ - Union[ - bidding_data_exclusion_service.MutateBiddingDataExclusionsRequest, dict - ] - ] = None, + request: bidding_data_exclusion_service.MutateBiddingDataExclusionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - bidding_data_exclusion_service.BiddingDataExclusionOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[bidding_data_exclusion_service.BiddingDataExclusionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/transports/base.pyi index 697362405..c5b754a3a 100644 --- a/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/transports/base.pyi @@ -14,12 +14,12 @@ class BiddingDataExclusionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class BiddingDataExclusionServiceTransport(abc.ABC): self, ) -> Callable[ [bidding_data_exclusion_service.MutateBiddingDataExclusionsRequest], - Union[ - bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse, - Awaitable[ - bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse - ], - ], + bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse | Awaitable[bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/transports/grpc.pyi index 3e1825723..03ba366cb 100644 --- a/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/bidding_data_exclusion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BiddingDataExclusionServiceGrpcTransport(BiddingDataExclusionServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/client.pyi index 48fbcacc5..c13d008b7 100644 --- a/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import BiddingSeasonalityAdjustmentServiceTransport class BiddingSeasonalityAdjustmentServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BiddingSeasonalityAdjustmentServiceTransport]: ... + cls, label: str | None = None + ) -> type[BiddingSeasonalityAdjustmentServiceTransport]: ... class BiddingSeasonalityAdjustmentServiceClient( metaclass=BiddingSeasonalityAdjustmentServiceClientMeta @@ -38,59 +38,48 @@ class BiddingSeasonalityAdjustmentServiceClient( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: ... + def parse_bidding_seasonality_adjustment_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, BiddingSeasonalityAdjustmentServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BiddingSeasonalityAdjustmentServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_bidding_seasonality_adjustments( self, - request: Optional[ - Union[ - bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsRequest, - dict, - ] - ] = None, + request: bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - bidding_seasonality_adjustment_service.BiddingSeasonalityAdjustmentOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[bidding_seasonality_adjustment_service.BiddingSeasonalityAdjustmentOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse ): ... diff --git a/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/transports/base.pyi index fa33a9ba3..c0db05415 100644 --- a/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/transports/base.pyi @@ -16,12 +16,12 @@ class BiddingSeasonalityAdjustmentServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class BiddingSeasonalityAdjustmentServiceTransport(abc.ABC): [ bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsRequest ], - Union[ - bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse, - Awaitable[ - bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse - ], - ], + bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse | Awaitable[bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi index 9b2324b7e..6f4a37c76 100644 --- a/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class BiddingSeasonalityAdjustmentServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/client.pyi index 73798e564..71b10aa25 100644 --- a/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BiddingStrategyServiceTransport class BiddingStrategyServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BiddingStrategyServiceTransport]: ... + cls, label: str | None = None + ) -> type[BiddingStrategyServiceTransport]: ... class BiddingStrategyServiceClient(metaclass=BiddingStrategyServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class BiddingStrategyServiceClient(metaclass=BiddingStrategyServiceClientMeta): @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BiddingStrategyServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BiddingStrategyServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_bidding_strategies( self, - request: Optional[ - Union[bidding_strategy_service.MutateBiddingStrategiesRequest, dict] - ] = None, + request: bidding_strategy_service.MutateBiddingStrategiesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[bidding_strategy_service.BiddingStrategyOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[bidding_strategy_service.BiddingStrategyOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> bidding_strategy_service.MutateBiddingStrategiesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/transports/base.pyi index 648765b7d..b8ce96de4 100644 --- a/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/transports/base.pyi @@ -14,12 +14,12 @@ class BiddingStrategyServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class BiddingStrategyServiceTransport(abc.ABC): self, ) -> Callable[ [bidding_strategy_service.MutateBiddingStrategiesRequest], - Union[ - bidding_strategy_service.MutateBiddingStrategiesResponse, - Awaitable[bidding_strategy_service.MutateBiddingStrategiesResponse], - ], + bidding_strategy_service.MutateBiddingStrategiesResponse | Awaitable[bidding_strategy_service.MutateBiddingStrategiesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/transports/grpc.pyi index f539eba1a..e2e01742d 100644 --- a/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/bidding_strategy_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BiddingStrategyServiceGrpcTransport(BiddingStrategyServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/billing_setup_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/billing_setup_service/client.pyi index b4a5c65a9..582e67ac7 100644 --- a/google-stubs/ads/googleads/v13/services/services/billing_setup_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/billing_setup_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BillingSetupServiceTransport class BillingSetupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BillingSetupServiceTransport]: ... + cls, label: str | None = None + ) -> type[BillingSetupServiceTransport]: ... class BillingSetupServiceClient(metaclass=BillingSetupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,48 +32,46 @@ class BillingSetupServiceClient(metaclass=BillingSetupServiceClientMeta): @staticmethod def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ... @staticmethod - def parse_billing_setup_path(path: str) -> Dict[str, str]: ... + def parse_billing_setup_path(path: str) -> dict[str, str]: ... @staticmethod def payments_account_path(customer_id: str, payments_account_id: str) -> str: ... @staticmethod - def parse_payments_account_path(path: str) -> Dict[str, str]: ... + def parse_payments_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BillingSetupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BillingSetupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_billing_setup( self, - request: Optional[ - Union[billing_setup_service.MutateBillingSetupRequest, dict] - ] = None, + request: billing_setup_service.MutateBillingSetupRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[billing_setup_service.BillingSetupOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: billing_setup_service.BillingSetupOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> billing_setup_service.MutateBillingSetupResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/billing_setup_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/billing_setup_service/transports/base.pyi index 0500f60de..b04e345e7 100644 --- a/google-stubs/ads/googleads/v13/services/services/billing_setup_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/billing_setup_service/transports/base.pyi @@ -14,12 +14,12 @@ class BillingSetupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class BillingSetupServiceTransport(abc.ABC): self, ) -> Callable[ [billing_setup_service.MutateBillingSetupRequest], - Union[ - billing_setup_service.MutateBillingSetupResponse, - Awaitable[billing_setup_service.MutateBillingSetupResponse], - ], + billing_setup_service.MutateBillingSetupResponse | Awaitable[billing_setup_service.MutateBillingSetupResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/billing_setup_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/billing_setup_service/transports/grpc.pyi index dbde3c18a..37faa4c6a 100644 --- a/google-stubs/ads/googleads/v13/services/services/billing_setup_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/billing_setup_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BillingSetupServiceGrpcTransport(BillingSetupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/client.pyi index ae1bd764d..0112cac20 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignAssetServiceTransport class CampaignAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignAssetServiceTransport]: ... class CampaignAssetServiceClient(metaclass=CampaignAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignAssetServiceClient(metaclass=CampaignAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_path( customer_id: str, campaign_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_campaign_asset_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_assets( self, - request: Optional[ - Union[campaign_asset_service.MutateCampaignAssetsRequest, dict] - ] = None, + request: campaign_asset_service.MutateCampaignAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_asset_service.CampaignAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_asset_service.CampaignAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_asset_service.MutateCampaignAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/transports/base.pyi index cf86a424a..98ed11c90 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignAssetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_asset_service.MutateCampaignAssetsRequest], - Union[ - campaign_asset_service.MutateCampaignAssetsResponse, - Awaitable[campaign_asset_service.MutateCampaignAssetsResponse], - ], + campaign_asset_service.MutateCampaignAssetsResponse | Awaitable[campaign_asset_service.MutateCampaignAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/transports/grpc.pyi index cf585ad2d..4e8398f1f 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignAssetServiceGrpcTransport(CampaignAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/client.pyi index 3fc9bee60..04e765e13 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignAssetSetServiceTransport class CampaignAssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignAssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignAssetSetServiceTransport]: ... class CampaignAssetSetServiceClient(metaclass=CampaignAssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignAssetSetServiceClient(metaclass=CampaignAssetSetServiceClientMeta) @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_set_path( customer_id: str, campaign_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignAssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignAssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_asset_sets( self, - request: Optional[ - Union[campaign_asset_set_service.MutateCampaignAssetSetsRequest, dict] - ] = None, + request: campaign_asset_set_service.MutateCampaignAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_asset_set_service.CampaignAssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_asset_set_service.CampaignAssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_asset_set_service.MutateCampaignAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/transports/base.pyi index e25bc7a02..d350c5c24 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignAssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignAssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_asset_set_service.MutateCampaignAssetSetsRequest], - Union[ - campaign_asset_set_service.MutateCampaignAssetSetsResponse, - Awaitable[campaign_asset_set_service.MutateCampaignAssetSetsResponse], - ], + campaign_asset_set_service.MutateCampaignAssetSetsResponse | Awaitable[campaign_asset_set_service.MutateCampaignAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/transports/grpc.pyi index 5b54d7df9..3b0419ed1 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignAssetSetServiceGrpcTransport(CampaignAssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/client.pyi index bfefa54fc..fa630a19d 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignBidModifierServiceTransport class CampaignBidModifierServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignBidModifierServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignBidModifierServiceTransport]: ... class CampaignBidModifierServiceClient(metaclass=CampaignBidModifierServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CampaignBidModifierServiceClient(metaclass=CampaignBidModifierServiceClien @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_bid_modifier_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_campaign_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignBidModifierServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignBidModifierServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_bid_modifiers( self, - request: Optional[ - Union[campaign_bid_modifier_service.MutateCampaignBidModifiersRequest, dict] - ] = None, + request: campaign_bid_modifier_service.MutateCampaignBidModifiersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_bid_modifier_service.CampaignBidModifierOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_bid_modifier_service.CampaignBidModifierOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_bid_modifier_service.MutateCampaignBidModifiersResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/transports/base.pyi index 45acc8af1..fbefbfd36 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignBidModifierServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignBidModifierServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_bid_modifier_service.MutateCampaignBidModifiersRequest], - Union[ - campaign_bid_modifier_service.MutateCampaignBidModifiersResponse, - Awaitable[campaign_bid_modifier_service.MutateCampaignBidModifiersResponse], - ], + campaign_bid_modifier_service.MutateCampaignBidModifiersResponse | Awaitable[campaign_bid_modifier_service.MutateCampaignBidModifiersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/transports/grpc.pyi index 1f72a4592..6c8859d43 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_bid_modifier_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignBidModifierServiceGrpcTransport(CampaignBidModifierServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/client.pyi index 1052d2c27..321fab0f0 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignBudgetServiceTransport class CampaignBudgetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignBudgetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignBudgetServiceTransport]: ... class CampaignBudgetServiceClient(metaclass=CampaignBudgetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CampaignBudgetServiceClient(metaclass=CampaignBudgetServiceClientMeta): @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignBudgetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignBudgetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_budgets( self, - request: Optional[ - Union[campaign_budget_service.MutateCampaignBudgetsRequest, dict] - ] = None, + request: campaign_budget_service.MutateCampaignBudgetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_budget_service.CampaignBudgetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_budget_service.CampaignBudgetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_budget_service.MutateCampaignBudgetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/transports/base.pyi index 76ead96cb..debdd5e12 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignBudgetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignBudgetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_budget_service.MutateCampaignBudgetsRequest], - Union[ - campaign_budget_service.MutateCampaignBudgetsResponse, - Awaitable[campaign_budget_service.MutateCampaignBudgetsResponse], - ], + campaign_budget_service.MutateCampaignBudgetsResponse | Awaitable[campaign_budget_service.MutateCampaignBudgetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/transports/grpc.pyi index 07b4ba36b..38a29ee44 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_budget_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignBudgetServiceGrpcTransport(CampaignBudgetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/client.pyi index 2e5fa502e..7bc808ec9 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignConversionGoalServiceTransport class CampaignConversionGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignConversionGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignConversionGoalServiceTransport]: ... class CampaignConversionGoalServiceClient( metaclass=CampaignConversionGoalServiceClientMeta @@ -34,57 +34,48 @@ class CampaignConversionGoalServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_conversion_goal_path( customer_id: str, campaign_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignConversionGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignConversionGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_conversion_goals( self, - request: Optional[ - Union[ - campaign_conversion_goal_service.MutateCampaignConversionGoalsRequest, - dict, - ] - ] = None, + request: campaign_conversion_goal_service.MutateCampaignConversionGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - campaign_conversion_goal_service.CampaignConversionGoalOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_conversion_goal_service.CampaignConversionGoalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/transports/base.pyi index 928ee947a..f696f5304 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignConversionGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CampaignConversionGoalServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_conversion_goal_service.MutateCampaignConversionGoalsRequest], - Union[ - campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse, - Awaitable[ - campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse - ], - ], + campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse | Awaitable[campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/transports/grpc.pyi index 1f16dd8d7..192673f37 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_conversion_goal_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CampaignConversionGoalServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/client.pyi index b561e6a28..39b383e25 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignCriterionServiceTransport class CampaignCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignCriterionServiceTransport]: ... class CampaignCriterionServiceClient(metaclass=CampaignCriterionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CampaignCriterionServiceClient(metaclass=CampaignCriterionServiceClientMet @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_criterion_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignCriterionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_criteria( self, - request: Optional[ - Union[campaign_criterion_service.MutateCampaignCriteriaRequest, dict] - ] = None, + request: campaign_criterion_service.MutateCampaignCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_criterion_service.CampaignCriterionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_criterion_service.CampaignCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_criterion_service.MutateCampaignCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/transports/base.pyi index de8005622..2e19a7411 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_criterion_service.MutateCampaignCriteriaRequest], - Union[ - campaign_criterion_service.MutateCampaignCriteriaResponse, - Awaitable[campaign_criterion_service.MutateCampaignCriteriaResponse], - ], + campaign_criterion_service.MutateCampaignCriteriaResponse | Awaitable[campaign_criterion_service.MutateCampaignCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/transports/grpc.pyi index 851beadfa..0633eb9c5 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_criterion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignCriterionServiceGrpcTransport(CampaignCriterionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/client.pyi index e888114cc..6fa5cc4c3 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignCustomizerServiceTransport class CampaignCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignCustomizerServiceTransport]: ... class CampaignCustomizerServiceClient(metaclass=CampaignCustomizerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class CampaignCustomizerServiceClient(metaclass=CampaignCustomizerServiceClientM @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_customizer_path( customer_id: str, campaign_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_campaign_customizer_path(path: str) -> Dict[str, str]: ... + def parse_campaign_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignCustomizerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_customizers( self, - request: Optional[ - Union[campaign_customizer_service.MutateCampaignCustomizersRequest, dict] - ] = None, + request: campaign_customizer_service.MutateCampaignCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_customizer_service.CampaignCustomizerOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_customizer_service.CampaignCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_customizer_service.MutateCampaignCustomizersResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/transports/base.pyi index 3be3cea59..3c9f0d3ba 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignCustomizerServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_customizer_service.MutateCampaignCustomizersRequest], - Union[ - campaign_customizer_service.MutateCampaignCustomizersResponse, - Awaitable[campaign_customizer_service.MutateCampaignCustomizersResponse], - ], + campaign_customizer_service.MutateCampaignCustomizersResponse | Awaitable[campaign_customizer_service.MutateCampaignCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/transports/grpc.pyi index 7ffa01c31..d01053014 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_customizer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignCustomizerServiceGrpcTransport(CampaignCustomizerServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/client.pyi index f51443894..34cab6388 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import CampaignDraftServiceTransport class CampaignDraftServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignDraftServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignDraftServiceTransport]: ... class CampaignDraftServiceClient(metaclass=CampaignDraftServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,74 +34,66 @@ class CampaignDraftServiceClient(metaclass=CampaignDraftServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_draft_path( customer_id: str, base_campaign_id: str, draft_id: str ) -> str: ... @staticmethod - def parse_campaign_draft_path(path: str) -> Dict[str, str]: ... + def parse_campaign_draft_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignDraftServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignDraftServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_drafts( self, - request: Optional[ - Union[campaign_draft_service.MutateCampaignDraftsRequest, dict] - ] = None, + request: campaign_draft_service.MutateCampaignDraftsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_draft_service.CampaignDraftOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_draft_service.CampaignDraftOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_draft_service.MutateCampaignDraftsResponse: ... def promote_campaign_draft( self, - request: Optional[ - Union[campaign_draft_service.PromoteCampaignDraftRequest, dict] - ] = None, + request: campaign_draft_service.PromoteCampaignDraftRequest | dict | None = None, *, - campaign_draft: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + campaign_draft: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... def list_campaign_draft_async_errors( self, - request: Optional[ - Union[campaign_draft_service.ListCampaignDraftAsyncErrorsRequest, dict] - ] = None, + request: campaign_draft_service.ListCampaignDraftAsyncErrorsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.ListCampaignDraftAsyncErrorsPager: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/pagers.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/pagers.pyi index dfecfcc62..261c734ab 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/pagers.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/pagers.pyi @@ -14,7 +14,7 @@ class ListCampaignDraftAsyncErrorsPager: ], request: campaign_draft_service.ListCampaignDraftAsyncErrorsRequest, response: campaign_draft_service.ListCampaignDraftAsyncErrorsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/transports/base.pyi index e9ccb9c48..9e7f9b24f 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/transports/base.pyi @@ -15,12 +15,12 @@ class CampaignDraftServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -31,25 +31,19 @@ class CampaignDraftServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_draft_service.MutateCampaignDraftsRequest], - Union[ - campaign_draft_service.MutateCampaignDraftsResponse, - Awaitable[campaign_draft_service.MutateCampaignDraftsResponse], - ], + campaign_draft_service.MutateCampaignDraftsResponse | Awaitable[campaign_draft_service.MutateCampaignDraftsResponse], ]: ... @property def promote_campaign_draft( self, ) -> Callable[ [campaign_draft_service.PromoteCampaignDraftRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... @property def list_campaign_draft_async_errors( self, ) -> Callable[ [campaign_draft_service.ListCampaignDraftAsyncErrorsRequest], - Union[ - campaign_draft_service.ListCampaignDraftAsyncErrorsResponse, - Awaitable[campaign_draft_service.ListCampaignDraftAsyncErrorsResponse], - ], + campaign_draft_service.ListCampaignDraftAsyncErrorsResponse | Awaitable[campaign_draft_service.ListCampaignDraftAsyncErrorsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/transports/grpc.pyi index 3f79c3504..00dc6dfec 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_draft_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class CampaignDraftServiceGrpcTransport(CampaignDraftServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/client.pyi index ae8423472..f69b523c1 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignExtensionSettingServiceTransport class CampaignExtensionSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignExtensionSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignExtensionSettingServiceTransport]: ... class CampaignExtensionSettingServiceClient( metaclass=CampaignExtensionSettingServiceClientMeta @@ -34,63 +34,52 @@ class CampaignExtensionSettingServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_extension_setting_path( customer_id: str, campaign_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_campaign_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CampaignExtensionSettingServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignExtensionSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_extension_settings( self, - request: Optional[ - Union[ - campaign_extension_setting_service.MutateCampaignExtensionSettingsRequest, - dict, - ] - ] = None, + request: campaign_extension_setting_service.MutateCampaignExtensionSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - campaign_extension_setting_service.CampaignExtensionSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_extension_setting_service.CampaignExtensionSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/transports/base.pyi index 50b99ed12..6823052b1 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignExtensionSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CampaignExtensionSettingServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_extension_setting_service.MutateCampaignExtensionSettingsRequest], - Union[ - campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse, - Awaitable[ - campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse - ], - ], + campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse | Awaitable[campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/transports/grpc.pyi index 82dc2b31e..d893582f2 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_extension_setting_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CampaignExtensionSettingServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/client.pyi index ce314cfe3..da91c52d2 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignFeedServiceTransport class CampaignFeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignFeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignFeedServiceTransport]: ... class CampaignFeedServiceClient(metaclass=CampaignFeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class CampaignFeedServiceClient(metaclass=CampaignFeedServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_feed_path(customer_id: str, campaign_id: str, feed_id: str) -> str: ... @staticmethod - def parse_campaign_feed_path(path: str) -> Dict[str, str]: ... + def parse_campaign_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignFeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignFeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_feeds( self, - request: Optional[ - Union[campaign_feed_service.MutateCampaignFeedsRequest, dict] - ] = None, + request: campaign_feed_service.MutateCampaignFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_feed_service.CampaignFeedOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_feed_service.CampaignFeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_feed_service.MutateCampaignFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/transports/base.pyi index 7bf44170c..3d7c00277 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignFeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignFeedServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_feed_service.MutateCampaignFeedsRequest], - Union[ - campaign_feed_service.MutateCampaignFeedsResponse, - Awaitable[campaign_feed_service.MutateCampaignFeedsResponse], - ], + campaign_feed_service.MutateCampaignFeedsResponse | Awaitable[campaign_feed_service.MutateCampaignFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/transports/grpc.pyi index 3659509db..f12da4273 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignFeedServiceGrpcTransport(CampaignFeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_group_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_group_service/client.pyi index 69c99b2ef..7d0103df9 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_group_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignGroupServiceTransport class CampaignGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignGroupServiceTransport]: ... class CampaignGroupServiceClient(metaclass=CampaignGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CampaignGroupServiceClient(metaclass=CampaignGroupServiceClientMeta): @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_groups( self, - request: Optional[ - Union[campaign_group_service.MutateCampaignGroupsRequest, dict] - ] = None, + request: campaign_group_service.MutateCampaignGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_group_service.CampaignGroupOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_group_service.CampaignGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_group_service.MutateCampaignGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_group_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_group_service/transports/base.pyi index 5116e96db..cb7f1f171 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignGroupServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_group_service.MutateCampaignGroupsRequest], - Union[ - campaign_group_service.MutateCampaignGroupsResponse, - Awaitable[campaign_group_service.MutateCampaignGroupsResponse], - ], + campaign_group_service.MutateCampaignGroupsResponse | Awaitable[campaign_group_service.MutateCampaignGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_group_service/transports/grpc.pyi index e040e0e60..6002f94e6 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignGroupServiceGrpcTransport(CampaignGroupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_label_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_label_service/client.pyi index 627085ed8..8a5cfbe11 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_label_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignLabelServiceTransport class CampaignLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignLabelServiceTransport]: ... class CampaignLabelServiceClient(metaclass=CampaignLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignLabelServiceClient(metaclass=CampaignLabelServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_labels( self, - request: Optional[ - Union[campaign_label_service.MutateCampaignLabelsRequest, dict] - ] = None, + request: campaign_label_service.MutateCampaignLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_label_service.CampaignLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_label_service.CampaignLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_label_service.MutateCampaignLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_label_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_label_service/transports/base.pyi index 7c7245b97..e41f482c5 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignLabelServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_label_service.MutateCampaignLabelsRequest], - Union[ - campaign_label_service.MutateCampaignLabelsResponse, - Awaitable[campaign_label_service.MutateCampaignLabelsResponse], - ], + campaign_label_service.MutateCampaignLabelsResponse | Awaitable[campaign_label_service.MutateCampaignLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_label_service/transports/grpc.pyi index ef90edbad..8f12bf380 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignLabelServiceGrpcTransport(CampaignLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_service/client.pyi index d36c98d42..990e3c0f1 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignServiceTransport class CampaignServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignServiceTransport]: ... class CampaignServiceClient(metaclass=CampaignServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,78 +34,76 @@ class CampaignServiceClient(metaclass=CampaignServiceClientMeta): customer_id: str, bidding_strategy_id: str ) -> str: ... @staticmethod - def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_accessible_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaigns( self, - request: Optional[Union[campaign_service.MutateCampaignsRequest, dict]] = None, + request: campaign_service.MutateCampaignsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_service.CampaignOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_service.CampaignOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_service.MutateCampaignsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_service/transports/base.pyi index 921e1c6ae..bac112abd 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_service.MutateCampaignsRequest], - Union[ - campaign_service.MutateCampaignsResponse, - Awaitable[campaign_service.MutateCampaignsResponse], - ], + campaign_service.MutateCampaignsResponse | Awaitable[campaign_service.MutateCampaignsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_service/transports/grpc.pyi index 38ac8a660..3f7b693f7 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignServiceGrpcTransport(CampaignServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/client.pyi index 4f9375283..d03999502 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignSharedSetServiceTransport class CampaignSharedSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignSharedSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignSharedSetServiceTransport]: ... class CampaignSharedSetServiceClient(metaclass=CampaignSharedSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignSharedSetServiceClient(metaclass=CampaignSharedSetServiceClientMet @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_shared_set_path( customer_id: str, campaign_id: str, shared_set_id: str ) -> str: ... @staticmethod - def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignSharedSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignSharedSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_shared_sets( self, - request: Optional[ - Union[campaign_shared_set_service.MutateCampaignSharedSetsRequest, dict] - ] = None, + request: campaign_shared_set_service.MutateCampaignSharedSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_shared_set_service.CampaignSharedSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_shared_set_service.CampaignSharedSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_shared_set_service.MutateCampaignSharedSetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/transports/base.pyi index 844b93b66..d67c632de 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignSharedSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignSharedSetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_shared_set_service.MutateCampaignSharedSetsRequest], - Union[ - campaign_shared_set_service.MutateCampaignSharedSetsResponse, - Awaitable[campaign_shared_set_service.MutateCampaignSharedSetsResponse], - ], + campaign_shared_set_service.MutateCampaignSharedSetsResponse | Awaitable[campaign_shared_set_service.MutateCampaignSharedSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/transports/grpc.pyi index 22acdc7fe..3f3962b4d 100644 --- a/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/campaign_shared_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignSharedSetServiceGrpcTransport(CampaignSharedSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_action_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_action_service/client.pyi index 00f536164..9b6cdbb63 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_action_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_action_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionActionServiceTransport class ConversionActionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionActionServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionActionServiceTransport]: ... class ConversionActionServiceClient(metaclass=ConversionActionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,50 +32,46 @@ class ConversionActionServiceClient(metaclass=ConversionActionServiceClientMeta) @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionActionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionActionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_actions( self, - request: Optional[ - Union[conversion_action_service.MutateConversionActionsRequest, dict] - ] = None, + request: conversion_action_service.MutateConversionActionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[conversion_action_service.ConversionActionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_action_service.ConversionActionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_action_service.MutateConversionActionsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_action_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_action_service/transports/base.pyi index 8755361c8..a2b19eae2 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_action_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_action_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionActionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ConversionActionServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_action_service.MutateConversionActionsRequest], - Union[ - conversion_action_service.MutateConversionActionsResponse, - Awaitable[conversion_action_service.MutateConversionActionsResponse], - ], + conversion_action_service.MutateConversionActionsResponse | Awaitable[conversion_action_service.MutateConversionActionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_action_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_action_service/transports/grpc.pyi index 66a0fa1a9..21e9bf299 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_action_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_action_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ConversionActionServiceGrpcTransport(ConversionActionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/client.pyi index 7e5d0352c..566c8fb17 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionAdjustmentUploadServiceTransport class ConversionAdjustmentUploadServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionAdjustmentUploadServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionAdjustmentUploadServiceTransport]: ... class ConversionAdjustmentUploadServiceClient( metaclass=ConversionAdjustmentUploadServiceClientMeta @@ -34,48 +34,39 @@ class ConversionAdjustmentUploadServiceClient( @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ConversionAdjustmentUploadServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionAdjustmentUploadServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def upload_conversion_adjustments( self, - request: Optional[ - Union[ - conversion_adjustment_upload_service.UploadConversionAdjustmentsRequest, - dict, - ] - ] = None, + request: conversion_adjustment_upload_service.UploadConversionAdjustmentsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - conversion_adjustments: Optional[ - MutableSequence[conversion_adjustment_upload_service.ConversionAdjustment] - ] = None, - partial_failure: Optional[bool] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + conversion_adjustments: MutableSequence[conversion_adjustment_upload_service.ConversionAdjustment] | None = None, + partial_failure: bool | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/transports/base.pyi index 3e1829902..489c64fa7 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionAdjustmentUploadServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ConversionAdjustmentUploadServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_adjustment_upload_service.UploadConversionAdjustmentsRequest], - Union[ - conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse, - Awaitable[ - conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse - ], - ], + conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse | Awaitable[conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/transports/grpc.pyi index 9ed06a30e..c6dd0c442 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_adjustment_upload_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ConversionAdjustmentUploadServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/client.pyi index 2380f48e9..5fd38de75 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionCustomVariableServiceTransport class ConversionCustomVariableServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionCustomVariableServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionCustomVariableServiceTransport]: ... class ConversionCustomVariableServiceClient( metaclass=ConversionCustomVariableServiceClientMeta @@ -36,57 +36,46 @@ class ConversionCustomVariableServiceClient( customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ConversionCustomVariableServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionCustomVariableServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_custom_variables( self, - request: Optional[ - Union[ - conversion_custom_variable_service.MutateConversionCustomVariablesRequest, - dict, - ] - ] = None, + request: conversion_custom_variable_service.MutateConversionCustomVariablesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - conversion_custom_variable_service.ConversionCustomVariableOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_custom_variable_service.ConversionCustomVariableOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_custom_variable_service.MutateConversionCustomVariablesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/transports/base.pyi index 6514b8698..0de3715e6 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionCustomVariableServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ConversionCustomVariableServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_custom_variable_service.MutateConversionCustomVariablesRequest], - Union[ - conversion_custom_variable_service.MutateConversionCustomVariablesResponse, - Awaitable[ - conversion_custom_variable_service.MutateConversionCustomVariablesResponse - ], - ], + conversion_custom_variable_service.MutateConversionCustomVariablesResponse | Awaitable[conversion_custom_variable_service.MutateConversionCustomVariablesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/transports/grpc.pyi index e2ed92f82..7a069b5c5 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_custom_variable_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ConversionCustomVariableServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/client.pyi index 00133dd5b..ee9217d79 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import ConversionGoalCampaignConfigServiceTransport class ConversionGoalCampaignConfigServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionGoalCampaignConfigServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionGoalCampaignConfigServiceTransport]: ... class ConversionGoalCampaignConfigServiceClient( metaclass=ConversionGoalCampaignConfigServiceClientMeta @@ -36,65 +36,54 @@ class ConversionGoalCampaignConfigServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_goal_campaign_config_path( customer_id: str, campaign_id: str ) -> str: ... @staticmethod - def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: ... + def parse_conversion_goal_campaign_config_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ConversionGoalCampaignConfigServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionGoalCampaignConfigServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_goal_campaign_configs( self, - request: Optional[ - Union[ - conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsRequest, - dict, - ] - ] = None, + request: conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - conversion_goal_campaign_config_service.ConversionGoalCampaignConfigOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_goal_campaign_config_service.ConversionGoalCampaignConfigOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse ): ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/transports/base.pyi index a9bc87de5..8ba13d292 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/transports/base.pyi @@ -16,12 +16,12 @@ class ConversionGoalCampaignConfigServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class ConversionGoalCampaignConfigServiceTransport(abc.ABC): [ conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsRequest ], - Union[ - conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse, - Awaitable[ - conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse - ], - ], + conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse | Awaitable[conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi index 6b062132b..195d911db 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class ConversionGoalCampaignConfigServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/client.pyi index f6219d925..cba9b6bb3 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionUploadServiceTransport class ConversionUploadServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionUploadServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionUploadServiceTransport]: ... class ConversionUploadServiceClient(metaclass=ConversionUploadServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,62 +34,54 @@ class ConversionUploadServiceClient(metaclass=ConversionUploadServiceClientMeta) customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionUploadServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionUploadServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def upload_click_conversions( self, - request: Optional[ - Union[conversion_upload_service.UploadClickConversionsRequest, dict] - ] = None, + request: conversion_upload_service.UploadClickConversionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - conversions: Optional[ - MutableSequence[conversion_upload_service.ClickConversion] - ] = None, - partial_failure: Optional[bool] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + conversions: MutableSequence[conversion_upload_service.ClickConversion] | None = None, + partial_failure: bool | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_upload_service.UploadClickConversionsResponse: ... def upload_call_conversions( self, - request: Optional[ - Union[conversion_upload_service.UploadCallConversionsRequest, dict] - ] = None, + request: conversion_upload_service.UploadCallConversionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - conversions: Optional[ - MutableSequence[conversion_upload_service.CallConversion] - ] = None, - partial_failure: Optional[bool] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + conversions: MutableSequence[conversion_upload_service.CallConversion] | None = None, + partial_failure: bool | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_upload_service.UploadCallConversionsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/transports/base.pyi index de6f4af0f..f7b44eb17 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionUploadServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class ConversionUploadServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_upload_service.UploadClickConversionsRequest], - Union[ - conversion_upload_service.UploadClickConversionsResponse, - Awaitable[conversion_upload_service.UploadClickConversionsResponse], - ], + conversion_upload_service.UploadClickConversionsResponse | Awaitable[conversion_upload_service.UploadClickConversionsResponse], ]: ... @property def upload_call_conversions( self, ) -> Callable[ [conversion_upload_service.UploadCallConversionsRequest], - Union[ - conversion_upload_service.UploadCallConversionsResponse, - Awaitable[conversion_upload_service.UploadCallConversionsResponse], - ], + conversion_upload_service.UploadCallConversionsResponse | Awaitable[conversion_upload_service.UploadCallConversionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/transports/grpc.pyi index 1a12d0df7..ee6be1f45 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_upload_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ConversionUploadServiceGrpcTransport(ConversionUploadServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/client.pyi index 2a5432a5d..bd4661598 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionValueRuleServiceTransport class ConversionValueRuleServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionValueRuleServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionValueRuleServiceTransport]: ... class ConversionValueRuleServiceClient(metaclass=ConversionValueRuleServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,62 +34,58 @@ class ConversionValueRuleServiceClient(metaclass=ConversionValueRuleServiceClien customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def user_interest_path(customer_id: str, user_interest_id: str) -> str: ... @staticmethod - def parse_user_interest_path(path: str) -> Dict[str, str]: ... + def parse_user_interest_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionValueRuleServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionValueRuleServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_value_rules( self, - request: Optional[ - Union[conversion_value_rule_service.MutateConversionValueRulesRequest, dict] - ] = None, + request: conversion_value_rule_service.MutateConversionValueRulesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[conversion_value_rule_service.ConversionValueRuleOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_value_rule_service.ConversionValueRuleOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_value_rule_service.MutateConversionValueRulesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/transports/base.pyi index 73475ad05..ab3c83439 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionValueRuleServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ConversionValueRuleServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_value_rule_service.MutateConversionValueRulesRequest], - Union[ - conversion_value_rule_service.MutateConversionValueRulesResponse, - Awaitable[conversion_value_rule_service.MutateConversionValueRulesResponse], - ], + conversion_value_rule_service.MutateConversionValueRulesResponse | Awaitable[conversion_value_rule_service.MutateConversionValueRulesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/transports/grpc.pyi index c2d609648..791f88049 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ConversionValueRuleServiceGrpcTransport(ConversionValueRuleServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/client.pyi index f9bd5befb..46122075c 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionValueRuleSetServiceTransport class ConversionValueRuleSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionValueRuleSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionValueRuleSetServiceTransport]: ... class ConversionValueRuleSetServiceClient( metaclass=ConversionValueRuleSetServiceClientMeta @@ -34,67 +34,58 @@ class ConversionValueRuleSetServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_path( customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_set_path( customer_id: str, conversion_value_rule_set_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_set_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionValueRuleSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionValueRuleSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_value_rule_sets( self, - request: Optional[ - Union[ - conversion_value_rule_set_service.MutateConversionValueRuleSetsRequest, - dict, - ] - ] = None, + request: conversion_value_rule_set_service.MutateConversionValueRuleSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - conversion_value_rule_set_service.ConversionValueRuleSetOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_value_rule_set_service.ConversionValueRuleSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/transports/base.pyi index 2687b9906..3a773a639 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionValueRuleSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ConversionValueRuleSetServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_value_rule_set_service.MutateConversionValueRuleSetsRequest], - Union[ - conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse, - Awaitable[ - conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse - ], - ], + conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse | Awaitable[conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/transports/grpc.pyi index 57281abc3..1ea5ecad2 100644 --- a/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/conversion_value_rule_set_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ConversionValueRuleSetServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/custom_audience_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/custom_audience_service/client.pyi index 1d330ac87..3de6fc0e2 100644 --- a/google-stubs/ads/googleads/v13/services/services/custom_audience_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/custom_audience_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomAudienceServiceTransport class CustomAudienceServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomAudienceServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomAudienceServiceTransport]: ... class CustomAudienceServiceClient(metaclass=CustomAudienceServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CustomAudienceServiceClient(metaclass=CustomAudienceServiceClientMeta): @staticmethod def custom_audience_path(customer_id: str, custom_audience_id: str) -> str: ... @staticmethod - def parse_custom_audience_path(path: str) -> Dict[str, str]: ... + def parse_custom_audience_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomAudienceServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomAudienceServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_custom_audiences( self, - request: Optional[ - Union[custom_audience_service.MutateCustomAudiencesRequest, dict] - ] = None, + request: custom_audience_service.MutateCustomAudiencesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[custom_audience_service.CustomAudienceOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[custom_audience_service.CustomAudienceOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> custom_audience_service.MutateCustomAudiencesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/custom_audience_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/custom_audience_service/transports/base.pyi index 44aa9f362..796d09ec6 100644 --- a/google-stubs/ads/googleads/v13/services/services/custom_audience_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/custom_audience_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomAudienceServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomAudienceServiceTransport(abc.ABC): self, ) -> Callable[ [custom_audience_service.MutateCustomAudiencesRequest], - Union[ - custom_audience_service.MutateCustomAudiencesResponse, - Awaitable[custom_audience_service.MutateCustomAudiencesResponse], - ], + custom_audience_service.MutateCustomAudiencesResponse | Awaitable[custom_audience_service.MutateCustomAudiencesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/custom_audience_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/custom_audience_service/transports/grpc.pyi index d7deddef5..f99db8249 100644 --- a/google-stubs/ads/googleads/v13/services/services/custom_audience_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/custom_audience_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomAudienceServiceGrpcTransport(CustomAudienceServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/client.pyi index 3b79da3c4..968110f33 100644 --- a/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomConversionGoalServiceTransport class CustomConversionGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomConversionGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomConversionGoalServiceTransport]: ... class CustomConversionGoalServiceClient( metaclass=CustomConversionGoalServiceClientMeta @@ -34,54 +34,46 @@ class CustomConversionGoalServiceClient( @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomConversionGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomConversionGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_custom_conversion_goals( self, - request: Optional[ - Union[ - custom_conversion_goal_service.MutateCustomConversionGoalsRequest, dict - ] - ] = None, + request: custom_conversion_goal_service.MutateCustomConversionGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - custom_conversion_goal_service.CustomConversionGoalOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[custom_conversion_goal_service.CustomConversionGoalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> custom_conversion_goal_service.MutateCustomConversionGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/transports/base.pyi index 0769c5423..0b99a8d16 100644 --- a/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomConversionGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomConversionGoalServiceTransport(abc.ABC): self, ) -> Callable[ [custom_conversion_goal_service.MutateCustomConversionGoalsRequest], - Union[ - custom_conversion_goal_service.MutateCustomConversionGoalsResponse, - Awaitable[ - custom_conversion_goal_service.MutateCustomConversionGoalsResponse - ], - ], + custom_conversion_goal_service.MutateCustomConversionGoalsResponse | Awaitable[custom_conversion_goal_service.MutateCustomConversionGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/transports/grpc.pyi index 7d38e38a8..0e44afe8f 100644 --- a/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/custom_conversion_goal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomConversionGoalServiceGrpcTransport(CustomConversionGoalServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/custom_interest_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/custom_interest_service/client.pyi index 60e101bb4..b039db9b9 100644 --- a/google-stubs/ads/googleads/v13/services/services/custom_interest_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/custom_interest_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomInterestServiceTransport class CustomInterestServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomInterestServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomInterestServiceTransport]: ... class CustomInterestServiceClient(metaclass=CustomInterestServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CustomInterestServiceClient(metaclass=CustomInterestServiceClientMeta): @staticmethod def custom_interest_path(customer_id: str, custom_interest_id: str) -> str: ... @staticmethod - def parse_custom_interest_path(path: str) -> Dict[str, str]: ... + def parse_custom_interest_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomInterestServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomInterestServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_custom_interests( self, - request: Optional[ - Union[custom_interest_service.MutateCustomInterestsRequest, dict] - ] = None, + request: custom_interest_service.MutateCustomInterestsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[custom_interest_service.CustomInterestOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[custom_interest_service.CustomInterestOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> custom_interest_service.MutateCustomInterestsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/custom_interest_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/custom_interest_service/transports/base.pyi index 674fa7651..53e37ebb9 100644 --- a/google-stubs/ads/googleads/v13/services/services/custom_interest_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/custom_interest_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomInterestServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomInterestServiceTransport(abc.ABC): self, ) -> Callable[ [custom_interest_service.MutateCustomInterestsRequest], - Union[ - custom_interest_service.MutateCustomInterestsResponse, - Awaitable[custom_interest_service.MutateCustomInterestsResponse], - ], + custom_interest_service.MutateCustomInterestsResponse | Awaitable[custom_interest_service.MutateCustomInterestsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/custom_interest_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/custom_interest_service/transports/grpc.pyi index 4dacf32b1..6c86cbf7f 100644 --- a/google-stubs/ads/googleads/v13/services/services/custom_interest_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/custom_interest_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomInterestServiceGrpcTransport(CustomInterestServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_asset_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_asset_service/client.pyi index b5aa654c5..1364ea1b3 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerAssetServiceTransport class CustomerAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerAssetServiceTransport]: ... class CustomerAssetServiceClient(metaclass=CustomerAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CustomerAssetServiceClient(metaclass=CustomerAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_path( customer_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_customer_asset_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_assets( self, - request: Optional[ - Union[customer_asset_service.MutateCustomerAssetsRequest, dict] - ] = None, + request: customer_asset_service.MutateCustomerAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_asset_service.CustomerAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_asset_service.CustomerAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_asset_service.MutateCustomerAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_asset_service/transports/base.pyi index efe9dda3f..4fc75212a 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerAssetServiceTransport(abc.ABC): self, ) -> Callable[ [customer_asset_service.MutateCustomerAssetsRequest], - Union[ - customer_asset_service.MutateCustomerAssetsResponse, - Awaitable[customer_asset_service.MutateCustomerAssetsResponse], - ], + customer_asset_service.MutateCustomerAssetsResponse | Awaitable[customer_asset_service.MutateCustomerAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_asset_service/transports/grpc.pyi index 88a718ed4..0e80ded57 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerAssetServiceGrpcTransport(CustomerAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/client.pyi index 55f94cb0a..0c4638469 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerAssetSetServiceTransport class CustomerAssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerAssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerAssetSetServiceTransport]: ... class CustomerAssetSetServiceClient(metaclass=CustomerAssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class CustomerAssetSetServiceClient(metaclass=CustomerAssetSetServiceClientMeta) @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_customer_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerAssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerAssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_asset_sets( self, - request: Optional[ - Union[customer_asset_set_service.MutateCustomerAssetSetsRequest, dict] - ] = None, + request: customer_asset_set_service.MutateCustomerAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_asset_set_service.CustomerAssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_asset_set_service.CustomerAssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_asset_set_service.MutateCustomerAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/transports/base.pyi index fa45be3a0..014710bed 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerAssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerAssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [customer_asset_set_service.MutateCustomerAssetSetsRequest], - Union[ - customer_asset_set_service.MutateCustomerAssetSetsResponse, - Awaitable[customer_asset_set_service.MutateCustomerAssetSetsResponse], - ], + customer_asset_set_service.MutateCustomerAssetSetsResponse | Awaitable[customer_asset_set_service.MutateCustomerAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/transports/grpc.pyi index 9b7c57e2c..8fe6aafc5 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerAssetSetServiceGrpcTransport(CustomerAssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/client.pyi index cc503485a..8d599e3fc 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerClientLinkServiceTransport class CustomerClientLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerClientLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerClientLinkServiceTransport]: ... class CustomerClientLinkServiceClient(metaclass=CustomerClientLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CustomerClientLinkServiceClient(metaclass=CustomerClientLinkServiceClientM @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_client_link_path( customer_id: str, client_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_client_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_client_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerClientLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerClientLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_client_link( self, - request: Optional[ - Union[customer_client_link_service.MutateCustomerClientLinkRequest, dict] - ] = None, + request: customer_client_link_service.MutateCustomerClientLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_client_link_service.CustomerClientLinkOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_client_link_service.CustomerClientLinkOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_client_link_service.MutateCustomerClientLinkResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/transports/base.pyi index 6c112d960..23242173c 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerClientLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerClientLinkServiceTransport(abc.ABC): self, ) -> Callable[ [customer_client_link_service.MutateCustomerClientLinkRequest], - Union[ - customer_client_link_service.MutateCustomerClientLinkResponse, - Awaitable[customer_client_link_service.MutateCustomerClientLinkResponse], - ], + customer_client_link_service.MutateCustomerClientLinkResponse | Awaitable[customer_client_link_service.MutateCustomerClientLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/transports/grpc.pyi index 7cb502199..d797dc4bf 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_client_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerClientLinkServiceGrpcTransport(CustomerClientLinkServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/client.pyi index a9c19748e..5f3407bf6 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerConversionGoalServiceTransport class CustomerConversionGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerConversionGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerConversionGoalServiceTransport]: ... class CustomerConversionGoalServiceClient( metaclass=CustomerConversionGoalServiceClientMeta @@ -36,51 +36,42 @@ class CustomerConversionGoalServiceClient( customer_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerConversionGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerConversionGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_conversion_goals( self, - request: Optional[ - Union[ - customer_conversion_goal_service.MutateCustomerConversionGoalsRequest, - dict, - ] - ] = None, + request: customer_conversion_goal_service.MutateCustomerConversionGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - customer_conversion_goal_service.CustomerConversionGoalOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_conversion_goal_service.CustomerConversionGoalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_conversion_goal_service.MutateCustomerConversionGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/transports/base.pyi index 39086a5be..db6667059 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerConversionGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerConversionGoalServiceTransport(abc.ABC): self, ) -> Callable[ [customer_conversion_goal_service.MutateCustomerConversionGoalsRequest], - Union[ - customer_conversion_goal_service.MutateCustomerConversionGoalsResponse, - Awaitable[ - customer_conversion_goal_service.MutateCustomerConversionGoalsResponse - ], - ], + customer_conversion_goal_service.MutateCustomerConversionGoalsResponse | Awaitable[customer_conversion_goal_service.MutateCustomerConversionGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/transports/grpc.pyi index f32968d0d..fc617eab9 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_conversion_goal_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CustomerConversionGoalServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/client.pyi index bab43654a..965e83665 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerCustomizerServiceTransport class CustomerCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerCustomizerServiceTransport]: ... class CustomerCustomizerServiceClient(metaclass=CustomerCustomizerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,52 +34,48 @@ class CustomerCustomizerServiceClient(metaclass=CustomerCustomizerServiceClientM customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customer_customizer_path(path: str) -> Dict[str, str]: ... + def parse_customer_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerCustomizerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_customizers( self, - request: Optional[ - Union[customer_customizer_service.MutateCustomerCustomizersRequest, dict] - ] = None, + request: customer_customizer_service.MutateCustomerCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_customizer_service.CustomerCustomizerOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_customizer_service.CustomerCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_customizer_service.MutateCustomerCustomizersResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/transports/base.pyi index de440374c..2fefaf3a1 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerCustomizerServiceTransport(abc.ABC): self, ) -> Callable[ [customer_customizer_service.MutateCustomerCustomizersRequest], - Union[ - customer_customizer_service.MutateCustomerCustomizersResponse, - Awaitable[customer_customizer_service.MutateCustomerCustomizersResponse], - ], + customer_customizer_service.MutateCustomerCustomizersResponse | Awaitable[customer_customizer_service.MutateCustomerCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/transports/grpc.pyi index 64dc1e128..248f79caa 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_customizer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerCustomizerServiceGrpcTransport(CustomerCustomizerServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/client.pyi index d50317e63..4fbe5a907 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerExtensionSettingServiceTransport class CustomerExtensionSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerExtensionSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerExtensionSettingServiceTransport]: ... class CustomerExtensionSettingServiceClient( metaclass=CustomerExtensionSettingServiceClientMeta @@ -36,57 +36,46 @@ class CustomerExtensionSettingServiceClient( customer_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_customer_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerExtensionSettingServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerExtensionSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_extension_settings( self, - request: Optional[ - Union[ - customer_extension_setting_service.MutateCustomerExtensionSettingsRequest, - dict, - ] - ] = None, + request: customer_extension_setting_service.MutateCustomerExtensionSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - customer_extension_setting_service.CustomerExtensionSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_extension_setting_service.CustomerExtensionSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_extension_setting_service.MutateCustomerExtensionSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/transports/base.pyi index a0a2f6009..d5d783262 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerExtensionSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerExtensionSettingServiceTransport(abc.ABC): self, ) -> Callable[ [customer_extension_setting_service.MutateCustomerExtensionSettingsRequest], - Union[ - customer_extension_setting_service.MutateCustomerExtensionSettingsResponse, - Awaitable[ - customer_extension_setting_service.MutateCustomerExtensionSettingsResponse - ], - ], + customer_extension_setting_service.MutateCustomerExtensionSettingsResponse | Awaitable[customer_extension_setting_service.MutateCustomerExtensionSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/transports/grpc.pyi index 84bcc3ded..5e4d78404 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_extension_setting_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CustomerExtensionSettingServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_feed_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_feed_service/client.pyi index a91e1a61b..182d91ed4 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_feed_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerFeedServiceTransport class CustomerFeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerFeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerFeedServiceTransport]: ... class CustomerFeedServiceClient(metaclass=CustomerFeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,50 +32,46 @@ class CustomerFeedServiceClient(metaclass=CustomerFeedServiceClientMeta): @staticmethod def customer_feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_customer_feed_path(path: str) -> Dict[str, str]: ... + def parse_customer_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerFeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerFeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_feeds( self, - request: Optional[ - Union[customer_feed_service.MutateCustomerFeedsRequest, dict] - ] = None, + request: customer_feed_service.MutateCustomerFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_feed_service.CustomerFeedOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_feed_service.CustomerFeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_feed_service.MutateCustomerFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_feed_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_feed_service/transports/base.pyi index 38a82e6f1..234e2a2e9 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerFeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerFeedServiceTransport(abc.ABC): self, ) -> Callable[ [customer_feed_service.MutateCustomerFeedsRequest], - Union[ - customer_feed_service.MutateCustomerFeedsResponse, - Awaitable[customer_feed_service.MutateCustomerFeedsResponse], - ], + customer_feed_service.MutateCustomerFeedsResponse | Awaitable[customer_feed_service.MutateCustomerFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_feed_service/transports/grpc.pyi index a23fddba1..6f9abc893 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerFeedServiceGrpcTransport(CustomerFeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_label_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_label_service/client.pyi index 6b1219c08..e071213ec 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_label_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerLabelServiceTransport class CustomerLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerLabelServiceTransport]: ... class CustomerLabelServiceClient(metaclass=CustomerLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class CustomerLabelServiceClient(metaclass=CustomerLabelServiceClientMeta): @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_customer_label_path(path: str) -> Dict[str, str]: ... + def parse_customer_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_labels( self, - request: Optional[ - Union[customer_label_service.MutateCustomerLabelsRequest, dict] - ] = None, + request: customer_label_service.MutateCustomerLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_label_service.CustomerLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_label_service.CustomerLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_label_service.MutateCustomerLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_label_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_label_service/transports/base.pyi index 6445b78b0..6cd9ebf0d 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerLabelServiceTransport(abc.ABC): self, ) -> Callable[ [customer_label_service.MutateCustomerLabelsRequest], - Union[ - customer_label_service.MutateCustomerLabelsResponse, - Awaitable[customer_label_service.MutateCustomerLabelsResponse], - ], + customer_label_service.MutateCustomerLabelsResponse | Awaitable[customer_label_service.MutateCustomerLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_label_service/transports/grpc.pyi index ee96cb835..d0df3b5cf 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerLabelServiceGrpcTransport(CustomerLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/client.pyi index 131e22ad9..704996304 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerManagerLinkServiceTransport class CustomerManagerLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerManagerLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerManagerLinkServiceTransport]: ... class CustomerManagerLinkServiceClient(metaclass=CustomerManagerLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,65 +32,59 @@ class CustomerManagerLinkServiceClient(metaclass=CustomerManagerLinkServiceClien @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_manager_link_path( customer_id: str, manager_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_manager_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_manager_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerManagerLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerManagerLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_manager_link( self, - request: Optional[ - Union[customer_manager_link_service.MutateCustomerManagerLinkRequest, dict] - ] = None, + request: customer_manager_link_service.MutateCustomerManagerLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_manager_link_service.CustomerManagerLinkOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_manager_link_service.CustomerManagerLinkOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_manager_link_service.MutateCustomerManagerLinkResponse: ... def move_manager_link( self, - request: Optional[ - Union[customer_manager_link_service.MoveManagerLinkRequest, dict] - ] = None, + request: customer_manager_link_service.MoveManagerLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - previous_customer_manager_link: Optional[str] = None, - new_manager: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + previous_customer_manager_link: str | None = None, + new_manager: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_manager_link_service.MoveManagerLinkResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/transports/base.pyi index 733f4f621..f2dd8bf16 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerManagerLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class CustomerManagerLinkServiceTransport(abc.ABC): self, ) -> Callable[ [customer_manager_link_service.MutateCustomerManagerLinkRequest], - Union[ - customer_manager_link_service.MutateCustomerManagerLinkResponse, - Awaitable[customer_manager_link_service.MutateCustomerManagerLinkResponse], - ], + customer_manager_link_service.MutateCustomerManagerLinkResponse | Awaitable[customer_manager_link_service.MutateCustomerManagerLinkResponse], ]: ... @property def move_manager_link( self, ) -> Callable[ [customer_manager_link_service.MoveManagerLinkRequest], - Union[ - customer_manager_link_service.MoveManagerLinkResponse, - Awaitable[customer_manager_link_service.MoveManagerLinkResponse], - ], + customer_manager_link_service.MoveManagerLinkResponse | Awaitable[customer_manager_link_service.MoveManagerLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/transports/grpc.pyi index 082c1939d..9b44fe0dc 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_manager_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerManagerLinkServiceGrpcTransport(CustomerManagerLinkServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/client.pyi index d164e1bde..13c150001 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerNegativeCriterionServiceTransport class CustomerNegativeCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerNegativeCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerNegativeCriterionServiceTransport]: ... class CustomerNegativeCriterionServiceClient( metaclass=CustomerNegativeCriterionServiceClientMeta @@ -36,53 +36,42 @@ class CustomerNegativeCriterionServiceClient( customer_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: ... + def parse_customer_negative_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerNegativeCriterionServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerNegativeCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_negative_criteria( self, - request: Optional[ - Union[ - customer_negative_criterion_service.MutateCustomerNegativeCriteriaRequest, - dict, - ] - ] = None, + request: customer_negative_criterion_service.MutateCustomerNegativeCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - customer_negative_criterion_service.CustomerNegativeCriterionOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_negative_criterion_service.CustomerNegativeCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/transports/base.pyi index 1e43aec72..3cd94e7e6 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerNegativeCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerNegativeCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [customer_negative_criterion_service.MutateCustomerNegativeCriteriaRequest], - Union[ - customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse, - Awaitable[ - customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse - ], - ], + customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse | Awaitable[customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/transports/grpc.pyi index a75f149e3..e8de2327d 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_negative_criterion_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CustomerNegativeCriterionServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_service/client.pyi index dc7a49bd7..0e9ce93ad 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import CustomerServiceTransport class CustomerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerServiceTransport]: ... class CustomerServiceClient(metaclass=CustomerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,68 +33,64 @@ class CustomerServiceClient(metaclass=CustomerServiceClientMeta): @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer( self, - request: Optional[Union[customer_service.MutateCustomerRequest, dict]] = None, + request: customer_service.MutateCustomerRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[customer_service.CustomerOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_service.CustomerOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_service.MutateCustomerResponse: ... def list_accessible_customers( self, - request: Optional[ - Union[customer_service.ListAccessibleCustomersRequest, dict] - ] = None, + request: customer_service.ListAccessibleCustomersRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_service.ListAccessibleCustomersResponse: ... def create_customer_client( self, - request: Optional[ - Union[customer_service.CreateCustomerClientRequest, dict] - ] = None, + request: customer_service.CreateCustomerClientRequest | dict | None = None, *, - customer_id: Optional[str] = None, - customer_client: Optional[customer.Customer] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + customer_client: customer.Customer | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_service.CreateCustomerClientResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_service/transports/base.pyi index 9500ba401..532a4b76a 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,28 +28,19 @@ class CustomerServiceTransport(abc.ABC): self, ) -> Callable[ [customer_service.MutateCustomerRequest], - Union[ - customer_service.MutateCustomerResponse, - Awaitable[customer_service.MutateCustomerResponse], - ], + customer_service.MutateCustomerResponse | Awaitable[customer_service.MutateCustomerResponse], ]: ... @property def list_accessible_customers( self, ) -> Callable[ [customer_service.ListAccessibleCustomersRequest], - Union[ - customer_service.ListAccessibleCustomersResponse, - Awaitable[customer_service.ListAccessibleCustomersResponse], - ], + customer_service.ListAccessibleCustomersResponse | Awaitable[customer_service.ListAccessibleCustomersResponse], ]: ... @property def create_customer_client( self, ) -> Callable[ [customer_service.CreateCustomerClientRequest], - Union[ - customer_service.CreateCustomerClientResponse, - Awaitable[customer_service.CreateCustomerClientResponse], - ], + customer_service.CreateCustomerClientResponse | Awaitable[customer_service.CreateCustomerClientResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_service/transports/grpc.pyi index 283bd3e74..94c19fb18 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerServiceGrpcTransport(CustomerServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi index 7b47302cf..0f65ff9bb 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import CustomerSkAdNetworkConversionValueSchemaServiceTran class CustomerSkAdNetworkConversionValueSchemaServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerSkAdNetworkConversionValueSchemaServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerSkAdNetworkConversionValueSchemaServiceTransport]: ... class CustomerSkAdNetworkConversionValueSchemaServiceClient( metaclass=CustomerSkAdNetworkConversionValueSchemaServiceClientMeta @@ -40,49 +40,42 @@ class CustomerSkAdNetworkConversionValueSchemaServiceClient( @staticmethod def parse_customer_sk_ad_network_conversion_value_schema_path( path: str, - ) -> Dict[str, str]: ... + ) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerSkAdNetworkConversionValueSchemaServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerSkAdNetworkConversionValueSchemaServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_sk_ad_network_conversion_value_schema( self, - request: Optional[ - Union[ - customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaRequest, - dict, - ] - ] = None, + request: customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse ): ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi index f7d1813e5..aa4b9ee76 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi @@ -16,12 +16,12 @@ class CustomerSkAdNetworkConversionValueSchemaServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class CustomerSkAdNetworkConversionValueSchemaServiceTransport(abc.ABC): [ customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaRequest ], - Union[ - customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse, - Awaitable[ - customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse - ], - ], + customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse | Awaitable[customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi index 76c4e9bc4..17bd8fb72 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class CustomerSkAdNetworkConversionValueSchemaServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/client.pyi index df0767835..6819c3a90 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import CustomerUserAccessInvitationServiceTransport class CustomerUserAccessInvitationServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerUserAccessInvitationServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerUserAccessInvitationServiceTransport]: ... class CustomerUserAccessInvitationServiceClient( metaclass=CustomerUserAccessInvitationServiceClientMeta @@ -38,53 +38,44 @@ class CustomerUserAccessInvitationServiceClient( customer_id: str, invitation_id: str ) -> str: ... @staticmethod - def parse_customer_user_access_invitation_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_invitation_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerUserAccessInvitationServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerUserAccessInvitationServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_user_access_invitation( self, - request: Optional[ - Union[ - customer_user_access_invitation_service.MutateCustomerUserAccessInvitationRequest, - dict, - ] - ] = None, + request: customer_user_access_invitation_service.MutateCustomerUserAccessInvitationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_user_access_invitation_service.CustomerUserAccessInvitationOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_user_access_invitation_service.CustomerUserAccessInvitationOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse ): ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/transports/base.pyi index d6e590f7e..f9efe0d83 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/transports/base.pyi @@ -16,12 +16,12 @@ class CustomerUserAccessInvitationServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class CustomerUserAccessInvitationServiceTransport(abc.ABC): [ customer_user_access_invitation_service.MutateCustomerUserAccessInvitationRequest ], - Union[ - customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse, - Awaitable[ - customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse - ], - ], + customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse | Awaitable[customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/transports/grpc.pyi index 44e48255d..71322ff16 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_user_access_invitation_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class CustomerUserAccessInvitationServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/client.pyi index 6aecfb12b..3ce280d29 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerUserAccessServiceTransport class CustomerUserAccessServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerUserAccessServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerUserAccessServiceTransport]: ... class CustomerUserAccessServiceClient(metaclass=CustomerUserAccessServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CustomerUserAccessServiceClient(metaclass=CustomerUserAccessServiceClientM @staticmethod def customer_user_access_path(customer_id: str, user_id: str) -> str: ... @staticmethod - def parse_customer_user_access_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerUserAccessServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerUserAccessServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_user_access( self, - request: Optional[ - Union[customer_user_access_service.MutateCustomerUserAccessRequest, dict] - ] = None, + request: customer_user_access_service.MutateCustomerUserAccessRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_user_access_service.CustomerUserAccessOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_user_access_service.CustomerUserAccessOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_user_access_service.MutateCustomerUserAccessResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/transports/base.pyi index 00d68401a..cab8a1a5d 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerUserAccessServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerUserAccessServiceTransport(abc.ABC): self, ) -> Callable[ [customer_user_access_service.MutateCustomerUserAccessRequest], - Union[ - customer_user_access_service.MutateCustomerUserAccessResponse, - Awaitable[customer_user_access_service.MutateCustomerUserAccessResponse], - ], + customer_user_access_service.MutateCustomerUserAccessResponse | Awaitable[customer_user_access_service.MutateCustomerUserAccessResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/transports/grpc.pyi index ea102163f..904d20c4d 100644 --- a/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customer_user_access_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerUserAccessServiceGrpcTransport(CustomerUserAccessServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/client.pyi index de1b6a149..00c135183 100644 --- a/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomizerAttributeServiceTransport class CustomizerAttributeServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomizerAttributeServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomizerAttributeServiceTransport]: ... class CustomizerAttributeServiceClient(metaclass=CustomizerAttributeServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,46 +34,42 @@ class CustomizerAttributeServiceClient(metaclass=CustomizerAttributeServiceClien customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomizerAttributeServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomizerAttributeServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customizer_attributes( self, - request: Optional[ - Union[customizer_attribute_service.MutateCustomizerAttributesRequest, dict] - ] = None, + request: customizer_attribute_service.MutateCustomizerAttributesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customizer_attribute_service.CustomizerAttributeOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customizer_attribute_service.CustomizerAttributeOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customizer_attribute_service.MutateCustomizerAttributesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/transports/base.pyi index fa9d8ed90..f9be5c187 100644 --- a/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomizerAttributeServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomizerAttributeServiceTransport(abc.ABC): self, ) -> Callable[ [customizer_attribute_service.MutateCustomizerAttributesRequest], - Union[ - customizer_attribute_service.MutateCustomizerAttributesResponse, - Awaitable[customizer_attribute_service.MutateCustomizerAttributesResponse], - ], + customizer_attribute_service.MutateCustomizerAttributesResponse | Awaitable[customizer_attribute_service.MutateCustomizerAttributesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/transports/grpc.pyi index 2a2333128..405d52d6b 100644 --- a/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/customizer_attribute_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomizerAttributeServiceGrpcTransport(CustomizerAttributeServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/client.pyi index b4fae56d2..4102f0043 100644 --- a/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ExperimentArmServiceTransport class ExperimentArmServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ExperimentArmServiceTransport]: ... + cls, label: str | None = None + ) -> type[ExperimentArmServiceTransport]: ... class ExperimentArmServiceClient(metaclass=ExperimentArmServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class ExperimentArmServiceClient(metaclass=ExperimentArmServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_arm_path( customer_id: str, trial_id: str, trial_arm_id: str ) -> str: ... @staticmethod - def parse_experiment_arm_path(path: str) -> Dict[str, str]: ... + def parse_experiment_arm_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ExperimentArmServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ExperimentArmServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_experiment_arms( self, - request: Optional[ - Union[experiment_arm_service.MutateExperimentArmsRequest, dict] - ] = None, + request: experiment_arm_service.MutateExperimentArmsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[experiment_arm_service.ExperimentArmOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[experiment_arm_service.ExperimentArmOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> experiment_arm_service.MutateExperimentArmsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/transports/base.pyi index 2b287cad3..16344087d 100644 --- a/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/transports/base.pyi @@ -14,12 +14,12 @@ class ExperimentArmServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ExperimentArmServiceTransport(abc.ABC): self, ) -> Callable[ [experiment_arm_service.MutateExperimentArmsRequest], - Union[ - experiment_arm_service.MutateExperimentArmsResponse, - Awaitable[experiment_arm_service.MutateExperimentArmsResponse], - ], + experiment_arm_service.MutateExperimentArmsResponse | Awaitable[experiment_arm_service.MutateExperimentArmsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/transports/grpc.pyi index 2ea7dd3f1..11b1b5cb8 100644 --- a/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/experiment_arm_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ExperimentArmServiceGrpcTransport(ExperimentArmServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/experiment_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/experiment_service/client.pyi index 3afef8cbf..9e0d1f00b 100644 --- a/google-stubs/ads/googleads/v13/services/services/experiment_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/experiment_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import ExperimentServiceTransport class ExperimentServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ExperimentServiceTransport]: ... + cls, label: str | None = None + ) -> type[ExperimentServiceTransport]: ... class ExperimentServiceClient(metaclass=ExperimentServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,110 +34,96 @@ class ExperimentServiceClient(metaclass=ExperimentServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ExperimentServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ExperimentServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_experiments( self, - request: Optional[ - Union[experiment_service.MutateExperimentsRequest, dict] - ] = None, + request: experiment_service.MutateExperimentsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[experiment_service.ExperimentOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[experiment_service.ExperimentOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> experiment_service.MutateExperimentsResponse: ... def end_experiment( self, - request: Optional[Union[experiment_service.EndExperimentRequest, dict]] = None, + request: experiment_service.EndExperimentRequest | dict | None = None, *, - experiment: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + experiment: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> None: ... def list_experiment_async_errors( self, - request: Optional[ - Union[experiment_service.ListExperimentAsyncErrorsRequest, dict] - ] = None, + request: experiment_service.ListExperimentAsyncErrorsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.ListExperimentAsyncErrorsPager: ... def graduate_experiment( self, - request: Optional[ - Union[experiment_service.GraduateExperimentRequest, dict] - ] = None, + request: experiment_service.GraduateExperimentRequest | dict | None = None, *, - experiment: Optional[str] = None, - campaign_budget_mappings: Optional[ - MutableSequence[experiment_service.CampaignBudgetMapping] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + experiment: str | None = None, + campaign_budget_mappings: MutableSequence[experiment_service.CampaignBudgetMapping] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> None: ... def schedule_experiment( self, - request: Optional[ - Union[experiment_service.ScheduleExperimentRequest, dict] - ] = None, + request: experiment_service.ScheduleExperimentRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... def promote_experiment( self, - request: Optional[ - Union[experiment_service.PromoteExperimentRequest, dict] - ] = None, + request: experiment_service.PromoteExperimentRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... diff --git a/google-stubs/ads/googleads/v13/services/services/experiment_service/pagers.pyi b/google-stubs/ads/googleads/v13/services/services/experiment_service/pagers.pyi index d50ca01d2..34ee1a3e1 100644 --- a/google-stubs/ads/googleads/v13/services/services/experiment_service/pagers.pyi +++ b/google-stubs/ads/googleads/v13/services/services/experiment_service/pagers.pyi @@ -12,7 +12,7 @@ class ListExperimentAsyncErrorsPager: method: Callable[..., experiment_service.ListExperimentAsyncErrorsResponse], request: experiment_service.ListExperimentAsyncErrorsRequest, response: experiment_service.ListExperimentAsyncErrorsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/experiment_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/experiment_service/transports/base.pyi index a1b2f77b0..37b72a717 100644 --- a/google-stubs/ads/googleads/v13/services/services/experiment_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/experiment_service/transports/base.pyi @@ -16,12 +16,12 @@ class ExperimentServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,46 +32,40 @@ class ExperimentServiceTransport(abc.ABC): self, ) -> Callable[ [experiment_service.MutateExperimentsRequest], - Union[ - experiment_service.MutateExperimentsResponse, - Awaitable[experiment_service.MutateExperimentsResponse], - ], + experiment_service.MutateExperimentsResponse | Awaitable[experiment_service.MutateExperimentsResponse], ]: ... @property def end_experiment( self, ) -> Callable[ [experiment_service.EndExperimentRequest], - Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]], + empty_pb2.Empty | Awaitable[empty_pb2.Empty], ]: ... @property def list_experiment_async_errors( self, ) -> Callable[ [experiment_service.ListExperimentAsyncErrorsRequest], - Union[ - experiment_service.ListExperimentAsyncErrorsResponse, - Awaitable[experiment_service.ListExperimentAsyncErrorsResponse], - ], + experiment_service.ListExperimentAsyncErrorsResponse | Awaitable[experiment_service.ListExperimentAsyncErrorsResponse], ]: ... @property def graduate_experiment( self, ) -> Callable[ [experiment_service.GraduateExperimentRequest], - Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]], + empty_pb2.Empty | Awaitable[empty_pb2.Empty], ]: ... @property def schedule_experiment( self, ) -> Callable[ [experiment_service.ScheduleExperimentRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... @property def promote_experiment( self, ) -> Callable[ [experiment_service.PromoteExperimentRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/experiment_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/experiment_service/transports/grpc.pyi index 28e4f2a52..fdc30bef5 100644 --- a/google-stubs/ads/googleads/v13/services/services/experiment_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/experiment_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ExperimentServiceGrpcTransport(ExperimentServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/client.pyi index be154f45d..39a3ce66c 100644 --- a/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ExtensionFeedItemServiceTransport class ExtensionFeedItemServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ExtensionFeedItemServiceTransport]: ... + cls, label: str | None = None + ) -> type[ExtensionFeedItemServiceTransport]: ... class ExtensionFeedItemServiceClient(metaclass=ExtensionFeedItemServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,62 +32,58 @@ class ExtensionFeedItemServiceClient(metaclass=ExtensionFeedItemServiceClientMet @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ExtensionFeedItemServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ExtensionFeedItemServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_extension_feed_items( self, - request: Optional[ - Union[extension_feed_item_service.MutateExtensionFeedItemsRequest, dict] - ] = None, + request: extension_feed_item_service.MutateExtensionFeedItemsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[extension_feed_item_service.ExtensionFeedItemOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[extension_feed_item_service.ExtensionFeedItemOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> extension_feed_item_service.MutateExtensionFeedItemsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/transports/base.pyi index 782faff73..0a779e7df 100644 --- a/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/transports/base.pyi @@ -14,12 +14,12 @@ class ExtensionFeedItemServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ExtensionFeedItemServiceTransport(abc.ABC): self, ) -> Callable[ [extension_feed_item_service.MutateExtensionFeedItemsRequest], - Union[ - extension_feed_item_service.MutateExtensionFeedItemsResponse, - Awaitable[extension_feed_item_service.MutateExtensionFeedItemsResponse], - ], + extension_feed_item_service.MutateExtensionFeedItemsResponse | Awaitable[extension_feed_item_service.MutateExtensionFeedItemsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/transports/grpc.pyi index efdf01fb5..d6467cc15 100644 --- a/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/extension_feed_item_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ExtensionFeedItemServiceGrpcTransport(ExtensionFeedItemServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_service/client.pyi index 6882e6bd3..1381acb8b 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemServiceTransport class FeedItemServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemServiceTransport]: ... class FeedItemServiceClient(metaclass=FeedItemServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,48 +32,46 @@ class FeedItemServiceClient(metaclass=FeedItemServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_items( self, - request: Optional[Union[feed_item_service.MutateFeedItemsRequest, dict]] = None, + request: feed_item_service.MutateFeedItemsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_service.FeedItemOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_service.FeedItemOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_service.MutateFeedItemsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_service/transports/base.pyi index 64c4aaa95..54d209654 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_service.MutateFeedItemsRequest], - Union[ - feed_item_service.MutateFeedItemsResponse, - Awaitable[feed_item_service.MutateFeedItemsResponse], - ], + feed_item_service.MutateFeedItemsResponse | Awaitable[feed_item_service.MutateFeedItemsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_service/transports/grpc.pyi index 110073d7c..0fd3cda04 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemServiceGrpcTransport(FeedItemServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/client.pyi index 85bbfd511..0278189db 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemSetLinkServiceTransport class FeedItemSetLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemSetLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemSetLinkServiceTransport]: ... class FeedItemSetLinkServiceClient(metaclass=FeedItemSetLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class FeedItemSetLinkServiceClient(metaclass=FeedItemSetLinkServiceClientMeta): @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_link_path( customer_id: str, feed_id: str, feed_item_set_id: str, feed_item_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemSetLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemSetLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_item_set_links( self, - request: Optional[ - Union[feed_item_set_link_service.MutateFeedItemSetLinksRequest, dict] - ] = None, + request: feed_item_set_link_service.MutateFeedItemSetLinksRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_set_link_service.FeedItemSetLinkOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_set_link_service.FeedItemSetLinkOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_set_link_service.MutateFeedItemSetLinksResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/transports/base.pyi index e95af0f2f..1c5151f92 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemSetLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemSetLinkServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_set_link_service.MutateFeedItemSetLinksRequest], - Union[ - feed_item_set_link_service.MutateFeedItemSetLinksResponse, - Awaitable[feed_item_set_link_service.MutateFeedItemSetLinksResponse], - ], + feed_item_set_link_service.MutateFeedItemSetLinksResponse | Awaitable[feed_item_set_link_service.MutateFeedItemSetLinksResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/transports/grpc.pyi index f2655df28..ceb92253a 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_set_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemSetLinkServiceGrpcTransport(FeedItemSetLinkServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/client.pyi index b21765fb4..a1ef75dd0 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemSetServiceTransport class FeedItemSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemSetServiceTransport]: ... class FeedItemSetServiceClient(metaclass=FeedItemSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class FeedItemSetServiceClient(metaclass=FeedItemSetServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_item_sets( self, - request: Optional[ - Union[feed_item_set_service.MutateFeedItemSetsRequest, dict] - ] = None, + request: feed_item_set_service.MutateFeedItemSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_set_service.FeedItemSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_set_service.FeedItemSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_set_service.MutateFeedItemSetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/transports/base.pyi index 3106b96f6..596bed7e2 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemSetServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_set_service.MutateFeedItemSetsRequest], - Union[ - feed_item_set_service.MutateFeedItemSetsResponse, - Awaitable[feed_item_set_service.MutateFeedItemSetsResponse], - ], + feed_item_set_service.MutateFeedItemSetsResponse | Awaitable[feed_item_set_service.MutateFeedItemSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/transports/grpc.pyi index 7a935d9bb..7771f559e 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemSetServiceGrpcTransport(FeedItemSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/client.pyi index 470c380fc..4b1dec9a9 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemTargetServiceTransport class FeedItemTargetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemTargetServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemTargetServiceTransport]: ... class FeedItemTargetServiceClient(metaclass=FeedItemTargetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,15 +32,15 @@ class FeedItemTargetServiceClient(metaclass=FeedItemTargetServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_target_path( customer_id: str, @@ -50,50 +50,46 @@ class FeedItemTargetServiceClient(metaclass=FeedItemTargetServiceClientMeta): feed_item_target_id: str, ) -> str: ... @staticmethod - def parse_feed_item_target_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_target_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemTargetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemTargetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_item_targets( self, - request: Optional[ - Union[feed_item_target_service.MutateFeedItemTargetsRequest, dict] - ] = None, + request: feed_item_target_service.MutateFeedItemTargetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_target_service.FeedItemTargetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_target_service.FeedItemTargetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_target_service.MutateFeedItemTargetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/transports/base.pyi index ff2f0d249..5d9fdf7f2 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemTargetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemTargetServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_target_service.MutateFeedItemTargetsRequest], - Union[ - feed_item_target_service.MutateFeedItemTargetsResponse, - Awaitable[feed_item_target_service.MutateFeedItemTargetsResponse], - ], + feed_item_target_service.MutateFeedItemTargetsResponse | Awaitable[feed_item_target_service.MutateFeedItemTargetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/transports/grpc.pyi index 1f4dee0b5..15f55e2c0 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_item_target_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemTargetServiceGrpcTransport(FeedItemTargetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/client.pyi index 843f9b536..6d66fe43a 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedMappingServiceTransport class FeedMappingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedMappingServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedMappingServiceTransport]: ... class FeedMappingServiceClient(metaclass=FeedMappingServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class FeedMappingServiceClient(metaclass=FeedMappingServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_mapping_path( customer_id: str, feed_id: str, feed_mapping_id: str ) -> str: ... @staticmethod - def parse_feed_mapping_path(path: str) -> Dict[str, str]: ... + def parse_feed_mapping_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedMappingServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedMappingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_mappings( self, - request: Optional[ - Union[feed_mapping_service.MutateFeedMappingsRequest, dict] - ] = None, + request: feed_mapping_service.MutateFeedMappingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_mapping_service.FeedMappingOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_mapping_service.FeedMappingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_mapping_service.MutateFeedMappingsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/transports/base.pyi index 333244267..9ce4b1af8 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedMappingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedMappingServiceTransport(abc.ABC): self, ) -> Callable[ [feed_mapping_service.MutateFeedMappingsRequest], - Union[ - feed_mapping_service.MutateFeedMappingsResponse, - Awaitable[feed_mapping_service.MutateFeedMappingsResponse], - ], + feed_mapping_service.MutateFeedMappingsResponse | Awaitable[feed_mapping_service.MutateFeedMappingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/transports/grpc.pyi index 76dcffe1c..b792c2133 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_mapping_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedMappingServiceGrpcTransport(FeedMappingServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/feed_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/feed_service/client.pyi index 383c1d9ff..7c425e1b7 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedServiceTransport class FeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedServiceTransport]: ... class FeedServiceClient(metaclass=FeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,42 +32,42 @@ class FeedServiceClient(metaclass=FeedServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feeds( self, - request: Optional[Union[feed_service.MutateFeedsRequest, dict]] = None, + request: feed_service.MutateFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[feed_service.FeedOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_service.FeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_service.MutateFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/feed_service/transports/base.pyi index 36021f189..8e024f832 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedServiceTransport(abc.ABC): self, ) -> Callable[ [feed_service.MutateFeedsRequest], - Union[ - feed_service.MutateFeedsResponse, - Awaitable[feed_service.MutateFeedsResponse], - ], + feed_service.MutateFeedsResponse | Awaitable[feed_service.MutateFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/feed_service/transports/grpc.pyi index f46d8ae0b..83fb57142 100644 --- a/google-stubs/ads/googleads/v13/services/services/feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedServiceGrpcTransport(FeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/client.pyi index 907a404ca..223d23546 100644 --- a/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import GeoTargetConstantServiceTransport class GeoTargetConstantServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[GeoTargetConstantServiceTransport]: ... + cls, label: str | None = None + ) -> type[GeoTargetConstantServiceTransport]: ... class GeoTargetConstantServiceClient(metaclass=GeoTargetConstantServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,42 +32,40 @@ class GeoTargetConstantServiceClient(metaclass=GeoTargetConstantServiceClientMet @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, GeoTargetConstantServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | GeoTargetConstantServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_geo_target_constants( self, - request: Optional[ - Union[geo_target_constant_service.SuggestGeoTargetConstantsRequest, dict] - ] = None, + request: geo_target_constant_service.SuggestGeoTargetConstantsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> geo_target_constant_service.SuggestGeoTargetConstantsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/transports/base.pyi index 2361fbb7a..c774e35e8 100644 --- a/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/transports/base.pyi @@ -14,12 +14,12 @@ class GeoTargetConstantServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class GeoTargetConstantServiceTransport(abc.ABC): self, ) -> Callable[ [geo_target_constant_service.SuggestGeoTargetConstantsRequest], - Union[ - geo_target_constant_service.SuggestGeoTargetConstantsResponse, - Awaitable[geo_target_constant_service.SuggestGeoTargetConstantsResponse], - ], + geo_target_constant_service.SuggestGeoTargetConstantsResponse | Awaitable[geo_target_constant_service.SuggestGeoTargetConstantsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/transports/grpc.pyi index c4139263d..9255cf59c 100644 --- a/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/geo_target_constant_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class GeoTargetConstantServiceGrpcTransport(GeoTargetConstantServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/client.pyi index 09a4c2315..28e88bd65 100644 --- a/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import GoogleAdsFieldServiceTransport class GoogleAdsFieldServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[GoogleAdsFieldServiceTransport]: ... + cls, label: str | None = None + ) -> type[GoogleAdsFieldServiceTransport]: ... class GoogleAdsFieldServiceClient(metaclass=GoogleAdsFieldServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,54 +34,50 @@ class GoogleAdsFieldServiceClient(metaclass=GoogleAdsFieldServiceClientMeta): @staticmethod def google_ads_field_path(google_ads_field: str) -> str: ... @staticmethod - def parse_google_ads_field_path(path: str) -> Dict[str, str]: ... + def parse_google_ads_field_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, GoogleAdsFieldServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | GoogleAdsFieldServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def get_google_ads_field( self, - request: Optional[ - Union[google_ads_field_service.GetGoogleAdsFieldRequest, dict] - ] = None, + request: google_ads_field_service.GetGoogleAdsFieldRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> google_ads_field.GoogleAdsField: ... def search_google_ads_fields( self, - request: Optional[ - Union[google_ads_field_service.SearchGoogleAdsFieldsRequest, dict] - ] = None, + request: google_ads_field_service.SearchGoogleAdsFieldsRequest | dict | None = None, *, - query: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + query: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.SearchGoogleAdsFieldsPager: ... diff --git a/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/pagers.pyi b/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/pagers.pyi index 38f91f480..c123bfbc1 100644 --- a/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/pagers.pyi +++ b/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/pagers.pyi @@ -13,7 +13,7 @@ class SearchGoogleAdsFieldsPager: method: Callable[..., google_ads_field_service.SearchGoogleAdsFieldsResponse], request: google_ads_field_service.SearchGoogleAdsFieldsRequest, response: google_ads_field_service.SearchGoogleAdsFieldsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/transports/base.pyi index f1a80975d..8b115f45b 100644 --- a/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/transports/base.pyi @@ -15,12 +15,12 @@ class GoogleAdsFieldServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -29,17 +29,12 @@ class GoogleAdsFieldServiceTransport(abc.ABC): self, ) -> Callable[ [google_ads_field_service.GetGoogleAdsFieldRequest], - Union[ - google_ads_field.GoogleAdsField, Awaitable[google_ads_field.GoogleAdsField] - ], + google_ads_field.GoogleAdsField | Awaitable[google_ads_field.GoogleAdsField], ]: ... @property def search_google_ads_fields( self, ) -> Callable[ [google_ads_field_service.SearchGoogleAdsFieldsRequest], - Union[ - google_ads_field_service.SearchGoogleAdsFieldsResponse, - Awaitable[google_ads_field_service.SearchGoogleAdsFieldsResponse], - ], + google_ads_field_service.SearchGoogleAdsFieldsResponse | Awaitable[google_ads_field_service.SearchGoogleAdsFieldsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/transports/grpc.pyi index 41658d8f7..825fb7605 100644 --- a/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/google_ads_field_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class GoogleAdsFieldServiceGrpcTransport(GoogleAdsFieldServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/google_ads_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/google_ads_service/client.pyi index fe466906c..a635744fc 100644 --- a/google-stubs/ads/googleads/v13/services/services/google_ads_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/google_ads_service/client.pyi @@ -24,8 +24,8 @@ from .transports.base import GoogleAdsServiceTransport class GoogleAdsServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[GoogleAdsServiceTransport]: ... + cls, label: str | None = None + ) -> type[GoogleAdsServiceTransport]: ... class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): DEFAULT_ENDPOINT: str @@ -44,33 +44,33 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): customer_id: str, bidding_strategy_id: str ) -> str: ... @staticmethod - def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_accessible_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def account_budget_path(customer_id: str, account_budget_id: str) -> str: ... @staticmethod - def parse_account_budget_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_path(path: str) -> dict[str, str]: ... @staticmethod def account_budget_proposal_path( customer_id: str, account_budget_proposal_id: str ) -> str: ... @staticmethod - def parse_account_budget_proposal_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_proposal_path(path: str) -> dict[str, str]: ... @staticmethod def account_link_path(customer_id: str, account_link_id: str) -> str: ... @staticmethod - def parse_account_link_path(path: str) -> Dict[str, str]: ... + def parse_account_link_path(path: str) -> dict[str, str]: ... @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_asset_combination_view_path( customer_id: str, @@ -80,49 +80,49 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): asset_combination_id_high: str, ) -> str: ... @staticmethod - def parse_ad_group_ad_asset_combination_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_asset_combination_view_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_asset_view_path( customer_id: str, ad_group_id: str, ad_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_ad_asset_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_asset_view_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_path( customer_id: str, ad_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_set_path( customer_id: str, ad_group_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_ad_group_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_audience_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_audience_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_audience_view_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_bid_modifier_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_customizer_path( customer_id: str, @@ -131,13 +131,13 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): customizer_attribute_id: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_simulation_path( customer_id: str, @@ -149,29 +149,29 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_simulation_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_customizer_path( customer_id: str, ad_group_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_extension_setting_path( customer_id: str, ad_group_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_feed_path(customer_id: str, ad_group_id: str, feed_id: str) -> str: ... @staticmethod - def parse_ad_group_feed_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_feed_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_simulation_path( customer_id: str, @@ -182,99 +182,99 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_ad_group_simulation_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def ad_parameter_path( customer_id: str, ad_group_id: str, criterion_id: str, parameter_index: str ) -> str: ... @staticmethod - def parse_ad_parameter_path(path: str) -> Dict[str, str]: ... + def parse_ad_parameter_path(path: str) -> dict[str, str]: ... @staticmethod def ad_schedule_view_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_schedule_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_schedule_view_path(path: str) -> dict[str, str]: ... @staticmethod def age_range_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_age_range_view_path(path: str) -> Dict[str, str]: ... + def parse_age_range_view_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_field_type_view_path(customer_id: str, field_type: str) -> str: ... @staticmethod - def parse_asset_field_type_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_field_type_view_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_asset_path( customer_id: str, asset_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_asset_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_listing_group_filter_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_listing_group_filter_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_listing_group_filter_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_product_group_view_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_product_group_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_product_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_signal_path( customer_id: str, asset_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_asset_group_signal_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_signal_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_asset_path( customer_id: str, asset_set_id: str, asset_id: str ) -> str: ... @staticmethod - def parse_asset_set_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_type_view_path(customer_id: str, asset_set_type: str) -> str: ... @staticmethod - def parse_asset_set_type_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_type_view_path(path: str) -> dict[str, str]: ... @staticmethod def audience_path(customer_id: str, audience_id: str) -> str: ... @staticmethod - def parse_audience_path(path: str) -> Dict[str, str]: ... + def parse_audience_path(path: str) -> dict[str, str]: ... @staticmethod def batch_job_path(customer_id: str, batch_job_id: str) -> str: ... @staticmethod - def parse_batch_job_path(path: str) -> Dict[str, str]: ... + def parse_batch_job_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_data_exclusion_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: ... + def parse_bidding_data_exclusion_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_seasonality_adjustment_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: ... + def parse_bidding_seasonality_adjustment_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_simulation_path( customer_id: str, @@ -285,59 +285,59 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_bidding_strategy_simulation_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ... @staticmethod - def parse_billing_setup_path(path: str) -> Dict[str, str]: ... + def parse_billing_setup_path(path: str) -> dict[str, str]: ... @staticmethod def call_view_path(customer_id: str, call_detail_id: str) -> str: ... @staticmethod - def parse_call_view_path(path: str) -> Dict[str, str]: ... + def parse_call_view_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_path( customer_id: str, campaign_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_campaign_asset_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_set_path( customer_id: str, campaign_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_audience_view_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_audience_view_path(path: str) -> Dict[str, str]: ... + def parse_campaign_audience_view_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_bid_modifier_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_campaign_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_conversion_goal_path( customer_id: str, campaign_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_criterion_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_simulation_path( customer_id: str, @@ -349,45 +349,45 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_campaign_criterion_simulation_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_customizer_path( customer_id: str, campaign_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_campaign_customizer_path(path: str) -> Dict[str, str]: ... + def parse_campaign_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_draft_path( customer_id: str, base_campaign_id: str, draft_id: str ) -> str: ... @staticmethod - def parse_campaign_draft_path(path: str) -> Dict[str, str]: ... + def parse_campaign_draft_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_extension_setting_path( customer_id: str, campaign_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_campaign_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_feed_path(customer_id: str, campaign_id: str, feed_id: str) -> str: ... @staticmethod - def parse_campaign_feed_path(path: str) -> Dict[str, str]: ... + def parse_campaign_feed_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_shared_set_path( customer_id: str, campaign_id: str, shared_set_id: str ) -> str: ... @staticmethod - def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_simulation_path( customer_id: str, @@ -398,181 +398,181 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_campaign_simulation_path(path: str) -> Dict[str, str]: ... + def parse_campaign_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def carrier_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_carrier_constant_path(path: str) -> Dict[str, str]: ... + def parse_carrier_constant_path(path: str) -> dict[str, str]: ... @staticmethod def change_event_path( customer_id: str, timestamp_micros: str, command_index: str, mutate_index: str ) -> str: ... @staticmethod - def parse_change_event_path(path: str) -> Dict[str, str]: ... + def parse_change_event_path(path: str) -> dict[str, str]: ... @staticmethod def change_status_path(customer_id: str, change_status_id: str) -> str: ... @staticmethod - def parse_change_status_path(path: str) -> Dict[str, str]: ... + def parse_change_status_path(path: str) -> dict[str, str]: ... @staticmethod def click_view_path(customer_id: str, date: str, gclid: str) -> str: ... @staticmethod - def parse_click_view_path(path: str) -> Dict[str, str]: ... + def parse_click_view_path(path: str) -> dict[str, str]: ... @staticmethod def combined_audience_path(customer_id: str, combined_audience_id: str) -> str: ... @staticmethod - def parse_combined_audience_path(path: str) -> Dict[str, str]: ... + def parse_combined_audience_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_custom_variable_path( customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_goal_campaign_config_path( customer_id: str, campaign_id: str ) -> str: ... @staticmethod - def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: ... + def parse_conversion_goal_campaign_config_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_path( customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_set_path( customer_id: str, conversion_value_rule_set_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_set_path(path: str) -> dict[str, str]: ... @staticmethod def currency_constant_path(code: str) -> str: ... @staticmethod - def parse_currency_constant_path(path: str) -> Dict[str, str]: ... + def parse_currency_constant_path(path: str) -> dict[str, str]: ... @staticmethod def custom_audience_path(customer_id: str, custom_audience_id: str) -> str: ... @staticmethod - def parse_custom_audience_path(path: str) -> Dict[str, str]: ... + def parse_custom_audience_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_path( customer_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_customer_asset_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_customer_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def customer_client_path(customer_id: str, client_customer_id: str) -> str: ... @staticmethod - def parse_customer_client_path(path: str) -> Dict[str, str]: ... + def parse_customer_client_path(path: str) -> dict[str, str]: ... @staticmethod def customer_client_link_path( customer_id: str, client_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_client_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_client_link_path(path: str) -> dict[str, str]: ... @staticmethod def customer_conversion_goal_path( customer_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_customizer_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customer_customizer_path(path: str) -> Dict[str, str]: ... + def parse_customer_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_extension_setting_path( customer_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_customer_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def customer_feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_customer_feed_path(path: str) -> Dict[str, str]: ... + def parse_customer_feed_path(path: str) -> dict[str, str]: ... @staticmethod def customer_label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_customer_label_path(path: str) -> Dict[str, str]: ... + def parse_customer_label_path(path: str) -> dict[str, str]: ... @staticmethod def customer_manager_link_path( customer_id: str, manager_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_manager_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_manager_link_path(path: str) -> dict[str, str]: ... @staticmethod def customer_negative_criterion_path( customer_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: ... + def parse_customer_negative_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def customer_user_access_path(customer_id: str, user_id: str) -> str: ... @staticmethod - def parse_customer_user_access_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_path(path: str) -> dict[str, str]: ... @staticmethod def customer_user_access_invitation_path( customer_id: str, invitation_id: str ) -> str: ... @staticmethod - def parse_customer_user_access_invitation_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_invitation_path(path: str) -> dict[str, str]: ... @staticmethod def custom_interest_path(customer_id: str, custom_interest_id: str) -> str: ... @staticmethod - def parse_custom_interest_path(path: str) -> Dict[str, str]: ... + def parse_custom_interest_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def detailed_demographic_path( customer_id: str, detailed_demographic_id: str ) -> str: ... @staticmethod - def parse_detailed_demographic_path(path: str) -> Dict[str, str]: ... + def parse_detailed_demographic_path(path: str) -> dict[str, str]: ... @staticmethod def detail_placement_view_path( customer_id: str, ad_group_id: str, base64_placement: str ) -> str: ... @staticmethod - def parse_detail_placement_view_path(path: str) -> Dict[str, str]: ... + def parse_detail_placement_view_path(path: str) -> dict[str, str]: ... @staticmethod def display_keyword_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_display_keyword_view_path(path: str) -> Dict[str, str]: ... + def parse_display_keyword_view_path(path: str) -> dict[str, str]: ... @staticmethod def distance_view_path( customer_id: str, placeholder_chain_id: str, distance_bucket: str ) -> str: ... @staticmethod - def parse_distance_view_path(path: str) -> Dict[str, str]: ... + def parse_distance_view_path(path: str) -> dict[str, str]: ... @staticmethod def domain_category_path( customer_id: str, campaign_id: str, base64_category: str, language_code: str ) -> str: ... @staticmethod - def parse_domain_category_path(path: str) -> Dict[str, str]: ... + def parse_domain_category_path(path: str) -> dict[str, str]: ... @staticmethod def dynamic_search_ads_search_term_view_path( customer_id: str, @@ -583,47 +583,47 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): page_url_fingerprint: str, ) -> str: ... @staticmethod - def parse_dynamic_search_ads_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_dynamic_search_ads_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def expanded_landing_page_view_path( customer_id: str, expanded_final_url_fingerprint: str ) -> str: ... @staticmethod - def parse_expanded_landing_page_view_path(path: str) -> Dict[str, str]: ... + def parse_expanded_landing_page_view_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_arm_path( customer_id: str, trial_id: str, trial_arm_id: str ) -> str: ... @staticmethod - def parse_experiment_arm_path(path: str) -> Dict[str, str]: ... + def parse_experiment_arm_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_link_path( customer_id: str, feed_id: str, feed_item_set_id: str, feed_item_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_link_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_target_path( customer_id: str, @@ -633,350 +633,342 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): feed_item_target_id: str, ) -> str: ... @staticmethod - def parse_feed_item_target_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_target_path(path: str) -> dict[str, str]: ... @staticmethod def feed_mapping_path( customer_id: str, feed_id: str, feed_mapping_id: str ) -> str: ... @staticmethod - def parse_feed_mapping_path(path: str) -> Dict[str, str]: ... + def parse_feed_mapping_path(path: str) -> dict[str, str]: ... @staticmethod def feed_placeholder_view_path(customer_id: str, placeholder_type: str) -> str: ... @staticmethod - def parse_feed_placeholder_view_path(path: str) -> Dict[str, str]: ... + def parse_feed_placeholder_view_path(path: str) -> dict[str, str]: ... @staticmethod def gender_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_gender_view_path(path: str) -> Dict[str, str]: ... + def parse_gender_view_path(path: str) -> dict[str, str]: ... @staticmethod def geographic_view_path( customer_id: str, country_criterion_id: str, location_type: str ) -> str: ... @staticmethod - def parse_geographic_view_path(path: str) -> Dict[str, str]: ... + def parse_geographic_view_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def group_placement_view_path( customer_id: str, ad_group_id: str, base64_placement: str ) -> str: ... @staticmethod - def parse_group_placement_view_path(path: str) -> Dict[str, str]: ... + def parse_group_placement_view_path(path: str) -> dict[str, str]: ... @staticmethod def hotel_group_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_hotel_group_view_path(path: str) -> Dict[str, str]: ... + def parse_hotel_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def hotel_performance_view_path(customer_id: str) -> str: ... @staticmethod - def parse_hotel_performance_view_path(path: str) -> Dict[str, str]: ... + def parse_hotel_performance_view_path(path: str) -> dict[str, str]: ... @staticmethod def hotel_reconciliation_path(customer_id: str, commission_id: str) -> str: ... @staticmethod - def parse_hotel_reconciliation_path(path: str) -> Dict[str, str]: ... + def parse_hotel_reconciliation_path(path: str) -> dict[str, str]: ... @staticmethod def income_range_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_income_range_view_path(path: str) -> Dict[str, str]: ... + def parse_income_range_view_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_path( customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_keyword_path( customer_id: str, keyword_plan_ad_group_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_keyword_path( customer_id: str, keyword_plan_campaign_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_theme_constant_path( express_category_id: str, express_sub_category_id: str ) -> str: ... @staticmethod - def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: ... + def parse_keyword_theme_constant_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_keyword_view_path(path: str) -> Dict[str, str]: ... + def parse_keyword_view_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def landing_page_view_path( customer_id: str, unexpanded_final_url_fingerprint: str ) -> str: ... @staticmethod - def parse_landing_page_view_path(path: str) -> Dict[str, str]: ... + def parse_landing_page_view_path(path: str) -> dict[str, str]: ... @staticmethod def language_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_language_constant_path(path: str) -> Dict[str, str]: ... + def parse_language_constant_path(path: str) -> dict[str, str]: ... @staticmethod def lead_form_submission_data_path( customer_id: str, lead_form_user_submission_id: str ) -> str: ... @staticmethod - def parse_lead_form_submission_data_path(path: str) -> Dict[str, str]: ... + def parse_lead_form_submission_data_path(path: str) -> dict[str, str]: ... @staticmethod def life_event_path(customer_id: str, life_event_id: str) -> str: ... @staticmethod - def parse_life_event_path(path: str) -> Dict[str, str]: ... + def parse_life_event_path(path: str) -> dict[str, str]: ... @staticmethod def location_view_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_location_view_path(path: str) -> Dict[str, str]: ... + def parse_location_view_path(path: str) -> dict[str, str]: ... @staticmethod def managed_placement_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_managed_placement_view_path(path: str) -> Dict[str, str]: ... + def parse_managed_placement_view_path(path: str) -> dict[str, str]: ... @staticmethod def media_file_path(customer_id: str, media_file_id: str) -> str: ... @staticmethod - def parse_media_file_path(path: str) -> Dict[str, str]: ... + def parse_media_file_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_app_category_constant_path(mobile_app_category_id: str) -> str: ... @staticmethod - def parse_mobile_app_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_app_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_device_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_mobile_device_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_device_constant_path(path: str) -> dict[str, str]: ... @staticmethod def offline_user_data_job_path( customer_id: str, offline_user_data_update_id: str ) -> str: ... @staticmethod - def parse_offline_user_data_job_path(path: str) -> Dict[str, str]: ... + def parse_offline_user_data_job_path(path: str) -> dict[str, str]: ... @staticmethod def operating_system_version_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_operating_system_version_constant_path(path: str) -> Dict[str, str]: ... + def parse_operating_system_version_constant_path(path: str) -> dict[str, str]: ... @staticmethod def paid_organic_search_term_view_path( customer_id: str, campaign_id: str, ad_group_id: str, base64_search_term: str ) -> str: ... @staticmethod - def parse_paid_organic_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_paid_organic_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def parental_status_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_parental_status_view_path(path: str) -> Dict[str, str]: ... + def parse_parental_status_view_path(path: str) -> dict[str, str]: ... @staticmethod def payments_account_path(customer_id: str, payments_account_id: str) -> str: ... @staticmethod - def parse_payments_account_path(path: str) -> Dict[str, str]: ... + def parse_payments_account_path(path: str) -> dict[str, str]: ... @staticmethod def per_store_view_path(customer_id: str, place_id: str) -> str: ... @staticmethod - def parse_per_store_view_path(path: str) -> Dict[str, str]: ... + def parse_per_store_view_path(path: str) -> dict[str, str]: ... @staticmethod def product_bidding_category_constant_path( country_code: str, level: str, id: str ) -> str: ... @staticmethod - def parse_product_bidding_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_product_bidding_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def product_group_view_path( customer_id: str, adgroup_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_product_group_view_path(path: str) -> Dict[str, str]: ... + def parse_product_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def product_link_path(customer_id: str, product_link_id: str) -> str: ... @staticmethod - def parse_product_link_path(path: str) -> Dict[str, str]: ... + def parse_product_link_path(path: str) -> dict[str, str]: ... @staticmethod def qualifying_question_path(qualifying_question_id: str) -> str: ... @staticmethod - def parse_qualifying_question_path(path: str) -> Dict[str, str]: ... + def parse_qualifying_question_path(path: str) -> dict[str, str]: ... @staticmethod def recommendation_path(customer_id: str, recommendation_id: str) -> str: ... @staticmethod - def parse_recommendation_path(path: str) -> Dict[str, str]: ... + def parse_recommendation_path(path: str) -> dict[str, str]: ... @staticmethod def remarketing_action_path( customer_id: str, remarketing_action_id: str ) -> str: ... @staticmethod - def parse_remarketing_action_path(path: str) -> Dict[str, str]: ... + def parse_remarketing_action_path(path: str) -> dict[str, str]: ... @staticmethod def search_term_view_path( customer_id: str, campaign_id: str, ad_group_id: str, query: str ) -> str: ... @staticmethod - def parse_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def shared_criterion_path( customer_id: str, shared_set_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_shared_criterion_path(path: str) -> Dict[str, str]: ... + def parse_shared_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def shopping_performance_view_path(customer_id: str) -> str: ... @staticmethod - def parse_shopping_performance_view_path(path: str) -> Dict[str, str]: ... + def parse_shopping_performance_view_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_search_term_view_path( customer_id: str, campaign_id: str, query: str ) -> str: ... @staticmethod - def parse_smart_campaign_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_setting_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_setting_path(path: str) -> dict[str, str]: ... @staticmethod def third_party_app_analytics_link_path( customer_id: str, customer_link_id: str ) -> str: ... @staticmethod - def parse_third_party_app_analytics_link_path(path: str) -> Dict[str, str]: ... + def parse_third_party_app_analytics_link_path(path: str) -> dict[str, str]: ... @staticmethod def topic_constant_path(topic_id: str) -> str: ... @staticmethod - def parse_topic_constant_path(path: str) -> Dict[str, str]: ... + def parse_topic_constant_path(path: str) -> dict[str, str]: ... @staticmethod def topic_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_topic_view_path(path: str) -> Dict[str, str]: ... + def parse_topic_view_path(path: str) -> dict[str, str]: ... @staticmethod def travel_activity_group_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_travel_activity_group_view_path(path: str) -> Dict[str, str]: ... + def parse_travel_activity_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def travel_activity_performance_view_path(customer_id: str) -> str: ... @staticmethod - def parse_travel_activity_performance_view_path(path: str) -> Dict[str, str]: ... + def parse_travel_activity_performance_view_path(path: str) -> dict[str, str]: ... @staticmethod def user_interest_path(customer_id: str, user_interest_id: str) -> str: ... @staticmethod - def parse_user_interest_path(path: str) -> Dict[str, str]: ... + def parse_user_interest_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def user_location_view_path( customer_id: str, country_criterion_id: str, is_targeting_location: str ) -> str: ... @staticmethod - def parse_user_location_view_path(path: str) -> Dict[str, str]: ... + def parse_user_location_view_path(path: str) -> dict[str, str]: ... @staticmethod def video_path(customer_id: str, video_id: str) -> str: ... @staticmethod - def parse_video_path(path: str) -> Dict[str, str]: ... + def parse_video_path(path: str) -> dict[str, str]: ... @staticmethod def webpage_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_webpage_view_path(path: str) -> Dict[str, str]: ... + def parse_webpage_view_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, GoogleAdsServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | GoogleAdsServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def search( self, - request: Optional[ - Union[google_ads_service.SearchGoogleAdsRequest, dict] - ] = None, + request: google_ads_service.SearchGoogleAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - query: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + query: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.SearchPager: ... def search_stream( self, - request: Optional[ - Union[google_ads_service.SearchGoogleAdsStreamRequest, dict] - ] = None, + request: google_ads_service.SearchGoogleAdsStreamRequest | dict | None = None, *, - customer_id: Optional[str] = None, - query: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + query: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> Iterable[google_ads_service.SearchGoogleAdsStreamResponse]: ... def mutate( self, - request: Optional[ - Union[google_ads_service.MutateGoogleAdsRequest, dict] - ] = None, + request: google_ads_service.MutateGoogleAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - mutate_operations: Optional[ - MutableSequence[google_ads_service.MutateOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + mutate_operations: MutableSequence[google_ads_service.MutateOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> google_ads_service.MutateGoogleAdsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/google_ads_service/pagers.pyi b/google-stubs/ads/googleads/v13/services/services/google_ads_service/pagers.pyi index 714796ad4..0e118f3b8 100644 --- a/google-stubs/ads/googleads/v13/services/services/google_ads_service/pagers.pyi +++ b/google-stubs/ads/googleads/v13/services/services/google_ads_service/pagers.pyi @@ -10,7 +10,7 @@ class SearchPager: method: Callable[..., google_ads_service.SearchGoogleAdsResponse], request: google_ads_service.SearchGoogleAdsRequest, response: google_ads_service.SearchGoogleAdsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/google_ads_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/google_ads_service/transports/base.pyi index 0c54897a5..41aef0f36 100644 --- a/google-stubs/ads/googleads/v13/services/services/google_ads_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/google_ads_service/transports/base.pyi @@ -14,12 +14,12 @@ class GoogleAdsServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,28 +28,19 @@ class GoogleAdsServiceTransport(abc.ABC): self, ) -> Callable[ [google_ads_service.SearchGoogleAdsRequest], - Union[ - google_ads_service.SearchGoogleAdsResponse, - Awaitable[google_ads_service.SearchGoogleAdsResponse], - ], + google_ads_service.SearchGoogleAdsResponse | Awaitable[google_ads_service.SearchGoogleAdsResponse], ]: ... @property def search_stream( self, ) -> Callable[ [google_ads_service.SearchGoogleAdsStreamRequest], - Union[ - google_ads_service.SearchGoogleAdsStreamResponse, - Awaitable[google_ads_service.SearchGoogleAdsStreamResponse], - ], + google_ads_service.SearchGoogleAdsStreamResponse | Awaitable[google_ads_service.SearchGoogleAdsStreamResponse], ]: ... @property def mutate( self, ) -> Callable[ [google_ads_service.MutateGoogleAdsRequest], - Union[ - google_ads_service.MutateGoogleAdsResponse, - Awaitable[google_ads_service.MutateGoogleAdsResponse], - ], + google_ads_service.MutateGoogleAdsResponse | Awaitable[google_ads_service.MutateGoogleAdsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/google_ads_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/google_ads_service/transports/grpc.pyi index d7f416f5c..18617d017 100644 --- a/google-stubs/ads/googleads/v13/services/services/google_ads_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/google_ads_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class GoogleAdsServiceGrpcTransport(GoogleAdsServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/invoice_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/invoice_service/client.pyi index f1a6efa36..d811534cc 100644 --- a/google-stubs/ads/googleads/v13/services/services/invoice_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/invoice_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import InvoiceServiceTransport class InvoiceServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[InvoiceServiceTransport]: ... + cls, label: str | None = None + ) -> type[InvoiceServiceTransport]: ... class InvoiceServiceClient(metaclass=InvoiceServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,44 +33,44 @@ class InvoiceServiceClient(metaclass=InvoiceServiceClientMeta): @staticmethod def invoice_path(customer_id: str, invoice_id: str) -> str: ... @staticmethod - def parse_invoice_path(path: str) -> Dict[str, str]: ... + def parse_invoice_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, InvoiceServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | InvoiceServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_invoices( self, - request: Optional[Union[invoice_service.ListInvoicesRequest, dict]] = None, + request: invoice_service.ListInvoicesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - billing_setup: Optional[str] = None, - issue_year: Optional[str] = None, - issue_month: Optional[month_of_year.MonthOfYearEnum.MonthOfYear] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + billing_setup: str | None = None, + issue_year: str | None = None, + issue_month: month_of_year.MonthOfYearEnum.MonthOfYear | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> invoice_service.ListInvoicesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/invoice_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/invoice_service/transports/base.pyi index d662a88bf..9e962803b 100644 --- a/google-stubs/ads/googleads/v13/services/services/invoice_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/invoice_service/transports/base.pyi @@ -14,12 +14,12 @@ class InvoiceServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class InvoiceServiceTransport(abc.ABC): self, ) -> Callable[ [invoice_service.ListInvoicesRequest], - Union[ - invoice_service.ListInvoicesResponse, - Awaitable[invoice_service.ListInvoicesResponse], - ], + invoice_service.ListInvoicesResponse | Awaitable[invoice_service.ListInvoicesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/invoice_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/invoice_service/transports/grpc.pyi index 6293485be..e63575541 100644 --- a/google-stubs/ads/googleads/v13/services/services/invoice_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/invoice_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class InvoiceServiceGrpcTransport(InvoiceServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/client.pyi index 228987fa9..b5a8708c1 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import KeywordPlanAdGroupKeywordServiceTransport class KeywordPlanAdGroupKeywordServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanAdGroupKeywordServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanAdGroupKeywordServiceTransport]: ... class KeywordPlanAdGroupKeywordServiceClient( metaclass=KeywordPlanAdGroupKeywordServiceClientMeta @@ -38,61 +38,50 @@ class KeywordPlanAdGroupKeywordServiceClient( customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_keyword_path( customer_id: str, keyword_plan_ad_group_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, KeywordPlanAdGroupKeywordServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanAdGroupKeywordServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_ad_group_keywords( self, - request: Optional[ - Union[ - keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsRequest, - dict, - ] - ] = None, + request: keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - keyword_plan_ad_group_keyword_service.KeywordPlanAdGroupKeywordOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_ad_group_keyword_service.KeywordPlanAdGroupKeywordOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse ): ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi index b25f15237..002312470 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi @@ -16,12 +16,12 @@ class KeywordPlanAdGroupKeywordServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -30,10 +30,5 @@ class KeywordPlanAdGroupKeywordServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsRequest], - Union[ - keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse, - Awaitable[ - keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse - ], - ], + keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse | Awaitable[keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi index d9c86b9df..d40cfc99d 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class KeywordPlanAdGroupKeywordServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/client.pyi index 45309ced9..29dcae173 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordPlanAdGroupServiceTransport class KeywordPlanAdGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanAdGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanAdGroupServiceTransport]: ... class KeywordPlanAdGroupServiceClient(metaclass=KeywordPlanAdGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,52 +34,48 @@ class KeywordPlanAdGroupServiceClient(metaclass=KeywordPlanAdGroupServiceClientM customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanAdGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanAdGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_ad_groups( self, - request: Optional[ - Union[keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest, dict] - ] = None, + request: keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[keyword_plan_ad_group_service.KeywordPlanAdGroupOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_ad_group_service.KeywordPlanAdGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/transports/base.pyi index a8aebdda5..6c399e044 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanAdGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class KeywordPlanAdGroupServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest], - Union[ - keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse, - Awaitable[keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse], - ], + keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse | Awaitable[keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/transports/grpc.pyi index eceb3ac4f..ae8d4020e 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_ad_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanAdGroupServiceGrpcTransport(KeywordPlanAdGroupServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/client.pyi index d78079caf..4b6f1c9cf 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import KeywordPlanCampaignKeywordServiceTransport class KeywordPlanCampaignKeywordServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanCampaignKeywordServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanCampaignKeywordServiceTransport]: ... class KeywordPlanCampaignKeywordServiceClient( metaclass=KeywordPlanCampaignKeywordServiceClientMeta @@ -38,61 +38,50 @@ class KeywordPlanCampaignKeywordServiceClient( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_keyword_path( customer_id: str, keyword_plan_campaign_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, KeywordPlanCampaignKeywordServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanCampaignKeywordServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_campaign_keywords( self, - request: Optional[ - Union[ - keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsRequest, - dict, - ] - ] = None, + request: keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - keyword_plan_campaign_keyword_service.KeywordPlanCampaignKeywordOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_campaign_keyword_service.KeywordPlanCampaignKeywordOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse ): ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi index f6fcb3b2d..d8d26ecac 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi @@ -16,12 +16,12 @@ class KeywordPlanCampaignKeywordServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class KeywordPlanCampaignKeywordServiceTransport(abc.ABC): [ keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsRequest ], - Union[ - keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse, - Awaitable[ - keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse - ], - ], + keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse | Awaitable[keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi index bd9544efe..ea5abedc3 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class KeywordPlanCampaignKeywordServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/client.pyi index 43d324c0a..30f3b53e3 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordPlanCampaignServiceTransport class KeywordPlanCampaignServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanCampaignServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanCampaignServiceTransport]: ... class KeywordPlanCampaignServiceClient(metaclass=KeywordPlanCampaignServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,60 +32,56 @@ class KeywordPlanCampaignServiceClient(metaclass=KeywordPlanCampaignServiceClien @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def language_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_language_constant_path(path: str) -> Dict[str, str]: ... + def parse_language_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanCampaignServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanCampaignServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_campaigns( self, - request: Optional[ - Union[keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest, dict] - ] = None, + request: keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[keyword_plan_campaign_service.KeywordPlanCampaignOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_campaign_service.KeywordPlanCampaignOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/transports/base.pyi index 4627f8df9..5a9ad072e 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanCampaignServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class KeywordPlanCampaignServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest], - Union[ - keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse, - Awaitable[keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse], - ], + keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse | Awaitable[keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/transports/grpc.pyi index a0e8b86a2..8a04440fe 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_campaign_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanCampaignServiceGrpcTransport(KeywordPlanCampaignServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/client.pyi index 9622d8122..1f2315f1b 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import KeywordPlanIdeaServiceTransport class KeywordPlanIdeaServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanIdeaServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanIdeaServiceTransport]: ... class KeywordPlanIdeaServiceClient(metaclass=KeywordPlanIdeaServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,60 +33,52 @@ class KeywordPlanIdeaServiceClient(metaclass=KeywordPlanIdeaServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanIdeaServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanIdeaServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def generate_keyword_ideas( self, - request: Optional[ - Union[keyword_plan_idea_service.GenerateKeywordIdeasRequest, dict] - ] = None, + request: keyword_plan_idea_service.GenerateKeywordIdeasRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.GenerateKeywordIdeasPager: ... def generate_keyword_historical_metrics( self, - request: Optional[ - Union[ - keyword_plan_idea_service.GenerateKeywordHistoricalMetricsRequest, dict - ] - ] = None, + request: keyword_plan_idea_service.GenerateKeywordHistoricalMetricsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse: ... def generate_ad_group_themes( self, - request: Optional[ - Union[keyword_plan_idea_service.GenerateAdGroupThemesRequest, dict] - ] = None, + request: keyword_plan_idea_service.GenerateAdGroupThemesRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_idea_service.GenerateAdGroupThemesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/pagers.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/pagers.pyi index 1897f9f10..557d8e606 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/pagers.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/pagers.pyi @@ -10,7 +10,7 @@ class GenerateKeywordIdeasPager: method: Callable[..., keyword_plan_idea_service.GenerateKeywordIdeaResponse], request: keyword_plan_idea_service.GenerateKeywordIdeasRequest, response: keyword_plan_idea_service.GenerateKeywordIdeaResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/transports/base.pyi index 64de36593..ff4fc9c81 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanIdeaServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,30 +28,19 @@ class KeywordPlanIdeaServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_idea_service.GenerateKeywordIdeasRequest], - Union[ - keyword_plan_idea_service.GenerateKeywordIdeaResponse, - Awaitable[keyword_plan_idea_service.GenerateKeywordIdeaResponse], - ], + keyword_plan_idea_service.GenerateKeywordIdeaResponse | Awaitable[keyword_plan_idea_service.GenerateKeywordIdeaResponse], ]: ... @property def generate_keyword_historical_metrics( self, ) -> Callable[ [keyword_plan_idea_service.GenerateKeywordHistoricalMetricsRequest], - Union[ - keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse, - Awaitable[ - keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse - ], - ], + keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse | Awaitable[keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse], ]: ... @property def generate_ad_group_themes( self, ) -> Callable[ [keyword_plan_idea_service.GenerateAdGroupThemesRequest], - Union[ - keyword_plan_idea_service.GenerateAdGroupThemesResponse, - Awaitable[keyword_plan_idea_service.GenerateAdGroupThemesResponse], - ], + keyword_plan_idea_service.GenerateAdGroupThemesResponse | Awaitable[keyword_plan_idea_service.GenerateAdGroupThemesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/transports/grpc.pyi index e820f0ff8..954855751 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_idea_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanIdeaServiceGrpcTransport(KeywordPlanIdeaServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/client.pyi index dade38408..27f7bc411 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordPlanServiceTransport class KeywordPlanServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanServiceTransport]: ... class KeywordPlanServiceClient(metaclass=KeywordPlanServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,90 +32,78 @@ class KeywordPlanServiceClient(metaclass=KeywordPlanServiceClientMeta): @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plans( self, - request: Optional[ - Union[keyword_plan_service.MutateKeywordPlansRequest, dict] - ] = None, + request: keyword_plan_service.MutateKeywordPlansRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[keyword_plan_service.KeywordPlanOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_service.KeywordPlanOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_service.MutateKeywordPlansResponse: ... def generate_forecast_curve( self, - request: Optional[ - Union[keyword_plan_service.GenerateForecastCurveRequest, dict] - ] = None, + request: keyword_plan_service.GenerateForecastCurveRequest | dict | None = None, *, - keyword_plan: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + keyword_plan: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_service.GenerateForecastCurveResponse: ... def generate_forecast_time_series( self, - request: Optional[ - Union[keyword_plan_service.GenerateForecastTimeSeriesRequest, dict] - ] = None, + request: keyword_plan_service.GenerateForecastTimeSeriesRequest | dict | None = None, *, - keyword_plan: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + keyword_plan: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_service.GenerateForecastTimeSeriesResponse: ... def generate_forecast_metrics( self, - request: Optional[ - Union[keyword_plan_service.GenerateForecastMetricsRequest, dict] - ] = None, + request: keyword_plan_service.GenerateForecastMetricsRequest | dict | None = None, *, - keyword_plan: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + keyword_plan: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_service.GenerateForecastMetricsResponse: ... def generate_historical_metrics( self, - request: Optional[ - Union[keyword_plan_service.GenerateHistoricalMetricsRequest, dict] - ] = None, + request: keyword_plan_service.GenerateHistoricalMetricsRequest | dict | None = None, *, - keyword_plan: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + keyword_plan: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_service.GenerateHistoricalMetricsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/transports/base.pyi index 0298123d2..c9b0adf52 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,48 +28,33 @@ class KeywordPlanServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_service.MutateKeywordPlansRequest], - Union[ - keyword_plan_service.MutateKeywordPlansResponse, - Awaitable[keyword_plan_service.MutateKeywordPlansResponse], - ], + keyword_plan_service.MutateKeywordPlansResponse | Awaitable[keyword_plan_service.MutateKeywordPlansResponse], ]: ... @property def generate_forecast_curve( self, ) -> Callable[ [keyword_plan_service.GenerateForecastCurveRequest], - Union[ - keyword_plan_service.GenerateForecastCurveResponse, - Awaitable[keyword_plan_service.GenerateForecastCurveResponse], - ], + keyword_plan_service.GenerateForecastCurveResponse | Awaitable[keyword_plan_service.GenerateForecastCurveResponse], ]: ... @property def generate_forecast_time_series( self, ) -> Callable[ [keyword_plan_service.GenerateForecastTimeSeriesRequest], - Union[ - keyword_plan_service.GenerateForecastTimeSeriesResponse, - Awaitable[keyword_plan_service.GenerateForecastTimeSeriesResponse], - ], + keyword_plan_service.GenerateForecastTimeSeriesResponse | Awaitable[keyword_plan_service.GenerateForecastTimeSeriesResponse], ]: ... @property def generate_forecast_metrics( self, ) -> Callable[ [keyword_plan_service.GenerateForecastMetricsRequest], - Union[ - keyword_plan_service.GenerateForecastMetricsResponse, - Awaitable[keyword_plan_service.GenerateForecastMetricsResponse], - ], + keyword_plan_service.GenerateForecastMetricsResponse | Awaitable[keyword_plan_service.GenerateForecastMetricsResponse], ]: ... @property def generate_historical_metrics( self, ) -> Callable[ [keyword_plan_service.GenerateHistoricalMetricsRequest], - Union[ - keyword_plan_service.GenerateHistoricalMetricsResponse, - Awaitable[keyword_plan_service.GenerateHistoricalMetricsResponse], - ], + keyword_plan_service.GenerateHistoricalMetricsResponse | Awaitable[keyword_plan_service.GenerateHistoricalMetricsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/transports/grpc.pyi index 9d2d5ea8d..56b4da3d0 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_plan_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanServiceGrpcTransport(KeywordPlanServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/client.pyi index fe0849cc7..0dcc9440f 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordThemeConstantServiceTransport class KeywordThemeConstantServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordThemeConstantServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordThemeConstantServiceTransport]: ... class KeywordThemeConstantServiceClient( metaclass=KeywordThemeConstantServiceClientMeta @@ -36,44 +36,40 @@ class KeywordThemeConstantServiceClient( express_category_id: str, express_sub_category_id: str ) -> str: ... @staticmethod - def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: ... + def parse_keyword_theme_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordThemeConstantServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordThemeConstantServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_keyword_theme_constants( self, - request: Optional[ - Union[ - keyword_theme_constant_service.SuggestKeywordThemeConstantsRequest, dict - ] - ] = None, + request: keyword_theme_constant_service.SuggestKeywordThemeConstantsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/transports/base.pyi index b99209aa7..b4a2ef1d1 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordThemeConstantServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class KeywordThemeConstantServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_theme_constant_service.SuggestKeywordThemeConstantsRequest], - Union[ - keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse, - Awaitable[ - keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse - ], - ], + keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse | Awaitable[keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/transports/grpc.pyi index 66b8ae729..5cd130dbd 100644 --- a/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/keyword_theme_constant_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordThemeConstantServiceGrpcTransport(KeywordThemeConstantServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/label_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/label_service/client.pyi index 01dd5dbf0..84bb47c2d 100644 --- a/google-stubs/ads/googleads/v13/services/services/label_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import LabelServiceTransport class LabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[LabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[LabelServiceTransport]: ... class LabelServiceClient(metaclass=LabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,42 +32,42 @@ class LabelServiceClient(metaclass=LabelServiceClientMeta): @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, LabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | LabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_labels( self, - request: Optional[Union[label_service.MutateLabelsRequest, dict]] = None, + request: label_service.MutateLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[label_service.LabelOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[label_service.LabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> label_service.MutateLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/label_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/label_service/transports/base.pyi index cd732e82c..086e458d9 100644 --- a/google-stubs/ads/googleads/v13/services/services/label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/label_service/transports/base.pyi @@ -14,12 +14,12 @@ class LabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class LabelServiceTransport(abc.ABC): self, ) -> Callable[ [label_service.MutateLabelsRequest], - Union[ - label_service.MutateLabelsResponse, - Awaitable[label_service.MutateLabelsResponse], - ], + label_service.MutateLabelsResponse | Awaitable[label_service.MutateLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/label_service/transports/grpc.pyi index e77eea338..42cf30330 100644 --- a/google-stubs/ads/googleads/v13/services/services/label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class LabelServiceGrpcTransport(LabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/media_file_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/media_file_service/client.pyi index 132cd102e..288e0f0ac 100644 --- a/google-stubs/ads/googleads/v13/services/services/media_file_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/media_file_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import MediaFileServiceTransport class MediaFileServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[MediaFileServiceTransport]: ... + cls, label: str | None = None + ) -> type[MediaFileServiceTransport]: ... class MediaFileServiceClient(metaclass=MediaFileServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class MediaFileServiceClient(metaclass=MediaFileServiceClientMeta): @staticmethod def media_file_path(customer_id: str, media_file_id: str) -> str: ... @staticmethod - def parse_media_file_path(path: str) -> Dict[str, str]: ... + def parse_media_file_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, MediaFileServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | MediaFileServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_media_files( self, - request: Optional[ - Union[media_file_service.MutateMediaFilesRequest, dict] - ] = None, + request: media_file_service.MutateMediaFilesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[media_file_service.MediaFileOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[media_file_service.MediaFileOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> media_file_service.MutateMediaFilesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/media_file_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/media_file_service/transports/base.pyi index 92c98cca6..77f51b472 100644 --- a/google-stubs/ads/googleads/v13/services/services/media_file_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/media_file_service/transports/base.pyi @@ -14,12 +14,12 @@ class MediaFileServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class MediaFileServiceTransport(abc.ABC): self, ) -> Callable[ [media_file_service.MutateMediaFilesRequest], - Union[ - media_file_service.MutateMediaFilesResponse, - Awaitable[media_file_service.MutateMediaFilesResponse], - ], + media_file_service.MutateMediaFilesResponse | Awaitable[media_file_service.MutateMediaFilesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/media_file_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/media_file_service/transports/grpc.pyi index d1c3189ba..1e7d1a41a 100644 --- a/google-stubs/ads/googleads/v13/services/services/media_file_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/media_file_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class MediaFileServiceGrpcTransport(MediaFileServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/client.pyi index c8d031f91..421799ddd 100644 --- a/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import MerchantCenterLinkServiceTransport class MerchantCenterLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[MerchantCenterLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[MerchantCenterLinkServiceTransport]: ... class MerchantCenterLinkServiceClient(metaclass=MerchantCenterLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,68 +33,60 @@ class MerchantCenterLinkServiceClient(metaclass=MerchantCenterLinkServiceClientM @staticmethod def merchant_center_link_path(customer_id: str, merchant_center_id: str) -> str: ... @staticmethod - def parse_merchant_center_link_path(path: str) -> Dict[str, str]: ... + def parse_merchant_center_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, MerchantCenterLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | MerchantCenterLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_merchant_center_links( self, - request: Optional[ - Union[merchant_center_link_service.ListMerchantCenterLinksRequest, dict] - ] = None, + request: merchant_center_link_service.ListMerchantCenterLinksRequest | dict | None = None, *, - customer_id: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> merchant_center_link_service.ListMerchantCenterLinksResponse: ... def get_merchant_center_link( self, - request: Optional[ - Union[merchant_center_link_service.GetMerchantCenterLinkRequest, dict] - ] = None, + request: merchant_center_link_service.GetMerchantCenterLinkRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> merchant_center_link.MerchantCenterLink: ... def mutate_merchant_center_link( self, - request: Optional[ - Union[merchant_center_link_service.MutateMerchantCenterLinkRequest, dict] - ] = None, + request: merchant_center_link_service.MutateMerchantCenterLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - merchant_center_link_service.MerchantCenterLinkOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: merchant_center_link_service.MerchantCenterLinkOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> merchant_center_link_service.MutateMerchantCenterLinkResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/transports/base.pyi index 17897515b..7c155fa8d 100644 --- a/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/transports/base.pyi @@ -15,12 +15,12 @@ class MerchantCenterLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -29,28 +29,19 @@ class MerchantCenterLinkServiceTransport(abc.ABC): self, ) -> Callable[ [merchant_center_link_service.ListMerchantCenterLinksRequest], - Union[ - merchant_center_link_service.ListMerchantCenterLinksResponse, - Awaitable[merchant_center_link_service.ListMerchantCenterLinksResponse], - ], + merchant_center_link_service.ListMerchantCenterLinksResponse | Awaitable[merchant_center_link_service.ListMerchantCenterLinksResponse], ]: ... @property def get_merchant_center_link( self, ) -> Callable[ [merchant_center_link_service.GetMerchantCenterLinkRequest], - Union[ - merchant_center_link.MerchantCenterLink, - Awaitable[merchant_center_link.MerchantCenterLink], - ], + merchant_center_link.MerchantCenterLink | Awaitable[merchant_center_link.MerchantCenterLink], ]: ... @property def mutate_merchant_center_link( self, ) -> Callable[ [merchant_center_link_service.MutateMerchantCenterLinkRequest], - Union[ - merchant_center_link_service.MutateMerchantCenterLinkResponse, - Awaitable[merchant_center_link_service.MutateMerchantCenterLinkResponse], - ], + merchant_center_link_service.MutateMerchantCenterLinkResponse | Awaitable[merchant_center_link_service.MutateMerchantCenterLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/transports/grpc.pyi index 01691fcd5..653c1f6c8 100644 --- a/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/merchant_center_link_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class MerchantCenterLinkServiceGrpcTransport(MerchantCenterLinkServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/client.pyi index 5e65db600..7430dd56f 100644 --- a/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import OfflineUserDataJobServiceTransport class OfflineUserDataJobServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[OfflineUserDataJobServiceTransport]: ... + cls, label: str | None = None + ) -> type[OfflineUserDataJobServiceTransport]: ... class OfflineUserDataJobServiceClient(metaclass=OfflineUserDataJobServiceClientMeta): DEFAULT_ENDPOINT: str @@ -36,72 +36,61 @@ class OfflineUserDataJobServiceClient(metaclass=OfflineUserDataJobServiceClientM customer_id: str, offline_user_data_update_id: str ) -> str: ... @staticmethod - def parse_offline_user_data_job_path(path: str) -> Dict[str, str]: ... + def parse_offline_user_data_job_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, OfflineUserDataJobServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | OfflineUserDataJobServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def create_offline_user_data_job( self, - request: Optional[ - Union[offline_user_data_job_service.CreateOfflineUserDataJobRequest, dict] - ] = None, + request: offline_user_data_job_service.CreateOfflineUserDataJobRequest | dict | None = None, *, - customer_id: Optional[str] = None, - job: Optional[offline_user_data_job.OfflineUserDataJob] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + job: offline_user_data_job.OfflineUserDataJob | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> offline_user_data_job_service.CreateOfflineUserDataJobResponse: ... def add_offline_user_data_job_operations( self, - request: Optional[ - Union[ - offline_user_data_job_service.AddOfflineUserDataJobOperationsRequest, - dict, - ] - ] = None, + request: offline_user_data_job_service.AddOfflineUserDataJobOperationsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - operations: Optional[ - MutableSequence[offline_user_data_job_service.OfflineUserDataJobOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + operations: MutableSequence[offline_user_data_job_service.OfflineUserDataJobOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse: ... def run_offline_user_data_job( self, - request: Optional[ - Union[offline_user_data_job_service.RunOfflineUserDataJobRequest, dict] - ] = None, + request: offline_user_data_job_service.RunOfflineUserDataJobRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... diff --git a/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/transports/base.pyi index 612013c25..dc0259c30 100644 --- a/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/transports/base.pyi @@ -15,12 +15,12 @@ class OfflineUserDataJobServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -31,27 +31,19 @@ class OfflineUserDataJobServiceTransport(abc.ABC): self, ) -> Callable[ [offline_user_data_job_service.CreateOfflineUserDataJobRequest], - Union[ - offline_user_data_job_service.CreateOfflineUserDataJobResponse, - Awaitable[offline_user_data_job_service.CreateOfflineUserDataJobResponse], - ], + offline_user_data_job_service.CreateOfflineUserDataJobResponse | Awaitable[offline_user_data_job_service.CreateOfflineUserDataJobResponse], ]: ... @property def add_offline_user_data_job_operations( self, ) -> Callable[ [offline_user_data_job_service.AddOfflineUserDataJobOperationsRequest], - Union[ - offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse, - Awaitable[ - offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse - ], - ], + offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse | Awaitable[offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse], ]: ... @property def run_offline_user_data_job( self, ) -> Callable[ [offline_user_data_job_service.RunOfflineUserDataJobRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/transports/grpc.pyi index c9788382c..3623b0dca 100644 --- a/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/offline_user_data_job_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class OfflineUserDataJobServiceGrpcTransport(OfflineUserDataJobServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/payments_account_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/payments_account_service/client.pyi index 30385f325..334ca835d 100644 --- a/google-stubs/ads/googleads/v13/services/services/payments_account_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/payments_account_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import PaymentsAccountServiceTransport class PaymentsAccountServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[PaymentsAccountServiceTransport]: ... + cls, label: str | None = None + ) -> type[PaymentsAccountServiceTransport]: ... class PaymentsAccountServiceClient(metaclass=PaymentsAccountServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,47 +32,45 @@ class PaymentsAccountServiceClient(metaclass=PaymentsAccountServiceClientMeta): @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def payments_account_path(customer_id: str, payments_account_id: str) -> str: ... @staticmethod - def parse_payments_account_path(path: str) -> Dict[str, str]: ... + def parse_payments_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, PaymentsAccountServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | PaymentsAccountServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_payments_accounts( self, - request: Optional[ - Union[payments_account_service.ListPaymentsAccountsRequest, dict] - ] = None, + request: payments_account_service.ListPaymentsAccountsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> payments_account_service.ListPaymentsAccountsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/payments_account_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/payments_account_service/transports/base.pyi index 35adda92d..a52509fca 100644 --- a/google-stubs/ads/googleads/v13/services/services/payments_account_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/payments_account_service/transports/base.pyi @@ -14,12 +14,12 @@ class PaymentsAccountServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class PaymentsAccountServiceTransport(abc.ABC): self, ) -> Callable[ [payments_account_service.ListPaymentsAccountsRequest], - Union[ - payments_account_service.ListPaymentsAccountsResponse, - Awaitable[payments_account_service.ListPaymentsAccountsResponse], - ], + payments_account_service.ListPaymentsAccountsResponse | Awaitable[payments_account_service.ListPaymentsAccountsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/payments_account_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/payments_account_service/transports/grpc.pyi index b8bfac637..4f6d72eeb 100644 --- a/google-stubs/ads/googleads/v13/services/services/payments_account_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/payments_account_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class PaymentsAccountServiceGrpcTransport(PaymentsAccountServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/product_link_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/product_link_service/client.pyi index 72b1a1991..86f0e9c9d 100644 --- a/google-stubs/ads/googleads/v13/services/services/product_link_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/product_link_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import ProductLinkServiceTransport class ProductLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ProductLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[ProductLinkServiceTransport]: ... class ProductLinkServiceClient(metaclass=ProductLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,60 +33,56 @@ class ProductLinkServiceClient(metaclass=ProductLinkServiceClientMeta): @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def product_link_path(customer_id: str, product_link_id: str) -> str: ... @staticmethod - def parse_product_link_path(path: str) -> Dict[str, str]: ... + def parse_product_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ProductLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ProductLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def create_product_link( self, - request: Optional[ - Union[product_link_service.CreateProductLinkRequest, dict] - ] = None, + request: product_link_service.CreateProductLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - product_link: Optional[gagr_product_link.ProductLink] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + product_link: gagr_product_link.ProductLink | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> product_link_service.CreateProductLinkResponse: ... def remove_product_link( self, - request: Optional[ - Union[product_link_service.RemoveProductLinkRequest, dict] - ] = None, + request: product_link_service.RemoveProductLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> product_link_service.RemoveProductLinkResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/product_link_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/product_link_service/transports/base.pyi index a746502f1..18712db23 100644 --- a/google-stubs/ads/googleads/v13/services/services/product_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/product_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class ProductLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class ProductLinkServiceTransport(abc.ABC): self, ) -> Callable[ [product_link_service.CreateProductLinkRequest], - Union[ - product_link_service.CreateProductLinkResponse, - Awaitable[product_link_service.CreateProductLinkResponse], - ], + product_link_service.CreateProductLinkResponse | Awaitable[product_link_service.CreateProductLinkResponse], ]: ... @property def remove_product_link( self, ) -> Callable[ [product_link_service.RemoveProductLinkRequest], - Union[ - product_link_service.RemoveProductLinkResponse, - Awaitable[product_link_service.RemoveProductLinkResponse], - ], + product_link_service.RemoveProductLinkResponse | Awaitable[product_link_service.RemoveProductLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/product_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/product_link_service/transports/grpc.pyi index 16aa7fa80..c7bba5fcf 100644 --- a/google-stubs/ads/googleads/v13/services/services/product_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/product_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ProductLinkServiceGrpcTransport(ProductLinkServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/reach_plan_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/reach_plan_service/client.pyi index 8ee00c303..cc6d3212c 100644 --- a/google-stubs/ads/googleads/v13/services/services/reach_plan_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/reach_plan_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ReachPlanServiceTransport class ReachPlanServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ReachPlanServiceTransport]: ... + cls, label: str | None = None + ) -> type[ReachPlanServiceTransport]: ... class ReachPlanServiceClient(metaclass=ReachPlanServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,64 +32,56 @@ class ReachPlanServiceClient(metaclass=ReachPlanServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ReachPlanServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ReachPlanServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_plannable_locations( self, - request: Optional[ - Union[reach_plan_service.ListPlannableLocationsRequest, dict] - ] = None, + request: reach_plan_service.ListPlannableLocationsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> reach_plan_service.ListPlannableLocationsResponse: ... def list_plannable_products( self, - request: Optional[ - Union[reach_plan_service.ListPlannableProductsRequest, dict] - ] = None, + request: reach_plan_service.ListPlannableProductsRequest | dict | None = None, *, - plannable_location_id: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + plannable_location_id: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> reach_plan_service.ListPlannableProductsResponse: ... def generate_reach_forecast( self, - request: Optional[ - Union[reach_plan_service.GenerateReachForecastRequest, dict] - ] = None, + request: reach_plan_service.GenerateReachForecastRequest | dict | None = None, *, - customer_id: Optional[str] = None, - campaign_duration: Optional[reach_plan_service.CampaignDuration] = None, - planned_products: Optional[ - MutableSequence[reach_plan_service.PlannedProduct] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + campaign_duration: reach_plan_service.CampaignDuration | None = None, + planned_products: MutableSequence[reach_plan_service.PlannedProduct] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> reach_plan_service.GenerateReachForecastResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/reach_plan_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/reach_plan_service/transports/base.pyi index 7e6e4a85a..d1c21eaa5 100644 --- a/google-stubs/ads/googleads/v13/services/services/reach_plan_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/reach_plan_service/transports/base.pyi @@ -14,12 +14,12 @@ class ReachPlanServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,28 +28,19 @@ class ReachPlanServiceTransport(abc.ABC): self, ) -> Callable[ [reach_plan_service.ListPlannableLocationsRequest], - Union[ - reach_plan_service.ListPlannableLocationsResponse, - Awaitable[reach_plan_service.ListPlannableLocationsResponse], - ], + reach_plan_service.ListPlannableLocationsResponse | Awaitable[reach_plan_service.ListPlannableLocationsResponse], ]: ... @property def list_plannable_products( self, ) -> Callable[ [reach_plan_service.ListPlannableProductsRequest], - Union[ - reach_plan_service.ListPlannableProductsResponse, - Awaitable[reach_plan_service.ListPlannableProductsResponse], - ], + reach_plan_service.ListPlannableProductsResponse | Awaitable[reach_plan_service.ListPlannableProductsResponse], ]: ... @property def generate_reach_forecast( self, ) -> Callable[ [reach_plan_service.GenerateReachForecastRequest], - Union[ - reach_plan_service.GenerateReachForecastResponse, - Awaitable[reach_plan_service.GenerateReachForecastResponse], - ], + reach_plan_service.GenerateReachForecastResponse | Awaitable[reach_plan_service.GenerateReachForecastResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/reach_plan_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/reach_plan_service/transports/grpc.pyi index e6b8db279..91362749a 100644 --- a/google-stubs/ads/googleads/v13/services/services/reach_plan_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/reach_plan_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ReachPlanServiceGrpcTransport(ReachPlanServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/recommendation_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/recommendation_service/client.pyi index 9bc3e966f..a46d0b888 100644 --- a/google-stubs/ads/googleads/v13/services/services/recommendation_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/recommendation_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import RecommendationServiceTransport class RecommendationServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[RecommendationServiceTransport]: ... + cls, label: str | None = None + ) -> type[RecommendationServiceTransport]: ... class RecommendationServiceClient(metaclass=RecommendationServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,74 +32,64 @@ class RecommendationServiceClient(metaclass=RecommendationServiceClientMeta): @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def recommendation_path(customer_id: str, recommendation_id: str) -> str: ... @staticmethod - def parse_recommendation_path(path: str) -> Dict[str, str]: ... + def parse_recommendation_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, RecommendationServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | RecommendationServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def apply_recommendation( self, - request: Optional[ - Union[recommendation_service.ApplyRecommendationRequest, dict] - ] = None, + request: recommendation_service.ApplyRecommendationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[recommendation_service.ApplyRecommendationOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[recommendation_service.ApplyRecommendationOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> recommendation_service.ApplyRecommendationResponse: ... def dismiss_recommendation( self, - request: Optional[ - Union[recommendation_service.DismissRecommendationRequest, dict] - ] = None, + request: recommendation_service.DismissRecommendationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - recommendation_service.DismissRecommendationRequest.DismissRecommendationOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[recommendation_service.DismissRecommendationRequest.DismissRecommendationOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> recommendation_service.DismissRecommendationResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/recommendation_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/recommendation_service/transports/base.pyi index 46f08f9e8..28bd826b7 100644 --- a/google-stubs/ads/googleads/v13/services/services/recommendation_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/recommendation_service/transports/base.pyi @@ -14,12 +14,12 @@ class RecommendationServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class RecommendationServiceTransport(abc.ABC): self, ) -> Callable[ [recommendation_service.ApplyRecommendationRequest], - Union[ - recommendation_service.ApplyRecommendationResponse, - Awaitable[recommendation_service.ApplyRecommendationResponse], - ], + recommendation_service.ApplyRecommendationResponse | Awaitable[recommendation_service.ApplyRecommendationResponse], ]: ... @property def dismiss_recommendation( self, ) -> Callable[ [recommendation_service.DismissRecommendationRequest], - Union[ - recommendation_service.DismissRecommendationResponse, - Awaitable[recommendation_service.DismissRecommendationResponse], - ], + recommendation_service.DismissRecommendationResponse | Awaitable[recommendation_service.DismissRecommendationResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/recommendation_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/recommendation_service/transports/grpc.pyi index 2814fc6aa..8fc73fd1c 100644 --- a/google-stubs/ads/googleads/v13/services/services/recommendation_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/recommendation_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class RecommendationServiceGrpcTransport(RecommendationServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/client.pyi index 991e20a50..0b72b9538 100644 --- a/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import RemarketingActionServiceTransport class RemarketingActionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[RemarketingActionServiceTransport]: ... + cls, label: str | None = None + ) -> type[RemarketingActionServiceTransport]: ... class RemarketingActionServiceClient(metaclass=RemarketingActionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,46 +34,42 @@ class RemarketingActionServiceClient(metaclass=RemarketingActionServiceClientMet customer_id: str, remarketing_action_id: str ) -> str: ... @staticmethod - def parse_remarketing_action_path(path: str) -> Dict[str, str]: ... + def parse_remarketing_action_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, RemarketingActionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | RemarketingActionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_remarketing_actions( self, - request: Optional[ - Union[remarketing_action_service.MutateRemarketingActionsRequest, dict] - ] = None, + request: remarketing_action_service.MutateRemarketingActionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[remarketing_action_service.RemarketingActionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[remarketing_action_service.RemarketingActionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> remarketing_action_service.MutateRemarketingActionsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/transports/base.pyi index bfa1b6787..31976732e 100644 --- a/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/transports/base.pyi @@ -14,12 +14,12 @@ class RemarketingActionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class RemarketingActionServiceTransport(abc.ABC): self, ) -> Callable[ [remarketing_action_service.MutateRemarketingActionsRequest], - Union[ - remarketing_action_service.MutateRemarketingActionsResponse, - Awaitable[remarketing_action_service.MutateRemarketingActionsResponse], - ], + remarketing_action_service.MutateRemarketingActionsResponse | Awaitable[remarketing_action_service.MutateRemarketingActionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/transports/grpc.pyi index 8263a4037..86ea64e93 100644 --- a/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/remarketing_action_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class RemarketingActionServiceGrpcTransport(RemarketingActionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/client.pyi index 7dbf20cdf..164a9eff7 100644 --- a/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SharedCriterionServiceTransport class SharedCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SharedCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[SharedCriterionServiceTransport]: ... class SharedCriterionServiceClient(metaclass=SharedCriterionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,50 +34,46 @@ class SharedCriterionServiceClient(metaclass=SharedCriterionServiceClientMeta): customer_id: str, shared_set_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_shared_criterion_path(path: str) -> Dict[str, str]: ... + def parse_shared_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SharedCriterionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SharedCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_shared_criteria( self, - request: Optional[ - Union[shared_criterion_service.MutateSharedCriteriaRequest, dict] - ] = None, + request: shared_criterion_service.MutateSharedCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[shared_criterion_service.SharedCriterionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[shared_criterion_service.SharedCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> shared_criterion_service.MutateSharedCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/transports/base.pyi index 4be7448de..8ebabba48 100644 --- a/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class SharedCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class SharedCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [shared_criterion_service.MutateSharedCriteriaRequest], - Union[ - shared_criterion_service.MutateSharedCriteriaResponse, - Awaitable[shared_criterion_service.MutateSharedCriteriaResponse], - ], + shared_criterion_service.MutateSharedCriteriaResponse | Awaitable[shared_criterion_service.MutateSharedCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/transports/grpc.pyi index bd5186090..8d16df97f 100644 --- a/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/shared_criterion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SharedCriterionServiceGrpcTransport(SharedCriterionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/shared_set_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/shared_set_service/client.pyi index c23319a67..9dda64442 100644 --- a/google-stubs/ads/googleads/v13/services/services/shared_set_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/shared_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SharedSetServiceTransport class SharedSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SharedSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[SharedSetServiceTransport]: ... class SharedSetServiceClient(metaclass=SharedSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class SharedSetServiceClient(metaclass=SharedSetServiceClientMeta): @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SharedSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SharedSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_shared_sets( self, - request: Optional[ - Union[shared_set_service.MutateSharedSetsRequest, dict] - ] = None, + request: shared_set_service.MutateSharedSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[shared_set_service.SharedSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[shared_set_service.SharedSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> shared_set_service.MutateSharedSetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/shared_set_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/shared_set_service/transports/base.pyi index c8c528a12..cf5a747eb 100644 --- a/google-stubs/ads/googleads/v13/services/services/shared_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/shared_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class SharedSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class SharedSetServiceTransport(abc.ABC): self, ) -> Callable[ [shared_set_service.MutateSharedSetsRequest], - Union[ - shared_set_service.MutateSharedSetsResponse, - Awaitable[shared_set_service.MutateSharedSetsResponse], - ], + shared_set_service.MutateSharedSetsResponse | Awaitable[shared_set_service.MutateSharedSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/shared_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/shared_set_service/transports/grpc.pyi index deb260a41..2a705ac7b 100644 --- a/google-stubs/ads/googleads/v13/services/services/shared_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/shared_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SharedSetServiceGrpcTransport(SharedSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/client.pyi index 55fd73ca6..a5098828d 100644 --- a/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SmartCampaignSettingServiceTransport class SmartCampaignSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SmartCampaignSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[SmartCampaignSettingServiceTransport]: ... class SmartCampaignSettingServiceClient( metaclass=SmartCampaignSettingServiceClientMeta @@ -34,65 +34,55 @@ class SmartCampaignSettingServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_setting_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_setting_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SmartCampaignSettingServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SmartCampaignSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def get_smart_campaign_status( self, - request: Optional[ - Union[smart_campaign_setting_service.GetSmartCampaignStatusRequest, dict] - ] = None, + request: smart_campaign_setting_service.GetSmartCampaignStatusRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_setting_service.GetSmartCampaignStatusResponse: ... def mutate_smart_campaign_settings( self, - request: Optional[ - Union[ - smart_campaign_setting_service.MutateSmartCampaignSettingsRequest, dict - ] - ] = None, + request: smart_campaign_setting_service.MutateSmartCampaignSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - smart_campaign_setting_service.SmartCampaignSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[smart_campaign_setting_service.SmartCampaignSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_setting_service.MutateSmartCampaignSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/transports/base.pyi index 01f4b8422..e2d7bd39e 100644 --- a/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class SmartCampaignSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,20 +28,12 @@ class SmartCampaignSettingServiceTransport(abc.ABC): self, ) -> Callable[ [smart_campaign_setting_service.GetSmartCampaignStatusRequest], - Union[ - smart_campaign_setting_service.GetSmartCampaignStatusResponse, - Awaitable[smart_campaign_setting_service.GetSmartCampaignStatusResponse], - ], + smart_campaign_setting_service.GetSmartCampaignStatusResponse | Awaitable[smart_campaign_setting_service.GetSmartCampaignStatusResponse], ]: ... @property def mutate_smart_campaign_settings( self, ) -> Callable[ [smart_campaign_setting_service.MutateSmartCampaignSettingsRequest], - Union[ - smart_campaign_setting_service.MutateSmartCampaignSettingsResponse, - Awaitable[ - smart_campaign_setting_service.MutateSmartCampaignSettingsResponse - ], - ], + smart_campaign_setting_service.MutateSmartCampaignSettingsResponse | Awaitable[smart_campaign_setting_service.MutateSmartCampaignSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/transports/grpc.pyi index 427974d16..2f285627a 100644 --- a/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/smart_campaign_setting_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SmartCampaignSettingServiceGrpcTransport(SmartCampaignSettingServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/client.pyi index 3001194ac..a23887566 100644 --- a/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SmartCampaignSuggestServiceTransport class SmartCampaignSuggestServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SmartCampaignSuggestServiceTransport]: ... + cls, label: str | None = None + ) -> type[SmartCampaignSuggestServiceTransport]: ... class SmartCampaignSuggestServiceClient( metaclass=SmartCampaignSuggestServiceClientMeta @@ -34,71 +34,62 @@ class SmartCampaignSuggestServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_theme_constant_path( express_category_id: str, express_sub_category_id: str ) -> str: ... @staticmethod - def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: ... + def parse_keyword_theme_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SmartCampaignSuggestServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SmartCampaignSuggestServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_smart_campaign_budget_options( self, - request: Optional[ - Union[ - smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsRequest, - dict, - ] - ] = None, + request: smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse: ... def suggest_smart_campaign_ad( self, - request: Optional[ - Union[smart_campaign_suggest_service.SuggestSmartCampaignAdRequest, dict] - ] = None, + request: smart_campaign_suggest_service.SuggestSmartCampaignAdRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_suggest_service.SuggestSmartCampaignAdResponse: ... def suggest_keyword_themes( self, - request: Optional[ - Union[smart_campaign_suggest_service.SuggestKeywordThemesRequest, dict] - ] = None, + request: smart_campaign_suggest_service.SuggestKeywordThemesRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_suggest_service.SuggestKeywordThemesResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/transports/base.pyi index b54f22c3c..26b2796ae 100644 --- a/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/transports/base.pyi @@ -14,12 +14,12 @@ class SmartCampaignSuggestServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,30 +28,19 @@ class SmartCampaignSuggestServiceTransport(abc.ABC): self, ) -> Callable[ [smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsRequest], - Union[ - smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse, - Awaitable[ - smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse - ], - ], + smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse | Awaitable[smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse], ]: ... @property def suggest_smart_campaign_ad( self, ) -> Callable[ [smart_campaign_suggest_service.SuggestSmartCampaignAdRequest], - Union[ - smart_campaign_suggest_service.SuggestSmartCampaignAdResponse, - Awaitable[smart_campaign_suggest_service.SuggestSmartCampaignAdResponse], - ], + smart_campaign_suggest_service.SuggestSmartCampaignAdResponse | Awaitable[smart_campaign_suggest_service.SuggestSmartCampaignAdResponse], ]: ... @property def suggest_keyword_themes( self, ) -> Callable[ [smart_campaign_suggest_service.SuggestKeywordThemesRequest], - Union[ - smart_campaign_suggest_service.SuggestKeywordThemesResponse, - Awaitable[smart_campaign_suggest_service.SuggestKeywordThemesResponse], - ], + smart_campaign_suggest_service.SuggestKeywordThemesResponse | Awaitable[smart_campaign_suggest_service.SuggestKeywordThemesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/transports/grpc.pyi index 73f1084a4..cf22b2bac 100644 --- a/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/smart_campaign_suggest_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SmartCampaignSuggestServiceGrpcTransport(SmartCampaignSuggestServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/client.pyi index addd21cab..51743da5f 100644 --- a/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import ThirdPartyAppAnalyticsLinkServiceTransport class ThirdPartyAppAnalyticsLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ThirdPartyAppAnalyticsLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[ThirdPartyAppAnalyticsLinkServiceTransport]: ... class ThirdPartyAppAnalyticsLinkServiceClient( metaclass=ThirdPartyAppAnalyticsLinkServiceClientMeta @@ -38,47 +38,40 @@ class ThirdPartyAppAnalyticsLinkServiceClient( customer_id: str, customer_link_id: str ) -> str: ... @staticmethod - def parse_third_party_app_analytics_link_path(path: str) -> Dict[str, str]: ... + def parse_third_party_app_analytics_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ThirdPartyAppAnalyticsLinkServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ThirdPartyAppAnalyticsLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def regenerate_shareable_link_id( self, - request: Optional[ - Union[ - third_party_app_analytics_link_service.RegenerateShareableLinkIdRequest, - dict, - ] - ] = None, + request: third_party_app_analytics_link_service.RegenerateShareableLinkIdRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/transports/base.pyi index 6d6452794..d7ea14335 100644 --- a/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/transports/base.pyi @@ -16,12 +16,12 @@ class ThirdPartyAppAnalyticsLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -30,10 +30,5 @@ class ThirdPartyAppAnalyticsLinkServiceTransport(abc.ABC): self, ) -> Callable[ [third_party_app_analytics_link_service.RegenerateShareableLinkIdRequest], - Union[ - third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse, - Awaitable[ - third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse - ], - ], + third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse | Awaitable[third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/transports/grpc.pyi index 86cbd30a1..7468507f6 100644 --- a/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/third_party_app_analytics_link_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class ThirdPartyAppAnalyticsLinkServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/client.pyi index 667145311..721583b41 100644 --- a/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import TravelAssetSuggestionServiceTransport class TravelAssetSuggestionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[TravelAssetSuggestionServiceTransport]: ... + cls, label: str | None = None + ) -> type[TravelAssetSuggestionServiceTransport]: ... class TravelAssetSuggestionServiceClient( metaclass=TravelAssetSuggestionServiceClientMeta @@ -34,40 +34,38 @@ class TravelAssetSuggestionServiceClient( @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, TravelAssetSuggestionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | TravelAssetSuggestionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_travel_assets( self, - request: Optional[ - Union[travel_asset_suggestion_service.SuggestTravelAssetsRequest, dict] - ] = None, + request: travel_asset_suggestion_service.SuggestTravelAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - language_option: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + language_option: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> travel_asset_suggestion_service.SuggestTravelAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/transports/base.pyi index d0a35d3b1..58e549140 100644 --- a/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/transports/base.pyi @@ -14,12 +14,12 @@ class TravelAssetSuggestionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class TravelAssetSuggestionServiceTransport(abc.ABC): self, ) -> Callable[ [travel_asset_suggestion_service.SuggestTravelAssetsRequest], - Union[ - travel_asset_suggestion_service.SuggestTravelAssetsResponse, - Awaitable[travel_asset_suggestion_service.SuggestTravelAssetsResponse], - ], + travel_asset_suggestion_service.SuggestTravelAssetsResponse | Awaitable[travel_asset_suggestion_service.SuggestTravelAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/transports/grpc.pyi index 7f5714867..789836c96 100644 --- a/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/travel_asset_suggestion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class TravelAssetSuggestionServiceGrpcTransport(TravelAssetSuggestionServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/user_data_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/user_data_service/client.pyi index 33a34aaae..789ad882e 100644 --- a/google-stubs/ads/googleads/v13/services/services/user_data_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/user_data_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import UserDataServiceTransport class UserDataServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[UserDataServiceTransport]: ... + cls, label: str | None = None + ) -> type[UserDataServiceTransport]: ... class UserDataServiceClient(metaclass=UserDataServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,36 +32,36 @@ class UserDataServiceClient(metaclass=UserDataServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, UserDataServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | UserDataServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def upload_user_data( self, - request: Optional[Union[user_data_service.UploadUserDataRequest, dict]] = None, + request: user_data_service.UploadUserDataRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> user_data_service.UploadUserDataResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/user_data_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/user_data_service/transports/base.pyi index 64084a779..3ec45718f 100644 --- a/google-stubs/ads/googleads/v13/services/services/user_data_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/user_data_service/transports/base.pyi @@ -14,12 +14,12 @@ class UserDataServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class UserDataServiceTransport(abc.ABC): self, ) -> Callable[ [user_data_service.UploadUserDataRequest], - Union[ - user_data_service.UploadUserDataResponse, - Awaitable[user_data_service.UploadUserDataResponse], - ], + user_data_service.UploadUserDataResponse | Awaitable[user_data_service.UploadUserDataResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/user_data_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/user_data_service/transports/grpc.pyi index 3e9fd3020..2d6d7c446 100644 --- a/google-stubs/ads/googleads/v13/services/services/user_data_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/user_data_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class UserDataServiceGrpcTransport(UserDataServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v13/services/services/user_list_service/client.pyi b/google-stubs/ads/googleads/v13/services/services/user_list_service/client.pyi index 9db879aea..d984a94ca 100644 --- a/google-stubs/ads/googleads/v13/services/services/user_list_service/client.pyi +++ b/google-stubs/ads/googleads/v13/services/services/user_list_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import UserListServiceTransport class UserListServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[UserListServiceTransport]: ... + cls, label: str | None = None + ) -> type[UserListServiceTransport]: ... class UserListServiceClient(metaclass=UserListServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,44 +32,42 @@ class UserListServiceClient(metaclass=UserListServiceClientMeta): @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, UserListServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | UserListServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_user_lists( self, - request: Optional[Union[user_list_service.MutateUserListsRequest, dict]] = None, + request: user_list_service.MutateUserListsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[user_list_service.UserListOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[user_list_service.UserListOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> user_list_service.MutateUserListsResponse: ... diff --git a/google-stubs/ads/googleads/v13/services/services/user_list_service/transports/base.pyi b/google-stubs/ads/googleads/v13/services/services/user_list_service/transports/base.pyi index 92e3d10f3..010a1ec06 100644 --- a/google-stubs/ads/googleads/v13/services/services/user_list_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v13/services/services/user_list_service/transports/base.pyi @@ -14,12 +14,12 @@ class UserListServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class UserListServiceTransport(abc.ABC): self, ) -> Callable[ [user_list_service.MutateUserListsRequest], - Union[ - user_list_service.MutateUserListsResponse, - Awaitable[user_list_service.MutateUserListsResponse], - ], + user_list_service.MutateUserListsResponse | Awaitable[user_list_service.MutateUserListsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v13/services/services/user_list_service/transports/grpc.pyi b/google-stubs/ads/googleads/v13/services/services/user_list_service/transports/grpc.pyi index 197882d7b..ffffb4227 100644 --- a/google-stubs/ads/googleads/v13/services/services/user_list_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v13/services/services/user_list_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class UserListServiceGrpcTransport(UserListServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/client.pyi index 604a17f3a..bcb313f6e 100644 --- a/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AccountBudgetProposalServiceTransport class AccountBudgetProposalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AccountBudgetProposalServiceTransport]: ... + cls, label: str | None = None + ) -> type[AccountBudgetProposalServiceTransport]: ... class AccountBudgetProposalServiceClient( metaclass=AccountBudgetProposalServiceClientMeta @@ -34,58 +34,52 @@ class AccountBudgetProposalServiceClient( @staticmethod def account_budget_path(customer_id: str, account_budget_id: str) -> str: ... @staticmethod - def parse_account_budget_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_path(path: str) -> dict[str, str]: ... @staticmethod def account_budget_proposal_path( customer_id: str, account_budget_proposal_id: str ) -> str: ... @staticmethod - def parse_account_budget_proposal_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_proposal_path(path: str) -> dict[str, str]: ... @staticmethod def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ... @staticmethod - def parse_billing_setup_path(path: str) -> Dict[str, str]: ... + def parse_billing_setup_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AccountBudgetProposalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AccountBudgetProposalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_account_budget_proposal( self, - request: Optional[ - Union[ - account_budget_proposal_service.MutateAccountBudgetProposalRequest, dict - ] - ] = None, + request: account_budget_proposal_service.MutateAccountBudgetProposalRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - account_budget_proposal_service.AccountBudgetProposalOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: account_budget_proposal_service.AccountBudgetProposalOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> account_budget_proposal_service.MutateAccountBudgetProposalResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/transports/base.pyi index 9d1b2f4f7..3aa1f7a7e 100644 --- a/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/transports/base.pyi @@ -14,12 +14,12 @@ class AccountBudgetProposalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class AccountBudgetProposalServiceTransport(abc.ABC): self, ) -> Callable[ [account_budget_proposal_service.MutateAccountBudgetProposalRequest], - Union[ - account_budget_proposal_service.MutateAccountBudgetProposalResponse, - Awaitable[ - account_budget_proposal_service.MutateAccountBudgetProposalResponse - ], - ], + account_budget_proposal_service.MutateAccountBudgetProposalResponse | Awaitable[account_budget_proposal_service.MutateAccountBudgetProposalResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/transports/grpc.pyi index ae8d6092a..f0d2587b7 100644 --- a/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/account_budget_proposal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AccountBudgetProposalServiceGrpcTransport(AccountBudgetProposalServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/account_link_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/account_link_service/client.pyi index deec7f945..1cb7288cc 100644 --- a/google-stubs/ads/googleads/v14/services/services/account_link_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/account_link_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import AccountLinkServiceTransport class AccountLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AccountLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[AccountLinkServiceTransport]: ... class AccountLinkServiceClient(metaclass=AccountLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,60 +33,56 @@ class AccountLinkServiceClient(metaclass=AccountLinkServiceClientMeta): @staticmethod def account_link_path(customer_id: str, account_link_id: str) -> str: ... @staticmethod - def parse_account_link_path(path: str) -> Dict[str, str]: ... + def parse_account_link_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AccountLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AccountLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def create_account_link( self, - request: Optional[ - Union[account_link_service.CreateAccountLinkRequest, dict] - ] = None, + request: account_link_service.CreateAccountLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - account_link: Optional[gagr_account_link.AccountLink] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + account_link: gagr_account_link.AccountLink | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> account_link_service.CreateAccountLinkResponse: ... def mutate_account_link( self, - request: Optional[ - Union[account_link_service.MutateAccountLinkRequest, dict] - ] = None, + request: account_link_service.MutateAccountLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[account_link_service.AccountLinkOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: account_link_service.AccountLinkOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> account_link_service.MutateAccountLinkResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/account_link_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/account_link_service/transports/base.pyi index 5f0ba9294..46e46fdc3 100644 --- a/google-stubs/ads/googleads/v14/services/services/account_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/account_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class AccountLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class AccountLinkServiceTransport(abc.ABC): self, ) -> Callable[ [account_link_service.CreateAccountLinkRequest], - Union[ - account_link_service.CreateAccountLinkResponse, - Awaitable[account_link_service.CreateAccountLinkResponse], - ], + account_link_service.CreateAccountLinkResponse | Awaitable[account_link_service.CreateAccountLinkResponse], ]: ... @property def mutate_account_link( self, ) -> Callable[ [account_link_service.MutateAccountLinkRequest], - Union[ - account_link_service.MutateAccountLinkResponse, - Awaitable[account_link_service.MutateAccountLinkResponse], - ], + account_link_service.MutateAccountLinkResponse | Awaitable[account_link_service.MutateAccountLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/account_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/account_link_service/transports/grpc.pyi index 3582a75d1..2ff3b7769 100644 --- a/google-stubs/ads/googleads/v14/services/services/account_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/account_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AccountLinkServiceGrpcTransport(AccountLinkServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/client.pyi index bf7c433e4..ef2f67f86 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAdLabelServiceTransport class AdGroupAdLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAdLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAdLabelServiceTransport]: ... class AdGroupAdLabelServiceClient(metaclass=AdGroupAdLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupAdLabelServiceClient(metaclass=AdGroupAdLabelServiceClientMeta): @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAdLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAdLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_ad_labels( self, - request: Optional[ - Union[ad_group_ad_label_service.MutateAdGroupAdLabelsRequest, dict] - ] = None, + request: ad_group_ad_label_service.MutateAdGroupAdLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_ad_label_service.AdGroupAdLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_ad_label_service.AdGroupAdLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_ad_label_service.MutateAdGroupAdLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/base.pyi index d208e9e6a..1744050d7 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAdLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAdLabelServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_ad_label_service.MutateAdGroupAdLabelsRequest], - Union[ - ad_group_ad_label_service.MutateAdGroupAdLabelsResponse, - Awaitable[ad_group_ad_label_service.MutateAdGroupAdLabelsResponse], - ], + ad_group_ad_label_service.MutateAdGroupAdLabelsResponse | Awaitable[ad_group_ad_label_service.MutateAdGroupAdLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/grpc.pyi index 3815cb24d..e1d43090e 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAdLabelServiceGrpcTransport(AdGroupAdLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/client.pyi index bc869e7cf..3259d7e71 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAdServiceTransport class AdGroupAdServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAdServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAdServiceTransport]: ... class AdGroupAdServiceClient(metaclass=AdGroupAdServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,60 +32,56 @@ class AdGroupAdServiceClient(metaclass=AdGroupAdServiceClientMeta): @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAdServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAdServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_ads( self, - request: Optional[ - Union[ad_group_ad_service.MutateAdGroupAdsRequest, dict] - ] = None, + request: ad_group_ad_service.MutateAdGroupAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_ad_service.AdGroupAdOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_ad_service.AdGroupAdOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_ad_service.MutateAdGroupAdsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/transports/base.pyi index 7abb459f9..be9c78099 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAdServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAdServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_ad_service.MutateAdGroupAdsRequest], - Union[ - ad_group_ad_service.MutateAdGroupAdsResponse, - Awaitable[ad_group_ad_service.MutateAdGroupAdsResponse], - ], + ad_group_ad_service.MutateAdGroupAdsResponse | Awaitable[ad_group_ad_service.MutateAdGroupAdsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/transports/grpc.pyi index 645074917..61c0a640e 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_ad_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAdServiceGrpcTransport(AdGroupAdServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/client.pyi index fe314823f..2df34edaa 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAssetServiceTransport class AdGroupAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAssetServiceTransport]: ... class AdGroupAssetServiceClient(metaclass=AdGroupAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupAssetServiceClient(metaclass=AdGroupAssetServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_path( customer_id: str, ad_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_assets( self, - request: Optional[ - Union[ad_group_asset_service.MutateAdGroupAssetsRequest, dict] - ] = None, + request: ad_group_asset_service.MutateAdGroupAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_asset_service.AdGroupAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_asset_service.AdGroupAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_asset_service.MutateAdGroupAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/transports/base.pyi index 345eea902..f127c7661 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAssetServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_asset_service.MutateAdGroupAssetsRequest], - Union[ - ad_group_asset_service.MutateAdGroupAssetsResponse, - Awaitable[ad_group_asset_service.MutateAdGroupAssetsResponse], - ], + ad_group_asset_service.MutateAdGroupAssetsResponse | Awaitable[ad_group_asset_service.MutateAdGroupAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/transports/grpc.pyi index 390a55cc4..e8fc88791 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAssetServiceGrpcTransport(AdGroupAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/client.pyi index 9c4f17110..9f21e36a6 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAssetSetServiceTransport class AdGroupAssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAssetSetServiceTransport]: ... class AdGroupAssetSetServiceClient(metaclass=AdGroupAssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupAssetSetServiceClient(metaclass=AdGroupAssetSetServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_set_path( customer_id: str, ad_group_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_ad_group_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_asset_sets( self, - request: Optional[ - Union[ad_group_asset_set_service.MutateAdGroupAssetSetsRequest, dict] - ] = None, + request: ad_group_asset_set_service.MutateAdGroupAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_asset_set_service.AdGroupAssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_asset_set_service.AdGroupAssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_asset_set_service.MutateAdGroupAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/base.pyi index 172ba9ae1..5e48d7ceb 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_asset_set_service.MutateAdGroupAssetSetsRequest], - Union[ - ad_group_asset_set_service.MutateAdGroupAssetSetsResponse, - Awaitable[ad_group_asset_set_service.MutateAdGroupAssetSetsResponse], - ], + ad_group_asset_set_service.MutateAdGroupAssetSetsResponse | Awaitable[ad_group_asset_set_service.MutateAdGroupAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/grpc.pyi index 0bec0d3ca..c0fec6f79 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAssetSetServiceGrpcTransport(AdGroupAssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/client.pyi index cd5360ae9..6d749446b 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupBidModifierServiceTransport class AdGroupBidModifierServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupBidModifierServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupBidModifierServiceTransport]: ... class AdGroupBidModifierServiceClient(metaclass=AdGroupBidModifierServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class AdGroupBidModifierServiceClient(metaclass=AdGroupBidModifierServiceClientM @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_bid_modifier_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupBidModifierServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupBidModifierServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_bid_modifiers( self, - request: Optional[ - Union[ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest, dict] - ] = None, + request: ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_bid_modifier_service.AdGroupBidModifierOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_bid_modifier_service.AdGroupBidModifierOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/base.pyi index 15eb38562..af6d43e54 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupBidModifierServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupBidModifierServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest], - Union[ - ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse, - Awaitable[ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse], - ], + ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse | Awaitable[ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/grpc.pyi index 5463ddc1c..bbfc926bc 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_bid_modifier_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupBidModifierServiceGrpcTransport(AdGroupBidModifierServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/client.pyi index 5d4aff54c..0b8a14108 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import AdGroupCriterionCustomizerServiceTransport class AdGroupCriterionCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCriterionCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCriterionCustomizerServiceTransport]: ... class AdGroupCriterionCustomizerServiceClient( metaclass=AdGroupCriterionCustomizerServiceClientMeta @@ -38,7 +38,7 @@ class AdGroupCriterionCustomizerServiceClient( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_customizer_path( customer_id: str, @@ -47,61 +47,50 @@ class AdGroupCriterionCustomizerServiceClient( customizer_attribute_id: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, AdGroupCriterionCustomizerServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCriterionCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_criterion_customizers( self, - request: Optional[ - Union[ - ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersRequest, - dict, - ] - ] = None, + request: ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - ad_group_criterion_customizer_service.AdGroupCriterionCustomizerOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_criterion_customizer_service.AdGroupCriterionCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse ): ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/base.pyi index a274ef181..17f9ea77a 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/base.pyi @@ -16,12 +16,12 @@ class AdGroupCriterionCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class AdGroupCriterionCustomizerServiceTransport(abc.ABC): [ ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersRequest ], - Union[ - ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse, - Awaitable[ - ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse - ], - ], + ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse | Awaitable[ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi index 0dcf2acf8..440132b91 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class AdGroupCriterionCustomizerServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/client.pyi index b258a169d..1d97b158c 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupCriterionLabelServiceTransport class AdGroupCriterionLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCriterionLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCriterionLabelServiceTransport]: ... class AdGroupCriterionLabelServiceClient( metaclass=AdGroupCriterionLabelServiceClientMeta @@ -36,61 +36,52 @@ class AdGroupCriterionLabelServiceClient( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupCriterionLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCriterionLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_criterion_labels( self, - request: Optional[ - Union[ - ad_group_criterion_label_service.MutateAdGroupCriterionLabelsRequest, - dict, - ] - ] = None, + request: ad_group_criterion_label_service.MutateAdGroupCriterionLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - ad_group_criterion_label_service.AdGroupCriterionLabelOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_criterion_label_service.AdGroupCriterionLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/base.pyi index 711111cf2..bb4848e6e 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupCriterionLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class AdGroupCriterionLabelServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_criterion_label_service.MutateAdGroupCriterionLabelsRequest], - Union[ - ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse, - Awaitable[ - ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse - ], - ], + ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse | Awaitable[ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/grpc.pyi index 3d2d87105..4b3a2e6ed 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupCriterionLabelServiceGrpcTransport(AdGroupCriterionLabelServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/client.pyi index b65ad8001..201f0b706 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupCriterionServiceTransport class AdGroupCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCriterionServiceTransport]: ... class AdGroupCriterionServiceClient(metaclass=AdGroupCriterionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class AdGroupCriterionServiceClient(metaclass=AdGroupCriterionServiceClientMeta) @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupCriterionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_criteria( self, - request: Optional[ - Union[ad_group_criterion_service.MutateAdGroupCriteriaRequest, dict] - ] = None, + request: ad_group_criterion_service.MutateAdGroupCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_criterion_service.AdGroupCriterionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_criterion_service.AdGroupCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_criterion_service.MutateAdGroupCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/transports/base.pyi index 9ad6382e5..d19f5997c 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_criterion_service.MutateAdGroupCriteriaRequest], - Union[ - ad_group_criterion_service.MutateAdGroupCriteriaResponse, - Awaitable[ad_group_criterion_service.MutateAdGroupCriteriaResponse], - ], + ad_group_criterion_service.MutateAdGroupCriteriaResponse | Awaitable[ad_group_criterion_service.MutateAdGroupCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/transports/grpc.pyi index 7494a2c49..002288ac4 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_criterion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupCriterionServiceGrpcTransport(AdGroupCriterionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/client.pyi index ce89c1748..c0832888b 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupCustomizerServiceTransport class AdGroupCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCustomizerServiceTransport]: ... class AdGroupCustomizerServiceClient(metaclass=AdGroupCustomizerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class AdGroupCustomizerServiceClient(metaclass=AdGroupCustomizerServiceClientMet @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_customizer_path( customer_id: str, ad_group_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupCustomizerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_customizers( self, - request: Optional[ - Union[ad_group_customizer_service.MutateAdGroupCustomizersRequest, dict] - ] = None, + request: ad_group_customizer_service.MutateAdGroupCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_customizer_service.AdGroupCustomizerOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_customizer_service.AdGroupCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_customizer_service.MutateAdGroupCustomizersResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/transports/base.pyi index b0b5c2369..308e0fd45 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupCustomizerServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_customizer_service.MutateAdGroupCustomizersRequest], - Union[ - ad_group_customizer_service.MutateAdGroupCustomizersResponse, - Awaitable[ad_group_customizer_service.MutateAdGroupCustomizersResponse], - ], + ad_group_customizer_service.MutateAdGroupCustomizersResponse | Awaitable[ad_group_customizer_service.MutateAdGroupCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/transports/grpc.pyi index 893622476..7c29d5300 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_customizer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupCustomizerServiceGrpcTransport(AdGroupCustomizerServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/client.pyi index 7c1c421ba..3ec48a63a 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupExtensionSettingServiceTransport class AdGroupExtensionSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupExtensionSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupExtensionSettingServiceTransport]: ... class AdGroupExtensionSettingServiceClient( metaclass=AdGroupExtensionSettingServiceClientMeta @@ -34,61 +34,52 @@ class AdGroupExtensionSettingServiceClient( @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_extension_setting_path( customer_id: str, ad_group_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupExtensionSettingServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupExtensionSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_extension_settings( self, - request: Optional[ - Union[ - ad_group_extension_setting_service.MutateAdGroupExtensionSettingsRequest, - dict, - ] - ] = None, + request: ad_group_extension_setting_service.MutateAdGroupExtensionSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - ad_group_extension_setting_service.AdGroupExtensionSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_extension_setting_service.AdGroupExtensionSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/base.pyi index 20a1cf3e9..0479d2bbc 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupExtensionSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class AdGroupExtensionSettingServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_extension_setting_service.MutateAdGroupExtensionSettingsRequest], - Union[ - ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse, - Awaitable[ - ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse - ], - ], + ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse | Awaitable[ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/grpc.pyi index 8c42794ff..89db7b306 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_extension_setting_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class AdGroupExtensionSettingServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/client.pyi index 44b5d2ca3..67bc6f5c7 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupFeedServiceTransport class AdGroupFeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupFeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupFeedServiceTransport]: ... class AdGroupFeedServiceClient(metaclass=AdGroupFeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class AdGroupFeedServiceClient(metaclass=AdGroupFeedServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_feed_path(customer_id: str, ad_group_id: str, feed_id: str) -> str: ... @staticmethod - def parse_ad_group_feed_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupFeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupFeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_feeds( self, - request: Optional[ - Union[ad_group_feed_service.MutateAdGroupFeedsRequest, dict] - ] = None, + request: ad_group_feed_service.MutateAdGroupFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_feed_service.AdGroupFeedOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_feed_service.AdGroupFeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_feed_service.MutateAdGroupFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/transports/base.pyi index ebd0f88eb..eb851ac0b 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupFeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupFeedServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_feed_service.MutateAdGroupFeedsRequest], - Union[ - ad_group_feed_service.MutateAdGroupFeedsResponse, - Awaitable[ad_group_feed_service.MutateAdGroupFeedsResponse], - ], + ad_group_feed_service.MutateAdGroupFeedsResponse | Awaitable[ad_group_feed_service.MutateAdGroupFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/transports/grpc.pyi index 5c8a16f31..277eee6a0 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupFeedServiceGrpcTransport(AdGroupFeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/client.pyi index d3d9901d2..11cf8c6fb 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupLabelServiceTransport class AdGroupLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupLabelServiceTransport]: ... class AdGroupLabelServiceClient(metaclass=AdGroupLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupLabelServiceClient(metaclass=AdGroupLabelServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_labels( self, - request: Optional[ - Union[ad_group_label_service.MutateAdGroupLabelsRequest, dict] - ] = None, + request: ad_group_label_service.MutateAdGroupLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_label_service.AdGroupLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_label_service.AdGroupLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_label_service.MutateAdGroupLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/transports/base.pyi index 92504cb36..1f65539fa 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupLabelServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_label_service.MutateAdGroupLabelsRequest], - Union[ - ad_group_label_service.MutateAdGroupLabelsResponse, - Awaitable[ad_group_label_service.MutateAdGroupLabelsResponse], - ], + ad_group_label_service.MutateAdGroupLabelsResponse | Awaitable[ad_group_label_service.MutateAdGroupLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/transports/grpc.pyi index 1dee7d35e..401e66e28 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupLabelServiceGrpcTransport(AdGroupLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_service/client.pyi index d2341a4d6..564c95751 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupServiceTransport class AdGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupServiceTransport]: ... class AdGroupServiceClient(metaclass=AdGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,52 @@ class AdGroupServiceClient(metaclass=AdGroupServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_groups( self, - request: Optional[Union[ad_group_service.MutateAdGroupsRequest, dict]] = None, + request: ad_group_service.MutateAdGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[ad_group_service.AdGroupOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_service.AdGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_service.MutateAdGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_service/transports/base.pyi index bb77fbfbf..dac98a5ef 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_service.MutateAdGroupsRequest], - Union[ - ad_group_service.MutateAdGroupsResponse, - Awaitable[ad_group_service.MutateAdGroupsResponse], - ], + ad_group_service.MutateAdGroupsResponse | Awaitable[ad_group_service.MutateAdGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_group_service/transports/grpc.pyi index afa52deeb..2bfe16e0d 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupServiceGrpcTransport(AdGroupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/client.pyi index 722554ec5..1cfb07bb1 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdParameterServiceTransport class AdParameterServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdParameterServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdParameterServiceTransport]: ... class AdParameterServiceClient(metaclass=AdParameterServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,52 +34,48 @@ class AdParameterServiceClient(metaclass=AdParameterServiceClientMeta): customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_parameter_path( customer_id: str, ad_group_id: str, criterion_id: str, parameter_index: str ) -> str: ... @staticmethod - def parse_ad_parameter_path(path: str) -> Dict[str, str]: ... + def parse_ad_parameter_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdParameterServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdParameterServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_parameters( self, - request: Optional[ - Union[ad_parameter_service.MutateAdParametersRequest, dict] - ] = None, + request: ad_parameter_service.MutateAdParametersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_parameter_service.AdParameterOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_parameter_service.AdParameterOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_parameter_service.MutateAdParametersResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/transports/base.pyi index 62ad8649b..8dca83ee5 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdParameterServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdParameterServiceTransport(abc.ABC): self, ) -> Callable[ [ad_parameter_service.MutateAdParametersRequest], - Union[ - ad_parameter_service.MutateAdParametersResponse, - Awaitable[ad_parameter_service.MutateAdParametersResponse], - ], + ad_parameter_service.MutateAdParametersResponse | Awaitable[ad_parameter_service.MutateAdParametersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/transports/grpc.pyi index c7026c656..fcc93aa74 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_parameter_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdParameterServiceGrpcTransport(AdParameterServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/ad_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/ad_service/client.pyi index fd9a17e4c..52a2f0944 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import AdServiceTransport class AdServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdServiceTransport]: ... class AdServiceClient(metaclass=AdServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,51 +33,51 @@ class AdServiceClient(metaclass=AdServiceClientMeta): @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def get_ad( self, - request: Optional[Union[ad_service.GetAdRequest, dict]] = None, + request: ad_service.GetAdRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad.Ad: ... def mutate_ads( self, - request: Optional[Union[ad_service.MutateAdsRequest, dict]] = None, + request: ad_service.MutateAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[ad_service.AdOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_service.AdOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_service.MutateAdsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/ad_service/transports/base.pyi index 9b0ef041c..efd43164a 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_service/transports/base.pyi @@ -15,23 +15,23 @@ class AdServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @property def get_ad( self, - ) -> Callable[[ad_service.GetAdRequest], Union[ad.Ad, Awaitable[ad.Ad]]]: ... + ) -> Callable[[ad_service.GetAdRequest], ad.Ad | Awaitable[ad.Ad]]: ... @property def mutate_ads( self, ) -> Callable[ [ad_service.MutateAdsRequest], - Union[ad_service.MutateAdsResponse, Awaitable[ad_service.MutateAdsResponse]], + ad_service.MutateAdsResponse | Awaitable[ad_service.MutateAdsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/ad_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/ad_service/transports/grpc.pyi index e12dcc428..6bfab6de1 100644 --- a/google-stubs/ads/googleads/v14/services/services/ad_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/ad_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class AdServiceGrpcTransport(AdServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/client.pyi index 3efe41867..75c1b5992 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetGroupAssetServiceTransport class AssetGroupAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupAssetServiceTransport]: ... class AssetGroupAssetServiceClient(metaclass=AssetGroupAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AssetGroupAssetServiceClient(metaclass=AssetGroupAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_asset_path( customer_id: str, asset_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_asset_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetGroupAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_group_assets( self, - request: Optional[ - Union[asset_group_asset_service.MutateAssetGroupAssetsRequest, dict] - ] = None, + request: asset_group_asset_service.MutateAssetGroupAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_group_asset_service.AssetGroupAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_asset_service.AssetGroupAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_group_asset_service.MutateAssetGroupAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/transports/base.pyi index 20dfdce5f..0fce52a8c 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetGroupAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetGroupAssetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_group_asset_service.MutateAssetGroupAssetsRequest], - Union[ - asset_group_asset_service.MutateAssetGroupAssetsResponse, - Awaitable[asset_group_asset_service.MutateAssetGroupAssetsResponse], - ], + asset_group_asset_service.MutateAssetGroupAssetsResponse | Awaitable[asset_group_asset_service.MutateAssetGroupAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/transports/grpc.pyi index d3dd2fbf3..f00c1a573 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetGroupAssetServiceGrpcTransport(AssetGroupAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/client.pyi index 484ce6788..22742d9f3 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import AssetGroupListingGroupFilterServiceTransport class AssetGroupListingGroupFilterServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupListingGroupFilterServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupListingGroupFilterServiceTransport]: ... class AssetGroupListingGroupFilterServiceClient( metaclass=AssetGroupListingGroupFilterServiceClientMeta @@ -36,61 +36,50 @@ class AssetGroupListingGroupFilterServiceClient( @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_listing_group_filter_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_listing_group_filter_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_listing_group_filter_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, AssetGroupListingGroupFilterServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupListingGroupFilterServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_group_listing_group_filters( self, - request: Optional[ - Union[ - asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersRequest, - dict, - ] - ] = None, + request: asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - asset_group_listing_group_filter_service.AssetGroupListingGroupFilterOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_listing_group_filter_service.AssetGroupListingGroupFilterOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse ): ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/base.pyi index 1be0b17e8..600d4639d 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/base.pyi @@ -16,12 +16,12 @@ class AssetGroupListingGroupFilterServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class AssetGroupListingGroupFilterServiceTransport(abc.ABC): [ asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersRequest ], - Union[ - asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse, - Awaitable[ - asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse - ], - ], + asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse | Awaitable[asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi index b6dec510e..6c1255495 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class AssetGroupListingGroupFilterServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_service/client.pyi index 8265032ee..caf55a279 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetGroupServiceTransport class AssetGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupServiceTransport]: ... class AssetGroupServiceClient(metaclass=AssetGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,50 +32,46 @@ class AssetGroupServiceClient(metaclass=AssetGroupServiceClientMeta): @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_groups( self, - request: Optional[ - Union[asset_group_service.MutateAssetGroupsRequest, dict] - ] = None, + request: asset_group_service.MutateAssetGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_group_service.AssetGroupOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_service.AssetGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_group_service.MutateAssetGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_service/transports/base.pyi index a14f0a7df..fda88b437 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetGroupServiceTransport(abc.ABC): self, ) -> Callable[ [asset_group_service.MutateAssetGroupsRequest], - Union[ - asset_group_service.MutateAssetGroupsResponse, - Awaitable[asset_group_service.MutateAssetGroupsResponse], - ], + asset_group_service.MutateAssetGroupsResponse | Awaitable[asset_group_service.MutateAssetGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_service/transports/grpc.pyi index a755b4e76..c3ee61894 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetGroupServiceGrpcTransport(AssetGroupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/client.pyi index 3d5c9f9dc..a3b65c7ee 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetGroupSignalServiceTransport class AssetGroupSignalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupSignalServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupSignalServiceTransport]: ... class AssetGroupSignalServiceClient(metaclass=AssetGroupSignalServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class AssetGroupSignalServiceClient(metaclass=AssetGroupSignalServiceClientMeta) @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_signal_path( customer_id: str, asset_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_asset_group_signal_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_signal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetGroupSignalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupSignalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_group_signals( self, - request: Optional[ - Union[asset_group_signal_service.MutateAssetGroupSignalsRequest, dict] - ] = None, + request: asset_group_signal_service.MutateAssetGroupSignalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_group_signal_service.AssetGroupSignalOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_signal_service.AssetGroupSignalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_group_signal_service.MutateAssetGroupSignalsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/transports/base.pyi index 848d1dce4..25872be37 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetGroupSignalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetGroupSignalServiceTransport(abc.ABC): self, ) -> Callable[ [asset_group_signal_service.MutateAssetGroupSignalsRequest], - Union[ - asset_group_signal_service.MutateAssetGroupSignalsResponse, - Awaitable[asset_group_signal_service.MutateAssetGroupSignalsResponse], - ], + asset_group_signal_service.MutateAssetGroupSignalsResponse | Awaitable[asset_group_signal_service.MutateAssetGroupSignalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/transports/grpc.pyi index 396eb8f60..b27b85c16 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_group_signal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetGroupSignalServiceGrpcTransport(AssetGroupSignalServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/asset_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/asset_service/client.pyi index 561921746..63d3b900a 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetServiceTransport class AssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetServiceTransport]: ... class AssetServiceClient(metaclass=AssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,46 @@ class AssetServiceClient(metaclass=AssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_assets( self, - request: Optional[Union[asset_service.MutateAssetsRequest, dict]] = None, + request: asset_service.MutateAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[asset_service.AssetOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_service.AssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_service.MutateAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/asset_service/transports/base.pyi index 87fff3988..6264ad987 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_service.MutateAssetsRequest], - Union[ - asset_service.MutateAssetsResponse, - Awaitable[asset_service.MutateAssetsResponse], - ], + asset_service.MutateAssetsResponse | Awaitable[asset_service.MutateAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/asset_service/transports/grpc.pyi index 90715616a..a9a40401f 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetServiceGrpcTransport(AssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/client.pyi index 6c3800c9b..6b1ed8054 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetSetAssetServiceTransport class AssetSetAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetSetAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetSetAssetServiceTransport]: ... class AssetSetAssetServiceClient(metaclass=AssetSetAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AssetSetAssetServiceClient(metaclass=AssetSetAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_asset_path( customer_id: str, asset_set_id: str, asset_id: str ) -> str: ... @staticmethod - def parse_asset_set_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetSetAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetSetAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_set_assets( self, - request: Optional[ - Union[asset_set_asset_service.MutateAssetSetAssetsRequest, dict] - ] = None, + request: asset_set_asset_service.MutateAssetSetAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_set_asset_service.AssetSetAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_set_asset_service.AssetSetAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_set_asset_service.MutateAssetSetAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/transports/base.pyi index d816cb30d..54555f579 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetSetAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetSetAssetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_set_asset_service.MutateAssetSetAssetsRequest], - Union[ - asset_set_asset_service.MutateAssetSetAssetsResponse, - Awaitable[asset_set_asset_service.MutateAssetSetAssetsResponse], - ], + asset_set_asset_service.MutateAssetSetAssetsResponse | Awaitable[asset_set_asset_service.MutateAssetSetAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/transports/grpc.pyi index def6e2af4..27c8ce553 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_set_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetSetAssetServiceGrpcTransport(AssetSetAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/asset_set_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/asset_set_service/client.pyi index 0e6198d65..8a68b6073 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetSetServiceTransport class AssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetSetServiceTransport]: ... class AssetSetServiceClient(metaclass=AssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,44 +32,42 @@ class AssetSetServiceClient(metaclass=AssetSetServiceClientMeta): @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_sets( self, - request: Optional[Union[asset_set_service.MutateAssetSetsRequest, dict]] = None, + request: asset_set_service.MutateAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_set_service.AssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_set_service.AssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_set_service.MutateAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/asset_set_service/transports/base.pyi index 29b81320e..17eaa1064 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_set_service.MutateAssetSetsRequest], - Union[ - asset_set_service.MutateAssetSetsResponse, - Awaitable[asset_set_service.MutateAssetSetsResponse], - ], + asset_set_service.MutateAssetSetsResponse | Awaitable[asset_set_service.MutateAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/asset_set_service/transports/grpc.pyi index d82c2e9c1..d4aeb2358 100644 --- a/google-stubs/ads/googleads/v14/services/services/asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetSetServiceGrpcTransport(AssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/audience_insights_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/audience_insights_service/client.pyi index ad746c619..a50dce85d 100644 --- a/google-stubs/ads/googleads/v14/services/services/audience_insights_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/audience_insights_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import AudienceInsightsServiceTransport class AudienceInsightsServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AudienceInsightsServiceTransport]: ... + cls, label: str | None = None + ) -> type[AudienceInsightsServiceTransport]: ... class AudienceInsightsServiceClient(metaclass=AudienceInsightsServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,92 +33,69 @@ class AudienceInsightsServiceClient(metaclass=AudienceInsightsServiceClientMeta) @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AudienceInsightsServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AudienceInsightsServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def generate_insights_finder_report( self, - request: Optional[ - Union[audience_insights_service.GenerateInsightsFinderReportRequest, dict] - ] = None, + request: audience_insights_service.GenerateInsightsFinderReportRequest | dict | None = None, *, - customer_id: Optional[str] = None, - baseline_audience: Optional[ - audience_insights_service.BasicInsightsAudience - ] = None, - specific_audience: Optional[ - audience_insights_service.BasicInsightsAudience - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + baseline_audience: audience_insights_service.BasicInsightsAudience | None = None, + specific_audience: audience_insights_service.BasicInsightsAudience | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.GenerateInsightsFinderReportResponse: ... def list_audience_insights_attributes( self, - request: Optional[ - Union[audience_insights_service.ListAudienceInsightsAttributesRequest, dict] - ] = None, + request: audience_insights_service.ListAudienceInsightsAttributesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - dimensions: Optional[ - MutableSequence[ - audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension - ] - ] = None, - query_text: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + dimensions: MutableSequence[audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension] | None = None, + query_text: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.ListAudienceInsightsAttributesResponse: ... def list_insights_eligible_dates( self, - request: Optional[ - Union[audience_insights_service.ListInsightsEligibleDatesRequest, dict] - ] = None, + request: audience_insights_service.ListInsightsEligibleDatesRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.ListInsightsEligibleDatesResponse: ... def generate_audience_composition_insights( self, - request: Optional[ - Union[ - audience_insights_service.GenerateAudienceCompositionInsightsRequest, - dict, - ] - ] = None, + request: audience_insights_service.GenerateAudienceCompositionInsightsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - audience: Optional[audience_insights_service.InsightsAudience] = None, - dimensions: Optional[ - MutableSequence[ - audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + audience: audience_insights_service.InsightsAudience | None = None, + dimensions: MutableSequence[audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.GenerateAudienceCompositionInsightsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/audience_insights_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/audience_insights_service/transports/base.pyi index e5f7f2172..d31a506d4 100644 --- a/google-stubs/ads/googleads/v14/services/services/audience_insights_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/audience_insights_service/transports/base.pyi @@ -14,12 +14,12 @@ class AudienceInsightsServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,40 +28,26 @@ class AudienceInsightsServiceTransport(abc.ABC): self, ) -> Callable[ [audience_insights_service.GenerateInsightsFinderReportRequest], - Union[ - audience_insights_service.GenerateInsightsFinderReportResponse, - Awaitable[audience_insights_service.GenerateInsightsFinderReportResponse], - ], + audience_insights_service.GenerateInsightsFinderReportResponse | Awaitable[audience_insights_service.GenerateInsightsFinderReportResponse], ]: ... @property def list_audience_insights_attributes( self, ) -> Callable[ [audience_insights_service.ListAudienceInsightsAttributesRequest], - Union[ - audience_insights_service.ListAudienceInsightsAttributesResponse, - Awaitable[audience_insights_service.ListAudienceInsightsAttributesResponse], - ], + audience_insights_service.ListAudienceInsightsAttributesResponse | Awaitable[audience_insights_service.ListAudienceInsightsAttributesResponse], ]: ... @property def list_insights_eligible_dates( self, ) -> Callable[ [audience_insights_service.ListInsightsEligibleDatesRequest], - Union[ - audience_insights_service.ListInsightsEligibleDatesResponse, - Awaitable[audience_insights_service.ListInsightsEligibleDatesResponse], - ], + audience_insights_service.ListInsightsEligibleDatesResponse | Awaitable[audience_insights_service.ListInsightsEligibleDatesResponse], ]: ... @property def generate_audience_composition_insights( self, ) -> Callable[ [audience_insights_service.GenerateAudienceCompositionInsightsRequest], - Union[ - audience_insights_service.GenerateAudienceCompositionInsightsResponse, - Awaitable[ - audience_insights_service.GenerateAudienceCompositionInsightsResponse - ], - ], + audience_insights_service.GenerateAudienceCompositionInsightsResponse | Awaitable[audience_insights_service.GenerateAudienceCompositionInsightsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/audience_insights_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/audience_insights_service/transports/grpc.pyi index 4001d2199..e18e5cf52 100644 --- a/google-stubs/ads/googleads/v14/services/services/audience_insights_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/audience_insights_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AudienceInsightsServiceGrpcTransport(AudienceInsightsServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/audience_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/audience_service/client.pyi index d73e35205..2e02dccb2 100644 --- a/google-stubs/ads/googleads/v14/services/services/audience_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/audience_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AudienceServiceTransport class AudienceServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AudienceServiceTransport]: ... + cls, label: str | None = None + ) -> type[AudienceServiceTransport]: ... class AudienceServiceClient(metaclass=AudienceServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,44 +32,42 @@ class AudienceServiceClient(metaclass=AudienceServiceClientMeta): @staticmethod def audience_path(customer_id: str, audience_id: str) -> str: ... @staticmethod - def parse_audience_path(path: str) -> Dict[str, str]: ... + def parse_audience_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AudienceServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AudienceServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_audiences( self, - request: Optional[Union[audience_service.MutateAudiencesRequest, dict]] = None, + request: audience_service.MutateAudiencesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[audience_service.AudienceOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[audience_service.AudienceOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_service.MutateAudiencesResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/audience_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/audience_service/transports/base.pyi index ab39ca4e5..45fcbe0f0 100644 --- a/google-stubs/ads/googleads/v14/services/services/audience_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/audience_service/transports/base.pyi @@ -14,12 +14,12 @@ class AudienceServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AudienceServiceTransport(abc.ABC): self, ) -> Callable[ [audience_service.MutateAudiencesRequest], - Union[ - audience_service.MutateAudiencesResponse, - Awaitable[audience_service.MutateAudiencesResponse], - ], + audience_service.MutateAudiencesResponse | Awaitable[audience_service.MutateAudiencesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/audience_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/audience_service/transports/grpc.pyi index 943e321d0..f573f1386 100644 --- a/google-stubs/ads/googleads/v14/services/services/audience_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/audience_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AudienceServiceGrpcTransport(AudienceServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/batch_job_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/batch_job_service/client.pyi index d5cedce0d..1c5c43eb6 100644 --- a/google-stubs/ads/googleads/v14/services/services/batch_job_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/batch_job_service/client.pyi @@ -19,8 +19,8 @@ from .transports.base import BatchJobServiceTransport class BatchJobServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BatchJobServiceTransport]: ... + cls, label: str | None = None + ) -> type[BatchJobServiceTransport]: ... class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): DEFAULT_ENDPOINT: str @@ -39,43 +39,43 @@ class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): customer_id: str, bidding_strategy_id: str ) -> str: ... @staticmethod - def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_accessible_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_path( customer_id: str, ad_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_bid_modifier_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_customizer_path( customer_id: str, @@ -84,291 +84,291 @@ class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): customizer_attribute_id: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_customizer_path( customer_id: str, ad_group_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_extension_setting_path( customer_id: str, ad_group_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_feed_path(customer_id: str, ad_group_id: str, feed_id: str) -> str: ... @staticmethod - def parse_ad_group_feed_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_feed_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_parameter_path( customer_id: str, ad_group_id: str, criterion_id: str, parameter_index: str ) -> str: ... @staticmethod - def parse_ad_parameter_path(path: str) -> Dict[str, str]: ... + def parse_ad_parameter_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_asset_path( customer_id: str, asset_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_asset_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_listing_group_filter_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_listing_group_filter_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_listing_group_filter_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_signal_path( customer_id: str, asset_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_asset_group_signal_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_signal_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_asset_path( customer_id: str, asset_set_id: str, asset_id: str ) -> str: ... @staticmethod - def parse_asset_set_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_asset_path(path: str) -> dict[str, str]: ... @staticmethod def audience_path(customer_id: str, audience_id: str) -> str: ... @staticmethod - def parse_audience_path(path: str) -> Dict[str, str]: ... + def parse_audience_path(path: str) -> dict[str, str]: ... @staticmethod def batch_job_path(customer_id: str, batch_job_id: str) -> str: ... @staticmethod - def parse_batch_job_path(path: str) -> Dict[str, str]: ... + def parse_batch_job_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_data_exclusion_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: ... + def parse_bidding_data_exclusion_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_seasonality_adjustment_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: ... + def parse_bidding_seasonality_adjustment_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_path( customer_id: str, campaign_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_campaign_asset_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_set_path( customer_id: str, campaign_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_bid_modifier_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_campaign_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_conversion_goal_path( customer_id: str, campaign_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_criterion_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_customizer_path( customer_id: str, campaign_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_campaign_customizer_path(path: str) -> Dict[str, str]: ... + def parse_campaign_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_draft_path( customer_id: str, base_campaign_id: str, draft_id: str ) -> str: ... @staticmethod - def parse_campaign_draft_path(path: str) -> Dict[str, str]: ... + def parse_campaign_draft_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_extension_setting_path( customer_id: str, campaign_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_campaign_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_feed_path(customer_id: str, campaign_id: str, feed_id: str) -> str: ... @staticmethod - def parse_campaign_feed_path(path: str) -> Dict[str, str]: ... + def parse_campaign_feed_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_shared_set_path( customer_id: str, campaign_id: str, shared_set_id: str ) -> str: ... @staticmethod - def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_custom_variable_path( customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_goal_campaign_config_path( customer_id: str, campaign_id: str ) -> str: ... @staticmethod - def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: ... + def parse_conversion_goal_campaign_config_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_path( customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_set_path( customer_id: str, conversion_value_rule_set_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_set_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_path( customer_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_customer_asset_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_path(path: str) -> dict[str, str]: ... @staticmethod def customer_conversion_goal_path( customer_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_customizer_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customer_customizer_path(path: str) -> Dict[str, str]: ... + def parse_customer_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_extension_setting_path( customer_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_customer_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def customer_feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_customer_feed_path(path: str) -> Dict[str, str]: ... + def parse_customer_feed_path(path: str) -> dict[str, str]: ... @staticmethod def customer_label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_customer_label_path(path: str) -> Dict[str, str]: ... + def parse_customer_label_path(path: str) -> dict[str, str]: ... @staticmethod def customer_negative_criterion_path( customer_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: ... + def parse_customer_negative_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_arm_path( customer_id: str, trial_id: str, trial_arm_id: str ) -> str: ... @staticmethod - def parse_experiment_arm_path(path: str) -> Dict[str, str]: ... + def parse_experiment_arm_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_link_path( customer_id: str, feed_id: str, feed_item_set_id: str, feed_item_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_link_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_target_path( customer_id: str, @@ -378,155 +378,149 @@ class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): feed_item_target_id: str, ) -> str: ... @staticmethod - def parse_feed_item_target_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_target_path(path: str) -> dict[str, str]: ... @staticmethod def feed_mapping_path( customer_id: str, feed_id: str, feed_mapping_id: str ) -> str: ... @staticmethod - def parse_feed_mapping_path(path: str) -> Dict[str, str]: ... + def parse_feed_mapping_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_path( customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_keyword_path( customer_id: str, keyword_plan_ad_group_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_keyword_path( customer_id: str, keyword_plan_campaign_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def language_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_language_constant_path(path: str) -> Dict[str, str]: ... + def parse_language_constant_path(path: str) -> dict[str, str]: ... @staticmethod def media_file_path(customer_id: str, media_file_id: str) -> str: ... @staticmethod - def parse_media_file_path(path: str) -> Dict[str, str]: ... + def parse_media_file_path(path: str) -> dict[str, str]: ... @staticmethod def remarketing_action_path( customer_id: str, remarketing_action_id: str ) -> str: ... @staticmethod - def parse_remarketing_action_path(path: str) -> Dict[str, str]: ... + def parse_remarketing_action_path(path: str) -> dict[str, str]: ... @staticmethod def shared_criterion_path( customer_id: str, shared_set_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_shared_criterion_path(path: str) -> Dict[str, str]: ... + def parse_shared_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_setting_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_setting_path(path: str) -> dict[str, str]: ... @staticmethod def user_interest_path(customer_id: str, user_interest_id: str) -> str: ... @staticmethod - def parse_user_interest_path(path: str) -> Dict[str, str]: ... + def parse_user_interest_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BatchJobServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BatchJobServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_batch_job( self, - request: Optional[Union[batch_job_service.MutateBatchJobRequest, dict]] = None, + request: batch_job_service.MutateBatchJobRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[batch_job_service.BatchJobOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: batch_job_service.BatchJobOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> batch_job_service.MutateBatchJobResponse: ... def list_batch_job_results( self, - request: Optional[ - Union[batch_job_service.ListBatchJobResultsRequest, dict] - ] = None, + request: batch_job_service.ListBatchJobResultsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.ListBatchJobResultsPager: ... def run_batch_job( self, - request: Optional[Union[batch_job_service.RunBatchJobRequest, dict]] = None, + request: batch_job_service.RunBatchJobRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... def add_batch_job_operations( self, - request: Optional[ - Union[batch_job_service.AddBatchJobOperationsRequest, dict] - ] = None, + request: batch_job_service.AddBatchJobOperationsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - sequence_token: Optional[str] = None, - mutate_operations: Optional[ - MutableSequence[google_ads_service.MutateOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + sequence_token: str | None = None, + mutate_operations: MutableSequence[google_ads_service.MutateOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> batch_job_service.AddBatchJobOperationsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/batch_job_service/pagers.pyi b/google-stubs/ads/googleads/v14/services/services/batch_job_service/pagers.pyi index 6f985989a..56d06ca02 100644 --- a/google-stubs/ads/googleads/v14/services/services/batch_job_service/pagers.pyi +++ b/google-stubs/ads/googleads/v14/services/services/batch_job_service/pagers.pyi @@ -10,7 +10,7 @@ class ListBatchJobResultsPager: method: Callable[..., batch_job_service.ListBatchJobResultsResponse], request: batch_job_service.ListBatchJobResultsRequest, response: batch_job_service.ListBatchJobResultsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/batch_job_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/batch_job_service/transports/base.pyi index d7eb7f8da..85c4e6796 100644 --- a/google-stubs/ads/googleads/v14/services/services/batch_job_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/batch_job_service/transports/base.pyi @@ -15,12 +15,12 @@ class BatchJobServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -31,35 +31,26 @@ class BatchJobServiceTransport(abc.ABC): self, ) -> Callable[ [batch_job_service.MutateBatchJobRequest], - Union[ - batch_job_service.MutateBatchJobResponse, - Awaitable[batch_job_service.MutateBatchJobResponse], - ], + batch_job_service.MutateBatchJobResponse | Awaitable[batch_job_service.MutateBatchJobResponse], ]: ... @property def list_batch_job_results( self, ) -> Callable[ [batch_job_service.ListBatchJobResultsRequest], - Union[ - batch_job_service.ListBatchJobResultsResponse, - Awaitable[batch_job_service.ListBatchJobResultsResponse], - ], + batch_job_service.ListBatchJobResultsResponse | Awaitable[batch_job_service.ListBatchJobResultsResponse], ]: ... @property def run_batch_job( self, ) -> Callable[ [batch_job_service.RunBatchJobRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... @property def add_batch_job_operations( self, ) -> Callable[ [batch_job_service.AddBatchJobOperationsRequest], - Union[ - batch_job_service.AddBatchJobOperationsResponse, - Awaitable[batch_job_service.AddBatchJobOperationsResponse], - ], + batch_job_service.AddBatchJobOperationsResponse | Awaitable[batch_job_service.AddBatchJobOperationsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/batch_job_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/batch_job_service/transports/grpc.pyi index 34852337f..e2a2aeb38 100644 --- a/google-stubs/ads/googleads/v14/services/services/batch_job_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/batch_job_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class BatchJobServiceGrpcTransport(BatchJobServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/client.pyi index ed9d6c21a..f893b9b24 100644 --- a/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BiddingDataExclusionServiceTransport class BiddingDataExclusionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BiddingDataExclusionServiceTransport]: ... + cls, label: str | None = None + ) -> type[BiddingDataExclusionServiceTransport]: ... class BiddingDataExclusionServiceClient( metaclass=BiddingDataExclusionServiceClientMeta @@ -36,54 +36,46 @@ class BiddingDataExclusionServiceClient( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: ... + def parse_bidding_data_exclusion_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BiddingDataExclusionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BiddingDataExclusionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_bidding_data_exclusions( self, - request: Optional[ - Union[ - bidding_data_exclusion_service.MutateBiddingDataExclusionsRequest, dict - ] - ] = None, + request: bidding_data_exclusion_service.MutateBiddingDataExclusionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - bidding_data_exclusion_service.BiddingDataExclusionOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[bidding_data_exclusion_service.BiddingDataExclusionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/base.pyi index 18468a2fb..b4d1a8af4 100644 --- a/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/base.pyi @@ -14,12 +14,12 @@ class BiddingDataExclusionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class BiddingDataExclusionServiceTransport(abc.ABC): self, ) -> Callable[ [bidding_data_exclusion_service.MutateBiddingDataExclusionsRequest], - Union[ - bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse, - Awaitable[ - bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse - ], - ], + bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse | Awaitable[bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/grpc.pyi index 89e34ded3..0d6eead8b 100644 --- a/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/bidding_data_exclusion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BiddingDataExclusionServiceGrpcTransport(BiddingDataExclusionServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/client.pyi index acd2a9150..d20e44717 100644 --- a/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import BiddingSeasonalityAdjustmentServiceTransport class BiddingSeasonalityAdjustmentServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BiddingSeasonalityAdjustmentServiceTransport]: ... + cls, label: str | None = None + ) -> type[BiddingSeasonalityAdjustmentServiceTransport]: ... class BiddingSeasonalityAdjustmentServiceClient( metaclass=BiddingSeasonalityAdjustmentServiceClientMeta @@ -38,59 +38,48 @@ class BiddingSeasonalityAdjustmentServiceClient( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: ... + def parse_bidding_seasonality_adjustment_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, BiddingSeasonalityAdjustmentServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BiddingSeasonalityAdjustmentServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_bidding_seasonality_adjustments( self, - request: Optional[ - Union[ - bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsRequest, - dict, - ] - ] = None, + request: bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - bidding_seasonality_adjustment_service.BiddingSeasonalityAdjustmentOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[bidding_seasonality_adjustment_service.BiddingSeasonalityAdjustmentOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse ): ... diff --git a/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/base.pyi index 8adcc70f4..b3964d424 100644 --- a/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/base.pyi @@ -16,12 +16,12 @@ class BiddingSeasonalityAdjustmentServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class BiddingSeasonalityAdjustmentServiceTransport(abc.ABC): [ bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsRequest ], - Union[ - bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse, - Awaitable[ - bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse - ], - ], + bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse | Awaitable[bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi index c6ac9fa15..96d9a97a4 100644 --- a/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class BiddingSeasonalityAdjustmentServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/client.pyi index 5fe0c06a9..be92b1fab 100644 --- a/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BiddingStrategyServiceTransport class BiddingStrategyServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BiddingStrategyServiceTransport]: ... + cls, label: str | None = None + ) -> type[BiddingStrategyServiceTransport]: ... class BiddingStrategyServiceClient(metaclass=BiddingStrategyServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class BiddingStrategyServiceClient(metaclass=BiddingStrategyServiceClientMeta): @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BiddingStrategyServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BiddingStrategyServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_bidding_strategies( self, - request: Optional[ - Union[bidding_strategy_service.MutateBiddingStrategiesRequest, dict] - ] = None, + request: bidding_strategy_service.MutateBiddingStrategiesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[bidding_strategy_service.BiddingStrategyOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[bidding_strategy_service.BiddingStrategyOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> bidding_strategy_service.MutateBiddingStrategiesResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/transports/base.pyi index 8c40aeb7a..24e635088 100644 --- a/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/transports/base.pyi @@ -14,12 +14,12 @@ class BiddingStrategyServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class BiddingStrategyServiceTransport(abc.ABC): self, ) -> Callable[ [bidding_strategy_service.MutateBiddingStrategiesRequest], - Union[ - bidding_strategy_service.MutateBiddingStrategiesResponse, - Awaitable[bidding_strategy_service.MutateBiddingStrategiesResponse], - ], + bidding_strategy_service.MutateBiddingStrategiesResponse | Awaitable[bidding_strategy_service.MutateBiddingStrategiesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/transports/grpc.pyi index 1c01d0cea..0a9539d70 100644 --- a/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/bidding_strategy_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BiddingStrategyServiceGrpcTransport(BiddingStrategyServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/billing_setup_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/billing_setup_service/client.pyi index db56a1c2a..471d236b1 100644 --- a/google-stubs/ads/googleads/v14/services/services/billing_setup_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/billing_setup_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BillingSetupServiceTransport class BillingSetupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BillingSetupServiceTransport]: ... + cls, label: str | None = None + ) -> type[BillingSetupServiceTransport]: ... class BillingSetupServiceClient(metaclass=BillingSetupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,48 +32,46 @@ class BillingSetupServiceClient(metaclass=BillingSetupServiceClientMeta): @staticmethod def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ... @staticmethod - def parse_billing_setup_path(path: str) -> Dict[str, str]: ... + def parse_billing_setup_path(path: str) -> dict[str, str]: ... @staticmethod def payments_account_path(customer_id: str, payments_account_id: str) -> str: ... @staticmethod - def parse_payments_account_path(path: str) -> Dict[str, str]: ... + def parse_payments_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BillingSetupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BillingSetupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_billing_setup( self, - request: Optional[ - Union[billing_setup_service.MutateBillingSetupRequest, dict] - ] = None, + request: billing_setup_service.MutateBillingSetupRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[billing_setup_service.BillingSetupOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: billing_setup_service.BillingSetupOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> billing_setup_service.MutateBillingSetupResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/billing_setup_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/billing_setup_service/transports/base.pyi index 77f05de4e..bf10423e8 100644 --- a/google-stubs/ads/googleads/v14/services/services/billing_setup_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/billing_setup_service/transports/base.pyi @@ -14,12 +14,12 @@ class BillingSetupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class BillingSetupServiceTransport(abc.ABC): self, ) -> Callable[ [billing_setup_service.MutateBillingSetupRequest], - Union[ - billing_setup_service.MutateBillingSetupResponse, - Awaitable[billing_setup_service.MutateBillingSetupResponse], - ], + billing_setup_service.MutateBillingSetupResponse | Awaitable[billing_setup_service.MutateBillingSetupResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/billing_setup_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/billing_setup_service/transports/grpc.pyi index 21510bc3e..a5a950f8f 100644 --- a/google-stubs/ads/googleads/v14/services/services/billing_setup_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/billing_setup_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BillingSetupServiceGrpcTransport(BillingSetupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/client.pyi index f73049c40..d14c209b7 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignAssetServiceTransport class CampaignAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignAssetServiceTransport]: ... class CampaignAssetServiceClient(metaclass=CampaignAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignAssetServiceClient(metaclass=CampaignAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_path( customer_id: str, campaign_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_campaign_asset_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_assets( self, - request: Optional[ - Union[campaign_asset_service.MutateCampaignAssetsRequest, dict] - ] = None, + request: campaign_asset_service.MutateCampaignAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_asset_service.CampaignAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_asset_service.CampaignAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_asset_service.MutateCampaignAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/transports/base.pyi index baae994b9..c70f08103 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignAssetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_asset_service.MutateCampaignAssetsRequest], - Union[ - campaign_asset_service.MutateCampaignAssetsResponse, - Awaitable[campaign_asset_service.MutateCampaignAssetsResponse], - ], + campaign_asset_service.MutateCampaignAssetsResponse | Awaitable[campaign_asset_service.MutateCampaignAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/transports/grpc.pyi index 5b27fecac..c223854f9 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignAssetServiceGrpcTransport(CampaignAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/client.pyi index 5a45341bd..a626421b8 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignAssetSetServiceTransport class CampaignAssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignAssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignAssetSetServiceTransport]: ... class CampaignAssetSetServiceClient(metaclass=CampaignAssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignAssetSetServiceClient(metaclass=CampaignAssetSetServiceClientMeta) @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_set_path( customer_id: str, campaign_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignAssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignAssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_asset_sets( self, - request: Optional[ - Union[campaign_asset_set_service.MutateCampaignAssetSetsRequest, dict] - ] = None, + request: campaign_asset_set_service.MutateCampaignAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_asset_set_service.CampaignAssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_asset_set_service.CampaignAssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_asset_set_service.MutateCampaignAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/transports/base.pyi index 16a9b4a1e..5e0d65825 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignAssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignAssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_asset_set_service.MutateCampaignAssetSetsRequest], - Union[ - campaign_asset_set_service.MutateCampaignAssetSetsResponse, - Awaitable[campaign_asset_set_service.MutateCampaignAssetSetsResponse], - ], + campaign_asset_set_service.MutateCampaignAssetSetsResponse | Awaitable[campaign_asset_set_service.MutateCampaignAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/transports/grpc.pyi index 9ec8f7045..38419be86 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignAssetSetServiceGrpcTransport(CampaignAssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/client.pyi index 0f155be2d..430f4f144 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignBidModifierServiceTransport class CampaignBidModifierServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignBidModifierServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignBidModifierServiceTransport]: ... class CampaignBidModifierServiceClient(metaclass=CampaignBidModifierServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CampaignBidModifierServiceClient(metaclass=CampaignBidModifierServiceClien @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_bid_modifier_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_campaign_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignBidModifierServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignBidModifierServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_bid_modifiers( self, - request: Optional[ - Union[campaign_bid_modifier_service.MutateCampaignBidModifiersRequest, dict] - ] = None, + request: campaign_bid_modifier_service.MutateCampaignBidModifiersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_bid_modifier_service.CampaignBidModifierOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_bid_modifier_service.CampaignBidModifierOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_bid_modifier_service.MutateCampaignBidModifiersResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/base.pyi index efa881fc9..f2e62f38c 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignBidModifierServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignBidModifierServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_bid_modifier_service.MutateCampaignBidModifiersRequest], - Union[ - campaign_bid_modifier_service.MutateCampaignBidModifiersResponse, - Awaitable[campaign_bid_modifier_service.MutateCampaignBidModifiersResponse], - ], + campaign_bid_modifier_service.MutateCampaignBidModifiersResponse | Awaitable[campaign_bid_modifier_service.MutateCampaignBidModifiersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/grpc.pyi index 872278d61..fb49cb27a 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_bid_modifier_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignBidModifierServiceGrpcTransport(CampaignBidModifierServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/client.pyi index 26b1544ee..abf34096c 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignBudgetServiceTransport class CampaignBudgetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignBudgetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignBudgetServiceTransport]: ... class CampaignBudgetServiceClient(metaclass=CampaignBudgetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CampaignBudgetServiceClient(metaclass=CampaignBudgetServiceClientMeta): @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignBudgetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignBudgetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_budgets( self, - request: Optional[ - Union[campaign_budget_service.MutateCampaignBudgetsRequest, dict] - ] = None, + request: campaign_budget_service.MutateCampaignBudgetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_budget_service.CampaignBudgetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_budget_service.CampaignBudgetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_budget_service.MutateCampaignBudgetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/transports/base.pyi index 6b8609e5c..6b65432ab 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignBudgetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignBudgetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_budget_service.MutateCampaignBudgetsRequest], - Union[ - campaign_budget_service.MutateCampaignBudgetsResponse, - Awaitable[campaign_budget_service.MutateCampaignBudgetsResponse], - ], + campaign_budget_service.MutateCampaignBudgetsResponse | Awaitable[campaign_budget_service.MutateCampaignBudgetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/transports/grpc.pyi index 107047f4e..0274f98d5 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_budget_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignBudgetServiceGrpcTransport(CampaignBudgetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/client.pyi index 651dc833b..525e44a2c 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignConversionGoalServiceTransport class CampaignConversionGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignConversionGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignConversionGoalServiceTransport]: ... class CampaignConversionGoalServiceClient( metaclass=CampaignConversionGoalServiceClientMeta @@ -34,57 +34,48 @@ class CampaignConversionGoalServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_conversion_goal_path( customer_id: str, campaign_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignConversionGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignConversionGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_conversion_goals( self, - request: Optional[ - Union[ - campaign_conversion_goal_service.MutateCampaignConversionGoalsRequest, - dict, - ] - ] = None, + request: campaign_conversion_goal_service.MutateCampaignConversionGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - campaign_conversion_goal_service.CampaignConversionGoalOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_conversion_goal_service.CampaignConversionGoalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/base.pyi index ba070166e..2bec7c15d 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignConversionGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CampaignConversionGoalServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_conversion_goal_service.MutateCampaignConversionGoalsRequest], - Union[ - campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse, - Awaitable[ - campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse - ], - ], + campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse | Awaitable[campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/grpc.pyi index 2ed55f43d..e95097104 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_conversion_goal_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CampaignConversionGoalServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/client.pyi index d4c5b9229..ac2efdd7c 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignCriterionServiceTransport class CampaignCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignCriterionServiceTransport]: ... class CampaignCriterionServiceClient(metaclass=CampaignCriterionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CampaignCriterionServiceClient(metaclass=CampaignCriterionServiceClientMet @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_criterion_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignCriterionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_criteria( self, - request: Optional[ - Union[campaign_criterion_service.MutateCampaignCriteriaRequest, dict] - ] = None, + request: campaign_criterion_service.MutateCampaignCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_criterion_service.CampaignCriterionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_criterion_service.CampaignCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_criterion_service.MutateCampaignCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/transports/base.pyi index d00eaad77..d0752c028 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_criterion_service.MutateCampaignCriteriaRequest], - Union[ - campaign_criterion_service.MutateCampaignCriteriaResponse, - Awaitable[campaign_criterion_service.MutateCampaignCriteriaResponse], - ], + campaign_criterion_service.MutateCampaignCriteriaResponse | Awaitable[campaign_criterion_service.MutateCampaignCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/transports/grpc.pyi index bc6ce7396..c9095f45d 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_criterion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignCriterionServiceGrpcTransport(CampaignCriterionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/client.pyi index 8887ab79c..89b9e00b6 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignCustomizerServiceTransport class CampaignCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignCustomizerServiceTransport]: ... class CampaignCustomizerServiceClient(metaclass=CampaignCustomizerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class CampaignCustomizerServiceClient(metaclass=CampaignCustomizerServiceClientM @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_customizer_path( customer_id: str, campaign_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_campaign_customizer_path(path: str) -> Dict[str, str]: ... + def parse_campaign_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignCustomizerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_customizers( self, - request: Optional[ - Union[campaign_customizer_service.MutateCampaignCustomizersRequest, dict] - ] = None, + request: campaign_customizer_service.MutateCampaignCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_customizer_service.CampaignCustomizerOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_customizer_service.CampaignCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_customizer_service.MutateCampaignCustomizersResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/transports/base.pyi index 0e94dade8..1bbc59e95 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignCustomizerServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_customizer_service.MutateCampaignCustomizersRequest], - Union[ - campaign_customizer_service.MutateCampaignCustomizersResponse, - Awaitable[campaign_customizer_service.MutateCampaignCustomizersResponse], - ], + campaign_customizer_service.MutateCampaignCustomizersResponse | Awaitable[campaign_customizer_service.MutateCampaignCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/transports/grpc.pyi index f4dfbe251..131ae975b 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_customizer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignCustomizerServiceGrpcTransport(CampaignCustomizerServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/client.pyi index 93b657017..9162a9479 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import CampaignDraftServiceTransport class CampaignDraftServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignDraftServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignDraftServiceTransport]: ... class CampaignDraftServiceClient(metaclass=CampaignDraftServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,74 +34,66 @@ class CampaignDraftServiceClient(metaclass=CampaignDraftServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_draft_path( customer_id: str, base_campaign_id: str, draft_id: str ) -> str: ... @staticmethod - def parse_campaign_draft_path(path: str) -> Dict[str, str]: ... + def parse_campaign_draft_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignDraftServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignDraftServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_drafts( self, - request: Optional[ - Union[campaign_draft_service.MutateCampaignDraftsRequest, dict] - ] = None, + request: campaign_draft_service.MutateCampaignDraftsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_draft_service.CampaignDraftOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_draft_service.CampaignDraftOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_draft_service.MutateCampaignDraftsResponse: ... def promote_campaign_draft( self, - request: Optional[ - Union[campaign_draft_service.PromoteCampaignDraftRequest, dict] - ] = None, + request: campaign_draft_service.PromoteCampaignDraftRequest | dict | None = None, *, - campaign_draft: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + campaign_draft: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... def list_campaign_draft_async_errors( self, - request: Optional[ - Union[campaign_draft_service.ListCampaignDraftAsyncErrorsRequest, dict] - ] = None, + request: campaign_draft_service.ListCampaignDraftAsyncErrorsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.ListCampaignDraftAsyncErrorsPager: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/pagers.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/pagers.pyi index 137867a4b..5a8052ee2 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/pagers.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/pagers.pyi @@ -14,7 +14,7 @@ class ListCampaignDraftAsyncErrorsPager: ], request: campaign_draft_service.ListCampaignDraftAsyncErrorsRequest, response: campaign_draft_service.ListCampaignDraftAsyncErrorsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/transports/base.pyi index d11b8f0d3..64f1e51a3 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/transports/base.pyi @@ -15,12 +15,12 @@ class CampaignDraftServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -31,25 +31,19 @@ class CampaignDraftServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_draft_service.MutateCampaignDraftsRequest], - Union[ - campaign_draft_service.MutateCampaignDraftsResponse, - Awaitable[campaign_draft_service.MutateCampaignDraftsResponse], - ], + campaign_draft_service.MutateCampaignDraftsResponse | Awaitable[campaign_draft_service.MutateCampaignDraftsResponse], ]: ... @property def promote_campaign_draft( self, ) -> Callable[ [campaign_draft_service.PromoteCampaignDraftRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... @property def list_campaign_draft_async_errors( self, ) -> Callable[ [campaign_draft_service.ListCampaignDraftAsyncErrorsRequest], - Union[ - campaign_draft_service.ListCampaignDraftAsyncErrorsResponse, - Awaitable[campaign_draft_service.ListCampaignDraftAsyncErrorsResponse], - ], + campaign_draft_service.ListCampaignDraftAsyncErrorsResponse | Awaitable[campaign_draft_service.ListCampaignDraftAsyncErrorsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/transports/grpc.pyi index 5f4308248..397898649 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_draft_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class CampaignDraftServiceGrpcTransport(CampaignDraftServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/client.pyi index 26c7c81a6..42091a12a 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignExtensionSettingServiceTransport class CampaignExtensionSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignExtensionSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignExtensionSettingServiceTransport]: ... class CampaignExtensionSettingServiceClient( metaclass=CampaignExtensionSettingServiceClientMeta @@ -34,63 +34,52 @@ class CampaignExtensionSettingServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_extension_setting_path( customer_id: str, campaign_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_campaign_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CampaignExtensionSettingServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignExtensionSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_extension_settings( self, - request: Optional[ - Union[ - campaign_extension_setting_service.MutateCampaignExtensionSettingsRequest, - dict, - ] - ] = None, + request: campaign_extension_setting_service.MutateCampaignExtensionSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - campaign_extension_setting_service.CampaignExtensionSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_extension_setting_service.CampaignExtensionSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/base.pyi index d7709fc2f..c9e8beccf 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignExtensionSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CampaignExtensionSettingServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_extension_setting_service.MutateCampaignExtensionSettingsRequest], - Union[ - campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse, - Awaitable[ - campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse - ], - ], + campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse | Awaitable[campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/grpc.pyi index 4743aed13..82d93fff7 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_extension_setting_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CampaignExtensionSettingServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/client.pyi index 5be13316c..2c7a891ac 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignFeedServiceTransport class CampaignFeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignFeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignFeedServiceTransport]: ... class CampaignFeedServiceClient(metaclass=CampaignFeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class CampaignFeedServiceClient(metaclass=CampaignFeedServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_feed_path(customer_id: str, campaign_id: str, feed_id: str) -> str: ... @staticmethod - def parse_campaign_feed_path(path: str) -> Dict[str, str]: ... + def parse_campaign_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignFeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignFeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_feeds( self, - request: Optional[ - Union[campaign_feed_service.MutateCampaignFeedsRequest, dict] - ] = None, + request: campaign_feed_service.MutateCampaignFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_feed_service.CampaignFeedOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_feed_service.CampaignFeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_feed_service.MutateCampaignFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/transports/base.pyi index 93de6c798..abfc3e09a 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignFeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignFeedServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_feed_service.MutateCampaignFeedsRequest], - Union[ - campaign_feed_service.MutateCampaignFeedsResponse, - Awaitable[campaign_feed_service.MutateCampaignFeedsResponse], - ], + campaign_feed_service.MutateCampaignFeedsResponse | Awaitable[campaign_feed_service.MutateCampaignFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/transports/grpc.pyi index adcc31d5f..26281d00d 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignFeedServiceGrpcTransport(CampaignFeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_group_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_group_service/client.pyi index 9e1135c15..1b0c347ae 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_group_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignGroupServiceTransport class CampaignGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignGroupServiceTransport]: ... class CampaignGroupServiceClient(metaclass=CampaignGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CampaignGroupServiceClient(metaclass=CampaignGroupServiceClientMeta): @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_groups( self, - request: Optional[ - Union[campaign_group_service.MutateCampaignGroupsRequest, dict] - ] = None, + request: campaign_group_service.MutateCampaignGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_group_service.CampaignGroupOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_group_service.CampaignGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_group_service.MutateCampaignGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_group_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_group_service/transports/base.pyi index b31b5f32a..ea0f6e933 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignGroupServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_group_service.MutateCampaignGroupsRequest], - Union[ - campaign_group_service.MutateCampaignGroupsResponse, - Awaitable[campaign_group_service.MutateCampaignGroupsResponse], - ], + campaign_group_service.MutateCampaignGroupsResponse | Awaitable[campaign_group_service.MutateCampaignGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_group_service/transports/grpc.pyi index f2cb43dbb..82fdfe176 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignGroupServiceGrpcTransport(CampaignGroupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_label_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_label_service/client.pyi index fcbbd654b..fcc923726 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_label_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignLabelServiceTransport class CampaignLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignLabelServiceTransport]: ... class CampaignLabelServiceClient(metaclass=CampaignLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignLabelServiceClient(metaclass=CampaignLabelServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_labels( self, - request: Optional[ - Union[campaign_label_service.MutateCampaignLabelsRequest, dict] - ] = None, + request: campaign_label_service.MutateCampaignLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_label_service.CampaignLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_label_service.CampaignLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_label_service.MutateCampaignLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_label_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_label_service/transports/base.pyi index 78b7a904a..ec1cdac96 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignLabelServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_label_service.MutateCampaignLabelsRequest], - Union[ - campaign_label_service.MutateCampaignLabelsResponse, - Awaitable[campaign_label_service.MutateCampaignLabelsResponse], - ], + campaign_label_service.MutateCampaignLabelsResponse | Awaitable[campaign_label_service.MutateCampaignLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_label_service/transports/grpc.pyi index 086259a60..48449e8fb 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignLabelServiceGrpcTransport(CampaignLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_service/client.pyi index d02e8f8b7..3d689b87d 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignServiceTransport class CampaignServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignServiceTransport]: ... class CampaignServiceClient(metaclass=CampaignServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,78 +34,76 @@ class CampaignServiceClient(metaclass=CampaignServiceClientMeta): customer_id: str, bidding_strategy_id: str ) -> str: ... @staticmethod - def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_accessible_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaigns( self, - request: Optional[Union[campaign_service.MutateCampaignsRequest, dict]] = None, + request: campaign_service.MutateCampaignsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_service.CampaignOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_service.CampaignOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_service.MutateCampaignsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_service/transports/base.pyi index 9a7ec7509..c9bb0f852 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_service.MutateCampaignsRequest], - Union[ - campaign_service.MutateCampaignsResponse, - Awaitable[campaign_service.MutateCampaignsResponse], - ], + campaign_service.MutateCampaignsResponse | Awaitable[campaign_service.MutateCampaignsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_service/transports/grpc.pyi index aa94709f2..0b315bc3a 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignServiceGrpcTransport(CampaignServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/client.pyi index 30de74e7b..8ba225297 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignSharedSetServiceTransport class CampaignSharedSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignSharedSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignSharedSetServiceTransport]: ... class CampaignSharedSetServiceClient(metaclass=CampaignSharedSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignSharedSetServiceClient(metaclass=CampaignSharedSetServiceClientMet @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_shared_set_path( customer_id: str, campaign_id: str, shared_set_id: str ) -> str: ... @staticmethod - def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignSharedSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignSharedSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_shared_sets( self, - request: Optional[ - Union[campaign_shared_set_service.MutateCampaignSharedSetsRequest, dict] - ] = None, + request: campaign_shared_set_service.MutateCampaignSharedSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_shared_set_service.CampaignSharedSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_shared_set_service.CampaignSharedSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_shared_set_service.MutateCampaignSharedSetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/transports/base.pyi index 554dcfd39..5057633a1 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignSharedSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignSharedSetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_shared_set_service.MutateCampaignSharedSetsRequest], - Union[ - campaign_shared_set_service.MutateCampaignSharedSetsResponse, - Awaitable[campaign_shared_set_service.MutateCampaignSharedSetsResponse], - ], + campaign_shared_set_service.MutateCampaignSharedSetsResponse | Awaitable[campaign_shared_set_service.MutateCampaignSharedSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/transports/grpc.pyi index 8729537c1..25cd4ab8c 100644 --- a/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/campaign_shared_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignSharedSetServiceGrpcTransport(CampaignSharedSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_action_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_action_service/client.pyi index e68457f82..48ba45932 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_action_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_action_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionActionServiceTransport class ConversionActionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionActionServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionActionServiceTransport]: ... class ConversionActionServiceClient(metaclass=ConversionActionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,50 +32,46 @@ class ConversionActionServiceClient(metaclass=ConversionActionServiceClientMeta) @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionActionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionActionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_actions( self, - request: Optional[ - Union[conversion_action_service.MutateConversionActionsRequest, dict] - ] = None, + request: conversion_action_service.MutateConversionActionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[conversion_action_service.ConversionActionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_action_service.ConversionActionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_action_service.MutateConversionActionsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_action_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_action_service/transports/base.pyi index 4992cc340..6414092f4 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_action_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_action_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionActionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ConversionActionServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_action_service.MutateConversionActionsRequest], - Union[ - conversion_action_service.MutateConversionActionsResponse, - Awaitable[conversion_action_service.MutateConversionActionsResponse], - ], + conversion_action_service.MutateConversionActionsResponse | Awaitable[conversion_action_service.MutateConversionActionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_action_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_action_service/transports/grpc.pyi index 7dae8680a..094dee6d5 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_action_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_action_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ConversionActionServiceGrpcTransport(ConversionActionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/client.pyi index eae6d83c3..4eb36f4b9 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionAdjustmentUploadServiceTransport class ConversionAdjustmentUploadServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionAdjustmentUploadServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionAdjustmentUploadServiceTransport]: ... class ConversionAdjustmentUploadServiceClient( metaclass=ConversionAdjustmentUploadServiceClientMeta @@ -34,48 +34,39 @@ class ConversionAdjustmentUploadServiceClient( @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ConversionAdjustmentUploadServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionAdjustmentUploadServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def upload_conversion_adjustments( self, - request: Optional[ - Union[ - conversion_adjustment_upload_service.UploadConversionAdjustmentsRequest, - dict, - ] - ] = None, + request: conversion_adjustment_upload_service.UploadConversionAdjustmentsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - conversion_adjustments: Optional[ - MutableSequence[conversion_adjustment_upload_service.ConversionAdjustment] - ] = None, - partial_failure: Optional[bool] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + conversion_adjustments: MutableSequence[conversion_adjustment_upload_service.ConversionAdjustment] | None = None, + partial_failure: bool | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/base.pyi index 55e4df675..c128a7ede 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionAdjustmentUploadServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ConversionAdjustmentUploadServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_adjustment_upload_service.UploadConversionAdjustmentsRequest], - Union[ - conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse, - Awaitable[ - conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse - ], - ], + conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse | Awaitable[conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/grpc.pyi index e8abfdb6a..b7b1ee6b6 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_adjustment_upload_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ConversionAdjustmentUploadServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/client.pyi index df393b1bd..86c5176b9 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionCustomVariableServiceTransport class ConversionCustomVariableServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionCustomVariableServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionCustomVariableServiceTransport]: ... class ConversionCustomVariableServiceClient( metaclass=ConversionCustomVariableServiceClientMeta @@ -36,57 +36,46 @@ class ConversionCustomVariableServiceClient( customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ConversionCustomVariableServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionCustomVariableServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_custom_variables( self, - request: Optional[ - Union[ - conversion_custom_variable_service.MutateConversionCustomVariablesRequest, - dict, - ] - ] = None, + request: conversion_custom_variable_service.MutateConversionCustomVariablesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - conversion_custom_variable_service.ConversionCustomVariableOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_custom_variable_service.ConversionCustomVariableOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_custom_variable_service.MutateConversionCustomVariablesResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/base.pyi index 7c20cebb4..7afc629d2 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionCustomVariableServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ConversionCustomVariableServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_custom_variable_service.MutateConversionCustomVariablesRequest], - Union[ - conversion_custom_variable_service.MutateConversionCustomVariablesResponse, - Awaitable[ - conversion_custom_variable_service.MutateConversionCustomVariablesResponse - ], - ], + conversion_custom_variable_service.MutateConversionCustomVariablesResponse | Awaitable[conversion_custom_variable_service.MutateConversionCustomVariablesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/grpc.pyi index 717aea274..da009ff43 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_custom_variable_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ConversionCustomVariableServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/client.pyi index dd3ebc2bf..5b891c224 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import ConversionGoalCampaignConfigServiceTransport class ConversionGoalCampaignConfigServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionGoalCampaignConfigServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionGoalCampaignConfigServiceTransport]: ... class ConversionGoalCampaignConfigServiceClient( metaclass=ConversionGoalCampaignConfigServiceClientMeta @@ -36,65 +36,54 @@ class ConversionGoalCampaignConfigServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_goal_campaign_config_path( customer_id: str, campaign_id: str ) -> str: ... @staticmethod - def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: ... + def parse_conversion_goal_campaign_config_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ConversionGoalCampaignConfigServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionGoalCampaignConfigServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_goal_campaign_configs( self, - request: Optional[ - Union[ - conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsRequest, - dict, - ] - ] = None, + request: conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - conversion_goal_campaign_config_service.ConversionGoalCampaignConfigOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_goal_campaign_config_service.ConversionGoalCampaignConfigOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse ): ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/base.pyi index bf7d75779..92dea9e66 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/base.pyi @@ -16,12 +16,12 @@ class ConversionGoalCampaignConfigServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class ConversionGoalCampaignConfigServiceTransport(abc.ABC): [ conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsRequest ], - Union[ - conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse, - Awaitable[ - conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse - ], - ], + conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse | Awaitable[conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi index 14cc89165..830c5f9f5 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class ConversionGoalCampaignConfigServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/client.pyi index 93c0bf7f8..31b60e670 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionUploadServiceTransport class ConversionUploadServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionUploadServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionUploadServiceTransport]: ... class ConversionUploadServiceClient(metaclass=ConversionUploadServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,62 +34,54 @@ class ConversionUploadServiceClient(metaclass=ConversionUploadServiceClientMeta) customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionUploadServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionUploadServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def upload_click_conversions( self, - request: Optional[ - Union[conversion_upload_service.UploadClickConversionsRequest, dict] - ] = None, + request: conversion_upload_service.UploadClickConversionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - conversions: Optional[ - MutableSequence[conversion_upload_service.ClickConversion] - ] = None, - partial_failure: Optional[bool] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + conversions: MutableSequence[conversion_upload_service.ClickConversion] | None = None, + partial_failure: bool | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_upload_service.UploadClickConversionsResponse: ... def upload_call_conversions( self, - request: Optional[ - Union[conversion_upload_service.UploadCallConversionsRequest, dict] - ] = None, + request: conversion_upload_service.UploadCallConversionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - conversions: Optional[ - MutableSequence[conversion_upload_service.CallConversion] - ] = None, - partial_failure: Optional[bool] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + conversions: MutableSequence[conversion_upload_service.CallConversion] | None = None, + partial_failure: bool | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_upload_service.UploadCallConversionsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/transports/base.pyi index 7c2ba5f01..bdec646e3 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionUploadServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class ConversionUploadServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_upload_service.UploadClickConversionsRequest], - Union[ - conversion_upload_service.UploadClickConversionsResponse, - Awaitable[conversion_upload_service.UploadClickConversionsResponse], - ], + conversion_upload_service.UploadClickConversionsResponse | Awaitable[conversion_upload_service.UploadClickConversionsResponse], ]: ... @property def upload_call_conversions( self, ) -> Callable[ [conversion_upload_service.UploadCallConversionsRequest], - Union[ - conversion_upload_service.UploadCallConversionsResponse, - Awaitable[conversion_upload_service.UploadCallConversionsResponse], - ], + conversion_upload_service.UploadCallConversionsResponse | Awaitable[conversion_upload_service.UploadCallConversionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/transports/grpc.pyi index 9807a991b..fd35c33dc 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_upload_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ConversionUploadServiceGrpcTransport(ConversionUploadServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/client.pyi index 4ee465c46..6924bbcdf 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionValueRuleServiceTransport class ConversionValueRuleServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionValueRuleServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionValueRuleServiceTransport]: ... class ConversionValueRuleServiceClient(metaclass=ConversionValueRuleServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,62 +34,58 @@ class ConversionValueRuleServiceClient(metaclass=ConversionValueRuleServiceClien customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def user_interest_path(customer_id: str, user_interest_id: str) -> str: ... @staticmethod - def parse_user_interest_path(path: str) -> Dict[str, str]: ... + def parse_user_interest_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionValueRuleServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionValueRuleServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_value_rules( self, - request: Optional[ - Union[conversion_value_rule_service.MutateConversionValueRulesRequest, dict] - ] = None, + request: conversion_value_rule_service.MutateConversionValueRulesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[conversion_value_rule_service.ConversionValueRuleOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_value_rule_service.ConversionValueRuleOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_value_rule_service.MutateConversionValueRulesResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/transports/base.pyi index 605ce2988..3b00f13f8 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionValueRuleServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ConversionValueRuleServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_value_rule_service.MutateConversionValueRulesRequest], - Union[ - conversion_value_rule_service.MutateConversionValueRulesResponse, - Awaitable[conversion_value_rule_service.MutateConversionValueRulesResponse], - ], + conversion_value_rule_service.MutateConversionValueRulesResponse | Awaitable[conversion_value_rule_service.MutateConversionValueRulesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/transports/grpc.pyi index 40ee6330d..cf7e9855a 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ConversionValueRuleServiceGrpcTransport(ConversionValueRuleServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/client.pyi index 016dfc543..6ecb4649b 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionValueRuleSetServiceTransport class ConversionValueRuleSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionValueRuleSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionValueRuleSetServiceTransport]: ... class ConversionValueRuleSetServiceClient( metaclass=ConversionValueRuleSetServiceClientMeta @@ -34,67 +34,58 @@ class ConversionValueRuleSetServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_path( customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_set_path( customer_id: str, conversion_value_rule_set_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_set_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionValueRuleSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionValueRuleSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_value_rule_sets( self, - request: Optional[ - Union[ - conversion_value_rule_set_service.MutateConversionValueRuleSetsRequest, - dict, - ] - ] = None, + request: conversion_value_rule_set_service.MutateConversionValueRuleSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - conversion_value_rule_set_service.ConversionValueRuleSetOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_value_rule_set_service.ConversionValueRuleSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/base.pyi index a4d112e3a..4f31556ce 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionValueRuleSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ConversionValueRuleSetServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_value_rule_set_service.MutateConversionValueRuleSetsRequest], - Union[ - conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse, - Awaitable[ - conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse - ], - ], + conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse | Awaitable[conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/grpc.pyi index 0ead09bb5..2a0bbb95d 100644 --- a/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/conversion_value_rule_set_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ConversionValueRuleSetServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/custom_audience_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/custom_audience_service/client.pyi index 38b240b18..4cfc04d4b 100644 --- a/google-stubs/ads/googleads/v14/services/services/custom_audience_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/custom_audience_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomAudienceServiceTransport class CustomAudienceServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomAudienceServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomAudienceServiceTransport]: ... class CustomAudienceServiceClient(metaclass=CustomAudienceServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CustomAudienceServiceClient(metaclass=CustomAudienceServiceClientMeta): @staticmethod def custom_audience_path(customer_id: str, custom_audience_id: str) -> str: ... @staticmethod - def parse_custom_audience_path(path: str) -> Dict[str, str]: ... + def parse_custom_audience_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomAudienceServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomAudienceServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_custom_audiences( self, - request: Optional[ - Union[custom_audience_service.MutateCustomAudiencesRequest, dict] - ] = None, + request: custom_audience_service.MutateCustomAudiencesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[custom_audience_service.CustomAudienceOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[custom_audience_service.CustomAudienceOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> custom_audience_service.MutateCustomAudiencesResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/custom_audience_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/custom_audience_service/transports/base.pyi index 40f8bce43..fc1ddcc1a 100644 --- a/google-stubs/ads/googleads/v14/services/services/custom_audience_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/custom_audience_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomAudienceServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomAudienceServiceTransport(abc.ABC): self, ) -> Callable[ [custom_audience_service.MutateCustomAudiencesRequest], - Union[ - custom_audience_service.MutateCustomAudiencesResponse, - Awaitable[custom_audience_service.MutateCustomAudiencesResponse], - ], + custom_audience_service.MutateCustomAudiencesResponse | Awaitable[custom_audience_service.MutateCustomAudiencesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/custom_audience_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/custom_audience_service/transports/grpc.pyi index 2df792ab1..43fc3cb49 100644 --- a/google-stubs/ads/googleads/v14/services/services/custom_audience_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/custom_audience_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomAudienceServiceGrpcTransport(CustomAudienceServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/client.pyi index 87b013a53..e26cba667 100644 --- a/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomConversionGoalServiceTransport class CustomConversionGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomConversionGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomConversionGoalServiceTransport]: ... class CustomConversionGoalServiceClient( metaclass=CustomConversionGoalServiceClientMeta @@ -34,54 +34,46 @@ class CustomConversionGoalServiceClient( @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomConversionGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomConversionGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_custom_conversion_goals( self, - request: Optional[ - Union[ - custom_conversion_goal_service.MutateCustomConversionGoalsRequest, dict - ] - ] = None, + request: custom_conversion_goal_service.MutateCustomConversionGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - custom_conversion_goal_service.CustomConversionGoalOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[custom_conversion_goal_service.CustomConversionGoalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> custom_conversion_goal_service.MutateCustomConversionGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/base.pyi index fda8852bd..92add11d5 100644 --- a/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomConversionGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomConversionGoalServiceTransport(abc.ABC): self, ) -> Callable[ [custom_conversion_goal_service.MutateCustomConversionGoalsRequest], - Union[ - custom_conversion_goal_service.MutateCustomConversionGoalsResponse, - Awaitable[ - custom_conversion_goal_service.MutateCustomConversionGoalsResponse - ], - ], + custom_conversion_goal_service.MutateCustomConversionGoalsResponse | Awaitable[custom_conversion_goal_service.MutateCustomConversionGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/grpc.pyi index 9f90b0489..3405f9c7e 100644 --- a/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/custom_conversion_goal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomConversionGoalServiceGrpcTransport(CustomConversionGoalServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/custom_interest_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/custom_interest_service/client.pyi index 0888e4ef2..34c78e704 100644 --- a/google-stubs/ads/googleads/v14/services/services/custom_interest_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/custom_interest_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomInterestServiceTransport class CustomInterestServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomInterestServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomInterestServiceTransport]: ... class CustomInterestServiceClient(metaclass=CustomInterestServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CustomInterestServiceClient(metaclass=CustomInterestServiceClientMeta): @staticmethod def custom_interest_path(customer_id: str, custom_interest_id: str) -> str: ... @staticmethod - def parse_custom_interest_path(path: str) -> Dict[str, str]: ... + def parse_custom_interest_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomInterestServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomInterestServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_custom_interests( self, - request: Optional[ - Union[custom_interest_service.MutateCustomInterestsRequest, dict] - ] = None, + request: custom_interest_service.MutateCustomInterestsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[custom_interest_service.CustomInterestOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[custom_interest_service.CustomInterestOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> custom_interest_service.MutateCustomInterestsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/custom_interest_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/custom_interest_service/transports/base.pyi index ece683e99..ede904afa 100644 --- a/google-stubs/ads/googleads/v14/services/services/custom_interest_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/custom_interest_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomInterestServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomInterestServiceTransport(abc.ABC): self, ) -> Callable[ [custom_interest_service.MutateCustomInterestsRequest], - Union[ - custom_interest_service.MutateCustomInterestsResponse, - Awaitable[custom_interest_service.MutateCustomInterestsResponse], - ], + custom_interest_service.MutateCustomInterestsResponse | Awaitable[custom_interest_service.MutateCustomInterestsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/custom_interest_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/custom_interest_service/transports/grpc.pyi index 668c40e62..0cb27a349 100644 --- a/google-stubs/ads/googleads/v14/services/services/custom_interest_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/custom_interest_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomInterestServiceGrpcTransport(CustomInterestServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_asset_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_asset_service/client.pyi index af19cfe0b..740362d14 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerAssetServiceTransport class CustomerAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerAssetServiceTransport]: ... class CustomerAssetServiceClient(metaclass=CustomerAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CustomerAssetServiceClient(metaclass=CustomerAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_path( customer_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_customer_asset_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_assets( self, - request: Optional[ - Union[customer_asset_service.MutateCustomerAssetsRequest, dict] - ] = None, + request: customer_asset_service.MutateCustomerAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_asset_service.CustomerAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_asset_service.CustomerAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_asset_service.MutateCustomerAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_asset_service/transports/base.pyi index 799aed441..e16a179cc 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerAssetServiceTransport(abc.ABC): self, ) -> Callable[ [customer_asset_service.MutateCustomerAssetsRequest], - Union[ - customer_asset_service.MutateCustomerAssetsResponse, - Awaitable[customer_asset_service.MutateCustomerAssetsResponse], - ], + customer_asset_service.MutateCustomerAssetsResponse | Awaitable[customer_asset_service.MutateCustomerAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_asset_service/transports/grpc.pyi index 729a8d94a..2b90649d2 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerAssetServiceGrpcTransport(CustomerAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/client.pyi index 2431662d5..d91660ee0 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerAssetSetServiceTransport class CustomerAssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerAssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerAssetSetServiceTransport]: ... class CustomerAssetSetServiceClient(metaclass=CustomerAssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class CustomerAssetSetServiceClient(metaclass=CustomerAssetSetServiceClientMeta) @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_customer_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerAssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerAssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_asset_sets( self, - request: Optional[ - Union[customer_asset_set_service.MutateCustomerAssetSetsRequest, dict] - ] = None, + request: customer_asset_set_service.MutateCustomerAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_asset_set_service.CustomerAssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_asset_set_service.CustomerAssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_asset_set_service.MutateCustomerAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/transports/base.pyi index 9219b96d5..2f5119a79 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerAssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerAssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [customer_asset_set_service.MutateCustomerAssetSetsRequest], - Union[ - customer_asset_set_service.MutateCustomerAssetSetsResponse, - Awaitable[customer_asset_set_service.MutateCustomerAssetSetsResponse], - ], + customer_asset_set_service.MutateCustomerAssetSetsResponse | Awaitable[customer_asset_set_service.MutateCustomerAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/transports/grpc.pyi index cacafd49c..43e5b1ba7 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerAssetSetServiceGrpcTransport(CustomerAssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/client.pyi index be34e0792..429d9ba36 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerClientLinkServiceTransport class CustomerClientLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerClientLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerClientLinkServiceTransport]: ... class CustomerClientLinkServiceClient(metaclass=CustomerClientLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CustomerClientLinkServiceClient(metaclass=CustomerClientLinkServiceClientM @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_client_link_path( customer_id: str, client_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_client_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_client_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerClientLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerClientLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_client_link( self, - request: Optional[ - Union[customer_client_link_service.MutateCustomerClientLinkRequest, dict] - ] = None, + request: customer_client_link_service.MutateCustomerClientLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_client_link_service.CustomerClientLinkOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_client_link_service.CustomerClientLinkOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_client_link_service.MutateCustomerClientLinkResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/transports/base.pyi index d08ada6b7..37cbbdd6d 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerClientLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerClientLinkServiceTransport(abc.ABC): self, ) -> Callable[ [customer_client_link_service.MutateCustomerClientLinkRequest], - Union[ - customer_client_link_service.MutateCustomerClientLinkResponse, - Awaitable[customer_client_link_service.MutateCustomerClientLinkResponse], - ], + customer_client_link_service.MutateCustomerClientLinkResponse | Awaitable[customer_client_link_service.MutateCustomerClientLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/transports/grpc.pyi index b9909f586..73815fc21 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_client_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerClientLinkServiceGrpcTransport(CustomerClientLinkServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/client.pyi index 26f327251..bdfd19e9f 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerConversionGoalServiceTransport class CustomerConversionGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerConversionGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerConversionGoalServiceTransport]: ... class CustomerConversionGoalServiceClient( metaclass=CustomerConversionGoalServiceClientMeta @@ -36,51 +36,42 @@ class CustomerConversionGoalServiceClient( customer_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerConversionGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerConversionGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_conversion_goals( self, - request: Optional[ - Union[ - customer_conversion_goal_service.MutateCustomerConversionGoalsRequest, - dict, - ] - ] = None, + request: customer_conversion_goal_service.MutateCustomerConversionGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - customer_conversion_goal_service.CustomerConversionGoalOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_conversion_goal_service.CustomerConversionGoalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_conversion_goal_service.MutateCustomerConversionGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/base.pyi index 1409219b7..e33c399bb 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerConversionGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerConversionGoalServiceTransport(abc.ABC): self, ) -> Callable[ [customer_conversion_goal_service.MutateCustomerConversionGoalsRequest], - Union[ - customer_conversion_goal_service.MutateCustomerConversionGoalsResponse, - Awaitable[ - customer_conversion_goal_service.MutateCustomerConversionGoalsResponse - ], - ], + customer_conversion_goal_service.MutateCustomerConversionGoalsResponse | Awaitable[customer_conversion_goal_service.MutateCustomerConversionGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/grpc.pyi index 28bf4a1cd..930ae7ef8 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_conversion_goal_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CustomerConversionGoalServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/client.pyi index 966c9f630..64acbb275 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerCustomizerServiceTransport class CustomerCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerCustomizerServiceTransport]: ... class CustomerCustomizerServiceClient(metaclass=CustomerCustomizerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,52 +34,48 @@ class CustomerCustomizerServiceClient(metaclass=CustomerCustomizerServiceClientM customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customer_customizer_path(path: str) -> Dict[str, str]: ... + def parse_customer_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerCustomizerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_customizers( self, - request: Optional[ - Union[customer_customizer_service.MutateCustomerCustomizersRequest, dict] - ] = None, + request: customer_customizer_service.MutateCustomerCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_customizer_service.CustomerCustomizerOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_customizer_service.CustomerCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_customizer_service.MutateCustomerCustomizersResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/transports/base.pyi index e600faef1..0bf535e23 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerCustomizerServiceTransport(abc.ABC): self, ) -> Callable[ [customer_customizer_service.MutateCustomerCustomizersRequest], - Union[ - customer_customizer_service.MutateCustomerCustomizersResponse, - Awaitable[customer_customizer_service.MutateCustomerCustomizersResponse], - ], + customer_customizer_service.MutateCustomerCustomizersResponse | Awaitable[customer_customizer_service.MutateCustomerCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/transports/grpc.pyi index 186259767..67fa554c6 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_customizer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerCustomizerServiceGrpcTransport(CustomerCustomizerServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/client.pyi index edf45e888..7e53443f8 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerExtensionSettingServiceTransport class CustomerExtensionSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerExtensionSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerExtensionSettingServiceTransport]: ... class CustomerExtensionSettingServiceClient( metaclass=CustomerExtensionSettingServiceClientMeta @@ -36,57 +36,46 @@ class CustomerExtensionSettingServiceClient( customer_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_customer_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerExtensionSettingServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerExtensionSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_extension_settings( self, - request: Optional[ - Union[ - customer_extension_setting_service.MutateCustomerExtensionSettingsRequest, - dict, - ] - ] = None, + request: customer_extension_setting_service.MutateCustomerExtensionSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - customer_extension_setting_service.CustomerExtensionSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_extension_setting_service.CustomerExtensionSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_extension_setting_service.MutateCustomerExtensionSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/transports/base.pyi index 7a2a641c1..627f0c296 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerExtensionSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerExtensionSettingServiceTransport(abc.ABC): self, ) -> Callable[ [customer_extension_setting_service.MutateCustomerExtensionSettingsRequest], - Union[ - customer_extension_setting_service.MutateCustomerExtensionSettingsResponse, - Awaitable[ - customer_extension_setting_service.MutateCustomerExtensionSettingsResponse - ], - ], + customer_extension_setting_service.MutateCustomerExtensionSettingsResponse | Awaitable[customer_extension_setting_service.MutateCustomerExtensionSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/transports/grpc.pyi index 34de4e73e..17406ed83 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_extension_setting_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CustomerExtensionSettingServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_feed_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_feed_service/client.pyi index 0eaa75fa1..c8b9313a3 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_feed_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerFeedServiceTransport class CustomerFeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerFeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerFeedServiceTransport]: ... class CustomerFeedServiceClient(metaclass=CustomerFeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,50 +32,46 @@ class CustomerFeedServiceClient(metaclass=CustomerFeedServiceClientMeta): @staticmethod def customer_feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_customer_feed_path(path: str) -> Dict[str, str]: ... + def parse_customer_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerFeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerFeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_feeds( self, - request: Optional[ - Union[customer_feed_service.MutateCustomerFeedsRequest, dict] - ] = None, + request: customer_feed_service.MutateCustomerFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_feed_service.CustomerFeedOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_feed_service.CustomerFeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_feed_service.MutateCustomerFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_feed_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_feed_service/transports/base.pyi index 99430fe20..3ba787acc 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerFeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerFeedServiceTransport(abc.ABC): self, ) -> Callable[ [customer_feed_service.MutateCustomerFeedsRequest], - Union[ - customer_feed_service.MutateCustomerFeedsResponse, - Awaitable[customer_feed_service.MutateCustomerFeedsResponse], - ], + customer_feed_service.MutateCustomerFeedsResponse | Awaitable[customer_feed_service.MutateCustomerFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_feed_service/transports/grpc.pyi index b5884f852..99232afbe 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerFeedServiceGrpcTransport(CustomerFeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_label_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_label_service/client.pyi index 693a9917a..05b62c301 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_label_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerLabelServiceTransport class CustomerLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerLabelServiceTransport]: ... class CustomerLabelServiceClient(metaclass=CustomerLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class CustomerLabelServiceClient(metaclass=CustomerLabelServiceClientMeta): @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_customer_label_path(path: str) -> Dict[str, str]: ... + def parse_customer_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_labels( self, - request: Optional[ - Union[customer_label_service.MutateCustomerLabelsRequest, dict] - ] = None, + request: customer_label_service.MutateCustomerLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_label_service.CustomerLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_label_service.CustomerLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_label_service.MutateCustomerLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_label_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_label_service/transports/base.pyi index 9c29a88c7..a5afc6fdc 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerLabelServiceTransport(abc.ABC): self, ) -> Callable[ [customer_label_service.MutateCustomerLabelsRequest], - Union[ - customer_label_service.MutateCustomerLabelsResponse, - Awaitable[customer_label_service.MutateCustomerLabelsResponse], - ], + customer_label_service.MutateCustomerLabelsResponse | Awaitable[customer_label_service.MutateCustomerLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_label_service/transports/grpc.pyi index 44fb94dc3..4486b816f 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerLabelServiceGrpcTransport(CustomerLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/client.pyi index 81cca6790..ebcfdba14 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerManagerLinkServiceTransport class CustomerManagerLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerManagerLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerManagerLinkServiceTransport]: ... class CustomerManagerLinkServiceClient(metaclass=CustomerManagerLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,65 +32,59 @@ class CustomerManagerLinkServiceClient(metaclass=CustomerManagerLinkServiceClien @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_manager_link_path( customer_id: str, manager_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_manager_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_manager_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerManagerLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerManagerLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_manager_link( self, - request: Optional[ - Union[customer_manager_link_service.MutateCustomerManagerLinkRequest, dict] - ] = None, + request: customer_manager_link_service.MutateCustomerManagerLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_manager_link_service.CustomerManagerLinkOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_manager_link_service.CustomerManagerLinkOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_manager_link_service.MutateCustomerManagerLinkResponse: ... def move_manager_link( self, - request: Optional[ - Union[customer_manager_link_service.MoveManagerLinkRequest, dict] - ] = None, + request: customer_manager_link_service.MoveManagerLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - previous_customer_manager_link: Optional[str] = None, - new_manager: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + previous_customer_manager_link: str | None = None, + new_manager: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_manager_link_service.MoveManagerLinkResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/transports/base.pyi index e1192312a..a04fdef6f 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerManagerLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class CustomerManagerLinkServiceTransport(abc.ABC): self, ) -> Callable[ [customer_manager_link_service.MutateCustomerManagerLinkRequest], - Union[ - customer_manager_link_service.MutateCustomerManagerLinkResponse, - Awaitable[customer_manager_link_service.MutateCustomerManagerLinkResponse], - ], + customer_manager_link_service.MutateCustomerManagerLinkResponse | Awaitable[customer_manager_link_service.MutateCustomerManagerLinkResponse], ]: ... @property def move_manager_link( self, ) -> Callable[ [customer_manager_link_service.MoveManagerLinkRequest], - Union[ - customer_manager_link_service.MoveManagerLinkResponse, - Awaitable[customer_manager_link_service.MoveManagerLinkResponse], - ], + customer_manager_link_service.MoveManagerLinkResponse | Awaitable[customer_manager_link_service.MoveManagerLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/transports/grpc.pyi index ef2cfcd4a..64b85dbca 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_manager_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerManagerLinkServiceGrpcTransport(CustomerManagerLinkServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/client.pyi index 8665a2d8f..9aa321285 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerNegativeCriterionServiceTransport class CustomerNegativeCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerNegativeCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerNegativeCriterionServiceTransport]: ... class CustomerNegativeCriterionServiceClient( metaclass=CustomerNegativeCriterionServiceClientMeta @@ -36,53 +36,42 @@ class CustomerNegativeCriterionServiceClient( customer_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: ... + def parse_customer_negative_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerNegativeCriterionServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerNegativeCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_negative_criteria( self, - request: Optional[ - Union[ - customer_negative_criterion_service.MutateCustomerNegativeCriteriaRequest, - dict, - ] - ] = None, + request: customer_negative_criterion_service.MutateCustomerNegativeCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - customer_negative_criterion_service.CustomerNegativeCriterionOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_negative_criterion_service.CustomerNegativeCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/base.pyi index c32c39789..6f742a9f6 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerNegativeCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerNegativeCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [customer_negative_criterion_service.MutateCustomerNegativeCriteriaRequest], - Union[ - customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse, - Awaitable[ - customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse - ], - ], + customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse | Awaitable[customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/grpc.pyi index 86f84c157..2a5273381 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_negative_criterion_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CustomerNegativeCriterionServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_service/client.pyi index a2cb7da5d..5fb414521 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import CustomerServiceTransport class CustomerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerServiceTransport]: ... class CustomerServiceClient(metaclass=CustomerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,68 +33,64 @@ class CustomerServiceClient(metaclass=CustomerServiceClientMeta): @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer( self, - request: Optional[Union[customer_service.MutateCustomerRequest, dict]] = None, + request: customer_service.MutateCustomerRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[customer_service.CustomerOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_service.CustomerOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_service.MutateCustomerResponse: ... def list_accessible_customers( self, - request: Optional[ - Union[customer_service.ListAccessibleCustomersRequest, dict] - ] = None, + request: customer_service.ListAccessibleCustomersRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_service.ListAccessibleCustomersResponse: ... def create_customer_client( self, - request: Optional[ - Union[customer_service.CreateCustomerClientRequest, dict] - ] = None, + request: customer_service.CreateCustomerClientRequest | dict | None = None, *, - customer_id: Optional[str] = None, - customer_client: Optional[customer.Customer] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + customer_client: customer.Customer | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_service.CreateCustomerClientResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_service/transports/base.pyi index caf154a7f..d1b80d757 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,28 +28,19 @@ class CustomerServiceTransport(abc.ABC): self, ) -> Callable[ [customer_service.MutateCustomerRequest], - Union[ - customer_service.MutateCustomerResponse, - Awaitable[customer_service.MutateCustomerResponse], - ], + customer_service.MutateCustomerResponse | Awaitable[customer_service.MutateCustomerResponse], ]: ... @property def list_accessible_customers( self, ) -> Callable[ [customer_service.ListAccessibleCustomersRequest], - Union[ - customer_service.ListAccessibleCustomersResponse, - Awaitable[customer_service.ListAccessibleCustomersResponse], - ], + customer_service.ListAccessibleCustomersResponse | Awaitable[customer_service.ListAccessibleCustomersResponse], ]: ... @property def create_customer_client( self, ) -> Callable[ [customer_service.CreateCustomerClientRequest], - Union[ - customer_service.CreateCustomerClientResponse, - Awaitable[customer_service.CreateCustomerClientResponse], - ], + customer_service.CreateCustomerClientResponse | Awaitable[customer_service.CreateCustomerClientResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_service/transports/grpc.pyi index 51481c8bd..e1eaf032a 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerServiceGrpcTransport(CustomerServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi index 1d6553287..7f690bb44 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import CustomerSkAdNetworkConversionValueSchemaServiceTran class CustomerSkAdNetworkConversionValueSchemaServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerSkAdNetworkConversionValueSchemaServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerSkAdNetworkConversionValueSchemaServiceTransport]: ... class CustomerSkAdNetworkConversionValueSchemaServiceClient( metaclass=CustomerSkAdNetworkConversionValueSchemaServiceClientMeta @@ -40,49 +40,42 @@ class CustomerSkAdNetworkConversionValueSchemaServiceClient( @staticmethod def parse_customer_sk_ad_network_conversion_value_schema_path( path: str, - ) -> Dict[str, str]: ... + ) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerSkAdNetworkConversionValueSchemaServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerSkAdNetworkConversionValueSchemaServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_sk_ad_network_conversion_value_schema( self, - request: Optional[ - Union[ - customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaRequest, - dict, - ] - ] = None, + request: customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse ): ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi index a56ce7f0b..30c162b34 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi @@ -16,12 +16,12 @@ class CustomerSkAdNetworkConversionValueSchemaServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class CustomerSkAdNetworkConversionValueSchemaServiceTransport(abc.ABC): [ customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaRequest ], - Union[ - customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse, - Awaitable[ - customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse - ], - ], + customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse | Awaitable[customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi index e328c587d..765af5dbf 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class CustomerSkAdNetworkConversionValueSchemaServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/client.pyi index 2521976d8..5adf8fb61 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import CustomerUserAccessInvitationServiceTransport class CustomerUserAccessInvitationServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerUserAccessInvitationServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerUserAccessInvitationServiceTransport]: ... class CustomerUserAccessInvitationServiceClient( metaclass=CustomerUserAccessInvitationServiceClientMeta @@ -38,53 +38,44 @@ class CustomerUserAccessInvitationServiceClient( customer_id: str, invitation_id: str ) -> str: ... @staticmethod - def parse_customer_user_access_invitation_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_invitation_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerUserAccessInvitationServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerUserAccessInvitationServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_user_access_invitation( self, - request: Optional[ - Union[ - customer_user_access_invitation_service.MutateCustomerUserAccessInvitationRequest, - dict, - ] - ] = None, + request: customer_user_access_invitation_service.MutateCustomerUserAccessInvitationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_user_access_invitation_service.CustomerUserAccessInvitationOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_user_access_invitation_service.CustomerUserAccessInvitationOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse ): ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/base.pyi index 999f28c20..e1504b322 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/base.pyi @@ -16,12 +16,12 @@ class CustomerUserAccessInvitationServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class CustomerUserAccessInvitationServiceTransport(abc.ABC): [ customer_user_access_invitation_service.MutateCustomerUserAccessInvitationRequest ], - Union[ - customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse, - Awaitable[ - customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse - ], - ], + customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse | Awaitable[customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/grpc.pyi index 179bea80c..d6f2d44d5 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_user_access_invitation_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class CustomerUserAccessInvitationServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/client.pyi index 0b03541ea..42f107a9c 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerUserAccessServiceTransport class CustomerUserAccessServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerUserAccessServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerUserAccessServiceTransport]: ... class CustomerUserAccessServiceClient(metaclass=CustomerUserAccessServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CustomerUserAccessServiceClient(metaclass=CustomerUserAccessServiceClientM @staticmethod def customer_user_access_path(customer_id: str, user_id: str) -> str: ... @staticmethod - def parse_customer_user_access_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerUserAccessServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerUserAccessServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_user_access( self, - request: Optional[ - Union[customer_user_access_service.MutateCustomerUserAccessRequest, dict] - ] = None, + request: customer_user_access_service.MutateCustomerUserAccessRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_user_access_service.CustomerUserAccessOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_user_access_service.CustomerUserAccessOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_user_access_service.MutateCustomerUserAccessResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/transports/base.pyi index a3626b151..6bfb8a0e4 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerUserAccessServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerUserAccessServiceTransport(abc.ABC): self, ) -> Callable[ [customer_user_access_service.MutateCustomerUserAccessRequest], - Union[ - customer_user_access_service.MutateCustomerUserAccessResponse, - Awaitable[customer_user_access_service.MutateCustomerUserAccessResponse], - ], + customer_user_access_service.MutateCustomerUserAccessResponse | Awaitable[customer_user_access_service.MutateCustomerUserAccessResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/transports/grpc.pyi index f17b4ac88..110968559 100644 --- a/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customer_user_access_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerUserAccessServiceGrpcTransport(CustomerUserAccessServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/client.pyi index 8562c7829..449b938d7 100644 --- a/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomizerAttributeServiceTransport class CustomizerAttributeServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomizerAttributeServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomizerAttributeServiceTransport]: ... class CustomizerAttributeServiceClient(metaclass=CustomizerAttributeServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,46 +34,42 @@ class CustomizerAttributeServiceClient(metaclass=CustomizerAttributeServiceClien customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomizerAttributeServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomizerAttributeServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customizer_attributes( self, - request: Optional[ - Union[customizer_attribute_service.MutateCustomizerAttributesRequest, dict] - ] = None, + request: customizer_attribute_service.MutateCustomizerAttributesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customizer_attribute_service.CustomizerAttributeOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customizer_attribute_service.CustomizerAttributeOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customizer_attribute_service.MutateCustomizerAttributesResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/transports/base.pyi index 514098288..a93b3ee70 100644 --- a/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomizerAttributeServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomizerAttributeServiceTransport(abc.ABC): self, ) -> Callable[ [customizer_attribute_service.MutateCustomizerAttributesRequest], - Union[ - customizer_attribute_service.MutateCustomizerAttributesResponse, - Awaitable[customizer_attribute_service.MutateCustomizerAttributesResponse], - ], + customizer_attribute_service.MutateCustomizerAttributesResponse | Awaitable[customizer_attribute_service.MutateCustomizerAttributesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/transports/grpc.pyi index f8f25e56a..65123aa85 100644 --- a/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/customizer_attribute_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomizerAttributeServiceGrpcTransport(CustomizerAttributeServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/client.pyi index 9512474c4..41800dae6 100644 --- a/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ExperimentArmServiceTransport class ExperimentArmServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ExperimentArmServiceTransport]: ... + cls, label: str | None = None + ) -> type[ExperimentArmServiceTransport]: ... class ExperimentArmServiceClient(metaclass=ExperimentArmServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class ExperimentArmServiceClient(metaclass=ExperimentArmServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_arm_path( customer_id: str, trial_id: str, trial_arm_id: str ) -> str: ... @staticmethod - def parse_experiment_arm_path(path: str) -> Dict[str, str]: ... + def parse_experiment_arm_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ExperimentArmServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ExperimentArmServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_experiment_arms( self, - request: Optional[ - Union[experiment_arm_service.MutateExperimentArmsRequest, dict] - ] = None, + request: experiment_arm_service.MutateExperimentArmsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[experiment_arm_service.ExperimentArmOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[experiment_arm_service.ExperimentArmOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> experiment_arm_service.MutateExperimentArmsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/transports/base.pyi index e00d6c92a..c9308ebc7 100644 --- a/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/transports/base.pyi @@ -14,12 +14,12 @@ class ExperimentArmServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ExperimentArmServiceTransport(abc.ABC): self, ) -> Callable[ [experiment_arm_service.MutateExperimentArmsRequest], - Union[ - experiment_arm_service.MutateExperimentArmsResponse, - Awaitable[experiment_arm_service.MutateExperimentArmsResponse], - ], + experiment_arm_service.MutateExperimentArmsResponse | Awaitable[experiment_arm_service.MutateExperimentArmsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/transports/grpc.pyi index 35431b044..24d432d41 100644 --- a/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/experiment_arm_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ExperimentArmServiceGrpcTransport(ExperimentArmServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/experiment_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/experiment_service/client.pyi index eca4030d3..602af0f85 100644 --- a/google-stubs/ads/googleads/v14/services/services/experiment_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/experiment_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import ExperimentServiceTransport class ExperimentServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ExperimentServiceTransport]: ... + cls, label: str | None = None + ) -> type[ExperimentServiceTransport]: ... class ExperimentServiceClient(metaclass=ExperimentServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,110 +34,96 @@ class ExperimentServiceClient(metaclass=ExperimentServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ExperimentServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ExperimentServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_experiments( self, - request: Optional[ - Union[experiment_service.MutateExperimentsRequest, dict] - ] = None, + request: experiment_service.MutateExperimentsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[experiment_service.ExperimentOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[experiment_service.ExperimentOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> experiment_service.MutateExperimentsResponse: ... def end_experiment( self, - request: Optional[Union[experiment_service.EndExperimentRequest, dict]] = None, + request: experiment_service.EndExperimentRequest | dict | None = None, *, - experiment: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + experiment: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> None: ... def list_experiment_async_errors( self, - request: Optional[ - Union[experiment_service.ListExperimentAsyncErrorsRequest, dict] - ] = None, + request: experiment_service.ListExperimentAsyncErrorsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.ListExperimentAsyncErrorsPager: ... def graduate_experiment( self, - request: Optional[ - Union[experiment_service.GraduateExperimentRequest, dict] - ] = None, + request: experiment_service.GraduateExperimentRequest | dict | None = None, *, - experiment: Optional[str] = None, - campaign_budget_mappings: Optional[ - MutableSequence[experiment_service.CampaignBudgetMapping] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + experiment: str | None = None, + campaign_budget_mappings: MutableSequence[experiment_service.CampaignBudgetMapping] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> None: ... def schedule_experiment( self, - request: Optional[ - Union[experiment_service.ScheduleExperimentRequest, dict] - ] = None, + request: experiment_service.ScheduleExperimentRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... def promote_experiment( self, - request: Optional[ - Union[experiment_service.PromoteExperimentRequest, dict] - ] = None, + request: experiment_service.PromoteExperimentRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... diff --git a/google-stubs/ads/googleads/v14/services/services/experiment_service/pagers.pyi b/google-stubs/ads/googleads/v14/services/services/experiment_service/pagers.pyi index 6d3d9890c..3830ce4e1 100644 --- a/google-stubs/ads/googleads/v14/services/services/experiment_service/pagers.pyi +++ b/google-stubs/ads/googleads/v14/services/services/experiment_service/pagers.pyi @@ -12,7 +12,7 @@ class ListExperimentAsyncErrorsPager: method: Callable[..., experiment_service.ListExperimentAsyncErrorsResponse], request: experiment_service.ListExperimentAsyncErrorsRequest, response: experiment_service.ListExperimentAsyncErrorsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/experiment_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/experiment_service/transports/base.pyi index 61dced941..0f82c735e 100644 --- a/google-stubs/ads/googleads/v14/services/services/experiment_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/experiment_service/transports/base.pyi @@ -16,12 +16,12 @@ class ExperimentServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,46 +32,40 @@ class ExperimentServiceTransport(abc.ABC): self, ) -> Callable[ [experiment_service.MutateExperimentsRequest], - Union[ - experiment_service.MutateExperimentsResponse, - Awaitable[experiment_service.MutateExperimentsResponse], - ], + experiment_service.MutateExperimentsResponse | Awaitable[experiment_service.MutateExperimentsResponse], ]: ... @property def end_experiment( self, ) -> Callable[ [experiment_service.EndExperimentRequest], - Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]], + empty_pb2.Empty | Awaitable[empty_pb2.Empty], ]: ... @property def list_experiment_async_errors( self, ) -> Callable[ [experiment_service.ListExperimentAsyncErrorsRequest], - Union[ - experiment_service.ListExperimentAsyncErrorsResponse, - Awaitable[experiment_service.ListExperimentAsyncErrorsResponse], - ], + experiment_service.ListExperimentAsyncErrorsResponse | Awaitable[experiment_service.ListExperimentAsyncErrorsResponse], ]: ... @property def graduate_experiment( self, ) -> Callable[ [experiment_service.GraduateExperimentRequest], - Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]], + empty_pb2.Empty | Awaitable[empty_pb2.Empty], ]: ... @property def schedule_experiment( self, ) -> Callable[ [experiment_service.ScheduleExperimentRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... @property def promote_experiment( self, ) -> Callable[ [experiment_service.PromoteExperimentRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/experiment_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/experiment_service/transports/grpc.pyi index b86251dc2..9f9f0396b 100644 --- a/google-stubs/ads/googleads/v14/services/services/experiment_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/experiment_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ExperimentServiceGrpcTransport(ExperimentServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/client.pyi index 00814d294..f3a6528a8 100644 --- a/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ExtensionFeedItemServiceTransport class ExtensionFeedItemServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ExtensionFeedItemServiceTransport]: ... + cls, label: str | None = None + ) -> type[ExtensionFeedItemServiceTransport]: ... class ExtensionFeedItemServiceClient(metaclass=ExtensionFeedItemServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,62 +32,58 @@ class ExtensionFeedItemServiceClient(metaclass=ExtensionFeedItemServiceClientMet @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ExtensionFeedItemServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ExtensionFeedItemServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_extension_feed_items( self, - request: Optional[ - Union[extension_feed_item_service.MutateExtensionFeedItemsRequest, dict] - ] = None, + request: extension_feed_item_service.MutateExtensionFeedItemsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[extension_feed_item_service.ExtensionFeedItemOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[extension_feed_item_service.ExtensionFeedItemOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> extension_feed_item_service.MutateExtensionFeedItemsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/transports/base.pyi index 467992dc0..3e9d7692a 100644 --- a/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/transports/base.pyi @@ -14,12 +14,12 @@ class ExtensionFeedItemServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ExtensionFeedItemServiceTransport(abc.ABC): self, ) -> Callable[ [extension_feed_item_service.MutateExtensionFeedItemsRequest], - Union[ - extension_feed_item_service.MutateExtensionFeedItemsResponse, - Awaitable[extension_feed_item_service.MutateExtensionFeedItemsResponse], - ], + extension_feed_item_service.MutateExtensionFeedItemsResponse | Awaitable[extension_feed_item_service.MutateExtensionFeedItemsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/transports/grpc.pyi index ce1c2fb11..3b1cba592 100644 --- a/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/extension_feed_item_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ExtensionFeedItemServiceGrpcTransport(ExtensionFeedItemServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_service/client.pyi index 849240c45..495ff9836 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemServiceTransport class FeedItemServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemServiceTransport]: ... class FeedItemServiceClient(metaclass=FeedItemServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,48 +32,46 @@ class FeedItemServiceClient(metaclass=FeedItemServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_items( self, - request: Optional[Union[feed_item_service.MutateFeedItemsRequest, dict]] = None, + request: feed_item_service.MutateFeedItemsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_service.FeedItemOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_service.FeedItemOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_service.MutateFeedItemsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_service/transports/base.pyi index 7571c7517..ee6d08b2a 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_service.MutateFeedItemsRequest], - Union[ - feed_item_service.MutateFeedItemsResponse, - Awaitable[feed_item_service.MutateFeedItemsResponse], - ], + feed_item_service.MutateFeedItemsResponse | Awaitable[feed_item_service.MutateFeedItemsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_service/transports/grpc.pyi index c788e7f1a..83ab15fac 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemServiceGrpcTransport(FeedItemServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/client.pyi index 8bb721d52..cfff8e923 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemSetLinkServiceTransport class FeedItemSetLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemSetLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemSetLinkServiceTransport]: ... class FeedItemSetLinkServiceClient(metaclass=FeedItemSetLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class FeedItemSetLinkServiceClient(metaclass=FeedItemSetLinkServiceClientMeta): @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_link_path( customer_id: str, feed_id: str, feed_item_set_id: str, feed_item_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemSetLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemSetLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_item_set_links( self, - request: Optional[ - Union[feed_item_set_link_service.MutateFeedItemSetLinksRequest, dict] - ] = None, + request: feed_item_set_link_service.MutateFeedItemSetLinksRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_set_link_service.FeedItemSetLinkOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_set_link_service.FeedItemSetLinkOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_set_link_service.MutateFeedItemSetLinksResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/transports/base.pyi index 5491c4362..f1173fafb 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemSetLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemSetLinkServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_set_link_service.MutateFeedItemSetLinksRequest], - Union[ - feed_item_set_link_service.MutateFeedItemSetLinksResponse, - Awaitable[feed_item_set_link_service.MutateFeedItemSetLinksResponse], - ], + feed_item_set_link_service.MutateFeedItemSetLinksResponse | Awaitable[feed_item_set_link_service.MutateFeedItemSetLinksResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/transports/grpc.pyi index c448141d6..8b9302246 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_set_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemSetLinkServiceGrpcTransport(FeedItemSetLinkServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/client.pyi index e865b7da0..fd6db3ea4 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemSetServiceTransport class FeedItemSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemSetServiceTransport]: ... class FeedItemSetServiceClient(metaclass=FeedItemSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class FeedItemSetServiceClient(metaclass=FeedItemSetServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_item_sets( self, - request: Optional[ - Union[feed_item_set_service.MutateFeedItemSetsRequest, dict] - ] = None, + request: feed_item_set_service.MutateFeedItemSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_set_service.FeedItemSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_set_service.FeedItemSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_set_service.MutateFeedItemSetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/transports/base.pyi index 62dae6c69..dac47eba7 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemSetServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_set_service.MutateFeedItemSetsRequest], - Union[ - feed_item_set_service.MutateFeedItemSetsResponse, - Awaitable[feed_item_set_service.MutateFeedItemSetsResponse], - ], + feed_item_set_service.MutateFeedItemSetsResponse | Awaitable[feed_item_set_service.MutateFeedItemSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/transports/grpc.pyi index 029de93fa..45b3d248c 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemSetServiceGrpcTransport(FeedItemSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/client.pyi index e5aad79f8..66316883a 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemTargetServiceTransport class FeedItemTargetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemTargetServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemTargetServiceTransport]: ... class FeedItemTargetServiceClient(metaclass=FeedItemTargetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,15 +32,15 @@ class FeedItemTargetServiceClient(metaclass=FeedItemTargetServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_target_path( customer_id: str, @@ -50,50 +50,46 @@ class FeedItemTargetServiceClient(metaclass=FeedItemTargetServiceClientMeta): feed_item_target_id: str, ) -> str: ... @staticmethod - def parse_feed_item_target_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_target_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemTargetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemTargetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_item_targets( self, - request: Optional[ - Union[feed_item_target_service.MutateFeedItemTargetsRequest, dict] - ] = None, + request: feed_item_target_service.MutateFeedItemTargetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_target_service.FeedItemTargetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_target_service.FeedItemTargetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_target_service.MutateFeedItemTargetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/transports/base.pyi index 24272c3fe..4db71137f 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemTargetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemTargetServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_target_service.MutateFeedItemTargetsRequest], - Union[ - feed_item_target_service.MutateFeedItemTargetsResponse, - Awaitable[feed_item_target_service.MutateFeedItemTargetsResponse], - ], + feed_item_target_service.MutateFeedItemTargetsResponse | Awaitable[feed_item_target_service.MutateFeedItemTargetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/transports/grpc.pyi index e61fbcac1..fd2fef8d9 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_item_target_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemTargetServiceGrpcTransport(FeedItemTargetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/client.pyi index a93c235ac..810a95b8d 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedMappingServiceTransport class FeedMappingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedMappingServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedMappingServiceTransport]: ... class FeedMappingServiceClient(metaclass=FeedMappingServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class FeedMappingServiceClient(metaclass=FeedMappingServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_mapping_path( customer_id: str, feed_id: str, feed_mapping_id: str ) -> str: ... @staticmethod - def parse_feed_mapping_path(path: str) -> Dict[str, str]: ... + def parse_feed_mapping_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedMappingServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedMappingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_mappings( self, - request: Optional[ - Union[feed_mapping_service.MutateFeedMappingsRequest, dict] - ] = None, + request: feed_mapping_service.MutateFeedMappingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_mapping_service.FeedMappingOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_mapping_service.FeedMappingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_mapping_service.MutateFeedMappingsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/transports/base.pyi index a1cc783d4..31fd8efd0 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedMappingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedMappingServiceTransport(abc.ABC): self, ) -> Callable[ [feed_mapping_service.MutateFeedMappingsRequest], - Union[ - feed_mapping_service.MutateFeedMappingsResponse, - Awaitable[feed_mapping_service.MutateFeedMappingsResponse], - ], + feed_mapping_service.MutateFeedMappingsResponse | Awaitable[feed_mapping_service.MutateFeedMappingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/transports/grpc.pyi index 228e58ce9..be86e3443 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_mapping_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedMappingServiceGrpcTransport(FeedMappingServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/feed_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/feed_service/client.pyi index 3b35fde9f..70b847b31 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedServiceTransport class FeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedServiceTransport]: ... class FeedServiceClient(metaclass=FeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,42 +32,42 @@ class FeedServiceClient(metaclass=FeedServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feeds( self, - request: Optional[Union[feed_service.MutateFeedsRequest, dict]] = None, + request: feed_service.MutateFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[feed_service.FeedOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_service.FeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_service.MutateFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/feed_service/transports/base.pyi index 0ce771e33..df9a3d22e 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedServiceTransport(abc.ABC): self, ) -> Callable[ [feed_service.MutateFeedsRequest], - Union[ - feed_service.MutateFeedsResponse, - Awaitable[feed_service.MutateFeedsResponse], - ], + feed_service.MutateFeedsResponse | Awaitable[feed_service.MutateFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/feed_service/transports/grpc.pyi index fd3adfad8..623d06cf0 100644 --- a/google-stubs/ads/googleads/v14/services/services/feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedServiceGrpcTransport(FeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/client.pyi index cbe7774b9..59e26f804 100644 --- a/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import GeoTargetConstantServiceTransport class GeoTargetConstantServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[GeoTargetConstantServiceTransport]: ... + cls, label: str | None = None + ) -> type[GeoTargetConstantServiceTransport]: ... class GeoTargetConstantServiceClient(metaclass=GeoTargetConstantServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,42 +32,40 @@ class GeoTargetConstantServiceClient(metaclass=GeoTargetConstantServiceClientMet @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, GeoTargetConstantServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | GeoTargetConstantServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_geo_target_constants( self, - request: Optional[ - Union[geo_target_constant_service.SuggestGeoTargetConstantsRequest, dict] - ] = None, + request: geo_target_constant_service.SuggestGeoTargetConstantsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> geo_target_constant_service.SuggestGeoTargetConstantsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/transports/base.pyi index 708985aba..30e0c3704 100644 --- a/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/transports/base.pyi @@ -14,12 +14,12 @@ class GeoTargetConstantServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class GeoTargetConstantServiceTransport(abc.ABC): self, ) -> Callable[ [geo_target_constant_service.SuggestGeoTargetConstantsRequest], - Union[ - geo_target_constant_service.SuggestGeoTargetConstantsResponse, - Awaitable[geo_target_constant_service.SuggestGeoTargetConstantsResponse], - ], + geo_target_constant_service.SuggestGeoTargetConstantsResponse | Awaitable[geo_target_constant_service.SuggestGeoTargetConstantsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/transports/grpc.pyi index 1a46e4f69..adb4be513 100644 --- a/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/geo_target_constant_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class GeoTargetConstantServiceGrpcTransport(GeoTargetConstantServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/client.pyi index 14786e5f5..3889b5996 100644 --- a/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import GoogleAdsFieldServiceTransport class GoogleAdsFieldServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[GoogleAdsFieldServiceTransport]: ... + cls, label: str | None = None + ) -> type[GoogleAdsFieldServiceTransport]: ... class GoogleAdsFieldServiceClient(metaclass=GoogleAdsFieldServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,54 +34,50 @@ class GoogleAdsFieldServiceClient(metaclass=GoogleAdsFieldServiceClientMeta): @staticmethod def google_ads_field_path(google_ads_field: str) -> str: ... @staticmethod - def parse_google_ads_field_path(path: str) -> Dict[str, str]: ... + def parse_google_ads_field_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, GoogleAdsFieldServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | GoogleAdsFieldServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def get_google_ads_field( self, - request: Optional[ - Union[google_ads_field_service.GetGoogleAdsFieldRequest, dict] - ] = None, + request: google_ads_field_service.GetGoogleAdsFieldRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> google_ads_field.GoogleAdsField: ... def search_google_ads_fields( self, - request: Optional[ - Union[google_ads_field_service.SearchGoogleAdsFieldsRequest, dict] - ] = None, + request: google_ads_field_service.SearchGoogleAdsFieldsRequest | dict | None = None, *, - query: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + query: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.SearchGoogleAdsFieldsPager: ... diff --git a/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/pagers.pyi b/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/pagers.pyi index de1360dec..e03a0f3d1 100644 --- a/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/pagers.pyi +++ b/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/pagers.pyi @@ -13,7 +13,7 @@ class SearchGoogleAdsFieldsPager: method: Callable[..., google_ads_field_service.SearchGoogleAdsFieldsResponse], request: google_ads_field_service.SearchGoogleAdsFieldsRequest, response: google_ads_field_service.SearchGoogleAdsFieldsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/transports/base.pyi index de7fbc40a..3d473f13a 100644 --- a/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/transports/base.pyi @@ -15,12 +15,12 @@ class GoogleAdsFieldServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -29,17 +29,12 @@ class GoogleAdsFieldServiceTransport(abc.ABC): self, ) -> Callable[ [google_ads_field_service.GetGoogleAdsFieldRequest], - Union[ - google_ads_field.GoogleAdsField, Awaitable[google_ads_field.GoogleAdsField] - ], + google_ads_field.GoogleAdsField | Awaitable[google_ads_field.GoogleAdsField], ]: ... @property def search_google_ads_fields( self, ) -> Callable[ [google_ads_field_service.SearchGoogleAdsFieldsRequest], - Union[ - google_ads_field_service.SearchGoogleAdsFieldsResponse, - Awaitable[google_ads_field_service.SearchGoogleAdsFieldsResponse], - ], + google_ads_field_service.SearchGoogleAdsFieldsResponse | Awaitable[google_ads_field_service.SearchGoogleAdsFieldsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/transports/grpc.pyi index e487d2fb5..a643bb205 100644 --- a/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/google_ads_field_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class GoogleAdsFieldServiceGrpcTransport(GoogleAdsFieldServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/google_ads_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/google_ads_service/client.pyi index 9c3c85b3f..43b30e3c1 100644 --- a/google-stubs/ads/googleads/v14/services/services/google_ads_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/google_ads_service/client.pyi @@ -24,8 +24,8 @@ from .transports.base import GoogleAdsServiceTransport class GoogleAdsServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[GoogleAdsServiceTransport]: ... + cls, label: str | None = None + ) -> type[GoogleAdsServiceTransport]: ... class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): DEFAULT_ENDPOINT: str @@ -44,33 +44,33 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): customer_id: str, bidding_strategy_id: str ) -> str: ... @staticmethod - def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_accessible_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def account_budget_path(customer_id: str, account_budget_id: str) -> str: ... @staticmethod - def parse_account_budget_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_path(path: str) -> dict[str, str]: ... @staticmethod def account_budget_proposal_path( customer_id: str, account_budget_proposal_id: str ) -> str: ... @staticmethod - def parse_account_budget_proposal_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_proposal_path(path: str) -> dict[str, str]: ... @staticmethod def account_link_path(customer_id: str, account_link_id: str) -> str: ... @staticmethod - def parse_account_link_path(path: str) -> Dict[str, str]: ... + def parse_account_link_path(path: str) -> dict[str, str]: ... @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_asset_combination_view_path( customer_id: str, @@ -80,49 +80,49 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): asset_combination_id_high: str, ) -> str: ... @staticmethod - def parse_ad_group_ad_asset_combination_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_asset_combination_view_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_asset_view_path( customer_id: str, ad_group_id: str, ad_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_ad_asset_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_asset_view_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_path( customer_id: str, ad_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_set_path( customer_id: str, ad_group_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_ad_group_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_audience_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_audience_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_audience_view_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_bid_modifier_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_customizer_path( customer_id: str, @@ -131,13 +131,13 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): customizer_attribute_id: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_simulation_path( customer_id: str, @@ -149,29 +149,29 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_simulation_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_customizer_path( customer_id: str, ad_group_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_extension_setting_path( customer_id: str, ad_group_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_feed_path(customer_id: str, ad_group_id: str, feed_id: str) -> str: ... @staticmethod - def parse_ad_group_feed_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_feed_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_simulation_path( customer_id: str, @@ -182,99 +182,99 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_ad_group_simulation_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def ad_parameter_path( customer_id: str, ad_group_id: str, criterion_id: str, parameter_index: str ) -> str: ... @staticmethod - def parse_ad_parameter_path(path: str) -> Dict[str, str]: ... + def parse_ad_parameter_path(path: str) -> dict[str, str]: ... @staticmethod def ad_schedule_view_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_schedule_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_schedule_view_path(path: str) -> dict[str, str]: ... @staticmethod def age_range_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_age_range_view_path(path: str) -> Dict[str, str]: ... + def parse_age_range_view_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_field_type_view_path(customer_id: str, field_type: str) -> str: ... @staticmethod - def parse_asset_field_type_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_field_type_view_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_asset_path( customer_id: str, asset_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_asset_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_listing_group_filter_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_listing_group_filter_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_listing_group_filter_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_product_group_view_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_product_group_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_product_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_signal_path( customer_id: str, asset_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_asset_group_signal_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_signal_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_asset_path( customer_id: str, asset_set_id: str, asset_id: str ) -> str: ... @staticmethod - def parse_asset_set_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_type_view_path(customer_id: str, asset_set_type: str) -> str: ... @staticmethod - def parse_asset_set_type_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_type_view_path(path: str) -> dict[str, str]: ... @staticmethod def audience_path(customer_id: str, audience_id: str) -> str: ... @staticmethod - def parse_audience_path(path: str) -> Dict[str, str]: ... + def parse_audience_path(path: str) -> dict[str, str]: ... @staticmethod def batch_job_path(customer_id: str, batch_job_id: str) -> str: ... @staticmethod - def parse_batch_job_path(path: str) -> Dict[str, str]: ... + def parse_batch_job_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_data_exclusion_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: ... + def parse_bidding_data_exclusion_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_seasonality_adjustment_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: ... + def parse_bidding_seasonality_adjustment_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_simulation_path( customer_id: str, @@ -285,103 +285,103 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_bidding_strategy_simulation_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ... @staticmethod - def parse_billing_setup_path(path: str) -> Dict[str, str]: ... + def parse_billing_setup_path(path: str) -> dict[str, str]: ... @staticmethod def call_view_path(customer_id: str, call_detail_id: str) -> str: ... @staticmethod - def parse_call_view_path(path: str) -> Dict[str, str]: ... + def parse_call_view_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_path( customer_id: str, campaign_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_campaign_asset_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_set_path( customer_id: str, campaign_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_audience_view_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_audience_view_path(path: str) -> Dict[str, str]: ... + def parse_campaign_audience_view_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_bid_modifier_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_campaign_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_conversion_goal_path( customer_id: str, campaign_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_criterion_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_customizer_path( customer_id: str, campaign_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_campaign_customizer_path(path: str) -> Dict[str, str]: ... + def parse_campaign_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_draft_path( customer_id: str, base_campaign_id: str, draft_id: str ) -> str: ... @staticmethod - def parse_campaign_draft_path(path: str) -> Dict[str, str]: ... + def parse_campaign_draft_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_extension_setting_path( customer_id: str, campaign_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_campaign_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_feed_path(customer_id: str, campaign_id: str, feed_id: str) -> str: ... @staticmethod - def parse_campaign_feed_path(path: str) -> Dict[str, str]: ... + def parse_campaign_feed_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_search_term_insight_path( customer_id: str, campaign_id: str, cluster_id: str ) -> str: ... @staticmethod - def parse_campaign_search_term_insight_path(path: str) -> Dict[str, str]: ... + def parse_campaign_search_term_insight_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_shared_set_path( customer_id: str, campaign_id: str, shared_set_id: str ) -> str: ... @staticmethod - def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_simulation_path( customer_id: str, @@ -392,185 +392,185 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_campaign_simulation_path(path: str) -> Dict[str, str]: ... + def parse_campaign_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def carrier_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_carrier_constant_path(path: str) -> Dict[str, str]: ... + def parse_carrier_constant_path(path: str) -> dict[str, str]: ... @staticmethod def change_event_path( customer_id: str, timestamp_micros: str, command_index: str, mutate_index: str ) -> str: ... @staticmethod - def parse_change_event_path(path: str) -> Dict[str, str]: ... + def parse_change_event_path(path: str) -> dict[str, str]: ... @staticmethod def change_status_path(customer_id: str, change_status_id: str) -> str: ... @staticmethod - def parse_change_status_path(path: str) -> Dict[str, str]: ... + def parse_change_status_path(path: str) -> dict[str, str]: ... @staticmethod def click_view_path(customer_id: str, date: str, gclid: str) -> str: ... @staticmethod - def parse_click_view_path(path: str) -> Dict[str, str]: ... + def parse_click_view_path(path: str) -> dict[str, str]: ... @staticmethod def combined_audience_path(customer_id: str, combined_audience_id: str) -> str: ... @staticmethod - def parse_combined_audience_path(path: str) -> Dict[str, str]: ... + def parse_combined_audience_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_custom_variable_path( customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_goal_campaign_config_path( customer_id: str, campaign_id: str ) -> str: ... @staticmethod - def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: ... + def parse_conversion_goal_campaign_config_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_path( customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_set_path( customer_id: str, conversion_value_rule_set_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_set_path(path: str) -> dict[str, str]: ... @staticmethod def currency_constant_path(code: str) -> str: ... @staticmethod - def parse_currency_constant_path(path: str) -> Dict[str, str]: ... + def parse_currency_constant_path(path: str) -> dict[str, str]: ... @staticmethod def custom_audience_path(customer_id: str, custom_audience_id: str) -> str: ... @staticmethod - def parse_custom_audience_path(path: str) -> Dict[str, str]: ... + def parse_custom_audience_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_path( customer_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_customer_asset_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_customer_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def customer_client_path(customer_id: str, client_customer_id: str) -> str: ... @staticmethod - def parse_customer_client_path(path: str) -> Dict[str, str]: ... + def parse_customer_client_path(path: str) -> dict[str, str]: ... @staticmethod def customer_client_link_path( customer_id: str, client_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_client_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_client_link_path(path: str) -> dict[str, str]: ... @staticmethod def customer_conversion_goal_path( customer_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_customizer_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customer_customizer_path(path: str) -> Dict[str, str]: ... + def parse_customer_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_extension_setting_path( customer_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_customer_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def customer_feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_customer_feed_path(path: str) -> Dict[str, str]: ... + def parse_customer_feed_path(path: str) -> dict[str, str]: ... @staticmethod def customer_label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_customer_label_path(path: str) -> Dict[str, str]: ... + def parse_customer_label_path(path: str) -> dict[str, str]: ... @staticmethod def customer_manager_link_path( customer_id: str, manager_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_manager_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_manager_link_path(path: str) -> dict[str, str]: ... @staticmethod def customer_negative_criterion_path( customer_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: ... + def parse_customer_negative_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def customer_search_term_insight_path(customer_id: str, cluster_id: str) -> str: ... @staticmethod - def parse_customer_search_term_insight_path(path: str) -> Dict[str, str]: ... + def parse_customer_search_term_insight_path(path: str) -> dict[str, str]: ... @staticmethod def customer_user_access_path(customer_id: str, user_id: str) -> str: ... @staticmethod - def parse_customer_user_access_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_path(path: str) -> dict[str, str]: ... @staticmethod def customer_user_access_invitation_path( customer_id: str, invitation_id: str ) -> str: ... @staticmethod - def parse_customer_user_access_invitation_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_invitation_path(path: str) -> dict[str, str]: ... @staticmethod def custom_interest_path(customer_id: str, custom_interest_id: str) -> str: ... @staticmethod - def parse_custom_interest_path(path: str) -> Dict[str, str]: ... + def parse_custom_interest_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def detailed_demographic_path( customer_id: str, detailed_demographic_id: str ) -> str: ... @staticmethod - def parse_detailed_demographic_path(path: str) -> Dict[str, str]: ... + def parse_detailed_demographic_path(path: str) -> dict[str, str]: ... @staticmethod def detail_placement_view_path( customer_id: str, ad_group_id: str, base64_placement: str ) -> str: ... @staticmethod - def parse_detail_placement_view_path(path: str) -> Dict[str, str]: ... + def parse_detail_placement_view_path(path: str) -> dict[str, str]: ... @staticmethod def display_keyword_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_display_keyword_view_path(path: str) -> Dict[str, str]: ... + def parse_display_keyword_view_path(path: str) -> dict[str, str]: ... @staticmethod def distance_view_path( customer_id: str, placeholder_chain_id: str, distance_bucket: str ) -> str: ... @staticmethod - def parse_distance_view_path(path: str) -> Dict[str, str]: ... + def parse_distance_view_path(path: str) -> dict[str, str]: ... @staticmethod def domain_category_path( customer_id: str, campaign_id: str, base64_category: str, language_code: str ) -> str: ... @staticmethod - def parse_domain_category_path(path: str) -> Dict[str, str]: ... + def parse_domain_category_path(path: str) -> dict[str, str]: ... @staticmethod def dynamic_search_ads_search_term_view_path( customer_id: str, @@ -581,47 +581,47 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): page_url_fingerprint: str, ) -> str: ... @staticmethod - def parse_dynamic_search_ads_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_dynamic_search_ads_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def expanded_landing_page_view_path( customer_id: str, expanded_final_url_fingerprint: str ) -> str: ... @staticmethod - def parse_expanded_landing_page_view_path(path: str) -> Dict[str, str]: ... + def parse_expanded_landing_page_view_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_arm_path( customer_id: str, trial_id: str, trial_arm_id: str ) -> str: ... @staticmethod - def parse_experiment_arm_path(path: str) -> Dict[str, str]: ... + def parse_experiment_arm_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_link_path( customer_id: str, feed_id: str, feed_item_set_id: str, feed_item_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_link_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_target_path( customer_id: str, @@ -631,350 +631,342 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): feed_item_target_id: str, ) -> str: ... @staticmethod - def parse_feed_item_target_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_target_path(path: str) -> dict[str, str]: ... @staticmethod def feed_mapping_path( customer_id: str, feed_id: str, feed_mapping_id: str ) -> str: ... @staticmethod - def parse_feed_mapping_path(path: str) -> Dict[str, str]: ... + def parse_feed_mapping_path(path: str) -> dict[str, str]: ... @staticmethod def feed_placeholder_view_path(customer_id: str, placeholder_type: str) -> str: ... @staticmethod - def parse_feed_placeholder_view_path(path: str) -> Dict[str, str]: ... + def parse_feed_placeholder_view_path(path: str) -> dict[str, str]: ... @staticmethod def gender_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_gender_view_path(path: str) -> Dict[str, str]: ... + def parse_gender_view_path(path: str) -> dict[str, str]: ... @staticmethod def geographic_view_path( customer_id: str, country_criterion_id: str, location_type: str ) -> str: ... @staticmethod - def parse_geographic_view_path(path: str) -> Dict[str, str]: ... + def parse_geographic_view_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def group_placement_view_path( customer_id: str, ad_group_id: str, base64_placement: str ) -> str: ... @staticmethod - def parse_group_placement_view_path(path: str) -> Dict[str, str]: ... + def parse_group_placement_view_path(path: str) -> dict[str, str]: ... @staticmethod def hotel_group_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_hotel_group_view_path(path: str) -> Dict[str, str]: ... + def parse_hotel_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def hotel_performance_view_path(customer_id: str) -> str: ... @staticmethod - def parse_hotel_performance_view_path(path: str) -> Dict[str, str]: ... + def parse_hotel_performance_view_path(path: str) -> dict[str, str]: ... @staticmethod def hotel_reconciliation_path(customer_id: str, commission_id: str) -> str: ... @staticmethod - def parse_hotel_reconciliation_path(path: str) -> Dict[str, str]: ... + def parse_hotel_reconciliation_path(path: str) -> dict[str, str]: ... @staticmethod def income_range_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_income_range_view_path(path: str) -> Dict[str, str]: ... + def parse_income_range_view_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_path( customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_keyword_path( customer_id: str, keyword_plan_ad_group_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_keyword_path( customer_id: str, keyword_plan_campaign_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_theme_constant_path( express_category_id: str, express_sub_category_id: str ) -> str: ... @staticmethod - def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: ... + def parse_keyword_theme_constant_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_keyword_view_path(path: str) -> Dict[str, str]: ... + def parse_keyword_view_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def landing_page_view_path( customer_id: str, unexpanded_final_url_fingerprint: str ) -> str: ... @staticmethod - def parse_landing_page_view_path(path: str) -> Dict[str, str]: ... + def parse_landing_page_view_path(path: str) -> dict[str, str]: ... @staticmethod def language_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_language_constant_path(path: str) -> Dict[str, str]: ... + def parse_language_constant_path(path: str) -> dict[str, str]: ... @staticmethod def lead_form_submission_data_path( customer_id: str, lead_form_user_submission_id: str ) -> str: ... @staticmethod - def parse_lead_form_submission_data_path(path: str) -> Dict[str, str]: ... + def parse_lead_form_submission_data_path(path: str) -> dict[str, str]: ... @staticmethod def life_event_path(customer_id: str, life_event_id: str) -> str: ... @staticmethod - def parse_life_event_path(path: str) -> Dict[str, str]: ... + def parse_life_event_path(path: str) -> dict[str, str]: ... @staticmethod def location_view_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_location_view_path(path: str) -> Dict[str, str]: ... + def parse_location_view_path(path: str) -> dict[str, str]: ... @staticmethod def managed_placement_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_managed_placement_view_path(path: str) -> Dict[str, str]: ... + def parse_managed_placement_view_path(path: str) -> dict[str, str]: ... @staticmethod def media_file_path(customer_id: str, media_file_id: str) -> str: ... @staticmethod - def parse_media_file_path(path: str) -> Dict[str, str]: ... + def parse_media_file_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_app_category_constant_path(mobile_app_category_id: str) -> str: ... @staticmethod - def parse_mobile_app_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_app_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_device_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_mobile_device_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_device_constant_path(path: str) -> dict[str, str]: ... @staticmethod def offline_user_data_job_path( customer_id: str, offline_user_data_update_id: str ) -> str: ... @staticmethod - def parse_offline_user_data_job_path(path: str) -> Dict[str, str]: ... + def parse_offline_user_data_job_path(path: str) -> dict[str, str]: ... @staticmethod def operating_system_version_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_operating_system_version_constant_path(path: str) -> Dict[str, str]: ... + def parse_operating_system_version_constant_path(path: str) -> dict[str, str]: ... @staticmethod def paid_organic_search_term_view_path( customer_id: str, campaign_id: str, ad_group_id: str, base64_search_term: str ) -> str: ... @staticmethod - def parse_paid_organic_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_paid_organic_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def parental_status_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_parental_status_view_path(path: str) -> Dict[str, str]: ... + def parse_parental_status_view_path(path: str) -> dict[str, str]: ... @staticmethod def payments_account_path(customer_id: str, payments_account_id: str) -> str: ... @staticmethod - def parse_payments_account_path(path: str) -> Dict[str, str]: ... + def parse_payments_account_path(path: str) -> dict[str, str]: ... @staticmethod def per_store_view_path(customer_id: str, place_id: str) -> str: ... @staticmethod - def parse_per_store_view_path(path: str) -> Dict[str, str]: ... + def parse_per_store_view_path(path: str) -> dict[str, str]: ... @staticmethod def product_bidding_category_constant_path( country_code: str, level: str, id: str ) -> str: ... @staticmethod - def parse_product_bidding_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_product_bidding_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def product_group_view_path( customer_id: str, adgroup_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_product_group_view_path(path: str) -> Dict[str, str]: ... + def parse_product_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def product_link_path(customer_id: str, product_link_id: str) -> str: ... @staticmethod - def parse_product_link_path(path: str) -> Dict[str, str]: ... + def parse_product_link_path(path: str) -> dict[str, str]: ... @staticmethod def qualifying_question_path(qualifying_question_id: str) -> str: ... @staticmethod - def parse_qualifying_question_path(path: str) -> Dict[str, str]: ... + def parse_qualifying_question_path(path: str) -> dict[str, str]: ... @staticmethod def recommendation_path(customer_id: str, recommendation_id: str) -> str: ... @staticmethod - def parse_recommendation_path(path: str) -> Dict[str, str]: ... + def parse_recommendation_path(path: str) -> dict[str, str]: ... @staticmethod def remarketing_action_path( customer_id: str, remarketing_action_id: str ) -> str: ... @staticmethod - def parse_remarketing_action_path(path: str) -> Dict[str, str]: ... + def parse_remarketing_action_path(path: str) -> dict[str, str]: ... @staticmethod def search_term_view_path( customer_id: str, campaign_id: str, ad_group_id: str, query: str ) -> str: ... @staticmethod - def parse_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def shared_criterion_path( customer_id: str, shared_set_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_shared_criterion_path(path: str) -> Dict[str, str]: ... + def parse_shared_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def shopping_performance_view_path(customer_id: str) -> str: ... @staticmethod - def parse_shopping_performance_view_path(path: str) -> Dict[str, str]: ... + def parse_shopping_performance_view_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_search_term_view_path( customer_id: str, campaign_id: str, query: str ) -> str: ... @staticmethod - def parse_smart_campaign_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_setting_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_setting_path(path: str) -> dict[str, str]: ... @staticmethod def third_party_app_analytics_link_path( customer_id: str, customer_link_id: str ) -> str: ... @staticmethod - def parse_third_party_app_analytics_link_path(path: str) -> Dict[str, str]: ... + def parse_third_party_app_analytics_link_path(path: str) -> dict[str, str]: ... @staticmethod def topic_constant_path(topic_id: str) -> str: ... @staticmethod - def parse_topic_constant_path(path: str) -> Dict[str, str]: ... + def parse_topic_constant_path(path: str) -> dict[str, str]: ... @staticmethod def topic_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_topic_view_path(path: str) -> Dict[str, str]: ... + def parse_topic_view_path(path: str) -> dict[str, str]: ... @staticmethod def travel_activity_group_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_travel_activity_group_view_path(path: str) -> Dict[str, str]: ... + def parse_travel_activity_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def travel_activity_performance_view_path(customer_id: str) -> str: ... @staticmethod - def parse_travel_activity_performance_view_path(path: str) -> Dict[str, str]: ... + def parse_travel_activity_performance_view_path(path: str) -> dict[str, str]: ... @staticmethod def user_interest_path(customer_id: str, user_interest_id: str) -> str: ... @staticmethod - def parse_user_interest_path(path: str) -> Dict[str, str]: ... + def parse_user_interest_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def user_location_view_path( customer_id: str, country_criterion_id: str, is_targeting_location: str ) -> str: ... @staticmethod - def parse_user_location_view_path(path: str) -> Dict[str, str]: ... + def parse_user_location_view_path(path: str) -> dict[str, str]: ... @staticmethod def video_path(customer_id: str, video_id: str) -> str: ... @staticmethod - def parse_video_path(path: str) -> Dict[str, str]: ... + def parse_video_path(path: str) -> dict[str, str]: ... @staticmethod def webpage_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_webpage_view_path(path: str) -> Dict[str, str]: ... + def parse_webpage_view_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, GoogleAdsServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | GoogleAdsServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def search( self, - request: Optional[ - Union[google_ads_service.SearchGoogleAdsRequest, dict] - ] = None, + request: google_ads_service.SearchGoogleAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - query: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + query: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.SearchPager: ... def search_stream( self, - request: Optional[ - Union[google_ads_service.SearchGoogleAdsStreamRequest, dict] - ] = None, + request: google_ads_service.SearchGoogleAdsStreamRequest | dict | None = None, *, - customer_id: Optional[str] = None, - query: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + query: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> Iterable[google_ads_service.SearchGoogleAdsStreamResponse]: ... def mutate( self, - request: Optional[ - Union[google_ads_service.MutateGoogleAdsRequest, dict] - ] = None, + request: google_ads_service.MutateGoogleAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - mutate_operations: Optional[ - MutableSequence[google_ads_service.MutateOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + mutate_operations: MutableSequence[google_ads_service.MutateOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> google_ads_service.MutateGoogleAdsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/google_ads_service/pagers.pyi b/google-stubs/ads/googleads/v14/services/services/google_ads_service/pagers.pyi index f13dcfc5f..8c4e88f61 100644 --- a/google-stubs/ads/googleads/v14/services/services/google_ads_service/pagers.pyi +++ b/google-stubs/ads/googleads/v14/services/services/google_ads_service/pagers.pyi @@ -10,7 +10,7 @@ class SearchPager: method: Callable[..., google_ads_service.SearchGoogleAdsResponse], request: google_ads_service.SearchGoogleAdsRequest, response: google_ads_service.SearchGoogleAdsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/google_ads_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/google_ads_service/transports/base.pyi index 3587cf2a7..be51ed33f 100644 --- a/google-stubs/ads/googleads/v14/services/services/google_ads_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/google_ads_service/transports/base.pyi @@ -14,12 +14,12 @@ class GoogleAdsServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,28 +28,19 @@ class GoogleAdsServiceTransport(abc.ABC): self, ) -> Callable[ [google_ads_service.SearchGoogleAdsRequest], - Union[ - google_ads_service.SearchGoogleAdsResponse, - Awaitable[google_ads_service.SearchGoogleAdsResponse], - ], + google_ads_service.SearchGoogleAdsResponse | Awaitable[google_ads_service.SearchGoogleAdsResponse], ]: ... @property def search_stream( self, ) -> Callable[ [google_ads_service.SearchGoogleAdsStreamRequest], - Union[ - google_ads_service.SearchGoogleAdsStreamResponse, - Awaitable[google_ads_service.SearchGoogleAdsStreamResponse], - ], + google_ads_service.SearchGoogleAdsStreamResponse | Awaitable[google_ads_service.SearchGoogleAdsStreamResponse], ]: ... @property def mutate( self, ) -> Callable[ [google_ads_service.MutateGoogleAdsRequest], - Union[ - google_ads_service.MutateGoogleAdsResponse, - Awaitable[google_ads_service.MutateGoogleAdsResponse], - ], + google_ads_service.MutateGoogleAdsResponse | Awaitable[google_ads_service.MutateGoogleAdsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/google_ads_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/google_ads_service/transports/grpc.pyi index 0aece3920..59790b61a 100644 --- a/google-stubs/ads/googleads/v14/services/services/google_ads_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/google_ads_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class GoogleAdsServiceGrpcTransport(GoogleAdsServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/invoice_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/invoice_service/client.pyi index b40f5c961..817cf39cb 100644 --- a/google-stubs/ads/googleads/v14/services/services/invoice_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/invoice_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import InvoiceServiceTransport class InvoiceServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[InvoiceServiceTransport]: ... + cls, label: str | None = None + ) -> type[InvoiceServiceTransport]: ... class InvoiceServiceClient(metaclass=InvoiceServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,44 +33,44 @@ class InvoiceServiceClient(metaclass=InvoiceServiceClientMeta): @staticmethod def invoice_path(customer_id: str, invoice_id: str) -> str: ... @staticmethod - def parse_invoice_path(path: str) -> Dict[str, str]: ... + def parse_invoice_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, InvoiceServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | InvoiceServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_invoices( self, - request: Optional[Union[invoice_service.ListInvoicesRequest, dict]] = None, + request: invoice_service.ListInvoicesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - billing_setup: Optional[str] = None, - issue_year: Optional[str] = None, - issue_month: Optional[month_of_year.MonthOfYearEnum.MonthOfYear] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + billing_setup: str | None = None, + issue_year: str | None = None, + issue_month: month_of_year.MonthOfYearEnum.MonthOfYear | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> invoice_service.ListInvoicesResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/invoice_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/invoice_service/transports/base.pyi index af695993d..e4098135d 100644 --- a/google-stubs/ads/googleads/v14/services/services/invoice_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/invoice_service/transports/base.pyi @@ -14,12 +14,12 @@ class InvoiceServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class InvoiceServiceTransport(abc.ABC): self, ) -> Callable[ [invoice_service.ListInvoicesRequest], - Union[ - invoice_service.ListInvoicesResponse, - Awaitable[invoice_service.ListInvoicesResponse], - ], + invoice_service.ListInvoicesResponse | Awaitable[invoice_service.ListInvoicesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/invoice_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/invoice_service/transports/grpc.pyi index 86f840ef7..27a05c795 100644 --- a/google-stubs/ads/googleads/v14/services/services/invoice_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/invoice_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class InvoiceServiceGrpcTransport(InvoiceServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/client.pyi index 0462c4ea1..fdaa4a489 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import KeywordPlanAdGroupKeywordServiceTransport class KeywordPlanAdGroupKeywordServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanAdGroupKeywordServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanAdGroupKeywordServiceTransport]: ... class KeywordPlanAdGroupKeywordServiceClient( metaclass=KeywordPlanAdGroupKeywordServiceClientMeta @@ -38,61 +38,50 @@ class KeywordPlanAdGroupKeywordServiceClient( customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_keyword_path( customer_id: str, keyword_plan_ad_group_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, KeywordPlanAdGroupKeywordServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanAdGroupKeywordServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_ad_group_keywords( self, - request: Optional[ - Union[ - keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsRequest, - dict, - ] - ] = None, + request: keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - keyword_plan_ad_group_keyword_service.KeywordPlanAdGroupKeywordOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_ad_group_keyword_service.KeywordPlanAdGroupKeywordOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse ): ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi index 2a6bd8e30..51223ae8e 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi @@ -16,12 +16,12 @@ class KeywordPlanAdGroupKeywordServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -30,10 +30,5 @@ class KeywordPlanAdGroupKeywordServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsRequest], - Union[ - keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse, - Awaitable[ - keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse - ], - ], + keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse | Awaitable[keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi index 592fffb86..cda5b7fa5 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class KeywordPlanAdGroupKeywordServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/client.pyi index 97ce12cfa..a6b58ba18 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordPlanAdGroupServiceTransport class KeywordPlanAdGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanAdGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanAdGroupServiceTransport]: ... class KeywordPlanAdGroupServiceClient(metaclass=KeywordPlanAdGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,52 +34,48 @@ class KeywordPlanAdGroupServiceClient(metaclass=KeywordPlanAdGroupServiceClientM customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanAdGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanAdGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_ad_groups( self, - request: Optional[ - Union[keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest, dict] - ] = None, + request: keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[keyword_plan_ad_group_service.KeywordPlanAdGroupOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_ad_group_service.KeywordPlanAdGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/base.pyi index 8545a49c0..29c841915 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanAdGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class KeywordPlanAdGroupServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest], - Union[ - keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse, - Awaitable[keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse], - ], + keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse | Awaitable[keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/grpc.pyi index 6836a00bd..6eae5ec6d 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_ad_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanAdGroupServiceGrpcTransport(KeywordPlanAdGroupServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/client.pyi index 675e3e7ea..0097db01a 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import KeywordPlanCampaignKeywordServiceTransport class KeywordPlanCampaignKeywordServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanCampaignKeywordServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanCampaignKeywordServiceTransport]: ... class KeywordPlanCampaignKeywordServiceClient( metaclass=KeywordPlanCampaignKeywordServiceClientMeta @@ -38,61 +38,50 @@ class KeywordPlanCampaignKeywordServiceClient( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_keyword_path( customer_id: str, keyword_plan_campaign_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, KeywordPlanCampaignKeywordServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanCampaignKeywordServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_campaign_keywords( self, - request: Optional[ - Union[ - keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsRequest, - dict, - ] - ] = None, + request: keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - keyword_plan_campaign_keyword_service.KeywordPlanCampaignKeywordOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_campaign_keyword_service.KeywordPlanCampaignKeywordOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse ): ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi index 7ac580d9e..796e8ccf9 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi @@ -16,12 +16,12 @@ class KeywordPlanCampaignKeywordServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class KeywordPlanCampaignKeywordServiceTransport(abc.ABC): [ keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsRequest ], - Union[ - keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse, - Awaitable[ - keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse - ], - ], + keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse | Awaitable[keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi index 2caacfa19..de29e0671 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class KeywordPlanCampaignKeywordServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/client.pyi index 259184fd3..e1164f93d 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordPlanCampaignServiceTransport class KeywordPlanCampaignServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanCampaignServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanCampaignServiceTransport]: ... class KeywordPlanCampaignServiceClient(metaclass=KeywordPlanCampaignServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,60 +32,56 @@ class KeywordPlanCampaignServiceClient(metaclass=KeywordPlanCampaignServiceClien @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def language_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_language_constant_path(path: str) -> Dict[str, str]: ... + def parse_language_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanCampaignServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanCampaignServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_campaigns( self, - request: Optional[ - Union[keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest, dict] - ] = None, + request: keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[keyword_plan_campaign_service.KeywordPlanCampaignOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_campaign_service.KeywordPlanCampaignOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/base.pyi index 5a5c29611..0b5422a9e 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanCampaignServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class KeywordPlanCampaignServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest], - Union[ - keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse, - Awaitable[keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse], - ], + keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse | Awaitable[keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/grpc.pyi index d937c63b6..e6335dd48 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_campaign_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanCampaignServiceGrpcTransport(KeywordPlanCampaignServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/client.pyi index ae84babce..2b5135115 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import KeywordPlanIdeaServiceTransport class KeywordPlanIdeaServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanIdeaServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanIdeaServiceTransport]: ... class KeywordPlanIdeaServiceClient(metaclass=KeywordPlanIdeaServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,70 +33,60 @@ class KeywordPlanIdeaServiceClient(metaclass=KeywordPlanIdeaServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanIdeaServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanIdeaServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def generate_keyword_ideas( self, - request: Optional[ - Union[keyword_plan_idea_service.GenerateKeywordIdeasRequest, dict] - ] = None, + request: keyword_plan_idea_service.GenerateKeywordIdeasRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.GenerateKeywordIdeasPager: ... def generate_keyword_historical_metrics( self, - request: Optional[ - Union[ - keyword_plan_idea_service.GenerateKeywordHistoricalMetricsRequest, dict - ] - ] = None, + request: keyword_plan_idea_service.GenerateKeywordHistoricalMetricsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse: ... def generate_ad_group_themes( self, - request: Optional[ - Union[keyword_plan_idea_service.GenerateAdGroupThemesRequest, dict] - ] = None, + request: keyword_plan_idea_service.GenerateAdGroupThemesRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_idea_service.GenerateAdGroupThemesResponse: ... def generate_keyword_forecast_metrics( self, - request: Optional[ - Union[keyword_plan_idea_service.GenerateKeywordForecastMetricsRequest, dict] - ] = None, + request: keyword_plan_idea_service.GenerateKeywordForecastMetricsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/pagers.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/pagers.pyi index 40b3d497e..5949e07c5 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/pagers.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/pagers.pyi @@ -10,7 +10,7 @@ class GenerateKeywordIdeasPager: method: Callable[..., keyword_plan_idea_service.GenerateKeywordIdeaResponse], request: keyword_plan_idea_service.GenerateKeywordIdeasRequest, response: keyword_plan_idea_service.GenerateKeywordIdeaResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/base.pyi index 11535e6e9..72dc1da54 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanIdeaServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,40 +28,26 @@ class KeywordPlanIdeaServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_idea_service.GenerateKeywordIdeasRequest], - Union[ - keyword_plan_idea_service.GenerateKeywordIdeaResponse, - Awaitable[keyword_plan_idea_service.GenerateKeywordIdeaResponse], - ], + keyword_plan_idea_service.GenerateKeywordIdeaResponse | Awaitable[keyword_plan_idea_service.GenerateKeywordIdeaResponse], ]: ... @property def generate_keyword_historical_metrics( self, ) -> Callable[ [keyword_plan_idea_service.GenerateKeywordHistoricalMetricsRequest], - Union[ - keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse, - Awaitable[ - keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse - ], - ], + keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse | Awaitable[keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse], ]: ... @property def generate_ad_group_themes( self, ) -> Callable[ [keyword_plan_idea_service.GenerateAdGroupThemesRequest], - Union[ - keyword_plan_idea_service.GenerateAdGroupThemesResponse, - Awaitable[keyword_plan_idea_service.GenerateAdGroupThemesResponse], - ], + keyword_plan_idea_service.GenerateAdGroupThemesResponse | Awaitable[keyword_plan_idea_service.GenerateAdGroupThemesResponse], ]: ... @property def generate_keyword_forecast_metrics( self, ) -> Callable[ [keyword_plan_idea_service.GenerateKeywordForecastMetricsRequest], - Union[ - keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse, - Awaitable[keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse], - ], + keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse | Awaitable[keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/grpc.pyi index e5c68e6db..a281cc9fe 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_idea_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanIdeaServiceGrpcTransport(KeywordPlanIdeaServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/client.pyi index 62f3cf3e3..e1a83ea71 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordPlanServiceTransport class KeywordPlanServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanServiceTransport]: ... class KeywordPlanServiceClient(metaclass=KeywordPlanServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class KeywordPlanServiceClient(metaclass=KeywordPlanServiceClientMeta): @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plans( self, - request: Optional[ - Union[keyword_plan_service.MutateKeywordPlansRequest, dict] - ] = None, + request: keyword_plan_service.MutateKeywordPlansRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[keyword_plan_service.KeywordPlanOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_service.KeywordPlanOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_service.MutateKeywordPlansResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/transports/base.pyi index 6e20dc1eb..0232aa947 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class KeywordPlanServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_service.MutateKeywordPlansRequest], - Union[ - keyword_plan_service.MutateKeywordPlansResponse, - Awaitable[keyword_plan_service.MutateKeywordPlansResponse], - ], + keyword_plan_service.MutateKeywordPlansResponse | Awaitable[keyword_plan_service.MutateKeywordPlansResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/transports/grpc.pyi index 6dbc64f53..9b12e30d9 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_plan_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanServiceGrpcTransport(KeywordPlanServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/client.pyi index de80993d1..79a9baafd 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordThemeConstantServiceTransport class KeywordThemeConstantServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordThemeConstantServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordThemeConstantServiceTransport]: ... class KeywordThemeConstantServiceClient( metaclass=KeywordThemeConstantServiceClientMeta @@ -36,44 +36,40 @@ class KeywordThemeConstantServiceClient( express_category_id: str, express_sub_category_id: str ) -> str: ... @staticmethod - def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: ... + def parse_keyword_theme_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordThemeConstantServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordThemeConstantServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_keyword_theme_constants( self, - request: Optional[ - Union[ - keyword_theme_constant_service.SuggestKeywordThemeConstantsRequest, dict - ] - ] = None, + request: keyword_theme_constant_service.SuggestKeywordThemeConstantsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/base.pyi index 4cd0c6938..196a0074a 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordThemeConstantServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class KeywordThemeConstantServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_theme_constant_service.SuggestKeywordThemeConstantsRequest], - Union[ - keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse, - Awaitable[ - keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse - ], - ], + keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse | Awaitable[keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/grpc.pyi index 62f9e3d44..1b1323338 100644 --- a/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/keyword_theme_constant_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordThemeConstantServiceGrpcTransport(KeywordThemeConstantServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/label_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/label_service/client.pyi index 572fc2a47..c8eb939e3 100644 --- a/google-stubs/ads/googleads/v14/services/services/label_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import LabelServiceTransport class LabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[LabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[LabelServiceTransport]: ... class LabelServiceClient(metaclass=LabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,42 +32,42 @@ class LabelServiceClient(metaclass=LabelServiceClientMeta): @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, LabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | LabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_labels( self, - request: Optional[Union[label_service.MutateLabelsRequest, dict]] = None, + request: label_service.MutateLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[label_service.LabelOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[label_service.LabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> label_service.MutateLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/label_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/label_service/transports/base.pyi index 1d5c29c3e..4e0e40afa 100644 --- a/google-stubs/ads/googleads/v14/services/services/label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/label_service/transports/base.pyi @@ -14,12 +14,12 @@ class LabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class LabelServiceTransport(abc.ABC): self, ) -> Callable[ [label_service.MutateLabelsRequest], - Union[ - label_service.MutateLabelsResponse, - Awaitable[label_service.MutateLabelsResponse], - ], + label_service.MutateLabelsResponse | Awaitable[label_service.MutateLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/label_service/transports/grpc.pyi index 89a6cc7ba..88f6d18f4 100644 --- a/google-stubs/ads/googleads/v14/services/services/label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class LabelServiceGrpcTransport(LabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/media_file_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/media_file_service/client.pyi index aa5b6feab..e7eb19764 100644 --- a/google-stubs/ads/googleads/v14/services/services/media_file_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/media_file_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import MediaFileServiceTransport class MediaFileServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[MediaFileServiceTransport]: ... + cls, label: str | None = None + ) -> type[MediaFileServiceTransport]: ... class MediaFileServiceClient(metaclass=MediaFileServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class MediaFileServiceClient(metaclass=MediaFileServiceClientMeta): @staticmethod def media_file_path(customer_id: str, media_file_id: str) -> str: ... @staticmethod - def parse_media_file_path(path: str) -> Dict[str, str]: ... + def parse_media_file_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, MediaFileServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | MediaFileServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_media_files( self, - request: Optional[ - Union[media_file_service.MutateMediaFilesRequest, dict] - ] = None, + request: media_file_service.MutateMediaFilesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[media_file_service.MediaFileOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[media_file_service.MediaFileOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> media_file_service.MutateMediaFilesResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/media_file_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/media_file_service/transports/base.pyi index 2f5e7f15d..f56bd52aa 100644 --- a/google-stubs/ads/googleads/v14/services/services/media_file_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/media_file_service/transports/base.pyi @@ -14,12 +14,12 @@ class MediaFileServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class MediaFileServiceTransport(abc.ABC): self, ) -> Callable[ [media_file_service.MutateMediaFilesRequest], - Union[ - media_file_service.MutateMediaFilesResponse, - Awaitable[media_file_service.MutateMediaFilesResponse], - ], + media_file_service.MutateMediaFilesResponse | Awaitable[media_file_service.MutateMediaFilesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/media_file_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/media_file_service/transports/grpc.pyi index e85fe54db..047fc3a3e 100644 --- a/google-stubs/ads/googleads/v14/services/services/media_file_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/media_file_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class MediaFileServiceGrpcTransport(MediaFileServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/client.pyi index 2c25d6397..fbd53d419 100644 --- a/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import MerchantCenterLinkServiceTransport class MerchantCenterLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[MerchantCenterLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[MerchantCenterLinkServiceTransport]: ... class MerchantCenterLinkServiceClient(metaclass=MerchantCenterLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,68 +33,60 @@ class MerchantCenterLinkServiceClient(metaclass=MerchantCenterLinkServiceClientM @staticmethod def merchant_center_link_path(customer_id: str, merchant_center_id: str) -> str: ... @staticmethod - def parse_merchant_center_link_path(path: str) -> Dict[str, str]: ... + def parse_merchant_center_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, MerchantCenterLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | MerchantCenterLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_merchant_center_links( self, - request: Optional[ - Union[merchant_center_link_service.ListMerchantCenterLinksRequest, dict] - ] = None, + request: merchant_center_link_service.ListMerchantCenterLinksRequest | dict | None = None, *, - customer_id: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> merchant_center_link_service.ListMerchantCenterLinksResponse: ... def get_merchant_center_link( self, - request: Optional[ - Union[merchant_center_link_service.GetMerchantCenterLinkRequest, dict] - ] = None, + request: merchant_center_link_service.GetMerchantCenterLinkRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> merchant_center_link.MerchantCenterLink: ... def mutate_merchant_center_link( self, - request: Optional[ - Union[merchant_center_link_service.MutateMerchantCenterLinkRequest, dict] - ] = None, + request: merchant_center_link_service.MutateMerchantCenterLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - merchant_center_link_service.MerchantCenterLinkOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: merchant_center_link_service.MerchantCenterLinkOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> merchant_center_link_service.MutateMerchantCenterLinkResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/transports/base.pyi index 00fcddbc8..7b7c09a2a 100644 --- a/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/transports/base.pyi @@ -15,12 +15,12 @@ class MerchantCenterLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -29,28 +29,19 @@ class MerchantCenterLinkServiceTransport(abc.ABC): self, ) -> Callable[ [merchant_center_link_service.ListMerchantCenterLinksRequest], - Union[ - merchant_center_link_service.ListMerchantCenterLinksResponse, - Awaitable[merchant_center_link_service.ListMerchantCenterLinksResponse], - ], + merchant_center_link_service.ListMerchantCenterLinksResponse | Awaitable[merchant_center_link_service.ListMerchantCenterLinksResponse], ]: ... @property def get_merchant_center_link( self, ) -> Callable[ [merchant_center_link_service.GetMerchantCenterLinkRequest], - Union[ - merchant_center_link.MerchantCenterLink, - Awaitable[merchant_center_link.MerchantCenterLink], - ], + merchant_center_link.MerchantCenterLink | Awaitable[merchant_center_link.MerchantCenterLink], ]: ... @property def mutate_merchant_center_link( self, ) -> Callable[ [merchant_center_link_service.MutateMerchantCenterLinkRequest], - Union[ - merchant_center_link_service.MutateMerchantCenterLinkResponse, - Awaitable[merchant_center_link_service.MutateMerchantCenterLinkResponse], - ], + merchant_center_link_service.MutateMerchantCenterLinkResponse | Awaitable[merchant_center_link_service.MutateMerchantCenterLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/transports/grpc.pyi index f5b6f619f..e359a8d1e 100644 --- a/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/merchant_center_link_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class MerchantCenterLinkServiceGrpcTransport(MerchantCenterLinkServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/client.pyi index e8073c267..a1d32ea4b 100644 --- a/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import OfflineUserDataJobServiceTransport class OfflineUserDataJobServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[OfflineUserDataJobServiceTransport]: ... + cls, label: str | None = None + ) -> type[OfflineUserDataJobServiceTransport]: ... class OfflineUserDataJobServiceClient(metaclass=OfflineUserDataJobServiceClientMeta): DEFAULT_ENDPOINT: str @@ -36,72 +36,61 @@ class OfflineUserDataJobServiceClient(metaclass=OfflineUserDataJobServiceClientM customer_id: str, offline_user_data_update_id: str ) -> str: ... @staticmethod - def parse_offline_user_data_job_path(path: str) -> Dict[str, str]: ... + def parse_offline_user_data_job_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, OfflineUserDataJobServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | OfflineUserDataJobServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def create_offline_user_data_job( self, - request: Optional[ - Union[offline_user_data_job_service.CreateOfflineUserDataJobRequest, dict] - ] = None, + request: offline_user_data_job_service.CreateOfflineUserDataJobRequest | dict | None = None, *, - customer_id: Optional[str] = None, - job: Optional[offline_user_data_job.OfflineUserDataJob] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + job: offline_user_data_job.OfflineUserDataJob | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> offline_user_data_job_service.CreateOfflineUserDataJobResponse: ... def add_offline_user_data_job_operations( self, - request: Optional[ - Union[ - offline_user_data_job_service.AddOfflineUserDataJobOperationsRequest, - dict, - ] - ] = None, + request: offline_user_data_job_service.AddOfflineUserDataJobOperationsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - operations: Optional[ - MutableSequence[offline_user_data_job_service.OfflineUserDataJobOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + operations: MutableSequence[offline_user_data_job_service.OfflineUserDataJobOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse: ... def run_offline_user_data_job( self, - request: Optional[ - Union[offline_user_data_job_service.RunOfflineUserDataJobRequest, dict] - ] = None, + request: offline_user_data_job_service.RunOfflineUserDataJobRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... diff --git a/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/transports/base.pyi index 66241274d..3f5416e8f 100644 --- a/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/transports/base.pyi @@ -15,12 +15,12 @@ class OfflineUserDataJobServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -31,27 +31,19 @@ class OfflineUserDataJobServiceTransport(abc.ABC): self, ) -> Callable[ [offline_user_data_job_service.CreateOfflineUserDataJobRequest], - Union[ - offline_user_data_job_service.CreateOfflineUserDataJobResponse, - Awaitable[offline_user_data_job_service.CreateOfflineUserDataJobResponse], - ], + offline_user_data_job_service.CreateOfflineUserDataJobResponse | Awaitable[offline_user_data_job_service.CreateOfflineUserDataJobResponse], ]: ... @property def add_offline_user_data_job_operations( self, ) -> Callable[ [offline_user_data_job_service.AddOfflineUserDataJobOperationsRequest], - Union[ - offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse, - Awaitable[ - offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse - ], - ], + offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse | Awaitable[offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse], ]: ... @property def run_offline_user_data_job( self, ) -> Callable[ [offline_user_data_job_service.RunOfflineUserDataJobRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/transports/grpc.pyi index 97e5db07a..9697b5e02 100644 --- a/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/offline_user_data_job_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class OfflineUserDataJobServiceGrpcTransport(OfflineUserDataJobServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/payments_account_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/payments_account_service/client.pyi index 4007579e4..c5ec5dc7c 100644 --- a/google-stubs/ads/googleads/v14/services/services/payments_account_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/payments_account_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import PaymentsAccountServiceTransport class PaymentsAccountServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[PaymentsAccountServiceTransport]: ... + cls, label: str | None = None + ) -> type[PaymentsAccountServiceTransport]: ... class PaymentsAccountServiceClient(metaclass=PaymentsAccountServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,47 +32,45 @@ class PaymentsAccountServiceClient(metaclass=PaymentsAccountServiceClientMeta): @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def payments_account_path(customer_id: str, payments_account_id: str) -> str: ... @staticmethod - def parse_payments_account_path(path: str) -> Dict[str, str]: ... + def parse_payments_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, PaymentsAccountServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | PaymentsAccountServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_payments_accounts( self, - request: Optional[ - Union[payments_account_service.ListPaymentsAccountsRequest, dict] - ] = None, + request: payments_account_service.ListPaymentsAccountsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> payments_account_service.ListPaymentsAccountsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/payments_account_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/payments_account_service/transports/base.pyi index f9151a6d4..ed1790742 100644 --- a/google-stubs/ads/googleads/v14/services/services/payments_account_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/payments_account_service/transports/base.pyi @@ -14,12 +14,12 @@ class PaymentsAccountServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class PaymentsAccountServiceTransport(abc.ABC): self, ) -> Callable[ [payments_account_service.ListPaymentsAccountsRequest], - Union[ - payments_account_service.ListPaymentsAccountsResponse, - Awaitable[payments_account_service.ListPaymentsAccountsResponse], - ], + payments_account_service.ListPaymentsAccountsResponse | Awaitable[payments_account_service.ListPaymentsAccountsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/payments_account_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/payments_account_service/transports/grpc.pyi index 402439de2..e7e229fc5 100644 --- a/google-stubs/ads/googleads/v14/services/services/payments_account_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/payments_account_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class PaymentsAccountServiceGrpcTransport(PaymentsAccountServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/product_link_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/product_link_service/client.pyi index 08c844395..e7c710f51 100644 --- a/google-stubs/ads/googleads/v14/services/services/product_link_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/product_link_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import ProductLinkServiceTransport class ProductLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ProductLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[ProductLinkServiceTransport]: ... class ProductLinkServiceClient(metaclass=ProductLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,60 +33,56 @@ class ProductLinkServiceClient(metaclass=ProductLinkServiceClientMeta): @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def product_link_path(customer_id: str, product_link_id: str) -> str: ... @staticmethod - def parse_product_link_path(path: str) -> Dict[str, str]: ... + def parse_product_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ProductLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ProductLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def create_product_link( self, - request: Optional[ - Union[product_link_service.CreateProductLinkRequest, dict] - ] = None, + request: product_link_service.CreateProductLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - product_link: Optional[gagr_product_link.ProductLink] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + product_link: gagr_product_link.ProductLink | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> product_link_service.CreateProductLinkResponse: ... def remove_product_link( self, - request: Optional[ - Union[product_link_service.RemoveProductLinkRequest, dict] - ] = None, + request: product_link_service.RemoveProductLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> product_link_service.RemoveProductLinkResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/product_link_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/product_link_service/transports/base.pyi index 001ae023f..e839fd414 100644 --- a/google-stubs/ads/googleads/v14/services/services/product_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/product_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class ProductLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class ProductLinkServiceTransport(abc.ABC): self, ) -> Callable[ [product_link_service.CreateProductLinkRequest], - Union[ - product_link_service.CreateProductLinkResponse, - Awaitable[product_link_service.CreateProductLinkResponse], - ], + product_link_service.CreateProductLinkResponse | Awaitable[product_link_service.CreateProductLinkResponse], ]: ... @property def remove_product_link( self, ) -> Callable[ [product_link_service.RemoveProductLinkRequest], - Union[ - product_link_service.RemoveProductLinkResponse, - Awaitable[product_link_service.RemoveProductLinkResponse], - ], + product_link_service.RemoveProductLinkResponse | Awaitable[product_link_service.RemoveProductLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/product_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/product_link_service/transports/grpc.pyi index eb02ce9e3..74cb98f26 100644 --- a/google-stubs/ads/googleads/v14/services/services/product_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/product_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ProductLinkServiceGrpcTransport(ProductLinkServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/reach_plan_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/reach_plan_service/client.pyi index 6464defb1..afaf7d3c6 100644 --- a/google-stubs/ads/googleads/v14/services/services/reach_plan_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/reach_plan_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ReachPlanServiceTransport class ReachPlanServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ReachPlanServiceTransport]: ... + cls, label: str | None = None + ) -> type[ReachPlanServiceTransport]: ... class ReachPlanServiceClient(metaclass=ReachPlanServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,64 +32,56 @@ class ReachPlanServiceClient(metaclass=ReachPlanServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ReachPlanServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ReachPlanServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_plannable_locations( self, - request: Optional[ - Union[reach_plan_service.ListPlannableLocationsRequest, dict] - ] = None, + request: reach_plan_service.ListPlannableLocationsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> reach_plan_service.ListPlannableLocationsResponse: ... def list_plannable_products( self, - request: Optional[ - Union[reach_plan_service.ListPlannableProductsRequest, dict] - ] = None, + request: reach_plan_service.ListPlannableProductsRequest | dict | None = None, *, - plannable_location_id: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + plannable_location_id: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> reach_plan_service.ListPlannableProductsResponse: ... def generate_reach_forecast( self, - request: Optional[ - Union[reach_plan_service.GenerateReachForecastRequest, dict] - ] = None, + request: reach_plan_service.GenerateReachForecastRequest | dict | None = None, *, - customer_id: Optional[str] = None, - campaign_duration: Optional[reach_plan_service.CampaignDuration] = None, - planned_products: Optional[ - MutableSequence[reach_plan_service.PlannedProduct] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + campaign_duration: reach_plan_service.CampaignDuration | None = None, + planned_products: MutableSequence[reach_plan_service.PlannedProduct] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> reach_plan_service.GenerateReachForecastResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/reach_plan_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/reach_plan_service/transports/base.pyi index 282888818..9b0dd19c0 100644 --- a/google-stubs/ads/googleads/v14/services/services/reach_plan_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/reach_plan_service/transports/base.pyi @@ -14,12 +14,12 @@ class ReachPlanServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,28 +28,19 @@ class ReachPlanServiceTransport(abc.ABC): self, ) -> Callable[ [reach_plan_service.ListPlannableLocationsRequest], - Union[ - reach_plan_service.ListPlannableLocationsResponse, - Awaitable[reach_plan_service.ListPlannableLocationsResponse], - ], + reach_plan_service.ListPlannableLocationsResponse | Awaitable[reach_plan_service.ListPlannableLocationsResponse], ]: ... @property def list_plannable_products( self, ) -> Callable[ [reach_plan_service.ListPlannableProductsRequest], - Union[ - reach_plan_service.ListPlannableProductsResponse, - Awaitable[reach_plan_service.ListPlannableProductsResponse], - ], + reach_plan_service.ListPlannableProductsResponse | Awaitable[reach_plan_service.ListPlannableProductsResponse], ]: ... @property def generate_reach_forecast( self, ) -> Callable[ [reach_plan_service.GenerateReachForecastRequest], - Union[ - reach_plan_service.GenerateReachForecastResponse, - Awaitable[reach_plan_service.GenerateReachForecastResponse], - ], + reach_plan_service.GenerateReachForecastResponse | Awaitable[reach_plan_service.GenerateReachForecastResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/reach_plan_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/reach_plan_service/transports/grpc.pyi index 3baa54563..f51daac07 100644 --- a/google-stubs/ads/googleads/v14/services/services/reach_plan_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/reach_plan_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ReachPlanServiceGrpcTransport(ReachPlanServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/recommendation_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/recommendation_service/client.pyi index 4ddb8b3d5..29a298e26 100644 --- a/google-stubs/ads/googleads/v14/services/services/recommendation_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/recommendation_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import RecommendationServiceTransport class RecommendationServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[RecommendationServiceTransport]: ... + cls, label: str | None = None + ) -> type[RecommendationServiceTransport]: ... class RecommendationServiceClient(metaclass=RecommendationServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,74 +32,64 @@ class RecommendationServiceClient(metaclass=RecommendationServiceClientMeta): @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def recommendation_path(customer_id: str, recommendation_id: str) -> str: ... @staticmethod - def parse_recommendation_path(path: str) -> Dict[str, str]: ... + def parse_recommendation_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, RecommendationServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | RecommendationServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def apply_recommendation( self, - request: Optional[ - Union[recommendation_service.ApplyRecommendationRequest, dict] - ] = None, + request: recommendation_service.ApplyRecommendationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[recommendation_service.ApplyRecommendationOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[recommendation_service.ApplyRecommendationOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> recommendation_service.ApplyRecommendationResponse: ... def dismiss_recommendation( self, - request: Optional[ - Union[recommendation_service.DismissRecommendationRequest, dict] - ] = None, + request: recommendation_service.DismissRecommendationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - recommendation_service.DismissRecommendationRequest.DismissRecommendationOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[recommendation_service.DismissRecommendationRequest.DismissRecommendationOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> recommendation_service.DismissRecommendationResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/recommendation_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/recommendation_service/transports/base.pyi index b2424fb54..087ae0d63 100644 --- a/google-stubs/ads/googleads/v14/services/services/recommendation_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/recommendation_service/transports/base.pyi @@ -14,12 +14,12 @@ class RecommendationServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class RecommendationServiceTransport(abc.ABC): self, ) -> Callable[ [recommendation_service.ApplyRecommendationRequest], - Union[ - recommendation_service.ApplyRecommendationResponse, - Awaitable[recommendation_service.ApplyRecommendationResponse], - ], + recommendation_service.ApplyRecommendationResponse | Awaitable[recommendation_service.ApplyRecommendationResponse], ]: ... @property def dismiss_recommendation( self, ) -> Callable[ [recommendation_service.DismissRecommendationRequest], - Union[ - recommendation_service.DismissRecommendationResponse, - Awaitable[recommendation_service.DismissRecommendationResponse], - ], + recommendation_service.DismissRecommendationResponse | Awaitable[recommendation_service.DismissRecommendationResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/recommendation_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/recommendation_service/transports/grpc.pyi index db8e333dc..9e4c20751 100644 --- a/google-stubs/ads/googleads/v14/services/services/recommendation_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/recommendation_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class RecommendationServiceGrpcTransport(RecommendationServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/client.pyi index b776d1bd8..2ed660660 100644 --- a/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import RemarketingActionServiceTransport class RemarketingActionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[RemarketingActionServiceTransport]: ... + cls, label: str | None = None + ) -> type[RemarketingActionServiceTransport]: ... class RemarketingActionServiceClient(metaclass=RemarketingActionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,46 +34,42 @@ class RemarketingActionServiceClient(metaclass=RemarketingActionServiceClientMet customer_id: str, remarketing_action_id: str ) -> str: ... @staticmethod - def parse_remarketing_action_path(path: str) -> Dict[str, str]: ... + def parse_remarketing_action_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, RemarketingActionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | RemarketingActionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_remarketing_actions( self, - request: Optional[ - Union[remarketing_action_service.MutateRemarketingActionsRequest, dict] - ] = None, + request: remarketing_action_service.MutateRemarketingActionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[remarketing_action_service.RemarketingActionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[remarketing_action_service.RemarketingActionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> remarketing_action_service.MutateRemarketingActionsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/transports/base.pyi index e256847a6..50ccd2ef6 100644 --- a/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/transports/base.pyi @@ -14,12 +14,12 @@ class RemarketingActionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class RemarketingActionServiceTransport(abc.ABC): self, ) -> Callable[ [remarketing_action_service.MutateRemarketingActionsRequest], - Union[ - remarketing_action_service.MutateRemarketingActionsResponse, - Awaitable[remarketing_action_service.MutateRemarketingActionsResponse], - ], + remarketing_action_service.MutateRemarketingActionsResponse | Awaitable[remarketing_action_service.MutateRemarketingActionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/transports/grpc.pyi index d0e8b349e..af38b2e6e 100644 --- a/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/remarketing_action_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class RemarketingActionServiceGrpcTransport(RemarketingActionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/client.pyi index f8bc5d550..40962120f 100644 --- a/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SharedCriterionServiceTransport class SharedCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SharedCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[SharedCriterionServiceTransport]: ... class SharedCriterionServiceClient(metaclass=SharedCriterionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,50 +34,46 @@ class SharedCriterionServiceClient(metaclass=SharedCriterionServiceClientMeta): customer_id: str, shared_set_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_shared_criterion_path(path: str) -> Dict[str, str]: ... + def parse_shared_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SharedCriterionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SharedCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_shared_criteria( self, - request: Optional[ - Union[shared_criterion_service.MutateSharedCriteriaRequest, dict] - ] = None, + request: shared_criterion_service.MutateSharedCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[shared_criterion_service.SharedCriterionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[shared_criterion_service.SharedCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> shared_criterion_service.MutateSharedCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/transports/base.pyi index 436790dc3..68839cff8 100644 --- a/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class SharedCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class SharedCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [shared_criterion_service.MutateSharedCriteriaRequest], - Union[ - shared_criterion_service.MutateSharedCriteriaResponse, - Awaitable[shared_criterion_service.MutateSharedCriteriaResponse], - ], + shared_criterion_service.MutateSharedCriteriaResponse | Awaitable[shared_criterion_service.MutateSharedCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/transports/grpc.pyi index 5a8985e96..d1fb75e1a 100644 --- a/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/shared_criterion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SharedCriterionServiceGrpcTransport(SharedCriterionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/shared_set_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/shared_set_service/client.pyi index 3021ce804..c488d508d 100644 --- a/google-stubs/ads/googleads/v14/services/services/shared_set_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/shared_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SharedSetServiceTransport class SharedSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SharedSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[SharedSetServiceTransport]: ... class SharedSetServiceClient(metaclass=SharedSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class SharedSetServiceClient(metaclass=SharedSetServiceClientMeta): @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SharedSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SharedSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_shared_sets( self, - request: Optional[ - Union[shared_set_service.MutateSharedSetsRequest, dict] - ] = None, + request: shared_set_service.MutateSharedSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[shared_set_service.SharedSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[shared_set_service.SharedSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> shared_set_service.MutateSharedSetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/shared_set_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/shared_set_service/transports/base.pyi index d17bcf607..78de741b9 100644 --- a/google-stubs/ads/googleads/v14/services/services/shared_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/shared_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class SharedSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class SharedSetServiceTransport(abc.ABC): self, ) -> Callable[ [shared_set_service.MutateSharedSetsRequest], - Union[ - shared_set_service.MutateSharedSetsResponse, - Awaitable[shared_set_service.MutateSharedSetsResponse], - ], + shared_set_service.MutateSharedSetsResponse | Awaitable[shared_set_service.MutateSharedSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/shared_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/shared_set_service/transports/grpc.pyi index 4fbc1dca1..1ca3074ba 100644 --- a/google-stubs/ads/googleads/v14/services/services/shared_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/shared_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SharedSetServiceGrpcTransport(SharedSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/client.pyi index 688b49d28..51d6fc26e 100644 --- a/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SmartCampaignSettingServiceTransport class SmartCampaignSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SmartCampaignSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[SmartCampaignSettingServiceTransport]: ... class SmartCampaignSettingServiceClient( metaclass=SmartCampaignSettingServiceClientMeta @@ -34,65 +34,55 @@ class SmartCampaignSettingServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_setting_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_setting_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SmartCampaignSettingServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SmartCampaignSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def get_smart_campaign_status( self, - request: Optional[ - Union[smart_campaign_setting_service.GetSmartCampaignStatusRequest, dict] - ] = None, + request: smart_campaign_setting_service.GetSmartCampaignStatusRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_setting_service.GetSmartCampaignStatusResponse: ... def mutate_smart_campaign_settings( self, - request: Optional[ - Union[ - smart_campaign_setting_service.MutateSmartCampaignSettingsRequest, dict - ] - ] = None, + request: smart_campaign_setting_service.MutateSmartCampaignSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - smart_campaign_setting_service.SmartCampaignSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[smart_campaign_setting_service.SmartCampaignSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_setting_service.MutateSmartCampaignSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/base.pyi index bd2677e5b..7c3a60f54 100644 --- a/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class SmartCampaignSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,20 +28,12 @@ class SmartCampaignSettingServiceTransport(abc.ABC): self, ) -> Callable[ [smart_campaign_setting_service.GetSmartCampaignStatusRequest], - Union[ - smart_campaign_setting_service.GetSmartCampaignStatusResponse, - Awaitable[smart_campaign_setting_service.GetSmartCampaignStatusResponse], - ], + smart_campaign_setting_service.GetSmartCampaignStatusResponse | Awaitable[smart_campaign_setting_service.GetSmartCampaignStatusResponse], ]: ... @property def mutate_smart_campaign_settings( self, ) -> Callable[ [smart_campaign_setting_service.MutateSmartCampaignSettingsRequest], - Union[ - smart_campaign_setting_service.MutateSmartCampaignSettingsResponse, - Awaitable[ - smart_campaign_setting_service.MutateSmartCampaignSettingsResponse - ], - ], + smart_campaign_setting_service.MutateSmartCampaignSettingsResponse | Awaitable[smart_campaign_setting_service.MutateSmartCampaignSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/grpc.pyi index 4e4fa6a12..c8d7e5555 100644 --- a/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/smart_campaign_setting_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SmartCampaignSettingServiceGrpcTransport(SmartCampaignSettingServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/client.pyi index 994d3df80..e68f91e8f 100644 --- a/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SmartCampaignSuggestServiceTransport class SmartCampaignSuggestServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SmartCampaignSuggestServiceTransport]: ... + cls, label: str | None = None + ) -> type[SmartCampaignSuggestServiceTransport]: ... class SmartCampaignSuggestServiceClient( metaclass=SmartCampaignSuggestServiceClientMeta @@ -34,71 +34,62 @@ class SmartCampaignSuggestServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_theme_constant_path( express_category_id: str, express_sub_category_id: str ) -> str: ... @staticmethod - def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: ... + def parse_keyword_theme_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SmartCampaignSuggestServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SmartCampaignSuggestServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_smart_campaign_budget_options( self, - request: Optional[ - Union[ - smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsRequest, - dict, - ] - ] = None, + request: smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse: ... def suggest_smart_campaign_ad( self, - request: Optional[ - Union[smart_campaign_suggest_service.SuggestSmartCampaignAdRequest, dict] - ] = None, + request: smart_campaign_suggest_service.SuggestSmartCampaignAdRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_suggest_service.SuggestSmartCampaignAdResponse: ... def suggest_keyword_themes( self, - request: Optional[ - Union[smart_campaign_suggest_service.SuggestKeywordThemesRequest, dict] - ] = None, + request: smart_campaign_suggest_service.SuggestKeywordThemesRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_suggest_service.SuggestKeywordThemesResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/base.pyi index e4eef03ba..5a9c506b6 100644 --- a/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/base.pyi @@ -14,12 +14,12 @@ class SmartCampaignSuggestServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,30 +28,19 @@ class SmartCampaignSuggestServiceTransport(abc.ABC): self, ) -> Callable[ [smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsRequest], - Union[ - smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse, - Awaitable[ - smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse - ], - ], + smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse | Awaitable[smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse], ]: ... @property def suggest_smart_campaign_ad( self, ) -> Callable[ [smart_campaign_suggest_service.SuggestSmartCampaignAdRequest], - Union[ - smart_campaign_suggest_service.SuggestSmartCampaignAdResponse, - Awaitable[smart_campaign_suggest_service.SuggestSmartCampaignAdResponse], - ], + smart_campaign_suggest_service.SuggestSmartCampaignAdResponse | Awaitable[smart_campaign_suggest_service.SuggestSmartCampaignAdResponse], ]: ... @property def suggest_keyword_themes( self, ) -> Callable[ [smart_campaign_suggest_service.SuggestKeywordThemesRequest], - Union[ - smart_campaign_suggest_service.SuggestKeywordThemesResponse, - Awaitable[smart_campaign_suggest_service.SuggestKeywordThemesResponse], - ], + smart_campaign_suggest_service.SuggestKeywordThemesResponse | Awaitable[smart_campaign_suggest_service.SuggestKeywordThemesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/grpc.pyi index 166989ba2..8796648da 100644 --- a/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/smart_campaign_suggest_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SmartCampaignSuggestServiceGrpcTransport(SmartCampaignSuggestServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/client.pyi index b3d906c4c..c9dbeae8a 100644 --- a/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import ThirdPartyAppAnalyticsLinkServiceTransport class ThirdPartyAppAnalyticsLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ThirdPartyAppAnalyticsLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[ThirdPartyAppAnalyticsLinkServiceTransport]: ... class ThirdPartyAppAnalyticsLinkServiceClient( metaclass=ThirdPartyAppAnalyticsLinkServiceClientMeta @@ -38,47 +38,40 @@ class ThirdPartyAppAnalyticsLinkServiceClient( customer_id: str, customer_link_id: str ) -> str: ... @staticmethod - def parse_third_party_app_analytics_link_path(path: str) -> Dict[str, str]: ... + def parse_third_party_app_analytics_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ThirdPartyAppAnalyticsLinkServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ThirdPartyAppAnalyticsLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def regenerate_shareable_link_id( self, - request: Optional[ - Union[ - third_party_app_analytics_link_service.RegenerateShareableLinkIdRequest, - dict, - ] - ] = None, + request: third_party_app_analytics_link_service.RegenerateShareableLinkIdRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/base.pyi index 6b0f527a1..c07794666 100644 --- a/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/base.pyi @@ -16,12 +16,12 @@ class ThirdPartyAppAnalyticsLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -30,10 +30,5 @@ class ThirdPartyAppAnalyticsLinkServiceTransport(abc.ABC): self, ) -> Callable[ [third_party_app_analytics_link_service.RegenerateShareableLinkIdRequest], - Union[ - third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse, - Awaitable[ - third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse - ], - ], + third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse | Awaitable[third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/grpc.pyi index b84268fdc..7c1b15321 100644 --- a/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/third_party_app_analytics_link_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class ThirdPartyAppAnalyticsLinkServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/client.pyi index b8ecce5b6..09f913279 100644 --- a/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import TravelAssetSuggestionServiceTransport class TravelAssetSuggestionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[TravelAssetSuggestionServiceTransport]: ... + cls, label: str | None = None + ) -> type[TravelAssetSuggestionServiceTransport]: ... class TravelAssetSuggestionServiceClient( metaclass=TravelAssetSuggestionServiceClientMeta @@ -34,40 +34,38 @@ class TravelAssetSuggestionServiceClient( @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, TravelAssetSuggestionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | TravelAssetSuggestionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_travel_assets( self, - request: Optional[ - Union[travel_asset_suggestion_service.SuggestTravelAssetsRequest, dict] - ] = None, + request: travel_asset_suggestion_service.SuggestTravelAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - language_option: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + language_option: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> travel_asset_suggestion_service.SuggestTravelAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/base.pyi index 00e235c46..ed637db38 100644 --- a/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/base.pyi @@ -14,12 +14,12 @@ class TravelAssetSuggestionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class TravelAssetSuggestionServiceTransport(abc.ABC): self, ) -> Callable[ [travel_asset_suggestion_service.SuggestTravelAssetsRequest], - Union[ - travel_asset_suggestion_service.SuggestTravelAssetsResponse, - Awaitable[travel_asset_suggestion_service.SuggestTravelAssetsResponse], - ], + travel_asset_suggestion_service.SuggestTravelAssetsResponse | Awaitable[travel_asset_suggestion_service.SuggestTravelAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/grpc.pyi index 8d137d759..d555ffd55 100644 --- a/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/travel_asset_suggestion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class TravelAssetSuggestionServiceGrpcTransport(TravelAssetSuggestionServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/user_data_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/user_data_service/client.pyi index 48324a10e..4f6e80497 100644 --- a/google-stubs/ads/googleads/v14/services/services/user_data_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/user_data_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import UserDataServiceTransport class UserDataServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[UserDataServiceTransport]: ... + cls, label: str | None = None + ) -> type[UserDataServiceTransport]: ... class UserDataServiceClient(metaclass=UserDataServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,36 +32,36 @@ class UserDataServiceClient(metaclass=UserDataServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, UserDataServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | UserDataServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def upload_user_data( self, - request: Optional[Union[user_data_service.UploadUserDataRequest, dict]] = None, + request: user_data_service.UploadUserDataRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> user_data_service.UploadUserDataResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/user_data_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/user_data_service/transports/base.pyi index 27e5bb804..4e6d409b0 100644 --- a/google-stubs/ads/googleads/v14/services/services/user_data_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/user_data_service/transports/base.pyi @@ -14,12 +14,12 @@ class UserDataServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class UserDataServiceTransport(abc.ABC): self, ) -> Callable[ [user_data_service.UploadUserDataRequest], - Union[ - user_data_service.UploadUserDataResponse, - Awaitable[user_data_service.UploadUserDataResponse], - ], + user_data_service.UploadUserDataResponse | Awaitable[user_data_service.UploadUserDataResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/user_data_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/user_data_service/transports/grpc.pyi index 9b1074d73..aad4c65bc 100644 --- a/google-stubs/ads/googleads/v14/services/services/user_data_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/user_data_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class UserDataServiceGrpcTransport(UserDataServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v14/services/services/user_list_service/client.pyi b/google-stubs/ads/googleads/v14/services/services/user_list_service/client.pyi index 02a2b2422..4226177b2 100644 --- a/google-stubs/ads/googleads/v14/services/services/user_list_service/client.pyi +++ b/google-stubs/ads/googleads/v14/services/services/user_list_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import UserListServiceTransport class UserListServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[UserListServiceTransport]: ... + cls, label: str | None = None + ) -> type[UserListServiceTransport]: ... class UserListServiceClient(metaclass=UserListServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,44 +32,42 @@ class UserListServiceClient(metaclass=UserListServiceClientMeta): @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, UserListServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | UserListServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_user_lists( self, - request: Optional[Union[user_list_service.MutateUserListsRequest, dict]] = None, + request: user_list_service.MutateUserListsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[user_list_service.UserListOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[user_list_service.UserListOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> user_list_service.MutateUserListsResponse: ... diff --git a/google-stubs/ads/googleads/v14/services/services/user_list_service/transports/base.pyi b/google-stubs/ads/googleads/v14/services/services/user_list_service/transports/base.pyi index f4c0db0ba..967c75e9d 100644 --- a/google-stubs/ads/googleads/v14/services/services/user_list_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v14/services/services/user_list_service/transports/base.pyi @@ -14,12 +14,12 @@ class UserListServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class UserListServiceTransport(abc.ABC): self, ) -> Callable[ [user_list_service.MutateUserListsRequest], - Union[ - user_list_service.MutateUserListsResponse, - Awaitable[user_list_service.MutateUserListsResponse], - ], + user_list_service.MutateUserListsResponse | Awaitable[user_list_service.MutateUserListsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v14/services/services/user_list_service/transports/grpc.pyi b/google-stubs/ads/googleads/v14/services/services/user_list_service/transports/grpc.pyi index 38ee1c87e..4d3d7c8dd 100644 --- a/google-stubs/ads/googleads/v14/services/services/user_list_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v14/services/services/user_list_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class UserListServiceGrpcTransport(UserListServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/client.pyi index a7534c22f..427ec441f 100644 --- a/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AccountBudgetProposalServiceTransport class AccountBudgetProposalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AccountBudgetProposalServiceTransport]: ... + cls, label: str | None = None + ) -> type[AccountBudgetProposalServiceTransport]: ... class AccountBudgetProposalServiceClient( metaclass=AccountBudgetProposalServiceClientMeta @@ -34,58 +34,52 @@ class AccountBudgetProposalServiceClient( @staticmethod def account_budget_path(customer_id: str, account_budget_id: str) -> str: ... @staticmethod - def parse_account_budget_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_path(path: str) -> dict[str, str]: ... @staticmethod def account_budget_proposal_path( customer_id: str, account_budget_proposal_id: str ) -> str: ... @staticmethod - def parse_account_budget_proposal_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_proposal_path(path: str) -> dict[str, str]: ... @staticmethod def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ... @staticmethod - def parse_billing_setup_path(path: str) -> Dict[str, str]: ... + def parse_billing_setup_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AccountBudgetProposalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AccountBudgetProposalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_account_budget_proposal( self, - request: Optional[ - Union[ - account_budget_proposal_service.MutateAccountBudgetProposalRequest, dict - ] - ] = None, + request: account_budget_proposal_service.MutateAccountBudgetProposalRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - account_budget_proposal_service.AccountBudgetProposalOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: account_budget_proposal_service.AccountBudgetProposalOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> account_budget_proposal_service.MutateAccountBudgetProposalResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/transports/base.pyi index 7159dfdbe..0ef15eacd 100644 --- a/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/transports/base.pyi @@ -14,12 +14,12 @@ class AccountBudgetProposalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class AccountBudgetProposalServiceTransport(abc.ABC): self, ) -> Callable[ [account_budget_proposal_service.MutateAccountBudgetProposalRequest], - Union[ - account_budget_proposal_service.MutateAccountBudgetProposalResponse, - Awaitable[ - account_budget_proposal_service.MutateAccountBudgetProposalResponse - ], - ], + account_budget_proposal_service.MutateAccountBudgetProposalResponse | Awaitable[account_budget_proposal_service.MutateAccountBudgetProposalResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/transports/grpc.pyi index 5e44269f5..108a6e3b0 100644 --- a/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/account_budget_proposal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AccountBudgetProposalServiceGrpcTransport(AccountBudgetProposalServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/account_link_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/account_link_service/client.pyi index 4065c96c4..2fec90348 100644 --- a/google-stubs/ads/googleads/v15/services/services/account_link_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/account_link_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import AccountLinkServiceTransport class AccountLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AccountLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[AccountLinkServiceTransport]: ... class AccountLinkServiceClient(metaclass=AccountLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,60 +33,56 @@ class AccountLinkServiceClient(metaclass=AccountLinkServiceClientMeta): @staticmethod def account_link_path(customer_id: str, account_link_id: str) -> str: ... @staticmethod - def parse_account_link_path(path: str) -> Dict[str, str]: ... + def parse_account_link_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AccountLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AccountLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def create_account_link( self, - request: Optional[ - Union[account_link_service.CreateAccountLinkRequest, dict] - ] = None, + request: account_link_service.CreateAccountLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - account_link: Optional[gagr_account_link.AccountLink] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + account_link: gagr_account_link.AccountLink | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> account_link_service.CreateAccountLinkResponse: ... def mutate_account_link( self, - request: Optional[ - Union[account_link_service.MutateAccountLinkRequest, dict] - ] = None, + request: account_link_service.MutateAccountLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[account_link_service.AccountLinkOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: account_link_service.AccountLinkOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> account_link_service.MutateAccountLinkResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/account_link_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/account_link_service/transports/base.pyi index 699a6f8d1..38dba779d 100644 --- a/google-stubs/ads/googleads/v15/services/services/account_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/account_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class AccountLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class AccountLinkServiceTransport(abc.ABC): self, ) -> Callable[ [account_link_service.CreateAccountLinkRequest], - Union[ - account_link_service.CreateAccountLinkResponse, - Awaitable[account_link_service.CreateAccountLinkResponse], - ], + account_link_service.CreateAccountLinkResponse | Awaitable[account_link_service.CreateAccountLinkResponse], ]: ... @property def mutate_account_link( self, ) -> Callable[ [account_link_service.MutateAccountLinkRequest], - Union[ - account_link_service.MutateAccountLinkResponse, - Awaitable[account_link_service.MutateAccountLinkResponse], - ], + account_link_service.MutateAccountLinkResponse | Awaitable[account_link_service.MutateAccountLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/account_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/account_link_service/transports/grpc.pyi index 570f551bd..e23d75079 100644 --- a/google-stubs/ads/googleads/v15/services/services/account_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/account_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AccountLinkServiceGrpcTransport(AccountLinkServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/client.pyi index ab6a1cd06..5fced799f 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAdLabelServiceTransport class AdGroupAdLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAdLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAdLabelServiceTransport]: ... class AdGroupAdLabelServiceClient(metaclass=AdGroupAdLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupAdLabelServiceClient(metaclass=AdGroupAdLabelServiceClientMeta): @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAdLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAdLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_ad_labels( self, - request: Optional[ - Union[ad_group_ad_label_service.MutateAdGroupAdLabelsRequest, dict] - ] = None, + request: ad_group_ad_label_service.MutateAdGroupAdLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_ad_label_service.AdGroupAdLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_ad_label_service.AdGroupAdLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_ad_label_service.MutateAdGroupAdLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/transports/base.pyi index c5ace77d2..9fa0bc892 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAdLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAdLabelServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_ad_label_service.MutateAdGroupAdLabelsRequest], - Union[ - ad_group_ad_label_service.MutateAdGroupAdLabelsResponse, - Awaitable[ad_group_ad_label_service.MutateAdGroupAdLabelsResponse], - ], + ad_group_ad_label_service.MutateAdGroupAdLabelsResponse | Awaitable[ad_group_ad_label_service.MutateAdGroupAdLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/transports/grpc.pyi index 820f8eb63..29bff3e02 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAdLabelServiceGrpcTransport(AdGroupAdLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/client.pyi index 7e17dc234..43621ef50 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAdServiceTransport class AdGroupAdServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAdServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAdServiceTransport]: ... class AdGroupAdServiceClient(metaclass=AdGroupAdServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,60 +32,56 @@ class AdGroupAdServiceClient(metaclass=AdGroupAdServiceClientMeta): @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAdServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAdServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_ads( self, - request: Optional[ - Union[ad_group_ad_service.MutateAdGroupAdsRequest, dict] - ] = None, + request: ad_group_ad_service.MutateAdGroupAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_ad_service.AdGroupAdOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_ad_service.AdGroupAdOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_ad_service.MutateAdGroupAdsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/transports/base.pyi index fb8feaf24..8c2315741 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAdServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAdServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_ad_service.MutateAdGroupAdsRequest], - Union[ - ad_group_ad_service.MutateAdGroupAdsResponse, - Awaitable[ad_group_ad_service.MutateAdGroupAdsResponse], - ], + ad_group_ad_service.MutateAdGroupAdsResponse | Awaitable[ad_group_ad_service.MutateAdGroupAdsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/transports/grpc.pyi index cb72699c0..adc2988b3 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_ad_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAdServiceGrpcTransport(AdGroupAdServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/client.pyi index 241c794b6..c3bc99c8a 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAssetServiceTransport class AdGroupAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAssetServiceTransport]: ... class AdGroupAssetServiceClient(metaclass=AdGroupAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupAssetServiceClient(metaclass=AdGroupAssetServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_path( customer_id: str, ad_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_assets( self, - request: Optional[ - Union[ad_group_asset_service.MutateAdGroupAssetsRequest, dict] - ] = None, + request: ad_group_asset_service.MutateAdGroupAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_asset_service.AdGroupAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_asset_service.AdGroupAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_asset_service.MutateAdGroupAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/transports/base.pyi index 6b466a2f4..386aa51fa 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAssetServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_asset_service.MutateAdGroupAssetsRequest], - Union[ - ad_group_asset_service.MutateAdGroupAssetsResponse, - Awaitable[ad_group_asset_service.MutateAdGroupAssetsResponse], - ], + ad_group_asset_service.MutateAdGroupAssetsResponse | Awaitable[ad_group_asset_service.MutateAdGroupAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/transports/grpc.pyi index 55a5e7024..2f0a9e37b 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAssetServiceGrpcTransport(AdGroupAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/client.pyi index 492ac3708..de7b55eec 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupAssetSetServiceTransport class AdGroupAssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupAssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupAssetSetServiceTransport]: ... class AdGroupAssetSetServiceClient(metaclass=AdGroupAssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupAssetSetServiceClient(metaclass=AdGroupAssetSetServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_set_path( customer_id: str, ad_group_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_ad_group_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupAssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupAssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_asset_sets( self, - request: Optional[ - Union[ad_group_asset_set_service.MutateAdGroupAssetSetsRequest, dict] - ] = None, + request: ad_group_asset_set_service.MutateAdGroupAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_asset_set_service.AdGroupAssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_asset_set_service.AdGroupAssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_asset_set_service.MutateAdGroupAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/transports/base.pyi index fb3591895..f644bf04e 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupAssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupAssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_asset_set_service.MutateAdGroupAssetSetsRequest], - Union[ - ad_group_asset_set_service.MutateAdGroupAssetSetsResponse, - Awaitable[ad_group_asset_set_service.MutateAdGroupAssetSetsResponse], - ], + ad_group_asset_set_service.MutateAdGroupAssetSetsResponse | Awaitable[ad_group_asset_set_service.MutateAdGroupAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/transports/grpc.pyi index 858ec3ef1..669573128 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupAssetSetServiceGrpcTransport(AdGroupAssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/client.pyi index 87854a8ee..066a666b4 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupBidModifierServiceTransport class AdGroupBidModifierServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupBidModifierServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupBidModifierServiceTransport]: ... class AdGroupBidModifierServiceClient(metaclass=AdGroupBidModifierServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class AdGroupBidModifierServiceClient(metaclass=AdGroupBidModifierServiceClientM @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_bid_modifier_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupBidModifierServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupBidModifierServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_bid_modifiers( self, - request: Optional[ - Union[ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest, dict] - ] = None, + request: ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_bid_modifier_service.AdGroupBidModifierOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_bid_modifier_service.AdGroupBidModifierOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/transports/base.pyi index 42fb06e1f..5e3e07165 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupBidModifierServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupBidModifierServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_bid_modifier_service.MutateAdGroupBidModifiersRequest], - Union[ - ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse, - Awaitable[ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse], - ], + ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse | Awaitable[ad_group_bid_modifier_service.MutateAdGroupBidModifiersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/transports/grpc.pyi index e3b6eea96..e8fdf750b 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_bid_modifier_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupBidModifierServiceGrpcTransport(AdGroupBidModifierServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/client.pyi index 5aa2b28f3..bac32807b 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import AdGroupCriterionCustomizerServiceTransport class AdGroupCriterionCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCriterionCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCriterionCustomizerServiceTransport]: ... class AdGroupCriterionCustomizerServiceClient( metaclass=AdGroupCriterionCustomizerServiceClientMeta @@ -38,7 +38,7 @@ class AdGroupCriterionCustomizerServiceClient( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_customizer_path( customer_id: str, @@ -47,61 +47,50 @@ class AdGroupCriterionCustomizerServiceClient( customizer_attribute_id: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, AdGroupCriterionCustomizerServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCriterionCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_criterion_customizers( self, - request: Optional[ - Union[ - ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersRequest, - dict, - ] - ] = None, + request: ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - ad_group_criterion_customizer_service.AdGroupCriterionCustomizerOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_criterion_customizer_service.AdGroupCriterionCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse ): ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/transports/base.pyi index 35261ae2b..f8af480e4 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/transports/base.pyi @@ -16,12 +16,12 @@ class AdGroupCriterionCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class AdGroupCriterionCustomizerServiceTransport(abc.ABC): [ ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersRequest ], - Union[ - ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse, - Awaitable[ - ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse - ], - ], + ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse | Awaitable[ad_group_criterion_customizer_service.MutateAdGroupCriterionCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi index 1433f907a..ebab490ce 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_customizer_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class AdGroupCriterionCustomizerServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/client.pyi index 7786d2565..61fc4f976 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupCriterionLabelServiceTransport class AdGroupCriterionLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCriterionLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCriterionLabelServiceTransport]: ... class AdGroupCriterionLabelServiceClient( metaclass=AdGroupCriterionLabelServiceClientMeta @@ -36,61 +36,52 @@ class AdGroupCriterionLabelServiceClient( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupCriterionLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCriterionLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_criterion_labels( self, - request: Optional[ - Union[ - ad_group_criterion_label_service.MutateAdGroupCriterionLabelsRequest, - dict, - ] - ] = None, + request: ad_group_criterion_label_service.MutateAdGroupCriterionLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - ad_group_criterion_label_service.AdGroupCriterionLabelOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_criterion_label_service.AdGroupCriterionLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/transports/base.pyi index e04e8ddea..28a95c7ad 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupCriterionLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class AdGroupCriterionLabelServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_criterion_label_service.MutateAdGroupCriterionLabelsRequest], - Union[ - ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse, - Awaitable[ - ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse - ], - ], + ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse | Awaitable[ad_group_criterion_label_service.MutateAdGroupCriterionLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/transports/grpc.pyi index d7494db5a..ce9ee828a 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupCriterionLabelServiceGrpcTransport(AdGroupCriterionLabelServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/client.pyi index 5380a3f27..cdd29ae43 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupCriterionServiceTransport class AdGroupCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCriterionServiceTransport]: ... class AdGroupCriterionServiceClient(metaclass=AdGroupCriterionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,70 +32,66 @@ class AdGroupCriterionServiceClient(metaclass=AdGroupCriterionServiceClientMeta) @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def combined_audience_path(customer_id: str, combined_audience_id: str) -> str: ... @staticmethod - def parse_combined_audience_path(path: str) -> Dict[str, str]: ... + def parse_combined_audience_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_app_category_constant_path(mobile_app_category_id: str) -> str: ... @staticmethod - def parse_mobile_app_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_app_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def topic_constant_path(topic_id: str) -> str: ... @staticmethod - def parse_topic_constant_path(path: str) -> Dict[str, str]: ... + def parse_topic_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupCriterionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_criteria( self, - request: Optional[ - Union[ad_group_criterion_service.MutateAdGroupCriteriaRequest, dict] - ] = None, + request: ad_group_criterion_service.MutateAdGroupCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_criterion_service.AdGroupCriterionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_criterion_service.AdGroupCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_criterion_service.MutateAdGroupCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/transports/base.pyi index 8d234ef27..f7ecfd871 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_criterion_service.MutateAdGroupCriteriaRequest], - Union[ - ad_group_criterion_service.MutateAdGroupCriteriaResponse, - Awaitable[ad_group_criterion_service.MutateAdGroupCriteriaResponse], - ], + ad_group_criterion_service.MutateAdGroupCriteriaResponse | Awaitable[ad_group_criterion_service.MutateAdGroupCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/transports/grpc.pyi index 2757bf1ae..8a287a523 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_criterion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupCriterionServiceGrpcTransport(AdGroupCriterionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/client.pyi index e2c6c3838..86d28460b 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupCustomizerServiceTransport class AdGroupCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupCustomizerServiceTransport]: ... class AdGroupCustomizerServiceClient(metaclass=AdGroupCustomizerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class AdGroupCustomizerServiceClient(metaclass=AdGroupCustomizerServiceClientMet @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_customizer_path( customer_id: str, ad_group_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupCustomizerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_customizers( self, - request: Optional[ - Union[ad_group_customizer_service.MutateAdGroupCustomizersRequest, dict] - ] = None, + request: ad_group_customizer_service.MutateAdGroupCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_customizer_service.AdGroupCustomizerOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_customizer_service.AdGroupCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_customizer_service.MutateAdGroupCustomizersResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/transports/base.pyi index c32d1b9a4..0b4f7a80d 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupCustomizerServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_customizer_service.MutateAdGroupCustomizersRequest], - Union[ - ad_group_customizer_service.MutateAdGroupCustomizersResponse, - Awaitable[ad_group_customizer_service.MutateAdGroupCustomizersResponse], - ], + ad_group_customizer_service.MutateAdGroupCustomizersResponse | Awaitable[ad_group_customizer_service.MutateAdGroupCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/transports/grpc.pyi index 2c47b5c7d..f54d0ec43 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_customizer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupCustomizerServiceGrpcTransport(AdGroupCustomizerServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/client.pyi index bd8a18ef3..991eb281d 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupExtensionSettingServiceTransport class AdGroupExtensionSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupExtensionSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupExtensionSettingServiceTransport]: ... class AdGroupExtensionSettingServiceClient( metaclass=AdGroupExtensionSettingServiceClientMeta @@ -34,61 +34,52 @@ class AdGroupExtensionSettingServiceClient( @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_extension_setting_path( customer_id: str, ad_group_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupExtensionSettingServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupExtensionSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_extension_settings( self, - request: Optional[ - Union[ - ad_group_extension_setting_service.MutateAdGroupExtensionSettingsRequest, - dict, - ] - ] = None, + request: ad_group_extension_setting_service.MutateAdGroupExtensionSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - ad_group_extension_setting_service.AdGroupExtensionSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_extension_setting_service.AdGroupExtensionSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/transports/base.pyi index 8a5659175..3a4625fba 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupExtensionSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class AdGroupExtensionSettingServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_extension_setting_service.MutateAdGroupExtensionSettingsRequest], - Union[ - ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse, - Awaitable[ - ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse - ], - ], + ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse | Awaitable[ad_group_extension_setting_service.MutateAdGroupExtensionSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/transports/grpc.pyi index c42d535a6..c1da8f89d 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_extension_setting_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class AdGroupExtensionSettingServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/client.pyi index 3f5eb753d..2e9da9335 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupFeedServiceTransport class AdGroupFeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupFeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupFeedServiceTransport]: ... class AdGroupFeedServiceClient(metaclass=AdGroupFeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class AdGroupFeedServiceClient(metaclass=AdGroupFeedServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_feed_path(customer_id: str, ad_group_id: str, feed_id: str) -> str: ... @staticmethod - def parse_ad_group_feed_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupFeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupFeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_feeds( self, - request: Optional[ - Union[ad_group_feed_service.MutateAdGroupFeedsRequest, dict] - ] = None, + request: ad_group_feed_service.MutateAdGroupFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_feed_service.AdGroupFeedOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_feed_service.AdGroupFeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_feed_service.MutateAdGroupFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/transports/base.pyi index 570a10d8b..dc02fc5e6 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupFeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupFeedServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_feed_service.MutateAdGroupFeedsRequest], - Union[ - ad_group_feed_service.MutateAdGroupFeedsResponse, - Awaitable[ad_group_feed_service.MutateAdGroupFeedsResponse], - ], + ad_group_feed_service.MutateAdGroupFeedsResponse | Awaitable[ad_group_feed_service.MutateAdGroupFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/transports/grpc.pyi index 9aca4ac7e..9c9f4a47f 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupFeedServiceGrpcTransport(AdGroupFeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/client.pyi index 91ef8f463..62ed0fe30 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupLabelServiceTransport class AdGroupLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupLabelServiceTransport]: ... class AdGroupLabelServiceClient(metaclass=AdGroupLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AdGroupLabelServiceClient(metaclass=AdGroupLabelServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_group_labels( self, - request: Optional[ - Union[ad_group_label_service.MutateAdGroupLabelsRequest, dict] - ] = None, + request: ad_group_label_service.MutateAdGroupLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_group_label_service.AdGroupLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_label_service.AdGroupLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_label_service.MutateAdGroupLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/transports/base.pyi index 1ba627c4a..514e75f59 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupLabelServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_label_service.MutateAdGroupLabelsRequest], - Union[ - ad_group_label_service.MutateAdGroupLabelsResponse, - Awaitable[ad_group_label_service.MutateAdGroupLabelsResponse], - ], + ad_group_label_service.MutateAdGroupLabelsResponse | Awaitable[ad_group_label_service.MutateAdGroupLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/transports/grpc.pyi index b9c362bc8..7d2e3b60a 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupLabelServiceGrpcTransport(AdGroupLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_service/client.pyi index 8b1b7b11d..0788babd4 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdGroupServiceTransport class AdGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdGroupServiceTransport]: ... class AdGroupServiceClient(metaclass=AdGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,52 @@ class AdGroupServiceClient(metaclass=AdGroupServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_groups( self, - request: Optional[Union[ad_group_service.MutateAdGroupsRequest, dict]] = None, + request: ad_group_service.MutateAdGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[ad_group_service.AdGroupOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_group_service.AdGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_group_service.MutateAdGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_service/transports/base.pyi index f7386845f..4e21fc4b9 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdGroupServiceTransport(abc.ABC): self, ) -> Callable[ [ad_group_service.MutateAdGroupsRequest], - Union[ - ad_group_service.MutateAdGroupsResponse, - Awaitable[ad_group_service.MutateAdGroupsResponse], - ], + ad_group_service.MutateAdGroupsResponse | Awaitable[ad_group_service.MutateAdGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_group_service/transports/grpc.pyi index 633d1d52f..52626d7ea 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdGroupServiceGrpcTransport(AdGroupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/client.pyi index c3da8f73e..8a13f2ef3 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AdParameterServiceTransport class AdParameterServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdParameterServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdParameterServiceTransport]: ... class AdParameterServiceClient(metaclass=AdParameterServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,52 +34,48 @@ class AdParameterServiceClient(metaclass=AdParameterServiceClientMeta): customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_parameter_path( customer_id: str, ad_group_id: str, criterion_id: str, parameter_index: str ) -> str: ... @staticmethod - def parse_ad_parameter_path(path: str) -> Dict[str, str]: ... + def parse_ad_parameter_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdParameterServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdParameterServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_ad_parameters( self, - request: Optional[ - Union[ad_parameter_service.MutateAdParametersRequest, dict] - ] = None, + request: ad_parameter_service.MutateAdParametersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ad_parameter_service.AdParameterOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_parameter_service.AdParameterOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_parameter_service.MutateAdParametersResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/transports/base.pyi index ccdb08f0c..734d10824 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/transports/base.pyi @@ -14,12 +14,12 @@ class AdParameterServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AdParameterServiceTransport(abc.ABC): self, ) -> Callable[ [ad_parameter_service.MutateAdParametersRequest], - Union[ - ad_parameter_service.MutateAdParametersResponse, - Awaitable[ad_parameter_service.MutateAdParametersResponse], - ], + ad_parameter_service.MutateAdParametersResponse | Awaitable[ad_parameter_service.MutateAdParametersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/transports/grpc.pyi index 35eea46b9..8fcd8e837 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_parameter_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AdParameterServiceGrpcTransport(AdParameterServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/ad_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/ad_service/client.pyi index 8f866fa80..15fa82819 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import AdServiceTransport class AdServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AdServiceTransport]: ... + cls, label: str | None = None + ) -> type[AdServiceTransport]: ... class AdServiceClient(metaclass=AdServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,51 +33,51 @@ class AdServiceClient(metaclass=AdServiceClientMeta): @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AdServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AdServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def get_ad( self, - request: Optional[Union[ad_service.GetAdRequest, dict]] = None, + request: ad_service.GetAdRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad.Ad: ... def mutate_ads( self, - request: Optional[Union[ad_service.MutateAdsRequest, dict]] = None, + request: ad_service.MutateAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[ad_service.AdOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[ad_service.AdOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ad_service.MutateAdsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/ad_service/transports/base.pyi index 6706acde0..ed65f3bf7 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_service/transports/base.pyi @@ -15,23 +15,23 @@ class AdServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @property def get_ad( self, - ) -> Callable[[ad_service.GetAdRequest], Union[ad.Ad, Awaitable[ad.Ad]]]: ... + ) -> Callable[[ad_service.GetAdRequest], ad.Ad | Awaitable[ad.Ad]]: ... @property def mutate_ads( self, ) -> Callable[ [ad_service.MutateAdsRequest], - Union[ad_service.MutateAdsResponse, Awaitable[ad_service.MutateAdsResponse]], + ad_service.MutateAdsResponse | Awaitable[ad_service.MutateAdsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/ad_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/ad_service/transports/grpc.pyi index a9bc6eba7..67adb676b 100644 --- a/google-stubs/ads/googleads/v15/services/services/ad_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/ad_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class AdServiceGrpcTransport(AdServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/client.pyi index 245d209af..d52c3b7a2 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetGroupAssetServiceTransport class AssetGroupAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupAssetServiceTransport]: ... class AssetGroupAssetServiceClient(metaclass=AssetGroupAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AssetGroupAssetServiceClient(metaclass=AssetGroupAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_asset_path( customer_id: str, asset_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_asset_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetGroupAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_group_assets( self, - request: Optional[ - Union[asset_group_asset_service.MutateAssetGroupAssetsRequest, dict] - ] = None, + request: asset_group_asset_service.MutateAssetGroupAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_group_asset_service.AssetGroupAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_asset_service.AssetGroupAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_group_asset_service.MutateAssetGroupAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/transports/base.pyi index e3476078a..af619962f 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetGroupAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetGroupAssetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_group_asset_service.MutateAssetGroupAssetsRequest], - Union[ - asset_group_asset_service.MutateAssetGroupAssetsResponse, - Awaitable[asset_group_asset_service.MutateAssetGroupAssetsResponse], - ], + asset_group_asset_service.MutateAssetGroupAssetsResponse | Awaitable[asset_group_asset_service.MutateAssetGroupAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/transports/grpc.pyi index f9a81e781..d355c7f84 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetGroupAssetServiceGrpcTransport(AssetGroupAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/client.pyi index 129565f0f..aee9e2610 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import AssetGroupListingGroupFilterServiceTransport class AssetGroupListingGroupFilterServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupListingGroupFilterServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupListingGroupFilterServiceTransport]: ... class AssetGroupListingGroupFilterServiceClient( metaclass=AssetGroupListingGroupFilterServiceClientMeta @@ -36,61 +36,50 @@ class AssetGroupListingGroupFilterServiceClient( @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_listing_group_filter_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_listing_group_filter_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_listing_group_filter_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, AssetGroupListingGroupFilterServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupListingGroupFilterServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_group_listing_group_filters( self, - request: Optional[ - Union[ - asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersRequest, - dict, - ] - ] = None, + request: asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - asset_group_listing_group_filter_service.AssetGroupListingGroupFilterOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_listing_group_filter_service.AssetGroupListingGroupFilterOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse ): ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/transports/base.pyi index 05e784183..7f66b10f3 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/transports/base.pyi @@ -16,12 +16,12 @@ class AssetGroupListingGroupFilterServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class AssetGroupListingGroupFilterServiceTransport(abc.ABC): [ asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersRequest ], - Union[ - asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse, - Awaitable[ - asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse - ], - ], + asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse | Awaitable[asset_group_listing_group_filter_service.MutateAssetGroupListingGroupFiltersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi index 1360f7f9b..9afd72132 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_listing_group_filter_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class AssetGroupListingGroupFilterServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_service/client.pyi index 52c64985c..df3a76679 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetGroupServiceTransport class AssetGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupServiceTransport]: ... class AssetGroupServiceClient(metaclass=AssetGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,50 +32,46 @@ class AssetGroupServiceClient(metaclass=AssetGroupServiceClientMeta): @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_groups( self, - request: Optional[ - Union[asset_group_service.MutateAssetGroupsRequest, dict] - ] = None, + request: asset_group_service.MutateAssetGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_group_service.AssetGroupOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_service.AssetGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_group_service.MutateAssetGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_service/transports/base.pyi index 8d3e8a411..c5670d108 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetGroupServiceTransport(abc.ABC): self, ) -> Callable[ [asset_group_service.MutateAssetGroupsRequest], - Union[ - asset_group_service.MutateAssetGroupsResponse, - Awaitable[asset_group_service.MutateAssetGroupsResponse], - ], + asset_group_service.MutateAssetGroupsResponse | Awaitable[asset_group_service.MutateAssetGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_service/transports/grpc.pyi index 9209ff13d..1fe0ba0b0 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetGroupServiceGrpcTransport(AssetGroupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/client.pyi index f68f494a9..0b0bd886e 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetGroupSignalServiceTransport class AssetGroupSignalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetGroupSignalServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetGroupSignalServiceTransport]: ... class AssetGroupSignalServiceClient(metaclass=AssetGroupSignalServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class AssetGroupSignalServiceClient(metaclass=AssetGroupSignalServiceClientMeta) @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_signal_path( customer_id: str, asset_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_asset_group_signal_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_signal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetGroupSignalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetGroupSignalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_group_signals( self, - request: Optional[ - Union[asset_group_signal_service.MutateAssetGroupSignalsRequest, dict] - ] = None, + request: asset_group_signal_service.MutateAssetGroupSignalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_group_signal_service.AssetGroupSignalOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_group_signal_service.AssetGroupSignalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_group_signal_service.MutateAssetGroupSignalsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/transports/base.pyi index cfba1d234..e54eb8b0a 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetGroupSignalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetGroupSignalServiceTransport(abc.ABC): self, ) -> Callable[ [asset_group_signal_service.MutateAssetGroupSignalsRequest], - Union[ - asset_group_signal_service.MutateAssetGroupSignalsResponse, - Awaitable[asset_group_signal_service.MutateAssetGroupSignalsResponse], - ], + asset_group_signal_service.MutateAssetGroupSignalsResponse | Awaitable[asset_group_signal_service.MutateAssetGroupSignalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/transports/grpc.pyi index c40f1f84d..9e62912c3 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_group_signal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetGroupSignalServiceGrpcTransport(AssetGroupSignalServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/asset_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/asset_service/client.pyi index 31ab40a09..47dd7afca 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetServiceTransport class AssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetServiceTransport]: ... class AssetServiceClient(metaclass=AssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,46 @@ class AssetServiceClient(metaclass=AssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_assets( self, - request: Optional[Union[asset_service.MutateAssetsRequest, dict]] = None, + request: asset_service.MutateAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[asset_service.AssetOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_service.AssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_service.MutateAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/asset_service/transports/base.pyi index 24e677060..8e7395326 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_service.MutateAssetsRequest], - Union[ - asset_service.MutateAssetsResponse, - Awaitable[asset_service.MutateAssetsResponse], - ], + asset_service.MutateAssetsResponse | Awaitable[asset_service.MutateAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/asset_service/transports/grpc.pyi index fbb6ecbe5..011f69349 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetServiceGrpcTransport(AssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/client.pyi index 7c43de355..231a034e4 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetSetAssetServiceTransport class AssetSetAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetSetAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetSetAssetServiceTransport]: ... class AssetSetAssetServiceClient(metaclass=AssetSetAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class AssetSetAssetServiceClient(metaclass=AssetSetAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_asset_path( customer_id: str, asset_set_id: str, asset_id: str ) -> str: ... @staticmethod - def parse_asset_set_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetSetAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetSetAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_set_assets( self, - request: Optional[ - Union[asset_set_asset_service.MutateAssetSetAssetsRequest, dict] - ] = None, + request: asset_set_asset_service.MutateAssetSetAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_set_asset_service.AssetSetAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_set_asset_service.AssetSetAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_set_asset_service.MutateAssetSetAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/transports/base.pyi index 780d9f091..460ba24bf 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetSetAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetSetAssetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_set_asset_service.MutateAssetSetAssetsRequest], - Union[ - asset_set_asset_service.MutateAssetSetAssetsResponse, - Awaitable[asset_set_asset_service.MutateAssetSetAssetsResponse], - ], + asset_set_asset_service.MutateAssetSetAssetsResponse | Awaitable[asset_set_asset_service.MutateAssetSetAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/transports/grpc.pyi index 67dd1756b..60cc7bad2 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_set_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetSetAssetServiceGrpcTransport(AssetSetAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/asset_set_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/asset_set_service/client.pyi index 0d8a1c5f3..e8034306c 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AssetSetServiceTransport class AssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[AssetSetServiceTransport]: ... class AssetSetServiceClient(metaclass=AssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,44 +32,42 @@ class AssetSetServiceClient(metaclass=AssetSetServiceClientMeta): @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_asset_sets( self, - request: Optional[Union[asset_set_service.MutateAssetSetsRequest, dict]] = None, + request: asset_set_service.MutateAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[asset_set_service.AssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[asset_set_service.AssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> asset_set_service.MutateAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/asset_set_service/transports/base.pyi index f9059a18b..00cd32a83 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class AssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [asset_set_service.MutateAssetSetsRequest], - Union[ - asset_set_service.MutateAssetSetsResponse, - Awaitable[asset_set_service.MutateAssetSetsResponse], - ], + asset_set_service.MutateAssetSetsResponse | Awaitable[asset_set_service.MutateAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/asset_set_service/transports/grpc.pyi index e147cb21c..c445400a8 100644 --- a/google-stubs/ads/googleads/v15/services/services/asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AssetSetServiceGrpcTransport(AssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/audience_insights_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/audience_insights_service/client.pyi index d77aff098..49cee6742 100644 --- a/google-stubs/ads/googleads/v15/services/services/audience_insights_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/audience_insights_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import AudienceInsightsServiceTransport class AudienceInsightsServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AudienceInsightsServiceTransport]: ... + cls, label: str | None = None + ) -> type[AudienceInsightsServiceTransport]: ... class AudienceInsightsServiceClient(metaclass=AudienceInsightsServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,107 +33,79 @@ class AudienceInsightsServiceClient(metaclass=AudienceInsightsServiceClientMeta) @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AudienceInsightsServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AudienceInsightsServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def generate_insights_finder_report( self, - request: Optional[ - Union[audience_insights_service.GenerateInsightsFinderReportRequest, dict] - ] = None, + request: audience_insights_service.GenerateInsightsFinderReportRequest | dict | None = None, *, - customer_id: Optional[str] = None, - baseline_audience: Optional[ - audience_insights_service.BasicInsightsAudience - ] = None, - specific_audience: Optional[ - audience_insights_service.BasicInsightsAudience - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + baseline_audience: audience_insights_service.BasicInsightsAudience | None = None, + specific_audience: audience_insights_service.BasicInsightsAudience | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.GenerateInsightsFinderReportResponse: ... def list_audience_insights_attributes( self, - request: Optional[ - Union[audience_insights_service.ListAudienceInsightsAttributesRequest, dict] - ] = None, + request: audience_insights_service.ListAudienceInsightsAttributesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - dimensions: Optional[ - MutableSequence[ - audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension - ] - ] = None, - query_text: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + dimensions: MutableSequence[audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension] | None = None, + query_text: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.ListAudienceInsightsAttributesResponse: ... def list_insights_eligible_dates( self, - request: Optional[ - Union[audience_insights_service.ListInsightsEligibleDatesRequest, dict] - ] = None, + request: audience_insights_service.ListInsightsEligibleDatesRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.ListInsightsEligibleDatesResponse: ... def generate_audience_composition_insights( self, - request: Optional[ - Union[ - audience_insights_service.GenerateAudienceCompositionInsightsRequest, - dict, - ] - ] = None, + request: audience_insights_service.GenerateAudienceCompositionInsightsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - audience: Optional[audience_insights_service.InsightsAudience] = None, - dimensions: Optional[ - MutableSequence[ - audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + audience: audience_insights_service.InsightsAudience | None = None, + dimensions: MutableSequence[audience_insights_dimension.AudienceInsightsDimensionEnum.AudienceInsightsDimension] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.GenerateAudienceCompositionInsightsResponse: ... def generate_suggested_targeting_insights( self, - request: Optional[ - Union[ - audience_insights_service.GenerateSuggestedTargetingInsightsRequest, - dict, - ] - ] = None, + request: audience_insights_service.GenerateSuggestedTargetingInsightsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - audience: Optional[audience_insights_service.InsightsAudience] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + audience: audience_insights_service.InsightsAudience | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_insights_service.GenerateSuggestedTargetingInsightsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/audience_insights_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/audience_insights_service/transports/base.pyi index 922cdc8b5..a3b1b80ae 100644 --- a/google-stubs/ads/googleads/v15/services/services/audience_insights_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/audience_insights_service/transports/base.pyi @@ -14,12 +14,12 @@ class AudienceInsightsServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,52 +28,33 @@ class AudienceInsightsServiceTransport(abc.ABC): self, ) -> Callable[ [audience_insights_service.GenerateInsightsFinderReportRequest], - Union[ - audience_insights_service.GenerateInsightsFinderReportResponse, - Awaitable[audience_insights_service.GenerateInsightsFinderReportResponse], - ], + audience_insights_service.GenerateInsightsFinderReportResponse | Awaitable[audience_insights_service.GenerateInsightsFinderReportResponse], ]: ... @property def list_audience_insights_attributes( self, ) -> Callable[ [audience_insights_service.ListAudienceInsightsAttributesRequest], - Union[ - audience_insights_service.ListAudienceInsightsAttributesResponse, - Awaitable[audience_insights_service.ListAudienceInsightsAttributesResponse], - ], + audience_insights_service.ListAudienceInsightsAttributesResponse | Awaitable[audience_insights_service.ListAudienceInsightsAttributesResponse], ]: ... @property def list_insights_eligible_dates( self, ) -> Callable[ [audience_insights_service.ListInsightsEligibleDatesRequest], - Union[ - audience_insights_service.ListInsightsEligibleDatesResponse, - Awaitable[audience_insights_service.ListInsightsEligibleDatesResponse], - ], + audience_insights_service.ListInsightsEligibleDatesResponse | Awaitable[audience_insights_service.ListInsightsEligibleDatesResponse], ]: ... @property def generate_audience_composition_insights( self, ) -> Callable[ [audience_insights_service.GenerateAudienceCompositionInsightsRequest], - Union[ - audience_insights_service.GenerateAudienceCompositionInsightsResponse, - Awaitable[ - audience_insights_service.GenerateAudienceCompositionInsightsResponse - ], - ], + audience_insights_service.GenerateAudienceCompositionInsightsResponse | Awaitable[audience_insights_service.GenerateAudienceCompositionInsightsResponse], ]: ... @property def generate_suggested_targeting_insights( self, ) -> Callable[ [audience_insights_service.GenerateSuggestedTargetingInsightsRequest], - Union[ - audience_insights_service.GenerateSuggestedTargetingInsightsResponse, - Awaitable[ - audience_insights_service.GenerateSuggestedTargetingInsightsResponse - ], - ], + audience_insights_service.GenerateSuggestedTargetingInsightsResponse | Awaitable[audience_insights_service.GenerateSuggestedTargetingInsightsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/audience_insights_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/audience_insights_service/transports/grpc.pyi index b334d72c9..df32d280b 100644 --- a/google-stubs/ads/googleads/v15/services/services/audience_insights_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/audience_insights_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AudienceInsightsServiceGrpcTransport(AudienceInsightsServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/audience_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/audience_service/client.pyi index 902715248..1aeefb5df 100644 --- a/google-stubs/ads/googleads/v15/services/services/audience_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/audience_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import AudienceServiceTransport class AudienceServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[AudienceServiceTransport]: ... + cls, label: str | None = None + ) -> type[AudienceServiceTransport]: ... class AudienceServiceClient(metaclass=AudienceServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,48 +32,46 @@ class AudienceServiceClient(metaclass=AudienceServiceClientMeta): @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def audience_path(customer_id: str, audience_id: str) -> str: ... @staticmethod - def parse_audience_path(path: str) -> Dict[str, str]: ... + def parse_audience_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, AudienceServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | AudienceServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_audiences( self, - request: Optional[Union[audience_service.MutateAudiencesRequest, dict]] = None, + request: audience_service.MutateAudiencesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[audience_service.AudienceOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[audience_service.AudienceOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> audience_service.MutateAudiencesResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/audience_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/audience_service/transports/base.pyi index c051c0c26..c9bf43e35 100644 --- a/google-stubs/ads/googleads/v15/services/services/audience_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/audience_service/transports/base.pyi @@ -14,12 +14,12 @@ class AudienceServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class AudienceServiceTransport(abc.ABC): self, ) -> Callable[ [audience_service.MutateAudiencesRequest], - Union[ - audience_service.MutateAudiencesResponse, - Awaitable[audience_service.MutateAudiencesResponse], - ], + audience_service.MutateAudiencesResponse | Awaitable[audience_service.MutateAudiencesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/audience_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/audience_service/transports/grpc.pyi index ce482ed94..2ff29e3c9 100644 --- a/google-stubs/ads/googleads/v15/services/services/audience_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/audience_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class AudienceServiceGrpcTransport(AudienceServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/batch_job_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/batch_job_service/client.pyi index 2e022c800..f437f2f4a 100644 --- a/google-stubs/ads/googleads/v15/services/services/batch_job_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/batch_job_service/client.pyi @@ -19,8 +19,8 @@ from .transports.base import BatchJobServiceTransport class BatchJobServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BatchJobServiceTransport]: ... + cls, label: str | None = None + ) -> type[BatchJobServiceTransport]: ... class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): DEFAULT_ENDPOINT: str @@ -39,43 +39,43 @@ class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): customer_id: str, bidding_strategy_id: str ) -> str: ... @staticmethod - def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_accessible_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_path( customer_id: str, ad_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_bid_modifier_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_customizer_path( customer_id: str, @@ -84,295 +84,295 @@ class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): customizer_attribute_id: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_customizer_path( customer_id: str, ad_group_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_extension_setting_path( customer_id: str, ad_group_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_feed_path(customer_id: str, ad_group_id: str, feed_id: str) -> str: ... @staticmethod - def parse_ad_group_feed_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_feed_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_parameter_path( customer_id: str, ad_group_id: str, criterion_id: str, parameter_index: str ) -> str: ... @staticmethod - def parse_ad_parameter_path(path: str) -> Dict[str, str]: ... + def parse_ad_parameter_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_asset_path( customer_id: str, asset_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_asset_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_listing_group_filter_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_listing_group_filter_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_listing_group_filter_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_signal_path( customer_id: str, asset_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_asset_group_signal_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_signal_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_asset_path( customer_id: str, asset_set_id: str, asset_id: str ) -> str: ... @staticmethod - def parse_asset_set_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_asset_path(path: str) -> dict[str, str]: ... @staticmethod def audience_path(customer_id: str, audience_id: str) -> str: ... @staticmethod - def parse_audience_path(path: str) -> Dict[str, str]: ... + def parse_audience_path(path: str) -> dict[str, str]: ... @staticmethod def batch_job_path(customer_id: str, batch_job_id: str) -> str: ... @staticmethod - def parse_batch_job_path(path: str) -> Dict[str, str]: ... + def parse_batch_job_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_data_exclusion_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: ... + def parse_bidding_data_exclusion_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_seasonality_adjustment_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: ... + def parse_bidding_seasonality_adjustment_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_path( customer_id: str, campaign_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_campaign_asset_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_set_path( customer_id: str, campaign_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_bid_modifier_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_campaign_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_conversion_goal_path( customer_id: str, campaign_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_criterion_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_customizer_path( customer_id: str, campaign_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_campaign_customizer_path(path: str) -> Dict[str, str]: ... + def parse_campaign_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_draft_path( customer_id: str, base_campaign_id: str, draft_id: str ) -> str: ... @staticmethod - def parse_campaign_draft_path(path: str) -> Dict[str, str]: ... + def parse_campaign_draft_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_extension_setting_path( customer_id: str, campaign_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_campaign_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_feed_path(customer_id: str, campaign_id: str, feed_id: str) -> str: ... @staticmethod - def parse_campaign_feed_path(path: str) -> Dict[str, str]: ... + def parse_campaign_feed_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_shared_set_path( customer_id: str, campaign_id: str, shared_set_id: str ) -> str: ... @staticmethod - def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def combined_audience_path(customer_id: str, combined_audience_id: str) -> str: ... @staticmethod - def parse_combined_audience_path(path: str) -> Dict[str, str]: ... + def parse_combined_audience_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_custom_variable_path( customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_goal_campaign_config_path( customer_id: str, campaign_id: str ) -> str: ... @staticmethod - def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: ... + def parse_conversion_goal_campaign_config_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_path( customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_set_path( customer_id: str, conversion_value_rule_set_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_set_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_path( customer_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_customer_asset_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_path(path: str) -> dict[str, str]: ... @staticmethod def customer_conversion_goal_path( customer_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_customizer_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customer_customizer_path(path: str) -> Dict[str, str]: ... + def parse_customer_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_extension_setting_path( customer_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_customer_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def customer_feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_customer_feed_path(path: str) -> Dict[str, str]: ... + def parse_customer_feed_path(path: str) -> dict[str, str]: ... @staticmethod def customer_label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_customer_label_path(path: str) -> Dict[str, str]: ... + def parse_customer_label_path(path: str) -> dict[str, str]: ... @staticmethod def customer_negative_criterion_path( customer_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: ... + def parse_customer_negative_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_arm_path( customer_id: str, trial_id: str, trial_arm_id: str ) -> str: ... @staticmethod - def parse_experiment_arm_path(path: str) -> Dict[str, str]: ... + def parse_experiment_arm_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_link_path( customer_id: str, feed_id: str, feed_item_set_id: str, feed_item_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_link_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_target_path( customer_id: str, @@ -382,165 +382,159 @@ class BatchJobServiceClient(metaclass=BatchJobServiceClientMeta): feed_item_target_id: str, ) -> str: ... @staticmethod - def parse_feed_item_target_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_target_path(path: str) -> dict[str, str]: ... @staticmethod def feed_mapping_path( customer_id: str, feed_id: str, feed_mapping_id: str ) -> str: ... @staticmethod - def parse_feed_mapping_path(path: str) -> Dict[str, str]: ... + def parse_feed_mapping_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_path( customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_keyword_path( customer_id: str, keyword_plan_ad_group_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_keyword_path( customer_id: str, keyword_plan_campaign_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def language_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_language_constant_path(path: str) -> Dict[str, str]: ... + def parse_language_constant_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_app_category_constant_path(mobile_app_category_id: str) -> str: ... @staticmethod - def parse_mobile_app_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_app_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def recommendation_subscription_path( customer_id: str, recommendation_type: str ) -> str: ... @staticmethod - def parse_recommendation_subscription_path(path: str) -> Dict[str, str]: ... + def parse_recommendation_subscription_path(path: str) -> dict[str, str]: ... @staticmethod def remarketing_action_path( customer_id: str, remarketing_action_id: str ) -> str: ... @staticmethod - def parse_remarketing_action_path(path: str) -> Dict[str, str]: ... + def parse_remarketing_action_path(path: str) -> dict[str, str]: ... @staticmethod def shared_criterion_path( customer_id: str, shared_set_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_shared_criterion_path(path: str) -> Dict[str, str]: ... + def parse_shared_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_setting_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_setting_path(path: str) -> dict[str, str]: ... @staticmethod def topic_constant_path(topic_id: str) -> str: ... @staticmethod - def parse_topic_constant_path(path: str) -> Dict[str, str]: ... + def parse_topic_constant_path(path: str) -> dict[str, str]: ... @staticmethod def user_interest_path(customer_id: str, user_interest_id: str) -> str: ... @staticmethod - def parse_user_interest_path(path: str) -> Dict[str, str]: ... + def parse_user_interest_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BatchJobServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BatchJobServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_batch_job( self, - request: Optional[Union[batch_job_service.MutateBatchJobRequest, dict]] = None, + request: batch_job_service.MutateBatchJobRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[batch_job_service.BatchJobOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: batch_job_service.BatchJobOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> batch_job_service.MutateBatchJobResponse: ... def list_batch_job_results( self, - request: Optional[ - Union[batch_job_service.ListBatchJobResultsRequest, dict] - ] = None, + request: batch_job_service.ListBatchJobResultsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.ListBatchJobResultsPager: ... def run_batch_job( self, - request: Optional[Union[batch_job_service.RunBatchJobRequest, dict]] = None, + request: batch_job_service.RunBatchJobRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... def add_batch_job_operations( self, - request: Optional[ - Union[batch_job_service.AddBatchJobOperationsRequest, dict] - ] = None, + request: batch_job_service.AddBatchJobOperationsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - sequence_token: Optional[str] = None, - mutate_operations: Optional[ - MutableSequence[google_ads_service.MutateOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + sequence_token: str | None = None, + mutate_operations: MutableSequence[google_ads_service.MutateOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> batch_job_service.AddBatchJobOperationsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/batch_job_service/pagers.pyi b/google-stubs/ads/googleads/v15/services/services/batch_job_service/pagers.pyi index f695caac1..f8f4f50bb 100644 --- a/google-stubs/ads/googleads/v15/services/services/batch_job_service/pagers.pyi +++ b/google-stubs/ads/googleads/v15/services/services/batch_job_service/pagers.pyi @@ -10,7 +10,7 @@ class ListBatchJobResultsPager: method: Callable[..., batch_job_service.ListBatchJobResultsResponse], request: batch_job_service.ListBatchJobResultsRequest, response: batch_job_service.ListBatchJobResultsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/batch_job_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/batch_job_service/transports/base.pyi index 94bd432f2..5cd94ec65 100644 --- a/google-stubs/ads/googleads/v15/services/services/batch_job_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/batch_job_service/transports/base.pyi @@ -15,12 +15,12 @@ class BatchJobServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -31,35 +31,26 @@ class BatchJobServiceTransport(abc.ABC): self, ) -> Callable[ [batch_job_service.MutateBatchJobRequest], - Union[ - batch_job_service.MutateBatchJobResponse, - Awaitable[batch_job_service.MutateBatchJobResponse], - ], + batch_job_service.MutateBatchJobResponse | Awaitable[batch_job_service.MutateBatchJobResponse], ]: ... @property def list_batch_job_results( self, ) -> Callable[ [batch_job_service.ListBatchJobResultsRequest], - Union[ - batch_job_service.ListBatchJobResultsResponse, - Awaitable[batch_job_service.ListBatchJobResultsResponse], - ], + batch_job_service.ListBatchJobResultsResponse | Awaitable[batch_job_service.ListBatchJobResultsResponse], ]: ... @property def run_batch_job( self, ) -> Callable[ [batch_job_service.RunBatchJobRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... @property def add_batch_job_operations( self, ) -> Callable[ [batch_job_service.AddBatchJobOperationsRequest], - Union[ - batch_job_service.AddBatchJobOperationsResponse, - Awaitable[batch_job_service.AddBatchJobOperationsResponse], - ], + batch_job_service.AddBatchJobOperationsResponse | Awaitable[batch_job_service.AddBatchJobOperationsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/batch_job_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/batch_job_service/transports/grpc.pyi index 14bfd8994..6ddcb7be1 100644 --- a/google-stubs/ads/googleads/v15/services/services/batch_job_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/batch_job_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class BatchJobServiceGrpcTransport(BatchJobServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/client.pyi index 673317f19..c35a02dbd 100644 --- a/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BiddingDataExclusionServiceTransport class BiddingDataExclusionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BiddingDataExclusionServiceTransport]: ... + cls, label: str | None = None + ) -> type[BiddingDataExclusionServiceTransport]: ... class BiddingDataExclusionServiceClient( metaclass=BiddingDataExclusionServiceClientMeta @@ -36,54 +36,46 @@ class BiddingDataExclusionServiceClient( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: ... + def parse_bidding_data_exclusion_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BiddingDataExclusionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BiddingDataExclusionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_bidding_data_exclusions( self, - request: Optional[ - Union[ - bidding_data_exclusion_service.MutateBiddingDataExclusionsRequest, dict - ] - ] = None, + request: bidding_data_exclusion_service.MutateBiddingDataExclusionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - bidding_data_exclusion_service.BiddingDataExclusionOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[bidding_data_exclusion_service.BiddingDataExclusionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/transports/base.pyi index f13971f13..3fe0ebc0e 100644 --- a/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/transports/base.pyi @@ -14,12 +14,12 @@ class BiddingDataExclusionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class BiddingDataExclusionServiceTransport(abc.ABC): self, ) -> Callable[ [bidding_data_exclusion_service.MutateBiddingDataExclusionsRequest], - Union[ - bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse, - Awaitable[ - bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse - ], - ], + bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse | Awaitable[bidding_data_exclusion_service.MutateBiddingDataExclusionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/transports/grpc.pyi index 79ddadecf..d5a339558 100644 --- a/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/bidding_data_exclusion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BiddingDataExclusionServiceGrpcTransport(BiddingDataExclusionServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/client.pyi index d382ac1b8..d4d5cb999 100644 --- a/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import BiddingSeasonalityAdjustmentServiceTransport class BiddingSeasonalityAdjustmentServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BiddingSeasonalityAdjustmentServiceTransport]: ... + cls, label: str | None = None + ) -> type[BiddingSeasonalityAdjustmentServiceTransport]: ... class BiddingSeasonalityAdjustmentServiceClient( metaclass=BiddingSeasonalityAdjustmentServiceClientMeta @@ -38,59 +38,48 @@ class BiddingSeasonalityAdjustmentServiceClient( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: ... + def parse_bidding_seasonality_adjustment_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, BiddingSeasonalityAdjustmentServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BiddingSeasonalityAdjustmentServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_bidding_seasonality_adjustments( self, - request: Optional[ - Union[ - bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsRequest, - dict, - ] - ] = None, + request: bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - bidding_seasonality_adjustment_service.BiddingSeasonalityAdjustmentOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[bidding_seasonality_adjustment_service.BiddingSeasonalityAdjustmentOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse ): ... diff --git a/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/transports/base.pyi index 4707f9f50..641338b32 100644 --- a/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/transports/base.pyi @@ -16,12 +16,12 @@ class BiddingSeasonalityAdjustmentServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class BiddingSeasonalityAdjustmentServiceTransport(abc.ABC): [ bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsRequest ], - Union[ - bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse, - Awaitable[ - bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse - ], - ], + bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse | Awaitable[bidding_seasonality_adjustment_service.MutateBiddingSeasonalityAdjustmentsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi index 2f62ef837..503151949 100644 --- a/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/bidding_seasonality_adjustment_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class BiddingSeasonalityAdjustmentServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/client.pyi index e67a04227..8d3400fc8 100644 --- a/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BiddingStrategyServiceTransport class BiddingStrategyServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BiddingStrategyServiceTransport]: ... + cls, label: str | None = None + ) -> type[BiddingStrategyServiceTransport]: ... class BiddingStrategyServiceClient(metaclass=BiddingStrategyServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class BiddingStrategyServiceClient(metaclass=BiddingStrategyServiceClientMeta): @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BiddingStrategyServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BiddingStrategyServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_bidding_strategies( self, - request: Optional[ - Union[bidding_strategy_service.MutateBiddingStrategiesRequest, dict] - ] = None, + request: bidding_strategy_service.MutateBiddingStrategiesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[bidding_strategy_service.BiddingStrategyOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[bidding_strategy_service.BiddingStrategyOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> bidding_strategy_service.MutateBiddingStrategiesResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/transports/base.pyi index a39eceb4f..572c5abbe 100644 --- a/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/transports/base.pyi @@ -14,12 +14,12 @@ class BiddingStrategyServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class BiddingStrategyServiceTransport(abc.ABC): self, ) -> Callable[ [bidding_strategy_service.MutateBiddingStrategiesRequest], - Union[ - bidding_strategy_service.MutateBiddingStrategiesResponse, - Awaitable[bidding_strategy_service.MutateBiddingStrategiesResponse], - ], + bidding_strategy_service.MutateBiddingStrategiesResponse | Awaitable[bidding_strategy_service.MutateBiddingStrategiesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/transports/grpc.pyi index 40337dac0..3a97d4842 100644 --- a/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/bidding_strategy_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BiddingStrategyServiceGrpcTransport(BiddingStrategyServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/billing_setup_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/billing_setup_service/client.pyi index 26dad2ca6..9b03ae142 100644 --- a/google-stubs/ads/googleads/v15/services/services/billing_setup_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/billing_setup_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BillingSetupServiceTransport class BillingSetupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BillingSetupServiceTransport]: ... + cls, label: str | None = None + ) -> type[BillingSetupServiceTransport]: ... class BillingSetupServiceClient(metaclass=BillingSetupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,48 +32,46 @@ class BillingSetupServiceClient(metaclass=BillingSetupServiceClientMeta): @staticmethod def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ... @staticmethod - def parse_billing_setup_path(path: str) -> Dict[str, str]: ... + def parse_billing_setup_path(path: str) -> dict[str, str]: ... @staticmethod def payments_account_path(customer_id: str, payments_account_id: str) -> str: ... @staticmethod - def parse_payments_account_path(path: str) -> Dict[str, str]: ... + def parse_payments_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BillingSetupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BillingSetupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_billing_setup( self, - request: Optional[ - Union[billing_setup_service.MutateBillingSetupRequest, dict] - ] = None, + request: billing_setup_service.MutateBillingSetupRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[billing_setup_service.BillingSetupOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: billing_setup_service.BillingSetupOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> billing_setup_service.MutateBillingSetupResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/billing_setup_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/billing_setup_service/transports/base.pyi index 153129177..dcd4053e7 100644 --- a/google-stubs/ads/googleads/v15/services/services/billing_setup_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/billing_setup_service/transports/base.pyi @@ -14,12 +14,12 @@ class BillingSetupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class BillingSetupServiceTransport(abc.ABC): self, ) -> Callable[ [billing_setup_service.MutateBillingSetupRequest], - Union[ - billing_setup_service.MutateBillingSetupResponse, - Awaitable[billing_setup_service.MutateBillingSetupResponse], - ], + billing_setup_service.MutateBillingSetupResponse | Awaitable[billing_setup_service.MutateBillingSetupResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/billing_setup_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/billing_setup_service/transports/grpc.pyi index 098f738be..d1dc9aa51 100644 --- a/google-stubs/ads/googleads/v15/services/services/billing_setup_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/billing_setup_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BillingSetupServiceGrpcTransport(BillingSetupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/client.pyi index e8d3f62b6..23a79062d 100644 --- a/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import BrandSuggestionServiceTransport class BrandSuggestionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[BrandSuggestionServiceTransport]: ... + cls, label: str | None = None + ) -> type[BrandSuggestionServiceTransport]: ... class BrandSuggestionServiceClient(metaclass=BrandSuggestionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,40 +32,38 @@ class BrandSuggestionServiceClient(metaclass=BrandSuggestionServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, BrandSuggestionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | BrandSuggestionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_brands( self, - request: Optional[ - Union[brand_suggestion_service.SuggestBrandsRequest, dict] - ] = None, + request: brand_suggestion_service.SuggestBrandsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - brand_prefix: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + brand_prefix: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> brand_suggestion_service.SuggestBrandsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/transports/base.pyi index 2d2f600f4..da4848880 100644 --- a/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/transports/base.pyi @@ -14,12 +14,12 @@ class BrandSuggestionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class BrandSuggestionServiceTransport(abc.ABC): self, ) -> Callable[ [brand_suggestion_service.SuggestBrandsRequest], - Union[ - brand_suggestion_service.SuggestBrandsResponse, - Awaitable[brand_suggestion_service.SuggestBrandsResponse], - ], + brand_suggestion_service.SuggestBrandsResponse | Awaitable[brand_suggestion_service.SuggestBrandsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/transports/grpc.pyi index 64cccf3e2..748b8f814 100644 --- a/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/brand_suggestion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class BrandSuggestionServiceGrpcTransport(BrandSuggestionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/client.pyi index 34f86e84b..102e6d860 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignAssetServiceTransport class CampaignAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignAssetServiceTransport]: ... class CampaignAssetServiceClient(metaclass=CampaignAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignAssetServiceClient(metaclass=CampaignAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_path( customer_id: str, campaign_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_campaign_asset_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_assets( self, - request: Optional[ - Union[campaign_asset_service.MutateCampaignAssetsRequest, dict] - ] = None, + request: campaign_asset_service.MutateCampaignAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_asset_service.CampaignAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_asset_service.CampaignAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_asset_service.MutateCampaignAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/transports/base.pyi index 38bde0e0b..7c107ca18 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignAssetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_asset_service.MutateCampaignAssetsRequest], - Union[ - campaign_asset_service.MutateCampaignAssetsResponse, - Awaitable[campaign_asset_service.MutateCampaignAssetsResponse], - ], + campaign_asset_service.MutateCampaignAssetsResponse | Awaitable[campaign_asset_service.MutateCampaignAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/transports/grpc.pyi index 8599e7543..15ffd9d8e 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignAssetServiceGrpcTransport(CampaignAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/client.pyi index 3eee52783..f4a67608a 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignAssetSetServiceTransport class CampaignAssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignAssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignAssetSetServiceTransport]: ... class CampaignAssetSetServiceClient(metaclass=CampaignAssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignAssetSetServiceClient(metaclass=CampaignAssetSetServiceClientMeta) @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_set_path( customer_id: str, campaign_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignAssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignAssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_asset_sets( self, - request: Optional[ - Union[campaign_asset_set_service.MutateCampaignAssetSetsRequest, dict] - ] = None, + request: campaign_asset_set_service.MutateCampaignAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_asset_set_service.CampaignAssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_asset_set_service.CampaignAssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_asset_set_service.MutateCampaignAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/transports/base.pyi index 02c16d020..47da49766 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignAssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignAssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_asset_set_service.MutateCampaignAssetSetsRequest], - Union[ - campaign_asset_set_service.MutateCampaignAssetSetsResponse, - Awaitable[campaign_asset_set_service.MutateCampaignAssetSetsResponse], - ], + campaign_asset_set_service.MutateCampaignAssetSetsResponse | Awaitable[campaign_asset_set_service.MutateCampaignAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/transports/grpc.pyi index 38c5cea15..c063000cc 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignAssetSetServiceGrpcTransport(CampaignAssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/client.pyi index 650456b59..c0c99870b 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignBidModifierServiceTransport class CampaignBidModifierServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignBidModifierServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignBidModifierServiceTransport]: ... class CampaignBidModifierServiceClient(metaclass=CampaignBidModifierServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CampaignBidModifierServiceClient(metaclass=CampaignBidModifierServiceClien @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_bid_modifier_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_campaign_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignBidModifierServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignBidModifierServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_bid_modifiers( self, - request: Optional[ - Union[campaign_bid_modifier_service.MutateCampaignBidModifiersRequest, dict] - ] = None, + request: campaign_bid_modifier_service.MutateCampaignBidModifiersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_bid_modifier_service.CampaignBidModifierOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_bid_modifier_service.CampaignBidModifierOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_bid_modifier_service.MutateCampaignBidModifiersResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/transports/base.pyi index 03c15f306..262709d9f 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignBidModifierServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignBidModifierServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_bid_modifier_service.MutateCampaignBidModifiersRequest], - Union[ - campaign_bid_modifier_service.MutateCampaignBidModifiersResponse, - Awaitable[campaign_bid_modifier_service.MutateCampaignBidModifiersResponse], - ], + campaign_bid_modifier_service.MutateCampaignBidModifiersResponse | Awaitable[campaign_bid_modifier_service.MutateCampaignBidModifiersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/transports/grpc.pyi index 210f3e0f4..baeeeb21e 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_bid_modifier_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignBidModifierServiceGrpcTransport(CampaignBidModifierServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/client.pyi index ad906c4e9..605156a3b 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignBudgetServiceTransport class CampaignBudgetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignBudgetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignBudgetServiceTransport]: ... class CampaignBudgetServiceClient(metaclass=CampaignBudgetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CampaignBudgetServiceClient(metaclass=CampaignBudgetServiceClientMeta): @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignBudgetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignBudgetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_budgets( self, - request: Optional[ - Union[campaign_budget_service.MutateCampaignBudgetsRequest, dict] - ] = None, + request: campaign_budget_service.MutateCampaignBudgetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_budget_service.CampaignBudgetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_budget_service.CampaignBudgetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_budget_service.MutateCampaignBudgetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/transports/base.pyi index 8fa241537..51135bd1a 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignBudgetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignBudgetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_budget_service.MutateCampaignBudgetsRequest], - Union[ - campaign_budget_service.MutateCampaignBudgetsResponse, - Awaitable[campaign_budget_service.MutateCampaignBudgetsResponse], - ], + campaign_budget_service.MutateCampaignBudgetsResponse | Awaitable[campaign_budget_service.MutateCampaignBudgetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/transports/grpc.pyi index fec11cce5..cff1eaa81 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_budget_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignBudgetServiceGrpcTransport(CampaignBudgetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/client.pyi index bd88532c7..41a87c213 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignConversionGoalServiceTransport class CampaignConversionGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignConversionGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignConversionGoalServiceTransport]: ... class CampaignConversionGoalServiceClient( metaclass=CampaignConversionGoalServiceClientMeta @@ -34,57 +34,48 @@ class CampaignConversionGoalServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_conversion_goal_path( customer_id: str, campaign_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignConversionGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignConversionGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_conversion_goals( self, - request: Optional[ - Union[ - campaign_conversion_goal_service.MutateCampaignConversionGoalsRequest, - dict, - ] - ] = None, + request: campaign_conversion_goal_service.MutateCampaignConversionGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - campaign_conversion_goal_service.CampaignConversionGoalOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_conversion_goal_service.CampaignConversionGoalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/transports/base.pyi index 24a35c2ce..ffff4d41c 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignConversionGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CampaignConversionGoalServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_conversion_goal_service.MutateCampaignConversionGoalsRequest], - Union[ - campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse, - Awaitable[ - campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse - ], - ], + campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse | Awaitable[campaign_conversion_goal_service.MutateCampaignConversionGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/transports/grpc.pyi index 29932cdbc..e0d29145b 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_conversion_goal_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CampaignConversionGoalServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/client.pyi index 82caa5e48..560542930 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignCriterionServiceTransport class CampaignCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignCriterionServiceTransport]: ... class CampaignCriterionServiceClient(metaclass=CampaignCriterionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,64 +32,60 @@ class CampaignCriterionServiceClient(metaclass=CampaignCriterionServiceClientMet @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_criterion_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def combined_audience_path(customer_id: str, combined_audience_id: str) -> str: ... @staticmethod - def parse_combined_audience_path(path: str) -> Dict[str, str]: ... + def parse_combined_audience_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_app_category_constant_path(mobile_app_category_id: str) -> str: ... @staticmethod - def parse_mobile_app_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_app_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def topic_constant_path(topic_id: str) -> str: ... @staticmethod - def parse_topic_constant_path(path: str) -> Dict[str, str]: ... + def parse_topic_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignCriterionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_criteria( self, - request: Optional[ - Union[campaign_criterion_service.MutateCampaignCriteriaRequest, dict] - ] = None, + request: campaign_criterion_service.MutateCampaignCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_criterion_service.CampaignCriterionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_criterion_service.CampaignCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_criterion_service.MutateCampaignCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/transports/base.pyi index 26ff7031a..cb6e58de9 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_criterion_service.MutateCampaignCriteriaRequest], - Union[ - campaign_criterion_service.MutateCampaignCriteriaResponse, - Awaitable[campaign_criterion_service.MutateCampaignCriteriaResponse], - ], + campaign_criterion_service.MutateCampaignCriteriaResponse | Awaitable[campaign_criterion_service.MutateCampaignCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/transports/grpc.pyi index 1786b41b6..bd9a5ca35 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_criterion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignCriterionServiceGrpcTransport(CampaignCriterionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/client.pyi index 5bca3ec61..5173c784e 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignCustomizerServiceTransport class CampaignCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignCustomizerServiceTransport]: ... class CampaignCustomizerServiceClient(metaclass=CampaignCustomizerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class CampaignCustomizerServiceClient(metaclass=CampaignCustomizerServiceClientM @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_customizer_path( customer_id: str, campaign_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_campaign_customizer_path(path: str) -> Dict[str, str]: ... + def parse_campaign_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignCustomizerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_customizers( self, - request: Optional[ - Union[campaign_customizer_service.MutateCampaignCustomizersRequest, dict] - ] = None, + request: campaign_customizer_service.MutateCampaignCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_customizer_service.CampaignCustomizerOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_customizer_service.CampaignCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_customizer_service.MutateCampaignCustomizersResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/transports/base.pyi index e8b146430..6e126675b 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignCustomizerServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_customizer_service.MutateCampaignCustomizersRequest], - Union[ - campaign_customizer_service.MutateCampaignCustomizersResponse, - Awaitable[campaign_customizer_service.MutateCampaignCustomizersResponse], - ], + campaign_customizer_service.MutateCampaignCustomizersResponse | Awaitable[campaign_customizer_service.MutateCampaignCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/transports/grpc.pyi index fe1ac0781..2e26b3ea2 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_customizer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignCustomizerServiceGrpcTransport(CampaignCustomizerServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/client.pyi index 0330d4983..dda1518c7 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import CampaignDraftServiceTransport class CampaignDraftServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignDraftServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignDraftServiceTransport]: ... class CampaignDraftServiceClient(metaclass=CampaignDraftServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,74 +34,66 @@ class CampaignDraftServiceClient(metaclass=CampaignDraftServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_draft_path( customer_id: str, base_campaign_id: str, draft_id: str ) -> str: ... @staticmethod - def parse_campaign_draft_path(path: str) -> Dict[str, str]: ... + def parse_campaign_draft_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignDraftServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignDraftServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_drafts( self, - request: Optional[ - Union[campaign_draft_service.MutateCampaignDraftsRequest, dict] - ] = None, + request: campaign_draft_service.MutateCampaignDraftsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_draft_service.CampaignDraftOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_draft_service.CampaignDraftOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_draft_service.MutateCampaignDraftsResponse: ... def promote_campaign_draft( self, - request: Optional[ - Union[campaign_draft_service.PromoteCampaignDraftRequest, dict] - ] = None, + request: campaign_draft_service.PromoteCampaignDraftRequest | dict | None = None, *, - campaign_draft: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + campaign_draft: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... def list_campaign_draft_async_errors( self, - request: Optional[ - Union[campaign_draft_service.ListCampaignDraftAsyncErrorsRequest, dict] - ] = None, + request: campaign_draft_service.ListCampaignDraftAsyncErrorsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.ListCampaignDraftAsyncErrorsPager: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/pagers.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/pagers.pyi index 578e9921e..a3d266945 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/pagers.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/pagers.pyi @@ -14,7 +14,7 @@ class ListCampaignDraftAsyncErrorsPager: ], request: campaign_draft_service.ListCampaignDraftAsyncErrorsRequest, response: campaign_draft_service.ListCampaignDraftAsyncErrorsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/transports/base.pyi index a9ad7541b..e13278861 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/transports/base.pyi @@ -15,12 +15,12 @@ class CampaignDraftServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -31,25 +31,19 @@ class CampaignDraftServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_draft_service.MutateCampaignDraftsRequest], - Union[ - campaign_draft_service.MutateCampaignDraftsResponse, - Awaitable[campaign_draft_service.MutateCampaignDraftsResponse], - ], + campaign_draft_service.MutateCampaignDraftsResponse | Awaitable[campaign_draft_service.MutateCampaignDraftsResponse], ]: ... @property def promote_campaign_draft( self, ) -> Callable[ [campaign_draft_service.PromoteCampaignDraftRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... @property def list_campaign_draft_async_errors( self, ) -> Callable[ [campaign_draft_service.ListCampaignDraftAsyncErrorsRequest], - Union[ - campaign_draft_service.ListCampaignDraftAsyncErrorsResponse, - Awaitable[campaign_draft_service.ListCampaignDraftAsyncErrorsResponse], - ], + campaign_draft_service.ListCampaignDraftAsyncErrorsResponse | Awaitable[campaign_draft_service.ListCampaignDraftAsyncErrorsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/transports/grpc.pyi index aca8bf86b..c1591aef9 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_draft_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class CampaignDraftServiceGrpcTransport(CampaignDraftServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/client.pyi index 123b71f4d..2d056c3bf 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignExtensionSettingServiceTransport class CampaignExtensionSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignExtensionSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignExtensionSettingServiceTransport]: ... class CampaignExtensionSettingServiceClient( metaclass=CampaignExtensionSettingServiceClientMeta @@ -34,63 +34,52 @@ class CampaignExtensionSettingServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_extension_setting_path( customer_id: str, campaign_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_campaign_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CampaignExtensionSettingServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignExtensionSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_extension_settings( self, - request: Optional[ - Union[ - campaign_extension_setting_service.MutateCampaignExtensionSettingsRequest, - dict, - ] - ] = None, + request: campaign_extension_setting_service.MutateCampaignExtensionSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - campaign_extension_setting_service.CampaignExtensionSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_extension_setting_service.CampaignExtensionSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/transports/base.pyi index ad9565808..84da5362d 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignExtensionSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CampaignExtensionSettingServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_extension_setting_service.MutateCampaignExtensionSettingsRequest], - Union[ - campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse, - Awaitable[ - campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse - ], - ], + campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse | Awaitable[campaign_extension_setting_service.MutateCampaignExtensionSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/transports/grpc.pyi index dd4984be6..c16a8b9a6 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_extension_setting_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CampaignExtensionSettingServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/client.pyi index 677cdae10..089df352b 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignFeedServiceTransport class CampaignFeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignFeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignFeedServiceTransport]: ... class CampaignFeedServiceClient(metaclass=CampaignFeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class CampaignFeedServiceClient(metaclass=CampaignFeedServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_feed_path(customer_id: str, campaign_id: str, feed_id: str) -> str: ... @staticmethod - def parse_campaign_feed_path(path: str) -> Dict[str, str]: ... + def parse_campaign_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignFeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignFeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_feeds( self, - request: Optional[ - Union[campaign_feed_service.MutateCampaignFeedsRequest, dict] - ] = None, + request: campaign_feed_service.MutateCampaignFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_feed_service.CampaignFeedOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_feed_service.CampaignFeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_feed_service.MutateCampaignFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/transports/base.pyi index 99e8490fa..b4868e731 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignFeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignFeedServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_feed_service.MutateCampaignFeedsRequest], - Union[ - campaign_feed_service.MutateCampaignFeedsResponse, - Awaitable[campaign_feed_service.MutateCampaignFeedsResponse], - ], + campaign_feed_service.MutateCampaignFeedsResponse | Awaitable[campaign_feed_service.MutateCampaignFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/transports/grpc.pyi index abdfe28c4..1547a304b 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignFeedServiceGrpcTransport(CampaignFeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_group_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_group_service/client.pyi index 11e2fa7bb..b5b637a91 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_group_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignGroupServiceTransport class CampaignGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignGroupServiceTransport]: ... class CampaignGroupServiceClient(metaclass=CampaignGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CampaignGroupServiceClient(metaclass=CampaignGroupServiceClientMeta): @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_groups( self, - request: Optional[ - Union[campaign_group_service.MutateCampaignGroupsRequest, dict] - ] = None, + request: campaign_group_service.MutateCampaignGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_group_service.CampaignGroupOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_group_service.CampaignGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_group_service.MutateCampaignGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_group_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_group_service/transports/base.pyi index d25f45d97..60e3ded31 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignGroupServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_group_service.MutateCampaignGroupsRequest], - Union[ - campaign_group_service.MutateCampaignGroupsResponse, - Awaitable[campaign_group_service.MutateCampaignGroupsResponse], - ], + campaign_group_service.MutateCampaignGroupsResponse | Awaitable[campaign_group_service.MutateCampaignGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_group_service/transports/grpc.pyi index bf0d99664..c6d46289c 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignGroupServiceGrpcTransport(CampaignGroupServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_label_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_label_service/client.pyi index 6c28ae105..1a236ba8f 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_label_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignLabelServiceTransport class CampaignLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignLabelServiceTransport]: ... class CampaignLabelServiceClient(metaclass=CampaignLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignLabelServiceClient(metaclass=CampaignLabelServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_labels( self, - request: Optional[ - Union[campaign_label_service.MutateCampaignLabelsRequest, dict] - ] = None, + request: campaign_label_service.MutateCampaignLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_label_service.CampaignLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_label_service.CampaignLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_label_service.MutateCampaignLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_label_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_label_service/transports/base.pyi index 81a5391c8..f8093aa00 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignLabelServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_label_service.MutateCampaignLabelsRequest], - Union[ - campaign_label_service.MutateCampaignLabelsResponse, - Awaitable[campaign_label_service.MutateCampaignLabelsResponse], - ], + campaign_label_service.MutateCampaignLabelsResponse | Awaitable[campaign_label_service.MutateCampaignLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_label_service/transports/grpc.pyi index 5f942e819..63e4c891d 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignLabelServiceGrpcTransport(CampaignLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/client.pyi index 81f65f978..74e872d59 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignLifecycleGoalServiceTransport class CampaignLifecycleGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignLifecycleGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignLifecycleGoalServiceTransport]: ... class CampaignLifecycleGoalServiceClient( metaclass=CampaignLifecycleGoalServiceClientMeta @@ -34,53 +34,46 @@ class CampaignLifecycleGoalServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_lifecycle_goal_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_lifecycle_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_lifecycle_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignLifecycleGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignLifecycleGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def configure_campaign_lifecycle_goals( self, - request: Optional[ - Union[ - campaign_lifecycle_goal_service.ConfigureCampaignLifecycleGoalsRequest, - dict, - ] - ] = None, + request: campaign_lifecycle_goal_service.ConfigureCampaignLifecycleGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - campaign_lifecycle_goal_service.CampaignLifecycleGoalOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: campaign_lifecycle_goal_service.CampaignLifecycleGoalOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_lifecycle_goal_service.ConfigureCampaignLifecycleGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/transports/base.pyi index 229fcdfb5..34213c841 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignLifecycleGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CampaignLifecycleGoalServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_lifecycle_goal_service.ConfigureCampaignLifecycleGoalsRequest], - Union[ - campaign_lifecycle_goal_service.ConfigureCampaignLifecycleGoalsResponse, - Awaitable[ - campaign_lifecycle_goal_service.ConfigureCampaignLifecycleGoalsResponse - ], - ], + campaign_lifecycle_goal_service.ConfigureCampaignLifecycleGoalsResponse | Awaitable[campaign_lifecycle_goal_service.ConfigureCampaignLifecycleGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/transports/grpc.pyi index 5734fd7c8..cf7554407 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_lifecycle_goal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignLifecycleGoalServiceGrpcTransport(CampaignLifecycleGoalServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_service/client.pyi index 7dcd074a3..afb2f1bf5 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignServiceTransport class CampaignServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignServiceTransport]: ... class CampaignServiceClient(metaclass=CampaignServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,78 +34,76 @@ class CampaignServiceClient(metaclass=CampaignServiceClientMeta): customer_id: str, bidding_strategy_id: str ) -> str: ... @staticmethod - def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_accessible_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaigns( self, - request: Optional[Union[campaign_service.MutateCampaignsRequest, dict]] = None, + request: campaign_service.MutateCampaignsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_service.CampaignOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_service.CampaignOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_service.MutateCampaignsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_service/transports/base.pyi index 2ef8534c4..31dd0d674 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_service.MutateCampaignsRequest], - Union[ - campaign_service.MutateCampaignsResponse, - Awaitable[campaign_service.MutateCampaignsResponse], - ], + campaign_service.MutateCampaignsResponse | Awaitable[campaign_service.MutateCampaignsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_service/transports/grpc.pyi index 6d1bc8a7a..a0a2959db 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignServiceGrpcTransport(CampaignServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/client.pyi index 8dbce0363..c2dcfd16e 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CampaignSharedSetServiceTransport class CampaignSharedSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CampaignSharedSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CampaignSharedSetServiceTransport]: ... class CampaignSharedSetServiceClient(metaclass=CampaignSharedSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class CampaignSharedSetServiceClient(metaclass=CampaignSharedSetServiceClientMet @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_shared_set_path( customer_id: str, campaign_id: str, shared_set_id: str ) -> str: ... @staticmethod - def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CampaignSharedSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CampaignSharedSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_campaign_shared_sets( self, - request: Optional[ - Union[campaign_shared_set_service.MutateCampaignSharedSetsRequest, dict] - ] = None, + request: campaign_shared_set_service.MutateCampaignSharedSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[campaign_shared_set_service.CampaignSharedSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[campaign_shared_set_service.CampaignSharedSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> campaign_shared_set_service.MutateCampaignSharedSetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/transports/base.pyi index 829de3517..29e4f26ec 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class CampaignSharedSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CampaignSharedSetServiceTransport(abc.ABC): self, ) -> Callable[ [campaign_shared_set_service.MutateCampaignSharedSetsRequest], - Union[ - campaign_shared_set_service.MutateCampaignSharedSetsResponse, - Awaitable[campaign_shared_set_service.MutateCampaignSharedSetsResponse], - ], + campaign_shared_set_service.MutateCampaignSharedSetsResponse | Awaitable[campaign_shared_set_service.MutateCampaignSharedSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/transports/grpc.pyi index c066be0bc..32e9effa8 100644 --- a/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/campaign_shared_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CampaignSharedSetServiceGrpcTransport(CampaignSharedSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_action_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_action_service/client.pyi index 16c93ecb4..97620574b 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_action_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_action_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionActionServiceTransport class ConversionActionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionActionServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionActionServiceTransport]: ... class ConversionActionServiceClient(metaclass=ConversionActionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,50 +32,46 @@ class ConversionActionServiceClient(metaclass=ConversionActionServiceClientMeta) @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionActionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionActionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_actions( self, - request: Optional[ - Union[conversion_action_service.MutateConversionActionsRequest, dict] - ] = None, + request: conversion_action_service.MutateConversionActionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[conversion_action_service.ConversionActionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_action_service.ConversionActionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_action_service.MutateConversionActionsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_action_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_action_service/transports/base.pyi index 492f65e28..768db7b6d 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_action_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_action_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionActionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ConversionActionServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_action_service.MutateConversionActionsRequest], - Union[ - conversion_action_service.MutateConversionActionsResponse, - Awaitable[conversion_action_service.MutateConversionActionsResponse], - ], + conversion_action_service.MutateConversionActionsResponse | Awaitable[conversion_action_service.MutateConversionActionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_action_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_action_service/transports/grpc.pyi index bd8ea24eb..ca973ad2d 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_action_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_action_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ConversionActionServiceGrpcTransport(ConversionActionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/client.pyi index 9c036d0d1..3e4d14c5e 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionAdjustmentUploadServiceTransport class ConversionAdjustmentUploadServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionAdjustmentUploadServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionAdjustmentUploadServiceTransport]: ... class ConversionAdjustmentUploadServiceClient( metaclass=ConversionAdjustmentUploadServiceClientMeta @@ -34,48 +34,39 @@ class ConversionAdjustmentUploadServiceClient( @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ConversionAdjustmentUploadServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionAdjustmentUploadServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def upload_conversion_adjustments( self, - request: Optional[ - Union[ - conversion_adjustment_upload_service.UploadConversionAdjustmentsRequest, - dict, - ] - ] = None, + request: conversion_adjustment_upload_service.UploadConversionAdjustmentsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - conversion_adjustments: Optional[ - MutableSequence[conversion_adjustment_upload_service.ConversionAdjustment] - ] = None, - partial_failure: Optional[bool] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + conversion_adjustments: MutableSequence[conversion_adjustment_upload_service.ConversionAdjustment] | None = None, + partial_failure: bool | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/transports/base.pyi index 6fa44d395..60c202d66 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionAdjustmentUploadServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ConversionAdjustmentUploadServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_adjustment_upload_service.UploadConversionAdjustmentsRequest], - Union[ - conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse, - Awaitable[ - conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse - ], - ], + conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse | Awaitable[conversion_adjustment_upload_service.UploadConversionAdjustmentsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/transports/grpc.pyi index ebb83792e..85b0bc4f8 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_adjustment_upload_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ConversionAdjustmentUploadServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/client.pyi index 50691fdd5..2f7a2e728 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionCustomVariableServiceTransport class ConversionCustomVariableServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionCustomVariableServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionCustomVariableServiceTransport]: ... class ConversionCustomVariableServiceClient( metaclass=ConversionCustomVariableServiceClientMeta @@ -36,57 +36,46 @@ class ConversionCustomVariableServiceClient( customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ConversionCustomVariableServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionCustomVariableServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_custom_variables( self, - request: Optional[ - Union[ - conversion_custom_variable_service.MutateConversionCustomVariablesRequest, - dict, - ] - ] = None, + request: conversion_custom_variable_service.MutateConversionCustomVariablesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - conversion_custom_variable_service.ConversionCustomVariableOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_custom_variable_service.ConversionCustomVariableOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_custom_variable_service.MutateConversionCustomVariablesResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/transports/base.pyi index d53b06e91..ddb4c43dd 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionCustomVariableServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ConversionCustomVariableServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_custom_variable_service.MutateConversionCustomVariablesRequest], - Union[ - conversion_custom_variable_service.MutateConversionCustomVariablesResponse, - Awaitable[ - conversion_custom_variable_service.MutateConversionCustomVariablesResponse - ], - ], + conversion_custom_variable_service.MutateConversionCustomVariablesResponse | Awaitable[conversion_custom_variable_service.MutateConversionCustomVariablesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/transports/grpc.pyi index 80aa97772..51b4f6773 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_custom_variable_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ConversionCustomVariableServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/client.pyi index cf8af64cd..38fac3f79 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import ConversionGoalCampaignConfigServiceTransport class ConversionGoalCampaignConfigServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionGoalCampaignConfigServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionGoalCampaignConfigServiceTransport]: ... class ConversionGoalCampaignConfigServiceClient( metaclass=ConversionGoalCampaignConfigServiceClientMeta @@ -36,65 +36,54 @@ class ConversionGoalCampaignConfigServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_goal_campaign_config_path( customer_id: str, campaign_id: str ) -> str: ... @staticmethod - def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: ... + def parse_conversion_goal_campaign_config_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ConversionGoalCampaignConfigServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionGoalCampaignConfigServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_goal_campaign_configs( self, - request: Optional[ - Union[ - conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsRequest, - dict, - ] - ] = None, + request: conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - conversion_goal_campaign_config_service.ConversionGoalCampaignConfigOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_goal_campaign_config_service.ConversionGoalCampaignConfigOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse ): ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/transports/base.pyi index 9d2803942..ed65d969b 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/transports/base.pyi @@ -16,12 +16,12 @@ class ConversionGoalCampaignConfigServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class ConversionGoalCampaignConfigServiceTransport(abc.ABC): [ conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsRequest ], - Union[ - conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse, - Awaitable[ - conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse - ], - ], + conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse | Awaitable[conversion_goal_campaign_config_service.MutateConversionGoalCampaignConfigsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi index b724f3cc8..aca38034e 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_goal_campaign_config_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class ConversionGoalCampaignConfigServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/client.pyi index f2658e35c..2159fe2f7 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionUploadServiceTransport class ConversionUploadServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionUploadServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionUploadServiceTransport]: ... class ConversionUploadServiceClient(metaclass=ConversionUploadServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,62 +34,54 @@ class ConversionUploadServiceClient(metaclass=ConversionUploadServiceClientMeta) customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionUploadServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionUploadServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def upload_click_conversions( self, - request: Optional[ - Union[conversion_upload_service.UploadClickConversionsRequest, dict] - ] = None, + request: conversion_upload_service.UploadClickConversionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - conversions: Optional[ - MutableSequence[conversion_upload_service.ClickConversion] - ] = None, - partial_failure: Optional[bool] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + conversions: MutableSequence[conversion_upload_service.ClickConversion] | None = None, + partial_failure: bool | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_upload_service.UploadClickConversionsResponse: ... def upload_call_conversions( self, - request: Optional[ - Union[conversion_upload_service.UploadCallConversionsRequest, dict] - ] = None, + request: conversion_upload_service.UploadCallConversionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - conversions: Optional[ - MutableSequence[conversion_upload_service.CallConversion] - ] = None, - partial_failure: Optional[bool] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + conversions: MutableSequence[conversion_upload_service.CallConversion] | None = None, + partial_failure: bool | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_upload_service.UploadCallConversionsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/transports/base.pyi index a724c27c2..bece624dd 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionUploadServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class ConversionUploadServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_upload_service.UploadClickConversionsRequest], - Union[ - conversion_upload_service.UploadClickConversionsResponse, - Awaitable[conversion_upload_service.UploadClickConversionsResponse], - ], + conversion_upload_service.UploadClickConversionsResponse | Awaitable[conversion_upload_service.UploadClickConversionsResponse], ]: ... @property def upload_call_conversions( self, ) -> Callable[ [conversion_upload_service.UploadCallConversionsRequest], - Union[ - conversion_upload_service.UploadCallConversionsResponse, - Awaitable[conversion_upload_service.UploadCallConversionsResponse], - ], + conversion_upload_service.UploadCallConversionsResponse | Awaitable[conversion_upload_service.UploadCallConversionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/transports/grpc.pyi index dae33ccff..47409c15d 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_upload_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ConversionUploadServiceGrpcTransport(ConversionUploadServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/client.pyi index c7cf6157c..2f7b8c526 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionValueRuleServiceTransport class ConversionValueRuleServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionValueRuleServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionValueRuleServiceTransport]: ... class ConversionValueRuleServiceClient(metaclass=ConversionValueRuleServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,62 +34,58 @@ class ConversionValueRuleServiceClient(metaclass=ConversionValueRuleServiceClien customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def user_interest_path(customer_id: str, user_interest_id: str) -> str: ... @staticmethod - def parse_user_interest_path(path: str) -> Dict[str, str]: ... + def parse_user_interest_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionValueRuleServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionValueRuleServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_value_rules( self, - request: Optional[ - Union[conversion_value_rule_service.MutateConversionValueRulesRequest, dict] - ] = None, + request: conversion_value_rule_service.MutateConversionValueRulesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[conversion_value_rule_service.ConversionValueRuleOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_value_rule_service.ConversionValueRuleOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_value_rule_service.MutateConversionValueRulesResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/transports/base.pyi index 75e17541e..69acdc8ee 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionValueRuleServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ConversionValueRuleServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_value_rule_service.MutateConversionValueRulesRequest], - Union[ - conversion_value_rule_service.MutateConversionValueRulesResponse, - Awaitable[conversion_value_rule_service.MutateConversionValueRulesResponse], - ], + conversion_value_rule_service.MutateConversionValueRulesResponse | Awaitable[conversion_value_rule_service.MutateConversionValueRulesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/transports/grpc.pyi index 234821f40..0a9d2fdd1 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ConversionValueRuleServiceGrpcTransport(ConversionValueRuleServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/client.pyi index be6b3e86e..c64f39c9d 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ConversionValueRuleSetServiceTransport class ConversionValueRuleSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ConversionValueRuleSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[ConversionValueRuleSetServiceTransport]: ... class ConversionValueRuleSetServiceClient( metaclass=ConversionValueRuleSetServiceClientMeta @@ -34,67 +34,58 @@ class ConversionValueRuleSetServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_path( customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_set_path( customer_id: str, conversion_value_rule_set_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_set_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ConversionValueRuleSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ConversionValueRuleSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_conversion_value_rule_sets( self, - request: Optional[ - Union[ - conversion_value_rule_set_service.MutateConversionValueRuleSetsRequest, - dict, - ] - ] = None, + request: conversion_value_rule_set_service.MutateConversionValueRuleSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - conversion_value_rule_set_service.ConversionValueRuleSetOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[conversion_value_rule_set_service.ConversionValueRuleSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/transports/base.pyi index 4bd1d5b91..f84444946 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class ConversionValueRuleSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ConversionValueRuleSetServiceTransport(abc.ABC): self, ) -> Callable[ [conversion_value_rule_set_service.MutateConversionValueRuleSetsRequest], - Union[ - conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse, - Awaitable[ - conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse - ], - ], + conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse | Awaitable[conversion_value_rule_set_service.MutateConversionValueRuleSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/transports/grpc.pyi index 4d05fbc99..f2a05098d 100644 --- a/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/conversion_value_rule_set_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ConversionValueRuleSetServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/custom_audience_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/custom_audience_service/client.pyi index 31c5bbd1f..1ef6bc7c9 100644 --- a/google-stubs/ads/googleads/v15/services/services/custom_audience_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/custom_audience_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomAudienceServiceTransport class CustomAudienceServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomAudienceServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomAudienceServiceTransport]: ... class CustomAudienceServiceClient(metaclass=CustomAudienceServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CustomAudienceServiceClient(metaclass=CustomAudienceServiceClientMeta): @staticmethod def custom_audience_path(customer_id: str, custom_audience_id: str) -> str: ... @staticmethod - def parse_custom_audience_path(path: str) -> Dict[str, str]: ... + def parse_custom_audience_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomAudienceServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomAudienceServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_custom_audiences( self, - request: Optional[ - Union[custom_audience_service.MutateCustomAudiencesRequest, dict] - ] = None, + request: custom_audience_service.MutateCustomAudiencesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[custom_audience_service.CustomAudienceOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[custom_audience_service.CustomAudienceOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> custom_audience_service.MutateCustomAudiencesResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/custom_audience_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/custom_audience_service/transports/base.pyi index b5388251a..5086a46d6 100644 --- a/google-stubs/ads/googleads/v15/services/services/custom_audience_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/custom_audience_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomAudienceServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomAudienceServiceTransport(abc.ABC): self, ) -> Callable[ [custom_audience_service.MutateCustomAudiencesRequest], - Union[ - custom_audience_service.MutateCustomAudiencesResponse, - Awaitable[custom_audience_service.MutateCustomAudiencesResponse], - ], + custom_audience_service.MutateCustomAudiencesResponse | Awaitable[custom_audience_service.MutateCustomAudiencesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/custom_audience_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/custom_audience_service/transports/grpc.pyi index 71a045934..8986a02ac 100644 --- a/google-stubs/ads/googleads/v15/services/services/custom_audience_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/custom_audience_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomAudienceServiceGrpcTransport(CustomAudienceServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/client.pyi index 16be1fb61..a0a4d3a75 100644 --- a/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomConversionGoalServiceTransport class CustomConversionGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomConversionGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomConversionGoalServiceTransport]: ... class CustomConversionGoalServiceClient( metaclass=CustomConversionGoalServiceClientMeta @@ -34,54 +34,46 @@ class CustomConversionGoalServiceClient( @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomConversionGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomConversionGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_custom_conversion_goals( self, - request: Optional[ - Union[ - custom_conversion_goal_service.MutateCustomConversionGoalsRequest, dict - ] - ] = None, + request: custom_conversion_goal_service.MutateCustomConversionGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - custom_conversion_goal_service.CustomConversionGoalOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[custom_conversion_goal_service.CustomConversionGoalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> custom_conversion_goal_service.MutateCustomConversionGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/transports/base.pyi index 12673d947..3934dc48a 100644 --- a/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomConversionGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomConversionGoalServiceTransport(abc.ABC): self, ) -> Callable[ [custom_conversion_goal_service.MutateCustomConversionGoalsRequest], - Union[ - custom_conversion_goal_service.MutateCustomConversionGoalsResponse, - Awaitable[ - custom_conversion_goal_service.MutateCustomConversionGoalsResponse - ], - ], + custom_conversion_goal_service.MutateCustomConversionGoalsResponse | Awaitable[custom_conversion_goal_service.MutateCustomConversionGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/transports/grpc.pyi index 6fd3d9bd4..f035e6e25 100644 --- a/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/custom_conversion_goal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomConversionGoalServiceGrpcTransport(CustomConversionGoalServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/custom_interest_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/custom_interest_service/client.pyi index 8d6802f14..94ca0fa3c 100644 --- a/google-stubs/ads/googleads/v15/services/services/custom_interest_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/custom_interest_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomInterestServiceTransport class CustomInterestServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomInterestServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomInterestServiceTransport]: ... class CustomInterestServiceClient(metaclass=CustomInterestServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CustomInterestServiceClient(metaclass=CustomInterestServiceClientMeta): @staticmethod def custom_interest_path(customer_id: str, custom_interest_id: str) -> str: ... @staticmethod - def parse_custom_interest_path(path: str) -> Dict[str, str]: ... + def parse_custom_interest_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomInterestServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomInterestServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_custom_interests( self, - request: Optional[ - Union[custom_interest_service.MutateCustomInterestsRequest, dict] - ] = None, + request: custom_interest_service.MutateCustomInterestsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[custom_interest_service.CustomInterestOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[custom_interest_service.CustomInterestOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> custom_interest_service.MutateCustomInterestsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/custom_interest_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/custom_interest_service/transports/base.pyi index 5fca9f583..f9e7733b3 100644 --- a/google-stubs/ads/googleads/v15/services/services/custom_interest_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/custom_interest_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomInterestServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomInterestServiceTransport(abc.ABC): self, ) -> Callable[ [custom_interest_service.MutateCustomInterestsRequest], - Union[ - custom_interest_service.MutateCustomInterestsResponse, - Awaitable[custom_interest_service.MutateCustomInterestsResponse], - ], + custom_interest_service.MutateCustomInterestsResponse | Awaitable[custom_interest_service.MutateCustomInterestsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/custom_interest_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/custom_interest_service/transports/grpc.pyi index 2dbf7bd23..439d6a347 100644 --- a/google-stubs/ads/googleads/v15/services/services/custom_interest_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/custom_interest_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomInterestServiceGrpcTransport(CustomInterestServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_asset_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_asset_service/client.pyi index 5fa9bb0d0..b8abf3f4c 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_asset_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_asset_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerAssetServiceTransport class CustomerAssetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerAssetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerAssetServiceTransport]: ... class CustomerAssetServiceClient(metaclass=CustomerAssetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CustomerAssetServiceClient(metaclass=CustomerAssetServiceClientMeta): @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_path( customer_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_customer_asset_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerAssetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerAssetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_assets( self, - request: Optional[ - Union[customer_asset_service.MutateCustomerAssetsRequest, dict] - ] = None, + request: customer_asset_service.MutateCustomerAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_asset_service.CustomerAssetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_asset_service.CustomerAssetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_asset_service.MutateCustomerAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_asset_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_asset_service/transports/base.pyi index d53d6ab63..73c454f7c 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_asset_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_asset_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerAssetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerAssetServiceTransport(abc.ABC): self, ) -> Callable[ [customer_asset_service.MutateCustomerAssetsRequest], - Union[ - customer_asset_service.MutateCustomerAssetsResponse, - Awaitable[customer_asset_service.MutateCustomerAssetsResponse], - ], + customer_asset_service.MutateCustomerAssetsResponse | Awaitable[customer_asset_service.MutateCustomerAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_asset_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_asset_service/transports/grpc.pyi index 8a22529d7..57b504206 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_asset_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_asset_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerAssetServiceGrpcTransport(CustomerAssetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/client.pyi index d336a9434..de4eeb23d 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerAssetSetServiceTransport class CustomerAssetSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerAssetSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerAssetSetServiceTransport]: ... class CustomerAssetSetServiceClient(metaclass=CustomerAssetSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class CustomerAssetSetServiceClient(metaclass=CustomerAssetSetServiceClientMeta) @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_customer_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerAssetSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerAssetSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_asset_sets( self, - request: Optional[ - Union[customer_asset_set_service.MutateCustomerAssetSetsRequest, dict] - ] = None, + request: customer_asset_set_service.MutateCustomerAssetSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_asset_set_service.CustomerAssetSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_asset_set_service.CustomerAssetSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_asset_set_service.MutateCustomerAssetSetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/transports/base.pyi index 53d9c4bd9..508464e28 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerAssetSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerAssetSetServiceTransport(abc.ABC): self, ) -> Callable[ [customer_asset_set_service.MutateCustomerAssetSetsRequest], - Union[ - customer_asset_set_service.MutateCustomerAssetSetsResponse, - Awaitable[customer_asset_set_service.MutateCustomerAssetSetsResponse], - ], + customer_asset_set_service.MutateCustomerAssetSetsResponse | Awaitable[customer_asset_set_service.MutateCustomerAssetSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/transports/grpc.pyi index c8d0ff69c..5891ede25 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_asset_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerAssetSetServiceGrpcTransport(CustomerAssetSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/client.pyi index 92c050cc6..8c9b73a3a 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerClientLinkServiceTransport class CustomerClientLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerClientLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerClientLinkServiceTransport]: ... class CustomerClientLinkServiceClient(metaclass=CustomerClientLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class CustomerClientLinkServiceClient(metaclass=CustomerClientLinkServiceClientM @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_client_link_path( customer_id: str, client_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_client_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_client_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerClientLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerClientLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_client_link( self, - request: Optional[ - Union[customer_client_link_service.MutateCustomerClientLinkRequest, dict] - ] = None, + request: customer_client_link_service.MutateCustomerClientLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_client_link_service.CustomerClientLinkOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_client_link_service.CustomerClientLinkOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_client_link_service.MutateCustomerClientLinkResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/transports/base.pyi index 67edaae7a..8af3655d2 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerClientLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerClientLinkServiceTransport(abc.ABC): self, ) -> Callable[ [customer_client_link_service.MutateCustomerClientLinkRequest], - Union[ - customer_client_link_service.MutateCustomerClientLinkResponse, - Awaitable[customer_client_link_service.MutateCustomerClientLinkResponse], - ], + customer_client_link_service.MutateCustomerClientLinkResponse | Awaitable[customer_client_link_service.MutateCustomerClientLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/transports/grpc.pyi index c5cb28c31..cb8aecc8e 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_client_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerClientLinkServiceGrpcTransport(CustomerClientLinkServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/client.pyi index 2a70ed612..9bd779a83 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerConversionGoalServiceTransport class CustomerConversionGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerConversionGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerConversionGoalServiceTransport]: ... class CustomerConversionGoalServiceClient( metaclass=CustomerConversionGoalServiceClientMeta @@ -36,51 +36,42 @@ class CustomerConversionGoalServiceClient( customer_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerConversionGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerConversionGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_conversion_goals( self, - request: Optional[ - Union[ - customer_conversion_goal_service.MutateCustomerConversionGoalsRequest, - dict, - ] - ] = None, + request: customer_conversion_goal_service.MutateCustomerConversionGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - customer_conversion_goal_service.CustomerConversionGoalOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_conversion_goal_service.CustomerConversionGoalOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_conversion_goal_service.MutateCustomerConversionGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/transports/base.pyi index e94d19c4a..585b57d90 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerConversionGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerConversionGoalServiceTransport(abc.ABC): self, ) -> Callable[ [customer_conversion_goal_service.MutateCustomerConversionGoalsRequest], - Union[ - customer_conversion_goal_service.MutateCustomerConversionGoalsResponse, - Awaitable[ - customer_conversion_goal_service.MutateCustomerConversionGoalsResponse - ], - ], + customer_conversion_goal_service.MutateCustomerConversionGoalsResponse | Awaitable[customer_conversion_goal_service.MutateCustomerConversionGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/transports/grpc.pyi index 054691374..614585621 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_conversion_goal_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CustomerConversionGoalServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/client.pyi index b8beeecda..910b54873 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerCustomizerServiceTransport class CustomerCustomizerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerCustomizerServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerCustomizerServiceTransport]: ... class CustomerCustomizerServiceClient(metaclass=CustomerCustomizerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,52 +34,48 @@ class CustomerCustomizerServiceClient(metaclass=CustomerCustomizerServiceClientM customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customer_customizer_path(path: str) -> Dict[str, str]: ... + def parse_customer_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerCustomizerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerCustomizerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_customizers( self, - request: Optional[ - Union[customer_customizer_service.MutateCustomerCustomizersRequest, dict] - ] = None, + request: customer_customizer_service.MutateCustomerCustomizersRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_customizer_service.CustomerCustomizerOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_customizer_service.CustomerCustomizerOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_customizer_service.MutateCustomerCustomizersResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/transports/base.pyi index 2df7ceb4d..62350b6e2 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerCustomizerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerCustomizerServiceTransport(abc.ABC): self, ) -> Callable[ [customer_customizer_service.MutateCustomerCustomizersRequest], - Union[ - customer_customizer_service.MutateCustomerCustomizersResponse, - Awaitable[customer_customizer_service.MutateCustomerCustomizersResponse], - ], + customer_customizer_service.MutateCustomerCustomizersResponse | Awaitable[customer_customizer_service.MutateCustomerCustomizersResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/transports/grpc.pyi index 55af25b24..dfac2a0a5 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_customizer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerCustomizerServiceGrpcTransport(CustomerCustomizerServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/client.pyi index 954aa2b79..99b8a9226 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerExtensionSettingServiceTransport class CustomerExtensionSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerExtensionSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerExtensionSettingServiceTransport]: ... class CustomerExtensionSettingServiceClient( metaclass=CustomerExtensionSettingServiceClientMeta @@ -36,57 +36,46 @@ class CustomerExtensionSettingServiceClient( customer_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_customer_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerExtensionSettingServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerExtensionSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_extension_settings( self, - request: Optional[ - Union[ - customer_extension_setting_service.MutateCustomerExtensionSettingsRequest, - dict, - ] - ] = None, + request: customer_extension_setting_service.MutateCustomerExtensionSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - customer_extension_setting_service.CustomerExtensionSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_extension_setting_service.CustomerExtensionSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_extension_setting_service.MutateCustomerExtensionSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/transports/base.pyi index fcbe958ec..9d9946ebb 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerExtensionSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerExtensionSettingServiceTransport(abc.ABC): self, ) -> Callable[ [customer_extension_setting_service.MutateCustomerExtensionSettingsRequest], - Union[ - customer_extension_setting_service.MutateCustomerExtensionSettingsResponse, - Awaitable[ - customer_extension_setting_service.MutateCustomerExtensionSettingsResponse - ], - ], + customer_extension_setting_service.MutateCustomerExtensionSettingsResponse | Awaitable[customer_extension_setting_service.MutateCustomerExtensionSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/transports/grpc.pyi index 13d0fa149..75fcd3777 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_extension_setting_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CustomerExtensionSettingServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_feed_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_feed_service/client.pyi index 8f80b5f07..0ca4ab041 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_feed_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerFeedServiceTransport class CustomerFeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerFeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerFeedServiceTransport]: ... class CustomerFeedServiceClient(metaclass=CustomerFeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,50 +32,46 @@ class CustomerFeedServiceClient(metaclass=CustomerFeedServiceClientMeta): @staticmethod def customer_feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_customer_feed_path(path: str) -> Dict[str, str]: ... + def parse_customer_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerFeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerFeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_feeds( self, - request: Optional[ - Union[customer_feed_service.MutateCustomerFeedsRequest, dict] - ] = None, + request: customer_feed_service.MutateCustomerFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_feed_service.CustomerFeedOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_feed_service.CustomerFeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_feed_service.MutateCustomerFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_feed_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_feed_service/transports/base.pyi index bf4c3e877..2f71fe8e2 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerFeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerFeedServiceTransport(abc.ABC): self, ) -> Callable[ [customer_feed_service.MutateCustomerFeedsRequest], - Union[ - customer_feed_service.MutateCustomerFeedsResponse, - Awaitable[customer_feed_service.MutateCustomerFeedsResponse], - ], + customer_feed_service.MutateCustomerFeedsResponse | Awaitable[customer_feed_service.MutateCustomerFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_feed_service/transports/grpc.pyi index 3010d39fb..eae310156 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerFeedServiceGrpcTransport(CustomerFeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_label_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_label_service/client.pyi index 89ce0694c..d0678e570 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_label_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerLabelServiceTransport class CustomerLabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerLabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerLabelServiceTransport]: ... class CustomerLabelServiceClient(metaclass=CustomerLabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,54 +32,50 @@ class CustomerLabelServiceClient(metaclass=CustomerLabelServiceClientMeta): @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_customer_label_path(path: str) -> Dict[str, str]: ... + def parse_customer_label_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerLabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerLabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_labels( self, - request: Optional[ - Union[customer_label_service.MutateCustomerLabelsRequest, dict] - ] = None, + request: customer_label_service.MutateCustomerLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_label_service.CustomerLabelOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_label_service.CustomerLabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_label_service.MutateCustomerLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_label_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_label_service/transports/base.pyi index baf76ee49..d1c798248 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_label_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerLabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerLabelServiceTransport(abc.ABC): self, ) -> Callable[ [customer_label_service.MutateCustomerLabelsRequest], - Union[ - customer_label_service.MutateCustomerLabelsResponse, - Awaitable[customer_label_service.MutateCustomerLabelsResponse], - ], + customer_label_service.MutateCustomerLabelsResponse | Awaitable[customer_label_service.MutateCustomerLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_label_service/transports/grpc.pyi index 2d78b5601..31a3267c7 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerLabelServiceGrpcTransport(CustomerLabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/client.pyi index 1188d4f9c..b9302d3db 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerLifecycleGoalServiceTransport class CustomerLifecycleGoalServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerLifecycleGoalServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerLifecycleGoalServiceTransport]: ... class CustomerLifecycleGoalServiceClient( metaclass=CustomerLifecycleGoalServiceClientMeta @@ -34,53 +34,46 @@ class CustomerLifecycleGoalServiceClient( @staticmethod def customer_lifecycle_goal_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_lifecycle_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_lifecycle_goal_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerLifecycleGoalServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerLifecycleGoalServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def configure_customer_lifecycle_goals( self, - request: Optional[ - Union[ - customer_lifecycle_goal_service.ConfigureCustomerLifecycleGoalsRequest, - dict, - ] - ] = None, + request: customer_lifecycle_goal_service.ConfigureCustomerLifecycleGoalsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_lifecycle_goal_service.CustomerLifecycleGoalOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_lifecycle_goal_service.CustomerLifecycleGoalOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_lifecycle_goal_service.ConfigureCustomerLifecycleGoalsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/transports/base.pyi index eead165e9..8cfbea06e 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerLifecycleGoalServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerLifecycleGoalServiceTransport(abc.ABC): self, ) -> Callable[ [customer_lifecycle_goal_service.ConfigureCustomerLifecycleGoalsRequest], - Union[ - customer_lifecycle_goal_service.ConfigureCustomerLifecycleGoalsResponse, - Awaitable[ - customer_lifecycle_goal_service.ConfigureCustomerLifecycleGoalsResponse - ], - ], + customer_lifecycle_goal_service.ConfigureCustomerLifecycleGoalsResponse | Awaitable[customer_lifecycle_goal_service.ConfigureCustomerLifecycleGoalsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/transports/grpc.pyi index 4ecce8aba..84c01593e 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_lifecycle_goal_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerLifecycleGoalServiceGrpcTransport(CustomerLifecycleGoalServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/client.pyi index e600c076f..f6b3f6aeb 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerManagerLinkServiceTransport class CustomerManagerLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerManagerLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerManagerLinkServiceTransport]: ... class CustomerManagerLinkServiceClient(metaclass=CustomerManagerLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,65 +32,59 @@ class CustomerManagerLinkServiceClient(metaclass=CustomerManagerLinkServiceClien @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_manager_link_path( customer_id: str, manager_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_manager_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_manager_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerManagerLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerManagerLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_manager_link( self, - request: Optional[ - Union[customer_manager_link_service.MutateCustomerManagerLinkRequest, dict] - ] = None, + request: customer_manager_link_service.MutateCustomerManagerLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customer_manager_link_service.CustomerManagerLinkOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_manager_link_service.CustomerManagerLinkOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_manager_link_service.MutateCustomerManagerLinkResponse: ... def move_manager_link( self, - request: Optional[ - Union[customer_manager_link_service.MoveManagerLinkRequest, dict] - ] = None, + request: customer_manager_link_service.MoveManagerLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - previous_customer_manager_link: Optional[str] = None, - new_manager: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + previous_customer_manager_link: str | None = None, + new_manager: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_manager_link_service.MoveManagerLinkResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/transports/base.pyi index 9e01df337..d8f9a8506 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerManagerLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class CustomerManagerLinkServiceTransport(abc.ABC): self, ) -> Callable[ [customer_manager_link_service.MutateCustomerManagerLinkRequest], - Union[ - customer_manager_link_service.MutateCustomerManagerLinkResponse, - Awaitable[customer_manager_link_service.MutateCustomerManagerLinkResponse], - ], + customer_manager_link_service.MutateCustomerManagerLinkResponse | Awaitable[customer_manager_link_service.MutateCustomerManagerLinkResponse], ]: ... @property def move_manager_link( self, ) -> Callable[ [customer_manager_link_service.MoveManagerLinkRequest], - Union[ - customer_manager_link_service.MoveManagerLinkResponse, - Awaitable[customer_manager_link_service.MoveManagerLinkResponse], - ], + customer_manager_link_service.MoveManagerLinkResponse | Awaitable[customer_manager_link_service.MoveManagerLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/transports/grpc.pyi index d63f91873..04aab4116 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_manager_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerManagerLinkServiceGrpcTransport(CustomerManagerLinkServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/client.pyi index 985df405a..64eaa65d6 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerNegativeCriterionServiceTransport class CustomerNegativeCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerNegativeCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerNegativeCriterionServiceTransport]: ... class CustomerNegativeCriterionServiceClient( metaclass=CustomerNegativeCriterionServiceClientMeta @@ -36,57 +36,46 @@ class CustomerNegativeCriterionServiceClient( customer_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: ... + def parse_customer_negative_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_app_category_constant_path(mobile_app_category_id: str) -> str: ... @staticmethod - def parse_mobile_app_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_app_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerNegativeCriterionServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerNegativeCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_negative_criteria( self, - request: Optional[ - Union[ - customer_negative_criterion_service.MutateCustomerNegativeCriteriaRequest, - dict, - ] - ] = None, + request: customer_negative_criterion_service.MutateCustomerNegativeCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - customer_negative_criterion_service.CustomerNegativeCriterionOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customer_negative_criterion_service.CustomerNegativeCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/transports/base.pyi index 1e584fed9..7f5519ab6 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerNegativeCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class CustomerNegativeCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [customer_negative_criterion_service.MutateCustomerNegativeCriteriaRequest], - Union[ - customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse, - Awaitable[ - customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse - ], - ], + customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse | Awaitable[customer_negative_criterion_service.MutateCustomerNegativeCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/transports/grpc.pyi index 0dec48734..621c4f9bd 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_negative_criterion_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class CustomerNegativeCriterionServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_service/client.pyi index bcd0db711..9a2d6af17 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import CustomerServiceTransport class CustomerServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerServiceTransport]: ... class CustomerServiceClient(metaclass=CustomerServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,68 +33,64 @@ class CustomerServiceClient(metaclass=CustomerServiceClientMeta): @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer( self, - request: Optional[Union[customer_service.MutateCustomerRequest, dict]] = None, + request: customer_service.MutateCustomerRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[customer_service.CustomerOperation] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_service.CustomerOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_service.MutateCustomerResponse: ... def list_accessible_customers( self, - request: Optional[ - Union[customer_service.ListAccessibleCustomersRequest, dict] - ] = None, + request: customer_service.ListAccessibleCustomersRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_service.ListAccessibleCustomersResponse: ... def create_customer_client( self, - request: Optional[ - Union[customer_service.CreateCustomerClientRequest, dict] - ] = None, + request: customer_service.CreateCustomerClientRequest | dict | None = None, *, - customer_id: Optional[str] = None, - customer_client: Optional[customer.Customer] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + customer_client: customer.Customer | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_service.CreateCustomerClientResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_service/transports/base.pyi index 25f20d582..cbd538852 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,28 +28,19 @@ class CustomerServiceTransport(abc.ABC): self, ) -> Callable[ [customer_service.MutateCustomerRequest], - Union[ - customer_service.MutateCustomerResponse, - Awaitable[customer_service.MutateCustomerResponse], - ], + customer_service.MutateCustomerResponse | Awaitable[customer_service.MutateCustomerResponse], ]: ... @property def list_accessible_customers( self, ) -> Callable[ [customer_service.ListAccessibleCustomersRequest], - Union[ - customer_service.ListAccessibleCustomersResponse, - Awaitable[customer_service.ListAccessibleCustomersResponse], - ], + customer_service.ListAccessibleCustomersResponse | Awaitable[customer_service.ListAccessibleCustomersResponse], ]: ... @property def create_customer_client( self, ) -> Callable[ [customer_service.CreateCustomerClientRequest], - Union[ - customer_service.CreateCustomerClientResponse, - Awaitable[customer_service.CreateCustomerClientResponse], - ], + customer_service.CreateCustomerClientResponse | Awaitable[customer_service.CreateCustomerClientResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_service/transports/grpc.pyi index 6c99da8e7..d88554e0e 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerServiceGrpcTransport(CustomerServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi index 8c09a640b..22fa6d879 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import CustomerSkAdNetworkConversionValueSchemaServiceTran class CustomerSkAdNetworkConversionValueSchemaServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerSkAdNetworkConversionValueSchemaServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerSkAdNetworkConversionValueSchemaServiceTransport]: ... class CustomerSkAdNetworkConversionValueSchemaServiceClient( metaclass=CustomerSkAdNetworkConversionValueSchemaServiceClientMeta @@ -40,49 +40,42 @@ class CustomerSkAdNetworkConversionValueSchemaServiceClient( @staticmethod def parse_customer_sk_ad_network_conversion_value_schema_path( path: str, - ) -> Dict[str, str]: ... + ) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerSkAdNetworkConversionValueSchemaServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerSkAdNetworkConversionValueSchemaServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_sk_ad_network_conversion_value_schema( self, - request: Optional[ - Union[ - customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaRequest, - dict, - ] - ] = None, + request: customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse ): ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi index 775e5efc0..3b26948bd 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/base.pyi @@ -16,12 +16,12 @@ class CustomerSkAdNetworkConversionValueSchemaServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class CustomerSkAdNetworkConversionValueSchemaServiceTransport(abc.ABC): [ customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaRequest ], - Union[ - customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse, - Awaitable[ - customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse - ], - ], + customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse | Awaitable[customer_sk_ad_network_conversion_value_schema_service.MutateCustomerSkAdNetworkConversionValueSchemaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi index 89eceb978..9332a9ed9 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_sk_ad_network_conversion_value_schema_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class CustomerSkAdNetworkConversionValueSchemaServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/client.pyi index eca8241f6..6de76421b 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import CustomerUserAccessInvitationServiceTransport class CustomerUserAccessInvitationServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerUserAccessInvitationServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerUserAccessInvitationServiceTransport]: ... class CustomerUserAccessInvitationServiceClient( metaclass=CustomerUserAccessInvitationServiceClientMeta @@ -38,53 +38,44 @@ class CustomerUserAccessInvitationServiceClient( customer_id: str, invitation_id: str ) -> str: ... @staticmethod - def parse_customer_user_access_invitation_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_invitation_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, CustomerUserAccessInvitationServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerUserAccessInvitationServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_user_access_invitation( self, - request: Optional[ - Union[ - customer_user_access_invitation_service.MutateCustomerUserAccessInvitationRequest, - dict, - ] - ] = None, + request: customer_user_access_invitation_service.MutateCustomerUserAccessInvitationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_user_access_invitation_service.CustomerUserAccessInvitationOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_user_access_invitation_service.CustomerUserAccessInvitationOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse ): ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/transports/base.pyi index c1f893cfa..2fc73ca6e 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/transports/base.pyi @@ -16,12 +16,12 @@ class CustomerUserAccessInvitationServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class CustomerUserAccessInvitationServiceTransport(abc.ABC): [ customer_user_access_invitation_service.MutateCustomerUserAccessInvitationRequest ], - Union[ - customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse, - Awaitable[ - customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse - ], - ], + customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse | Awaitable[customer_user_access_invitation_service.MutateCustomerUserAccessInvitationResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/transports/grpc.pyi index 31bb98eb3..4875073f3 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_user_access_invitation_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class CustomerUserAccessInvitationServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/client.pyi index dcf769f16..ab2b7ab19 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomerUserAccessServiceTransport class CustomerUserAccessServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomerUserAccessServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomerUserAccessServiceTransport]: ... class CustomerUserAccessServiceClient(metaclass=CustomerUserAccessServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class CustomerUserAccessServiceClient(metaclass=CustomerUserAccessServiceClientM @staticmethod def customer_user_access_path(customer_id: str, user_id: str) -> str: ... @staticmethod - def parse_customer_user_access_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomerUserAccessServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomerUserAccessServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customer_user_access( self, - request: Optional[ - Union[customer_user_access_service.MutateCustomerUserAccessRequest, dict] - ] = None, + request: customer_user_access_service.MutateCustomerUserAccessRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operation: Optional[ - customer_user_access_service.CustomerUserAccessOperation - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operation: customer_user_access_service.CustomerUserAccessOperation | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customer_user_access_service.MutateCustomerUserAccessResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/transports/base.pyi index 1b2f0a2d8..4dfda0dac 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomerUserAccessServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomerUserAccessServiceTransport(abc.ABC): self, ) -> Callable[ [customer_user_access_service.MutateCustomerUserAccessRequest], - Union[ - customer_user_access_service.MutateCustomerUserAccessResponse, - Awaitable[customer_user_access_service.MutateCustomerUserAccessResponse], - ], + customer_user_access_service.MutateCustomerUserAccessResponse | Awaitable[customer_user_access_service.MutateCustomerUserAccessResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/transports/grpc.pyi index 98c1d34cf..159277d6d 100644 --- a/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customer_user_access_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomerUserAccessServiceGrpcTransport(CustomerUserAccessServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/client.pyi index 23022aa59..f0cdf3c07 100644 --- a/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import CustomizerAttributeServiceTransport class CustomizerAttributeServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[CustomizerAttributeServiceTransport]: ... + cls, label: str | None = None + ) -> type[CustomizerAttributeServiceTransport]: ... class CustomizerAttributeServiceClient(metaclass=CustomizerAttributeServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,46 +34,42 @@ class CustomizerAttributeServiceClient(metaclass=CustomizerAttributeServiceClien customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, CustomizerAttributeServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | CustomizerAttributeServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_customizer_attributes( self, - request: Optional[ - Union[customizer_attribute_service.MutateCustomizerAttributesRequest, dict] - ] = None, + request: customizer_attribute_service.MutateCustomizerAttributesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[customizer_attribute_service.CustomizerAttributeOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[customizer_attribute_service.CustomizerAttributeOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> customizer_attribute_service.MutateCustomizerAttributesResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/transports/base.pyi index c5ca9d5fa..1b9e4b46d 100644 --- a/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/transports/base.pyi @@ -14,12 +14,12 @@ class CustomizerAttributeServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class CustomizerAttributeServiceTransport(abc.ABC): self, ) -> Callable[ [customizer_attribute_service.MutateCustomizerAttributesRequest], - Union[ - customizer_attribute_service.MutateCustomizerAttributesResponse, - Awaitable[customizer_attribute_service.MutateCustomizerAttributesResponse], - ], + customizer_attribute_service.MutateCustomizerAttributesResponse | Awaitable[customizer_attribute_service.MutateCustomizerAttributesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/transports/grpc.pyi index d915e3d91..57123b492 100644 --- a/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/customizer_attribute_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class CustomizerAttributeServiceGrpcTransport(CustomizerAttributeServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/client.pyi index 5dfec6d38..bf7a3dee2 100644 --- a/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ExperimentArmServiceTransport class ExperimentArmServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ExperimentArmServiceTransport]: ... + cls, label: str | None = None + ) -> type[ExperimentArmServiceTransport]: ... class ExperimentArmServiceClient(metaclass=ExperimentArmServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class ExperimentArmServiceClient(metaclass=ExperimentArmServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_arm_path( customer_id: str, trial_id: str, trial_arm_id: str ) -> str: ... @staticmethod - def parse_experiment_arm_path(path: str) -> Dict[str, str]: ... + def parse_experiment_arm_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ExperimentArmServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ExperimentArmServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_experiment_arms( self, - request: Optional[ - Union[experiment_arm_service.MutateExperimentArmsRequest, dict] - ] = None, + request: experiment_arm_service.MutateExperimentArmsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[experiment_arm_service.ExperimentArmOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[experiment_arm_service.ExperimentArmOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> experiment_arm_service.MutateExperimentArmsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/transports/base.pyi index 591bdd7eb..838f8bada 100644 --- a/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/transports/base.pyi @@ -14,12 +14,12 @@ class ExperimentArmServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ExperimentArmServiceTransport(abc.ABC): self, ) -> Callable[ [experiment_arm_service.MutateExperimentArmsRequest], - Union[ - experiment_arm_service.MutateExperimentArmsResponse, - Awaitable[experiment_arm_service.MutateExperimentArmsResponse], - ], + experiment_arm_service.MutateExperimentArmsResponse | Awaitable[experiment_arm_service.MutateExperimentArmsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/transports/grpc.pyi index 778033032..e2636a4ac 100644 --- a/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/experiment_arm_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ExperimentArmServiceGrpcTransport(ExperimentArmServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/experiment_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/experiment_service/client.pyi index 971b46a29..62524ab82 100644 --- a/google-stubs/ads/googleads/v15/services/services/experiment_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/experiment_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import ExperimentServiceTransport class ExperimentServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ExperimentServiceTransport]: ... + cls, label: str | None = None + ) -> type[ExperimentServiceTransport]: ... class ExperimentServiceClient(metaclass=ExperimentServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,110 +34,96 @@ class ExperimentServiceClient(metaclass=ExperimentServiceClientMeta): @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ExperimentServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ExperimentServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_experiments( self, - request: Optional[ - Union[experiment_service.MutateExperimentsRequest, dict] - ] = None, + request: experiment_service.MutateExperimentsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[experiment_service.ExperimentOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[experiment_service.ExperimentOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> experiment_service.MutateExperimentsResponse: ... def end_experiment( self, - request: Optional[Union[experiment_service.EndExperimentRequest, dict]] = None, + request: experiment_service.EndExperimentRequest | dict | None = None, *, - experiment: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + experiment: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> None: ... def list_experiment_async_errors( self, - request: Optional[ - Union[experiment_service.ListExperimentAsyncErrorsRequest, dict] - ] = None, + request: experiment_service.ListExperimentAsyncErrorsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.ListExperimentAsyncErrorsPager: ... def graduate_experiment( self, - request: Optional[ - Union[experiment_service.GraduateExperimentRequest, dict] - ] = None, + request: experiment_service.GraduateExperimentRequest | dict | None = None, *, - experiment: Optional[str] = None, - campaign_budget_mappings: Optional[ - MutableSequence[experiment_service.CampaignBudgetMapping] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + experiment: str | None = None, + campaign_budget_mappings: MutableSequence[experiment_service.CampaignBudgetMapping] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> None: ... def schedule_experiment( self, - request: Optional[ - Union[experiment_service.ScheduleExperimentRequest, dict] - ] = None, + request: experiment_service.ScheduleExperimentRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... def promote_experiment( self, - request: Optional[ - Union[experiment_service.PromoteExperimentRequest, dict] - ] = None, + request: experiment_service.PromoteExperimentRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... diff --git a/google-stubs/ads/googleads/v15/services/services/experiment_service/pagers.pyi b/google-stubs/ads/googleads/v15/services/services/experiment_service/pagers.pyi index 45ccf7794..adc9a5843 100644 --- a/google-stubs/ads/googleads/v15/services/services/experiment_service/pagers.pyi +++ b/google-stubs/ads/googleads/v15/services/services/experiment_service/pagers.pyi @@ -12,7 +12,7 @@ class ListExperimentAsyncErrorsPager: method: Callable[..., experiment_service.ListExperimentAsyncErrorsResponse], request: experiment_service.ListExperimentAsyncErrorsRequest, response: experiment_service.ListExperimentAsyncErrorsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/experiment_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/experiment_service/transports/base.pyi index 736daa3cf..de7a437c4 100644 --- a/google-stubs/ads/googleads/v15/services/services/experiment_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/experiment_service/transports/base.pyi @@ -16,12 +16,12 @@ class ExperimentServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,46 +32,40 @@ class ExperimentServiceTransport(abc.ABC): self, ) -> Callable[ [experiment_service.MutateExperimentsRequest], - Union[ - experiment_service.MutateExperimentsResponse, - Awaitable[experiment_service.MutateExperimentsResponse], - ], + experiment_service.MutateExperimentsResponse | Awaitable[experiment_service.MutateExperimentsResponse], ]: ... @property def end_experiment( self, ) -> Callable[ [experiment_service.EndExperimentRequest], - Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]], + empty_pb2.Empty | Awaitable[empty_pb2.Empty], ]: ... @property def list_experiment_async_errors( self, ) -> Callable[ [experiment_service.ListExperimentAsyncErrorsRequest], - Union[ - experiment_service.ListExperimentAsyncErrorsResponse, - Awaitable[experiment_service.ListExperimentAsyncErrorsResponse], - ], + experiment_service.ListExperimentAsyncErrorsResponse | Awaitable[experiment_service.ListExperimentAsyncErrorsResponse], ]: ... @property def graduate_experiment( self, ) -> Callable[ [experiment_service.GraduateExperimentRequest], - Union[empty_pb2.Empty, Awaitable[empty_pb2.Empty]], + empty_pb2.Empty | Awaitable[empty_pb2.Empty], ]: ... @property def schedule_experiment( self, ) -> Callable[ [experiment_service.ScheduleExperimentRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... @property def promote_experiment( self, ) -> Callable[ [experiment_service.PromoteExperimentRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/experiment_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/experiment_service/transports/grpc.pyi index 2e4f64064..70541fb24 100644 --- a/google-stubs/ads/googleads/v15/services/services/experiment_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/experiment_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class ExperimentServiceGrpcTransport(ExperimentServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/client.pyi index b29292b15..1f02390fc 100644 --- a/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ExtensionFeedItemServiceTransport class ExtensionFeedItemServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ExtensionFeedItemServiceTransport]: ... + cls, label: str | None = None + ) -> type[ExtensionFeedItemServiceTransport]: ... class ExtensionFeedItemServiceClient(metaclass=ExtensionFeedItemServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,62 +32,58 @@ class ExtensionFeedItemServiceClient(metaclass=ExtensionFeedItemServiceClientMet @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ExtensionFeedItemServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ExtensionFeedItemServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_extension_feed_items( self, - request: Optional[ - Union[extension_feed_item_service.MutateExtensionFeedItemsRequest, dict] - ] = None, + request: extension_feed_item_service.MutateExtensionFeedItemsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[extension_feed_item_service.ExtensionFeedItemOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[extension_feed_item_service.ExtensionFeedItemOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> extension_feed_item_service.MutateExtensionFeedItemsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/transports/base.pyi index b20ac8bff..4ec1258e0 100644 --- a/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/transports/base.pyi @@ -14,12 +14,12 @@ class ExtensionFeedItemServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class ExtensionFeedItemServiceTransport(abc.ABC): self, ) -> Callable[ [extension_feed_item_service.MutateExtensionFeedItemsRequest], - Union[ - extension_feed_item_service.MutateExtensionFeedItemsResponse, - Awaitable[extension_feed_item_service.MutateExtensionFeedItemsResponse], - ], + extension_feed_item_service.MutateExtensionFeedItemsResponse | Awaitable[extension_feed_item_service.MutateExtensionFeedItemsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/transports/grpc.pyi index c944f20a8..816f0901f 100644 --- a/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/extension_feed_item_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ExtensionFeedItemServiceGrpcTransport(ExtensionFeedItemServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_service/client.pyi index a4216969b..395d26b38 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemServiceTransport class FeedItemServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemServiceTransport]: ... class FeedItemServiceClient(metaclass=FeedItemServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,48 +32,46 @@ class FeedItemServiceClient(metaclass=FeedItemServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_items( self, - request: Optional[Union[feed_item_service.MutateFeedItemsRequest, dict]] = None, + request: feed_item_service.MutateFeedItemsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_service.FeedItemOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_service.FeedItemOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_service.MutateFeedItemsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_service/transports/base.pyi index f18442c87..240b9e9fa 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_service.MutateFeedItemsRequest], - Union[ - feed_item_service.MutateFeedItemsResponse, - Awaitable[feed_item_service.MutateFeedItemsResponse], - ], + feed_item_service.MutateFeedItemsResponse | Awaitable[feed_item_service.MutateFeedItemsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_service/transports/grpc.pyi index 3c5c53c23..32b7e2ea2 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemServiceGrpcTransport(FeedItemServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/client.pyi index 3a0348a3b..b23aeb5f7 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemSetLinkServiceTransport class FeedItemSetLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemSetLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemSetLinkServiceTransport]: ... class FeedItemSetLinkServiceClient(metaclass=FeedItemSetLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,58 +32,54 @@ class FeedItemSetLinkServiceClient(metaclass=FeedItemSetLinkServiceClientMeta): @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_link_path( customer_id: str, feed_id: str, feed_item_set_id: str, feed_item_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemSetLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemSetLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_item_set_links( self, - request: Optional[ - Union[feed_item_set_link_service.MutateFeedItemSetLinksRequest, dict] - ] = None, + request: feed_item_set_link_service.MutateFeedItemSetLinksRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_set_link_service.FeedItemSetLinkOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_set_link_service.FeedItemSetLinkOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_set_link_service.MutateFeedItemSetLinksResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/transports/base.pyi index aeba9342a..868bccb0d 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemSetLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemSetLinkServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_set_link_service.MutateFeedItemSetLinksRequest], - Union[ - feed_item_set_link_service.MutateFeedItemSetLinksResponse, - Awaitable[feed_item_set_link_service.MutateFeedItemSetLinksResponse], - ], + feed_item_set_link_service.MutateFeedItemSetLinksResponse | Awaitable[feed_item_set_link_service.MutateFeedItemSetLinksResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/transports/grpc.pyi index a601acbc9..0d3e11e81 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_set_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemSetLinkServiceGrpcTransport(FeedItemSetLinkServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/client.pyi index 6e6a5438c..2804a1115 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemSetServiceTransport class FeedItemSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemSetServiceTransport]: ... class FeedItemSetServiceClient(metaclass=FeedItemSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class FeedItemSetServiceClient(metaclass=FeedItemSetServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_item_sets( self, - request: Optional[ - Union[feed_item_set_service.MutateFeedItemSetsRequest, dict] - ] = None, + request: feed_item_set_service.MutateFeedItemSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_set_service.FeedItemSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_set_service.FeedItemSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_set_service.MutateFeedItemSetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/transports/base.pyi index 25eb51374..70d784051 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemSetServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_set_service.MutateFeedItemSetsRequest], - Union[ - feed_item_set_service.MutateFeedItemSetsResponse, - Awaitable[feed_item_set_service.MutateFeedItemSetsResponse], - ], + feed_item_set_service.MutateFeedItemSetsResponse | Awaitable[feed_item_set_service.MutateFeedItemSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/transports/grpc.pyi index 97908cee6..350b2cf98 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemSetServiceGrpcTransport(FeedItemSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/client.pyi index f7ec5a8f3..2458b8c90 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedItemTargetServiceTransport class FeedItemTargetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedItemTargetServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedItemTargetServiceTransport]: ... class FeedItemTargetServiceClient(metaclass=FeedItemTargetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,15 +32,15 @@ class FeedItemTargetServiceClient(metaclass=FeedItemTargetServiceClientMeta): @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_target_path( customer_id: str, @@ -50,50 +50,46 @@ class FeedItemTargetServiceClient(metaclass=FeedItemTargetServiceClientMeta): feed_item_target_id: str, ) -> str: ... @staticmethod - def parse_feed_item_target_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_target_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedItemTargetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedItemTargetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_item_targets( self, - request: Optional[ - Union[feed_item_target_service.MutateFeedItemTargetsRequest, dict] - ] = None, + request: feed_item_target_service.MutateFeedItemTargetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_item_target_service.FeedItemTargetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_item_target_service.FeedItemTargetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_item_target_service.MutateFeedItemTargetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/transports/base.pyi index 9ebbb0d28..8e477d2b4 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedItemTargetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedItemTargetServiceTransport(abc.ABC): self, ) -> Callable[ [feed_item_target_service.MutateFeedItemTargetsRequest], - Union[ - feed_item_target_service.MutateFeedItemTargetsResponse, - Awaitable[feed_item_target_service.MutateFeedItemTargetsResponse], - ], + feed_item_target_service.MutateFeedItemTargetsResponse | Awaitable[feed_item_target_service.MutateFeedItemTargetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/transports/grpc.pyi index 80344cb61..6682e39c3 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_item_target_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedItemTargetServiceGrpcTransport(FeedItemTargetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/client.pyi index a7ac6eed5..4cf70c003 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedMappingServiceTransport class FeedMappingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedMappingServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedMappingServiceTransport]: ... class FeedMappingServiceClient(metaclass=FeedMappingServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,52 +32,48 @@ class FeedMappingServiceClient(metaclass=FeedMappingServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_mapping_path( customer_id: str, feed_id: str, feed_mapping_id: str ) -> str: ... @staticmethod - def parse_feed_mapping_path(path: str) -> Dict[str, str]: ... + def parse_feed_mapping_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedMappingServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedMappingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feed_mappings( self, - request: Optional[ - Union[feed_mapping_service.MutateFeedMappingsRequest, dict] - ] = None, + request: feed_mapping_service.MutateFeedMappingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[feed_mapping_service.FeedMappingOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_mapping_service.FeedMappingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_mapping_service.MutateFeedMappingsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/transports/base.pyi index 21409ddbe..5931bf11c 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedMappingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedMappingServiceTransport(abc.ABC): self, ) -> Callable[ [feed_mapping_service.MutateFeedMappingsRequest], - Union[ - feed_mapping_service.MutateFeedMappingsResponse, - Awaitable[feed_mapping_service.MutateFeedMappingsResponse], - ], + feed_mapping_service.MutateFeedMappingsResponse | Awaitable[feed_mapping_service.MutateFeedMappingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/transports/grpc.pyi index 66b678fd5..a2cccb37b 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_mapping_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedMappingServiceGrpcTransport(FeedMappingServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/feed_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/feed_service/client.pyi index c39133d9d..04e32ab80 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import FeedServiceTransport class FeedServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[FeedServiceTransport]: ... + cls, label: str | None = None + ) -> type[FeedServiceTransport]: ... class FeedServiceClient(metaclass=FeedServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,42 +32,42 @@ class FeedServiceClient(metaclass=FeedServiceClientMeta): @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, FeedServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | FeedServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_feeds( self, - request: Optional[Union[feed_service.MutateFeedsRequest, dict]] = None, + request: feed_service.MutateFeedsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[feed_service.FeedOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[feed_service.FeedOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> feed_service.MutateFeedsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/feed_service/transports/base.pyi index a5bd0462f..63208a667 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_service/transports/base.pyi @@ -14,12 +14,12 @@ class FeedServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class FeedServiceTransport(abc.ABC): self, ) -> Callable[ [feed_service.MutateFeedsRequest], - Union[ - feed_service.MutateFeedsResponse, - Awaitable[feed_service.MutateFeedsResponse], - ], + feed_service.MutateFeedsResponse | Awaitable[feed_service.MutateFeedsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/feed_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/feed_service/transports/grpc.pyi index 09c9ff25a..2621338f9 100644 --- a/google-stubs/ads/googleads/v15/services/services/feed_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/feed_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class FeedServiceGrpcTransport(FeedServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/client.pyi index 00b1bd139..4a72d8186 100644 --- a/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import GeoTargetConstantServiceTransport class GeoTargetConstantServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[GeoTargetConstantServiceTransport]: ... + cls, label: str | None = None + ) -> type[GeoTargetConstantServiceTransport]: ... class GeoTargetConstantServiceClient(metaclass=GeoTargetConstantServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,42 +32,40 @@ class GeoTargetConstantServiceClient(metaclass=GeoTargetConstantServiceClientMet @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, GeoTargetConstantServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | GeoTargetConstantServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_geo_target_constants( self, - request: Optional[ - Union[geo_target_constant_service.SuggestGeoTargetConstantsRequest, dict] - ] = None, + request: geo_target_constant_service.SuggestGeoTargetConstantsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> geo_target_constant_service.SuggestGeoTargetConstantsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/transports/base.pyi index 72265c1b3..6ef4d594b 100644 --- a/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/transports/base.pyi @@ -14,12 +14,12 @@ class GeoTargetConstantServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class GeoTargetConstantServiceTransport(abc.ABC): self, ) -> Callable[ [geo_target_constant_service.SuggestGeoTargetConstantsRequest], - Union[ - geo_target_constant_service.SuggestGeoTargetConstantsResponse, - Awaitable[geo_target_constant_service.SuggestGeoTargetConstantsResponse], - ], + geo_target_constant_service.SuggestGeoTargetConstantsResponse | Awaitable[geo_target_constant_service.SuggestGeoTargetConstantsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/transports/grpc.pyi index fc1bb664d..ed4aa150e 100644 --- a/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/geo_target_constant_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class GeoTargetConstantServiceGrpcTransport(GeoTargetConstantServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/client.pyi index 1c82f0c19..6e9baaf1d 100644 --- a/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import GoogleAdsFieldServiceTransport class GoogleAdsFieldServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[GoogleAdsFieldServiceTransport]: ... + cls, label: str | None = None + ) -> type[GoogleAdsFieldServiceTransport]: ... class GoogleAdsFieldServiceClient(metaclass=GoogleAdsFieldServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,54 +34,50 @@ class GoogleAdsFieldServiceClient(metaclass=GoogleAdsFieldServiceClientMeta): @staticmethod def google_ads_field_path(google_ads_field: str) -> str: ... @staticmethod - def parse_google_ads_field_path(path: str) -> Dict[str, str]: ... + def parse_google_ads_field_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, GoogleAdsFieldServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | GoogleAdsFieldServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def get_google_ads_field( self, - request: Optional[ - Union[google_ads_field_service.GetGoogleAdsFieldRequest, dict] - ] = None, + request: google_ads_field_service.GetGoogleAdsFieldRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> google_ads_field.GoogleAdsField: ... def search_google_ads_fields( self, - request: Optional[ - Union[google_ads_field_service.SearchGoogleAdsFieldsRequest, dict] - ] = None, + request: google_ads_field_service.SearchGoogleAdsFieldsRequest | dict | None = None, *, - query: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + query: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.SearchGoogleAdsFieldsPager: ... diff --git a/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/pagers.pyi b/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/pagers.pyi index 276b345bb..976b9083e 100644 --- a/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/pagers.pyi +++ b/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/pagers.pyi @@ -13,7 +13,7 @@ class SearchGoogleAdsFieldsPager: method: Callable[..., google_ads_field_service.SearchGoogleAdsFieldsResponse], request: google_ads_field_service.SearchGoogleAdsFieldsRequest, response: google_ads_field_service.SearchGoogleAdsFieldsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/transports/base.pyi index 1ad547173..ab361c8c2 100644 --- a/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/transports/base.pyi @@ -15,12 +15,12 @@ class GoogleAdsFieldServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -29,17 +29,12 @@ class GoogleAdsFieldServiceTransport(abc.ABC): self, ) -> Callable[ [google_ads_field_service.GetGoogleAdsFieldRequest], - Union[ - google_ads_field.GoogleAdsField, Awaitable[google_ads_field.GoogleAdsField] - ], + google_ads_field.GoogleAdsField | Awaitable[google_ads_field.GoogleAdsField], ]: ... @property def search_google_ads_fields( self, ) -> Callable[ [google_ads_field_service.SearchGoogleAdsFieldsRequest], - Union[ - google_ads_field_service.SearchGoogleAdsFieldsResponse, - Awaitable[google_ads_field_service.SearchGoogleAdsFieldsResponse], - ], + google_ads_field_service.SearchGoogleAdsFieldsResponse | Awaitable[google_ads_field_service.SearchGoogleAdsFieldsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/transports/grpc.pyi index 554302b50..cfc256177 100644 --- a/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/google_ads_field_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class GoogleAdsFieldServiceGrpcTransport(GoogleAdsFieldServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/google_ads_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/google_ads_service/client.pyi index 440e69654..23074dfd7 100644 --- a/google-stubs/ads/googleads/v15/services/services/google_ads_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/google_ads_service/client.pyi @@ -24,8 +24,8 @@ from .transports.base import GoogleAdsServiceTransport class GoogleAdsServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[GoogleAdsServiceTransport]: ... + cls, label: str | None = None + ) -> type[GoogleAdsServiceTransport]: ... class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): DEFAULT_ENDPOINT: str @@ -44,33 +44,33 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): customer_id: str, bidding_strategy_id: str ) -> str: ... @staticmethod - def parse_accessible_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_accessible_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def account_budget_path(customer_id: str, account_budget_id: str) -> str: ... @staticmethod - def parse_account_budget_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_path(path: str) -> dict[str, str]: ... @staticmethod def account_budget_proposal_path( customer_id: str, account_budget_proposal_id: str ) -> str: ... @staticmethod - def parse_account_budget_proposal_path(path: str) -> Dict[str, str]: ... + def parse_account_budget_proposal_path(path: str) -> dict[str, str]: ... @staticmethod def account_link_path(customer_id: str, account_link_id: str) -> str: ... @staticmethod - def parse_account_link_path(path: str) -> Dict[str, str]: ... + def parse_account_link_path(path: str) -> dict[str, str]: ... @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_path(customer_id: str, ad_group_id: str) -> str: ... @staticmethod - def parse_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_path(customer_id: str, ad_group_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_group_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_asset_combination_view_path( customer_id: str, @@ -80,49 +80,49 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): asset_combination_id_high: str, ) -> str: ... @staticmethod - def parse_ad_group_ad_asset_combination_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_asset_combination_view_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_asset_view_path( customer_id: str, ad_group_id: str, ad_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_ad_asset_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_asset_view_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_ad_label_path( customer_id: str, ad_group_id: str, ad_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_ad_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_ad_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_path( customer_id: str, ad_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_ad_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_asset_set_path( customer_id: str, ad_group_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_ad_group_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_audience_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_audience_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_audience_view_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_bid_modifier_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_customizer_path( customer_id: str, @@ -131,13 +131,13 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): customizer_attribute_id: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_label_path( customer_id: str, ad_group_id: str, criterion_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_criterion_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_criterion_simulation_path( customer_id: str, @@ -149,29 +149,29 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_ad_group_criterion_simulation_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_criterion_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_customizer_path( customer_id: str, ad_group_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_ad_group_customizer_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_extension_setting_path( customer_id: str, ad_group_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_ad_group_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_feed_path(customer_id: str, ad_group_id: str, feed_id: str) -> str: ... @staticmethod - def parse_ad_group_feed_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_feed_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_label_path( customer_id: str, ad_group_id: str, label_id: str ) -> str: ... @staticmethod - def parse_ad_group_label_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_label_path(path: str) -> dict[str, str]: ... @staticmethod def ad_group_simulation_path( customer_id: str, @@ -182,25 +182,25 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_ad_group_simulation_path(path: str) -> Dict[str, str]: ... + def parse_ad_group_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def ad_parameter_path( customer_id: str, ad_group_id: str, criterion_id: str, parameter_index: str ) -> str: ... @staticmethod - def parse_ad_parameter_path(path: str) -> Dict[str, str]: ... + def parse_ad_parameter_path(path: str) -> dict[str, str]: ... @staticmethod def ad_schedule_view_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_ad_schedule_view_path(path: str) -> Dict[str, str]: ... + def parse_ad_schedule_view_path(path: str) -> dict[str, str]: ... @staticmethod def age_range_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_age_range_view_path(path: str) -> Dict[str, str]: ... + def parse_age_range_view_path(path: str) -> dict[str, str]: ... @staticmethod def android_privacy_shared_key_google_ad_group_path( customer_id: str, @@ -213,7 +213,7 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): @staticmethod def parse_android_privacy_shared_key_google_ad_group_path( path: str, - ) -> Dict[str, str]: ... + ) -> dict[str, str]: ... @staticmethod def android_privacy_shared_key_google_campaign_path( customer_id: str, @@ -224,7 +224,7 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): @staticmethod def parse_android_privacy_shared_key_google_campaign_path( path: str, - ) -> Dict[str, str]: ... + ) -> dict[str, str]: ... @staticmethod def android_privacy_shared_key_google_network_type_path( customer_id: str, @@ -236,87 +236,87 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): @staticmethod def parse_android_privacy_shared_key_google_network_type_path( path: str, - ) -> Dict[str, str]: ... + ) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_field_type_view_path(customer_id: str, field_type: str) -> str: ... @staticmethod - def parse_asset_field_type_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_field_type_view_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_path(customer_id: str, asset_group_id: str) -> str: ... @staticmethod - def parse_asset_group_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_asset_path( customer_id: str, asset_group_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_asset_group_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_listing_group_filter_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_listing_group_filter_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_listing_group_filter_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_product_group_view_path( customer_id: str, asset_group_id: str, listing_group_filter_id: str ) -> str: ... @staticmethod - def parse_asset_group_product_group_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_product_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_signal_path( customer_id: str, asset_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_asset_group_signal_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_signal_path(path: str) -> dict[str, str]: ... @staticmethod def asset_group_top_combination_view_path( customer_id: str, asset_group_id: str, asset_combination_category: str ) -> str: ... @staticmethod - def parse_asset_group_top_combination_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_group_top_combination_view_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_asset_path( customer_id: str, asset_set_id: str, asset_id: str ) -> str: ... @staticmethod - def parse_asset_set_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_asset_path(path: str) -> dict[str, str]: ... @staticmethod def asset_set_type_view_path(customer_id: str, asset_set_type: str) -> str: ... @staticmethod - def parse_asset_set_type_view_path(path: str) -> Dict[str, str]: ... + def parse_asset_set_type_view_path(path: str) -> dict[str, str]: ... @staticmethod def audience_path(customer_id: str, audience_id: str) -> str: ... @staticmethod - def parse_audience_path(path: str) -> Dict[str, str]: ... + def parse_audience_path(path: str) -> dict[str, str]: ... @staticmethod def batch_job_path(customer_id: str, batch_job_id: str) -> str: ... @staticmethod - def parse_batch_job_path(path: str) -> Dict[str, str]: ... + def parse_batch_job_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_data_exclusion_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_data_exclusion_path(path: str) -> Dict[str, str]: ... + def parse_bidding_data_exclusion_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_seasonality_adjustment_path( customer_id: str, seasonality_event_id: str ) -> str: ... @staticmethod - def parse_bidding_seasonality_adjustment_path(path: str) -> Dict[str, str]: ... + def parse_bidding_seasonality_adjustment_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_path(customer_id: str, bidding_strategy_id: str) -> str: ... @staticmethod - def parse_bidding_strategy_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_path(path: str) -> dict[str, str]: ... @staticmethod def bidding_strategy_simulation_path( customer_id: str, @@ -327,107 +327,107 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_bidding_strategy_simulation_path(path: str) -> Dict[str, str]: ... + def parse_bidding_strategy_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def billing_setup_path(customer_id: str, billing_setup_id: str) -> str: ... @staticmethod - def parse_billing_setup_path(path: str) -> Dict[str, str]: ... + def parse_billing_setup_path(path: str) -> dict[str, str]: ... @staticmethod def call_view_path(customer_id: str, call_detail_id: str) -> str: ... @staticmethod - def parse_call_view_path(path: str) -> Dict[str, str]: ... + def parse_call_view_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_path( customer_id: str, campaign_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_campaign_asset_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_asset_set_path( customer_id: str, campaign_id: str, asset_set_id: str ) -> str: ... @staticmethod - def parse_campaign_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_audience_view_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_audience_view_path(path: str) -> Dict[str, str]: ... + def parse_campaign_audience_view_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_bid_modifier_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_bid_modifier_path(path: str) -> Dict[str, str]: ... + def parse_campaign_bid_modifier_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_budget_path(customer_id: str, campaign_budget_id: str) -> str: ... @staticmethod - def parse_campaign_budget_path(path: str) -> Dict[str, str]: ... + def parse_campaign_budget_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_conversion_goal_path( customer_id: str, campaign_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_campaign_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_criterion_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_campaign_criterion_path(path: str) -> Dict[str, str]: ... + def parse_campaign_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_customizer_path( customer_id: str, campaign_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_campaign_customizer_path(path: str) -> Dict[str, str]: ... + def parse_campaign_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_draft_path( customer_id: str, base_campaign_id: str, draft_id: str ) -> str: ... @staticmethod - def parse_campaign_draft_path(path: str) -> Dict[str, str]: ... + def parse_campaign_draft_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_extension_setting_path( customer_id: str, campaign_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_campaign_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_campaign_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_feed_path(customer_id: str, campaign_id: str, feed_id: str) -> str: ... @staticmethod - def parse_campaign_feed_path(path: str) -> Dict[str, str]: ... + def parse_campaign_feed_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_group_path(customer_id: str, campaign_group_id: str) -> str: ... @staticmethod - def parse_campaign_group_path(path: str) -> Dict[str, str]: ... + def parse_campaign_group_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_label_path( customer_id: str, campaign_id: str, label_id: str ) -> str: ... @staticmethod - def parse_campaign_label_path(path: str) -> Dict[str, str]: ... + def parse_campaign_label_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_lifecycle_goal_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_lifecycle_goal_path(path: str) -> Dict[str, str]: ... + def parse_campaign_lifecycle_goal_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_search_term_insight_path( customer_id: str, campaign_id: str, cluster_id: str ) -> str: ... @staticmethod - def parse_campaign_search_term_insight_path(path: str) -> Dict[str, str]: ... + def parse_campaign_search_term_insight_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_shared_set_path( customer_id: str, campaign_id: str, shared_set_id: str ) -> str: ... @staticmethod - def parse_campaign_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_campaign_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def campaign_simulation_path( customer_id: str, @@ -438,189 +438,189 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): end_date: str, ) -> str: ... @staticmethod - def parse_campaign_simulation_path(path: str) -> Dict[str, str]: ... + def parse_campaign_simulation_path(path: str) -> dict[str, str]: ... @staticmethod def carrier_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_carrier_constant_path(path: str) -> Dict[str, str]: ... + def parse_carrier_constant_path(path: str) -> dict[str, str]: ... @staticmethod def change_event_path( customer_id: str, timestamp_micros: str, command_index: str, mutate_index: str ) -> str: ... @staticmethod - def parse_change_event_path(path: str) -> Dict[str, str]: ... + def parse_change_event_path(path: str) -> dict[str, str]: ... @staticmethod def change_status_path(customer_id: str, change_status_id: str) -> str: ... @staticmethod - def parse_change_status_path(path: str) -> Dict[str, str]: ... + def parse_change_status_path(path: str) -> dict[str, str]: ... @staticmethod def click_view_path(customer_id: str, date: str, gclid: str) -> str: ... @staticmethod - def parse_click_view_path(path: str) -> Dict[str, str]: ... + def parse_click_view_path(path: str) -> dict[str, str]: ... @staticmethod def combined_audience_path(customer_id: str, combined_audience_id: str) -> str: ... @staticmethod - def parse_combined_audience_path(path: str) -> Dict[str, str]: ... + def parse_combined_audience_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_custom_variable_path( customer_id: str, conversion_custom_variable_id: str ) -> str: ... @staticmethod - def parse_conversion_custom_variable_path(path: str) -> Dict[str, str]: ... + def parse_conversion_custom_variable_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_goal_campaign_config_path( customer_id: str, campaign_id: str ) -> str: ... @staticmethod - def parse_conversion_goal_campaign_config_path(path: str) -> Dict[str, str]: ... + def parse_conversion_goal_campaign_config_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_path( customer_id: str, conversion_value_rule_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_value_rule_set_path( customer_id: str, conversion_value_rule_set_id: str ) -> str: ... @staticmethod - def parse_conversion_value_rule_set_path(path: str) -> Dict[str, str]: ... + def parse_conversion_value_rule_set_path(path: str) -> dict[str, str]: ... @staticmethod def currency_constant_path(code: str) -> str: ... @staticmethod - def parse_currency_constant_path(path: str) -> Dict[str, str]: ... + def parse_currency_constant_path(path: str) -> dict[str, str]: ... @staticmethod def custom_audience_path(customer_id: str, custom_audience_id: str) -> str: ... @staticmethod - def parse_custom_audience_path(path: str) -> Dict[str, str]: ... + def parse_custom_audience_path(path: str) -> dict[str, str]: ... @staticmethod def custom_conversion_goal_path(customer_id: str, goal_id: str) -> str: ... @staticmethod - def parse_custom_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_custom_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_path( customer_id: str, asset_id: str, field_type: str ) -> str: ... @staticmethod - def parse_customer_asset_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_path(path: str) -> dict[str, str]: ... @staticmethod def customer_asset_set_path(customer_id: str, asset_set_id: str) -> str: ... @staticmethod - def parse_customer_asset_set_path(path: str) -> Dict[str, str]: ... + def parse_customer_asset_set_path(path: str) -> dict[str, str]: ... @staticmethod def customer_client_path(customer_id: str, client_customer_id: str) -> str: ... @staticmethod - def parse_customer_client_path(path: str) -> Dict[str, str]: ... + def parse_customer_client_path(path: str) -> dict[str, str]: ... @staticmethod def customer_client_link_path( customer_id: str, client_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_client_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_client_link_path(path: str) -> dict[str, str]: ... @staticmethod def customer_conversion_goal_path( customer_id: str, category: str, source: str ) -> str: ... @staticmethod - def parse_customer_conversion_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_conversion_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_customizer_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customer_customizer_path(path: str) -> Dict[str, str]: ... + def parse_customer_customizer_path(path: str) -> dict[str, str]: ... @staticmethod def customer_extension_setting_path( customer_id: str, extension_type: str ) -> str: ... @staticmethod - def parse_customer_extension_setting_path(path: str) -> Dict[str, str]: ... + def parse_customer_extension_setting_path(path: str) -> dict[str, str]: ... @staticmethod def customer_feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_customer_feed_path(path: str) -> Dict[str, str]: ... + def parse_customer_feed_path(path: str) -> dict[str, str]: ... @staticmethod def customer_label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_customer_label_path(path: str) -> Dict[str, str]: ... + def parse_customer_label_path(path: str) -> dict[str, str]: ... @staticmethod def customer_lifecycle_goal_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_lifecycle_goal_path(path: str) -> Dict[str, str]: ... + def parse_customer_lifecycle_goal_path(path: str) -> dict[str, str]: ... @staticmethod def customer_manager_link_path( customer_id: str, manager_customer_id: str, manager_link_id: str ) -> str: ... @staticmethod - def parse_customer_manager_link_path(path: str) -> Dict[str, str]: ... + def parse_customer_manager_link_path(path: str) -> dict[str, str]: ... @staticmethod def customer_negative_criterion_path( customer_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_customer_negative_criterion_path(path: str) -> Dict[str, str]: ... + def parse_customer_negative_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def customer_search_term_insight_path(customer_id: str, cluster_id: str) -> str: ... @staticmethod - def parse_customer_search_term_insight_path(path: str) -> Dict[str, str]: ... + def parse_customer_search_term_insight_path(path: str) -> dict[str, str]: ... @staticmethod def customer_user_access_path(customer_id: str, user_id: str) -> str: ... @staticmethod - def parse_customer_user_access_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_path(path: str) -> dict[str, str]: ... @staticmethod def customer_user_access_invitation_path( customer_id: str, invitation_id: str ) -> str: ... @staticmethod - def parse_customer_user_access_invitation_path(path: str) -> Dict[str, str]: ... + def parse_customer_user_access_invitation_path(path: str) -> dict[str, str]: ... @staticmethod def custom_interest_path(customer_id: str, custom_interest_id: str) -> str: ... @staticmethod - def parse_custom_interest_path(path: str) -> Dict[str, str]: ... + def parse_custom_interest_path(path: str) -> dict[str, str]: ... @staticmethod def customizer_attribute_path( customer_id: str, customizer_attribute_id: str ) -> str: ... @staticmethod - def parse_customizer_attribute_path(path: str) -> Dict[str, str]: ... + def parse_customizer_attribute_path(path: str) -> dict[str, str]: ... @staticmethod def detailed_demographic_path( customer_id: str, detailed_demographic_id: str ) -> str: ... @staticmethod - def parse_detailed_demographic_path(path: str) -> Dict[str, str]: ... + def parse_detailed_demographic_path(path: str) -> dict[str, str]: ... @staticmethod def detail_placement_view_path( customer_id: str, ad_group_id: str, base64_placement: str ) -> str: ... @staticmethod - def parse_detail_placement_view_path(path: str) -> Dict[str, str]: ... + def parse_detail_placement_view_path(path: str) -> dict[str, str]: ... @staticmethod def display_keyword_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_display_keyword_view_path(path: str) -> Dict[str, str]: ... + def parse_display_keyword_view_path(path: str) -> dict[str, str]: ... @staticmethod def distance_view_path( customer_id: str, placeholder_chain_id: str, distance_bucket: str ) -> str: ... @staticmethod - def parse_distance_view_path(path: str) -> Dict[str, str]: ... + def parse_distance_view_path(path: str) -> dict[str, str]: ... @staticmethod def domain_category_path( customer_id: str, campaign_id: str, base64_category: str, language_code: str ) -> str: ... @staticmethod - def parse_domain_category_path(path: str) -> Dict[str, str]: ... + def parse_domain_category_path(path: str) -> dict[str, str]: ... @staticmethod def dynamic_search_ads_search_term_view_path( customer_id: str, @@ -631,47 +631,47 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): page_url_fingerprint: str, ) -> str: ... @staticmethod - def parse_dynamic_search_ads_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_dynamic_search_ads_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def expanded_landing_page_view_path( customer_id: str, expanded_final_url_fingerprint: str ) -> str: ... @staticmethod - def parse_expanded_landing_page_view_path(path: str) -> Dict[str, str]: ... + def parse_expanded_landing_page_view_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_path(customer_id: str, trial_id: str) -> str: ... @staticmethod - def parse_experiment_path(path: str) -> Dict[str, str]: ... + def parse_experiment_path(path: str) -> dict[str, str]: ... @staticmethod def experiment_arm_path( customer_id: str, trial_id: str, trial_arm_id: str ) -> str: ... @staticmethod - def parse_experiment_arm_path(path: str) -> Dict[str, str]: ... + def parse_experiment_arm_path(path: str) -> dict[str, str]: ... @staticmethod def extension_feed_item_path(customer_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_extension_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_extension_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_path(customer_id: str, feed_id: str) -> str: ... @staticmethod - def parse_feed_path(path: str) -> Dict[str, str]: ... + def parse_feed_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_path(customer_id: str, feed_id: str, feed_item_id: str) -> str: ... @staticmethod - def parse_feed_item_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_path( customer_id: str, feed_id: str, feed_item_set_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_set_link_path( customer_id: str, feed_id: str, feed_item_set_id: str, feed_item_id: str ) -> str: ... @staticmethod - def parse_feed_item_set_link_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_set_link_path(path: str) -> dict[str, str]: ... @staticmethod def feed_item_target_path( customer_id: str, @@ -681,135 +681,135 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): feed_item_target_id: str, ) -> str: ... @staticmethod - def parse_feed_item_target_path(path: str) -> Dict[str, str]: ... + def parse_feed_item_target_path(path: str) -> dict[str, str]: ... @staticmethod def feed_mapping_path( customer_id: str, feed_id: str, feed_mapping_id: str ) -> str: ... @staticmethod - def parse_feed_mapping_path(path: str) -> Dict[str, str]: ... + def parse_feed_mapping_path(path: str) -> dict[str, str]: ... @staticmethod def feed_placeholder_view_path(customer_id: str, placeholder_type: str) -> str: ... @staticmethod - def parse_feed_placeholder_view_path(path: str) -> Dict[str, str]: ... + def parse_feed_placeholder_view_path(path: str) -> dict[str, str]: ... @staticmethod def gender_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_gender_view_path(path: str) -> Dict[str, str]: ... + def parse_gender_view_path(path: str) -> dict[str, str]: ... @staticmethod def geographic_view_path( customer_id: str, country_criterion_id: str, location_type: str ) -> str: ... @staticmethod - def parse_geographic_view_path(path: str) -> Dict[str, str]: ... + def parse_geographic_view_path(path: str) -> dict[str, str]: ... @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def group_placement_view_path( customer_id: str, ad_group_id: str, base64_placement: str ) -> str: ... @staticmethod - def parse_group_placement_view_path(path: str) -> Dict[str, str]: ... + def parse_group_placement_view_path(path: str) -> dict[str, str]: ... @staticmethod def hotel_group_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_hotel_group_view_path(path: str) -> Dict[str, str]: ... + def parse_hotel_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def hotel_performance_view_path(customer_id: str) -> str: ... @staticmethod - def parse_hotel_performance_view_path(path: str) -> Dict[str, str]: ... + def parse_hotel_performance_view_path(path: str) -> dict[str, str]: ... @staticmethod def hotel_reconciliation_path(customer_id: str, commission_id: str) -> str: ... @staticmethod - def parse_hotel_reconciliation_path(path: str) -> Dict[str, str]: ... + def parse_hotel_reconciliation_path(path: str) -> dict[str, str]: ... @staticmethod def income_range_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_income_range_view_path(path: str) -> Dict[str, str]: ... + def parse_income_range_view_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_path( customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_keyword_path( customer_id: str, keyword_plan_ad_group_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_keyword_path( customer_id: str, keyword_plan_campaign_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_theme_constant_path( express_category_id: str, express_sub_category_id: str ) -> str: ... @staticmethod - def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: ... + def parse_keyword_theme_constant_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_keyword_view_path(path: str) -> Dict[str, str]: ... + def parse_keyword_view_path(path: str) -> dict[str, str]: ... @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def landing_page_view_path( customer_id: str, unexpanded_final_url_fingerprint: str ) -> str: ... @staticmethod - def parse_landing_page_view_path(path: str) -> Dict[str, str]: ... + def parse_landing_page_view_path(path: str) -> dict[str, str]: ... @staticmethod def language_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_language_constant_path(path: str) -> Dict[str, str]: ... + def parse_language_constant_path(path: str) -> dict[str, str]: ... @staticmethod def lead_form_submission_data_path( customer_id: str, lead_form_user_submission_id: str ) -> str: ... @staticmethod - def parse_lead_form_submission_data_path(path: str) -> Dict[str, str]: ... + def parse_lead_form_submission_data_path(path: str) -> dict[str, str]: ... @staticmethod def life_event_path(customer_id: str, life_event_id: str) -> str: ... @staticmethod - def parse_life_event_path(path: str) -> Dict[str, str]: ... + def parse_life_event_path(path: str) -> dict[str, str]: ... @staticmethod def local_services_lead_path( customer_id: str, local_services_lead_id: str ) -> str: ... @staticmethod - def parse_local_services_lead_path(path: str) -> Dict[str, str]: ... + def parse_local_services_lead_path(path: str) -> dict[str, str]: ... @staticmethod def local_services_lead_conversation_path( customer_id: str, local_services_lead_conversation_id: str ) -> str: ... @staticmethod - def parse_local_services_lead_conversation_path(path: str) -> Dict[str, str]: ... + def parse_local_services_lead_conversation_path(path: str) -> dict[str, str]: ... @staticmethod def local_services_verification_artifact_path( customer_id: str, gls_verification_artifact_id: str @@ -817,31 +817,31 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): @staticmethod def parse_local_services_verification_artifact_path( path: str, - ) -> Dict[str, str]: ... + ) -> dict[str, str]: ... @staticmethod def location_view_path( customer_id: str, campaign_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_location_view_path(path: str) -> Dict[str, str]: ... + def parse_location_view_path(path: str) -> dict[str, str]: ... @staticmethod def managed_placement_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_managed_placement_view_path(path: str) -> Dict[str, str]: ... + def parse_managed_placement_view_path(path: str) -> dict[str, str]: ... @staticmethod def media_file_path(customer_id: str, media_file_id: str) -> str: ... @staticmethod - def parse_media_file_path(path: str) -> Dict[str, str]: ... + def parse_media_file_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_app_category_constant_path(mobile_app_category_id: str) -> str: ... @staticmethod - def parse_mobile_app_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_app_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def mobile_device_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_mobile_device_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_device_constant_path(path: str) -> dict[str, str]: ... @staticmethod def offline_conversion_upload_client_summary_path( customer_id: str, client: str @@ -849,220 +849,212 @@ class GoogleAdsServiceClient(metaclass=GoogleAdsServiceClientMeta): @staticmethod def parse_offline_conversion_upload_client_summary_path( path: str, - ) -> Dict[str, str]: ... + ) -> dict[str, str]: ... @staticmethod def offline_user_data_job_path( customer_id: str, offline_user_data_update_id: str ) -> str: ... @staticmethod - def parse_offline_user_data_job_path(path: str) -> Dict[str, str]: ... + def parse_offline_user_data_job_path(path: str) -> dict[str, str]: ... @staticmethod def operating_system_version_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_operating_system_version_constant_path(path: str) -> Dict[str, str]: ... + def parse_operating_system_version_constant_path(path: str) -> dict[str, str]: ... @staticmethod def paid_organic_search_term_view_path( customer_id: str, campaign_id: str, ad_group_id: str, base64_search_term: str ) -> str: ... @staticmethod - def parse_paid_organic_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_paid_organic_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def parental_status_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_parental_status_view_path(path: str) -> Dict[str, str]: ... + def parse_parental_status_view_path(path: str) -> dict[str, str]: ... @staticmethod def payments_account_path(customer_id: str, payments_account_id: str) -> str: ... @staticmethod - def parse_payments_account_path(path: str) -> Dict[str, str]: ... + def parse_payments_account_path(path: str) -> dict[str, str]: ... @staticmethod def per_store_view_path(customer_id: str, place_id: str) -> str: ... @staticmethod - def parse_per_store_view_path(path: str) -> Dict[str, str]: ... + def parse_per_store_view_path(path: str) -> dict[str, str]: ... @staticmethod def product_category_constant_path(level: str, category_id: str) -> str: ... @staticmethod - def parse_product_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_product_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def product_group_view_path( customer_id: str, adgroup_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_product_group_view_path(path: str) -> Dict[str, str]: ... + def parse_product_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def product_link_path(customer_id: str, product_link_id: str) -> str: ... @staticmethod - def parse_product_link_path(path: str) -> Dict[str, str]: ... + def parse_product_link_path(path: str) -> dict[str, str]: ... @staticmethod def product_link_invitation_path( customer_id: str, customer_invitation_id: str ) -> str: ... @staticmethod - def parse_product_link_invitation_path(path: str) -> Dict[str, str]: ... + def parse_product_link_invitation_path(path: str) -> dict[str, str]: ... @staticmethod def qualifying_question_path(qualifying_question_id: str) -> str: ... @staticmethod - def parse_qualifying_question_path(path: str) -> Dict[str, str]: ... + def parse_qualifying_question_path(path: str) -> dict[str, str]: ... @staticmethod def recommendation_path(customer_id: str, recommendation_id: str) -> str: ... @staticmethod - def parse_recommendation_path(path: str) -> Dict[str, str]: ... + def parse_recommendation_path(path: str) -> dict[str, str]: ... @staticmethod def recommendation_subscription_path( customer_id: str, recommendation_type: str ) -> str: ... @staticmethod - def parse_recommendation_subscription_path(path: str) -> Dict[str, str]: ... + def parse_recommendation_subscription_path(path: str) -> dict[str, str]: ... @staticmethod def remarketing_action_path( customer_id: str, remarketing_action_id: str ) -> str: ... @staticmethod - def parse_remarketing_action_path(path: str) -> Dict[str, str]: ... + def parse_remarketing_action_path(path: str) -> dict[str, str]: ... @staticmethod def search_term_view_path( customer_id: str, campaign_id: str, ad_group_id: str, query: str ) -> str: ... @staticmethod - def parse_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def shared_criterion_path( customer_id: str, shared_set_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_shared_criterion_path(path: str) -> Dict[str, str]: ... + def parse_shared_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def shopping_performance_view_path(customer_id: str) -> str: ... @staticmethod - def parse_shopping_performance_view_path(path: str) -> Dict[str, str]: ... + def parse_shopping_performance_view_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_search_term_view_path( customer_id: str, campaign_id: str, query: str ) -> str: ... @staticmethod - def parse_smart_campaign_search_term_view_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_search_term_view_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_setting_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_setting_path(path: str) -> dict[str, str]: ... @staticmethod def third_party_app_analytics_link_path( customer_id: str, customer_link_id: str ) -> str: ... @staticmethod - def parse_third_party_app_analytics_link_path(path: str) -> Dict[str, str]: ... + def parse_third_party_app_analytics_link_path(path: str) -> dict[str, str]: ... @staticmethod def topic_constant_path(topic_id: str) -> str: ... @staticmethod - def parse_topic_constant_path(path: str) -> Dict[str, str]: ... + def parse_topic_constant_path(path: str) -> dict[str, str]: ... @staticmethod def topic_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_topic_view_path(path: str) -> Dict[str, str]: ... + def parse_topic_view_path(path: str) -> dict[str, str]: ... @staticmethod def travel_activity_group_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_travel_activity_group_view_path(path: str) -> Dict[str, str]: ... + def parse_travel_activity_group_view_path(path: str) -> dict[str, str]: ... @staticmethod def travel_activity_performance_view_path(customer_id: str) -> str: ... @staticmethod - def parse_travel_activity_performance_view_path(path: str) -> Dict[str, str]: ... + def parse_travel_activity_performance_view_path(path: str) -> dict[str, str]: ... @staticmethod def user_interest_path(customer_id: str, user_interest_id: str) -> str: ... @staticmethod - def parse_user_interest_path(path: str) -> Dict[str, str]: ... + def parse_user_interest_path(path: str) -> dict[str, str]: ... @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def user_location_view_path( customer_id: str, country_criterion_id: str, is_targeting_location: str ) -> str: ... @staticmethod - def parse_user_location_view_path(path: str) -> Dict[str, str]: ... + def parse_user_location_view_path(path: str) -> dict[str, str]: ... @staticmethod def video_path(customer_id: str, video_id: str) -> str: ... @staticmethod - def parse_video_path(path: str) -> Dict[str, str]: ... + def parse_video_path(path: str) -> dict[str, str]: ... @staticmethod def webpage_view_path( customer_id: str, ad_group_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_webpage_view_path(path: str) -> Dict[str, str]: ... + def parse_webpage_view_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, GoogleAdsServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | GoogleAdsServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def search( self, - request: Optional[ - Union[google_ads_service.SearchGoogleAdsRequest, dict] - ] = None, + request: google_ads_service.SearchGoogleAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - query: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + query: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.SearchPager: ... def search_stream( self, - request: Optional[ - Union[google_ads_service.SearchGoogleAdsStreamRequest, dict] - ] = None, + request: google_ads_service.SearchGoogleAdsStreamRequest | dict | None = None, *, - customer_id: Optional[str] = None, - query: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + query: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> Iterable[google_ads_service.SearchGoogleAdsStreamResponse]: ... def mutate( self, - request: Optional[ - Union[google_ads_service.MutateGoogleAdsRequest, dict] - ] = None, + request: google_ads_service.MutateGoogleAdsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - mutate_operations: Optional[ - MutableSequence[google_ads_service.MutateOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + mutate_operations: MutableSequence[google_ads_service.MutateOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> google_ads_service.MutateGoogleAdsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/google_ads_service/pagers.pyi b/google-stubs/ads/googleads/v15/services/services/google_ads_service/pagers.pyi index 4288d2c9a..894d83d8b 100644 --- a/google-stubs/ads/googleads/v15/services/services/google_ads_service/pagers.pyi +++ b/google-stubs/ads/googleads/v15/services/services/google_ads_service/pagers.pyi @@ -10,7 +10,7 @@ class SearchPager: method: Callable[..., google_ads_service.SearchGoogleAdsResponse], request: google_ads_service.SearchGoogleAdsRequest, response: google_ads_service.SearchGoogleAdsResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/google_ads_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/google_ads_service/transports/base.pyi index fc474d80c..29452734a 100644 --- a/google-stubs/ads/googleads/v15/services/services/google_ads_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/google_ads_service/transports/base.pyi @@ -14,12 +14,12 @@ class GoogleAdsServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,28 +28,19 @@ class GoogleAdsServiceTransport(abc.ABC): self, ) -> Callable[ [google_ads_service.SearchGoogleAdsRequest], - Union[ - google_ads_service.SearchGoogleAdsResponse, - Awaitable[google_ads_service.SearchGoogleAdsResponse], - ], + google_ads_service.SearchGoogleAdsResponse | Awaitable[google_ads_service.SearchGoogleAdsResponse], ]: ... @property def search_stream( self, ) -> Callable[ [google_ads_service.SearchGoogleAdsStreamRequest], - Union[ - google_ads_service.SearchGoogleAdsStreamResponse, - Awaitable[google_ads_service.SearchGoogleAdsStreamResponse], - ], + google_ads_service.SearchGoogleAdsStreamResponse | Awaitable[google_ads_service.SearchGoogleAdsStreamResponse], ]: ... @property def mutate( self, ) -> Callable[ [google_ads_service.MutateGoogleAdsRequest], - Union[ - google_ads_service.MutateGoogleAdsResponse, - Awaitable[google_ads_service.MutateGoogleAdsResponse], - ], + google_ads_service.MutateGoogleAdsResponse | Awaitable[google_ads_service.MutateGoogleAdsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/google_ads_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/google_ads_service/transports/grpc.pyi index 523b252b2..56df73758 100644 --- a/google-stubs/ads/googleads/v15/services/services/google_ads_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/google_ads_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class GoogleAdsServiceGrpcTransport(GoogleAdsServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/invoice_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/invoice_service/client.pyi index eba9e3f9c..e4405b7a5 100644 --- a/google-stubs/ads/googleads/v15/services/services/invoice_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/invoice_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import InvoiceServiceTransport class InvoiceServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[InvoiceServiceTransport]: ... + cls, label: str | None = None + ) -> type[InvoiceServiceTransport]: ... class InvoiceServiceClient(metaclass=InvoiceServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,44 +33,44 @@ class InvoiceServiceClient(metaclass=InvoiceServiceClientMeta): @staticmethod def invoice_path(customer_id: str, invoice_id: str) -> str: ... @staticmethod - def parse_invoice_path(path: str) -> Dict[str, str]: ... + def parse_invoice_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, InvoiceServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | InvoiceServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_invoices( self, - request: Optional[Union[invoice_service.ListInvoicesRequest, dict]] = None, + request: invoice_service.ListInvoicesRequest | dict | None = None, *, - customer_id: Optional[str] = None, - billing_setup: Optional[str] = None, - issue_year: Optional[str] = None, - issue_month: Optional[month_of_year.MonthOfYearEnum.MonthOfYear] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + billing_setup: str | None = None, + issue_year: str | None = None, + issue_month: month_of_year.MonthOfYearEnum.MonthOfYear | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> invoice_service.ListInvoicesResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/invoice_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/invoice_service/transports/base.pyi index 2b8b42150..8d3754a41 100644 --- a/google-stubs/ads/googleads/v15/services/services/invoice_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/invoice_service/transports/base.pyi @@ -14,12 +14,12 @@ class InvoiceServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class InvoiceServiceTransport(abc.ABC): self, ) -> Callable[ [invoice_service.ListInvoicesRequest], - Union[ - invoice_service.ListInvoicesResponse, - Awaitable[invoice_service.ListInvoicesResponse], - ], + invoice_service.ListInvoicesResponse | Awaitable[invoice_service.ListInvoicesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/invoice_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/invoice_service/transports/grpc.pyi index 1477afa9c..a7bfab0f8 100644 --- a/google-stubs/ads/googleads/v15/services/services/invoice_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/invoice_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class InvoiceServiceGrpcTransport(InvoiceServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/client.pyi index 631bed548..c32be8e37 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import KeywordPlanAdGroupKeywordServiceTransport class KeywordPlanAdGroupKeywordServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanAdGroupKeywordServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanAdGroupKeywordServiceTransport]: ... class KeywordPlanAdGroupKeywordServiceClient( metaclass=KeywordPlanAdGroupKeywordServiceClientMeta @@ -38,61 +38,50 @@ class KeywordPlanAdGroupKeywordServiceClient( customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_ad_group_keyword_path( customer_id: str, keyword_plan_ad_group_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, KeywordPlanAdGroupKeywordServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanAdGroupKeywordServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_ad_group_keywords( self, - request: Optional[ - Union[ - keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsRequest, - dict, - ] - ] = None, + request: keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - keyword_plan_ad_group_keyword_service.KeywordPlanAdGroupKeywordOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_ad_group_keyword_service.KeywordPlanAdGroupKeywordOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse ): ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi index 497378b95..3740be62a 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/transports/base.pyi @@ -16,12 +16,12 @@ class KeywordPlanAdGroupKeywordServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -30,10 +30,5 @@ class KeywordPlanAdGroupKeywordServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsRequest], - Union[ - keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse, - Awaitable[ - keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse - ], - ], + keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse | Awaitable[keyword_plan_ad_group_keyword_service.MutateKeywordPlanAdGroupKeywordsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi index bde7cac3f..5113e9ac6 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class KeywordPlanAdGroupKeywordServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/client.pyi index f2cc4b435..ecf750451 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordPlanAdGroupServiceTransport class KeywordPlanAdGroupServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanAdGroupServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanAdGroupServiceTransport]: ... class KeywordPlanAdGroupServiceClient(metaclass=KeywordPlanAdGroupServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,52 +34,48 @@ class KeywordPlanAdGroupServiceClient(metaclass=KeywordPlanAdGroupServiceClientM customer_id: str, keyword_plan_ad_group_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_ad_group_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_ad_group_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanAdGroupServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanAdGroupServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_ad_groups( self, - request: Optional[ - Union[keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest, dict] - ] = None, + request: keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[keyword_plan_ad_group_service.KeywordPlanAdGroupOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_ad_group_service.KeywordPlanAdGroupOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/transports/base.pyi index ba80b312a..c6e5ff90b 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanAdGroupServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class KeywordPlanAdGroupServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsRequest], - Union[ - keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse, - Awaitable[keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse], - ], + keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse | Awaitable[keyword_plan_ad_group_service.MutateKeywordPlanAdGroupsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/transports/grpc.pyi index 5d3f88db0..580db7b9b 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_ad_group_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanAdGroupServiceGrpcTransport(KeywordPlanAdGroupServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/client.pyi index edcaae212..16438d984 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import KeywordPlanCampaignKeywordServiceTransport class KeywordPlanCampaignKeywordServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanCampaignKeywordServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanCampaignKeywordServiceTransport]: ... class KeywordPlanCampaignKeywordServiceClient( metaclass=KeywordPlanCampaignKeywordServiceClientMeta @@ -38,61 +38,50 @@ class KeywordPlanCampaignKeywordServiceClient( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_keyword_path( customer_id: str, keyword_plan_campaign_keyword_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_keyword_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_keyword_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, KeywordPlanCampaignKeywordServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanCampaignKeywordServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_campaign_keywords( self, - request: Optional[ - Union[ - keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsRequest, - dict, - ] - ] = None, + request: keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - keyword_plan_campaign_keyword_service.KeywordPlanCampaignKeywordOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_campaign_keyword_service.KeywordPlanCampaignKeywordOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse ): ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi index 1893f2d5e..394227cc5 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/transports/base.pyi @@ -16,12 +16,12 @@ class KeywordPlanCampaignKeywordServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -32,10 +32,5 @@ class KeywordPlanCampaignKeywordServiceTransport(abc.ABC): [ keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsRequest ], - Union[ - keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse, - Awaitable[ - keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse - ], - ], + keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse | Awaitable[keyword_plan_campaign_keyword_service.MutateKeywordPlanCampaignKeywordsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi index 688213926..6c91878ee 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_keyword_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class KeywordPlanCampaignKeywordServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/client.pyi index dc2e0b486..aa8cc71f4 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordPlanCampaignServiceTransport class KeywordPlanCampaignServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanCampaignServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanCampaignServiceTransport]: ... class KeywordPlanCampaignServiceClient(metaclass=KeywordPlanCampaignServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,60 +32,56 @@ class KeywordPlanCampaignServiceClient(metaclass=KeywordPlanCampaignServiceClien @staticmethod def geo_target_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_geo_target_constant_path(path: str) -> Dict[str, str]: ... + def parse_geo_target_constant_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_plan_campaign_path( customer_id: str, keyword_plan_campaign_id: str ) -> str: ... @staticmethod - def parse_keyword_plan_campaign_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def language_constant_path(criterion_id: str) -> str: ... @staticmethod - def parse_language_constant_path(path: str) -> Dict[str, str]: ... + def parse_language_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanCampaignServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanCampaignServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plan_campaigns( self, - request: Optional[ - Union[keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest, dict] - ] = None, + request: keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[keyword_plan_campaign_service.KeywordPlanCampaignOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_campaign_service.KeywordPlanCampaignOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/transports/base.pyi index 89f1ec43b..c246c616c 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanCampaignServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class KeywordPlanCampaignServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_campaign_service.MutateKeywordPlanCampaignsRequest], - Union[ - keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse, - Awaitable[keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse], - ], + keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse | Awaitable[keyword_plan_campaign_service.MutateKeywordPlanCampaignsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/transports/grpc.pyi index 65c083069..664900d32 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_campaign_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanCampaignServiceGrpcTransport(KeywordPlanCampaignServiceTranspor self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/client.pyi index b4f1ce2f4..21dfc2c50 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import KeywordPlanIdeaServiceTransport class KeywordPlanIdeaServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanIdeaServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanIdeaServiceTransport]: ... class KeywordPlanIdeaServiceClient(metaclass=KeywordPlanIdeaServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,70 +33,60 @@ class KeywordPlanIdeaServiceClient(metaclass=KeywordPlanIdeaServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanIdeaServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanIdeaServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def generate_keyword_ideas( self, - request: Optional[ - Union[keyword_plan_idea_service.GenerateKeywordIdeasRequest, dict] - ] = None, + request: keyword_plan_idea_service.GenerateKeywordIdeasRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> pagers.GenerateKeywordIdeasPager: ... def generate_keyword_historical_metrics( self, - request: Optional[ - Union[ - keyword_plan_idea_service.GenerateKeywordHistoricalMetricsRequest, dict - ] - ] = None, + request: keyword_plan_idea_service.GenerateKeywordHistoricalMetricsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse: ... def generate_ad_group_themes( self, - request: Optional[ - Union[keyword_plan_idea_service.GenerateAdGroupThemesRequest, dict] - ] = None, + request: keyword_plan_idea_service.GenerateAdGroupThemesRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_idea_service.GenerateAdGroupThemesResponse: ... def generate_keyword_forecast_metrics( self, - request: Optional[ - Union[keyword_plan_idea_service.GenerateKeywordForecastMetricsRequest, dict] - ] = None, + request: keyword_plan_idea_service.GenerateKeywordForecastMetricsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/pagers.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/pagers.pyi index e7700cd25..6f1644c48 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/pagers.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/pagers.pyi @@ -10,7 +10,7 @@ class GenerateKeywordIdeasPager: method: Callable[..., keyword_plan_idea_service.GenerateKeywordIdeaResponse], request: keyword_plan_idea_service.GenerateKeywordIdeasRequest, response: keyword_plan_idea_service.GenerateKeywordIdeaResponse, - metadata: Sequence[Tuple[str, str]] = (), + metadata: Sequence[tuple[str, str]] = (), ) -> None: ... def __getattr__(self, name: str) -> Any: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/transports/base.pyi index a41a5e2bb..42e13c462 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanIdeaServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,40 +28,26 @@ class KeywordPlanIdeaServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_idea_service.GenerateKeywordIdeasRequest], - Union[ - keyword_plan_idea_service.GenerateKeywordIdeaResponse, - Awaitable[keyword_plan_idea_service.GenerateKeywordIdeaResponse], - ], + keyword_plan_idea_service.GenerateKeywordIdeaResponse | Awaitable[keyword_plan_idea_service.GenerateKeywordIdeaResponse], ]: ... @property def generate_keyword_historical_metrics( self, ) -> Callable[ [keyword_plan_idea_service.GenerateKeywordHistoricalMetricsRequest], - Union[ - keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse, - Awaitable[ - keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse - ], - ], + keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse | Awaitable[keyword_plan_idea_service.GenerateKeywordHistoricalMetricsResponse], ]: ... @property def generate_ad_group_themes( self, ) -> Callable[ [keyword_plan_idea_service.GenerateAdGroupThemesRequest], - Union[ - keyword_plan_idea_service.GenerateAdGroupThemesResponse, - Awaitable[keyword_plan_idea_service.GenerateAdGroupThemesResponse], - ], + keyword_plan_idea_service.GenerateAdGroupThemesResponse | Awaitable[keyword_plan_idea_service.GenerateAdGroupThemesResponse], ]: ... @property def generate_keyword_forecast_metrics( self, ) -> Callable[ [keyword_plan_idea_service.GenerateKeywordForecastMetricsRequest], - Union[ - keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse, - Awaitable[keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse], - ], + keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse | Awaitable[keyword_plan_idea_service.GenerateKeywordForecastMetricsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/transports/grpc.pyi index cdf9a2356..c4c7d718c 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_idea_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanIdeaServiceGrpcTransport(KeywordPlanIdeaServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/client.pyi index 234b975f6..c6e5d5397 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordPlanServiceTransport class KeywordPlanServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordPlanServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordPlanServiceTransport]: ... class KeywordPlanServiceClient(metaclass=KeywordPlanServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class KeywordPlanServiceClient(metaclass=KeywordPlanServiceClientMeta): @staticmethod def keyword_plan_path(customer_id: str, keyword_plan_id: str) -> str: ... @staticmethod - def parse_keyword_plan_path(path: str) -> Dict[str, str]: ... + def parse_keyword_plan_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordPlanServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordPlanServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_keyword_plans( self, - request: Optional[ - Union[keyword_plan_service.MutateKeywordPlansRequest, dict] - ] = None, + request: keyword_plan_service.MutateKeywordPlansRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[keyword_plan_service.KeywordPlanOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[keyword_plan_service.KeywordPlanOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_plan_service.MutateKeywordPlansResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/transports/base.pyi index 0d4803cc5..242e4fc20 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordPlanServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class KeywordPlanServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_plan_service.MutateKeywordPlansRequest], - Union[ - keyword_plan_service.MutateKeywordPlansResponse, - Awaitable[keyword_plan_service.MutateKeywordPlansResponse], - ], + keyword_plan_service.MutateKeywordPlansResponse | Awaitable[keyword_plan_service.MutateKeywordPlansResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/transports/grpc.pyi index e17159d95..4fa0889fc 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_plan_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordPlanServiceGrpcTransport(KeywordPlanServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/client.pyi index 7ffc54a42..22b4a457e 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import KeywordThemeConstantServiceTransport class KeywordThemeConstantServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[KeywordThemeConstantServiceTransport]: ... + cls, label: str | None = None + ) -> type[KeywordThemeConstantServiceTransport]: ... class KeywordThemeConstantServiceClient( metaclass=KeywordThemeConstantServiceClientMeta @@ -36,44 +36,40 @@ class KeywordThemeConstantServiceClient( express_category_id: str, express_sub_category_id: str ) -> str: ... @staticmethod - def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: ... + def parse_keyword_theme_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, KeywordThemeConstantServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | KeywordThemeConstantServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_keyword_theme_constants( self, - request: Optional[ - Union[ - keyword_theme_constant_service.SuggestKeywordThemeConstantsRequest, dict - ] - ] = None, + request: keyword_theme_constant_service.SuggestKeywordThemeConstantsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/transports/base.pyi index c4a89bb8a..33ef6103f 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/transports/base.pyi @@ -14,12 +14,12 @@ class KeywordThemeConstantServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class KeywordThemeConstantServiceTransport(abc.ABC): self, ) -> Callable[ [keyword_theme_constant_service.SuggestKeywordThemeConstantsRequest], - Union[ - keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse, - Awaitable[ - keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse - ], - ], + keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse | Awaitable[keyword_theme_constant_service.SuggestKeywordThemeConstantsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/transports/grpc.pyi index e3d7a87fa..c0819a4db 100644 --- a/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/keyword_theme_constant_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class KeywordThemeConstantServiceGrpcTransport(KeywordThemeConstantServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/label_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/label_service/client.pyi index 56e7fc29e..991a4ba4d 100644 --- a/google-stubs/ads/googleads/v15/services/services/label_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/label_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import LabelServiceTransport class LabelServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[LabelServiceTransport]: ... + cls, label: str | None = None + ) -> type[LabelServiceTransport]: ... class LabelServiceClient(metaclass=LabelServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,42 +32,42 @@ class LabelServiceClient(metaclass=LabelServiceClientMeta): @staticmethod def label_path(customer_id: str, label_id: str) -> str: ... @staticmethod - def parse_label_path(path: str) -> Dict[str, str]: ... + def parse_label_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, LabelServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | LabelServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_labels( self, - request: Optional[Union[label_service.MutateLabelsRequest, dict]] = None, + request: label_service.MutateLabelsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[MutableSequence[label_service.LabelOperation]] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[label_service.LabelOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> label_service.MutateLabelsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/label_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/label_service/transports/base.pyi index 10df38e8c..f505fbd7c 100644 --- a/google-stubs/ads/googleads/v15/services/services/label_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/label_service/transports/base.pyi @@ -14,12 +14,12 @@ class LabelServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class LabelServiceTransport(abc.ABC): self, ) -> Callable[ [label_service.MutateLabelsRequest], - Union[ - label_service.MutateLabelsResponse, - Awaitable[label_service.MutateLabelsResponse], - ], + label_service.MutateLabelsResponse | Awaitable[label_service.MutateLabelsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/label_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/label_service/transports/grpc.pyi index 2059a78a1..df2f1d5aa 100644 --- a/google-stubs/ads/googleads/v15/services/services/label_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/label_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class LabelServiceGrpcTransport(LabelServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/client.pyi index 3b6fc1ab9..a39e4b906 100644 --- a/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import OfflineUserDataJobServiceTransport class OfflineUserDataJobServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[OfflineUserDataJobServiceTransport]: ... + cls, label: str | None = None + ) -> type[OfflineUserDataJobServiceTransport]: ... class OfflineUserDataJobServiceClient(metaclass=OfflineUserDataJobServiceClientMeta): DEFAULT_ENDPOINT: str @@ -36,72 +36,61 @@ class OfflineUserDataJobServiceClient(metaclass=OfflineUserDataJobServiceClientM customer_id: str, offline_user_data_update_id: str ) -> str: ... @staticmethod - def parse_offline_user_data_job_path(path: str) -> Dict[str, str]: ... + def parse_offline_user_data_job_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, OfflineUserDataJobServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | OfflineUserDataJobServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def create_offline_user_data_job( self, - request: Optional[ - Union[offline_user_data_job_service.CreateOfflineUserDataJobRequest, dict] - ] = None, + request: offline_user_data_job_service.CreateOfflineUserDataJobRequest | dict | None = None, *, - customer_id: Optional[str] = None, - job: Optional[offline_user_data_job.OfflineUserDataJob] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + job: offline_user_data_job.OfflineUserDataJob | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> offline_user_data_job_service.CreateOfflineUserDataJobResponse: ... def add_offline_user_data_job_operations( self, - request: Optional[ - Union[ - offline_user_data_job_service.AddOfflineUserDataJobOperationsRequest, - dict, - ] - ] = None, + request: offline_user_data_job_service.AddOfflineUserDataJobOperationsRequest | dict | None = None, *, - resource_name: Optional[str] = None, - operations: Optional[ - MutableSequence[offline_user_data_job_service.OfflineUserDataJobOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + operations: MutableSequence[offline_user_data_job_service.OfflineUserDataJobOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse: ... def run_offline_user_data_job( self, - request: Optional[ - Union[offline_user_data_job_service.RunOfflineUserDataJobRequest, dict] - ] = None, + request: offline_user_data_job_service.RunOfflineUserDataJobRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> operation.Operation: ... diff --git a/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/transports/base.pyi index 45ba131ca..b2d3aa228 100644 --- a/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/transports/base.pyi @@ -15,12 +15,12 @@ class OfflineUserDataJobServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -31,27 +31,19 @@ class OfflineUserDataJobServiceTransport(abc.ABC): self, ) -> Callable[ [offline_user_data_job_service.CreateOfflineUserDataJobRequest], - Union[ - offline_user_data_job_service.CreateOfflineUserDataJobResponse, - Awaitable[offline_user_data_job_service.CreateOfflineUserDataJobResponse], - ], + offline_user_data_job_service.CreateOfflineUserDataJobResponse | Awaitable[offline_user_data_job_service.CreateOfflineUserDataJobResponse], ]: ... @property def add_offline_user_data_job_operations( self, ) -> Callable[ [offline_user_data_job_service.AddOfflineUserDataJobOperationsRequest], - Union[ - offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse, - Awaitable[ - offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse - ], - ], + offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse | Awaitable[offline_user_data_job_service.AddOfflineUserDataJobOperationsResponse], ]: ... @property def run_offline_user_data_job( self, ) -> Callable[ [offline_user_data_job_service.RunOfflineUserDataJobRequest], - Union[operations_pb2.Operation, Awaitable[operations_pb2.Operation]], + operations_pb2.Operation | Awaitable[operations_pb2.Operation], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/transports/grpc.pyi index 6d78be743..87e73426e 100644 --- a/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/offline_user_data_job_service/transports/grpc.pyi @@ -14,26 +14,26 @@ class OfflineUserDataJobServiceGrpcTransport(OfflineUserDataJobServiceTransport) self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/payments_account_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/payments_account_service/client.pyi index 1d248687a..84a7640ab 100644 --- a/google-stubs/ads/googleads/v15/services/services/payments_account_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/payments_account_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import PaymentsAccountServiceTransport class PaymentsAccountServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[PaymentsAccountServiceTransport]: ... + cls, label: str | None = None + ) -> type[PaymentsAccountServiceTransport]: ... class PaymentsAccountServiceClient(metaclass=PaymentsAccountServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,47 +32,45 @@ class PaymentsAccountServiceClient(metaclass=PaymentsAccountServiceClientMeta): @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def payments_account_path(customer_id: str, payments_account_id: str) -> str: ... @staticmethod - def parse_payments_account_path(path: str) -> Dict[str, str]: ... + def parse_payments_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, PaymentsAccountServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | PaymentsAccountServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_payments_accounts( self, - request: Optional[ - Union[payments_account_service.ListPaymentsAccountsRequest, dict] - ] = None, + request: payments_account_service.ListPaymentsAccountsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> payments_account_service.ListPaymentsAccountsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/payments_account_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/payments_account_service/transports/base.pyi index 5ec2f1346..39fccf32a 100644 --- a/google-stubs/ads/googleads/v15/services/services/payments_account_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/payments_account_service/transports/base.pyi @@ -14,12 +14,12 @@ class PaymentsAccountServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class PaymentsAccountServiceTransport(abc.ABC): self, ) -> Callable[ [payments_account_service.ListPaymentsAccountsRequest], - Union[ - payments_account_service.ListPaymentsAccountsResponse, - Awaitable[payments_account_service.ListPaymentsAccountsResponse], - ], + payments_account_service.ListPaymentsAccountsResponse | Awaitable[payments_account_service.ListPaymentsAccountsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/payments_account_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/payments_account_service/transports/grpc.pyi index 42075f020..62ada0c94 100644 --- a/google-stubs/ads/googleads/v15/services/services/payments_account_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/payments_account_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class PaymentsAccountServiceGrpcTransport(PaymentsAccountServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/client.pyi index c5662ccc2..961b08ee5 100644 --- a/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/client.pyi @@ -17,8 +17,8 @@ from .transports.base import ProductLinkInvitationServiceTransport class ProductLinkInvitationServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ProductLinkInvitationServiceTransport]: ... + cls, label: str | None = None + ) -> type[ProductLinkInvitationServiceTransport]: ... class ProductLinkInvitationServiceClient( metaclass=ProductLinkInvitationServiceClientMeta @@ -39,49 +39,43 @@ class ProductLinkInvitationServiceClient( customer_id: str, customer_invitation_id: str ) -> str: ... @staticmethod - def parse_product_link_invitation_path(path: str) -> Dict[str, str]: ... + def parse_product_link_invitation_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ProductLinkInvitationServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ProductLinkInvitationServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def update_product_link_invitation( self, - request: Optional[ - Union[ - product_link_invitation_service.UpdateProductLinkInvitationRequest, dict - ] - ] = None, + request: product_link_invitation_service.UpdateProductLinkInvitationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - product_link_invitation_status: Optional[ - gage_product_link_invitation_status.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus - ] = None, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + product_link_invitation_status: gage_product_link_invitation_status.ProductLinkInvitationStatusEnum.ProductLinkInvitationStatus | None = None, + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> product_link_invitation_service.UpdateProductLinkInvitationResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/transports/base.pyi index f3e203c41..d1c423a0f 100644 --- a/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/transports/base.pyi @@ -14,12 +14,12 @@ class ProductLinkInvitationServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class ProductLinkInvitationServiceTransport(abc.ABC): self, ) -> Callable[ [product_link_invitation_service.UpdateProductLinkInvitationRequest], - Union[ - product_link_invitation_service.UpdateProductLinkInvitationResponse, - Awaitable[ - product_link_invitation_service.UpdateProductLinkInvitationResponse - ], - ], + product_link_invitation_service.UpdateProductLinkInvitationResponse | Awaitable[product_link_invitation_service.UpdateProductLinkInvitationResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/transports/grpc.pyi index ba1af3e76..9490f3831 100644 --- a/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/product_link_invitation_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ProductLinkInvitationServiceGrpcTransport(ProductLinkInvitationServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/product_link_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/product_link_service/client.pyi index b7564ee20..39fcfb351 100644 --- a/google-stubs/ads/googleads/v15/services/services/product_link_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/product_link_service/client.pyi @@ -15,8 +15,8 @@ from .transports.base import ProductLinkServiceTransport class ProductLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ProductLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[ProductLinkServiceTransport]: ... class ProductLinkServiceClient(metaclass=ProductLinkServiceClientMeta): DEFAULT_ENDPOINT: str @@ -33,60 +33,56 @@ class ProductLinkServiceClient(metaclass=ProductLinkServiceClientMeta): @staticmethod def customer_path(customer_id: str) -> str: ... @staticmethod - def parse_customer_path(path: str) -> Dict[str, str]: ... + def parse_customer_path(path: str) -> dict[str, str]: ... @staticmethod def product_link_path(customer_id: str, product_link_id: str) -> str: ... @staticmethod - def parse_product_link_path(path: str) -> Dict[str, str]: ... + def parse_product_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ProductLinkServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ProductLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def create_product_link( self, - request: Optional[ - Union[product_link_service.CreateProductLinkRequest, dict] - ] = None, + request: product_link_service.CreateProductLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - product_link: Optional[gagr_product_link.ProductLink] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + product_link: gagr_product_link.ProductLink | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> product_link_service.CreateProductLinkResponse: ... def remove_product_link( self, - request: Optional[ - Union[product_link_service.RemoveProductLinkRequest, dict] - ] = None, + request: product_link_service.RemoveProductLinkRequest | dict | None = None, *, - customer_id: Optional[str] = None, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> product_link_service.RemoveProductLinkResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/product_link_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/product_link_service/transports/base.pyi index 9d26a1d23..86011c18b 100644 --- a/google-stubs/ads/googleads/v15/services/services/product_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/product_link_service/transports/base.pyi @@ -14,12 +14,12 @@ class ProductLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class ProductLinkServiceTransport(abc.ABC): self, ) -> Callable[ [product_link_service.CreateProductLinkRequest], - Union[ - product_link_service.CreateProductLinkResponse, - Awaitable[product_link_service.CreateProductLinkResponse], - ], + product_link_service.CreateProductLinkResponse | Awaitable[product_link_service.CreateProductLinkResponse], ]: ... @property def remove_product_link( self, ) -> Callable[ [product_link_service.RemoveProductLinkRequest], - Union[ - product_link_service.RemoveProductLinkResponse, - Awaitable[product_link_service.RemoveProductLinkResponse], - ], + product_link_service.RemoveProductLinkResponse | Awaitable[product_link_service.RemoveProductLinkResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/product_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/product_link_service/transports/grpc.pyi index 57b2282a1..d2b129760 100644 --- a/google-stubs/ads/googleads/v15/services/services/product_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/product_link_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ProductLinkServiceGrpcTransport(ProductLinkServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/reach_plan_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/reach_plan_service/client.pyi index a9fc6d775..3c289bae3 100644 --- a/google-stubs/ads/googleads/v15/services/services/reach_plan_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/reach_plan_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import ReachPlanServiceTransport class ReachPlanServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ReachPlanServiceTransport]: ... + cls, label: str | None = None + ) -> type[ReachPlanServiceTransport]: ... class ReachPlanServiceClient(metaclass=ReachPlanServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,64 +32,56 @@ class ReachPlanServiceClient(metaclass=ReachPlanServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, ReachPlanServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ReachPlanServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def list_plannable_locations( self, - request: Optional[ - Union[reach_plan_service.ListPlannableLocationsRequest, dict] - ] = None, + request: reach_plan_service.ListPlannableLocationsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> reach_plan_service.ListPlannableLocationsResponse: ... def list_plannable_products( self, - request: Optional[ - Union[reach_plan_service.ListPlannableProductsRequest, dict] - ] = None, + request: reach_plan_service.ListPlannableProductsRequest | dict | None = None, *, - plannable_location_id: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + plannable_location_id: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> reach_plan_service.ListPlannableProductsResponse: ... def generate_reach_forecast( self, - request: Optional[ - Union[reach_plan_service.GenerateReachForecastRequest, dict] - ] = None, + request: reach_plan_service.GenerateReachForecastRequest | dict | None = None, *, - customer_id: Optional[str] = None, - campaign_duration: Optional[reach_plan_service.CampaignDuration] = None, - planned_products: Optional[ - MutableSequence[reach_plan_service.PlannedProduct] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + campaign_duration: reach_plan_service.CampaignDuration | None = None, + planned_products: MutableSequence[reach_plan_service.PlannedProduct] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> reach_plan_service.GenerateReachForecastResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/reach_plan_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/reach_plan_service/transports/base.pyi index f370bfbe9..4d255921c 100644 --- a/google-stubs/ads/googleads/v15/services/services/reach_plan_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/reach_plan_service/transports/base.pyi @@ -14,12 +14,12 @@ class ReachPlanServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,28 +28,19 @@ class ReachPlanServiceTransport(abc.ABC): self, ) -> Callable[ [reach_plan_service.ListPlannableLocationsRequest], - Union[ - reach_plan_service.ListPlannableLocationsResponse, - Awaitable[reach_plan_service.ListPlannableLocationsResponse], - ], + reach_plan_service.ListPlannableLocationsResponse | Awaitable[reach_plan_service.ListPlannableLocationsResponse], ]: ... @property def list_plannable_products( self, ) -> Callable[ [reach_plan_service.ListPlannableProductsRequest], - Union[ - reach_plan_service.ListPlannableProductsResponse, - Awaitable[reach_plan_service.ListPlannableProductsResponse], - ], + reach_plan_service.ListPlannableProductsResponse | Awaitable[reach_plan_service.ListPlannableProductsResponse], ]: ... @property def generate_reach_forecast( self, ) -> Callable[ [reach_plan_service.GenerateReachForecastRequest], - Union[ - reach_plan_service.GenerateReachForecastResponse, - Awaitable[reach_plan_service.GenerateReachForecastResponse], - ], + reach_plan_service.GenerateReachForecastResponse | Awaitable[reach_plan_service.GenerateReachForecastResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/reach_plan_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/reach_plan_service/transports/grpc.pyi index 682e95c38..e0322d889 100644 --- a/google-stubs/ads/googleads/v15/services/services/reach_plan_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/reach_plan_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class ReachPlanServiceGrpcTransport(ReachPlanServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/recommendation_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/recommendation_service/client.pyi index 3b04a5aa8..1dd778179 100644 --- a/google-stubs/ads/googleads/v15/services/services/recommendation_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/recommendation_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import RecommendationServiceTransport class RecommendationServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[RecommendationServiceTransport]: ... + cls, label: str | None = None + ) -> type[RecommendationServiceTransport]: ... class RecommendationServiceClient(metaclass=RecommendationServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,74 +32,64 @@ class RecommendationServiceClient(metaclass=RecommendationServiceClientMeta): @staticmethod def ad_path(customer_id: str, ad_id: str) -> str: ... @staticmethod - def parse_ad_path(path: str) -> Dict[str, str]: ... + def parse_ad_path(path: str) -> dict[str, str]: ... @staticmethod def asset_path(customer_id: str, asset_id: str) -> str: ... @staticmethod - def parse_asset_path(path: str) -> Dict[str, str]: ... + def parse_asset_path(path: str) -> dict[str, str]: ... @staticmethod def conversion_action_path(customer_id: str, conversion_action_id: str) -> str: ... @staticmethod - def parse_conversion_action_path(path: str) -> Dict[str, str]: ... + def parse_conversion_action_path(path: str) -> dict[str, str]: ... @staticmethod def recommendation_path(customer_id: str, recommendation_id: str) -> str: ... @staticmethod - def parse_recommendation_path(path: str) -> Dict[str, str]: ... + def parse_recommendation_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, RecommendationServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | RecommendationServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def apply_recommendation( self, - request: Optional[ - Union[recommendation_service.ApplyRecommendationRequest, dict] - ] = None, + request: recommendation_service.ApplyRecommendationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[recommendation_service.ApplyRecommendationOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[recommendation_service.ApplyRecommendationOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> recommendation_service.ApplyRecommendationResponse: ... def dismiss_recommendation( self, - request: Optional[ - Union[recommendation_service.DismissRecommendationRequest, dict] - ] = None, + request: recommendation_service.DismissRecommendationRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - recommendation_service.DismissRecommendationRequest.DismissRecommendationOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[recommendation_service.DismissRecommendationRequest.DismissRecommendationOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> recommendation_service.DismissRecommendationResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/recommendation_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/recommendation_service/transports/base.pyi index 29bba8384..981446458 100644 --- a/google-stubs/ads/googleads/v15/services/services/recommendation_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/recommendation_service/transports/base.pyi @@ -14,12 +14,12 @@ class RecommendationServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,18 +28,12 @@ class RecommendationServiceTransport(abc.ABC): self, ) -> Callable[ [recommendation_service.ApplyRecommendationRequest], - Union[ - recommendation_service.ApplyRecommendationResponse, - Awaitable[recommendation_service.ApplyRecommendationResponse], - ], + recommendation_service.ApplyRecommendationResponse | Awaitable[recommendation_service.ApplyRecommendationResponse], ]: ... @property def dismiss_recommendation( self, ) -> Callable[ [recommendation_service.DismissRecommendationRequest], - Union[ - recommendation_service.DismissRecommendationResponse, - Awaitable[recommendation_service.DismissRecommendationResponse], - ], + recommendation_service.DismissRecommendationResponse | Awaitable[recommendation_service.DismissRecommendationResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/recommendation_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/recommendation_service/transports/grpc.pyi index 238e6fa5e..413527933 100644 --- a/google-stubs/ads/googleads/v15/services/services/recommendation_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/recommendation_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class RecommendationServiceGrpcTransport(RecommendationServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/client.pyi index 1eeaf2119..146ac31a8 100644 --- a/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import RecommendationSubscriptionServiceTransport class RecommendationSubscriptionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[RecommendationSubscriptionServiceTransport]: ... + cls, label: str | None = None + ) -> type[RecommendationSubscriptionServiceTransport]: ... class RecommendationSubscriptionServiceClient( metaclass=RecommendationSubscriptionServiceClientMeta @@ -36,55 +36,44 @@ class RecommendationSubscriptionServiceClient( customer_id: str, recommendation_type: str ) -> str: ... @staticmethod - def parse_recommendation_subscription_path(path: str) -> Dict[str, str]: ... + def parse_recommendation_subscription_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, RecommendationSubscriptionServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | RecommendationSubscriptionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_recommendation_subscription( self, - request: Optional[ - Union[ - recommendation_subscription_service.MutateRecommendationSubscriptionRequest, - dict, - ] - ] = None, + request: recommendation_subscription_service.MutateRecommendationSubscriptionRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - recommendation_subscription_service.RecommendationSubscriptionOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[recommendation_subscription_service.RecommendationSubscriptionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> ( recommendation_subscription_service.MutateRecommendationSubscriptionResponse ): ... diff --git a/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/transports/base.pyi index 4d3174ea2..8683b6d6d 100644 --- a/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/transports/base.pyi @@ -14,12 +14,12 @@ class RecommendationSubscriptionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,10 +28,5 @@ class RecommendationSubscriptionServiceTransport(abc.ABC): self, ) -> Callable[ [recommendation_subscription_service.MutateRecommendationSubscriptionRequest], - Union[ - recommendation_subscription_service.MutateRecommendationSubscriptionResponse, - Awaitable[ - recommendation_subscription_service.MutateRecommendationSubscriptionResponse - ], - ], + recommendation_subscription_service.MutateRecommendationSubscriptionResponse | Awaitable[recommendation_subscription_service.MutateRecommendationSubscriptionResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/transports/grpc.pyi index 4ac9bc477..b9f7cebb5 100644 --- a/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/recommendation_subscription_service/transports/grpc.pyi @@ -15,26 +15,26 @@ class RecommendationSubscriptionServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/client.pyi index 45d77d6c8..6f54c8077 100644 --- a/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import RemarketingActionServiceTransport class RemarketingActionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[RemarketingActionServiceTransport]: ... + cls, label: str | None = None + ) -> type[RemarketingActionServiceTransport]: ... class RemarketingActionServiceClient(metaclass=RemarketingActionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -34,46 +34,42 @@ class RemarketingActionServiceClient(metaclass=RemarketingActionServiceClientMet customer_id: str, remarketing_action_id: str ) -> str: ... @staticmethod - def parse_remarketing_action_path(path: str) -> Dict[str, str]: ... + def parse_remarketing_action_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, RemarketingActionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | RemarketingActionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_remarketing_actions( self, - request: Optional[ - Union[remarketing_action_service.MutateRemarketingActionsRequest, dict] - ] = None, + request: remarketing_action_service.MutateRemarketingActionsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[remarketing_action_service.RemarketingActionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[remarketing_action_service.RemarketingActionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> remarketing_action_service.MutateRemarketingActionsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/transports/base.pyi index 2e57a7deb..e1ff4c4e4 100644 --- a/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/transports/base.pyi @@ -14,12 +14,12 @@ class RemarketingActionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class RemarketingActionServiceTransport(abc.ABC): self, ) -> Callable[ [remarketing_action_service.MutateRemarketingActionsRequest], - Union[ - remarketing_action_service.MutateRemarketingActionsResponse, - Awaitable[remarketing_action_service.MutateRemarketingActionsResponse], - ], + remarketing_action_service.MutateRemarketingActionsResponse | Awaitable[remarketing_action_service.MutateRemarketingActionsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/transports/grpc.pyi index a346586f2..d3ad15679 100644 --- a/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/remarketing_action_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class RemarketingActionServiceGrpcTransport(RemarketingActionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/client.pyi index 310a115c0..b5a833c91 100644 --- a/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SharedCriterionServiceTransport class SharedCriterionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SharedCriterionServiceTransport]: ... + cls, label: str | None = None + ) -> type[SharedCriterionServiceTransport]: ... class SharedCriterionServiceClient(metaclass=SharedCriterionServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,56 +32,52 @@ class SharedCriterionServiceClient(metaclass=SharedCriterionServiceClientMeta): @staticmethod def mobile_app_category_constant_path(mobile_app_category_id: str) -> str: ... @staticmethod - def parse_mobile_app_category_constant_path(path: str) -> Dict[str, str]: ... + def parse_mobile_app_category_constant_path(path: str) -> dict[str, str]: ... @staticmethod def shared_criterion_path( customer_id: str, shared_set_id: str, criterion_id: str ) -> str: ... @staticmethod - def parse_shared_criterion_path(path: str) -> Dict[str, str]: ... + def parse_shared_criterion_path(path: str) -> dict[str, str]: ... @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SharedCriterionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SharedCriterionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_shared_criteria( self, - request: Optional[ - Union[shared_criterion_service.MutateSharedCriteriaRequest, dict] - ] = None, + request: shared_criterion_service.MutateSharedCriteriaRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[shared_criterion_service.SharedCriterionOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[shared_criterion_service.SharedCriterionOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> shared_criterion_service.MutateSharedCriteriaResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/transports/base.pyi index c493fc614..d553f8ac9 100644 --- a/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/transports/base.pyi @@ -14,12 +14,12 @@ class SharedCriterionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class SharedCriterionServiceTransport(abc.ABC): self, ) -> Callable[ [shared_criterion_service.MutateSharedCriteriaRequest], - Union[ - shared_criterion_service.MutateSharedCriteriaResponse, - Awaitable[shared_criterion_service.MutateSharedCriteriaResponse], - ], + shared_criterion_service.MutateSharedCriteriaResponse | Awaitable[shared_criterion_service.MutateSharedCriteriaResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/transports/grpc.pyi index d798bd924..ace0179ce 100644 --- a/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/shared_criterion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SharedCriterionServiceGrpcTransport(SharedCriterionServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/shared_set_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/shared_set_service/client.pyi index ea3621a55..aabedfb2b 100644 --- a/google-stubs/ads/googleads/v15/services/services/shared_set_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/shared_set_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SharedSetServiceTransport class SharedSetServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SharedSetServiceTransport]: ... + cls, label: str | None = None + ) -> type[SharedSetServiceTransport]: ... class SharedSetServiceClient(metaclass=SharedSetServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,46 +32,42 @@ class SharedSetServiceClient(metaclass=SharedSetServiceClientMeta): @staticmethod def shared_set_path(customer_id: str, shared_set_id: str) -> str: ... @staticmethod - def parse_shared_set_path(path: str) -> Dict[str, str]: ... + def parse_shared_set_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SharedSetServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SharedSetServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_shared_sets( self, - request: Optional[ - Union[shared_set_service.MutateSharedSetsRequest, dict] - ] = None, + request: shared_set_service.MutateSharedSetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[shared_set_service.SharedSetOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[shared_set_service.SharedSetOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> shared_set_service.MutateSharedSetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/shared_set_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/shared_set_service/transports/base.pyi index 0aa854626..9fe1fa4e9 100644 --- a/google-stubs/ads/googleads/v15/services/services/shared_set_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/shared_set_service/transports/base.pyi @@ -14,12 +14,12 @@ class SharedSetServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class SharedSetServiceTransport(abc.ABC): self, ) -> Callable[ [shared_set_service.MutateSharedSetsRequest], - Union[ - shared_set_service.MutateSharedSetsResponse, - Awaitable[shared_set_service.MutateSharedSetsResponse], - ], + shared_set_service.MutateSharedSetsResponse | Awaitable[shared_set_service.MutateSharedSetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/shared_set_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/shared_set_service/transports/grpc.pyi index 0f0830043..8c8d5cb9e 100644 --- a/google-stubs/ads/googleads/v15/services/services/shared_set_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/shared_set_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SharedSetServiceGrpcTransport(SharedSetServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/client.pyi index 833be4126..f09d824ad 100644 --- a/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SmartCampaignSettingServiceTransport class SmartCampaignSettingServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SmartCampaignSettingServiceTransport]: ... + cls, label: str | None = None + ) -> type[SmartCampaignSettingServiceTransport]: ... class SmartCampaignSettingServiceClient( metaclass=SmartCampaignSettingServiceClientMeta @@ -34,65 +34,55 @@ class SmartCampaignSettingServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def smart_campaign_setting_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_smart_campaign_setting_path(path: str) -> Dict[str, str]: ... + def parse_smart_campaign_setting_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SmartCampaignSettingServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SmartCampaignSettingServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def get_smart_campaign_status( self, - request: Optional[ - Union[smart_campaign_setting_service.GetSmartCampaignStatusRequest, dict] - ] = None, + request: smart_campaign_setting_service.GetSmartCampaignStatusRequest | dict | None = None, *, - resource_name: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + resource_name: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_setting_service.GetSmartCampaignStatusResponse: ... def mutate_smart_campaign_settings( self, - request: Optional[ - Union[ - smart_campaign_setting_service.MutateSmartCampaignSettingsRequest, dict - ] - ] = None, + request: smart_campaign_setting_service.MutateSmartCampaignSettingsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[ - smart_campaign_setting_service.SmartCampaignSettingOperation - ] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[smart_campaign_setting_service.SmartCampaignSettingOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_setting_service.MutateSmartCampaignSettingsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/transports/base.pyi index ba2988c1b..770817d82 100644 --- a/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/transports/base.pyi @@ -14,12 +14,12 @@ class SmartCampaignSettingServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,20 +28,12 @@ class SmartCampaignSettingServiceTransport(abc.ABC): self, ) -> Callable[ [smart_campaign_setting_service.GetSmartCampaignStatusRequest], - Union[ - smart_campaign_setting_service.GetSmartCampaignStatusResponse, - Awaitable[smart_campaign_setting_service.GetSmartCampaignStatusResponse], - ], + smart_campaign_setting_service.GetSmartCampaignStatusResponse | Awaitable[smart_campaign_setting_service.GetSmartCampaignStatusResponse], ]: ... @property def mutate_smart_campaign_settings( self, ) -> Callable[ [smart_campaign_setting_service.MutateSmartCampaignSettingsRequest], - Union[ - smart_campaign_setting_service.MutateSmartCampaignSettingsResponse, - Awaitable[ - smart_campaign_setting_service.MutateSmartCampaignSettingsResponse - ], - ], + smart_campaign_setting_service.MutateSmartCampaignSettingsResponse | Awaitable[smart_campaign_setting_service.MutateSmartCampaignSettingsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/transports/grpc.pyi index 5f5bff283..6293dbb49 100644 --- a/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/smart_campaign_setting_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SmartCampaignSettingServiceGrpcTransport(SmartCampaignSettingServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/client.pyi index d30c42540..083c60c06 100644 --- a/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import SmartCampaignSuggestServiceTransport class SmartCampaignSuggestServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[SmartCampaignSuggestServiceTransport]: ... + cls, label: str | None = None + ) -> type[SmartCampaignSuggestServiceTransport]: ... class SmartCampaignSuggestServiceClient( metaclass=SmartCampaignSuggestServiceClientMeta @@ -34,71 +34,62 @@ class SmartCampaignSuggestServiceClient( @staticmethod def campaign_path(customer_id: str, campaign_id: str) -> str: ... @staticmethod - def parse_campaign_path(path: str) -> Dict[str, str]: ... + def parse_campaign_path(path: str) -> dict[str, str]: ... @staticmethod def keyword_theme_constant_path( express_category_id: str, express_sub_category_id: str ) -> str: ... @staticmethod - def parse_keyword_theme_constant_path(path: str) -> Dict[str, str]: ... + def parse_keyword_theme_constant_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, SmartCampaignSuggestServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | SmartCampaignSuggestServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_smart_campaign_budget_options( self, - request: Optional[ - Union[ - smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsRequest, - dict, - ] - ] = None, + request: smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse: ... def suggest_smart_campaign_ad( self, - request: Optional[ - Union[smart_campaign_suggest_service.SuggestSmartCampaignAdRequest, dict] - ] = None, + request: smart_campaign_suggest_service.SuggestSmartCampaignAdRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_suggest_service.SuggestSmartCampaignAdResponse: ... def suggest_keyword_themes( self, - request: Optional[ - Union[smart_campaign_suggest_service.SuggestKeywordThemesRequest, dict] - ] = None, + request: smart_campaign_suggest_service.SuggestKeywordThemesRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> smart_campaign_suggest_service.SuggestKeywordThemesResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/transports/base.pyi index e5fbf0a6b..4e22bf26e 100644 --- a/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/transports/base.pyi @@ -14,12 +14,12 @@ class SmartCampaignSuggestServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,30 +28,19 @@ class SmartCampaignSuggestServiceTransport(abc.ABC): self, ) -> Callable[ [smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsRequest], - Union[ - smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse, - Awaitable[ - smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse - ], - ], + smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse | Awaitable[smart_campaign_suggest_service.SuggestSmartCampaignBudgetOptionsResponse], ]: ... @property def suggest_smart_campaign_ad( self, ) -> Callable[ [smart_campaign_suggest_service.SuggestSmartCampaignAdRequest], - Union[ - smart_campaign_suggest_service.SuggestSmartCampaignAdResponse, - Awaitable[smart_campaign_suggest_service.SuggestSmartCampaignAdResponse], - ], + smart_campaign_suggest_service.SuggestSmartCampaignAdResponse | Awaitable[smart_campaign_suggest_service.SuggestSmartCampaignAdResponse], ]: ... @property def suggest_keyword_themes( self, ) -> Callable[ [smart_campaign_suggest_service.SuggestKeywordThemesRequest], - Union[ - smart_campaign_suggest_service.SuggestKeywordThemesResponse, - Awaitable[smart_campaign_suggest_service.SuggestKeywordThemesResponse], - ], + smart_campaign_suggest_service.SuggestKeywordThemesResponse | Awaitable[smart_campaign_suggest_service.SuggestKeywordThemesResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/transports/grpc.pyi index 79c44777b..8af8ffe7a 100644 --- a/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/smart_campaign_suggest_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class SmartCampaignSuggestServiceGrpcTransport(SmartCampaignSuggestServiceTransp self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/client.pyi index 3b1bd5aac..76e1d54a1 100644 --- a/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/client.pyi @@ -16,8 +16,8 @@ from .transports.base import ThirdPartyAppAnalyticsLinkServiceTransport class ThirdPartyAppAnalyticsLinkServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[ThirdPartyAppAnalyticsLinkServiceTransport]: ... + cls, label: str | None = None + ) -> type[ThirdPartyAppAnalyticsLinkServiceTransport]: ... class ThirdPartyAppAnalyticsLinkServiceClient( metaclass=ThirdPartyAppAnalyticsLinkServiceClientMeta @@ -38,47 +38,40 @@ class ThirdPartyAppAnalyticsLinkServiceClient( customer_id: str, customer_link_id: str ) -> str: ... @staticmethod - def parse_third_party_app_analytics_link_path(path: str) -> Dict[str, str]: ... + def parse_third_party_app_analytics_link_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[ - Union[str, ThirdPartyAppAnalyticsLinkServiceTransport] - ] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | ThirdPartyAppAnalyticsLinkServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def regenerate_shareable_link_id( self, - request: Optional[ - Union[ - third_party_app_analytics_link_service.RegenerateShareableLinkIdRequest, - dict, - ] - ] = None, + request: third_party_app_analytics_link_service.RegenerateShareableLinkIdRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/transports/base.pyi index 77a6025cf..3aa94fb31 100644 --- a/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/transports/base.pyi @@ -16,12 +16,12 @@ class ThirdPartyAppAnalyticsLinkServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -30,10 +30,5 @@ class ThirdPartyAppAnalyticsLinkServiceTransport(abc.ABC): self, ) -> Callable[ [third_party_app_analytics_link_service.RegenerateShareableLinkIdRequest], - Union[ - third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse, - Awaitable[ - third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse - ], - ], + third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse | Awaitable[third_party_app_analytics_link_service.RegenerateShareableLinkIdResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/transports/grpc.pyi index f8414c496..07d27e081 100644 --- a/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/third_party_app_analytics_link_service/transports/grpc.pyi @@ -17,26 +17,26 @@ class ThirdPartyAppAnalyticsLinkServiceGrpcTransport( self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/client.pyi index 891f842b5..02dfadb1f 100644 --- a/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import TravelAssetSuggestionServiceTransport class TravelAssetSuggestionServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[TravelAssetSuggestionServiceTransport]: ... + cls, label: str | None = None + ) -> type[TravelAssetSuggestionServiceTransport]: ... class TravelAssetSuggestionServiceClient( metaclass=TravelAssetSuggestionServiceClientMeta @@ -34,40 +34,38 @@ class TravelAssetSuggestionServiceClient( @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, TravelAssetSuggestionServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | TravelAssetSuggestionServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def suggest_travel_assets( self, - request: Optional[ - Union[travel_asset_suggestion_service.SuggestTravelAssetsRequest, dict] - ] = None, + request: travel_asset_suggestion_service.SuggestTravelAssetsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - language_option: Optional[str] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + language_option: str | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> travel_asset_suggestion_service.SuggestTravelAssetsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/transports/base.pyi index 7f109c0d5..309661c01 100644 --- a/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/transports/base.pyi @@ -14,12 +14,12 @@ class TravelAssetSuggestionServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class TravelAssetSuggestionServiceTransport(abc.ABC): self, ) -> Callable[ [travel_asset_suggestion_service.SuggestTravelAssetsRequest], - Union[ - travel_asset_suggestion_service.SuggestTravelAssetsResponse, - Awaitable[travel_asset_suggestion_service.SuggestTravelAssetsResponse], - ], + travel_asset_suggestion_service.SuggestTravelAssetsResponse | Awaitable[travel_asset_suggestion_service.SuggestTravelAssetsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/transports/grpc.pyi index a89cd61e8..7d60931e8 100644 --- a/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/travel_asset_suggestion_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class TravelAssetSuggestionServiceGrpcTransport(TravelAssetSuggestionServiceTran self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/user_data_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/user_data_service/client.pyi index 70f7066b0..3220cdf92 100644 --- a/google-stubs/ads/googleads/v15/services/services/user_data_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/user_data_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import UserDataServiceTransport class UserDataServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[UserDataServiceTransport]: ... + cls, label: str | None = None + ) -> type[UserDataServiceTransport]: ... class UserDataServiceClient(metaclass=UserDataServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,36 +32,36 @@ class UserDataServiceClient(metaclass=UserDataServiceClientMeta): @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, UserDataServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | UserDataServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def upload_user_data( self, - request: Optional[Union[user_data_service.UploadUserDataRequest, dict]] = None, + request: user_data_service.UploadUserDataRequest | dict | None = None, *, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> user_data_service.UploadUserDataResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/user_data_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/user_data_service/transports/base.pyi index c14b96050..07dce68f8 100644 --- a/google-stubs/ads/googleads/v15/services/services/user_data_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/user_data_service/transports/base.pyi @@ -14,12 +14,12 @@ class UserDataServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class UserDataServiceTransport(abc.ABC): self, ) -> Callable[ [user_data_service.UploadUserDataRequest], - Union[ - user_data_service.UploadUserDataResponse, - Awaitable[user_data_service.UploadUserDataResponse], - ], + user_data_service.UploadUserDataResponse | Awaitable[user_data_service.UploadUserDataResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/user_data_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/user_data_service/transports/grpc.pyi index cffd52894..a4a77f37e 100644 --- a/google-stubs/ads/googleads/v15/services/services/user_data_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/user_data_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class UserDataServiceGrpcTransport(UserDataServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/google-stubs/ads/googleads/v15/services/services/user_list_service/client.pyi b/google-stubs/ads/googleads/v15/services/services/user_list_service/client.pyi index a64c7d33e..f885d1f76 100644 --- a/google-stubs/ads/googleads/v15/services/services/user_list_service/client.pyi +++ b/google-stubs/ads/googleads/v15/services/services/user_list_service/client.pyi @@ -14,8 +14,8 @@ from .transports.base import UserListServiceTransport class UserListServiceClientMeta(type): def get_transport_class( - cls, label: Optional[str] = None - ) -> Type[UserListServiceTransport]: ... + cls, label: str | None = None + ) -> type[UserListServiceTransport]: ... class UserListServiceClient(metaclass=UserListServiceClientMeta): DEFAULT_ENDPOINT: str @@ -32,44 +32,42 @@ class UserListServiceClient(metaclass=UserListServiceClientMeta): @staticmethod def user_list_path(customer_id: str, user_list_id: str) -> str: ... @staticmethod - def parse_user_list_path(path: str) -> Dict[str, str]: ... + def parse_user_list_path(path: str) -> dict[str, str]: ... @staticmethod def common_billing_account_path(billing_account: str) -> str: ... @staticmethod - def parse_common_billing_account_path(path: str) -> Dict[str, str]: ... + def parse_common_billing_account_path(path: str) -> dict[str, str]: ... @staticmethod def common_folder_path(folder: str) -> str: ... @staticmethod - def parse_common_folder_path(path: str) -> Dict[str, str]: ... + def parse_common_folder_path(path: str) -> dict[str, str]: ... @staticmethod def common_organization_path(organization: str) -> str: ... @staticmethod - def parse_common_organization_path(path: str) -> Dict[str, str]: ... + def parse_common_organization_path(path: str) -> dict[str, str]: ... @staticmethod def common_project_path(project: str) -> str: ... @staticmethod - def parse_common_project_path(path: str) -> Dict[str, str]: ... + def parse_common_project_path(path: str) -> dict[str, str]: ... @staticmethod def common_location_path(project: str, location: str) -> str: ... @staticmethod - def parse_common_location_path(path: str) -> Dict[str, str]: ... + def parse_common_location_path(path: str) -> dict[str, str]: ... def __init__( self, *, - credentials: Optional[ga_credentials.Credentials] = None, - transport: Optional[Union[str, UserListServiceTransport]] = None, - client_options: Optional[Union[client_options_lib.ClientOptions, dict]] = None, + credentials: ga_credentials.Credentials | None = None, + transport: str | UserListServiceTransport | None = None, + client_options: client_options_lib.ClientOptions | dict | None = None, client_info: gapic_v1.client_info.ClientInfo = ... ) -> None: ... def mutate_user_lists( self, - request: Optional[Union[user_list_service.MutateUserListsRequest, dict]] = None, + request: user_list_service.MutateUserListsRequest | dict | None = None, *, - customer_id: Optional[str] = None, - operations: Optional[ - MutableSequence[user_list_service.UserListOperation] - ] = None, - retry: Union[retries.Retry, gapic_v1.method._MethodDefault] = ..., - timeout: Union[float, object] = ..., - metadata: Sequence[Tuple[str, str]] = () + customer_id: str | None = None, + operations: MutableSequence[user_list_service.UserListOperation] | None = None, + retry: retries.Retry | gapic_v1.method._MethodDefault = ..., + timeout: float | object = ..., + metadata: Sequence[tuple[str, str]] = () ) -> user_list_service.MutateUserListsResponse: ... diff --git a/google-stubs/ads/googleads/v15/services/services/user_list_service/transports/base.pyi b/google-stubs/ads/googleads/v15/services/services/user_list_service/transports/base.pyi index 701562767..f986904ad 100644 --- a/google-stubs/ads/googleads/v15/services/services/user_list_service/transports/base.pyi +++ b/google-stubs/ads/googleads/v15/services/services/user_list_service/transports/base.pyi @@ -14,12 +14,12 @@ class UserListServiceTransport(abc.ABC): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False, + always_use_jwt_access: bool | None = False, **kwargs ) -> None: ... def close(self) -> None: ... @@ -28,8 +28,5 @@ class UserListServiceTransport(abc.ABC): self, ) -> Callable[ [user_list_service.MutateUserListsRequest], - Union[ - user_list_service.MutateUserListsResponse, - Awaitable[user_list_service.MutateUserListsResponse], - ], + user_list_service.MutateUserListsResponse | Awaitable[user_list_service.MutateUserListsResponse], ]: ... diff --git a/google-stubs/ads/googleads/v15/services/services/user_list_service/transports/grpc.pyi b/google-stubs/ads/googleads/v15/services/services/user_list_service/transports/grpc.pyi index 3c2aca9d4..e55c5f3bc 100644 --- a/google-stubs/ads/googleads/v15/services/services/user_list_service/transports/grpc.pyi +++ b/google-stubs/ads/googleads/v15/services/services/user_list_service/transports/grpc.pyi @@ -13,26 +13,26 @@ class UserListServiceGrpcTransport(UserListServiceTransport): self, *, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - channel: Optional[grpc.Channel] = None, - api_mtls_endpoint: Optional[str] = None, - client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None, - client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + channel: grpc.Channel | None = None, + api_mtls_endpoint: str | None = None, + client_cert_source: Callable[[], tuple[bytes, bytes]] | None = None, + ssl_channel_credentials: grpc.ChannelCredentials | None = None, + client_cert_source_for_mtls: Callable[[], tuple[bytes, bytes]] | None = None, + quota_project_id: str | None = None, client_info: gapic_v1.client_info.ClientInfo = ..., - always_use_jwt_access: Optional[bool] = False + always_use_jwt_access: bool | None = False ) -> None: ... @classmethod def create_channel( cls, host: str = "googleads.googleapis.com", - credentials: Optional[ga_credentials.Credentials] = None, - credentials_file: Optional[str] = None, - scopes: Optional[Sequence[str]] = None, - quota_project_id: Optional[str] = None, + credentials: ga_credentials.Credentials | None = None, + credentials_file: str | None = None, + scopes: Sequence[str] | None = None, + quota_project_id: str | None = None, **kwargs ) -> grpc.Channel: ... @property diff --git a/pyproject.toml b/pyproject.toml index 8e3057f43..5ea3aedb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ mypy = {version = "^1.7.0", python = "^3.8"} black = {version = "^23.11.0", python = "^3.8"} isort = {version = "^5.12.0", python = "^3.8"} stubdefaulter = "^0.1.0" +ruff = "^0.1.5" [tool.isort] profile = "black" @@ -35,6 +36,9 @@ known_first_party = "google.ads.googleads" combine_as_imports = true float_to_top = true +[tool.ruff.lint] +select = ["UP"] + [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api"