google-cloud-bigquery-reservation-v1 1.7.0 → 1.9.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.
@@ -118,6 +118,25 @@ module Google
118
118
  "projects/#{project}/locations/#{location}/reservations/#{reservation}"
119
119
  end
120
120
 
121
+ ##
122
+ # Create a fully-qualified ReservationGroup resource string.
123
+ #
124
+ # The resource will be in the following format:
125
+ #
126
+ # `projects/{project}/locations/{location}/reservationGroups/{reservation_group}`
127
+ #
128
+ # @param project [String]
129
+ # @param location [String]
130
+ # @param reservation_group [String]
131
+ #
132
+ # @return [::String]
133
+ def reservation_group_path project:, location:, reservation_group:
134
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
135
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
136
+
137
+ "projects/#{project}/locations/#{location}/reservationGroups/#{reservation_group}"
138
+ end
139
+
121
140
  extend self
122
141
  end
123
142
  end