google-cloud-bigquery-analytics_hub-v1 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,6 +113,27 @@ module Google
113
113
  "services/#{service}"
114
114
  end
115
115
 
116
+ ##
117
+ # Create a fully-qualified QueryTemplate resource string.
118
+ #
119
+ # The resource will be in the following format:
120
+ #
121
+ # `projects/{project}/locations/{location}/dataExchanges/{data_exchange}/queryTemplates/{query_template}`
122
+ #
123
+ # @param project [String]
124
+ # @param location [String]
125
+ # @param data_exchange [String]
126
+ # @param query_template [String]
127
+ #
128
+ # @return [::String]
129
+ def query_template_path project:, location:, data_exchange:, query_template:
130
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
131
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
132
+ raise ::ArgumentError, "data_exchange cannot contain /" if data_exchange.to_s.include? "/"
133
+
134
+ "projects/#{project}/locations/#{location}/dataExchanges/#{data_exchange}/queryTemplates/#{query_template}"
135
+ end
136
+
116
137
  ##
117
138
  # Create a fully-qualified Routine resource string.
118
139
  #