Skip to main content

Deployment

This class represents a deployment configuration for a connector, specifying how it connects to a gRPC endpoint. It includes settings for security, default service configurations, and various RPC timeouts for plugin operations. Additionally, it defines the project and domain that the connector will manage tasks within.

Attributes

AttributeTypeDescription
EndpointstringEndpoint points to a connector gRPC endpoint.
InsecurebooleanInsecure 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.