google-analytics-data-v1beta 0.8.1 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,23 @@ module Google
24
24
  module AnalyticsData
25
25
  # Path helper methods for the AnalyticsData API.
26
26
  module Paths
27
+ ##
28
+ # Create a fully-qualified AudienceExport resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `properties/{property}/audienceExports/{audience_export}`
33
+ #
34
+ # @param property [String]
35
+ # @param audience_export [String]
36
+ #
37
+ # @return [::String]
38
+ def audience_export_path property:, audience_export:
39
+ raise ::ArgumentError, "property cannot contain /" if property.to_s.include? "/"
40
+
41
+ "properties/#{property}/audienceExports/#{audience_export}"
42
+ end
43
+
27
44
  ##
28
45
  # Create a fully-qualified Metadata resource string.
29
46
  #
@@ -38,6 +55,20 @@ module Google
38
55
  "properties/#{property}/metadata"
39
56
  end
40
57
 
58
+ ##
59
+ # Create a fully-qualified Property resource string.
60
+ #
61
+ # The resource will be in the following format:
62
+ #
63
+ # `properties/{property}`
64
+ #
65
+ # @param property [String]
66
+ #
67
+ # @return [::String]
68
+ def property_path property:
69
+ "properties/#{property}"
70
+ end
71
+
41
72
  extend self
42
73
  end
43
74
  end