/// <summary>Snippet for ImportSshPublicKeyAsync</summary> public async Task ImportSshPublicKeyAsync1() { // Snippet: ImportSshPublicKeyAsync(UserName,SshPublicKey,CallSettings) // Additional: ImportSshPublicKeyAsync(UserName,SshPublicKey,CancellationToken) // Create client OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync(); // Initialize request argument(s) UserName parent = new UserName("[USER]"); SshPublicKey sshPublicKey = new SshPublicKey(); // Make the request ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey); // End snippet }
/// <summary>Snippet for ImportSshPublicKeyAsync</summary> public async Task ImportSshPublicKey2ResourceNamesAsync() { // Snippet: ImportSshPublicKeyAsync(UserName, SshPublicKey, string, CallSettings) // Additional: ImportSshPublicKeyAsync(UserName, SshPublicKey, string, CancellationToken) // Create client OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync(); // Initialize request argument(s) UserName parent = UserName.FromUser("[USER]"); SshPublicKey sshPublicKey = new SshPublicKey(); string projectId = ""; // Make the request ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(parent, sshPublicKey, projectId); // End snippet }
/// <summary>Snippet for ImportSshPublicKeyAsync</summary> public async Task ImportSshPublicKeyAsync_RequestObject() { // Snippet: ImportSshPublicKeyAsync(ImportSshPublicKeyRequest,CallSettings) // Create client OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync(); // Initialize request argument(s) ImportSshPublicKeyRequest request = new ImportSshPublicKeyRequest { ParentAsUserName = new UserName("[USER]"), SshPublicKey = new SshPublicKey(), }; // Make the request ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(request); // End snippet }
/// <summary>Snippet for ImportSshPublicKeyAsync</summary> public async Task ImportSshPublicKeyRequestObjectAsync() { // Snippet: ImportSshPublicKeyAsync(ImportSshPublicKeyRequest, CallSettings) // Additional: ImportSshPublicKeyAsync(ImportSshPublicKeyRequest, CancellationToken) // Create client OsLoginServiceClient osLoginServiceClient = await OsLoginServiceClient.CreateAsync(); // Initialize request argument(s) ImportSshPublicKeyRequest request = new ImportSshPublicKeyRequest { ParentAsUserName = UserName.FromUser("[USER]"), SshPublicKey = new SshPublicKey(), ProjectId = "", }; // Make the request ImportSshPublicKeyResponse response = await osLoginServiceClient.ImportSshPublicKeyAsync(request); // End snippet }