Skip to content

Commit

Permalink
feat: new parameters in FlexTemplateRuntimeEnvironment fix: added goo…
Browse files Browse the repository at this point in the history
…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
gcf-owl-bot[bot] committed Feb 1, 2022
1 parent 99cdb6d commit cecc732
Show file tree
Hide file tree
Showing 71 changed files with 45,372 additions and 0 deletions.
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
}
}
}
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>
Loading

0 comments on commit cecc732

Please sign in to comment.