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
| Attribute | Type | Description |
|---|---|---|
| Endpoint | string | Endpoint points to a connector gRPC endpoint. |
| Insecure | bool | 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. |