Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: launch signSshPublicKey in beta
PiperOrigin-RevId: 556891694 Source-Link: googleapis/googleapis@f5ccdce Source-Link: googleapis/googleapis-gen@66e1d93 Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuT3NMb2dpbi5WMUJldGEvLk93bEJvdC55YW1sIiwiaCI6IjY2ZTFkOTMzM2FhOTIxYjQyNzI3ZTE3MjRkMjhkMzhjMDA0NDU2ZDUifQ==
- Loading branch information
1 parent
db55ecf
commit 19c34de
Showing
10 changed files
with
1,142 additions
and
45 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...d.OsLogin.V1Beta.GeneratedSnippets/OsLoginServiceClient.SignSshPublicKeyAsyncSnippet.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,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 oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_async_flattened] | ||
using Google.Cloud.OsLogin.V1Beta; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedOsLoginServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for SignSshPublicKeyAsync</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 SignSshPublicKeyAsync() | ||
{ | ||
// Create client | ||
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
string parent = ""; | ||
string sshPublicKey = ""; | ||
// Make the request | ||
SignSshPublicKeyResponse response = await osLoginServiceClient.SignSshPublicKeyAsync(parent, sshPublicKey); | ||
} | ||
} | ||
// [END oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_async_flattened] | ||
} |
48 changes: 48 additions & 0 deletions
48
...eta.GeneratedSnippets/OsLoginServiceClient.SignSshPublicKeyRequestObjectAsyncSnippet.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,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 oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_async] | ||
using Google.Cloud.OsLogin.V1Beta; | ||
using System.Threading.Tasks; | ||
|
||
public sealed partial class GeneratedOsLoginServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for SignSshPublicKeyAsync</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 SignSshPublicKeyRequestObjectAsync() | ||
{ | ||
// Create client | ||
OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync(); | ||
// Initialize request argument(s) | ||
SignSshPublicKeyRequest request = new SignSshPublicKeyRequest | ||
{ | ||
SshPublicKey = "", | ||
Parent = "", | ||
}; | ||
// Make the request | ||
SignSshPublicKeyResponse response = await osLoginServiceClient.SignSshPublicKeyAsync(request); | ||
} | ||
} | ||
// [END oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_async] | ||
} |
47 changes: 47 additions & 0 deletions
47
...n.V1Beta.GeneratedSnippets/OsLoginServiceClient.SignSshPublicKeyRequestObjectSnippet.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,47 @@ | ||
// 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 oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_sync] | ||
using Google.Cloud.OsLogin.V1Beta; | ||
|
||
public sealed partial class GeneratedOsLoginServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for SignSshPublicKey</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 SignSshPublicKeyRequestObject() | ||
{ | ||
// Create client | ||
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create(); | ||
// Initialize request argument(s) | ||
SignSshPublicKeyRequest request = new SignSshPublicKeyRequest | ||
{ | ||
SshPublicKey = "", | ||
Parent = "", | ||
}; | ||
// Make the request | ||
SignSshPublicKeyResponse response = osLoginServiceClient.SignSshPublicKey(request); | ||
} | ||
} | ||
// [END oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_sync] | ||
} |
44 changes: 44 additions & 0 deletions
44
....Cloud.OsLogin.V1Beta.GeneratedSnippets/OsLoginServiceClient.SignSshPublicKeySnippet.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,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 oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_sync_flattened] | ||
using Google.Cloud.OsLogin.V1Beta; | ||
|
||
public sealed partial class GeneratedOsLoginServiceClientSnippets | ||
{ | ||
/// <summary>Snippet for SignSshPublicKey</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 SignSshPublicKey() | ||
{ | ||
// Create client | ||
OsLoginServiceClient osLoginServiceClient = OsLoginServiceClient.Create(); | ||
// Initialize request argument(s) | ||
string parent = ""; | ||
string sshPublicKey = ""; | ||
// Make the request | ||
SignSshPublicKeyResponse response = osLoginServiceClient.SignSshPublicKey(parent, sshPublicKey); | ||
} | ||
} | ||
// [END oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_sync_flattened] | ||
} |
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
Oops, something went wrong.