Google-Cloud-Oslogin-V1beta

 view release on metacpan or  search on metacpan

lib/Google/Cloud/Oslogin/V1beta/Oslogin.pm  view on Meta::CPAN

BQACAgISBMgCERJiBnByb3RvMw==
EOF
    Protobuf::DescriptorPool->generated_pool->add_serialized_file(MIME::Base64::decode_base64($descriptor_b64));
}

# Message definitions

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::LoginProfile ===
    # Fields for LoginProfile
    # Field: name Type: 9 ()
    # Field: posix_accounts Type: 11 (.google.cloud.oslogin.common.PosixAccount)
    # Field: ssh_public_keys Type: 11 (.google.cloud.oslogin.v1beta.LoginProfile.SshPublicKeysEntry)
    # Field: security_keys Type: 11 (.google.cloud.oslogin.v1beta.SecurityKey)

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::CreateSshPublicKeyRequest ===
    # Fields for CreateSshPublicKeyRequest
    # Field: parent Type: 9 ()
    # Field: ssh_public_key Type: 11 (.google.cloud.oslogin.common.SshPublicKey)

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::DeletePosixAccountRequest ===
    # Fields for DeletePosixAccountRequest
    # Field: name Type: 9 ()

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::DeleteSshPublicKeyRequest ===
    # Fields for DeleteSshPublicKeyRequest
    # Field: name Type: 9 ()

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::GetLoginProfileRequest ===
    # Fields for GetLoginProfileRequest
    # Field: name Type: 9 ()
    # Field: project_id Type: 9 ()
    # Field: system_id Type: 9 ()
    # Field: view Type: 14 (.google.cloud.oslogin.v1beta.LoginProfileView)

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::GetSshPublicKeyRequest ===
    # Fields for GetSshPublicKeyRequest
    # Field: name Type: 9 ()

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::ImportSshPublicKeyRequest ===
    # Fields for ImportSshPublicKeyRequest
    # Field: parent Type: 9 ()
    # Field: ssh_public_key Type: 11 (.google.cloud.oslogin.common.SshPublicKey)
    # Field: project_id Type: 9 ()
    # Field: view Type: 14 (.google.cloud.oslogin.v1beta.LoginProfileView)
    # Field: regions Type: 9 ()

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::ImportSshPublicKeyResponse ===
    # Fields for ImportSshPublicKeyResponse
    # Field: login_profile Type: 11 (.google.cloud.oslogin.v1beta.LoginProfile)
    # Field: details Type: 9 ()

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::UpdateSshPublicKeyRequest ===
    # Fields for UpdateSshPublicKeyRequest
    # Field: name Type: 9 ()
    # Field: ssh_public_key Type: 11 (.google.cloud.oslogin.common.SshPublicKey)
    # Field: update_mask Type: 11 (.google.protobuf.FieldMask)

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::SecurityKey ===
    # Fields for SecurityKey
    # Field: public_key Type: 9 ()
    # Field: private_key Type: 9 ()
    # Field: universal_two_factor Type: 11 (.google.cloud.oslogin.v1beta.UniversalTwoFactor)
    # Field: web_authn Type: 11 (.google.cloud.oslogin.v1beta.WebAuthn)
    # Field: device_nickname Type: 9 ()

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::UniversalTwoFactor ===
    # Fields for UniversalTwoFactor
    # Field: app_id Type: 9 ()

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::WebAuthn ===
    # Fields for WebAuthn
    # Field: rp_id Type: 9 ()

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::SignSshPublicKeyRequest ===
    # Fields for SignSshPublicKeyRequest
    # Field: ssh_public_key Type: 9 ()
    # Field: parent Type: 9 ()

# === Message: Google::Cloud::Oslogin::V1beta::Oslogin::SignSshPublicKeyResponse ===
    # Fields for SignSshPublicKeyResponse
    # Field: signed_ssh_public_key Type: 9 ()

# === Service Client: Google::Cloud::Oslogin::V1beta::Oslogin::OsLoginServiceClient ===
package Google::Cloud::Oslogin::V1beta::Oslogin::OsLoginServiceClient;

=pod

=head2 Service Client: Google::Cloud::Oslogin::V1beta::Oslogin::OsLoginServiceClient

