Skip to content

Commit ebc3e3f

Browse files
feat: [ConfidentialComputing] add instance field to VerifyAttestationRequest (#9248)
* feat: add instance field to VerifyAttestationRequest PiperOrigin-RevId: 929538916 Source-Link: googleapis/googleapis@00bb3db Source-Link: googleapis/googleapis-gen@2adb922 Copy-Tag: eyJwIjoiQ29uZmlkZW50aWFsQ29tcHV0aW5nLy5Pd2xCb3QueWFtbCIsImgiOiIyYWRiOTIyNTc4OGU1NTcyOWI1MmRjNWUxYjNlYjFhZmY2ODQ3ZDJjIn0= * 🦉 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 f05f8a5 commit ebc3e3f

5 files changed

Lines changed: 94 additions & 15 deletions

File tree

ConfidentialComputing/metadata/V1/Service.php

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

ConfidentialComputing/samples/V1/ConfidentialComputingClient/list_locations.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,21 @@
3131

3232
/**
3333
* Lists information about the supported locations for this service.
34-
This method can be called in two ways:
35-
36-
* **List all public locations:** Use the path `GET /v1/locations`.
37-
* **List project-visible locations:** Use the path
38-
`GET /v1/projects/{project_id}/locations`. This may include public
39-
locations as well as private or other locations specifically visible
40-
to the project.
34+
*
35+
* This method lists locations based on the resource scope provided in
36+
* the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: *
37+
* **Global locations**: If `name` is empty, the method lists the
38+
* public locations available to all projects. * **Project-specific
39+
* locations**: If `name` follows the format
40+
* `projects/{project}`, the method lists locations visible to that
41+
* specific project. This includes public, private, or other
42+
* project-specific locations enabled for the project.
43+
*
44+
* For gRPC and client library implementations, the resource name is
45+
* passed as the `name` field. For direct service calls, the resource
46+
* name is
47+
* incorporated into the request path based on the specific service
48+
* implementation and version.
4149
*
4250
* This sample has been automatically generated and should be regarded as a code
4351
* template only. It will require modifications to work:

ConfidentialComputing/src/V1/Client/ConfidentialComputingClient.php

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,25 @@ public static function challengeName(string $project, string $location, string $
131131
]);
132132
}
133133

134+
/**
135+
* Formats a string containing the fully-qualified path to represent a instance
136+
* resource.
137+
*
138+
* @param string $project
139+
* @param string $zone
140+
* @param string $instance
141+
*
142+
* @return string The formatted instance resource.
143+
*/
144+
public static function instanceName(string $project, string $zone, string $instance): string
145+
{
146+
return self::getPathTemplate('instance')->render([
147+
'project' => $project,
148+
'zone' => $zone,
149+
'instance' => $instance,
150+
]);
151+
}
152+
134153
/**
135154
* Formats a string containing the fully-qualified path to represent a location
136155
* resource.
@@ -153,6 +172,7 @@ public static function locationName(string $project, string $location): string
153172
* The following name formats are supported:
154173
* Template: Pattern
155174
* - challenge: projects/{project}/locations/{location}/challenges/{uuid}
175+
* - instance: projects/{project}/zones/{zone}/instances/{instance}
156176
* - location: projects/{project}/locations/{location}
157177
*
158178
* The optional $template argument can be supplied to specify a particular pattern,
@@ -403,13 +423,21 @@ public function getLocation(GetLocationRequest $request, array $callOptions = []
403423

404424
/**
405425
* Lists information about the supported locations for this service.
406-
This method can be called in two ways:
407-
408-
* **List all public locations:** Use the path `GET /v1/locations`.
409-
* **List project-visible locations:** Use the path
410-
`GET /v1/projects/{project_id}/locations`. This may include public
411-
locations as well as private or other locations specifically visible
412-
to the project.
426+
*
427+
* This method lists locations based on the resource scope provided in
428+
* the [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: *
429+
* **Global locations**: If `name` is empty, the method lists the
430+
* public locations available to all projects. * **Project-specific
431+
* locations**: If `name` follows the format
432+
* `projects/{project}`, the method lists locations visible to that
433+
* specific project. This includes public, private, or other
434+
* project-specific locations enabled for the project.
435+
*
436+
* For gRPC and client library implementations, the resource name is
437+
* passed as the `name` field. For direct service calls, the resource
438+
* name is
439+
* incorporated into the request path based on the specific service
440+
* implementation and version.
413441
*
414442
* The async variant is {@see ConfidentialComputingClient::listLocationsAsync()} .
415443
*

ConfidentialComputing/src/V1/VerifyAttestationRequest.php

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

ConfidentialComputing/src/V1/resources/confidential_computing_descriptor_config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
],
108108
'templateMap' => [
109109
'challenge' => 'projects/{project}/locations/{location}/challenges/{uuid}',
110+
'instance' => 'projects/{project}/zones/{zone}/instances/{instance}',
110111
'location' => 'projects/{project}/locations/{location}',
111112
],
112113
],

0 commit comments

Comments
 (0)