Skip to content

Commit

Permalink
feat: launch signSshPublicKey in beta
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 556891694

Source-Link: googleapis/googleapis@f5ccdce

Source-Link: googleapis/googleapis-gen@66e1d93
Copy-Tag: eyJwIjoiYXBpcy9Hb29nbGUuQ2xvdWQuT3NMb2dpbi5WMUJldGEvLk93bEJvdC55YW1sIiwiaCI6IjY2ZTFkOTMzM2FhOTIxYjQyNzI3ZTE3MjRkMjhkMzhjMDA0NDU2ZDUifQ==
  • Loading branch information
gcf-owl-bot[bot] authored and amanda-tarafa committed Aug 15, 2023
1 parent db55ecf commit 19c34de
Show file tree
Hide file tree
Showing 10 changed files with 1,142 additions and 45 deletions.
@@ -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]
}
@@ -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]
}
@@ -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]
}
@@ -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]
}
Expand Up @@ -2504,6 +2504,206 @@
"type": "SHORT"
}
]
},
{
"regionTag": "oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_sync",
"title": "SignSshPublicKeyRequestObject",
"description": "Snippet for SignSshPublicKey",
"file": "OsLoginServiceClient.SignSshPublicKeyRequestObjectSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "SignSshPublicKey",
"fullName": "Google.Cloud.OsLogin.V1Beta.OsLoginServiceClient.SignSshPublicKey",
"parameters": [
{
"type": "Google.Cloud.OsLogin.V1Beta.SignSshPublicKeyRequest",
"name": "request"
},
{
"type": "Google.Api.Gax.Grpc.CallSettings",
"name": "callSettings"
}
],
"resultType": "Google.Cloud.OsLogin.V1Beta.SignSshPublicKeyResponse",
"client": {
"shortName": "OsLoginServiceClient",
"fullName": "Google.Cloud.OsLogin.V1Beta.OsLoginServiceClient"
},
"method": {
"shortName": "SignSshPublicKey",
"fullName": "google.cloud.oslogin.v1beta.OsLoginService.SignSshPublicKey",
"service": {
"shortName": "OsLoginService",
"fullName": "google.cloud.oslogin.v1beta.OsLoginService"
}
}
},
"canonical": true,
"origin": "API_DEFINITION",
"segments": [
{
"start": 20,
"end": 45,
"type": "FULL"
},
{
"start": 34,
"end": 43,
"type": "SHORT"
}
]
},
{
"regionTag": "oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_async",
"title": "SignSshPublicKeyRequestObjectAsync",
"description": "Snippet for SignSshPublicKeyAsync",
"file": "OsLoginServiceClient.SignSshPublicKeyRequestObjectAsyncSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "SignSshPublicKeyAsync",
"fullName": "Google.Cloud.OsLogin.V1Beta.OsLoginServiceClient.SignSshPublicKeyAsync",
"async": true,
"parameters": [
{
"type": "Google.Cloud.OsLogin.V1Beta.SignSshPublicKeyRequest",
"name": "request"
},
{
"type": "Google.Api.Gax.Grpc.CallSettings",
"name": "callSettings"
}
],
"resultType": "System.Threading.Tasks.Task<Google.Cloud.OsLogin.V1Beta.SignSshPublicKeyResponse>",
"client": {
"shortName": "OsLoginServiceClient",
"fullName": "Google.Cloud.OsLogin.V1Beta.OsLoginServiceClient"
},
"method": {
"shortName": "SignSshPublicKey",
"fullName": "google.cloud.oslogin.v1beta.OsLoginService.SignSshPublicKey",
"service": {
"shortName": "OsLoginService",
"fullName": "google.cloud.oslogin.v1beta.OsLoginService"
}
}
},
"canonical": true,
"origin": "API_DEFINITION",
"segments": [
{
"start": 20,
"end": 46,
"type": "FULL"
},
{
"start": 35,
"end": 44,
"type": "SHORT"
}
]
},
{
"regionTag": "oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_sync_flattened",
"title": "SignSshPublicKey",
"description": "Snippet for SignSshPublicKey",
"file": "OsLoginServiceClient.SignSshPublicKeySnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "SignSshPublicKey",
"fullName": "Google.Cloud.OsLogin.V1Beta.OsLoginServiceClient.SignSshPublicKey",
"parameters": [
{
"type": "System.String",
"name": "parent"
},
{
"type": "System.String",
"name": "sshPublicKey"
},
{
"type": "Google.Api.Gax.Grpc.CallSettings",
"name": "callSettings"
}
],
"resultType": "Google.Cloud.OsLogin.V1Beta.SignSshPublicKeyResponse",
"client": {
"shortName": "OsLoginServiceClient",
"fullName": "Google.Cloud.OsLogin.V1Beta.OsLoginServiceClient"
},
"method": {
"shortName": "SignSshPublicKey",
"fullName": "google.cloud.oslogin.v1beta.OsLoginService.SignSshPublicKey",
"service": {
"shortName": "OsLoginService",
"fullName": "google.cloud.oslogin.v1beta.OsLoginService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 20,
"end": 42,
"type": "FULL"
},
{
"start": 34,
"end": 40,
"type": "SHORT"
}
]
},
{
"regionTag": "oslogin_v1beta_generated_OsLoginService_SignSshPublicKey_async_flattened",
"title": "SignSshPublicKeyAsync",
"description": "Snippet for SignSshPublicKeyAsync",
"file": "OsLoginServiceClient.SignSshPublicKeyAsyncSnippet.g.cs",
"language": "C_SHARP",
"clientMethod": {
"shortName": "SignSshPublicKeyAsync",
"fullName": "Google.Cloud.OsLogin.V1Beta.OsLoginServiceClient.SignSshPublicKeyAsync",
"async": true,
"parameters": [
{
"type": "System.String",
"name": "parent"
},
{
"type": "System.String",
"name": "sshPublicKey"
},
{
"type": "Google.Api.Gax.Grpc.CallSettings",
"name": "callSettings"
}
],
"resultType": "System.Threading.Tasks.Task<Google.Cloud.OsLogin.V1Beta.SignSshPublicKeyResponse>",
"client": {
"shortName": "OsLoginServiceClient",
"fullName": "Google.Cloud.OsLogin.V1Beta.OsLoginServiceClient"
},
"method": {
"shortName": "SignSshPublicKey",
"fullName": "google.cloud.oslogin.v1beta.OsLoginService.SignSshPublicKey",
"service": {
"shortName": "OsLoginService",
"fullName": "google.cloud.oslogin.v1beta.OsLoginService"
}
}
},
"origin": "API_DEFINITION",
"segments": [
{
"start": 20,
"end": 43,
"type": "FULL"
},
{
"start": 35,
"end": 41,
"type": "SHORT"
}
]
}
]
}

0 comments on commit 19c34de

Please sign in to comment.