Skip to content

Commit

Permalink
docs:fixed formatting of some documentation
Browse files Browse the repository at this point in the history
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
gcf-owl-bot[bot] authored and jskeet committed Oct 7, 2024
1 parent 79a1fc7 commit b72b1d8
Show file tree
Hide file tree
Showing 17 changed files with 4,461 additions and 271 deletions.
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]
}
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]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,103 @@
]
},
"snippets": [
{
"regionTag": "run_v2_generated_Builds_SubmitBuild_sync",
"title": "SubmitBuildRequestObject",
"description": "Snippet for SubmitBuild",
"file": "BuildsClient.SubmitBuildRequestObjectSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "SubmitBuild",
"fullName": "Google.Cloud.Run.V2.BuildsClient.SubmitBuild",
"parameters": [
{
"type": "Google.Cloud.Run.V2.SubmitBuildRequest",
"name": "request"
},
{
"type": "Google.Api.Gax.Grpc.CallSettings",
"name": "callSettings"
}
],
"resultType": "Google.Cloud.Run.V2.SubmitBuildResponse",
"client": {
"shortName": "BuildsClient",
"fullName": "Google.Cloud.Run.V2.BuildsClient"
},
"method": {
"shortName": "SubmitBuild",
"fullName": "google.cloud.run.v2.Builds.SubmitBuild",
"service": {
"shortName": "Builds",
"fullName": "google.cloud.run.v2.Builds"
}
}
},
"canonical": true,
"origin": "API_DEFINITION",
"segments": [
{
"start": 20,
"end": 50,
"type": "FULL"
},
{
"start": 34,
"end": 48,
"type": "SHORT"
}
]
},
{
"regionTag": "run_v2_generated_Builds_SubmitBuild_async",
"title": "SubmitBuildRequestObjectAsync",
"description": "Snippet for SubmitBuildAsync",
"file": "BuildsClient.SubmitBuildRequestObjectAsyncSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "SubmitBuildAsync",
"fullName": "Google.Cloud.Run.V2.BuildsClient.SubmitBuildAsync",
"async": true,
"parameters": [
{
"type": "Google.Cloud.Run.V2.SubmitBuildRequest",
"name": "request"
},
{
"type": "Google.Api.Gax.Grpc.CallSettings",
"name": "callSettings"
}
],
"resultType": "System.Threading.Tasks.Task<Google.Cloud.Run.V2.SubmitBuildResponse>",
"client": {
"shortName": "BuildsClient",
"fullName": "Google.Cloud.Run.V2.BuildsClient"
},
"method": {
"shortName": "SubmitBuild",
"fullName": "google.cloud.run.v2.Builds.SubmitBuild",
"service": {
"shortName": "Builds",
"fullName": "google.cloud.run.v2.Builds"
}
}
},
"canonical": true,
"origin": "API_DEFINITION",
"segments": [
{
"start": 22,
"end": 53,
"type": "FULL"
},
{
"start": 37,
"end": 51,
"type": "SHORT"
}
]
},
{
"regionTag": "run_v2_generated_Executions_GetExecution_sync",
"title": "GetExecutionRequestObject",
Expand Down
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
}
}
}
Loading

0 comments on commit b72b1d8

Please sign in to comment.