google-cloud-bigquery-reservation-v1 1.8.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/bigquery/reservation/v1/reservation_pb.rb +10 -1
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/client.rb +723 -1
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/paths.rb +19 -0
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/rest/client.rb +674 -1
- data/lib/google/cloud/bigquery/reservation/v1/reservation_service/rest/service_stub.rb +453 -0
- data/lib/google/cloud/bigquery/reservation/v1/reservation_services_pb.rb +45 -0
- data/lib/google/cloud/bigquery/reservation/v1/version.rb +1 -1
- data/proto_docs/google/cloud/bigquery/reservation/v1/reservation.rb +217 -41
- data/proto_docs/google/iam/v1/iam_policy.rb +87 -0
- data/proto_docs/google/iam/v1/options.rb +50 -0
- data/proto_docs/google/iam/v1/policy.rb +426 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +19 -1
@@ -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
|