Documentation
¶
Overview ¶
Package insightiface provides an interface to enable mocking the INSIGHT service client for testing your code.
It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.
Index ¶
- Constants
- type ExpertInvokeAPIInput
- func (s ExpertInvokeAPIInput) GoString() string
- func (s *ExpertInvokeAPIInput) SetAsr(v string) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetClassifiedAgentId(v int64) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetConfigId(v int64) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetContent(v string) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetDomainLevel(v int32) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetExpertId(v int64) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetFansCnt(v int64) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetOcr(v string) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetOriginId(v int64) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetTitle(v string) *ExpertInvokeAPIInput
- func (s *ExpertInvokeAPIInput) SetUrl(v string) *ExpertInvokeAPIInput
- func (s ExpertInvokeAPIInput) String() string
- func (s *ExpertInvokeAPIInput) Validate() error
- type ExpertInvokeAPIOutput
- type INSIGHT
- func (c *INSIGHT) ExpertInvokeAPI(input *ExpertInvokeAPIInput) (*ExpertInvokeAPIOutput, error)
- func (c *INSIGHT) ExpertInvokeAPICommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *INSIGHT) ExpertInvokeAPICommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *INSIGHT) ExpertInvokeAPICommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *INSIGHT) ExpertInvokeAPIRequest(input *ExpertInvokeAPIInput) (req *request.Request, output *ExpertInvokeAPIOutput)
- func (c *INSIGHT) ExpertInvokeAPIWithContext(ctx volcengine.Context, input *ExpertInvokeAPIInput, opts ...request.Option) (*ExpertInvokeAPIOutput, error)
- func (c *INSIGHT) ListSubsTaskAPI(input *ListSubsTaskAPIInput) (*ListSubsTaskAPIOutput, error)
- func (c *INSIGHT) ListSubsTaskAPICommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *INSIGHT) ListSubsTaskAPICommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *INSIGHT) ListSubsTaskAPICommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *INSIGHT) ListSubsTaskAPIRequest(input *ListSubsTaskAPIInput) (req *request.Request, output *ListSubsTaskAPIOutput)
- func (c *INSIGHT) ListSubsTaskAPIWithContext(ctx volcengine.Context, input *ListSubsTaskAPIInput, opts ...request.Option) (*ListSubsTaskAPIOutput, error)
- func (c *INSIGHT) PullPost(input *PullPostInput) (*PullPostOutput, error)
- func (c *INSIGHT) PullPostCommon(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *INSIGHT) PullPostCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *INSIGHT) PullPostCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
- func (c *INSIGHT) PullPostRequest(input *PullPostInput) (req *request.Request, output *PullPostOutput)
- func (c *INSIGHT) PullPostWithContext(ctx volcengine.Context, input *PullPostInput, opts ...request.Option) (*PullPostOutput, error)
- type INSIGHTAPI
- type InsightSaasTaskListForListSubsTaskAPIOutput
- func (s InsightSaasTaskListForListSubsTaskAPIOutput) GoString() string
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetAccountID(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetAim(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetCreateTime(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetDialogID(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetDsl(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetJudge(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetModifyTime(v int64) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetName(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetPrecise(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetPreviewList(v []*PreviewListForListSubsTaskAPIOutput) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetPushStatus(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetRecall(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetStatus(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetTaskID(v int32) *InsightSaasTaskListForListSubsTaskAPIOutput
- func (s InsightSaasTaskListForListSubsTaskAPIOutput) String() string
- type ItemDocForPullPostOutput
- func (s ItemDocForPullPostOutput) GoString() string
- func (s *ItemDocForPullPostOutput) SetAsr(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetContent(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetDedupID(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetEmotion(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetFansCount(v int32) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetIsFollow(v bool) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetLocations(v []*LocationForPullPostOutput) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetMainDomain(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetMediaName(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetOcr(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetOcrHigh(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetPostID(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetPublishTime(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetReason(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetRiskType(v []*string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetSummary(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetTitle(v string) *ItemDocForPullPostOutput
- func (s *ItemDocForPullPostOutput) SetUrl(v string) *ItemDocForPullPostOutput
- func (s ItemDocForPullPostOutput) String() string
- type ListSubsTaskAPIInput
- func (s ListSubsTaskAPIInput) GoString() string
- func (s *ListSubsTaskAPIInput) SetPageNum(v int64) *ListSubsTaskAPIInput
- func (s *ListSubsTaskAPIInput) SetPageSize(v int64) *ListSubsTaskAPIInput
- func (s *ListSubsTaskAPIInput) SetStatus(v int32) *ListSubsTaskAPIInput
- func (s *ListSubsTaskAPIInput) SetTaskName(v string) *ListSubsTaskAPIInput
- func (s ListSubsTaskAPIInput) String() string
- type ListSubsTaskAPIOutput
- type LocationForPullPostOutput
- func (s LocationForPullPostOutput) GoString() string
- func (s *LocationForPullPostOutput) SetCity(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetCityCode(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetDistrict(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetDistrictCode(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetLocation(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetName(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetProvince(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetRegion(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetRegionCode(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetTown(v string) *LocationForPullPostOutput
- func (s *LocationForPullPostOutput) SetTownCode(v string) *LocationForPullPostOutput
- func (s LocationForPullPostOutput) String() string
- type PreviewListForListSubsTaskAPIOutput
- func (s PreviewListForListSubsTaskAPIOutput) GoString() string
- func (s *PreviewListForListSubsTaskAPIOutput) SetPostID(v string) *PreviewListForListSubsTaskAPIOutput
- func (s *PreviewListForListSubsTaskAPIOutput) SetTitle(v string) *PreviewListForListSubsTaskAPIOutput
- func (s PreviewListForListSubsTaskAPIOutput) String() string
- type PullPostInput
- func (s PullPostInput) GoString() string
- func (s *PullPostInput) SetEndTime(v string) *PullPostInput
- func (s *PullPostInput) SetPageToken(v string) *PullPostInput
- func (s *PullPostInput) SetSize(v int32) *PullPostInput
- func (s *PullPostInput) SetStartTime(v string) *PullPostInput
- func (s *PullPostInput) SetTaskID(v int32) *PullPostInput
- func (s PullPostInput) String() string
- func (s *PullPostInput) Validate() error
- type PullPostOutput
- type ResultForExpertInvokeAPIOutput
- func (s ResultForExpertInvokeAPIOutput) GoString() string
- func (s *ResultForExpertInvokeAPIOutput) SetAsr(v string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetContent(v string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetDomainLevel(v int32) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetFansCnt(v int64) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetHasRisk(v bool) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetOcr(v string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetOriginId(v string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetRelated(v bool) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetRelatedReason(v string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetRiskLevel(v string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetRiskReason(v string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetRiskTags(v []*string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetSuggestion(v string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetSummary(v string) *ResultForExpertInvokeAPIOutput
- func (s *ResultForExpertInvokeAPIOutput) SetTitle(v string) *ResultForExpertInvokeAPIOutput
- func (s ResultForExpertInvokeAPIOutput) String() string
Constants ¶
const ( ServiceName = "insight" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "insight" // ServiceID is a unique identifer of a specific service. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpertInvokeAPIInput ¶ added in v1.2.21
type ExpertInvokeAPIInput struct {
Asr *string `type:"string" json:",omitempty"`
ClassifiedAgentId *int64 `type:"int64" json:",omitempty"`
ConfigId *int64 `type:"int64" json:",omitempty"`
Content *string `type:"string" json:",omitempty"`
DomainLevel *int32 `type:"int32" json:",omitempty"`
// ExpertId is a required field
ExpertId *int64 `type:"int64" json:",omitempty" required:"true"`
FansCnt *int64 `type:"int64" json:",omitempty"`
Ocr *string `type:"string" json:",omitempty"`
OriginId *int64 `type:"int64" json:",omitempty"`
Title *string `type:"string" json:",omitempty"`
Url *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (ExpertInvokeAPIInput) GoString ¶ added in v1.2.21
func (s ExpertInvokeAPIInput) GoString() string
GoString returns the string representation
func (*ExpertInvokeAPIInput) SetAsr ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetAsr(v string) *ExpertInvokeAPIInput
SetAsr sets the Asr field's value.
func (*ExpertInvokeAPIInput) SetClassifiedAgentId ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetClassifiedAgentId(v int64) *ExpertInvokeAPIInput
SetClassifiedAgentId sets the ClassifiedAgentId field's value.
func (*ExpertInvokeAPIInput) SetConfigId ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetConfigId(v int64) *ExpertInvokeAPIInput
SetConfigId sets the ConfigId field's value.
func (*ExpertInvokeAPIInput) SetContent ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetContent(v string) *ExpertInvokeAPIInput
SetContent sets the Content field's value.
func (*ExpertInvokeAPIInput) SetDomainLevel ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetDomainLevel(v int32) *ExpertInvokeAPIInput
SetDomainLevel sets the DomainLevel field's value.
func (*ExpertInvokeAPIInput) SetExpertId ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetExpertId(v int64) *ExpertInvokeAPIInput
SetExpertId sets the ExpertId field's value.
func (*ExpertInvokeAPIInput) SetFansCnt ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetFansCnt(v int64) *ExpertInvokeAPIInput
SetFansCnt sets the FansCnt field's value.
func (*ExpertInvokeAPIInput) SetOcr ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetOcr(v string) *ExpertInvokeAPIInput
SetOcr sets the Ocr field's value.
func (*ExpertInvokeAPIInput) SetOriginId ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetOriginId(v int64) *ExpertInvokeAPIInput
SetOriginId sets the OriginId field's value.
func (*ExpertInvokeAPIInput) SetTitle ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetTitle(v string) *ExpertInvokeAPIInput
SetTitle sets the Title field's value.
func (*ExpertInvokeAPIInput) SetUrl ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) SetUrl(v string) *ExpertInvokeAPIInput
SetUrl sets the Url field's value.
func (ExpertInvokeAPIInput) String ¶ added in v1.2.21
func (s ExpertInvokeAPIInput) String() string
String returns the string representation
func (*ExpertInvokeAPIInput) Validate ¶ added in v1.2.21
func (s *ExpertInvokeAPIInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExpertInvokeAPIOutput ¶ added in v1.2.21
type ExpertInvokeAPIOutput struct {
Metadata *response.ResponseMetadata
Result *ResultForExpertInvokeAPIOutput `type:"structure" json:",omitempty"`
// contains filtered or unexported fields
}
func (ExpertInvokeAPIOutput) GoString ¶ added in v1.2.21
func (s ExpertInvokeAPIOutput) GoString() string
GoString returns the string representation
func (*ExpertInvokeAPIOutput) SetResult ¶ added in v1.2.21
func (s *ExpertInvokeAPIOutput) SetResult(v *ResultForExpertInvokeAPIOutput) *ExpertInvokeAPIOutput
SetResult sets the Result field's value.
func (ExpertInvokeAPIOutput) String ¶ added in v1.2.21
func (s ExpertInvokeAPIOutput) String() string
String returns the string representation
type INSIGHT ¶
INSIGHT provides the API operation methods for making requests to INSIGHT. See this package's package overview docs for details on the service.
INSIGHT methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*volcengine.Config) *INSIGHT
New create int can support ssl or region locate set
func (*INSIGHT) ExpertInvokeAPI ¶ added in v1.2.21
func (c *INSIGHT) ExpertInvokeAPI(input *ExpertInvokeAPIInput) (*ExpertInvokeAPIOutput, error)
ExpertInvokeAPI API operation for INSIGHT.
Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.
See the VOLCENGINE API reference guide for INSIGHT's API operation ExpertInvokeAPI for usage and error information.
func (*INSIGHT) ExpertInvokeAPICommon ¶ added in v1.2.21
func (c *INSIGHT) ExpertInvokeAPICommon(input *map[string]interface{}) (*map[string]interface{}, error)
ExpertInvokeAPICommon API operation for INSIGHT.
Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.
See the VOLCENGINE API reference guide for INSIGHT's API operation ExpertInvokeAPICommon for usage and error information.
func (*INSIGHT) ExpertInvokeAPICommonRequest ¶ added in v1.2.21
func (c *INSIGHT) ExpertInvokeAPICommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
ExpertInvokeAPICommonRequest generates a "volcengine/request.Request" representing the client's request for the ExpertInvokeAPICommon operation. The "output" return value will be populated with the ExpertInvokeAPICommon request's response once the request completes successfully.
Use "Send" method on the returned ExpertInvokeAPICommon Request to send the API call to the service. the "output" return value is not valid until after ExpertInvokeAPICommon Send returns without error.
See ExpertInvokeAPICommon for more information on using the ExpertInvokeAPICommon API call, and error handling.
// Example sending a request using the ExpertInvokeAPICommonRequest method.
req, resp := client.ExpertInvokeAPICommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*INSIGHT) ExpertInvokeAPICommonWithContext ¶ added in v1.2.21
func (c *INSIGHT) ExpertInvokeAPICommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
ExpertInvokeAPICommonWithContext is the same as ExpertInvokeAPICommon with the addition of the ability to pass a context and additional request options.
See ExpertInvokeAPICommon for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*INSIGHT) ExpertInvokeAPIRequest ¶ added in v1.2.21
func (c *INSIGHT) ExpertInvokeAPIRequest(input *ExpertInvokeAPIInput) (req *request.Request, output *ExpertInvokeAPIOutput)
ExpertInvokeAPIRequest generates a "volcengine/request.Request" representing the client's request for the ExpertInvokeAPI operation. The "output" return value will be populated with the ExpertInvokeAPICommon request's response once the request completes successfully.
Use "Send" method on the returned ExpertInvokeAPICommon Request to send the API call to the service. the "output" return value is not valid until after ExpertInvokeAPICommon Send returns without error.
See ExpertInvokeAPI for more information on using the ExpertInvokeAPI API call, and error handling.
// Example sending a request using the ExpertInvokeAPIRequest method.
req, resp := client.ExpertInvokeAPIRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*INSIGHT) ExpertInvokeAPIWithContext ¶ added in v1.2.21
func (c *INSIGHT) ExpertInvokeAPIWithContext(ctx volcengine.Context, input *ExpertInvokeAPIInput, opts ...request.Option) (*ExpertInvokeAPIOutput, error)
ExpertInvokeAPIWithContext is the same as ExpertInvokeAPI with the addition of the ability to pass a context and additional request options.
See ExpertInvokeAPI for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*INSIGHT) ListSubsTaskAPI ¶ added in v1.2.21
func (c *INSIGHT) ListSubsTaskAPI(input *ListSubsTaskAPIInput) (*ListSubsTaskAPIOutput, error)
ListSubsTaskAPI API operation for INSIGHT.
Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.
See the VOLCENGINE API reference guide for INSIGHT's API operation ListSubsTaskAPI for usage and error information.
func (*INSIGHT) ListSubsTaskAPICommon ¶ added in v1.2.21
func (c *INSIGHT) ListSubsTaskAPICommon(input *map[string]interface{}) (*map[string]interface{}, error)
ListSubsTaskAPICommon API operation for INSIGHT.
Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.
See the VOLCENGINE API reference guide for INSIGHT's API operation ListSubsTaskAPICommon for usage and error information.
func (*INSIGHT) ListSubsTaskAPICommonRequest ¶ added in v1.2.21
func (c *INSIGHT) ListSubsTaskAPICommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
ListSubsTaskAPICommonRequest generates a "volcengine/request.Request" representing the client's request for the ListSubsTaskAPICommon operation. The "output" return value will be populated with the ListSubsTaskAPICommon request's response once the request completes successfully.
Use "Send" method on the returned ListSubsTaskAPICommon Request to send the API call to the service. the "output" return value is not valid until after ListSubsTaskAPICommon Send returns without error.
See ListSubsTaskAPICommon for more information on using the ListSubsTaskAPICommon API call, and error handling.
// Example sending a request using the ListSubsTaskAPICommonRequest method.
req, resp := client.ListSubsTaskAPICommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*INSIGHT) ListSubsTaskAPICommonWithContext ¶ added in v1.2.21
func (c *INSIGHT) ListSubsTaskAPICommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
ListSubsTaskAPICommonWithContext is the same as ListSubsTaskAPICommon with the addition of the ability to pass a context and additional request options.
See ListSubsTaskAPICommon for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*INSIGHT) ListSubsTaskAPIRequest ¶ added in v1.2.21
func (c *INSIGHT) ListSubsTaskAPIRequest(input *ListSubsTaskAPIInput) (req *request.Request, output *ListSubsTaskAPIOutput)
ListSubsTaskAPIRequest generates a "volcengine/request.Request" representing the client's request for the ListSubsTaskAPI operation. The "output" return value will be populated with the ListSubsTaskAPICommon request's response once the request completes successfully.
Use "Send" method on the returned ListSubsTaskAPICommon Request to send the API call to the service. the "output" return value is not valid until after ListSubsTaskAPICommon Send returns without error.
See ListSubsTaskAPI for more information on using the ListSubsTaskAPI API call, and error handling.
// Example sending a request using the ListSubsTaskAPIRequest method.
req, resp := client.ListSubsTaskAPIRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*INSIGHT) ListSubsTaskAPIWithContext ¶ added in v1.2.21
func (c *INSIGHT) ListSubsTaskAPIWithContext(ctx volcengine.Context, input *ListSubsTaskAPIInput, opts ...request.Option) (*ListSubsTaskAPIOutput, error)
ListSubsTaskAPIWithContext is the same as ListSubsTaskAPI with the addition of the ability to pass a context and additional request options.
See ListSubsTaskAPI for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*INSIGHT) PullPost ¶
func (c *INSIGHT) PullPost(input *PullPostInput) (*PullPostOutput, error)
PullPost API operation for INSIGHT.
Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.
See the VOLCENGINE API reference guide for INSIGHT's API operation PullPost for usage and error information.
func (*INSIGHT) PullPostCommon ¶
PullPostCommon API operation for INSIGHT.
Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.
See the VOLCENGINE API reference guide for INSIGHT's API operation PullPostCommon for usage and error information.
func (*INSIGHT) PullPostCommonRequest ¶
func (c *INSIGHT) PullPostCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
PullPostCommonRequest generates a "volcengine/request.Request" representing the client's request for the PullPostCommon operation. The "output" return value will be populated with the PullPostCommon request's response once the request completes successfully.
Use "Send" method on the returned PullPostCommon Request to send the API call to the service. the "output" return value is not valid until after PullPostCommon Send returns without error.
See PullPostCommon for more information on using the PullPostCommon API call, and error handling.
// Example sending a request using the PullPostCommonRequest method.
req, resp := client.PullPostCommonRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*INSIGHT) PullPostCommonWithContext ¶
func (c *INSIGHT) PullPostCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
PullPostCommonWithContext is the same as PullPostCommon with the addition of the ability to pass a context and additional request options.
See PullPostCommon for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*INSIGHT) PullPostRequest ¶
func (c *INSIGHT) PullPostRequest(input *PullPostInput) (req *request.Request, output *PullPostOutput)
PullPostRequest generates a "volcengine/request.Request" representing the client's request for the PullPost operation. The "output" return value will be populated with the PullPostCommon request's response once the request completes successfully.
Use "Send" method on the returned PullPostCommon Request to send the API call to the service. the "output" return value is not valid until after PullPostCommon Send returns without error.
See PullPost for more information on using the PullPost API call, and error handling.
// Example sending a request using the PullPostRequest method.
req, resp := client.PullPostRequest(params)
err := req.Send()
if err == nil { // resp is now filled
fmt.Println(resp)
}
func (*INSIGHT) PullPostWithContext ¶
func (c *INSIGHT) PullPostWithContext(ctx volcengine.Context, input *PullPostInput, opts ...request.Option) (*PullPostOutput, error)
PullPostWithContext is the same as PullPost with the addition of the ability to pass a context and additional request options.
See PullPost for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type INSIGHTAPI ¶
type INSIGHTAPI interface {
ExpertInvokeAPICommon(*map[string]interface{}) (*map[string]interface{}, error)
ExpertInvokeAPICommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
ExpertInvokeAPICommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
ExpertInvokeAPI(*ExpertInvokeAPIInput) (*ExpertInvokeAPIOutput, error)
ExpertInvokeAPIWithContext(volcengine.Context, *ExpertInvokeAPIInput, ...request.Option) (*ExpertInvokeAPIOutput, error)
ExpertInvokeAPIRequest(*ExpertInvokeAPIInput) (*request.Request, *ExpertInvokeAPIOutput)
ListSubsTaskAPICommon(*map[string]interface{}) (*map[string]interface{}, error)
ListSubsTaskAPICommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
ListSubsTaskAPICommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
ListSubsTaskAPI(*ListSubsTaskAPIInput) (*ListSubsTaskAPIOutput, error)
ListSubsTaskAPIWithContext(volcengine.Context, *ListSubsTaskAPIInput, ...request.Option) (*ListSubsTaskAPIOutput, error)
ListSubsTaskAPIRequest(*ListSubsTaskAPIInput) (*request.Request, *ListSubsTaskAPIOutput)
PullPostCommon(*map[string]interface{}) (*map[string]interface{}, error)
PullPostCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
PullPostCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})
PullPost(*PullPostInput) (*PullPostOutput, error)
PullPostWithContext(volcengine.Context, *PullPostInput, ...request.Option) (*PullPostOutput, error)
PullPostRequest(*PullPostInput) (*request.Request, *PullPostOutput)
}
INSIGHTAPI provides an interface to enable mocking the insight.INSIGHT service client's API operation,
// volcengine sdk func uses an SDK service client to make a request to
// INSIGHT.
func myFunc(svc INSIGHTAPI) bool {
// Make svc.ExpertInvokeAPI request
}
func main() {
sess := session.New()
svc := insight.New(sess)
myFunc(svc)
}
type InsightSaasTaskListForListSubsTaskAPIOutput ¶ added in v1.2.21
type InsightSaasTaskListForListSubsTaskAPIOutput struct {
AccountID *string `type:"string"`
Aim *string `type:"string"`
CreateTime *string `type:"string"`
DialogID *string `type:"string"`
Dsl *string `type:"string"`
Judge *string `type:"string"`
ModifyTime *int64 `type:"int64"`
Name *string `type:"string"`
Precise *string `type:"string"`
PreviewList []*PreviewListForListSubsTaskAPIOutput `type:"list"`
PushStatus *string `type:"string"`
Recall *string `type:"string"`
Status *string `type:"string"`
TaskID *int32 `type:"int32"`
// contains filtered or unexported fields
}
func (InsightSaasTaskListForListSubsTaskAPIOutput) GoString ¶ added in v1.2.21
func (s InsightSaasTaskListForListSubsTaskAPIOutput) GoString() string
GoString returns the string representation
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetAccountID ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetAccountID(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetAccountID sets the AccountID field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetAim ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetAim(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetAim sets the Aim field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetCreateTime ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetCreateTime(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetCreateTime sets the CreateTime field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetDialogID ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetDialogID(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetDialogID sets the DialogID field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetDsl ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetDsl(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetDsl sets the Dsl field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetJudge ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetJudge(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetJudge sets the Judge field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetModifyTime ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetModifyTime(v int64) *InsightSaasTaskListForListSubsTaskAPIOutput
SetModifyTime sets the ModifyTime field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetName ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetName(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetName sets the Name field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetPrecise ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetPrecise(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetPrecise sets the Precise field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetPreviewList ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetPreviewList(v []*PreviewListForListSubsTaskAPIOutput) *InsightSaasTaskListForListSubsTaskAPIOutput
SetPreviewList sets the PreviewList field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetPushStatus ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetPushStatus(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetPushStatus sets the PushStatus field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetRecall ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetRecall(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetRecall sets the Recall field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetStatus ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetStatus(v string) *InsightSaasTaskListForListSubsTaskAPIOutput
SetStatus sets the Status field's value.
func (*InsightSaasTaskListForListSubsTaskAPIOutput) SetTaskID ¶ added in v1.2.21
func (s *InsightSaasTaskListForListSubsTaskAPIOutput) SetTaskID(v int32) *InsightSaasTaskListForListSubsTaskAPIOutput
SetTaskID sets the TaskID field's value.
func (InsightSaasTaskListForListSubsTaskAPIOutput) String ¶ added in v1.2.21
func (s InsightSaasTaskListForListSubsTaskAPIOutput) String() string
String returns the string representation
type ItemDocForPullPostOutput ¶
type ItemDocForPullPostOutput struct {
Asr *string `type:"string" json:",omitempty"`
Content *string `type:"string" json:",omitempty"`
DedupID *string `type:"string" json:",omitempty"`
Emotion *string `type:"string" json:",omitempty"`
FansCount *int32 `type:"int32" json:",omitempty"`
IsFollow *bool `type:"boolean" json:",omitempty"`
Locations []*LocationForPullPostOutput `type:"list" json:"locations,omitempty"`
MainDomain *string `type:"string" json:",omitempty"`
MediaName *string `type:"string" json:",omitempty"`
Ocr *string `type:"string" json:",omitempty"`
OcrHigh *string `type:"string" json:",omitempty"`
PostID *string `type:"string" json:",omitempty"`
PublishTime *string `type:"string" json:",omitempty"`
Reason *string `type:"string" json:",omitempty"`
RiskType []*string `type:"list" json:",omitempty"`
Summary *string `type:"string" json:",omitempty"`
Title *string `type:"string" json:",omitempty"`
Url *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (ItemDocForPullPostOutput) GoString ¶
func (s ItemDocForPullPostOutput) GoString() string
GoString returns the string representation
func (*ItemDocForPullPostOutput) SetAsr ¶
func (s *ItemDocForPullPostOutput) SetAsr(v string) *ItemDocForPullPostOutput
SetAsr sets the Asr field's value.
func (*ItemDocForPullPostOutput) SetContent ¶
func (s *ItemDocForPullPostOutput) SetContent(v string) *ItemDocForPullPostOutput
SetContent sets the Content field's value.
func (*ItemDocForPullPostOutput) SetDedupID ¶
func (s *ItemDocForPullPostOutput) SetDedupID(v string) *ItemDocForPullPostOutput
SetDedupID sets the DedupID field's value.
func (*ItemDocForPullPostOutput) SetEmotion ¶
func (s *ItemDocForPullPostOutput) SetEmotion(v string) *ItemDocForPullPostOutput
SetEmotion sets the Emotion field's value.
func (*ItemDocForPullPostOutput) SetFansCount ¶
func (s *ItemDocForPullPostOutput) SetFansCount(v int32) *ItemDocForPullPostOutput
SetFansCount sets the FansCount field's value.
func (*ItemDocForPullPostOutput) SetIsFollow ¶
func (s *ItemDocForPullPostOutput) SetIsFollow(v bool) *ItemDocForPullPostOutput
SetIsFollow sets the IsFollow field's value.
func (*ItemDocForPullPostOutput) SetLocations ¶
func (s *ItemDocForPullPostOutput) SetLocations(v []*LocationForPullPostOutput) *ItemDocForPullPostOutput
SetLocations sets the Locations field's value.
func (*ItemDocForPullPostOutput) SetMainDomain ¶
func (s *ItemDocForPullPostOutput) SetMainDomain(v string) *ItemDocForPullPostOutput
SetMainDomain sets the MainDomain field's value.
func (*ItemDocForPullPostOutput) SetMediaName ¶
func (s *ItemDocForPullPostOutput) SetMediaName(v string) *ItemDocForPullPostOutput
SetMediaName sets the MediaName field's value.
func (*ItemDocForPullPostOutput) SetOcr ¶
func (s *ItemDocForPullPostOutput) SetOcr(v string) *ItemDocForPullPostOutput
SetOcr sets the Ocr field's value.
func (*ItemDocForPullPostOutput) SetOcrHigh ¶
func (s *ItemDocForPullPostOutput) SetOcrHigh(v string) *ItemDocForPullPostOutput
SetOcrHigh sets the OcrHigh field's value.
func (*ItemDocForPullPostOutput) SetPostID ¶
func (s *ItemDocForPullPostOutput) SetPostID(v string) *ItemDocForPullPostOutput
SetPostID sets the PostID field's value.
func (*ItemDocForPullPostOutput) SetPublishTime ¶
func (s *ItemDocForPullPostOutput) SetPublishTime(v string) *ItemDocForPullPostOutput
SetPublishTime sets the PublishTime field's value.
func (*ItemDocForPullPostOutput) SetReason ¶
func (s *ItemDocForPullPostOutput) SetReason(v string) *ItemDocForPullPostOutput
SetReason sets the Reason field's value.
func (*ItemDocForPullPostOutput) SetRiskType ¶
func (s *ItemDocForPullPostOutput) SetRiskType(v []*string) *ItemDocForPullPostOutput
SetRiskType sets the RiskType field's value.
func (*ItemDocForPullPostOutput) SetSummary ¶
func (s *ItemDocForPullPostOutput) SetSummary(v string) *ItemDocForPullPostOutput
SetSummary sets the Summary field's value.
func (*ItemDocForPullPostOutput) SetTitle ¶
func (s *ItemDocForPullPostOutput) SetTitle(v string) *ItemDocForPullPostOutput
SetTitle sets the Title field's value.
func (*ItemDocForPullPostOutput) SetUrl ¶
func (s *ItemDocForPullPostOutput) SetUrl(v string) *ItemDocForPullPostOutput
SetUrl sets the Url field's value.
func (ItemDocForPullPostOutput) String ¶
func (s ItemDocForPullPostOutput) String() string
String returns the string representation
type ListSubsTaskAPIInput ¶ added in v1.2.21
type ListSubsTaskAPIInput struct {
PageNum *int64 `type:"int64"`
PageSize *int64 `type:"int64"`
Status *int32 `type:"int32"`
TaskName *string `type:"string"`
// contains filtered or unexported fields
}
func (ListSubsTaskAPIInput) GoString ¶ added in v1.2.21
func (s ListSubsTaskAPIInput) GoString() string
GoString returns the string representation
func (*ListSubsTaskAPIInput) SetPageNum ¶ added in v1.2.21
func (s *ListSubsTaskAPIInput) SetPageNum(v int64) *ListSubsTaskAPIInput
SetPageNum sets the PageNum field's value.
func (*ListSubsTaskAPIInput) SetPageSize ¶ added in v1.2.21
func (s *ListSubsTaskAPIInput) SetPageSize(v int64) *ListSubsTaskAPIInput
SetPageSize sets the PageSize field's value.
func (*ListSubsTaskAPIInput) SetStatus ¶ added in v1.2.21
func (s *ListSubsTaskAPIInput) SetStatus(v int32) *ListSubsTaskAPIInput
SetStatus sets the Status field's value.
func (*ListSubsTaskAPIInput) SetTaskName ¶ added in v1.2.21
func (s *ListSubsTaskAPIInput) SetTaskName(v string) *ListSubsTaskAPIInput
SetTaskName sets the TaskName field's value.
func (ListSubsTaskAPIInput) String ¶ added in v1.2.21
func (s ListSubsTaskAPIInput) String() string
String returns the string representation
type ListSubsTaskAPIOutput ¶ added in v1.2.21
type ListSubsTaskAPIOutput struct {
Metadata *response.ResponseMetadata
InsightSaasTaskList []*InsightSaasTaskListForListSubsTaskAPIOutput `type:"list"`
Total *int64 `type:"int64"`
// contains filtered or unexported fields
}
func (ListSubsTaskAPIOutput) GoString ¶ added in v1.2.21
func (s ListSubsTaskAPIOutput) GoString() string
GoString returns the string representation
func (*ListSubsTaskAPIOutput) SetInsightSaasTaskList ¶ added in v1.2.21
func (s *ListSubsTaskAPIOutput) SetInsightSaasTaskList(v []*InsightSaasTaskListForListSubsTaskAPIOutput) *ListSubsTaskAPIOutput
SetInsightSaasTaskList sets the InsightSaasTaskList field's value.
func (*ListSubsTaskAPIOutput) SetTotal ¶ added in v1.2.21
func (s *ListSubsTaskAPIOutput) SetTotal(v int64) *ListSubsTaskAPIOutput
SetTotal sets the Total field's value.
func (ListSubsTaskAPIOutput) String ¶ added in v1.2.21
func (s ListSubsTaskAPIOutput) String() string
String returns the string representation
type LocationForPullPostOutput ¶
type LocationForPullPostOutput struct {
City *string `type:"string" json:",omitempty"`
CityCode *string `type:"string" json:",omitempty"`
District *string `type:"string" json:",omitempty"`
DistrictCode *string `type:"string" json:",omitempty"`
Location *string `type:"string" json:",omitempty"`
Name *string `type:"string" json:",omitempty"`
Province *string `type:"string" json:",omitempty"`
Region *string `type:"string" json:",omitempty"`
RegionCode *string `type:"string" json:",omitempty"`
Town *string `type:"string" json:",omitempty"`
TownCode *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (LocationForPullPostOutput) GoString ¶
func (s LocationForPullPostOutput) GoString() string
GoString returns the string representation
func (*LocationForPullPostOutput) SetCity ¶
func (s *LocationForPullPostOutput) SetCity(v string) *LocationForPullPostOutput
SetCity sets the City field's value.
func (*LocationForPullPostOutput) SetCityCode ¶
func (s *LocationForPullPostOutput) SetCityCode(v string) *LocationForPullPostOutput
SetCityCode sets the CityCode field's value.
func (*LocationForPullPostOutput) SetDistrict ¶
func (s *LocationForPullPostOutput) SetDistrict(v string) *LocationForPullPostOutput
SetDistrict sets the District field's value.
func (*LocationForPullPostOutput) SetDistrictCode ¶
func (s *LocationForPullPostOutput) SetDistrictCode(v string) *LocationForPullPostOutput
SetDistrictCode sets the DistrictCode field's value.
func (*LocationForPullPostOutput) SetLocation ¶
func (s *LocationForPullPostOutput) SetLocation(v string) *LocationForPullPostOutput
SetLocation sets the Location field's value.
func (*LocationForPullPostOutput) SetName ¶
func (s *LocationForPullPostOutput) SetName(v string) *LocationForPullPostOutput
SetName sets the Name field's value.
func (*LocationForPullPostOutput) SetProvince ¶
func (s *LocationForPullPostOutput) SetProvince(v string) *LocationForPullPostOutput
SetProvince sets the Province field's value.
func (*LocationForPullPostOutput) SetRegion ¶
func (s *LocationForPullPostOutput) SetRegion(v string) *LocationForPullPostOutput
SetRegion sets the Region field's value.
func (*LocationForPullPostOutput) SetRegionCode ¶
func (s *LocationForPullPostOutput) SetRegionCode(v string) *LocationForPullPostOutput
SetRegionCode sets the RegionCode field's value.
func (*LocationForPullPostOutput) SetTown ¶
func (s *LocationForPullPostOutput) SetTown(v string) *LocationForPullPostOutput
SetTown sets the Town field's value.
func (*LocationForPullPostOutput) SetTownCode ¶
func (s *LocationForPullPostOutput) SetTownCode(v string) *LocationForPullPostOutput
SetTownCode sets the TownCode field's value.
func (LocationForPullPostOutput) String ¶
func (s LocationForPullPostOutput) String() string
String returns the string representation
type PreviewListForListSubsTaskAPIOutput ¶ added in v1.2.21
type PreviewListForListSubsTaskAPIOutput struct {
PostID *string `type:"string"`
Title *string `type:"string"`
// contains filtered or unexported fields
}
func (PreviewListForListSubsTaskAPIOutput) GoString ¶ added in v1.2.21
func (s PreviewListForListSubsTaskAPIOutput) GoString() string
GoString returns the string representation
func (*PreviewListForListSubsTaskAPIOutput) SetPostID ¶ added in v1.2.21
func (s *PreviewListForListSubsTaskAPIOutput) SetPostID(v string) *PreviewListForListSubsTaskAPIOutput
SetPostID sets the PostID field's value.
func (*PreviewListForListSubsTaskAPIOutput) SetTitle ¶ added in v1.2.21
func (s *PreviewListForListSubsTaskAPIOutput) SetTitle(v string) *PreviewListForListSubsTaskAPIOutput
SetTitle sets the Title field's value.
func (PreviewListForListSubsTaskAPIOutput) String ¶ added in v1.2.21
func (s PreviewListForListSubsTaskAPIOutput) String() string
String returns the string representation
type PullPostInput ¶
type PullPostInput struct {
EndTime *string `type:"string" json:",omitempty"`
PageToken *string `type:"string" json:",omitempty"`
Size *int32 `type:"int32" json:",omitempty"`
StartTime *string `type:"string" json:",omitempty"`
// TaskID is a required field
TaskID *int32 `type:"int32" json:",omitempty" required:"true"`
// contains filtered or unexported fields
}
func (PullPostInput) GoString ¶
func (s PullPostInput) GoString() string
GoString returns the string representation
func (*PullPostInput) SetEndTime ¶
func (s *PullPostInput) SetEndTime(v string) *PullPostInput
SetEndTime sets the EndTime field's value.
func (*PullPostInput) SetPageToken ¶
func (s *PullPostInput) SetPageToken(v string) *PullPostInput
SetPageToken sets the PageToken field's value.
func (*PullPostInput) SetSize ¶
func (s *PullPostInput) SetSize(v int32) *PullPostInput
SetSize sets the Size field's value.
func (*PullPostInput) SetStartTime ¶
func (s *PullPostInput) SetStartTime(v string) *PullPostInput
SetStartTime sets the StartTime field's value.
func (*PullPostInput) SetTaskID ¶
func (s *PullPostInput) SetTaskID(v int32) *PullPostInput
SetTaskID sets the TaskID field's value.
func (PullPostInput) String ¶
func (s PullPostInput) String() string
String returns the string representation
func (*PullPostInput) Validate ¶
func (s *PullPostInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PullPostOutput ¶
type PullPostOutput struct {
Metadata *response.ResponseMetadata
HasMore *bool `type:"boolean" json:",omitempty"`
ItemDocs []*ItemDocForPullPostOutput `type:"list" json:",omitempty"`
NextPageToken *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (PullPostOutput) GoString ¶
func (s PullPostOutput) GoString() string
GoString returns the string representation
func (*PullPostOutput) SetHasMore ¶
func (s *PullPostOutput) SetHasMore(v bool) *PullPostOutput
SetHasMore sets the HasMore field's value.
func (*PullPostOutput) SetItemDocs ¶
func (s *PullPostOutput) SetItemDocs(v []*ItemDocForPullPostOutput) *PullPostOutput
SetItemDocs sets the ItemDocs field's value.
func (*PullPostOutput) SetNextPageToken ¶
func (s *PullPostOutput) SetNextPageToken(v string) *PullPostOutput
SetNextPageToken sets the NextPageToken field's value.
func (PullPostOutput) String ¶
func (s PullPostOutput) String() string
String returns the string representation
type ResultForExpertInvokeAPIOutput ¶ added in v1.2.21
type ResultForExpertInvokeAPIOutput struct {
Asr *string `type:"string" json:",omitempty"`
Content *string `type:"string" json:",omitempty"`
DomainLevel *int32 `type:"int32" json:",omitempty"`
FansCnt *int64 `type:"int64" json:",omitempty"`
HasRisk *bool `type:"boolean" json:",omitempty"`
Ocr *string `type:"string" json:",omitempty"`
OriginId *string `type:"string" json:",omitempty"`
Related *bool `type:"boolean" json:",omitempty"`
RelatedReason *string `type:"string" json:",omitempty"`
RiskLevel *string `type:"string" json:",omitempty"`
RiskReason *string `type:"string" json:",omitempty"`
RiskTags []*string `type:"list" json:",omitempty"`
Suggestion *string `type:"string" json:",omitempty"`
Summary *string `type:"string" json:",omitempty"`
Title *string `type:"string" json:",omitempty"`
// contains filtered or unexported fields
}
func (ResultForExpertInvokeAPIOutput) GoString ¶ added in v1.2.21
func (s ResultForExpertInvokeAPIOutput) GoString() string
GoString returns the string representation
func (*ResultForExpertInvokeAPIOutput) SetAsr ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetAsr(v string) *ResultForExpertInvokeAPIOutput
SetAsr sets the Asr field's value.
func (*ResultForExpertInvokeAPIOutput) SetContent ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetContent(v string) *ResultForExpertInvokeAPIOutput
SetContent sets the Content field's value.
func (*ResultForExpertInvokeAPIOutput) SetDomainLevel ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetDomainLevel(v int32) *ResultForExpertInvokeAPIOutput
SetDomainLevel sets the DomainLevel field's value.
func (*ResultForExpertInvokeAPIOutput) SetFansCnt ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetFansCnt(v int64) *ResultForExpertInvokeAPIOutput
SetFansCnt sets the FansCnt field's value.
func (*ResultForExpertInvokeAPIOutput) SetHasRisk ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetHasRisk(v bool) *ResultForExpertInvokeAPIOutput
SetHasRisk sets the HasRisk field's value.
func (*ResultForExpertInvokeAPIOutput) SetOcr ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetOcr(v string) *ResultForExpertInvokeAPIOutput
SetOcr sets the Ocr field's value.
func (*ResultForExpertInvokeAPIOutput) SetOriginId ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetOriginId(v string) *ResultForExpertInvokeAPIOutput
SetOriginId sets the OriginId field's value.
func (*ResultForExpertInvokeAPIOutput) SetRelated ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetRelated(v bool) *ResultForExpertInvokeAPIOutput
SetRelated sets the Related field's value.
func (*ResultForExpertInvokeAPIOutput) SetRelatedReason ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetRelatedReason(v string) *ResultForExpertInvokeAPIOutput
SetRelatedReason sets the RelatedReason field's value.
func (*ResultForExpertInvokeAPIOutput) SetRiskLevel ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetRiskLevel(v string) *ResultForExpertInvokeAPIOutput
SetRiskLevel sets the RiskLevel field's value.
func (*ResultForExpertInvokeAPIOutput) SetRiskReason ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetRiskReason(v string) *ResultForExpertInvokeAPIOutput
SetRiskReason sets the RiskReason field's value.
func (*ResultForExpertInvokeAPIOutput) SetRiskTags ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetRiskTags(v []*string) *ResultForExpertInvokeAPIOutput
SetRiskTags sets the RiskTags field's value.
func (*ResultForExpertInvokeAPIOutput) SetSuggestion ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetSuggestion(v string) *ResultForExpertInvokeAPIOutput
SetSuggestion sets the Suggestion field's value.
func (*ResultForExpertInvokeAPIOutput) SetSummary ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetSummary(v string) *ResultForExpertInvokeAPIOutput
SetSummary sets the Summary field's value.
func (*ResultForExpertInvokeAPIOutput) SetTitle ¶ added in v1.2.21
func (s *ResultForExpertInvokeAPIOutput) SetTitle(v string) *ResultForExpertInvokeAPIOutput
SetTitle sets the Title field's value.
func (ResultForExpertInvokeAPIOutput) String ¶ added in v1.2.21
func (s ResultForExpertInvokeAPIOutput) String() string
String returns the string representation