Google-Cloud-Networkservices-V1
view release on metacpan or search on metacpan
lib/Google/Cloud/Networkservices/V1/Dep.pm view on Meta::CPAN
Type: String
=back
=cut
# === Message: Google::Cloud::Networkservices::V1::Dep::DeleteAuthzExtensionRequest ===
# Fields for DeleteAuthzExtensionRequest
# Field: name Type: 9 ()
# Field: request_id Type: 9 ()
=pod
=head1 NAME
Google::Cloud::Networkservices::V1::Dep::DeleteAuthzExtensionRequest - Compiled Protocol Buffers message class
=head1 SYNOPSIS
use Google::Cloud::Networkservices::V1::Dep;
my $msg = Google::Cloud::Networkservices::V1::Dep::DeleteAuthzExtensionRequest->new(
name => $value,
);
=head1 FIELDS
=over 4
=item * B<name>
Type: String
=item * B<request_id>
Type: String
=back
=cut
# === Service Client: Google::Cloud::Networkservices::V1::Dep::DepServiceClient ===
package Google::Cloud::Networkservices::V1::Dep::DepServiceClient;
=pod
=head1 NAME
Google::Cloud::Networkservices::V1::Dep::DepServiceClient - Client stub representing the remote DepService 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<networkservices.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 => 'networkservices.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 list_lb_traffic_extensions {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networkservices::V1::Dep::ListLbTrafficExtensionsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networkservices.v1.DepService',
method => 'ListLbTrafficExtensions',
request => $req,
response_class => 'Google::Cloud::Networkservices::V1::Dep::ListLbTrafficExtensionsResponse',
});
}
sub get_lb_traffic_extension {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networkservices::V1::Dep::GetLbTrafficExtensionRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networkservices.v1.DepService',
method => 'GetLbTrafficExtension',
request => $req,
response_class => 'Google::Cloud::Networkservices::V1::Dep::LbTrafficExtension',
});
}
sub create_lb_traffic_extension {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networkservices::V1::Dep::CreateLbTrafficExtensionRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networkservices.v1.DepService',
method => 'CreateLbTrafficExtension',
( run in 3.619 seconds using v1.01-cache-2.11-cpan-81fc1098f69 )