Module: Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb
Overview
Path helper methods for the AnalyticsAdminService API.
Instance Method Summary collapse
-
#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.
-
#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.
-
#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.
-
#user_link_path(**args) ⇒ ::String
Create a fully-qualified UserLink resource string.
Instance Method Details
#account_path(account:) ⇒ ::String
Create a fully-qualified Account resource string.
The resource will be in the following format:
accounts/{account}
37 38 39 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 37 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
51 52 53 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 51 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}
66 67 68 69 70 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 66 def audience_path property:, audience: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/audiences/#{audience}" 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}
83 84 85 86 87 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 83 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}
100 101 102 103 104 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 100 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}
117 118 119 120 121 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 117 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
133 134 135 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 133 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
147 148 149 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 147 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}
162 163 164 165 166 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 162 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}
179 180 181 182 183 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 179 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}
196 197 198 199 200 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 196 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 |
#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}
213 214 215 216 217 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 213 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
230 231 232 233 234 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 230 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}
247 248 249 250 251 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 247 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
263 264 265 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 263 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}
279 280 281 282 283 284 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 279 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}
296 297 298 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 296 def property_path property: "properties/#{property}" end |
#user_link_path(account: , user_link: ) ⇒ ::String #user_link_path(property: , user_link: ) ⇒ ::String
Create a fully-qualified UserLink resource string.
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 320 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 |