Google-Cloud-Sql-V1
view release on metacpan or search on metacpan
lib/Google/Cloud/Sql/V1/CloudSqlBackupRuns.pm view on Meta::CPAN
# === Message: Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRunsListResponse ===
# Fields for BackupRunsListResponse
# Field: kind Type: 9 ()
# Field: items Type: 11 (.google.cloud.sql.v1.BackupRun)
# Field: next_page_token Type: 9 ()
=pod
=head1 NAME
Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRunsListResponse - Compiled Protocol Buffers message class
=head1 SYNOPSIS
use Google::Cloud::Sql::V1::CloudSqlBackupRuns;
my $msg = Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRunsListResponse->new(
kind => $value,
);
=head1 FIELDS
=over 4
=item * B<kind>
Type: String
=item * B<items>
Type: Message (.google.cloud.sql.v1.BackupRun)
=item * B<next_page_token>
Type: String
=back
=cut
# === Service Client: Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsServiceClient ===
package Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsServiceClient;
=pod
=head1 NAME
Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsServiceClient - Client stub representing the remote SqlBackupRunsService 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<sql.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 => 'sql.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 delete {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsDeleteRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.sql.v1.SqlBackupRunsService',
method => 'Delete',
request => $req,
response_class => 'Google::Cloud::Sql::V1::CloudSqlResources::Operation',
});
}
sub get {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsGetRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.sql.v1.SqlBackupRunsService',
method => 'Get',
request => $req,
response_class => 'Google::Cloud::Sql::V1::CloudSqlBackupRuns::BackupRun',
});
}
sub insert {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Sql::V1::CloudSqlBackupRuns::SqlBackupRunsInsertRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.sql.v1.SqlBackupRunsService',
method => 'Insert',
( run in 0.749 second using v1.01-cache-2.11-cpan-81fc1098f69 )