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.
-
#android_app_data_stream_path(property:, android_app_data_stream:) ⇒ ::String
Create a fully-qualified AndroidAppDataStream resource string.
-
#data_sharing_settings_path(account:) ⇒ ::String
Create a fully-qualified DataSharingSettings resource string.
-
#enhanced_measurement_settings_path(property:, web_data_stream:) ⇒ ::String
Create a fully-qualified EnhancedMeasurementSettings resource string.
-
#firebase_link_path(property:, firebase_link:) ⇒ ::String
Create a fully-qualified FirebaseLink resource string.
-
#global_site_tag_path(property:) ⇒ ::String
Create a fully-qualified GlobalSiteTag resource string.
-
#google_ads_link_path(property:, google_ads_link:) ⇒ ::String
Create a fully-qualified GoogleAdsLink resource string.
-
#ios_app_data_stream_path(property:, ios_app_data_stream:) ⇒ ::String
Create a fully-qualified IosAppDataStream 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.
-
#web_data_stream_path(property:, web_data_stream:) ⇒ ::String
Create a fully-qualified WebDataStream 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 |
#android_app_data_stream_path(property:, android_app_data_stream:) ⇒ ::String
Create a fully-qualified AndroidAppDataStream resource string.
The resource will be in the following format:
properties/{property}/androidAppDataStreams/{android_app_data_stream}
52 53 54 55 56 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 52 def android_app_data_stream_path property:, android_app_data_stream: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/androidAppDataStreams/#{android_app_data_stream}" 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
68 69 70 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 68 def data_sharing_settings_path account: "accounts/#{account}/dataSharingSettings" end |
#enhanced_measurement_settings_path(property:, web_data_stream:) ⇒ ::String
Create a fully-qualified EnhancedMeasurementSettings resource string.
The resource will be in the following format:
properties/{property}/webDataStreams/{web_data_stream}/enhancedMeasurementSettings
83 84 85 86 87 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 83 def enhanced_measurement_settings_path property:, web_data_stream: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/webDataStreams/#{web_data_stream}/enhancedMeasurementSettings" 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}
100 101 102 103 104 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 100 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:) ⇒ ::String
Create a fully-qualified GlobalSiteTag resource string.
The resource will be in the following format:
properties/{property}/globalSiteTag
116 117 118 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 116 def global_site_tag_path property: "properties/#{property}/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}
131 132 133 134 135 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 131 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 |
#ios_app_data_stream_path(property:, ios_app_data_stream:) ⇒ ::String
Create a fully-qualified IosAppDataStream resource string.
The resource will be in the following format:
properties/{property}/iosAppDataStreams/{ios_app_data_stream}
148 149 150 151 152 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 148 def ios_app_data_stream_path property:, ios_app_data_stream: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/iosAppDataStreams/#{ios_app_data_stream}" end |
#property_path(property:) ⇒ ::String
Create a fully-qualified Property resource string.
The resource will be in the following format:
properties/{property}
164 165 166 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 164 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.
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 188 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 |
#web_data_stream_path(property:, web_data_stream:) ⇒ ::String
Create a fully-qualified WebDataStream resource string.
The resource will be in the following format:
properties/{property}/webDataStreams/{web_data_stream}
218 219 220 221 222 |
# File 'lib/google/analytics/admin/v1alpha/analytics_admin_service/paths.rb', line 218 def web_data_stream_path property:, web_data_stream: raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/" "properties/#{property}/webDataStreams/#{web_data_stream}" end |