Skip to content

Commit c4bf7c2

Browse files
fix!: Breaking change: move AwsPrincipalTagsOptions message out from TokenOptions message into the V1 namespace (googleapis#30927)
fix!: Move `AwsPrincipalTagsOptions` out from `TokenOptions` message feat: Add new `VerifyConfidentialSpace` and `VerifyConfidentialGke` rpcs and relevant fields docs: Updated comment for method `VerifyAttestation`, `VerifyAttestationRequest` and `VerifyAttestationResponse` in service `ConfidentialComputing` is changed docs: A comment for field `aws_principal_tags_options` in message `.google.cloud.confidentialcomputing.v1.TokenOptions` is changed PiperOrigin-RevId: 805000877 Source-Link: googleapis/googleapis@8727b5b Source-Link: https://github.com/googleapis/googleapis-gen/commit/59a0202c13a1d8d1b077304fe529a8ea28fd34ec Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWNvbmZpZGVudGlhbF9jb21wdXRpbmctdjEvLk93bEJvdC55YW1sIiwiaCI6IjU5YTAyMDJjMTNhMWQ4ZDFiMDc3MzA0ZmU1MjlhOGVhMjhmZDM0ZWMifQ== feat: Add new `VerifyConfidentialSpace` and `VerifyConfidentialGke` rpcs and relevant fields fix!: Move `AwsPrincipalTagsOptions` out from `TokenOptions` message docs: Updated comment for method `VerifyAttestation`, `VerifyAttestationRequest` and `VerifyAttestationResponse` in service `ConfidentialComputing` is changed docs: A comment for field `aws_principal_tags_options` in message `.google.cloud.confidentialcomputing.v1.TokenOptions` is changed PiperOrigin-RevId: 800806196 Source-Link: googleapis/googleapis@bf9ef0b Source-Link: https://github.com/googleapis/googleapis-gen/commit/4744f98a9dbf9a8ebf07f4bed5f8072382593946 Copy-Tag: eyJwIjoiZ29vZ2xlLWNsb3VkLWNvbmZpZGVudGlhbF9jb21wdXRpbmctdjEvLk93bEJvdC55YW1sIiwiaCI6IjQ3NDRmOThhOWRiZjlhOGViZjA3ZjRiZWQ1ZjgwNzIzODI1OTM5NDYifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e8642cb commit c4bf7c2

14 files changed

Lines changed: 1192 additions & 36 deletions

File tree

google-cloud-confidential_computing-v1/.owlbot-manifest.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
"snippets/Gemfile",
4141
"snippets/confidential_computing/create_challenge.rb",
4242
"snippets/confidential_computing/verify_attestation.rb",
43+
"snippets/confidential_computing/verify_confidential_gke.rb",
44+
"snippets/confidential_computing/verify_confidential_space.rb",
4345
"snippets/snippet_metadata_google.cloud.confidentialcomputing.v1.json",
4446
"test/google/cloud/confidential_computing/v1/confidential_computing_paths_test.rb",
4547
"test/google/cloud/confidential_computing/v1/confidential_computing_rest_test.rb",

google-cloud-confidential_computing-v1/gapic_metadata.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
"methods": [
2020
"verify_attestation"
2121
]
22+
},
23+
"VerifyConfidentialSpace": {
24+
"methods": [
25+
"verify_confidential_space"
26+
]
27+
},
28+
"VerifyConfidentialGke": {
29+
"methods": [
30+
"verify_confidential_gke"
31+
]
2232
}
2333
}
2434
}

google-cloud-confidential_computing-v1/google-cloud-confidential_computing-v1.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
2323

2424
gem.required_ruby_version = ">= 3.1"
2525

26-
gem.add_dependency "gapic-common", "~> 1.1"
26+
gem.add_dependency "gapic-common", "~> 1.2"
2727
gem.add_dependency "google-cloud-errors", "~> 1.0"
2828
gem.add_dependency "google-cloud-location", "~> 1.0"
2929
end

google-cloud-confidential_computing-v1/lib/google/cloud/confidential_computing/v1/confidential_computing/client.rb

Lines changed: 226 additions & 1 deletion
Large diffs are not rendered by default.

google-cloud-confidential_computing-v1/lib/google/cloud/confidential_computing/v1/confidential_computing/rest/client.rb

Lines changed: 212 additions & 1 deletion
Large diffs are not rendered by default.

google-cloud-confidential_computing-v1/lib/google/cloud/confidential_computing/v1/confidential_computing/rest/service_stub.rb

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,86 @@ def verify_attestation request_pb, options = nil
153153
end
154154
end
155155

