-
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.
docs:fixed formatting of some documentation
feat:add Builds API feat:add Service Mesh configuration to Services feat:add GPU configuration to Services feat:add INGRESS_TRAFFIC_NONE to Services feat:add ServiceScaling to Services PiperOrigin-RevId: 681696446 Source-Link: googleapis/googleapis@4fe2139 Source-Link: googleapis/googleapis-gen@cb5e78c Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuUnVuLlYyLy5Pd2xCb3QueWFtbCIsImgiOiJjYjVlNzhjM2M0NzhmODFhOGM4MTNhZjU4ODc3NTdkYzY5MjA1MmYzIn0=
- Loading branch information
1 parent
79a1fc7
commit b72b1d8
Showing
17 changed files
with
4,461 additions
and
271 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
...gle.Cloud.Run.V2.GeneratedSnippets/BuildsClient.SubmitBuildRequestObjectAsyncSnippet.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,55 @@ | ||
// Copyright 2024 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! | ||
|
||
#pragma warning disable CS8981 | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
// [START run_v2_generated_Builds_SubmitBuild_async] | ||
using System.Threading.Tasks; | ||
using gcrv = Google.Cloud.Run.V2; | ||
|
||
public sealed partial class GeneratedBuildsClientSnippets | ||
{ | ||
/// <summary>Snippet for SubmitBuildAsync</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 SubmitBuildRequestObjectAsync() | ||
{ | ||
// Create client | ||
gcrv::BuildsClient buildsClient = await gcrv::BuildsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
gcrv::SubmitBuildRequest request = new gcrv::SubmitBuildRequest | ||
{ | ||
Parent = "", | ||
StorageSource = new gcrv::StorageSource(), | ||
ImageUri = "", | ||
BuildpackBuild = new gcrv::SubmitBuildRequest.Types.BuildpacksBuild(), | ||
ServiceAccount = "", | ||
WorkerPoolAsWorkerPoolName = gcrv::WorkerPoolName.FromProjectLocationWorkerPool("[PROJECT]", "[LOCATION]", "[WORKER_POOL]"), | ||
Tags = { "", }, | ||
}; | ||
// Make the request | ||
gcrv::SubmitBuildResponse response = await buildsClient.SubmitBuildAsync(request); | ||
} | ||
} | ||
// [END run_v2_generated_Builds_SubmitBuild_async] | ||
} |
52 changes: 52 additions & 0 deletions
52
...2/Google.Cloud.Run.V2.GeneratedSnippets/BuildsClient.SubmitBuildRequestObjectSnippet.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,52 @@ | ||
// Copyright 2024 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 run_v2_generated_Builds_SubmitBuild_sync] | ||
using Google.Cloud.Run.V2; | ||
|
||
public sealed partial class GeneratedBuildsClientSnippets | ||
{ | ||
/// <summary>Snippet for SubmitBuild</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 SubmitBuildRequestObject() | ||
{ | ||
// Create client | ||
BuildsClient buildsClient = BuildsClient.Create(); | ||
// Initialize request argument(s) | ||
SubmitBuildRequest request = new SubmitBuildRequest | ||
{ | ||
Parent = "", | ||
StorageSource = new StorageSource(), | ||
ImageUri = "", | ||
BuildpackBuild = new SubmitBuildRequest.Types.BuildpacksBuild(), | ||
ServiceAccount = "", | ||
WorkerPoolAsWorkerPoolName = WorkerPoolName.FromProjectLocationWorkerPool("[PROJECT]", "[LOCATION]", "[WORKER_POOL]"), | ||
Tags = { "", }, | ||
}; | ||
// Make the request | ||
SubmitBuildResponse response = buildsClient.SubmitBuild(request); | ||
} | ||
} | ||
// [END run_v2_generated_Builds_SubmitBuild_sync] | ||
} |
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
72 changes: 72 additions & 0 deletions
72
apis/Google.Cloud.Run.V2/Google.Cloud.Run.V2.Snippets/BuildsClientSnippets.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,72 @@ | ||
// Copyright 2024 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! | ||
|
||
#pragma warning disable CS8981 | ||
|
||
namespace GoogleCSharpSnippets | ||
{ | ||
using System.Threading.Tasks; | ||
using gcrv = Google.Cloud.Run.V2; | ||
|
||
/// <summary>Generated snippets.</summary> | ||
public sealed class AllGeneratedBuildsClientSnippets | ||
{ | ||
/// <summary>Snippet for SubmitBuild</summary> | ||
public void SubmitBuildRequestObject() | ||
{ | ||
// Snippet: SubmitBuild(SubmitBuildRequest, CallSettings) | ||
// Create client | ||
gcrv::BuildsClient buildsClient = gcrv::BuildsClient.Create(); | ||
// Initialize request argument(s) | ||
gcrv::SubmitBuildRequest request = new gcrv::SubmitBuildRequest | ||
{ | ||
Parent = "", | ||
StorageSource = new gcrv::StorageSource(), | ||
ImageUri = "", | ||
BuildpackBuild = new gcrv::SubmitBuildRequest.Types.BuildpacksBuild(), | ||
ServiceAccount = "", | ||
WorkerPoolAsWorkerPoolName = gcrv::WorkerPoolName.FromProjectLocationWorkerPool("[PROJECT]", "[LOCATION]", "[WORKER_POOL]"), | ||
Tags = { "", }, | ||
}; | ||
// Make the request | ||
gcrv::SubmitBuildResponse response = buildsClient.SubmitBuild(request); | ||
// End snippet | ||
} | ||
|
||
/// <summary>Snippet for SubmitBuildAsync</summary> | ||
public async Task SubmitBuildRequestObjectAsync() | ||
{ | ||
// Snippet: SubmitBuildAsync(SubmitBuildRequest, CallSettings) | ||
// Additional: SubmitBuildAsync(SubmitBuildRequest, CancellationToken) | ||
// Create client | ||
gcrv::BuildsClient buildsClient = await gcrv::BuildsClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
gcrv::SubmitBuildRequest request = new gcrv::SubmitBuildRequest | ||
{ | ||
Parent = "", | ||
StorageSource = new gcrv::StorageSource(), | ||
ImageUri = "", | ||
BuildpackBuild = new gcrv::SubmitBuildRequest.Types.BuildpacksBuild(), | ||
ServiceAccount = "", | ||
WorkerPoolAsWorkerPoolName = gcrv::WorkerPoolName.FromProjectLocationWorkerPool("[PROJECT]", "[LOCATION]", "[WORKER_POOL]"), | ||
Tags = { "", }, | ||
}; | ||
// Make the request | ||
gcrv::SubmitBuildResponse response = await buildsClient.SubmitBuildAsync(request); | ||
// End snippet | ||
} | ||
} | ||
} |
Oops, something went wrong.