NAME

Google::Cloud::Baremetalsolution::V2::SshKey - Compiled Protocol Buffers messages for google/cloud/baremetalsolution/v2/ssh_key.proto

SYNOPSIS

use Google::Cloud::Baremetalsolution::V2::SshKey;

my $msg = Google::Cloud::Baremetalsolution::V2::SshKey::SSHKey->new({
    name => $name,
    public_key => $public_key,
});

# Read or update a field
my $val = $msg->name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Baremetalsolution::V2::SshKey::SSHKey->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/baremetalsolution/v2/ssh_key.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Baremetalsolution::V2::SshKey::SSHKey

An SSH key, used for authorizing with the interactive serial console feature.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Output only. The name of this SSH key. Currently, the only valid value for the location is "global".

  • $msg->public_key() / $msg->public_key($value)

    Type: String

    The public SSH key. This must be in OpenSSH .authorized_keys format.

Google::Cloud::Baremetalsolution::V2::SshKey::ListSSHKeysRequest

Message for listing the public SSH keys in a project.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent containing the SSH keys. Currently, the only valid value for the location is "global".

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    The maximum number of items to return.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    The next_page_token value returned from a previous List request, if any.

Google::Cloud::Baremetalsolution::V2::SshKey::ListSSHKeysResponse

Message for response of ListSSHKeys.

Inherits from Protobuf::Message.

Accessors

  • $msg->ssh_keys() / $msg->ssh_keys($value)

    Type: Message (Google::Cloud::Baremetalsolution::V2::SshKey::SSHKey)

    The SSH keys registered in the project.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    Token to retrieve the next page of results, or empty if there are no more results in the list.

Google::Cloud::Baremetalsolution::V2::SshKey::CreateSSHKeyRequest

Message for registering a public SSH key in a project.

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The parent containing the SSH keys.

  • $msg->ssh_key() / $msg->ssh_key($value)

    Type: Message (Google::Cloud::Baremetalsolution::V2::SshKey::SSHKey)

    Required. The SSH key to register.

  • $msg->ssh_key_id() / $msg->ssh_key_id($value)

    Type: String

    Required. The ID to use for the key, which will become the final component of the key's resource name.

    This value must match the regex: [a-zA-Z0-9@.\-_]{1,64}

Google::Cloud::Baremetalsolution::V2::SshKey::DeleteSSHKeyRequest

Message for deleting an SSH key from a project.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The name of the SSH key to delete. Currently, the only valid value for the location is "global".

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Baremetalsolution::V2::SshKey::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.