Skip to main content

Deployment

This class defines the configuration for a gRPC deployment, specifying the endpoint, security settings, and various RPC timeout configurations. It also includes fields to associate the deployment with a specific project and domain for task handling.

Attributes

AttributeTypeDescription
EndpointstringEndpoint points to a connector gRPC endpoint.
InsecureboolInsecure indicates whether the communication with the gRPC service is insecure.
DefaultServiceConfigstringDefaultServiceConfig sets default gRPC service config; check https://github.com/grpc/grpc/blob/master/doc/service_config.md for more details.
Timeoutsmap[string]config.DurationTimeouts defines various RPC timeout values for different plugin operations: CreateTask, GetTask, DeleteTask; if not configured, defaults to DefaultTimeout.
DefaultTimeoutconfig.DurationDefaultTimeout gives the default RPC timeout if a more specific one is not defined in Timeouts; if neither DefaultTimeout nor Timeouts is defined for an operation, RPC timeout will not be enforced.
ProjectstringThis connector will handle the tasks in this project.
DomainstringThis connector will handle the tasks in this domain.

Constructor

Signature

def Deployment(
Endpoint: string = null,
Insecure: bool = null,
DefaultServiceConfig: string = null,
Timeouts: map[string]config.Duration = null,
DefaultTimeout: config.Duration = null,
Project: string = null,
Domain: string = null
) - > null

Parameters

NameTypeDescription
Endpointstring = nullPoints to a connector gRPC endpoint.
Insecurebool = nullIndicates whether the communication with the gRPC service is insecure.
DefaultServiceConfigstring = nullSets default gRPC service config; check https://github.com/grpc/grpc/blob/master/doc/service_config.md for more details.
Timeoutsmap[string]config.Duration = nullDefines various RPC timeout values for different plugin operations: CreateTask, GetTask, DeleteTask; if not configured, defaults to DefaultTimeout.
DefaultTimeoutconfig.Duration = nullGives the default RPC timeout if a more specific one is not defined in Timeouts; if neither DefaultTimeout nor Timeouts is defined for an operation, RPC timeout will not be enforced.
Projectstring = nullThis connector will handle the tasks in this project.
Domainstring = nullThis connector will handle the tasks in this domain.