156+
##
157+
# Baseline implementation for the verify_confidential_space REST call
158+
#
159+
# @param request_pb [::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialSpaceRequest]
160+
# A request object representing the call parameters. Required.
161+
# @param options [::Gapic::CallOptions]
162+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163+
#
164+
# @yield [result, operation] Access the result along with the TransportOperation object
165+
# @yieldparam result [::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialSpaceResponse]
166+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
167+
#
168+
# @return [::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialSpaceResponse]
169+
# A result object deserialized from the server's reply
170+
def verify_confidential_space request_pb, options = nil
171+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
172+
173+
verb, uri, query_string_params, body = ServiceStub.transcode_verify_confidential_space_request request_pb
174+
query_string_params = if query_string_params.any?
175+
query_string_params.to_h { |p| p.split "=", 2 }
176+
else
177+
{}
178+
end
179+
180+
response = @client_stub.make_http_request(
181+
verb,
182+
uri: uri,
183+
body: body || "",
184+
params: query_string_params,
185+
method_name: "verify_confidential_space",
186+
options: options
187+
)
188+
operation = ::Gapic::Rest::TransportOperation.new response
189+
result = ::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialSpaceResponse.decode_json response.body, ignore_unknown_fields: true
190+
catch :response do
191+
yield result, operation if block_given?
192+
result
193+
end
194+
end
195+
196+
##
197+
# Baseline implementation for the verify_confidential_gke REST call
198+
#
199+
# @param request_pb [::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialGkeRequest]
200+
# A request object representing the call parameters. Required.
201+
# @param options [::Gapic::CallOptions]
202+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203+
#
204+
# @yield [result, operation] Access the result along with the TransportOperation object
205+
# @yieldparam result [::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialGkeResponse]
206+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
207+
#
208+
# @return [::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialGkeResponse]
209+
# A result object deserialized from the server's reply
210+
def verify_confidential_gke request_pb, options = nil
211+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
212+
213+
verb, uri, query_string_params, body = ServiceStub.transcode_verify_confidential_gke_request request_pb
214+
query_string_params = if query_string_params.any?
215+
query_string_params.to_h { |p| p.split "=", 2 }
216+
else
217+
{}
218+
end
219+
220+
response = @client_stub.make_http_request(
221+
verb,
222+
uri: uri,
223+
body: body || "",
224+
params: query_string_params,
225+
method_name: "verify_confidential_gke",
226+
options: options
227+
)
228+
operation = ::Gapic::Rest::TransportOperation.new response
229+
result = ::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialGkeResponse.decode_json response.body, ignore_unknown_fields: true
230+
catch :response do
231+
yield result, operation if block_given?
232+
result
233+
end
234+
end
235+
156236
##
157237
# @private
158238
#
@@ -196,6 +276,50 @@ def self.transcode_verify_attestation_request request_pb
196276
)
197277
transcoder.transcode request_pb
198278
end
279+
280+
##
281+
# @private
282+
#
283+
# GRPC transcoding helper method for the verify_confidential_space REST call
284+
#
285+
# @param request_pb [::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialSpaceRequest]
286+
# A request object representing the call parameters. Required.
287+
# @return [Array(String, [String, nil], Hash{String => String})]
288+
# Uri, Body, Query string parameters
289+
def self.transcode_verify_confidential_space_request request_pb
290+
transcoder = Gapic::Rest::GrpcTranscoder.new
291+
.with_bindings(
292+
uri_method: :post,
293+
uri_template: "/v1/{challenge}:verifyConfidentialSpace",
294+
body: "*",
295+
matches: [
296+
["challenge", %r{^projects/[^/]+/locations/[^/]+/challenges/[^/]+/?$}, false]
297+
]
298+
)
299+
transcoder.transcode request_pb
300+
end
301+
302+
##
303+
# @private
304+
#
305+
# GRPC transcoding helper method for the verify_confidential_gke REST call
306+
#
307+
# @param request_pb [::Google::Cloud::ConfidentialComputing::V1::VerifyConfidentialGkeRequest]
308+
# A request object representing the call parameters. Required.
309+
# @return [Array(String, [String, nil], Hash{String => String})]
310+
# Uri, Body, Query string parameters
311+
def self.transcode_verify_confidential_gke_request request_pb
312+
transcoder = Gapic::Rest::GrpcTranscoder.new
313+
.with_bindings(
314+
uri_method: :post,
315+
uri_template: "/v1/{challenge}:verifyConfidentialGke",
316+
body: "*",
317+
matches: [
318+
["challenge", %r{^projects/[^/]+/locations/[^/]+/challenges/[^/]+/?$}, false]
319+
]
320+
)
321+
transcoder.transcode request_pb
322+
end
199323
end
200324
end
201325
end

google-cloud-confidential_computing-v1/lib/google/cloud/confidentialcomputing/v1/service_pb.rb

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-cloud-confidential_computing-v1/lib/google/cloud/confidentialcomputing/v1/service_services_pb.rb

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)