Google-Cloud-Kms-V1
view release on metacpan or search on metacpan
lib/Google/Cloud/Kms/V1/AutokeyAdmin.pm view on Meta::CPAN
);
=head1 FIELDS
=over 4
=item * B<key_project>
Type: String
=back
=cut
# === Service Client: Google::Cloud::Kms::V1::AutokeyAdmin::AutokeyAdminClient ===
package Google::Cloud::Kms::V1::AutokeyAdmin::AutokeyAdminClient;
=pod
=head1 NAME
Google::Cloud::Kms::V1::AutokeyAdmin::AutokeyAdminClient - Client stub representing the remote AutokeyAdmin service
=head1 DESCRIPTION
This class acts as a local client stub for the remote gRPC service.
It delegates call dispatching to an underlying L<Google::gRPC::Client>
instance, ensuring type-safe request parsing and response mapping.
=head1 CONFIGURATION AND ENVIRONMENT
=head2 target
The endpoint target address. Defaults to C<kms.googleapis.com:443>.
=head2 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 => 'kms.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 update_autokey_config {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Kms::V1::AutokeyAdmin::UpdateAutokeyConfigRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.kms.v1.AutokeyAdmin',
method => 'UpdateAutokeyConfig',
request => $req,
response_class => 'Google::Cloud::Kms::V1::AutokeyAdmin::AutokeyConfig',
});
}
sub get_autokey_config {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Kms::V1::AutokeyAdmin::GetAutokeyConfigRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.kms.v1.AutokeyAdmin',
method => 'GetAutokeyConfig',
request => $req,
response_class => 'Google::Cloud::Kms::V1::AutokeyAdmin::AutokeyConfig',
});
}
sub show_effective_autokey_config {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Kms::V1::AutokeyAdmin::ShowEffectiveAutokeyConfigRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.kms.v1.AutokeyAdmin',
method => 'ShowEffectiveAutokeyConfig',
request => $req,
response_class => 'Google::Cloud::Kms::V1::AutokeyAdmin::ShowEffectiveAutokeyConfigResponse',
});
}
1;
__END__
=head1 NAME
Google::Cloud::Kms::V1::AutokeyAdmin - Protocol Buffers schema definition
=head1 DESCRIPTION
Auto-generated Protocol Buffers schema definition class.
=head1 LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.
=cut
( run in 0.736 second using v1.01-cache-2.11-cpan-7e94247ccb0 )