Documentation
¶
Index ¶
- Constants
- Variables
- type CreateActionByBatchRequest
- type CreateActionRequest
- func (req *CreateActionRequest) AppendVirtualResourceToTemplate(value interface{})
- func (req *CreateActionRequest) ExportActionTypeInInt() int
- func (req *CreateActionRequest) ExportConfigInString() string
- func (req *CreateActionRequest) ExportResourceIDInInt() int
- func (req *CreateActionRequest) ExportTemplateInString() string
- func (req *CreateActionRequest) ExportTransformerInString() string
- func (req *CreateActionRequest) IsLocalVirtualAction() bool
- func (req *CreateActionRequest) IsRemoteVirtualAction() bool
- func (req *CreateActionRequest) IsVirtualAction() bool
- func (req *CreateActionRequest) NeedFetchResourceInfoFromSourceManager() bool
- type CreateAppRequest
- type CreateFlowActionRequest
- func (req *CreateFlowActionRequest) AppendVirtualResourceToTemplate(value interface{})
- func (req *CreateFlowActionRequest) ExportConfigInString() string
- func (req *CreateFlowActionRequest) ExportFlowActionTypeInInt() int
- func (req *CreateFlowActionRequest) ExportResourceIDInInt() int
- func (req *CreateFlowActionRequest) ExportTemplateInString() string
- func (req *CreateFlowActionRequest) ExportTransformerInString() string
- func (req *CreateFlowActionRequest) IsLocalVirtualAction() bool
- func (req *CreateFlowActionRequest) IsRemoteVirtualAction() bool
- func (req *CreateFlowActionRequest) IsVirtualAction() bool
- func (req *CreateFlowActionRequest) NeedFetchResourceInfoFromSourceManager() bool
- type CreateOAuthTokenRequest
- type CreateResourceRequest
- type DuplicateAppRequest
- type GenerateSQLRequest
- type GetAppByIDsInternalRequest
- type PublishAppToMarketplaceInternalRequest
- type ReleaseAppRequest
- type RunActionRequest
- func (req *RunActionRequest) ExportContext() map[string]interface{}
- func (req *RunActionRequest) ExportContextInString() string
- func (req *RunActionRequest) ExportFlowActionTypeInInt() int
- func (req *RunActionRequest) ExportResourceIDInInt() int
- func (req *RunActionRequest) ExportTemplateInString() string
- func (req *RunActionRequest) ExportTemplateWithContextInString() string
- func (req *RunActionRequest) IsVirtualAction() bool
- type RunFlowActionRequest
- func (req *RunFlowActionRequest) DoesContextAvaliable() bool
- func (req *RunFlowActionRequest) ExportContext() map[string]interface{}
- func (req *RunFlowActionRequest) ExportContextInString() string
- func (req *RunFlowActionRequest) ExportFlowActionTypeInInt() int
- func (req *RunFlowActionRequest) ExportResourceIDInInt() int
- func (req *RunFlowActionRequest) ExportTemplateInString() string
- func (req *RunFlowActionRequest) ExportTemplateWithContextInString() string
- func (req *RunFlowActionRequest) IsVirtualAction() bool
- type TestResourceConnectionRequest
- type UpdateActionByBatchRequest
- type UpdateActionRequest
- func (req *UpdateActionRequest) AppendVirtualResourceToTemplate(value interface{})
- func (req *UpdateActionRequest) ExportActionIDInInt() int
- func (req *UpdateActionRequest) ExportActionTypeInInt() int
- func (req *UpdateActionRequest) ExportConfigInString() string
- func (req *UpdateActionRequest) ExportResourceIDInInt() int
- func (req *UpdateActionRequest) ExportTemplateInString() string
- func (req *UpdateActionRequest) ExportTransformerInString() string
- func (req *UpdateActionRequest) IsLocalVirtualAction() bool
- func (req *UpdateActionRequest) IsRemoteVirtualAction() bool
- func (req *UpdateActionRequest) IsVirtualAction() bool
- func (req *UpdateActionRequest) NeedFetchResourceInfoFromSourceManager() bool
- type UpdateFlowActionByBatchRequest
- type UpdateFlowActionRequest
- func (req *UpdateFlowActionRequest) AppendVirtualResourceToTemplate(value interface{})
- func (req *UpdateFlowActionRequest) ExportConfigInString() string
- func (req *UpdateFlowActionRequest) ExportFlowActionIDInInt() int
- func (req *UpdateFlowActionRequest) ExportFlowActionTypeInInt() int
- func (req *UpdateFlowActionRequest) ExportResourceIDInInt() int
- func (req *UpdateFlowActionRequest) ExportTemplateInString() string
- func (req *UpdateFlowActionRequest) ExportTransformerInString() string
- func (req *UpdateFlowActionRequest) IsLocalVirtualAction() bool
- func (req *UpdateFlowActionRequest) IsRemoteVirtualAction() bool
- func (req *UpdateFlowActionRequest) IsVirtualAction() bool
- func (req *UpdateFlowActionRequest) NeedFetchResourceInfoFromSourceManager() bool
- type UpdateResourceRequest
Constants ¶
View Source
const ( OAUTH_TOKEN_ACCESS_TYPE_READ_AND_WRITE = "rw" OAUTH_TOKEN_ACCESS_TYPE_READ_ONLY = "r" )
View Source
const ( ACTION_REQUEST_CONTENT_FIELD_VIRTUAL_RESOURCE = "virtualResource" ORDER_BY_CREATED_AT = "createdAt" ORDER_BY_UPDATED_AT = "updatedAt" )
View Source
const (
APP_DEFAULT_TYPE_STRING = "pc"
)
View Source
const GENERATE_SQL_ACTION_DELETE = 4
View Source
const GENERATE_SQL_ACTION_INSERT = 2
View Source
const GENERATE_SQL_ACTION_SELECT = 1
View Source
const GENERATE_SQL_ACTION_UPDATE = 3
View Source
const (
RUN_ACTION_REQUEST_FIELD_CONTEXT = "context"
)
View Source
const (
RUN_FLOW_ACTION_REQUEST_FIELD_CONTEXT = "context"
)
Variables ¶
View Source
var ACTION_MAP = map[int]string{ GENERATE_SQL_ACTION_SELECT: "SELECT", GENERATE_SQL_ACTION_INSERT: "INSERT", GENERATE_SQL_ACTION_UPDATE: "UPDATE", GENERATE_SQL_ACTION_DELETE: "DELETE", }
Functions ¶
This section is empty.
Types ¶
type CreateActionByBatchRequest ¶
type CreateActionByBatchRequest struct {
Actions []*CreateActionRequest `json:"actions"`
}
The create action HTTP request body like: ```json
{ "actions":[ { "actionType": "postgresql", "displayName": "postgresql1", "resourceID": "ILAfx4p1C7cd", "content": { "mode": "sql", "query": "" }, "isVirtualResource": true, "transformer": { "rawData": "", "enable": false }, "triggerMode": "manually", "config": { "public": false, "advancedConfig": { "runtime": "none", "pages": [], "delayWhenLoaded": "", "displayLoadingPage": false, "isPeriodically": false, "periodInterval": "" } } }, ... ] }
```
func NewCreateActionByBatchRequest ¶
func NewCreateActionByBatchRequest() *CreateActionByBatchRequest
func (*CreateActionByBatchRequest) ExportActions ¶
func (req *CreateActionByBatchRequest) ExportActions() []*CreateActionRequest
type CreateActionRequest ¶
type CreateActionRequest struct { ActionType string `json:"actionType" validate:"required"` DisplayName string `json:"displayName" validate:"required"` ResourceID string `json:"resourceID,omitempty"` IsVirtualResource bool `json:"isVirtualResource"` Content map[string]interface{} `json:"content" validate:"required"` Transformer map[string]interface{} `json:"transformer" validate:"required"` TriggerMode string `json:"triggerMode" validate:"oneof=manually automate"` Config map[string]interface{} `json:"config"` }
The create action HTTP request body like: ```json
{ "actionType": "postgresql", "displayName": "postgresql1", "resourceID": "ILAfx4p1C7cd", "content": { "mode": "sql", "query": "" }, "isVirtualResource": true, "transformer": { "rawData": "", "enable": false }, "triggerMode": "manually", "config": { "public": false, "advancedConfig": { "runtime": "none", "pages": [], "delayWhenLoaded": "", "displayLoadingPage": false, "isPeriodically": false, "periodInterval": "" } } }
```
func NewCreateActionRequest ¶
func NewCreateActionRequest() *CreateActionRequest
func (*CreateActionRequest) AppendVirtualResourceToTemplate ¶
func (req *CreateActionRequest) AppendVirtualResourceToTemplate(value interface{})
func (*CreateActionRequest) ExportActionTypeInInt ¶
func (req *CreateActionRequest) ExportActionTypeInInt() int
func (*CreateActionRequest) ExportConfigInString ¶
func (req *CreateActionRequest) ExportConfigInString() string
func (*CreateActionRequest) ExportResourceIDInInt ¶
func (req *CreateActionRequest) ExportResourceIDInInt() int
func (*CreateActionRequest) ExportTemplateInString ¶
func (req *CreateActionRequest) ExportTemplateInString() string
func (*CreateActionRequest) ExportTransformerInString ¶
func (req *CreateActionRequest) ExportTransformerInString() string
func (*CreateActionRequest) IsLocalVirtualAction ¶
func (req *CreateActionRequest) IsLocalVirtualAction() bool
func (*CreateActionRequest) IsRemoteVirtualAction ¶
func (req *CreateActionRequest) IsRemoteVirtualAction() bool
func (*CreateActionRequest) IsVirtualAction ¶
func (req *CreateActionRequest) IsVirtualAction() bool
func (*CreateActionRequest) NeedFetchResourceInfoFromSourceManager ¶
func (req *CreateActionRequest) NeedFetchResourceInfoFromSourceManager() bool
type CreateAppRequest ¶
type CreateAppRequest struct { Name string `json:"appName" validate:"required"` InitScheme interface{} `json:"initScheme"` AppType string `json:"appType"` }
func NewCreateAppRequest ¶
func NewCreateAppRequest() *CreateAppRequest
func (*CreateAppRequest) ExportAppName ¶
func (req *CreateAppRequest) ExportAppName() string
func (*CreateAppRequest) ExportAppType ¶
func (req *CreateAppRequest) ExportAppType() string
func (*CreateAppRequest) ExportInitScheme ¶
func (req *CreateAppRequest) ExportInitScheme() interface{}
type CreateFlowActionRequest ¶
type CreateFlowActionRequest struct { FlowActionType string `json:"flowActionType" validate:"required"` DisplayName string `json:"displayName" validate:"required"` ResourceID string `json:"resourceID,omitempty"` IsVirtualResource bool `json:"isVirtualResource"` Content map[string]interface{} `json:"content" validate:"required"` Transformer map[string]interface{} `json:"transformer" validate:"required"` TriggerMode string `json:"triggerMode" validate:"oneof=manually automate"` Config map[string]interface{} `json:"config"` }
The create action HTTP request body like: ```json
{ "actionType": "postgresql", "displayName": "postgresql1", "resourceID": "ILAfx4p1C7cd", "content": { "mode": "sql", "query": "" }, "isVirtualResource": true, "transformer": { "rawData": "", "enable": false }, "triggerMode": "manually", "config": { "public": false, "advancedConfig": { "runtime": "none", "pages": [], "delayWhenLoaded": "", "displayLoadingPage": false, "isPeriodically": false, "periodInterval": "" } } }
```
func NewCreateFlowActionRequest ¶
func NewCreateFlowActionRequest() *CreateFlowActionRequest
func (*CreateFlowActionRequest) AppendVirtualResourceToTemplate ¶
func (req *CreateFlowActionRequest) AppendVirtualResourceToTemplate(value interface{})
func (*CreateFlowActionRequest) ExportConfigInString ¶
func (req *CreateFlowActionRequest) ExportConfigInString() string
func (*CreateFlowActionRequest) ExportFlowActionTypeInInt ¶
func (req *CreateFlowActionRequest) ExportFlowActionTypeInInt() int
func (*CreateFlowActionRequest) ExportResourceIDInInt ¶
func (req *CreateFlowActionRequest) ExportResourceIDInInt() int
func (*CreateFlowActionRequest) ExportTemplateInString ¶
func (req *CreateFlowActionRequest) ExportTemplateInString() string
func (*CreateFlowActionRequest) ExportTransformerInString ¶
func (req *CreateFlowActionRequest) ExportTransformerInString() string
func (*CreateFlowActionRequest) IsLocalVirtualAction ¶
func (req *CreateFlowActionRequest) IsLocalVirtualAction() bool
func (*CreateFlowActionRequest) IsRemoteVirtualAction ¶
func (req *CreateFlowActionRequest) IsRemoteVirtualAction() bool
func (*CreateFlowActionRequest) IsVirtualAction ¶
func (req *CreateFlowActionRequest) IsVirtualAction() bool
func (*CreateFlowActionRequest) NeedFetchResourceInfoFromSourceManager ¶
func (req *CreateFlowActionRequest) NeedFetchResourceInfoFromSourceManager() bool
type CreateOAuthTokenRequest ¶
type CreateOAuthTokenRequest struct { RedirectURL string `json:"redirectURL" validate:"required"` AccessType string `json:"accessType" validate:"oneof=rw r"` }
func NewCreateOAuthTokenRequest ¶
func NewCreateOAuthTokenRequest() *CreateOAuthTokenRequest
func (*CreateOAuthTokenRequest) ExportRedirectURL ¶
func (req *CreateOAuthTokenRequest) ExportRedirectURL() string
func (*CreateOAuthTokenRequest) IsReadAndWrite ¶
func (req *CreateOAuthTokenRequest) IsReadAndWrite() bool
func (*CreateOAuthTokenRequest) IsReadOnly ¶
func (req *CreateOAuthTokenRequest) IsReadOnly() bool
type CreateResourceRequest ¶
type CreateResourceRequest struct { ResourceName string `json:"resourceName" validate:"required,min=1,max=128"` ResourceType string `json:"resourceType" validate:"required"` Content map[string]interface{} `json:"content" validate:"required"` }
the create resource request like:
{ "resourceName": "sample", "resourceType": "postgresql", "content": { "host": "111.111.111.111", "port": "5432", "databaseName": "dbName", "databaseUsername": "username", "databasePassword": "password", "ssl": { "ssl": false, "clientKey": "", "clientCert": "", "serverCert": "" } } }
func NewCreateResourceRequest ¶
func NewCreateResourceRequest() *CreateResourceRequest
func (*CreateResourceRequest) ExportOptionsInString ¶
func (req *CreateResourceRequest) ExportOptionsInString() string
func (*CreateResourceRequest) ExportType ¶
func (req *CreateResourceRequest) ExportType() string
type DuplicateAppRequest ¶
type DuplicateAppRequest struct {
Name string `json:"appName" validate:"required"`
}
func NewDuplicateAppRequest ¶
func NewDuplicateAppRequest() *DuplicateAppRequest
func (*DuplicateAppRequest) ExportAppName ¶
func (req *DuplicateAppRequest) ExportAppName() string
type GenerateSQLRequest ¶
type GenerateSQLRequest struct { Description string `json:"description" validate:"required"` ResourceID string `json:"resourceID" validate:"required"` Action int `json:"action" validate:"required"` }
func NewGenerateSQLRequest ¶
func NewGenerateSQLRequest() *GenerateSQLRequest
func (*GenerateSQLRequest) ExportResourceIDInInt ¶
func (req *GenerateSQLRequest) ExportResourceIDInInt() int
func (*GenerateSQLRequest) GetActionInString ¶
func (req *GenerateSQLRequest) GetActionInString() string
type GetAppByIDsInternalRequest ¶
type GetAppByIDsInternalRequest struct {
IDs []int `json:"ids" validate:"required"`
}
func NewGetAppByIDsInternalRequest ¶
func NewGetAppByIDsInternalRequest() *GetAppByIDsInternalRequest
func (*GetAppByIDsInternalRequest) ExportInJSONString ¶
func (req *GetAppByIDsInternalRequest) ExportInJSONString() string
type PublishAppToMarketplaceInternalRequest ¶
type PublishAppToMarketplaceInternalRequest struct { PublishedToMarketplace bool `json:"publishedToMarketplace" ` UserID int `json:"userID" validate:"required"` }
func NewPublishAppToMarketplaceInternalRequest ¶
func NewPublishAppToMarketplaceInternalRequest() *PublishAppToMarketplaceInternalRequest
func (*PublishAppToMarketplaceInternalRequest) ExportInJSONString ¶
func (req *PublishAppToMarketplaceInternalRequest) ExportInJSONString() string
type ReleaseAppRequest ¶
type ReleaseAppRequest struct {
Public bool `json:"public" validate:"required"`
}
func NewReleaseAppRequest ¶
func NewReleaseAppRequest() *ReleaseAppRequest
func (*ReleaseAppRequest) ExportPublic ¶
func (req *ReleaseAppRequest) ExportPublic() bool
type RunActionRequest ¶
type RunActionRequest struct { ResourceID string `json:"resourceID,omitempty"` ActionType string `json:"actionType" validate:"required"` DisplayName string `json:"displayName" validate:"required"` Content map[string]interface{} `json:"content" validate:"required"` Context map[string]interface{} `json:"context" validate:"required"` // for action content raw param }
func NewRunActionRequest ¶
func NewRunActionRequest() *RunActionRequest
func (*RunActionRequest) ExportContext ¶
func (req *RunActionRequest) ExportContext() map[string]interface{}
func (*RunActionRequest) ExportContextInString ¶
func (req *RunActionRequest) ExportContextInString() string
func (*RunActionRequest) ExportFlowActionTypeInInt ¶
func (req *RunActionRequest) ExportFlowActionTypeInInt() int
func (*RunActionRequest) ExportResourceIDInInt ¶
func (req *RunActionRequest) ExportResourceIDInInt() int
func (*RunActionRequest) ExportTemplateInString ¶
func (req *RunActionRequest) ExportTemplateInString() string
func (*RunActionRequest) ExportTemplateWithContextInString ¶
func (req *RunActionRequest) ExportTemplateWithContextInString() string
func (*RunActionRequest) IsVirtualAction ¶
func (req *RunActionRequest) IsVirtualAction() bool
type RunFlowActionRequest ¶
type RunFlowActionRequest struct { ResourceID string `json:"resourceID,omitempty"` FlowActionType string `json:"flowActionType" validate:"required"` DisplayName string `json:"displayName" validate:"required"` Content map[string]interface{} `json:"content" validate:"required"` Context map[string]interface{} `json:"context" validate:"required"` // for action content raw param }
func NewRunFlowActionRequest ¶
func NewRunFlowActionRequest() *RunFlowActionRequest
func (*RunFlowActionRequest) DoesContextAvaliable ¶
func (req *RunFlowActionRequest) DoesContextAvaliable() bool
func (*RunFlowActionRequest) ExportContext ¶
func (req *RunFlowActionRequest) ExportContext() map[string]interface{}
func (*RunFlowActionRequest) ExportContextInString ¶
func (req *RunFlowActionRequest) ExportContextInString() string
func (*RunFlowActionRequest) ExportFlowActionTypeInInt ¶
func (req *RunFlowActionRequest) ExportFlowActionTypeInInt() int
func (*RunFlowActionRequest) ExportResourceIDInInt ¶
func (req *RunFlowActionRequest) ExportResourceIDInInt() int
func (*RunFlowActionRequest) ExportTemplateInString ¶
func (req *RunFlowActionRequest) ExportTemplateInString() string
func (*RunFlowActionRequest) ExportTemplateWithContextInString ¶
func (req *RunFlowActionRequest) ExportTemplateWithContextInString() string
func (*RunFlowActionRequest) IsVirtualAction ¶
func (req *RunFlowActionRequest) IsVirtualAction() bool
type TestResourceConnectionRequest ¶
type TestResourceConnectionRequest struct { ResourceName string `json:"resourceName" validate:"required,min=1,max=128"` ResourceType string `json:"resourceType" validate:"required"` Content map[string]interface{} `json:"content" validate:"required"` }
the test resource connection request like:
{ "resourceName": "sample", "resourceType": "postgresql", "content": { "host": "111.111.111.111", "port": "5432", "databaseName": "dbName", "databaseUsername": "username", "databasePassword": "password", "ssl": { "ssl": false, "clientKey": "", "clientCert": "", "serverCert": "" } } }
func NewTestResourceConnectionRequest ¶
func NewTestResourceConnectionRequest() *TestResourceConnectionRequest
func (*TestResourceConnectionRequest) ExportOptionsInString ¶
func (req *TestResourceConnectionRequest) ExportOptionsInString() string
func (*TestResourceConnectionRequest) ExportType ¶
func (req *TestResourceConnectionRequest) ExportType() string
type UpdateActionByBatchRequest ¶
type UpdateActionByBatchRequest struct {
Actions []*UpdateActionRequest `json:"actions"`
}
The create action HTTP request body like: ```json
{ "actions":[ { "actionType": "postgresql", "displayName": "postgresql1", "resourceID": "ILAfx4p1C7cd", "content": { "mode": "sql", "query": "" }, "isVirtualResource": true, "transformer": { "rawData": "", "enable": false }, "triggerMode": "manually", "config": { "public": false, "advancedConfig": { "runtime": "none", "pages": [], "delayWhenLoaded": "", "displayLoadingPage": false, "isPeriodically": false, "periodInterval": "" } } }, ... ] }
```
func NewUpdateActionByBatchRequest ¶
func NewUpdateActionByBatchRequest() *UpdateActionByBatchRequest
func (*UpdateActionByBatchRequest) ExportActions ¶
func (req *UpdateActionByBatchRequest) ExportActions() []*UpdateActionRequest
type UpdateActionRequest ¶
type UpdateActionRequest struct { ActionID string `json:"actionID" ` ActionType string `json:"actionType" validate:"required"` DisplayName string `json:"displayName" validate:"required"` ResourceID string `json:"resourceID,omitempty"` IsVirtualResource bool `json:"isVirtualResource"` Content map[string]interface{} `json:"content" validate:"required"` Transformer map[string]interface{} `json:"transformer" validate:"required"` TriggerMode string `json:"triggerMode" validate:"oneof=manually automate"` Config map[string]interface{} `json:"config"` }
The update action HTTP request body like: ```json
{ "actionID": "ILAex4p1C7rD", "uid": "781f0ed4-62eb-4615-bd41-80bf2af8ceb4", "teamID": "ILAfx4p1C7bN", "resourceID": "ILAfx4p1C7cc", "displayName": "postgresql1", "actionType": "postgresql", "isVirtualResource": false, "content": { "mode": "sql", "query": "select * from data;" }, "transformer": { "enable": false, "rawData": "" }, "triggerMode": "manually", "config": { "public": false, "advancedConfig": { "runtime": "none", "pages": [], "delayWhenLoaded": "", "displayLoadingPage": false, "isPeriodically": false, "periodInterval": "" } }, "createdAt": "2023-08-25T10:18:21.914894943Z", "createdBy": "ILAfx4p1C7dX", "updatedAt": "2023-08-25T10:18:21.91489513Z", "updatedBy": "ILAfx4p1C7dX" }
```
func NewUpdateActionRequest ¶
func NewUpdateActionRequest() *UpdateActionRequest
func (*UpdateActionRequest) AppendVirtualResourceToTemplate ¶
func (req *UpdateActionRequest) AppendVirtualResourceToTemplate(value interface{})
func (*UpdateActionRequest) ExportActionIDInInt ¶
func (req *UpdateActionRequest) ExportActionIDInInt() int
func (*UpdateActionRequest) ExportActionTypeInInt ¶
func (req *UpdateActionRequest) ExportActionTypeInInt() int
func (*UpdateActionRequest) ExportConfigInString ¶
func (req *UpdateActionRequest) ExportConfigInString() string
func (*UpdateActionRequest) ExportResourceIDInInt ¶
func (req *UpdateActionRequest) ExportResourceIDInInt() int
func (*UpdateActionRequest) ExportTemplateInString ¶
func (req *UpdateActionRequest) ExportTemplateInString() string
func (*UpdateActionRequest) ExportTransformerInString ¶
func (req *UpdateActionRequest) ExportTransformerInString() string
func (*UpdateActionRequest) IsLocalVirtualAction ¶
func (req *UpdateActionRequest) IsLocalVirtualAction() bool
func (*UpdateActionRequest) IsRemoteVirtualAction ¶
func (req *UpdateActionRequest) IsRemoteVirtualAction() bool
func (*UpdateActionRequest) IsVirtualAction ¶
func (req *UpdateActionRequest) IsVirtualAction() bool
func (*UpdateActionRequest) NeedFetchResourceInfoFromSourceManager ¶
func (req *UpdateActionRequest) NeedFetchResourceInfoFromSourceManager() bool
type UpdateFlowActionByBatchRequest ¶
type UpdateFlowActionByBatchRequest struct {
FlowActions []*UpdateFlowActionRequest `json:"flowActions"`
}
func NewUpdateFlowActionByBatchRequest ¶
func NewUpdateFlowActionByBatchRequest() *UpdateFlowActionByBatchRequest
func (*UpdateFlowActionByBatchRequest) ExportFlowActions ¶
func (req *UpdateFlowActionByBatchRequest) ExportFlowActions() []*UpdateFlowActionRequest
type UpdateFlowActionRequest ¶
type UpdateFlowActionRequest struct { FlowActionID string `json:"flowActionID" validate:"required"` FlowActionType string `json:"flowActionType" validate:"required"` DisplayName string `json:"displayName" validate:"required"` ResourceID string `json:"resourceID,omitempty"` IsVirtualResource bool `json:"isVirtualResource"` Content map[string]interface{} `json:"content" validate:"required"` Transformer map[string]interface{} `json:"transformer" validate:"required"` TriggerMode string `json:"triggerMode" validate:"oneof=manually automate"` Config map[string]interface{} `json:"config"` }
The update action HTTP request body like: ```json
{ "actionID": "ILAex4p1C7rD", "uid": "781f0ed4-62eb-4615-bd41-80bf2af8ceb4", "teamID": "ILAfx4p1C7bN", "resourceID": "ILAfx4p1C7cc", "displayName": "postgresql1", "actionType": "postgresql", "isVirtualResource": false, "content": { "mode": "sql", "query": "select * from data;" }, "transformer": { "enable": false, "rawData": "" }, "triggerMode": "manually", "config": { "public": false, "advancedConfig": { "runtime": "none", "pages": [], "delayWhenLoaded": "", "displayLoadingPage": false, "isPeriodically": false, "periodInterval": "" } }, "createdAt": "2023-08-25T10:18:21.914894943Z", "createdBy": "ILAfx4p1C7dX", "updatedAt": "2023-08-25T10:18:21.91489513Z", "updatedBy": "ILAfx4p1C7dX" }
```
func NewUpdateFlowActionRequest ¶
func NewUpdateFlowActionRequest() *UpdateFlowActionRequest
func (*UpdateFlowActionRequest) AppendVirtualResourceToTemplate ¶
func (req *UpdateFlowActionRequest) AppendVirtualResourceToTemplate(value interface{})
func (*UpdateFlowActionRequest) ExportConfigInString ¶
func (req *UpdateFlowActionRequest) ExportConfigInString() string
func (*UpdateFlowActionRequest) ExportFlowActionIDInInt ¶
func (req *UpdateFlowActionRequest) ExportFlowActionIDInInt() int
func (*UpdateFlowActionRequest) ExportFlowActionTypeInInt ¶
func (req *UpdateFlowActionRequest) ExportFlowActionTypeInInt() int
func (*UpdateFlowActionRequest) ExportResourceIDInInt ¶
func (req *UpdateFlowActionRequest) ExportResourceIDInInt() int
func (*UpdateFlowActionRequest) ExportTemplateInString ¶
func (req *UpdateFlowActionRequest) ExportTemplateInString() string
func (*UpdateFlowActionRequest) ExportTransformerInString ¶
func (req *UpdateFlowActionRequest) ExportTransformerInString() string
func (*UpdateFlowActionRequest) IsLocalVirtualAction ¶
func (req *UpdateFlowActionRequest) IsLocalVirtualAction() bool
func (*UpdateFlowActionRequest) IsRemoteVirtualAction ¶
func (req *UpdateFlowActionRequest) IsRemoteVirtualAction() bool
func (*UpdateFlowActionRequest) IsVirtualAction ¶
func (req *UpdateFlowActionRequest) IsVirtualAction() bool
func (*UpdateFlowActionRequest) NeedFetchResourceInfoFromSourceManager ¶
func (req *UpdateFlowActionRequest) NeedFetchResourceInfoFromSourceManager() bool
type UpdateResourceRequest ¶
type UpdateResourceRequest struct { ResourceName string `json:"resourceName" validate:"required,min=1,max=128"` ResourceType string `json:"resourceType" validate:"required"` Content map[string]interface{} `json:"content" validate:"required"` }
the update resource request like:
{ "resourceName": "sample", "resourceType": "postgresql", "content": { "host": "111.111.111.111", "port": "5432", "databaseName": "dbName", "databaseUsername": "username", "databasePassword": "password", "ssl": { "ssl": false, "clientKey": "", "clientCert": "", "serverCert": "" } } }
func NewUpdateResourceRequest ¶
func NewUpdateResourceRequest() *UpdateResourceRequest
func (*UpdateResourceRequest) ExportOptionsInString ¶
func (req *UpdateResourceRequest) ExportOptionsInString() string
func (*UpdateResourceRequest) ExportType ¶
func (req *UpdateResourceRequest) ExportType() string
Source Files
¶
- create_action_by_batch_request.go
- create_action_request.go
- create_app_request.go
- create_flow_action_request.go
- create_oauth_token_request.go
- create_resource_request.go
- duplicate_app_request.go
- generate_sql_request.go
- get_app_by_ids_internal_request.go
- publish_app_to_marketplace_internal_request.go
- release_app_request.go
- request.go
- run_action_request.go
- run_flow_action_request.go
- test_resource_connection_request.go
- update_action_by_batch_request.go
- update_action_request.go
- update_flow_action_by_batch_request.go
- update_flow_action_request.go
- update_resource_request.go
Click to show internal directories.
Click to hide internal directories.