Skip to content

Commit

Permalink
feat: Mark all fields Optional for ContainerImageSignagure proto
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 553825354

Source-Link: googleapis/googleapis@3c5285c

Source-Link: googleapis/googleapis-gen@e5d02a7
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuQ29uZmlkZW50aWFsQ29tcHV0aW5nLlYxLy5Pd2xCb3QueWFtbCIsImgiOiJlNWQwMmE3ZDdlOWFlOTYxZTFlYzk4YjBiYWM5Nzg1ZjEwYzBmMGI4In0=
  • Loading branch information
gcf-owl-bot[bot] committed Aug 4, 2023
1 parent 564e32f commit 00709c0
Show file tree
Hide file tree
Showing 20 changed files with 5,382 additions and 0 deletions.
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]
}
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]
}
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]
}
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]
}
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]
}
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]
}
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]
}
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]
}
Loading

0 comments on commit 00709c0

Please sign in to comment.