Google-Cloud-Networksecurity-V1
view release on metacpan or search on metacpan
lib/Google/Cloud/Networksecurity/V1/Intercept.pm view on Meta::CPAN
=cut
use Moo;
use Google::Auth;
use Google::gRPC::Client;
has credentials => ( is => 'ro', default => sub { Google::Auth->default() } );
has target => ( is => 'ro', default => 'networksecurity.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_intercept_endpoint_groups {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::ListInterceptEndpointGroupsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'ListInterceptEndpointGroups',
request => $req,
response_class => 'Google::Cloud::Networksecurity::V1::Intercept::ListInterceptEndpointGroupsResponse',
});
}
sub get_intercept_endpoint_group {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::GetInterceptEndpointGroupRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'GetInterceptEndpointGroup',
request => $req,
response_class => 'Google::Cloud::Networksecurity::V1::Intercept::InterceptEndpointGroup',
});
}
sub create_intercept_endpoint_group {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::CreateInterceptEndpointGroupRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'CreateInterceptEndpointGroup',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub update_intercept_endpoint_group {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::UpdateInterceptEndpointGroupRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'UpdateInterceptEndpointGroup',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub delete_intercept_endpoint_group {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::DeleteInterceptEndpointGroupRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'DeleteInterceptEndpointGroup',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub list_intercept_endpoint_group_associations {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::ListInterceptEndpointGroupAssociationsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'ListInterceptEndpointGroupAssociations',
request => $req,
response_class => 'Google::Cloud::Networksecurity::V1::Intercept::ListInterceptEndpointGroupAssociationsResponse',
});
}
sub get_intercept_endpoint_group_association {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::GetInterceptEndpointGroupAssociationRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'GetInterceptEndpointGroupAssociation',
request => $req,
response_class => 'Google::Cloud::Networksecurity::V1::Intercept::InterceptEndpointGroupAssociation',
});
}
sub create_intercept_endpoint_group_association {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::CreateInterceptEndpointGroupAssociationRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'CreateInterceptEndpointGroupAssociation',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub update_intercept_endpoint_group_association {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::UpdateInterceptEndpointGroupAssociationRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'UpdateInterceptEndpointGroupAssociation',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub delete_intercept_endpoint_group_association {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::DeleteInterceptEndpointGroupAssociationRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'DeleteInterceptEndpointGroupAssociation',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub list_intercept_deployment_groups {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::ListInterceptDeploymentGroupsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'ListInterceptDeploymentGroups',
request => $req,
response_class => 'Google::Cloud::Networksecurity::V1::Intercept::ListInterceptDeploymentGroupsResponse',
});
}
sub get_intercept_deployment_group {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::GetInterceptDeploymentGroupRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'GetInterceptDeploymentGroup',
request => $req,
response_class => 'Google::Cloud::Networksecurity::V1::Intercept::InterceptDeploymentGroup',
});
}
sub create_intercept_deployment_group {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::CreateInterceptDeploymentGroupRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'CreateInterceptDeploymentGroup',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub update_intercept_deployment_group {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::UpdateInterceptDeploymentGroupRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'UpdateInterceptDeploymentGroup',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub delete_intercept_deployment_group {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::DeleteInterceptDeploymentGroupRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'DeleteInterceptDeploymentGroup',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub list_intercept_deployments {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::ListInterceptDeploymentsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'ListInterceptDeployments',
request => $req,
response_class => 'Google::Cloud::Networksecurity::V1::Intercept::ListInterceptDeploymentsResponse',
});
}
sub get_intercept_deployment {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::GetInterceptDeploymentRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'GetInterceptDeployment',
request => $req,
response_class => 'Google::Cloud::Networksecurity::V1::Intercept::InterceptDeployment',
});
}
sub create_intercept_deployment {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::CreateInterceptDeploymentRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'CreateInterceptDeployment',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub update_intercept_deployment {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::UpdateInterceptDeploymentRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'UpdateInterceptDeployment',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub delete_intercept_deployment {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Networksecurity::V1::Intercept::DeleteInterceptDeploymentRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.networksecurity.v1.Intercept',
method => 'DeleteInterceptDeployment',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
1;
__END__
=head1 NAME
Google::Cloud::Networksecurity::V1::Intercept - 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.681 second using v1.01-cache-2.11-cpan-7e94247ccb0 )