-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new parameters in FlexTemplateRuntimeEnvironment fix: added goo…
…gle.api.http annotations to RPCs Committer: @alexander-fenster PiperOrigin-RevId: 425662603 Source-Link: googleapis/googleapis@9d0fe54 Source-Link: googleapis/googleapis-gen@f427d78 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuRGF0YWZsb3cuVjFCZXRhMy8uT3dsQm90LnlhbWwiLCJoIjoiZjQyN2Q3OGU3OGRjYmMyYmQ3OTkxYWYyODMzMTA4ZjFkZDJiYzEzZSJ9
- Loading branch information
1 parent
99cdb6d
commit cecc732
Showing
71 changed files
with
45,372 additions
and
0 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
...ow.V1Beta3/Google.Cloud.Dataflow.V1Beta3.Snippets/FlexTemplatesServiceClientSnippets.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,63 @@ | ||
// Copyright 2022 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 Google.Cloud.Dataflow.V1Beta3.Snippets | ||
{ | ||
using System.Threading.Tasks; | ||
|
||
/// <summary>Generated snippets.</summary> | ||
public sealed class GeneratedFlexTemplatesServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for LaunchFlexTemplate</summary> | ||
public void LaunchFlexTemplateRequestObject() | ||
{ | ||
// Snippet: LaunchFlexTemplate(LaunchFlexTemplateRequest, CallSettings) | ||
// Create client | ||
FlexTemplatesServiceClient flexTemplatesServiceClient = FlexTemplatesServiceClient.Create(); | ||
// Initialize request argument(s) | ||
LaunchFlexTemplateRequest request = new LaunchFlexTemplateRequest | ||
{ | ||
ProjectId = "", | ||
LaunchParameter = new LaunchFlexTemplateParameter(), | ||
Location = "", | ||
ValidateOnly = false, | ||
}; | ||
// Make the request | ||
LaunchFlexTemplateResponse response = flexTemplatesServiceClient.LaunchFlexTemplate(request); | ||
// End snippet | ||
} | ||
|
||
/// <summary>Snippet for LaunchFlexTemplateAsync</summary> | ||
public async Task LaunchFlexTemplateRequestObjectAsync() | ||
{ | ||
// Snippet: LaunchFlexTemplateAsync(LaunchFlexTemplateRequest, CallSettings) | ||
// Additional: LaunchFlexTemplateAsync(LaunchFlexTemplateRequest, CancellationToken) | ||
// Create client | ||
FlexTemplatesServiceClient flexTemplatesServiceClient = await FlexTemplatesServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
LaunchFlexTemplateRequest request = new LaunchFlexTemplateRequest | ||
{ | ||
ProjectId = "", | ||
LaunchParameter = new LaunchFlexTemplateParameter(), | ||
Location = "", | ||
ValidateOnly = false, | ||
}; | ||
// Make the request | ||
LaunchFlexTemplateResponse response = await flexTemplatesServiceClient.LaunchFlexTemplateAsync(request); | ||
// End snippet | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...eta3/Google.Cloud.Dataflow.V1Beta3.Snippets/Google.Cloud.Dataflow.V1Beta3.Snippets.csproj
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,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>netcoreapp3.1;net461</TargetFrameworks> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="../Google.Cloud.Dataflow.V1Beta3/Google.Cloud.Dataflow.V1Beta3.csproj" /> | ||
<PackageReference Include="System.Linq.Async" Version="5.0.0" /> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.