-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Mark all fields
Optional
for ContainerImageSignagure
proto
PiperOrigin-RevId: 553825354 Source-Link: googleapis/googleapis@3c5285c Source-Link: googleapis/googleapis-gen@e5d02a7 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQ29uZmlkZW50aWFsQ29tcHV0aW5nLlYxLy5Pd2xCb3QueWFtbCIsImgiOiJlNWQwMmE3ZDdlOWFlOTYxZTFlYzk4YjBiYWM5Nzg1ZjEwYzBmMGI4In0=
- Loading branch information
1 parent
564e32f
commit 00709c0
Showing
20 changed files
with
5,382 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...mputing.V1.GeneratedSnippets/ConfidentialComputingClient.CreateChallengeAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_async_flattened] | ||
using Google.Cloud.ConfidentialComputing.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedConfidentialComputingClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateChallengeAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task CreateChallengeAsync() | ||
{ | ||
// Create client | ||
ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]/locations/[LOCATION]"; | ||
Challenge challenge = new Challenge(); | ||
// Make the request | ||
Challenge response = await confidentialComputingClient.CreateChallengeAsync(parent, challenge); | ||
} | ||
} | ||
// [END confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_async_flattened] | ||
} |
49 changes: 49 additions & 0 deletions
49
...neratedSnippets/ConfidentialComputingClient.CreateChallengeRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_async] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.ConfidentialComputing.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedConfidentialComputingClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateChallengeAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task CreateChallengeRequestObjectAsync() | ||
{ | ||
// Create client | ||
ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
CreateChallengeRequest request = new CreateChallengeRequest | ||
{ | ||
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
Challenge = new Challenge(), | ||
}; | ||
// Make the request | ||
Challenge response = await confidentialComputingClient.CreateChallengeAsync(request); | ||
} | ||
} | ||
// [END confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_async] | ||
} |
48 changes: 48 additions & 0 deletions
48
...V1.GeneratedSnippets/ConfidentialComputingClient.CreateChallengeRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_sync] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.ConfidentialComputing.V1; | ||
|
||
public sealed partial class GeneratedConfidentialComputingClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateChallenge</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void CreateChallengeRequestObject() | ||
{ | ||
// Create client | ||
ConfidentialComputingClient confidentialComputingClient = ConfidentialComputingClient.Create(); | ||
// Initialize request argument(s) | ||
CreateChallengeRequest request = new CreateChallengeRequest | ||
{ | ||
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"), | ||
Challenge = new Challenge(), | ||
}; | ||
// Make the request | ||
Challenge response = confidentialComputingClient.CreateChallenge(request); | ||
} | ||
} | ||
// [END confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_sync] | ||
} |
46 changes: 46 additions & 0 deletions
46
...neratedSnippets/ConfidentialComputingClient.CreateChallengeResourceNamesAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_async_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.ConfidentialComputing.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedConfidentialComputingClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateChallengeAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task CreateChallengeResourceNamesAsync() | ||
{ | ||
// Create client | ||
ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
Challenge challenge = new Challenge(); | ||
// Make the request | ||
Challenge response = await confidentialComputingClient.CreateChallengeAsync(parent, challenge); | ||
} | ||
} | ||
// [END confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_async_flattened_resourceNames] | ||
} |
45 changes: 45 additions & 0 deletions
45
...V1.GeneratedSnippets/ConfidentialComputingClient.CreateChallengeResourceNamesSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_sync_flattened_resourceNames] | ||
using Google.Api.Gax.ResourceNames; | ||
using Google.Cloud.ConfidentialComputing.V1; | ||
|
||
public sealed partial class GeneratedConfidentialComputingClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateChallenge</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void CreateChallengeResourceNames() | ||
{ | ||
// Create client | ||
ConfidentialComputingClient confidentialComputingClient = ConfidentialComputingClient.Create(); | ||
// Initialize request argument(s) | ||
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"); | ||
Challenge challenge = new Challenge(); | ||
// Make the request | ||
Challenge response = confidentialComputingClient.CreateChallenge(parent, challenge); | ||
} | ||
} | ||
// [END confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_sync_flattened_resourceNames] | ||
} |
44 changes: 44 additions & 0 deletions
44
...ialComputing.V1.GeneratedSnippets/ConfidentialComputingClient.CreateChallengeSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_sync_flattened] | ||
using Google.Cloud.ConfidentialComputing.V1; | ||
|
||
public sealed partial class GeneratedConfidentialComputingClientSnippets | ||
{ | ||
/// <summary>Snippet for CreateChallenge</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void CreateChallenge() | ||
{ | ||
// Create client | ||
ConfidentialComputingClient confidentialComputingClient = ConfidentialComputingClient.Create(); | ||
// Initialize request argument(s) | ||
string parent = "projects/[PROJECT]/locations/[LOCATION]"; | ||
Challenge challenge = new Challenge(); | ||
// Make the request | ||
Challenge response = confidentialComputingClient.CreateChallenge(parent, challenge); | ||
} | ||
} | ||
// [END confidentialcomputing_v1_generated_ConfidentialComputing_CreateChallenge_sync_flattened] | ||
} |
51 changes: 51 additions & 0 deletions
51
...ratedSnippets/ConfidentialComputingClient.VerifyAttestationRequestObjectAsyncSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START confidentialcomputing_v1_generated_ConfidentialComputing_VerifyAttestation_async] | ||
using Google.Cloud.ConfidentialComputing.V1; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedConfidentialComputingClientSnippets | ||
{ | ||
/// <summary>Snippet for VerifyAttestationAsync</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public async Task VerifyAttestationRequestObjectAsync() | ||
{ | ||
// Create client | ||
ConfidentialComputingClient confidentialComputingClient = await ConfidentialComputingClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
VerifyAttestationRequest request = new VerifyAttestationRequest | ||
{ | ||
ChallengeAsChallengeName = ChallengeName.FromProjectLocationUuid("[PROJECT]", "[LOCATION]", "[UUID]"), | ||
GcpCredentials = new GcpCredentials(), | ||
TpmAttestation = new TpmAttestation(), | ||
ConfidentialSpaceInfo = new ConfidentialSpaceInfo(), | ||
TokenOptions = new TokenOptions(), | ||
}; | ||
// Make the request | ||
VerifyAttestationResponse response = await confidentialComputingClient.VerifyAttestationAsync(request); | ||
} | ||
} | ||
// [END confidentialcomputing_v1_generated_ConfidentialComputing_VerifyAttestation_async] | ||
} |
50 changes: 50 additions & 0 deletions
50
....GeneratedSnippets/ConfidentialComputingClient.VerifyAttestationRequestObjectSnippet.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated code. DO NOT EDIT! | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START confidentialcomputing_v1_generated_ConfidentialComputing_VerifyAttestation_sync] | ||
using Google.Cloud.ConfidentialComputing.V1; | ||
|
||
public sealed partial class GeneratedConfidentialComputingClientSnippets | ||
{ | ||
/// <summary>Snippet for VerifyAttestation</summary> | ||
/// <remarks> | ||
/// This snippet has been automatically generated and should be regarded as a code template only. | ||
/// It will require modifications to work: | ||
/// - It may require correct/in-range values for request initialization. | ||
/// - It may require specifying regional endpoints when creating the service client as shown in | ||
/// https://cloud.google.com/dotnet/docs/reference/help/client-configuration#endpoint. | ||
/// </remarks> | ||
public void VerifyAttestationRequestObject() | ||
{ | ||
// Create client | ||
ConfidentialComputingClient confidentialComputingClient = ConfidentialComputingClient.Create(); | ||
// Initialize request argument(s) | ||
VerifyAttestationRequest request = new VerifyAttestationRequest | ||
{ | ||
ChallengeAsChallengeName = ChallengeName.FromProjectLocationUuid("[PROJECT]", "[LOCATION]", "[UUID]"), | ||
GcpCredentials = new GcpCredentials(), | ||
TpmAttestation = new TpmAttestation(), | ||
ConfidentialSpaceInfo = new ConfidentialSpaceInfo(), | ||
TokenOptions = new TokenOptions(), | ||
}; | ||
// Make the request | ||
VerifyAttestationResponse response = confidentialComputingClient.VerifyAttestation(request); | ||
} | ||
} | ||
// [END confidentialcomputing_v1_generated_ConfidentialComputing_VerifyAttestation_sync] | ||
} |
Oops, something went wrong.