@google-ads/admanager 0.4.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -0
- package/build/protos/google/ads/admanager/v1/ad_break_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +44 -0
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +62 -0
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +238 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +7 -7
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +222 -6
- package/build/protos/google/ads/admanager/v1/application_messages.proto +47 -0
- package/build/protos/google/ads/admanager/v1/application_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +49 -0
- package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/browser_language_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/browser_messages.proto +51 -0
- package/build/protos/google/ads/admanager/v1/browser_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +41 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +50 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +44 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +61 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +130 -0
- package/build/protos/google/ads/admanager/v1/company_messages.proto +14 -12
- package/build/protos/google/ads/admanager/v1/company_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/contact_enums.proto +57 -0
- package/build/protos/google/ads/admanager/v1/contact_messages.proto +45 -2
- package/build/protos/google/ads/admanager/v1/contact_service.proto +244 -0
- package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +53 -0
- package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/content_label_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/content_label_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/content_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/content_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +63 -0
- package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +253 -0
- package/build/protos/google/ads/admanager/v1/creative_template_service.proto +130 -0
- package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +47 -0
- package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +5 -2
- package/build/protos/google/ads/admanager/v1/custom_field_service.proto +185 -3
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +7 -6
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +191 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +9 -9
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/device_capability_service.proto +130 -0
- package/build/protos/google/ads/admanager/v1/device_category_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +46 -0
- package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +131 -0
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +47 -0
- package/build/protos/google/ads/admanager/v1/geo_target_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/goal.proto +57 -0
- package/build/protos/google/ads/admanager/v1/goal_enums.proto +129 -0
- package/build/protos/google/ads/admanager/v1/line_item_enums.proto +86 -0
- package/build/protos/google/ads/admanager/v1/line_item_messages.proto +93 -0
- package/build/protos/google/ads/admanager/v1/line_item_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +48 -0
- package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +54 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +55 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +133 -0
- package/build/protos/google/ads/admanager/v1/network_messages.proto +8 -8
- package/build/protos/google/ads/admanager/v1/network_service.proto +32 -1
- package/build/protos/google/ads/admanager/v1/operating_system_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/order_messages.proto +11 -10
- package/build/protos/google/ads/admanager/v1/order_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/placement_service.proto +220 -3
- package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/private_auction_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/report_definition.proto +13347 -0
- package/build/protos/google/ads/admanager/v1/report_messages.proto +124 -3411
- package/build/protos/google/ads/admanager/v1/report_service.proto +10 -8
- package/build/protos/google/ads/admanager/v1/report_value.proto +73 -0
- package/build/protos/google/ads/admanager/v1/role_service.proto +3 -2
- package/build/protos/google/ads/admanager/v1/site_enums.proto +72 -0
- package/build/protos/google/ads/admanager/v1/site_messages.proto +77 -0
- package/build/protos/google/ads/admanager/v1/site_service.proto +295 -0
- package/build/protos/google/ads/admanager/v1/targeting.proto +311 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +3 -0
- package/build/protos/google/ads/admanager/v1/team_enums.proto +62 -0
- package/build/protos/google/ads/admanager/v1/team_messages.proto +30 -0
- package/build/protos/google/ads/admanager/v1/team_service.proto +303 -0
- package/build/protos/google/ads/admanager/v1/web_property.proto +54 -0
- package/build/protos/protos.d.ts +34075 -11179
- package/build/protos/protos.js +102857 -43311
- package/build/protos/protos.json +11142 -3881
- package/build/src/index.d.ts +61 -1
- package/build/src/index.js +43 -3
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +465 -0
- package/build/src/v1/ad_break_service_client.js +659 -1
- package/build/src/v1/ad_break_service_client.js.map +1 -1
- package/build/src/v1/ad_break_service_proto_list.json +54 -1
- package/build/src/v1/ad_review_center_ad_service_client.d.ts +1634 -0
- package/build/src/v1/ad_review_center_ad_service_client.js +2327 -0
- package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -0
- package/build/src/v1/ad_review_center_ad_service_client_config.json +38 -0
- package/build/src/v1/ad_review_center_ad_service_proto_list.json +127 -0
- package/build/src/v1/ad_unit_service_client.d.ts +667 -12
- package/build/src/v1/ad_unit_service_client.js +966 -56
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_client_config.json +28 -0
- package/build/src/v1/ad_unit_service_proto_list.json +54 -1
- package/build/src/v1/application_service_client.d.ts +1369 -0
- package/build/src/v1/application_service_client.js +2027 -0
- package/build/src/v1/application_service_client.js.map +1 -0
- package/build/src/v1/application_service_client_config.json +34 -0
- package/build/src/v1/application_service_proto_list.json +127 -0
- package/build/src/v1/audience_segment_service_client.d.ts +1369 -0
- package/build/src/v1/audience_segment_service_client.js +2027 -0
- package/build/src/v1/audience_segment_service_client.js.map +1 -0
- package/build/src/v1/audience_segment_service_client_config.json +34 -0
- package/build/src/v1/audience_segment_service_proto_list.json +127 -0
- package/build/src/v1/bandwidth_group_service_client.d.ts +471 -6
- package/build/src/v1/bandwidth_group_service_client.js +663 -5
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
- package/build/src/v1/bandwidth_group_service_proto_list.json +54 -1
- package/build/src/v1/browser_language_service_client.d.ts +1369 -0
- package/build/src/v1/browser_language_service_client.js +2027 -0
- package/build/src/v1/browser_language_service_client.js.map +1 -0
- package/build/src/v1/browser_language_service_client_config.json +34 -0
- package/build/src/v1/browser_language_service_proto_list.json +127 -0
- package/build/src/v1/browser_service_client.d.ts +1369 -0
- package/build/src/v1/browser_service_client.js +2027 -0
- package/build/src/v1/browser_service_client.js.map +1 -0
- package/build/src/v1/browser_service_client_config.json +34 -0
- package/build/src/v1/browser_service_proto_list.json +127 -0
- package/build/src/v1/cms_metadata_key_service_client.d.ts +1369 -0
- package/build/src/v1/cms_metadata_key_service_client.js +2027 -0
- package/build/src/v1/cms_metadata_key_service_client.js.map +1 -0
- package/build/src/v1/cms_metadata_key_service_client_config.json +34 -0
- package/build/src/v1/cms_metadata_key_service_proto_list.json +127 -0
- package/build/src/v1/cms_metadata_value_service_client.d.ts +1369 -0
- package/build/src/v1/cms_metadata_value_service_client.js +2027 -0
- package/build/src/v1/cms_metadata_value_service_client.js.map +1 -0
- package/build/src/v1/cms_metadata_value_service_client_config.json +34 -0
- package/build/src/v1/cms_metadata_value_service_proto_list.json +127 -0
- package/build/src/v1/company_service_client.d.ts +471 -6
- package/build/src/v1/company_service_client.js +663 -5
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +54 -1
- package/build/src/v1/contact_service_client.d.ts +1480 -0
- package/build/src/v1/contact_service_client.js +2171 -0
- package/build/src/v1/contact_service_client.js.map +1 -0
- package/build/src/v1/contact_service_client_config.json +50 -0
- package/build/src/v1/contact_service_proto_list.json +127 -0
- package/build/src/v1/content_bundle_service_client.d.ts +1369 -0
- package/build/src/v1/content_bundle_service_client.js +2027 -0
- package/build/src/v1/content_bundle_service_client.js.map +1 -0
- package/build/src/v1/content_bundle_service_client_config.json +34 -0
- package/build/src/v1/content_bundle_service_proto_list.json +127 -0
- package/build/src/v1/content_label_service_client.d.ts +1369 -0
- package/build/src/v1/content_label_service_client.js +2027 -0
- package/build/src/v1/content_label_service_client.js.map +1 -0
- package/build/src/v1/content_label_service_client_config.json +34 -0
- package/build/src/v1/content_label_service_proto_list.json +127 -0
- package/build/src/v1/content_service_client.d.ts +1369 -0
- package/build/src/v1/content_service_client.js +2027 -0
- package/build/src/v1/content_service_client.js.map +1 -0
- package/build/src/v1/content_service_client_config.json +34 -0
- package/build/src/v1/content_service_proto_list.json +127 -0
- package/build/src/v1/creative_template_service_client.d.ts +1369 -0
- package/build/src/v1/creative_template_service_client.js +2027 -0
- package/build/src/v1/creative_template_service_client.js.map +1 -0
- package/build/src/v1/creative_template_service_client_config.json +34 -0
- package/build/src/v1/creative_template_service_proto_list.json +127 -0
- package/build/src/v1/custom_field_service_client.d.ts +634 -6
- package/build/src/v1/custom_field_service_client.js +880 -6
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_client_config.json +24 -0
- package/build/src/v1/custom_field_service_proto_list.json +54 -1
- package/build/src/v1/custom_targeting_key_service_client.d.ts +631 -0
- package/build/src/v1/custom_targeting_key_service_client.js +876 -2
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_client_config.json +24 -0
- package/build/src/v1/custom_targeting_key_service_proto_list.json +54 -1
- package/build/src/v1/custom_targeting_value_service_client.d.ts +465 -0
- package/build/src/v1/custom_targeting_value_service_client.js +659 -1
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +54 -1
- package/build/src/v1/device_capability_service_client.d.ts +1369 -0
- package/build/src/v1/device_capability_service_client.js +2027 -0
- package/build/src/v1/device_capability_service_client.js.map +1 -0
- package/build/src/v1/device_capability_service_client_config.json +34 -0
- package/build/src/v1/device_capability_service_proto_list.json +127 -0
- package/build/src/v1/device_category_service_client.d.ts +468 -3
- package/build/src/v1/device_category_service_client.js +661 -3
- package/build/src/v1/device_category_service_client.js.map +1 -1
- package/build/src/v1/device_category_service_proto_list.json +54 -1
- package/build/src/v1/device_manufacturer_service_client.d.ts +1370 -0
- package/build/src/v1/device_manufacturer_service_client.js +2027 -0
- package/build/src/v1/device_manufacturer_service_client.js.map +1 -0
- package/build/src/v1/device_manufacturer_service_client_config.json +34 -0
- package/build/src/v1/device_manufacturer_service_proto_list.json +127 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +465 -0
- package/build/src/v1/entity_signals_mapping_service_client.js +659 -1
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +54 -1
- package/build/src/v1/gapic_metadata.json +1200 -6
- package/build/src/v1/geo_target_service_client.d.ts +471 -6
- package/build/src/v1/geo_target_service_client.js +663 -5
- package/build/src/v1/geo_target_service_client.js.map +1 -1
- package/build/src/v1/geo_target_service_proto_list.json +54 -1
- package/build/src/v1/index.d.ts +20 -0
- package/build/src/v1/index.js +42 -2
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/line_item_service_client.d.ts +1369 -0
- package/build/src/v1/line_item_service_client.js +2027 -0
- package/build/src/v1/line_item_service_client.js.map +1 -0
- package/build/src/v1/line_item_service_client_config.json +34 -0
- package/build/src/v1/line_item_service_proto_list.json +127 -0
- package/build/src/v1/mobile_carrier_service_client.d.ts +1369 -0
- package/build/src/v1/mobile_carrier_service_client.js +2027 -0
- package/build/src/v1/mobile_carrier_service_client.js.map +1 -0
- package/build/src/v1/mobile_carrier_service_client_config.json +34 -0
- package/build/src/v1/mobile_carrier_service_proto_list.json +127 -0
- package/build/src/v1/mobile_device_service_client.d.ts +1369 -0
- package/build/src/v1/mobile_device_service_client.js +2027 -0
- package/build/src/v1/mobile_device_service_client.js.map +1 -0
- package/build/src/v1/mobile_device_service_client_config.json +34 -0
- package/build/src/v1/mobile_device_service_proto_list.json +127 -0
- package/build/src/v1/mobile_device_submodel_service_client.d.ts +1376 -0
- package/build/src/v1/mobile_device_submodel_service_client.js +2031 -0
- package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -0
- package/build/src/v1/mobile_device_submodel_service_client_config.json +34 -0
- package/build/src/v1/mobile_device_submodel_service_proto_list.json +127 -0
- package/build/src/v1/network_service_client.d.ts +555 -12
- package/build/src/v1/network_service_client.js +757 -16
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +54 -1
- package/build/src/v1/operating_system_service_client.d.ts +468 -3
- package/build/src/v1/operating_system_service_client.js +661 -3
- package/build/src/v1/operating_system_service_client.js.map +1 -1
- package/build/src/v1/operating_system_service_proto_list.json +54 -1
- package/build/src/v1/operating_system_version_service_client.d.ts +468 -3
- package/build/src/v1/operating_system_version_service_client.js +661 -3
- package/build/src/v1/operating_system_version_service_client.js.map +1 -1
- package/build/src/v1/operating_system_version_service_proto_list.json +54 -1
- package/build/src/v1/order_service_client.d.ts +471 -6
- package/build/src/v1/order_service_client.js +663 -5
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +54 -1
- package/build/src/v1/placement_service_client.d.ts +662 -6
- package/build/src/v1/placement_service_client.js +962 -52
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_client_config.json +28 -0
- package/build/src/v1/placement_service_proto_list.json +54 -1
- package/build/src/v1/private_auction_deal_service_client.d.ts +468 -3
- package/build/src/v1/private_auction_deal_service_client.js +661 -3
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
- package/build/src/v1/private_auction_deal_service_proto_list.json +54 -1
- package/build/src/v1/private_auction_service_client.d.ts +468 -3
- package/build/src/v1/private_auction_service_client.js +661 -3
- package/build/src/v1/private_auction_service_client.js.map +1 -1
- package/build/src/v1/private_auction_service_proto_list.json +54 -1
- package/build/src/v1/programmatic_buyer_service_client.d.ts +465 -0
- package/build/src/v1/programmatic_buyer_service_client.js +659 -1
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
- package/build/src/v1/programmatic_buyer_service_proto_list.json +54 -1
- package/build/src/v1/report_service_client.d.ts +485 -17
- package/build/src/v1/report_service_client.js +669 -9
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +54 -1
- package/build/src/v1/role_service_client.d.ts +471 -3
- package/build/src/v1/role_service_client.js +663 -3
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +54 -1
- package/build/src/v1/site_service_client.d.ts +1530 -0
- package/build/src/v1/site_service_client.js +2243 -0
- package/build/src/v1/site_service_client.js.map +1 -0
- package/build/src/v1/site_service_client_config.json +58 -0
- package/build/src/v1/site_service_proto_list.json +127 -0
- package/build/src/v1/taxonomy_category_service_client.d.ts +465 -0
- package/build/src/v1/taxonomy_category_service_client.js +659 -1
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +54 -1
- package/build/src/v1/team_service_client.d.ts +1532 -0
- package/build/src/v1/team_service_client.js +2243 -0
- package/build/src/v1/team_service_client.js.map +1 -0
- package/build/src/v1/team_service_client_config.json +58 -0
- package/build/src/v1/team_service_proto_list.json +127 -0
- package/build/src/v1/user_service_client.d.ts +465 -0
- package/build/src/v1/user_service_client.js +659 -1
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +54 -1
- package/package.json +10 -2
- package/LICENSE +0 -202
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2026 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -168,18 +168,35 @@ class NetworkServiceClient {
|
|
|
168
168
|
// Create useful helper objects for these.
|
|
169
169
|
this.pathTemplates = {
|
|
170
170
|
adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
|
|
171
|
+
adReviewCenterAdPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}'),
|
|
171
172
|
adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
|
|
173
|
+
applicationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/applications/{application}'),
|
|
174
|
+
audienceSegmentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/audienceSegments/{audience_segment}'),
|
|
172
175
|
bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
|
|
176
|
+
browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
|
|
177
|
+
browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
|
|
178
|
+
cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
|
|
179
|
+
cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
|
|
173
180
|
companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
|
|
174
181
|
contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
|
|
182
|
+
contentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/content/{content}'),
|
|
183
|
+
contentBundlePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentBundles/{content_bundle}'),
|
|
184
|
+
contentLabelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentLabels/{content_label}'),
|
|
185
|
+
creativeTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeTemplates/{creative_template}'),
|
|
175
186
|
customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
|
|
176
187
|
customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
|
|
177
188
|
customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
|
|
189
|
+
deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
|
|
178
190
|
deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
|
|
191
|
+
deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
|
|
179
192
|
entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
|
|
180
193
|
geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
|
|
181
194
|
labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
|
|
195
|
+
lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
|
|
182
196
|
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
197
|
+
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
198
|
+
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
199
|
+
mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
|
|
183
200
|
networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
|
|
184
201
|
operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
|
|
185
202
|
operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
|
|
@@ -190,9 +207,17 @@ class NetworkServiceClient {
|
|
|
190
207
|
programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
|
|
191
208
|
reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
|
|
192
209
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
210
|
+
sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
|
|
193
211
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
194
212
|
teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
|
|
195
213
|
userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
|
|
214
|
+
webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
|
|
215
|
+
};
|
|
216
|
+
// Some of the methods on this service return "paged" results,
|
|
217
|
+
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
218
|
+
// pages). Denote the keys used for pagination and results.
|
|
219
|
+
this.descriptors.page = {
|
|
220
|
+
listNetworks: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'networks')
|
|
196
221
|
};
|
|
197
222
|
// Put together the default options sent with requests.
|
|
198
223
|
this._defaults = this._gaxGrpc.constructSettings('google.ads.admanager.v1.NetworkService', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|
|
@@ -238,7 +263,8 @@ class NetworkServiceClient {
|
|
|
238
263
|
}, (err) => () => {
|
|
239
264
|
throw err;
|
|
240
265
|
});
|
|
241
|
-
const descriptor =
|
|
266
|
+
const descriptor = this.descriptors.page[methodName] ||
|
|
267
|
+
undefined;
|
|
242
268
|
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback);
|
|
243
269
|
this.innerApiCalls[methodName] = apiCall;
|
|
244
270
|
}
|
|
@@ -354,25 +380,101 @@ class NetworkServiceClient {
|
|
|
354
380
|
options.otherArgs = options.otherArgs || {};
|
|
355
381
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
356
382
|
this.initialize().catch(err => { throw err; });
|
|
357
|
-
this._log.info('listNetworks request %j', request);
|
|
358
383
|
const wrappedCallback = callback
|
|
359
|
-
? (error,
|
|
360
|
-
this._log.info('listNetworks
|
|
361
|
-
callback(error,
|
|
384
|
+
? (error, values, nextPageRequest, rawResponse) => {
|
|
385
|
+
this._log.info('listNetworks values %j', values);
|
|
386
|
+
callback(error, values, nextPageRequest, rawResponse); // We verified callback above.
|
|
362
387
|
}
|
|
363
388
|
: undefined;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
371
|
-
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
372
|
-
}
|
|
373
|
-
throw error;
|
|
389
|
+
this._log.info('listNetworks request %j', request);
|
|
390
|
+
return this.innerApiCalls
|
|
391
|
+
.listNetworks(request, options, wrappedCallback)
|
|
392
|
+
?.then(([response, input, output]) => {
|
|
393
|
+
this._log.info('listNetworks values %j', response);
|
|
394
|
+
return [response, input, output];
|
|
374
395
|
});
|
|
375
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* Equivalent to `listNetworks`, but returns a NodeJS Stream object.
|
|
399
|
+
* @param {Object} request
|
|
400
|
+
* The request object that will be sent.
|
|
401
|
+
* @param {number} [request.pageSize]
|
|
402
|
+
* Optional. The maximum number of `Network`s to return. The service may
|
|
403
|
+
* return fewer than this value. If unspecified, at most 50 `Network`s will be
|
|
404
|
+
* returned. The maximum value is 1000; values greater than 1000 will be
|
|
405
|
+
* coerced to 1000.
|
|
406
|
+
* @param {string} [request.pageToken]
|
|
407
|
+
* Optional. A page token, received from a previous `ListNetworks` call.
|
|
408
|
+
* Provide this to retrieve the subsequent page.
|
|
409
|
+
*
|
|
410
|
+
* When paginating, all other parameters provided to `ListNetworks` must match
|
|
411
|
+
* the call that provided the page token.
|
|
412
|
+
* @param {number} [request.skip]
|
|
413
|
+
* Optional. Number of individual resources to skip while paginating.
|
|
414
|
+
* @param {object} [options]
|
|
415
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
416
|
+
* @returns {Stream}
|
|
417
|
+
* An object stream which emits an object representing {@link protos.google.ads.admanager.v1.Network|Network} on 'data' event.
|
|
418
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
419
|
+
* times as needed. Note that it can affect your quota.
|
|
420
|
+
* We recommend using `listNetworksAsync()`
|
|
421
|
+
* method described below for async iteration which you can stop as needed.
|
|
422
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
423
|
+
* for more details and examples.
|
|
424
|
+
*/
|
|
425
|
+
listNetworksStream(request, options) {
|
|
426
|
+
request = request || {};
|
|
427
|
+
options = options || {};
|
|
428
|
+
options.otherArgs = options.otherArgs || {};
|
|
429
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
430
|
+
const defaultCallSettings = this._defaults['listNetworks'];
|
|
431
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
432
|
+
this.initialize().catch(err => { throw err; });
|
|
433
|
+
this._log.info('listNetworks stream %j', request);
|
|
434
|
+
return this.descriptors.page.listNetworks.createStream(this.innerApiCalls.listNetworks, request, callSettings);
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Equivalent to `listNetworks`, but returns an iterable object.
|
|
438
|
+
*
|
|
439
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
440
|
+
* @param {Object} request
|
|
441
|
+
* The request object that will be sent.
|
|
442
|
+
* @param {number} [request.pageSize]
|
|
443
|
+
* Optional. The maximum number of `Network`s to return. The service may
|
|
444
|
+
* return fewer than this value. If unspecified, at most 50 `Network`s will be
|
|
445
|
+
* returned. The maximum value is 1000; values greater than 1000 will be
|
|
446
|
+
* coerced to 1000.
|
|
447
|
+
* @param {string} [request.pageToken]
|
|
448
|
+
* Optional. A page token, received from a previous `ListNetworks` call.
|
|
449
|
+
* Provide this to retrieve the subsequent page.
|
|
450
|
+
*
|
|
451
|
+
* When paginating, all other parameters provided to `ListNetworks` must match
|
|
452
|
+
* the call that provided the page token.
|
|
453
|
+
* @param {number} [request.skip]
|
|
454
|
+
* Optional. Number of individual resources to skip while paginating.
|
|
455
|
+
* @param {object} [options]
|
|
456
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
457
|
+
* @returns {Object}
|
|
458
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
459
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
460
|
+
* {@link protos.google.ads.admanager.v1.Network|Network}. The API will be called under the hood as needed, once per the page,
|
|
461
|
+
* so you can stop the iteration when you don't need more results.
|
|
462
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
463
|
+
* for more details and examples.
|
|
464
|
+
* @example <caption>include:samples/generated/v1/network_service.list_networks.js</caption>
|
|
465
|
+
* region_tag:admanager_v1_generated_NetworkService_ListNetworks_async
|
|
466
|
+
*/
|
|
467
|
+
listNetworksAsync(request, options) {
|
|
468
|
+
request = request || {};
|
|
469
|
+
options = options || {};
|
|
470
|
+
options.otherArgs = options.otherArgs || {};
|
|
471
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
472
|
+
const defaultCallSettings = this._defaults['listNetworks'];
|
|
473
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
474
|
+
this.initialize().catch(err => { throw err; });
|
|
475
|
+
this._log.info('listNetworks iterate %j', request);
|
|
476
|
+
return this.descriptors.page.listNetworks.asyncIterate(this.innerApiCalls['listNetworks'], request, callSettings);
|
|
477
|
+
}
|
|
376
478
|
// --------------------
|
|
377
479
|
// -- Path templates --
|
|
378
480
|
// --------------------
|
|
@@ -421,6 +523,51 @@ class NetworkServiceClient {
|
|
|
421
523
|
matchAdBreakFromAdBreakName(adBreakName) {
|
|
422
524
|
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
|
|
423
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* Return a fully-qualified adReviewCenterAd resource name string.
|
|
528
|
+
*
|
|
529
|
+
* @param {string} network_code
|
|
530
|
+
* @param {string} web_property_code
|
|
531
|
+
* @param {string} ad_review_center_ad
|
|
532
|
+
* @returns {string} Resource name string.
|
|
533
|
+
*/
|
|
534
|
+
adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
|
|
535
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.render({
|
|
536
|
+
network_code: networkCode,
|
|
537
|
+
web_property_code: webPropertyCode,
|
|
538
|
+
ad_review_center_ad: adReviewCenterAd,
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Parse the network_code from AdReviewCenterAd resource.
|
|
543
|
+
*
|
|
544
|
+
* @param {string} adReviewCenterAdName
|
|
545
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
546
|
+
* @returns {string} A string representing the network_code.
|
|
547
|
+
*/
|
|
548
|
+
matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
549
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
|
|
550
|
+
}
|
|
551
|
+
/**
|
|
552
|
+
* Parse the web_property_code from AdReviewCenterAd resource.
|
|
553
|
+
*
|
|
554
|
+
* @param {string} adReviewCenterAdName
|
|
555
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
556
|
+
* @returns {string} A string representing the web_property_code.
|
|
557
|
+
*/
|
|
558
|
+
matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
559
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* Parse the ad_review_center_ad from AdReviewCenterAd resource.
|
|
563
|
+
*
|
|
564
|
+
* @param {string} adReviewCenterAdName
|
|
565
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
566
|
+
* @returns {string} A string representing the ad_review_center_ad.
|
|
567
|
+
*/
|
|
568
|
+
matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
569
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
|
|
570
|
+
}
|
|
424
571
|
/**
|
|
425
572
|
* Return a fully-qualified adUnit resource name string.
|
|
426
573
|
*
|
|
@@ -454,6 +601,72 @@ class NetworkServiceClient {
|
|
|
454
601
|
matchAdUnitFromAdUnitName(adUnitName) {
|
|
455
602
|
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
456
603
|
}
|
|
604
|
+
/**
|
|
605
|
+
* Return a fully-qualified application resource name string.
|
|
606
|
+
*
|
|
607
|
+
* @param {string} network_code
|
|
608
|
+
* @param {string} application
|
|
609
|
+
* @returns {string} Resource name string.
|
|
610
|
+
*/
|
|
611
|
+
applicationPath(networkCode, application) {
|
|
612
|
+
return this.pathTemplates.applicationPathTemplate.render({
|
|
613
|
+
network_code: networkCode,
|
|
614
|
+
application: application,
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Parse the network_code from Application resource.
|
|
619
|
+
*
|
|
620
|
+
* @param {string} applicationName
|
|
621
|
+
* A fully-qualified path representing Application resource.
|
|
622
|
+
* @returns {string} A string representing the network_code.
|
|
623
|
+
*/
|
|
624
|
+
matchNetworkCodeFromApplicationName(applicationName) {
|
|
625
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName).network_code;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Parse the application from Application resource.
|
|
629
|
+
*
|
|
630
|
+
* @param {string} applicationName
|
|
631
|
+
* A fully-qualified path representing Application resource.
|
|
632
|
+
* @returns {string} A string representing the application.
|
|
633
|
+
*/
|
|
634
|
+
matchApplicationFromApplicationName(applicationName) {
|
|
635
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName).application;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Return a fully-qualified audienceSegment resource name string.
|
|
639
|
+
*
|
|
640
|
+
* @param {string} network_code
|
|
641
|
+
* @param {string} audience_segment
|
|
642
|
+
* @returns {string} Resource name string.
|
|
643
|
+
*/
|
|
644
|
+
audienceSegmentPath(networkCode, audienceSegment) {
|
|
645
|
+
return this.pathTemplates.audienceSegmentPathTemplate.render({
|
|
646
|
+
network_code: networkCode,
|
|
647
|
+
audience_segment: audienceSegment,
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Parse the network_code from AudienceSegment resource.
|
|
652
|
+
*
|
|
653
|
+
* @param {string} audienceSegmentName
|
|
654
|
+
* A fully-qualified path representing AudienceSegment resource.
|
|
655
|
+
* @returns {string} A string representing the network_code.
|
|
656
|
+
*/
|
|
657
|
+
matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
|
|
658
|
+
return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Parse the audience_segment from AudienceSegment resource.
|
|
662
|
+
*
|
|
663
|
+
* @param {string} audienceSegmentName
|
|
664
|
+
* A fully-qualified path representing AudienceSegment resource.
|
|
665
|
+
* @returns {string} A string representing the audience_segment.
|
|
666
|
+
*/
|
|
667
|
+
matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
|
|
668
|
+
return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
|
|
669
|
+
}
|
|
457
670
|
/**
|
|
458
671
|
* Return a fully-qualified bandwidthGroup resource name string.
|
|
459
672
|
*
|
|
@@ -487,6 +700,138 @@ class NetworkServiceClient {
|
|
|
487
700
|
matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
|
|
488
701
|
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
|
|
489
702
|
}
|
|
703
|
+
/**
|
|
704
|
+
* Return a fully-qualified browser resource name string.
|
|
705
|
+
*
|
|
706
|
+
* @param {string} network_code
|
|
707
|
+
* @param {string} browser
|
|
708
|
+
* @returns {string} Resource name string.
|
|
709
|
+
*/
|
|
710
|
+
browserPath(networkCode, browser) {
|
|
711
|
+
return this.pathTemplates.browserPathTemplate.render({
|
|
712
|
+
network_code: networkCode,
|
|
713
|
+
browser: browser,
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Parse the network_code from Browser resource.
|
|
718
|
+
*
|
|
719
|
+
* @param {string} browserName
|
|
720
|
+
* A fully-qualified path representing Browser resource.
|
|
721
|
+
* @returns {string} A string representing the network_code.
|
|
722
|
+
*/
|
|
723
|
+
matchNetworkCodeFromBrowserName(browserName) {
|
|
724
|
+
return this.pathTemplates.browserPathTemplate.match(browserName).network_code;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Parse the browser from Browser resource.
|
|
728
|
+
*
|
|
729
|
+
* @param {string} browserName
|
|
730
|
+
* A fully-qualified path representing Browser resource.
|
|
731
|
+
* @returns {string} A string representing the browser.
|
|
732
|
+
*/
|
|
733
|
+
matchBrowserFromBrowserName(browserName) {
|
|
734
|
+
return this.pathTemplates.browserPathTemplate.match(browserName).browser;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Return a fully-qualified browserLanguage resource name string.
|
|
738
|
+
*
|
|
739
|
+
* @param {string} network_code
|
|
740
|
+
* @param {string} browser_language
|
|
741
|
+
* @returns {string} Resource name string.
|
|
742
|
+
*/
|
|
743
|
+
browserLanguagePath(networkCode, browserLanguage) {
|
|
744
|
+
return this.pathTemplates.browserLanguagePathTemplate.render({
|
|
745
|
+
network_code: networkCode,
|
|
746
|
+
browser_language: browserLanguage,
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* Parse the network_code from BrowserLanguage resource.
|
|
751
|
+
*
|
|
752
|
+
* @param {string} browserLanguageName
|
|
753
|
+
* A fully-qualified path representing BrowserLanguage resource.
|
|
754
|
+
* @returns {string} A string representing the network_code.
|
|
755
|
+
*/
|
|
756
|
+
matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
|
|
757
|
+
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Parse the browser_language from BrowserLanguage resource.
|
|
761
|
+
*
|
|
762
|
+
* @param {string} browserLanguageName
|
|
763
|
+
* A fully-qualified path representing BrowserLanguage resource.
|
|
764
|
+
* @returns {string} A string representing the browser_language.
|
|
765
|
+
*/
|
|
766
|
+
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
767
|
+
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
771
|
+
*
|
|
772
|
+
* @param {string} network_code
|
|
773
|
+
* @param {string} cms_metadata_key
|
|
774
|
+
* @returns {string} Resource name string.
|
|
775
|
+
*/
|
|
776
|
+
cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
|
|
777
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
|
|
778
|
+
network_code: networkCode,
|
|
779
|
+
cms_metadata_key: cmsMetadataKey,
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Parse the network_code from CmsMetadataKey resource.
|
|
784
|
+
*
|
|
785
|
+
* @param {string} cmsMetadataKeyName
|
|
786
|
+
* A fully-qualified path representing CmsMetadataKey resource.
|
|
787
|
+
* @returns {string} A string representing the network_code.
|
|
788
|
+
*/
|
|
789
|
+
matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
|
|
790
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* Parse the cms_metadata_key from CmsMetadataKey resource.
|
|
794
|
+
*
|
|
795
|
+
* @param {string} cmsMetadataKeyName
|
|
796
|
+
* A fully-qualified path representing CmsMetadataKey resource.
|
|
797
|
+
* @returns {string} A string representing the cms_metadata_key.
|
|
798
|
+
*/
|
|
799
|
+
matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
|
|
800
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Return a fully-qualified cmsMetadataValue resource name string.
|
|
804
|
+
*
|
|
805
|
+
* @param {string} network_code
|
|
806
|
+
* @param {string} cms_metadata_value
|
|
807
|
+
* @returns {string} Resource name string.
|
|
808
|
+
*/
|
|
809
|
+
cmsMetadataValuePath(networkCode, cmsMetadataValue) {
|
|
810
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.render({
|
|
811
|
+
network_code: networkCode,
|
|
812
|
+
cms_metadata_value: cmsMetadataValue,
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Parse the network_code from CmsMetadataValue resource.
|
|
817
|
+
*
|
|
818
|
+
* @param {string} cmsMetadataValueName
|
|
819
|
+
* A fully-qualified path representing CmsMetadataValue resource.
|
|
820
|
+
* @returns {string} A string representing the network_code.
|
|
821
|
+
*/
|
|
822
|
+
matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
|
|
823
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Parse the cms_metadata_value from CmsMetadataValue resource.
|
|
827
|
+
*
|
|
828
|
+
* @param {string} cmsMetadataValueName
|
|
829
|
+
* A fully-qualified path representing CmsMetadataValue resource.
|
|
830
|
+
* @returns {string} A string representing the cms_metadata_value.
|
|
831
|
+
*/
|
|
832
|
+
matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
|
|
833
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
|
|
834
|
+
}
|
|
490
835
|
/**
|
|
491
836
|
* Return a fully-qualified company resource name string.
|
|
492
837
|
*
|
|
@@ -553,6 +898,138 @@ class NetworkServiceClient {
|
|
|
553
898
|
matchContactFromContactName(contactName) {
|
|
554
899
|
return this.pathTemplates.contactPathTemplate.match(contactName).contact;
|
|
555
900
|
}
|
|
901
|
+
/**
|
|
902
|
+
* Return a fully-qualified content resource name string.
|
|
903
|
+
*
|
|
904
|
+
* @param {string} network_code
|
|
905
|
+
* @param {string} content
|
|
906
|
+
* @returns {string} Resource name string.
|
|
907
|
+
*/
|
|
908
|
+
contentPath(networkCode, content) {
|
|
909
|
+
return this.pathTemplates.contentPathTemplate.render({
|
|
910
|
+
network_code: networkCode,
|
|
911
|
+
content: content,
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* Parse the network_code from Content resource.
|
|
916
|
+
*
|
|
917
|
+
* @param {string} contentName
|
|
918
|
+
* A fully-qualified path representing Content resource.
|
|
919
|
+
* @returns {string} A string representing the network_code.
|
|
920
|
+
*/
|
|
921
|
+
matchNetworkCodeFromContentName(contentName) {
|
|
922
|
+
return this.pathTemplates.contentPathTemplate.match(contentName).network_code;
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Parse the content from Content resource.
|
|
926
|
+
*
|
|
927
|
+
* @param {string} contentName
|
|
928
|
+
* A fully-qualified path representing Content resource.
|
|
929
|
+
* @returns {string} A string representing the content.
|
|
930
|
+
*/
|
|
931
|
+
matchContentFromContentName(contentName) {
|
|
932
|
+
return this.pathTemplates.contentPathTemplate.match(contentName).content;
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* Return a fully-qualified contentBundle resource name string.
|
|
936
|
+
*
|
|
937
|
+
* @param {string} network_code
|
|
938
|
+
* @param {string} content_bundle
|
|
939
|
+
* @returns {string} Resource name string.
|
|
940
|
+
*/
|
|
941
|
+
contentBundlePath(networkCode, contentBundle) {
|
|
942
|
+
return this.pathTemplates.contentBundlePathTemplate.render({
|
|
943
|
+
network_code: networkCode,
|
|
944
|
+
content_bundle: contentBundle,
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Parse the network_code from ContentBundle resource.
|
|
949
|
+
*
|
|
950
|
+
* @param {string} contentBundleName
|
|
951
|
+
* A fully-qualified path representing ContentBundle resource.
|
|
952
|
+
* @returns {string} A string representing the network_code.
|
|
953
|
+
*/
|
|
954
|
+
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
955
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).network_code;
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Parse the content_bundle from ContentBundle resource.
|
|
959
|
+
*
|
|
960
|
+
* @param {string} contentBundleName
|
|
961
|
+
* A fully-qualified path representing ContentBundle resource.
|
|
962
|
+
* @returns {string} A string representing the content_bundle.
|
|
963
|
+
*/
|
|
964
|
+
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
965
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).content_bundle;
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* Return a fully-qualified contentLabel resource name string.
|
|
969
|
+
*
|
|
970
|
+
* @param {string} network_code
|
|
971
|
+
* @param {string} content_label
|
|
972
|
+
* @returns {string} Resource name string.
|
|
973
|
+
*/
|
|
974
|
+
contentLabelPath(networkCode, contentLabel) {
|
|
975
|
+
return this.pathTemplates.contentLabelPathTemplate.render({
|
|
976
|
+
network_code: networkCode,
|
|
977
|
+
content_label: contentLabel,
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
* Parse the network_code from ContentLabel resource.
|
|
982
|
+
*
|
|
983
|
+
* @param {string} contentLabelName
|
|
984
|
+
* A fully-qualified path representing ContentLabel resource.
|
|
985
|
+
* @returns {string} A string representing the network_code.
|
|
986
|
+
*/
|
|
987
|
+
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
988
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).network_code;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Parse the content_label from ContentLabel resource.
|
|
992
|
+
*
|
|
993
|
+
* @param {string} contentLabelName
|
|
994
|
+
* A fully-qualified path representing ContentLabel resource.
|
|
995
|
+
* @returns {string} A string representing the content_label.
|
|
996
|
+
*/
|
|
997
|
+
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
998
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).content_label;
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* Return a fully-qualified creativeTemplate resource name string.
|
|
1002
|
+
*
|
|
1003
|
+
* @param {string} network_code
|
|
1004
|
+
* @param {string} creative_template
|
|
1005
|
+
* @returns {string} Resource name string.
|
|
1006
|
+
*/
|
|
1007
|
+
creativeTemplatePath(networkCode, creativeTemplate) {
|
|
1008
|
+
return this.pathTemplates.creativeTemplatePathTemplate.render({
|
|
1009
|
+
network_code: networkCode,
|
|
1010
|
+
creative_template: creativeTemplate,
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Parse the network_code from CreativeTemplate resource.
|
|
1015
|
+
*
|
|
1016
|
+
* @param {string} creativeTemplateName
|
|
1017
|
+
* A fully-qualified path representing CreativeTemplate resource.
|
|
1018
|
+
* @returns {string} A string representing the network_code.
|
|
1019
|
+
*/
|
|
1020
|
+
matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
|
|
1021
|
+
return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Parse the creative_template from CreativeTemplate resource.
|
|
1025
|
+
*
|
|
1026
|
+
* @param {string} creativeTemplateName
|
|
1027
|
+
* A fully-qualified path representing CreativeTemplate resource.
|
|
1028
|
+
* @returns {string} A string representing the creative_template.
|
|
1029
|
+
*/
|
|
1030
|
+
matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
|
|
1031
|
+
return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
|
|
1032
|
+
}
|
|
556
1033
|
/**
|
|
557
1034
|
* Return a fully-qualified customField resource name string.
|
|
558
1035
|
*
|
|
@@ -652,6 +1129,39 @@ class NetworkServiceClient {
|
|
|
652
1129
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
653
1130
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
654
1131
|
}
|
|
1132
|
+
/**
|
|
1133
|
+
* Return a fully-qualified deviceCapability resource name string.
|
|
1134
|
+
*
|
|
1135
|
+
* @param {string} network_code
|
|
1136
|
+
* @param {string} device_capability
|
|
1137
|
+
* @returns {string} Resource name string.
|
|
1138
|
+
*/
|
|
1139
|
+
deviceCapabilityPath(networkCode, deviceCapability) {
|
|
1140
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.render({
|
|
1141
|
+
network_code: networkCode,
|
|
1142
|
+
device_capability: deviceCapability,
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* Parse the network_code from DeviceCapability resource.
|
|
1147
|
+
*
|
|
1148
|
+
* @param {string} deviceCapabilityName
|
|
1149
|
+
* A fully-qualified path representing DeviceCapability resource.
|
|
1150
|
+
* @returns {string} A string representing the network_code.
|
|
1151
|
+
*/
|
|
1152
|
+
matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
|
|
1153
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Parse the device_capability from DeviceCapability resource.
|
|
1157
|
+
*
|
|
1158
|
+
* @param {string} deviceCapabilityName
|
|
1159
|
+
* A fully-qualified path representing DeviceCapability resource.
|
|
1160
|
+
* @returns {string} A string representing the device_capability.
|
|
1161
|
+
*/
|
|
1162
|
+
matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
|
|
1163
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
|
|
1164
|
+
}
|
|
655
1165
|
/**
|
|
656
1166
|
* Return a fully-qualified deviceCategory resource name string.
|
|
657
1167
|
*
|
|
@@ -685,6 +1195,39 @@ class NetworkServiceClient {
|
|
|
685
1195
|
matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
|
|
686
1196
|
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
|
|
687
1197
|
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Return a fully-qualified deviceManufacturer resource name string.
|
|
1200
|
+
*
|
|
1201
|
+
* @param {string} network_code
|
|
1202
|
+
* @param {string} device_manufacturer
|
|
1203
|
+
* @returns {string} Resource name string.
|
|
1204
|
+
*/
|
|
1205
|
+
deviceManufacturerPath(networkCode, deviceManufacturer) {
|
|
1206
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.render({
|
|
1207
|
+
network_code: networkCode,
|
|
1208
|
+
device_manufacturer: deviceManufacturer,
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
/**
|
|
1212
|
+
* Parse the network_code from DeviceManufacturer resource.
|
|
1213
|
+
*
|
|
1214
|
+
* @param {string} deviceManufacturerName
|
|
1215
|
+
* A fully-qualified path representing DeviceManufacturer resource.
|
|
1216
|
+
* @returns {string} A string representing the network_code.
|
|
1217
|
+
*/
|
|
1218
|
+
matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
|
|
1219
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Parse the device_manufacturer from DeviceManufacturer resource.
|
|
1223
|
+
*
|
|
1224
|
+
* @param {string} deviceManufacturerName
|
|
1225
|
+
* A fully-qualified path representing DeviceManufacturer resource.
|
|
1226
|
+
* @returns {string} A string representing the device_manufacturer.
|
|
1227
|
+
*/
|
|
1228
|
+
matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
|
|
1229
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
|
|
1230
|
+
}
|
|
688
1231
|
/**
|
|
689
1232
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
690
1233
|
*
|
|
@@ -784,6 +1327,39 @@ class NetworkServiceClient {
|
|
|
784
1327
|
matchLabelFromLabelName(labelName) {
|
|
785
1328
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
786
1329
|
}
|
|
1330
|
+
/**
|
|
1331
|
+
* Return a fully-qualified lineItem resource name string.
|
|
1332
|
+
*
|
|
1333
|
+
* @param {string} network_code
|
|
1334
|
+
* @param {string} line_item
|
|
1335
|
+
* @returns {string} Resource name string.
|
|
1336
|
+
*/
|
|
1337
|
+
lineItemPath(networkCode, lineItem) {
|
|
1338
|
+
return this.pathTemplates.lineItemPathTemplate.render({
|
|
1339
|
+
network_code: networkCode,
|
|
1340
|
+
line_item: lineItem,
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* Parse the network_code from LineItem resource.
|
|
1345
|
+
*
|
|
1346
|
+
* @param {string} lineItemName
|
|
1347
|
+
* A fully-qualified path representing LineItem resource.
|
|
1348
|
+
* @returns {string} A string representing the network_code.
|
|
1349
|
+
*/
|
|
1350
|
+
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1351
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName).network_code;
|
|
1352
|
+
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Parse the line_item from LineItem resource.
|
|
1355
|
+
*
|
|
1356
|
+
* @param {string} lineItemName
|
|
1357
|
+
* A fully-qualified path representing LineItem resource.
|
|
1358
|
+
* @returns {string} A string representing the line_item.
|
|
1359
|
+
*/
|
|
1360
|
+
matchLineItemFromLineItemName(lineItemName) {
|
|
1361
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName).line_item;
|
|
1362
|
+
}
|
|
787
1363
|
/**
|
|
788
1364
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
789
1365
|
*
|
|
@@ -817,6 +1393,105 @@ class NetworkServiceClient {
|
|
|
817
1393
|
matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
|
|
818
1394
|
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
|
|
819
1395
|
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Return a fully-qualified mobileCarrier resource name string.
|
|
1398
|
+
*
|
|
1399
|
+
* @param {string} network_code
|
|
1400
|
+
* @param {string} mobile_carrier
|
|
1401
|
+
* @returns {string} Resource name string.
|
|
1402
|
+
*/
|
|
1403
|
+
mobileCarrierPath(networkCode, mobileCarrier) {
|
|
1404
|
+
return this.pathTemplates.mobileCarrierPathTemplate.render({
|
|
1405
|
+
network_code: networkCode,
|
|
1406
|
+
mobile_carrier: mobileCarrier,
|
|
1407
|
+
});
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* Parse the network_code from MobileCarrier resource.
|
|
1411
|
+
*
|
|
1412
|
+
* @param {string} mobileCarrierName
|
|
1413
|
+
* A fully-qualified path representing MobileCarrier resource.
|
|
1414
|
+
* @returns {string} A string representing the network_code.
|
|
1415
|
+
*/
|
|
1416
|
+
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1417
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).network_code;
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* Parse the mobile_carrier from MobileCarrier resource.
|
|
1421
|
+
*
|
|
1422
|
+
* @param {string} mobileCarrierName
|
|
1423
|
+
* A fully-qualified path representing MobileCarrier resource.
|
|
1424
|
+
* @returns {string} A string representing the mobile_carrier.
|
|
1425
|
+
*/
|
|
1426
|
+
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1427
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).mobile_carrier;
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* Return a fully-qualified mobileDevice resource name string.
|
|
1431
|
+
*
|
|
1432
|
+
* @param {string} network_code
|
|
1433
|
+
* @param {string} mobile_device
|
|
1434
|
+
* @returns {string} Resource name string.
|
|
1435
|
+
*/
|
|
1436
|
+
mobileDevicePath(networkCode, mobileDevice) {
|
|
1437
|
+
return this.pathTemplates.mobileDevicePathTemplate.render({
|
|
1438
|
+
network_code: networkCode,
|
|
1439
|
+
mobile_device: mobileDevice,
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
/**
|
|
1443
|
+
* Parse the network_code from MobileDevice resource.
|
|
1444
|
+
*
|
|
1445
|
+
* @param {string} mobileDeviceName
|
|
1446
|
+
* A fully-qualified path representing MobileDevice resource.
|
|
1447
|
+
* @returns {string} A string representing the network_code.
|
|
1448
|
+
*/
|
|
1449
|
+
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1450
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).network_code;
|
|
1451
|
+
}
|
|
1452
|
+
/**
|
|
1453
|
+
* Parse the mobile_device from MobileDevice resource.
|
|
1454
|
+
*
|
|
1455
|
+
* @param {string} mobileDeviceName
|
|
1456
|
+
* A fully-qualified path representing MobileDevice resource.
|
|
1457
|
+
* @returns {string} A string representing the mobile_device.
|
|
1458
|
+
*/
|
|
1459
|
+
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1460
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).mobile_device;
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
1464
|
+
*
|
|
1465
|
+
* @param {string} network_code
|
|
1466
|
+
* @param {string} mobile_device_submodel
|
|
1467
|
+
* @returns {string} Resource name string.
|
|
1468
|
+
*/
|
|
1469
|
+
mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
|
|
1470
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
|
|
1471
|
+
network_code: networkCode,
|
|
1472
|
+
mobile_device_submodel: mobileDeviceSubmodel,
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* Parse the network_code from MobileDeviceSubmodel resource.
|
|
1477
|
+
*
|
|
1478
|
+
* @param {string} mobileDeviceSubmodelName
|
|
1479
|
+
* A fully-qualified path representing MobileDeviceSubmodel resource.
|
|
1480
|
+
* @returns {string} A string representing the network_code.
|
|
1481
|
+
*/
|
|
1482
|
+
matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
|
|
1483
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
|
|
1484
|
+
}
|
|
1485
|
+
/**
|
|
1486
|
+
* Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
|
|
1487
|
+
*
|
|
1488
|
+
* @param {string} mobileDeviceSubmodelName
|
|
1489
|
+
* A fully-qualified path representing MobileDeviceSubmodel resource.
|
|
1490
|
+
* @returns {string} A string representing the mobile_device_submodel.
|
|
1491
|
+
*/
|
|
1492
|
+
matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
|
|
1493
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
|
|
1494
|
+
}
|
|
820
1495
|
/**
|
|
821
1496
|
* Return a fully-qualified network resource name string.
|
|
822
1497
|
*
|
|
@@ -1135,6 +1810,39 @@ class NetworkServiceClient {
|
|
|
1135
1810
|
matchRoleFromRoleName(roleName) {
|
|
1136
1811
|
return this.pathTemplates.rolePathTemplate.match(roleName).role;
|
|
1137
1812
|
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Return a fully-qualified site resource name string.
|
|
1815
|
+
*
|
|
1816
|
+
* @param {string} network_code
|
|
1817
|
+
* @param {string} site
|
|
1818
|
+
* @returns {string} Resource name string.
|
|
1819
|
+
*/
|
|
1820
|
+
sitePath(networkCode, site) {
|
|
1821
|
+
return this.pathTemplates.sitePathTemplate.render({
|
|
1822
|
+
network_code: networkCode,
|
|
1823
|
+
site: site,
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
/**
|
|
1827
|
+
* Parse the network_code from Site resource.
|
|
1828
|
+
*
|
|
1829
|
+
* @param {string} siteName
|
|
1830
|
+
* A fully-qualified path representing Site resource.
|
|
1831
|
+
* @returns {string} A string representing the network_code.
|
|
1832
|
+
*/
|
|
1833
|
+
matchNetworkCodeFromSiteName(siteName) {
|
|
1834
|
+
return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
|
|
1835
|
+
}
|
|
1836
|
+
/**
|
|
1837
|
+
* Parse the site from Site resource.
|
|
1838
|
+
*
|
|
1839
|
+
* @param {string} siteName
|
|
1840
|
+
* A fully-qualified path representing Site resource.
|
|
1841
|
+
* @returns {string} A string representing the site.
|
|
1842
|
+
*/
|
|
1843
|
+
matchSiteFromSiteName(siteName) {
|
|
1844
|
+
return this.pathTemplates.sitePathTemplate.match(siteName).site;
|
|
1845
|
+
}
|
|
1138
1846
|
/**
|
|
1139
1847
|
* Return a fully-qualified taxonomyCategory resource name string.
|
|
1140
1848
|
*
|
|
@@ -1234,6 +1942,39 @@ class NetworkServiceClient {
|
|
|
1234
1942
|
matchUserFromUserName(userName) {
|
|
1235
1943
|
return this.pathTemplates.userPathTemplate.match(userName).user;
|
|
1236
1944
|
}
|
|
1945
|
+
/**
|
|
1946
|
+
* Return a fully-qualified webProperty resource name string.
|
|
1947
|
+
*
|
|
1948
|
+
* @param {string} network_code
|
|
1949
|
+
* @param {string} web_property
|
|
1950
|
+
* @returns {string} Resource name string.
|
|
1951
|
+
*/
|
|
1952
|
+
webPropertyPath(networkCode, webProperty) {
|
|
1953
|
+
return this.pathTemplates.webPropertyPathTemplate.render({
|
|
1954
|
+
network_code: networkCode,
|
|
1955
|
+
web_property: webProperty,
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1958
|
+
/**
|
|
1959
|
+
* Parse the network_code from WebProperty resource.
|
|
1960
|
+
*
|
|
1961
|
+
* @param {string} webPropertyName
|
|
1962
|
+
* A fully-qualified path representing WebProperty resource.
|
|
1963
|
+
* @returns {string} A string representing the network_code.
|
|
1964
|
+
*/
|
|
1965
|
+
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
1966
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).network_code;
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* Parse the web_property from WebProperty resource.
|
|
1970
|
+
*
|
|
1971
|
+
* @param {string} webPropertyName
|
|
1972
|
+
* A fully-qualified path representing WebProperty resource.
|
|
1973
|
+
* @returns {string} A string representing the web_property.
|
|
1974
|
+
*/
|
|
1975
|
+
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
1976
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).web_property;
|
|
1977
|
+
}
|
|
1237
1978
|
/**
|
|
1238
1979
|
* Terminate the gRPC channel and close the client.
|
|
1239
1980
|
*
|