Module: Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb
Overview
Path helper methods for the AnalyticsAdminService API.
Instance Method Summary collapse
-
#access_binding_path(**args) ⇒ ::String
Create a fully-qualified AccessBinding resource string.
-
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
-
#ad_sense_link_path(property:, adsense_link:) ⇒ ::String
Create a fully-qualified AdSenseLink resource string.
-
#attribution_settings_path(property:) ⇒ ::String
Create a fully-qualified AttributionSettings resource string.
-
#audience_path(property:, audience:) ⇒ ::String
Create a fully-qualified Audience resource string.
-
#big_query_link_path(property:, bigquery_link:) ⇒ ::String
Create a fully-qualified BigQueryLink resource string.
-
#channel_group_path(property:, channel_group:) ⇒ ::String
Create a fully-qualified ChannelGroup resource string.
-
#conversion_event_path(property:, conversion_event:) ⇒ ::String
Create a fully-qualified ConversionEvent resource string.
-
#custom_dimension_path(property:, custom_dimension:) ⇒ ::String
Create a fully-qualified CustomDimension resource string.
-
#custom_metric_path(property:, custom_metric:) ⇒ ::String
Create a fully-qualified CustomMetric resource string.
-
#data_retention_settings_path(property:) ⇒ ::String
Create a fully-qualified DataRetentionSettings resource string.
-
#data_sharing_settings_path(account:) ⇒ ::String
Create a fully-qualified DataSharingSettings resource string.
-
#data_stream_path(property:, data_stream:) ⇒ ::String
Create a fully-qualified DataStream resource string.
-
#display_video360_advertiser_link_path(property:, display_video_360_advertiser_link:) ⇒ ::String
Create a fully-qualified DisplayVideo360AdvertiserLink resource string.
-
#display_video360_advertiser_link_proposal_path(property:, display_video_360_advertiser_link_proposal:) ⇒ ::String
Create a fully-qualified DisplayVideo360AdvertiserLinkProposal resource string.
-
#enhanced_measurement_settings_path(property:, data_stream:) ⇒ ::String
Create a fully-qualified EnhancedMeasurementSettings resource string.
-
#event_create_rule_path(property:, data_stream:, event_create_rule:) ⇒ ::String
Create a fully-qualified EventCreateRule resource string.
-
#expanded_data_set_path(property:, expanded_data_set:) ⇒ ::String
Create a fully-qualified ExpandedDataSet resource string.
-
#firebase_link_path(property:, firebase_link:) ⇒ ::String
Create a fully-qualified FirebaseLink resource string.
-
#global_site_tag_path(property:, data_stream:) ⇒ ::String
Create a fully-qualified GlobalSiteTag resource string.
-
#google_ads_link_path(property:, google_ads_link:) ⇒ ::String
Create a fully-qualified GoogleAdsLink resource string.
-
#google_signals_settings_path(property:) ⇒ ::String
Create a fully-qualified GoogleSignalsSettings resource string.
-
#measurement_protocol_secret_path(property:, data_stream:, measurement_protocol_secret:) ⇒ ::String
Create a fully-qualified MeasurementProtocolSecret resource string.
-
#property_path(property:) ⇒ ::String
Create a fully-qualified Property resource string.
-
#search_ads360_link_path(property:, search_ads_360_link:) ⇒ ::String
Create a fully-qualified SearchAds360Link resource string.
-
#user_link_path(**args) ⇒ ::String
Create a fully-qualified UserLink resource string.
Instance Method Details
#access_binding_path(account: , access_binding: ) ⇒ ::String #access_binding_path(property: , access_binding: ) ⇒ ::String
Create a fully-qualified AccessBinding resource string.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 47 def access_binding_path **args resources = { "access_binding:account" => (proc do |account:, access_binding:| raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/accessBindings/#{access_binding}" end), "access_binding:property" => (proc do |property:, access_binding:| raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/accessBindings/#{access_binding}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
The resource will be in the following format:
accounts/{account}
76 77 78 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 76 def account_path account: "accounts/#{account}" end |
#ad_sense_link_path(property:, adsense_link:) ⇒ ::String
Create a fully-qualified AdSenseLink resource string.
The resource will be in the following format:
properties/{property}/adSenseLinks/{adsense_link}
91 92 93 94 95 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 91 def ad_sense_link_path property:, adsense_link: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/adSenseLinks/#{adsense_link}" end |
#attribution_settings_path(property:) ⇒ ::String
Create a fully-qualified AttributionSettings resource string.
The resource will be in the following format:
properties/{property}/attributionSettings
107 108 109 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 107 def attribution_settings_path property: "properties/#{property}/attributionSettings" end |
#audience_path(property:, audience:) ⇒ ::String
Create a fully-qualified Audience resource string.
The resource will be in the following format:
properties/{property}/audiences/{audience}
122 123 124 125 126 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 122 def audience_path property:, audience: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/audiences/#{audience}" end |
#big_query_link_path(property:, bigquery_link:) ⇒ ::String
Create a fully-qualified BigQueryLink resource string.
The resource will be in the following format:
properties/{property}/bigQueryLinks/{bigquery_link}
139 140 141 142 143 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 139 def big_query_link_path property:, bigquery_link: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/bigQueryLinks/#{bigquery_link}" end |
#channel_group_path(property:, channel_group:) ⇒ ::String
Create a fully-qualified ChannelGroup resource string.
The resource will be in the following format:
properties/{property}/channelGroups/{channel_group}
156 157 158 159 160 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 156 def channel_group_path property:, channel_group: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/channelGroups/#{channel_group}" end |
#conversion_event_path(property:, conversion_event:) ⇒ ::String
Create a fully-qualified ConversionEvent resource string.
The resource will be in the following format:
properties/{property}/conversionEvents/{conversion_event}
173 174 175 176 177 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 173 def conversion_event_path property:, conversion_event: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/conversionEvents/#{conversion_event}" end |
#custom_dimension_path(property:, custom_dimension:) ⇒ ::String
Create a fully-qualified CustomDimension resource string.
The resource will be in the following format:
properties/{property}/customDimensions/{custom_dimension}
190 191 192 193 194 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 190 def custom_dimension_path property:, custom_dimension: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/customDimensions/#{custom_dimension}" end |
#custom_metric_path(property:, custom_metric:) ⇒ ::String
Create a fully-qualified CustomMetric resource string.
The resource will be in the following format:
properties/{property}/customMetrics/{custom_metric}
207 208 209 210 211 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 207 def custom_metric_path property:, custom_metric: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/customMetrics/#{custom_metric}" end |
#data_retention_settings_path(property:) ⇒ ::String
Create a fully-qualified DataRetentionSettings resource string.
The resource will be in the following format:
properties/{property}/dataRetentionSettings
223 224 225 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 223 def data_retention_settings_path property: "properties/#{property}/dataRetentionSettings" end |
#data_sharing_settings_path(account:) ⇒ ::String
Create a fully-qualified DataSharingSettings resource string.
The resource will be in the following format:
accounts/{account}/dataSharingSettings
237 238 239 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 237 def data_sharing_settings_path account: "accounts/#{account}/dataSharingSettings" end |
#data_stream_path(property:, data_stream:) ⇒ ::String
Create a fully-qualified DataStream resource string.
The resource will be in the following format:
properties/{property}/dataStreams/{data_stream}
252 253 254 255 256 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 252 def data_stream_path property:, data_stream: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/dataStreams/#{data_stream}" end |
#display_video360_advertiser_link_path(property:, display_video_360_advertiser_link:) ⇒ ::String
Create a fully-qualified DisplayVideo360AdvertiserLink resource string.
The resource will be in the following format:
properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}
269 270 271 272 273 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 269 def display_video360_advertiser_link_path property:, display_video_360_advertiser_link: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/displayVideo360AdvertiserLinks/#{display_video_360_advertiser_link}" end |
#display_video360_advertiser_link_proposal_path(property:, display_video_360_advertiser_link_proposal:) ⇒ ::String
Create a fully-qualified DisplayVideo360AdvertiserLinkProposal resource string.
The resource will be in the following format:
properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}
286 287 288 289 290 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 286 def display_video360_advertiser_link_proposal_path property:, display_video_360_advertiser_link_proposal: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/displayVideo360AdvertiserLinkProposals/#{display_video_360_advertiser_link_proposal}" end |
#enhanced_measurement_settings_path(property:, data_stream:) ⇒ ::String
Create a fully-qualified EnhancedMeasurementSettings resource string.
The resource will be in the following format:
properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
303 304 305 306 307 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 303 def enhanced_measurement_settings_path property:, data_stream: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/dataStreams/#{data_stream}/enhancedMeasurementSettings" end |
#event_create_rule_path(property:, data_stream:, event_create_rule:) ⇒ ::String
Create a fully-qualified EventCreateRule resource string.
The resource will be in the following format:
properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
321 322 323 324 325 326 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 321 def event_create_rule_path property:, data_stream:, event_create_rule: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" "properties/#{property}/dataStreams/#{data_stream}/eventCreateRules/#{event_create_rule}" end |
#expanded_data_set_path(property:, expanded_data_set:) ⇒ ::String
Create a fully-qualified ExpandedDataSet resource string.
The resource will be in the following format:
properties/{property}/expandedDataSets/{expanded_data_set}
339 340 341 342 343 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 339 def property:, expanded_data_set: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/expandedDataSets/#{}" end |
#firebase_link_path(property:, firebase_link:) ⇒ ::String
Create a fully-qualified FirebaseLink resource string.
The resource will be in the following format:
properties/{property}/firebaseLinks/{firebase_link}
356 357 358 359 360 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 356 def firebase_link_path property:, firebase_link: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/firebaseLinks/#{firebase_link}" end |
#global_site_tag_path(property:, data_stream:) ⇒ ::String
Create a fully-qualified GlobalSiteTag resource string.
The resource will be in the following format:
properties/{property}/dataStreams/{data_stream}/globalSiteTag
373 374 375 376 377 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 373 def global_site_tag_path property:, data_stream: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/dataStreams/#{data_stream}/globalSiteTag" end |
#google_ads_link_path(property:, google_ads_link:) ⇒ ::String
Create a fully-qualified GoogleAdsLink resource string.
The resource will be in the following format:
properties/{property}/googleAdsLinks/{google_ads_link}
390 391 392 393 394 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 390 def google_ads_link_path property:, google_ads_link: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/googleAdsLinks/#{google_ads_link}" end |
#google_signals_settings_path(property:) ⇒ ::String
Create a fully-qualified GoogleSignalsSettings resource string.
The resource will be in the following format:
properties/{property}/googleSignalsSettings
406 407 408 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 406 def google_signals_settings_path property: "properties/#{property}/googleSignalsSettings" end |
#measurement_protocol_secret_path(property:, data_stream:, measurement_protocol_secret:) ⇒ ::String
Create a fully-qualified MeasurementProtocolSecret resource string.
The resource will be in the following format:
properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}
422 423 424 425 426 427 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 422 def measurement_protocol_secret_path property:, data_stream:, measurement_protocol_secret: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" raise ::ArgumentError, "data_stream cannot contain /" if data_stream.to_s.include? "/" "properties/#{property}/dataStreams/#{data_stream}/measurementProtocolSecrets/#{measurement_protocol_secret}" end |
#property_path(property:) ⇒ ::String
Create a fully-qualified Property resource string.
The resource will be in the following format:
properties/{property}
439 440 441 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 439 def property_path property: "properties/#{property}" end |
#search_ads360_link_path(property:, search_ads_360_link:) ⇒ ::String
Create a fully-qualified SearchAds360Link resource string.
The resource will be in the following format:
properties/{property}/searchAds360Links/{search_ads_360_link}
454 455 456 457 458 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 454 def search_ads360_link_path property:, search_ads_360_link: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/searchAds360Links/#{search_ads_360_link}" end |
#user_link_path(account: , user_link: ) ⇒ ::String #user_link_path(property: , user_link: ) ⇒ ::String
Create a fully-qualified UserLink resource string.
480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 480 def user_link_path **args resources = { "account:user_link" => (proc do |account:, user_link:| raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" "accounts/#{account}/userLinks/#{user_link}" end), "property:user_link" => (proc do |property:, user_link:| raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/userLinks/#{user_link}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |