Google-Cloud-Dataplex-V1

 view release on metacpan or  search on metacpan

lib/Google/Cloud/Dataplex/V1/Catalog.pm  view on Meta::CPAN


# === Message: Google::Cloud::Dataplex::V1::Catalog::UpdateMetadataFeedRequest ===
    # Fields for UpdateMetadataFeedRequest
    # Field: metadata_feed Type: 11 (.google.cloud.dataplex.v1.MetadataFeed)
    # Field: update_mask Type: 11 (.google.protobuf.FieldMask)
    # Field: validate_only Type: 8 ()

=pod

=head1 NAME

Google::Cloud::Dataplex::V1::Catalog::UpdateMetadataFeedRequest - Compiled Protocol Buffers message class

=head1 SYNOPSIS

    use Google::Cloud::Dataplex::V1::Catalog;

    my $msg = Google::Cloud::Dataplex::V1::Catalog::UpdateMetadataFeedRequest->new(
        metadata_feed => $value,
    );

=head1 FIELDS

=over 4

=item * B<metadata_feed>

Type: Message (.google.cloud.dataplex.v1.MetadataFeed)

=item * B<update_mask>

Type: Message (.google.protobuf.FieldMask)

=item * B<validate_only>

Type: Bool

=back

=cut

# === Service Client: Google::Cloud::Dataplex::V1::Catalog::CatalogServiceClient ===
package Google::Cloud::Dataplex::V1::Catalog::CatalogServiceClient;

=pod

=head1 NAME

Google::Cloud::Dataplex::V1::Catalog::CatalogServiceClient - Client stub representing the remote CatalogService 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_entry_type {
    my ($self, $args) = @_;
    my $req = ref($args) eq 'HASH'
        ? Google::Cloud::Dataplex::V1::Catalog::CreateEntryTypeRequest->new($args)
        : $args;
    return $self->_grpc_client->call({
        service        => 'google.cloud.dataplex.v1.CatalogService',
        method         => 'CreateEntryType',
        request        => $req,
        response_class => 'Google::Longrunning::Operations::Operation',
    });
}

sub update_entry_type {
    my ($self, $args) = @_;
    my $req = ref($args) eq 'HASH'
        ? Google::Cloud::Dataplex::V1::Catalog::UpdateEntryTypeRequest->new($args)
        : $args;
    return $self->_grpc_client->call({
        service        => 'google.cloud.dataplex.v1.CatalogService',
        method         => 'UpdateEntryType',
        request        => $req,
        response_class => 'Google::Longrunning::Operations::Operation',
    });
}

sub delete_entry_type {
    my ($self, $args) = @_;
    my $req = ref($args) eq 'HASH'
        ? Google::Cloud::Dataplex::V1::Catalog::DeleteEntryTypeRequest->new($args)
        : $args;
    return $self->_grpc_client->call({
        service        => 'google.cloud.dataplex.v1.CatalogService',
        method         => 'DeleteEntryType',



( run in 0.880 second using v1.01-cache-2.11-cpan-f03e8824b8d )