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
| Attribute | Type | Description |
|---|---|---|
| Endpoint | string | Endpoint points to a connector gRPC endpoint. |
| Insecure | boolean | Insecure indicates whether the communication with the gRPC service is insecure. |
| DefaultServiceConfig | string | DefaultServiceConfig sets default gRPC service config; check https://github.com/grpc/grpc/blob/master/doc/service_config.md for more details. |
| Timeouts | map[string]config.Duration | Timeouts defines various RPC timeout values for different plugin operations: CreateTask, GetTask, DeleteTask; if not configured, defaults to DefaultTimeout. |
| DefaultTimeout | config.Duration | DefaultTimeout 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. |
| Project | string | This connector will handle the tasks in this project. |
| Domain | string | This 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
| Name | Type | Description |
|---|---|---|
| Endpoint | string = null | Points to a connector gRPC endpoint. |
| Insecure | bool = null | Indicates whether the communication with the gRPC service is insecure. |
| DefaultServiceConfig | string = null | Sets default gRPC service config; check https://github.com/grpc/grpc/blob/master/doc/service_config.md for more details. |
| Timeouts | map[string]config.Duration = null | Defines various RPC timeout values for different plugin operations: CreateTask, GetTask, DeleteTask; if not configured, defaults to DefaultTimeout. |
| DefaultTimeout | config.Duration = null | 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. |
| Project | string = null | This connector will handle the tasks in this project. |
| Domain | string = null | This connector will handle the tasks in this domain. |