Google-Cloud-Dataplex-V1
view release on metacpan or search on metacpan
lib/Google/Cloud/Dataplex/V1/BusinessGlossary.pm view on Meta::CPAN
# === Service Client: Google::Cloud::Dataplex::V1::BusinessGlossary::BusinessGlossaryServiceClient ===
package Google::Cloud::Dataplex::V1::BusinessGlossary::BusinessGlossaryServiceClient;
=pod
=head1 NAME
Google::Cloud::Dataplex::V1::BusinessGlossary::BusinessGlossaryServiceClient - Client stub representing the remote BusinessGlossaryService 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<dataplex.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 => 'dataplex.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_glossary {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::CreateGlossaryRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'CreateGlossary',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub update_glossary {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::UpdateGlossaryRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'UpdateGlossary',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub delete_glossary {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::DeleteGlossaryRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'DeleteGlossary',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub get_glossary {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::GetGlossaryRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'GetGlossary',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::Glossary',
});
}
sub list_glossaries {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::ListGlossariesRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'ListGlossaries',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::ListGlossariesResponse',
});
}
sub create_glossary_category {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::CreateGlossaryCategoryRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'CreateGlossaryCategory',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::GlossaryCategory',
});
}
sub update_glossary_category {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::UpdateGlossaryCategoryRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'UpdateGlossaryCategory',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::GlossaryCategory',
});
}
sub delete_glossary_category {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::DeleteGlossaryCategoryRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'DeleteGlossaryCategory',
request => $req,
response_class => 'Google::Protobuf::Empty::Empty',
});
}
sub get_glossary_category {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::GetGlossaryCategoryRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'GetGlossaryCategory',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::GlossaryCategory',
});
}
sub list_glossary_categories {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::ListGlossaryCategoriesRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'ListGlossaryCategories',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::ListGlossaryCategoriesResponse',
});
}
sub create_glossary_term {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::CreateGlossaryTermRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'CreateGlossaryTerm',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::GlossaryTerm',
});
}
sub update_glossary_term {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::UpdateGlossaryTermRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'UpdateGlossaryTerm',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::GlossaryTerm',
});
}
sub delete_glossary_term {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::DeleteGlossaryTermRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'DeleteGlossaryTerm',
request => $req,
response_class => 'Google::Protobuf::Empty::Empty',
});
}
sub get_glossary_term {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::GetGlossaryTermRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'GetGlossaryTerm',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::GlossaryTerm',
});
}
sub list_glossary_terms {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Dataplex::V1::BusinessGlossary::ListGlossaryTermsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.dataplex.v1.BusinessGlossaryService',
method => 'ListGlossaryTerms',
request => $req,
response_class => 'Google::Cloud::Dataplex::V1::BusinessGlossary::ListGlossaryTermsResponse',
});
}
1;
__END__
=head1 NAME
Google::Cloud::Dataplex::V1::BusinessGlossary - Protocol Buffers schema definition
=head1 DESCRIPTION
( run in 2.468 seconds using v1.01-cache-2.11-cpan-302cb4679cc )