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.
-
#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.
-
#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.
-
#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 |
#attribution_settings_path(property:) ⇒ ::String
Create a fully-qualified AttributionSettings resource string.
The resource will be in the following format:
properties/{property}/attributionSettings
90 91 92 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 90 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}
105 106 107 108 109 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 105 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}
122 123 124 125 126 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 122 def big_query_link_path property:, bigquery_link: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/bigQueryLinks/#{bigquery_link}" 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}
139 140 141 142 143 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 139 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}
156 157 158 159 160 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 156 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}
173 174 175 176 177 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 173 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
189 190 191 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 189 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
203 204 205 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 203 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}
218 219 220 221 222 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 218 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}
235 236 237 238 239 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 235 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}
252 253 254 255 256 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 252 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
269 270 271 272 273 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 269 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 |
#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}
286 287 288 289 290 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 286 def property:, expanded_data_set: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/expandedDataSets/#{expanded_data_set}" 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}
303 304 305 306 307 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 303 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
320 321 322 323 324 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 320 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}
337 338 339 340 341 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 337 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
353 354 355 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 353 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}
369 370 371 372 373 374 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 369 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}
386 387 388 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 386 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}
401 402 403 404 405 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 401 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.
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 427 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 |