Client stub representing the remote C<OsLoginService> gRPC service. Delegates call dispatching to L<Google::gRPC::Client>.

=head3 target

The endpoint target address. Defaults to C<oslogin.googleapis.com:443>.

=head3 credentials

The authentication credentials provider. Defaults to application default credentials via L<Google::Auth>.

=cut

use Moo;
use Google::Auth;
use Google::gRPC::Client;

has credentials => ( is => 'ro', default => sub { Google::Auth->default() } );
has target      => ( is => 'ro', default => 'oslogin.googleapis.com:443' );

has _grpc_client => (
    is => 'ro',
    lazy => 1,
    builder => sub {
        my $self = shift;
        return Google::gRPC::Client->new(
            target     => $self->target,
            auth_token => $self->credentials->get_token(),
        );
    }
);

sub create_ssh_public_key {

lib/Google/Cloud/Oslogin/V1beta/Oslogin.pm  view on Meta::CPAN


The login profile information for the user.

=item * C<< $msg->details() >> / C<< $msg->details($value) >>

Type: C<String>

Detailed information about import results.

=back

=head2 Google::Cloud::Oslogin::V1beta::Oslogin::UpdateSshPublicKeyRequest

A request message for updating an SSH public key.

Inherits from L<Protobuf::Message>.

=head3 Accessors

=over 4

=item * C<< $msg->name() >> / C<< $msg->name($value) >>

Type: C<String>

Required. The fingerprint of the public key to update. Public keys are
identified by their SHA-256 fingerprint. The fingerprint of the public key
is in format `users/{user}/sshPublicKeys/{fingerprint}`.

=item * C<< $msg->ssh_public_key() >> / C<< $msg->ssh_public_key($value) >>

Type: C<Message> (L<Google::Cloud::Oslogin::Common::Common::SshPublicKey>)

Required. The SSH public key and expiration time.

=item * C<< $msg->update_mask() >> / C<< $msg->update_mask($value) >>

Type: C<Message> (L<Google::Protobuf::FieldMask::FieldMask>)

Mask to control which fields get updated. Updates all if not present.

=back

=head2 Google::Cloud::Oslogin::V1beta::Oslogin::SecurityKey

The credential information for a Google registered security key.

Inherits from L<Protobuf::Message>.

=head3 Accessors

=over 4

=item * C<< $msg->public_key() >> / C<< $msg->public_key($value) >>

Type: C<String>

Public key text in SSH format, defined by
[RFC4253]("https://www.ietf.org/rfc/rfc4253.txt") section 6.6.

=item * C<< $msg->private_key() >> / C<< $msg->private_key($value) >>

Type: C<String>

Hardware-backed private key text in SSH format.

=item * C<< $msg->universal_two_factor() >> / C<< $msg->universal_two_factor($value) >>

Type: C<Message> (L<Google::Cloud::Oslogin::V1beta::Oslogin::UniversalTwoFactor>)

The U2F protocol type.

=item * C<< $msg->web_authn() >> / C<< $msg->web_authn($value) >>

Type: C<Message> (L<Google::Cloud::Oslogin::V1beta::Oslogin::WebAuthn>)

The Web Authentication protocol type.

=item * C<< $msg->device_nickname() >> / C<< $msg->device_nickname($value) >>

Type: C<String>

The security key nickname explicitly set by the user.

=back

=head2 Google::Cloud::Oslogin::V1beta::Oslogin::UniversalTwoFactor

Security key information specific to the U2F protocol.

Inherits from L<Protobuf::Message>.

=head3 Accessors

=over 4

=item * C<< $msg->app_id() >> / C<< $msg->app_id($value) >>

Type: C<String>

Application ID for the U2F protocol.

=back

=head2 Google::Cloud::Oslogin::V1beta::Oslogin::WebAuthn

Security key information specific to the Web Authentication protocol.

Inherits from L<Protobuf::Message>.

=head3 Accessors

=over 4

=item * C<< $msg->rp_id() >> / C<< $msg->rp_id($value) >>

Type: C<String>

Relying party ID for Web Authentication.

=back



( run in 1.223 second using v1.01-cache-2.11-cpan-8379b9b8ec2 )