Google-Cloud-Composer-V1
view release on metacpan or search on metacpan
lib/Google/Cloud/Orchestration/Airflow/Service/V1/Environments.pm view on Meta::CPAN
);
=head1 FIELDS
=over 4
=item * B<location>
Type: String
=item * B<machine_type>
Type: String
=item * B<network>
Type: String
=item * B<subnetwork>
Type: String
=item * B<disk_size_gb>
Type: Int32
=item * B<oauth_scopes>
Type: String
=item * B<service_account>
Type: String
=item * B<tags>
Type: String
=item * B<ip_allocation_policy>
Type: Message (.google.cloud.orchestration.airflow.service.v1.IPAllocationPolicy)
=item * B<enable_ip_masq_agent>
Type: Bool
=item * B<composer_network_attachment>
Type: String
=item * B<composer_internal_ipv4_cidr_block>
Type: String
=back
=cut
# === Message: Google::Cloud::Orchestration::Airflow::Service::V1::Environments::PrivateClusterConfig ===
# Fields for PrivateClusterConfig
# Field: enable_private_endpoint Type: 8 ()
# Field: master_ipv4_cidr_block Type: 9 ()
# Field: master_ipv4_reserved_range Type: 9 ()
=pod
=head1 NAME
Google::Cloud::Orchestration::Airflow::Service::V1::Environments::PrivateClusterConfig - Compiled Protocol Buffers message class
=head1 SYNOPSIS
use Google::Cloud::Orchestration::Airflow::Service::V1::Environments;
my $msg = Google::Cloud::Orchestration::Airflow::Service::V1::Environments::PrivateClusterConfig->new(
enable_private_endpoint => $value,
);
=head1 FIELDS
=over 4
=item * B<enable_private_endpoint>
Type: Bool
=item * B<master_ipv4_cidr_block>
Type: String
=item * B<master_ipv4_reserved_range>
Type: String
=back
=cut
# === Message: Google::Cloud::Orchestration::Airflow::Service::V1::Environments::NetworkingConfig ===
# Fields for NetworkingConfig
# Field: connection_type Type: 14 (.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType)
=pod
=head1 NAME
Google::Cloud::Orchestration::Airflow::Service::V1::Environments::NetworkingConfig - Compiled Protocol Buffers message class
=head1 SYNOPSIS
use Google::Cloud::Orchestration::Airflow::Service::V1::Environments;
my $msg = Google::Cloud::Orchestration::Airflow::Service::V1::Environments::NetworkingConfig->new(
connection_type => $value,
);
=head1 FIELDS
=over 4
=item * B<connection_type>
Type: Enum (.google.cloud.orchestration.airflow.service.v1.NetworkingConfig.ConnectionType)
=back
=cut
# Enum: NetworkingConfig::ConnectionType
our $NetworkingConfig_CONNECTION_TYPE_UNSPECIFIED = 0;
our $NetworkingConfig_VPC_PEERING = 1;
our $NetworkingConfig_PRIVATE_SERVICE_CONNECT = 2;
=pod
=head2 Enum: NetworkingConfig::ConnectionType
Values:
=over 4
=item * C<CONNECTION_TYPE_UNSPECIFIED> => 0
lib/Google/Cloud/Orchestration/Airflow/Service/V1/Environments.pm view on Meta::CPAN
);
=head1 FIELDS
=over 4
=item * B<retention_mode>
Type: Enum (.google.cloud.orchestration.airflow.service.v1.AirflowMetadataRetentionPolicyConfig.RetentionMode)
=item * B<retention_days>
Type: Int32
=back
=cut
# Enum: AirflowMetadataRetentionPolicyConfig::RetentionMode
our $AirflowMetadataRetentionPolicyConfig_RETENTION_MODE_UNSPECIFIED = 0;
our $AirflowMetadataRetentionPolicyConfig_RETENTION_MODE_ENABLED = 1;
our $AirflowMetadataRetentionPolicyConfig_RETENTION_MODE_DISABLED = 2;
=pod
=head2 Enum: AirflowMetadataRetentionPolicyConfig::RetentionMode
Values:
=over 4
=item * C<RETENTION_MODE_UNSPECIFIED> => 0
=item * C<RETENTION_MODE_ENABLED> => 1
=item * C<RETENTION_MODE_DISABLED> => 2
=back
=cut
# === Service Client: Google::Cloud::Orchestration::Airflow::Service::V1::Environments::EnvironmentsClient ===
package Google::Cloud::Orchestration::Airflow::Service::V1::Environments::EnvironmentsClient;
=pod
=head1 NAME
Google::Cloud::Orchestration::Airflow::Service::V1::Environments::EnvironmentsClient - Client stub representing the remote Environments 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<orchestration.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 => 'orchestration.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_environment {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Orchestration::Airflow::Service::V1::Environments::CreateEnvironmentRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.orchestration.airflow.service.v1.Environments',
method => 'CreateEnvironment',
request => $req,
response_class => 'Google::Longrunning::Operations::Operation',
});
}
sub get_environment {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Orchestration::Airflow::Service::V1::Environments::GetEnvironmentRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.orchestration.airflow.service.v1.Environments',
method => 'GetEnvironment',
request => $req,
response_class => 'Google::Cloud::Orchestration::Airflow::Service::V1::Environments::Environment',
});
}
sub list_environments {
my ($self, $args) = @_;
my $req = ref($args) eq 'HASH'
? Google::Cloud::Orchestration::Airflow::Service::V1::Environments::ListEnvironmentsRequest->new($args)
: $args;
return $self->_grpc_client->call({
service => 'google.cloud.orchestration.airflow.service.v1.Environments',
method => 'ListEnvironments',
( run in 4.102 seconds using v1.01-cache-2.11-cpan-81fc1098f69 )