request

package
v1.9.1-0...-8664551 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL