model

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v0.0.81

type Action struct {
	FunctionRef *FunctionRef `json:"function_ref,omitempty"`
}

节点操作详情

func (Action) String added in v0.0.81

func (o Action) String() string

type AsyncInvokeFunctionRequest

type AsyncInvokeFunctionRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 执行函数请求体,为json格式。
	Body map[string]interface{} `json:"body,omitempty"`
}

Request Object

func (AsyncInvokeFunctionRequest) String

type AsyncInvokeFunctionResponse

type AsyncInvokeFunctionResponse struct {

	// 请求ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AsyncInvokeFunctionResponse) String

type AsyncInvokeReservedFunctionRequest added in v0.0.47

type AsyncInvokeReservedFunctionRequest struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FunctionUrn string `json:"function_urn"`

	// 执行函数请求体,为json格式。
	Body map[string]interface{} `json:"body,omitempty"`
}

Request Object

func (AsyncInvokeReservedFunctionRequest) String added in v0.0.47

type AsyncInvokeReservedFunctionResponse added in v0.0.47

type AsyncInvokeReservedFunctionResponse struct {

	// 预留实例id
	InstanceId *string `json:"instance_id,omitempty"`

	ContentType    *string `json:"Content-Type,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AsyncInvokeReservedFunctionResponse) String added in v0.0.47

type BatchDeleteFunctionTriggersRequest

type BatchDeleteFunctionTriggersRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (BatchDeleteFunctionTriggersRequest) String

type BatchDeleteFunctionTriggersResponse

type BatchDeleteFunctionTriggersResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchDeleteFunctionTriggersResponse) String

type BatchDeleteWorkflowsRequest added in v0.0.81

type BatchDeleteWorkflowsRequest struct {
	Body *WorkflowDeleteBody `json:"body,omitempty"`
}

Request Object

func (BatchDeleteWorkflowsRequest) String added in v0.0.81

type BatchDeleteWorkflowsResponse added in v0.0.81

type BatchDeleteWorkflowsResponse struct {

	// 成功流程URN列表
	Success *[]string `json:"success,omitempty"`

	// 错误流程详情
	Fail           *[]OperateErrorInfo `json:"fail,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (BatchDeleteWorkflowsResponse) String added in v0.0.81

type CancelAsyncInvocationRequest added in v0.0.86

type CancelAsyncInvocationRequest struct {

	// 函数URN
	FunctionUrn string `json:"function_urn"`

	Body *CancelAsyncInvocationRequestBody `json:"body,omitempty"`
}

Request Object

func (CancelAsyncInvocationRequest) String added in v0.0.86

type CancelAsyncInvocationRequestBody added in v0.0.86

type CancelAsyncInvocationRequestBody struct {

	// 被停止的请求id
	RequestId string `json:"request_id"`

	// 停止的类型 支持recursive, force。 recursive: 停止正在调用的子函数。 force: 直接杀死runtime。
	Type *CancelAsyncInvocationRequestBodyType `json:"type,omitempty"`
}

func (CancelAsyncInvocationRequestBody) String added in v0.0.86

type CancelAsyncInvocationRequestBodyType added in v0.0.86

type CancelAsyncInvocationRequestBodyType struct {
	// contains filtered or unexported fields
}

func (CancelAsyncInvocationRequestBodyType) MarshalJSON added in v0.0.86

func (c CancelAsyncInvocationRequestBodyType) MarshalJSON() ([]byte, error)

func (*CancelAsyncInvocationRequestBodyType) UnmarshalJSON added in v0.0.86

func (c *CancelAsyncInvocationRequestBodyType) UnmarshalJSON(b []byte) error

func (CancelAsyncInvocationRequestBodyType) Value added in v0.0.90

type CancelAsyncInvocationRequestBodyTypeEnum added in v0.0.86

type CancelAsyncInvocationRequestBodyTypeEnum struct {
	FORCE     CancelAsyncInvocationRequestBodyType
	RECURSIVE CancelAsyncInvocationRequestBodyType
}

func GetCancelAsyncInvocationRequestBodyTypeEnum added in v0.0.86

func GetCancelAsyncInvocationRequestBodyTypeEnum() CancelAsyncInvocationRequestBodyTypeEnum

type CancelAsyncInvocationResponse added in v0.0.86

type CancelAsyncInvocationResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CancelAsyncInvocationResponse) String added in v0.0.86

type CreateDependencyRequest

type CreateDependencyRequest struct {
	Body *CreateDependencyRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateDependencyRequest) String

func (o CreateDependencyRequest) String() string

type CreateDependencyRequestBody

type CreateDependencyRequestBody struct {

	// depend_type为zip类型时必填,为文件流格式,需要base64编码zip文件。
	DependFile *string `json:"depend_file,omitempty"`

	// depend_type为obs类型时,依赖包在obs的存储地址。
	DependLink *string `json:"depend_link,omitempty"`

	// 导入类型,目前支持obs和zip。
	DependType string `json:"depend_type"`

	// 运行时语言,Java11、Nodejs14:、Python3:在type为v2时支持。
	Runtime CreateDependencyRequestBodyRuntime `json:"runtime"`

	// 依赖包名称。必须以大、小写字母开头,以字母或数字结尾,只能由字母、数字、下划线、点和中划线组成,长度不超过96个字符。
	Name string `json:"name"`

	// 依赖包描述,不超过512个字符。
	Description *string `json:"description,omitempty"`
}

func (CreateDependencyRequestBody) String

type CreateDependencyRequestBodyRuntime

type CreateDependencyRequestBodyRuntime struct {
	// contains filtered or unexported fields
}

func (CreateDependencyRequestBodyRuntime) MarshalJSON

func (c CreateDependencyRequestBodyRuntime) MarshalJSON() ([]byte, error)

func (*CreateDependencyRequestBodyRuntime) UnmarshalJSON

func (c *CreateDependencyRequestBodyRuntime) UnmarshalJSON(b []byte) error

func (CreateDependencyRequestBodyRuntime) Value added in v0.0.90

type CreateDependencyResponse

type CreateDependencyResponse struct {

	// 依赖包版本ID。
	Id *string `json:"id,omitempty"`

	// 依赖包拥有者。
	Owner *string `json:"owner,omitempty"`

	// 依赖包在obs的存储地址。
	Link *string `json:"link,omitempty"`

	// 运行时语言。
	Runtime *string `json:"runtime,omitempty"`

	// 依赖包唯一标志。
	Etag *string `json:"etag,omitempty"`

	// 依赖包大小。
	Size *int64 `json:"size,omitempty"`

	// 依赖包名。
	Name *string `json:"name,omitempty"`

	// 依赖包描述。
	Description *string `json:"description,omitempty"`

	// 依赖包文件名。
	FileName *string `json:"file_name,omitempty"`

	// 依赖包版本号
	Version *int64 `json:"version,omitempty"`

	// 依赖包ID
	DepId *string `json:"dep_id,omitempty"`

	// 依赖包更新时间
	LastModified   *int64 `json:"last_modified,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CreateDependencyResponse) String

func (o CreateDependencyResponse) String() string

type CreateDependencyVersionRequest added in v0.1.12

type CreateDependencyVersionRequest struct {
	Body *CreateDependencyRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateDependencyVersionRequest) String added in v0.1.12

type CreateDependencyVersionResponse added in v0.1.12

type CreateDependencyVersionResponse struct {

	// 依赖包版本ID。
	Id *string `json:"id,omitempty"`

	// 依赖包拥有者。
	Owner *string `json:"owner,omitempty"`

	// 依赖包在obs的存储地址。
	Link *string `json:"link,omitempty"`

	// 运行时语言。
	Runtime *string `json:"runtime,omitempty"`

	// 依赖包唯一标志。
	Etag *string `json:"etag,omitempty"`

	// 依赖包大小。
	Size *int64 `json:"size,omitempty"`

	// 依赖包名。
	Name *string `json:"name,omitempty"`

	// 依赖包描述。
	Description *string `json:"description,omitempty"`

	// 依赖包文件名。
	FileName *string `json:"file_name,omitempty"`

	// 依赖包版本号
	Version *int64 `json:"version,omitempty"`

	// 依赖包ID
	DepId *string `json:"dep_id,omitempty"`

	// 依赖包更新时间
	LastModified   *int64 `json:"last_modified,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CreateDependencyVersionResponse) String added in v0.1.12

type CreateEventRequest

type CreateEventRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	Body *CreateEventRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateEventRequest) String

func (o CreateEventRequest) String() string

type CreateEventRequestBody

type CreateEventRequestBody struct {

	// 测试事件名称。只能由字母、数字、中划线和下划线组成,且必须以大写或小写字母开头
	Name string `json:"name"`

	// 测试事件content,为json字符串
	Content string `json:"content"`
}

func (CreateEventRequestBody) String

func (o CreateEventRequestBody) String() string

type CreateEventResponse

type CreateEventResponse struct {

	// 测试事件ID。
	Id *string `json:"id,omitempty"`

	// 测试事件名称。
	Name           *string `json:"name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateEventResponse) String

func (o CreateEventResponse) String() string

type CreateFunctionRequest

type CreateFunctionRequest struct {
	Body *CreateFunctionRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateFunctionRequest) String

func (o CreateFunctionRequest) String() string

type CreateFunctionRequestBody

type CreateFunctionRequestBody struct {

	// 函数名称。
	FuncName string `json:"func_name"`

	// 函数所属的分组Package,用于用户针对函数的自定义分组。
	Package string `json:"package"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime CreateFunctionRequestBodyRuntime `json:"runtime"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout int32 `json:"timeout"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler string `json:"handler"`

	// 依赖版本id列表
	DependVersionList *[]string `json:"depend_version_list,omitempty"`

	FuncVpc *FuncVpc `json:"func_vpc,omitempty"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize int32 `json:"memory_size"`

	// 函数消耗的显存,只支持自定义运行时与自定义镜像函数配置GPU。 单位MB。 取值范围为:1024、2048、3072、4096、5120、6144、7168、8192、9216、10240、11264、12288、13312、14336、15360、16384。 最小值为1024,最大值为16384。
	GpuMemory *int32 `json:"gpu_memory,omitempty"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType CreateFunctionRequestBodyCodeType `json:"code_type"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数描述。
	Description *string `json:"description,omitempty"`

	FuncCode *FuncCode `json:"func_code,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 函数版本;部分局点只支持v1函数,缺省值则为v1
	Type *CreateFunctionRequestBodyType `json:"type,omitempty"`

	LogConfig *FuncLogConfig `json:"log_config,omitempty"`

	NetworkController *NetworkControlConfig `json:"network_controller,omitempty"`
}

函数属性结构体。

func (CreateFunctionRequestBody) String

func (o CreateFunctionRequestBody) String() string

type CreateFunctionRequestBodyCodeType

type CreateFunctionRequestBodyCodeType struct {
	// contains filtered or unexported fields
}

func (CreateFunctionRequestBodyCodeType) MarshalJSON

func (c CreateFunctionRequestBodyCodeType) MarshalJSON() ([]byte, error)

func (*CreateFunctionRequestBodyCodeType) UnmarshalJSON

func (c *CreateFunctionRequestBodyCodeType) UnmarshalJSON(b []byte) error

func (CreateFunctionRequestBodyCodeType) Value added in v0.0.90

type CreateFunctionRequestBodyRuntime

type CreateFunctionRequestBodyRuntime struct {
	// contains filtered or unexported fields
}

func (CreateFunctionRequestBodyRuntime) MarshalJSON

func (c CreateFunctionRequestBodyRuntime) MarshalJSON() ([]byte, error)

func (*CreateFunctionRequestBodyRuntime) UnmarshalJSON

func (c *CreateFunctionRequestBodyRuntime) UnmarshalJSON(b []byte) error

func (CreateFunctionRequestBodyRuntime) Value added in v0.0.90

type CreateFunctionRequestBodyType added in v0.0.57

type CreateFunctionRequestBodyType struct {
	// contains filtered or unexported fields
}

func (CreateFunctionRequestBodyType) MarshalJSON added in v0.0.57

func (c CreateFunctionRequestBodyType) MarshalJSON() ([]byte, error)

func (*CreateFunctionRequestBodyType) UnmarshalJSON added in v0.0.57

func (c *CreateFunctionRequestBodyType) UnmarshalJSON(b []byte) error

func (CreateFunctionRequestBodyType) Value added in v0.0.90

type CreateFunctionRequestBodyTypeEnum added in v0.0.57

type CreateFunctionRequestBodyTypeEnum struct {
	V1 CreateFunctionRequestBodyType
	V2 CreateFunctionRequestBodyType
}

func GetCreateFunctionRequestBodyTypeEnum added in v0.0.57

func GetCreateFunctionRequestBodyTypeEnum() CreateFunctionRequestBodyTypeEnum

type CreateFunctionResponse

type CreateFunctionResponse struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 函数名称。
	FuncName *string `json:"func_name,omitempty"`

	// 域名id。
	DomainId *string `json:"domain_id,omitempty"`

	// 租户的project id。
	Namespace *string `json:"namespace,omitempty"`

	// 租户的project name。
	ProjectName *string `json:"project_name,omitempty"`

	// 函数所属的分组Package,用于用户针对函数的自定义分组。
	Package *string `json:"package,omitempty"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime *CreateFunctionResponseRuntime `json:"runtime,omitempty"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout *int32 `json:"timeout,omitempty"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler *string `json:"handler,omitempty"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize *int32 `json:"memory_size,omitempty"`

	// 函数消耗的显存,只支持自定义运行时与自定义镜像函数配置GPU。 单位MB。 取值范围为:1024、2048、3072、4096、5120、6144、7168、8192、9216、10240、11264、12288、13312、14336、15360、16384。 最小值为1024,最大值为16384。
	GpuMemory *int32 `json:"gpu_memory,omitempty"`

	// 函数占用的cpu资源。 单位为millicore(1 core=1000 millicores)。 取值与MemorySize成比例,默认是128M内存占0.1个核(100 millicores)。 函数占用的CPU为基础CPU:200 millicores,再加上内存按比例占用的CPU,计算方法:内存/128 *100 + 200。
	Cpu *int32 `json:"cpu,omitempty"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType *CreateFunctionResponseCodeType `json:"code_type,omitempty"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize *int64 `json:"code_size,omitempty"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 用户自定义的name/value信息,用于需要加密的配置。
	EncryptedUserData *string `json:"encrypted_user_data,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest *string `json:"digest,omitempty"`

	// 函数版本号,由系统自动生成,规则:vYYYYMMDD-HHMMSS(v+年月日-时分秒)。
	Version *string `json:"version,omitempty"`

	// 函数版本的内部标识。
	ImageName *string `json:"image_name,omitempty"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数描述。
	Description *string `json:"description,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	FuncVpc *FuncVpc `json:"func_vpc,omitempty"`

	MountConfig *MountConfig `json:"mount_config,omitempty"`

	// 依赖id列表
	DependList *[]string `json:"depend_list,omitempty"`

	// 依赖版本id列表
	DependVersionList *[]string `json:"depend_version_list,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数扩展配置。
	ExtendConfig *string `json:"extend_config,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否启动动态内存配置
	EnableDynamicMemory *bool `json:"enable_dynamic_memory,omitempty"`

	// 是否支持有状态,如果需要支持,需要固定传参为true,v2版本支持
	IsStatefulFunction *bool `json:"is_stateful_function,omitempty"`

	// 是否允许在请求头中添加鉴权信息
	EnableAuthInHeader *bool `json:"enable_auth_in_header,omitempty"`

	CustomImage    *CustomImage `json:"custom_image,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (CreateFunctionResponse) String

func (o CreateFunctionResponse) String() string

type CreateFunctionResponseCodeType

type CreateFunctionResponseCodeType struct {
	// contains filtered or unexported fields
}

func (CreateFunctionResponseCodeType) MarshalJSON

func (c CreateFunctionResponseCodeType) MarshalJSON() ([]byte, error)

func (*CreateFunctionResponseCodeType) UnmarshalJSON

func (c *CreateFunctionResponseCodeType) UnmarshalJSON(b []byte) error

func (CreateFunctionResponseCodeType) Value added in v0.0.90

type CreateFunctionResponseRuntime

type CreateFunctionResponseRuntime struct {
	// contains filtered or unexported fields
}

func (CreateFunctionResponseRuntime) MarshalJSON

func (c CreateFunctionResponseRuntime) MarshalJSON() ([]byte, error)

func (*CreateFunctionResponseRuntime) UnmarshalJSON

func (c *CreateFunctionResponseRuntime) UnmarshalJSON(b []byte) error

func (CreateFunctionResponseRuntime) Value added in v0.0.90

type CreateFunctionTriggerRequest

type CreateFunctionTriggerRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	Body *CreateFunctionTriggerRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateFunctionTriggerRequest) String

type CreateFunctionTriggerRequestBody

type CreateFunctionTriggerRequestBody struct {

	// 触发器类型。  - TIMER: 定时触发器。 - APIG: APIGW触发器。 - CTS: 云审计触发器,需要先开通云审计服务。 - DDS: 文档数据库触发器,需要开启函数vpc。 - DMS: 分布式消息服务触发器,需要配置dms委托。 - DIS: 数据接入服务触发器,需要配置dis委托。 - LTS: 云审计日志服务触发器,需要配置lts委托。 - OBS: 对象存储服务触发器。 - KAFKA: 专享版本kafka触发器。
	TriggerTypeCode CreateFunctionTriggerRequestBodyTriggerTypeCode `json:"trigger_type_code"`

	// 触发器状态,取值为ACTIVE,DISABLED。
	TriggerStatus *CreateFunctionTriggerRequestBodyTriggerStatus `json:"trigger_status,omitempty"`

	// 消息代码。
	EventTypeCode *string `json:"event_type_code,omitempty"`

	// 事件结构体。
	EventData map[string]string `json:"event_data"`
}

func (CreateFunctionTriggerRequestBody) String

type CreateFunctionTriggerRequestBodyTriggerStatus

type CreateFunctionTriggerRequestBodyTriggerStatus struct {
	// contains filtered or unexported fields
}

func (CreateFunctionTriggerRequestBodyTriggerStatus) MarshalJSON

func (*CreateFunctionTriggerRequestBodyTriggerStatus) UnmarshalJSON

func (CreateFunctionTriggerRequestBodyTriggerStatus) Value added in v0.0.90

type CreateFunctionTriggerRequestBodyTriggerTypeCode

type CreateFunctionTriggerRequestBodyTriggerTypeCode struct {
	// contains filtered or unexported fields
}

func (CreateFunctionTriggerRequestBodyTriggerTypeCode) MarshalJSON

func (*CreateFunctionTriggerRequestBodyTriggerTypeCode) UnmarshalJSON

func (CreateFunctionTriggerRequestBodyTriggerTypeCode) Value added in v0.0.90

type CreateFunctionTriggerResponse

type CreateFunctionTriggerResponse struct {

	// 触发器ID。
	TriggerId *string `json:"trigger_id,omitempty"`

	// 触发器类型。  - TIMER: \"定时触发器。\" - APIG: \"APIG触发器。\" - CTS: \"云审计服务触发器。\" - DDS: \"文档数据库服务触发器。\" - DMS: \"分布式服务触发器。\" - DIS: \"数据接入服务触发器。\" - LTS: \"云日志服务触发器。\" - OBS: \"对象存储触发器。\" - SMN: \"消息通知服务触发器。\" - KAFKA: \"专享版消息通知服务触发器。\"
	TriggerTypeCode *CreateFunctionTriggerResponseTriggerTypeCode `json:"trigger_type_code,omitempty"`

	// \"触发器状态\"  - ACTIVE: 启用状态。 - DISABLED: 禁用状态。
	TriggerStatus *CreateFunctionTriggerResponseTriggerStatus `json:"trigger_status,omitempty"`

	// 触发器源事件。
	EventData *interface{} `json:"event_data,omitempty"`

	// 最后更新时间。
	LastUpdatedTime *sdktime.SdkTime `json:"last_updated_time,omitempty"`

	// 触发器创建时间。
	CreatedTime    *sdktime.SdkTime `json:"created_time,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (CreateFunctionTriggerResponse) String

type CreateFunctionTriggerResponseTriggerStatus

type CreateFunctionTriggerResponseTriggerStatus struct {
	// contains filtered or unexported fields
}

func (CreateFunctionTriggerResponseTriggerStatus) MarshalJSON

func (*CreateFunctionTriggerResponseTriggerStatus) UnmarshalJSON

func (CreateFunctionTriggerResponseTriggerStatus) Value added in v0.0.90

type CreateFunctionTriggerResponseTriggerStatusEnum

type CreateFunctionTriggerResponseTriggerStatusEnum struct {
	ACTIVE   CreateFunctionTriggerResponseTriggerStatus
	DISABLED CreateFunctionTriggerResponseTriggerStatus
}

func GetCreateFunctionTriggerResponseTriggerStatusEnum

func GetCreateFunctionTriggerResponseTriggerStatusEnum() CreateFunctionTriggerResponseTriggerStatusEnum

type CreateFunctionTriggerResponseTriggerTypeCode

type CreateFunctionTriggerResponseTriggerTypeCode struct {
	// contains filtered or unexported fields
}

func (CreateFunctionTriggerResponseTriggerTypeCode) MarshalJSON

func (*CreateFunctionTriggerResponseTriggerTypeCode) UnmarshalJSON

func (CreateFunctionTriggerResponseTriggerTypeCode) Value added in v0.0.90

type CreateFunctionVersionRequest

type CreateFunctionVersionRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	Body *CreateFunctionVersionRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateFunctionVersionRequest) String

type CreateFunctionVersionRequestBody

type CreateFunctionVersionRequestBody struct {

	// md5键值
	Digest *string `json:"digest,omitempty"`

	// 发布版本名称
	Version *string `json:"version,omitempty"`

	// 发布版本描述
	Description *string `json:"description,omitempty"`
}

func (CreateFunctionVersionRequestBody) String

type CreateFunctionVersionResponse

type CreateFunctionVersionResponse struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 函数名称。
	FuncName *string `json:"func_name,omitempty"`

	// 域名id。
	DomainId *string `json:"domain_id,omitempty"`

	// 租户的project id。
	Namespace *string `json:"namespace,omitempty"`

	// 租户的project name。
	ProjectName *string `json:"project_name,omitempty"`

	// 函数所属的分组Package,用于用户针对函数的自定义分组。
	Package *string `json:"package,omitempty"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime *CreateFunctionVersionResponseRuntime `json:"runtime,omitempty"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout *int32 `json:"timeout,omitempty"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler *string `json:"handler,omitempty"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize *int32 `json:"memory_size,omitempty"`

	// 函数占用的cpu资源。 单位为millicore(1 core=1000 millicores)。 取值与MemorySize成比例,默认是128M内存占0.1个核(100 millicores)。 函数占用的CPU为基础CPU:200 millicores,再加上内存按比例占用的CPU,计算方法:内存/128 *100 + 200。
	Cpu *int32 `json:"cpu,omitempty"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType *CreateFunctionVersionResponseCodeType `json:"code_type,omitempty"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize *int64 `json:"code_size,omitempty"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 用户自定义的name/value信息,用于需要加密的配置。
	EncryptedUserData *string `json:"encrypted_user_data,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest *string `json:"digest,omitempty"`

	// 函数版本号,由系统自动生成,规则:vYYYYMMDD-HHMMSS(v+年月日-时分秒)。
	Version *string `json:"version,omitempty"`

	// 函数版本的内部标识。
	ImageName *string `json:"image_name,omitempty"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数描述。
	Description *string `json:"description,omitempty"`

	// 函数版本描述。
	VersionDescription *string `json:"version_description,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	FuncVpc *FuncVpc `json:"func_vpc,omitempty"`

	MountConfig *MountConfig `json:"mount_config,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数依赖代码包列表。
	Dependencies *[]Dependency `json:"dependencies,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否允许进行长时间超时设置。
	LongTime *bool `json:"long_time,omitempty"`

	// 自定义日志查询组id
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 自定义日志查询流id
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// v2表示为公测版本,v1为原来版本。
	Type *CreateFunctionVersionResponseType `json:"type,omitempty"`

	// 是否允许动态内存配置
	EnableDynamicMemory *bool `json:"enable_dynamic_memory,omitempty"`

	FunctionAsyncConfig *FunctionAsyncConfig `json:"function_async_config,omitempty"`
	HttpStatusCode      int                  `json:"-"`
}

Response Object

func (CreateFunctionVersionResponse) String

type CreateFunctionVersionResponseCodeType

type CreateFunctionVersionResponseCodeType struct {
	// contains filtered or unexported fields
}

func (CreateFunctionVersionResponseCodeType) MarshalJSON

func (c CreateFunctionVersionResponseCodeType) MarshalJSON() ([]byte, error)

func (*CreateFunctionVersionResponseCodeType) UnmarshalJSON

func (c *CreateFunctionVersionResponseCodeType) UnmarshalJSON(b []byte) error

func (CreateFunctionVersionResponseCodeType) Value added in v0.0.90

type CreateFunctionVersionResponseRuntime

type CreateFunctionVersionResponseRuntime struct {
	// contains filtered or unexported fields
}

func (CreateFunctionVersionResponseRuntime) MarshalJSON

func (c CreateFunctionVersionResponseRuntime) MarshalJSON() ([]byte, error)

func (*CreateFunctionVersionResponseRuntime) UnmarshalJSON

func (c *CreateFunctionVersionResponseRuntime) UnmarshalJSON(b []byte) error

func (CreateFunctionVersionResponseRuntime) Value added in v0.0.90

type CreateFunctionVersionResponseType added in v0.0.53

type CreateFunctionVersionResponseType struct {
	// contains filtered or unexported fields
}

func (CreateFunctionVersionResponseType) MarshalJSON added in v0.0.53

func (c CreateFunctionVersionResponseType) MarshalJSON() ([]byte, error)

func (*CreateFunctionVersionResponseType) UnmarshalJSON added in v0.0.53

func (c *CreateFunctionVersionResponseType) UnmarshalJSON(b []byte) error

func (CreateFunctionVersionResponseType) Value added in v0.0.90

type CreateFunctionVersionResponseTypeEnum added in v0.0.53

type CreateFunctionVersionResponseTypeEnum struct {
	V1 CreateFunctionVersionResponseType
	V2 CreateFunctionVersionResponseType
}

func GetCreateFunctionVersionResponseTypeEnum added in v0.0.53

func GetCreateFunctionVersionResponseTypeEnum() CreateFunctionVersionResponseTypeEnum

type CreateTagsRequest added in v0.1.43

type CreateTagsRequest struct {

	// 资源类型
	ResourceType string `json:"resource_type"`

	// 资源ID
	ResourceId string `json:"resource_id"`

	Body *UpdateFunctionTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateTagsRequest) String added in v0.1.43

func (o CreateTagsRequest) String() string

type CreateTagsResponse added in v0.1.43

type CreateTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateTagsResponse) String added in v0.1.43

func (o CreateTagsResponse) String() string

type CreateVersionAliasRequest

type CreateVersionAliasRequest struct {

	// 函数的URN。
	FunctionUrn string `json:"function_urn"`

	Body *CreateVersionAliasRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateVersionAliasRequest) String

func (o CreateVersionAliasRequest) String() string

type CreateVersionAliasRequestBody

type CreateVersionAliasRequestBody struct {

	// 要获取的别名名称。
	Name string `json:"name"`

	// 别名对应的版本名称。
	Version string `json:"version"`

	// 别名描述信息。
	Description *string `json:"description,omitempty"`

	// 灰度版本信息
	AdditionalVersionWeights map[string]int32 `json:"additional_version_weights,omitempty"`
}

版本别名结构

func (CreateVersionAliasRequestBody) String

type CreateVersionAliasResponse

type CreateVersionAliasResponse struct {

	// 要获取的别名名称。
	Name *string `json:"name,omitempty"`

	// 别名对应的版本名称。
	Version *string `json:"version,omitempty"`

	// 别名描述信息。
	Description *string `json:"description,omitempty"`

	// 别名最后修改时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	// 版本别名唯一标识。
	AliasUrn *string `json:"alias_urn,omitempty"`

	// 灰度版本信息
	AdditionalVersionWeights map[string]int64 `json:"additional_version_weights,omitempty"`
	HttpStatusCode           int              `json:"-"`
}

Response Object

func (CreateVersionAliasResponse) String

type CreateVpcEndpointRequest added in v0.1.43

type CreateVpcEndpointRequest struct {
	Body *CreateVpcEndpointRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateVpcEndpointRequest) String added in v0.1.43

func (o CreateVpcEndpointRequest) String() string

type CreateVpcEndpointRequestBody added in v0.1.43

type CreateVpcEndpointRequestBody struct {

	// 选定EP的规格,默认为大规格
	Flavor *string `json:"flavor,omitempty"`

	// 制作EP时使用的租户委托名称
	Xrole *string `json:"xrole,omitempty"`

	// 对接EP使用的租户VPCID
	VpcId string `json:"vpc_id"`

	// 对接EP使用的租户子网ID
	SubnetId string `json:"subnet_id"`
}

func (CreateVpcEndpointRequestBody) String added in v0.1.43

type CreateVpcEndpointResponse added in v0.1.43

type CreateVpcEndpointResponse struct {

	// 依赖id列表
	State *[]string `json:"state,omitempty"`

	// 快照制作响应码
	Code           *string `json:"code,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateVpcEndpointResponse) String added in v0.1.43

func (o CreateVpcEndpointResponse) String() string

type CreateWorkflowRequest added in v0.0.81

type CreateWorkflowRequest struct {
	Body *WorkflowCreateBody `json:"body,omitempty"`
}

Request Object

func (CreateWorkflowRequest) String added in v0.0.81

func (o CreateWorkflowRequest) String() string

type CreateWorkflowResponse added in v0.0.81

type CreateWorkflowResponse struct {

	// 函数流是否返回流式数据
	EnableStreamResponse *bool `json:"enable_stream_response,omitempty"`

	// 唯一标识ID,流程定义ID
	Id *string `json:"id,omitempty"`

	// 函数工作流URN, 格式为: urn:fss:<region_id>:<project_id>:workflow:\\<package\\>:<workflow_name>:\\<version\\> 注意: package当前只支持default version当前只支持latest
	WorkflowUrn *string `json:"workflow_urn,omitempty"`

	// 流程定义名称
	Name *string `json:"name,omitempty"`

	// 流程定义描述
	Description *string `json:"description,omitempty"`

	// 流程创建时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 流程修改时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	UpdatedTime *string `json:"updated_time,omitempty"`

	// 流程创建者
	CreatedBy      *string `json:"created_by,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateWorkflowResponse) String added in v0.0.81

func (o CreateWorkflowResponse) String() string

type CronConfig added in v0.0.104

type CronConfig struct {

	// 定时配置名称
	Name *string `json:"name,omitempty"`

	// 定时表达式
	Cron *string `json:"cron,omitempty"`

	// 拉起预留实例个数
	Count *int32 `json:"count,omitempty"`

	// 开始时间戳
	StartTime *int64 `json:"start_time,omitempty"`

	// 失效时间戳
	ExpiredTime *int64 `json:"expired_time,omitempty"`
}

定时配置

func (CronConfig) String added in v0.0.104

func (o CronConfig) String() string

type CustomImage added in v0.0.104

type CustomImage struct {

	// 是否启用
	Enabled *bool `json:"enabled,omitempty"`

	// 镜像地址
	Image *string `json:"image,omitempty"`

	// 启动容器镜像的命令
	Command *string `json:"command,omitempty"`

	// 启动容器镜像的命令行参数
	Args *string `json:"args,omitempty"`

	// 镜像容器工作目录
	WorkingDir *string `json:"working_dir,omitempty"`

	// 镜像容器的用户id
	Uid *string `json:"uid,omitempty"`

	// 镜像容器的用户组id
	Gid *string `json:"gid,omitempty"`
}

用户容器镜像。

func (CustomImage) String added in v0.0.104

func (o CustomImage) String() string

type DeleteDependencyRequest

type DeleteDependencyRequest struct {

	// 依赖包的ID。
	DependId string `json:"depend_id"`
}

Request Object

func (DeleteDependencyRequest) String

func (o DeleteDependencyRequest) String() string

type DeleteDependencyResponse

type DeleteDependencyResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteDependencyResponse) String

func (o DeleteDependencyResponse) String() string

type DeleteDependencyVersionRequest added in v0.1.12

type DeleteDependencyVersionRequest struct {

	// 依赖包的ID。
	DependId string `json:"depend_id"`

	// 依赖包版本号。
	Version string `json:"version"`
}

Request Object

func (DeleteDependencyVersionRequest) String added in v0.1.12

type DeleteDependencyVersionResponse added in v0.1.12

type DeleteDependencyVersionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteDependencyVersionResponse) String added in v0.1.12

type DeleteEventRequest

type DeleteEventRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 测试事件ID
	EventId string `json:"event_id"`
}

Request Object

func (DeleteEventRequest) String

func (o DeleteEventRequest) String() string

type DeleteEventResponse

type DeleteEventResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteEventResponse) String

func (o DeleteEventResponse) String() string

type DeleteFunctionAsyncInvokeConfigRequest

type DeleteFunctionAsyncInvokeConfigRequest struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (DeleteFunctionAsyncInvokeConfigRequest) String

type DeleteFunctionAsyncInvokeConfigResponse

type DeleteFunctionAsyncInvokeConfigResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteFunctionAsyncInvokeConfigResponse) String

type DeleteFunctionRequest

type DeleteFunctionRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。  不允许删除函数的latest版本,如要删除整个函数(包含所有版本),提供不带任何版本号/别名的urn,如: urn:fss:xxxxxxxx:7aad83af3e8d42e99ac194e8419e2c9b:function:default:test
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (DeleteFunctionRequest) String

func (o DeleteFunctionRequest) String() string

type DeleteFunctionResponse

type DeleteFunctionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteFunctionResponse) String

func (o DeleteFunctionResponse) String() string

type DeleteFunctionTriggerRequest

type DeleteFunctionTriggerRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 触发器类型代码。
	TriggerTypeCode DeleteFunctionTriggerRequestTriggerTypeCode `json:"trigger_type_code"`

	// 触发器编码。
	TriggerId string `json:"trigger_id"`
}

Request Object

func (DeleteFunctionTriggerRequest) String

type DeleteFunctionTriggerRequestTriggerTypeCode

type DeleteFunctionTriggerRequestTriggerTypeCode struct {
	// contains filtered or unexported fields
}

func (DeleteFunctionTriggerRequestTriggerTypeCode) MarshalJSON

func (*DeleteFunctionTriggerRequestTriggerTypeCode) UnmarshalJSON

func (DeleteFunctionTriggerRequestTriggerTypeCode) Value added in v0.0.90

type DeleteFunctionTriggerResponse

type DeleteFunctionTriggerResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteFunctionTriggerResponse) String

type DeleteTagsRequest added in v0.1.43

type DeleteTagsRequest struct {

	// 资源类型
	ResourceType string `json:"resource_type"`

	// 资源ID
	ResourceId string `json:"resource_id"`

	Body *UpdateFunctionTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (DeleteTagsRequest) String added in v0.1.43

func (o DeleteTagsRequest) String() string

type DeleteTagsResponse added in v0.1.43

type DeleteTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteTagsResponse) String added in v0.1.43

func (o DeleteTagsResponse) String() string

type DeleteVersionAliasRequest

type DeleteVersionAliasRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 要删除的别名名称。
	AliasName string `json:"alias_name"`
}

Request Object

func (DeleteVersionAliasRequest) String

func (o DeleteVersionAliasRequest) String() string

type DeleteVersionAliasResponse

type DeleteVersionAliasResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteVersionAliasResponse) String

type DeleteVpcEndpointRequest added in v0.1.43

type DeleteVpcEndpointRequest struct {

	// vpc ID
	VpcId string `json:"vpc_id"`

	// 子网编号
	SubnetId string `json:"subnet_id"`
}

Request Object

func (DeleteVpcEndpointRequest) String added in v0.1.43

func (o DeleteVpcEndpointRequest) String() string

type DeleteVpcEndpointResponse added in v0.1.43

type DeleteVpcEndpointResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteVpcEndpointResponse) String added in v0.1.43

func (o DeleteVpcEndpointResponse) String() string

type Dependency

type Dependency struct {

	// 依赖包属主的domainId。
	Owner string `json:"owner"`

	// 依赖包在OBS上的链接。
	Link string `json:"link"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime DependencyRuntime `json:"runtime"`

	// 依赖包的md5值
	Etag string `json:"etag"`

	// 依赖包大小。
	Size int64 `json:"size"`

	// 依赖包名称。
	Name string `json:"name"`

	// 依赖包描述。
	Description string `json:"description"`

	// 依赖包文件名,如果创建方式为zip时。
	FileName *string `json:"file_name,omitempty"`
}

函数依赖包结构。

func (Dependency) String

func (o Dependency) String() string

type DependencyRuntime added in v0.0.92

type DependencyRuntime struct {
	// contains filtered or unexported fields
}

func (DependencyRuntime) MarshalJSON added in v0.0.92

func (c DependencyRuntime) MarshalJSON() ([]byte, error)

func (*DependencyRuntime) UnmarshalJSON added in v0.0.92

func (c *DependencyRuntime) UnmarshalJSON(b []byte) error

func (DependencyRuntime) Value added in v0.0.92

func (c DependencyRuntime) Value() string

type DependencyRuntimeEnum added in v0.0.92

type DependencyRuntimeEnum struct {
	JAVA8           DependencyRuntime
	JAVA11          DependencyRuntime
	NODE_JS6_10     DependencyRuntime
	NODE_JS8_10     DependencyRuntime
	NODE_JS10_16    DependencyRuntime
	NODE_JS12_13    DependencyRuntime
	NODE_JS14_18    DependencyRuntime
	PYTHON2_7       DependencyRuntime
	PYTHON3_6       DependencyRuntime
	GO1_8           DependencyRuntime
	GO1_X           DependencyRuntime
	C__NET_CORE_2_0 DependencyRuntime
	C__NET_CORE_2_1 DependencyRuntime
	C__NET_CORE_3_1 DependencyRuntime
	PHP7_3          DependencyRuntime
	PYTHON3_9       DependencyRuntime
	HTTP            DependencyRuntime
}

func GetDependencyRuntimeEnum added in v0.0.92

func GetDependencyRuntimeEnum() DependencyRuntimeEnum

type EnableLtsLogsRequest added in v0.0.53

type EnableLtsLogsRequest struct {
}

Request Object

func (EnableLtsLogsRequest) String added in v0.0.53

func (o EnableLtsLogsRequest) String() string

type EnableLtsLogsResponse added in v0.0.53

type EnableLtsLogsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (EnableLtsLogsResponse) String added in v0.0.53

func (o EnableLtsLogsResponse) String() string

type ExportFunctionRequest added in v0.0.47

type ExportFunctionRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 是否导出函数配置,默认为false
	Config *bool `json:"config,omitempty"`

	// 是否导出函数代码,默认为false
	Code *bool `json:"code,omitempty"`

	// 不兼容与code、config参数混用;type=code代表导出代码,type=config代码导出配置
	Type *string `json:"type,omitempty"`
}

Request Object

func (ExportFunctionRequest) String added in v0.0.47

func (o ExportFunctionRequest) String() string

type ExportFunctionResponse added in v0.0.47

type ExportFunctionResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (ExportFunctionResponse) String added in v0.0.47

func (o ExportFunctionResponse) String() string

type ExpressConfig added in v0.0.86

type ExpressConfig struct {

	// 快速模式相关配置,仅在mode配置为EXPRESS时生效 快速模式下流程的执行日志级别,当前支持: ALL: 记录所有节点的执行日志 ERROR:仅记录异常节点执行日志 NONE:不记录日志 注意:当配置为ALL和ERROR级别时租户需要开启LTS相关权限
	LogLevel *ExpressConfigLogLevel `json:"log_level,omitempty"`
}

快速模式配置项

func (ExpressConfig) String added in v0.0.86

func (o ExpressConfig) String() string

type ExpressConfigLogLevel added in v0.0.86

type ExpressConfigLogLevel struct {
	// contains filtered or unexported fields
}

func (ExpressConfigLogLevel) MarshalJSON added in v0.0.86

func (c ExpressConfigLogLevel) MarshalJSON() ([]byte, error)

func (*ExpressConfigLogLevel) UnmarshalJSON added in v0.0.86

func (c *ExpressConfigLogLevel) UnmarshalJSON(b []byte) error

func (ExpressConfigLogLevel) Value added in v0.0.90

func (c ExpressConfigLogLevel) Value() string

type ExpressConfigLogLevelEnum added in v0.0.86

type ExpressConfigLogLevelEnum struct {
	ALL   ExpressConfigLogLevel
	ERROR ExpressConfigLogLevel
	NONE  ExpressConfigLogLevel
}

func GetExpressConfigLogLevelEnum added in v0.0.86

func GetExpressConfigLogLevelEnum() ExpressConfigLogLevelEnum

type FlowExecuteBody added in v0.0.104

type FlowExecuteBody struct {

	// 函数执行时需要的Header
	Headers *interface{} `json:"headers,omitempty"`

	// 定义函数执行时的入参,支持使用JSONPATH进行映射,以及指定默认值
	Input *interface{} `json:"input"`
}

函数流执行请求body体

func (FlowExecuteBody) String added in v0.0.104

func (o FlowExecuteBody) String() string

type FlowExecutionBrief added in v0.0.104

type FlowExecutionBrief struct {

	// 流程定义ID
	WorkflowId *string `json:"workflow_id,omitempty"`

	// 函数工作流URN, 格式为: urn:fss:<region_id>:<project_id>:workflow:\\<package\\>:<workflow_name>:\\<version\\> 注意: package当前只支持default version当前只支持latest
	WorkflowUrn *string `json:"workflow_urn,omitempty"`

	// 流程执行实例ID
	ExecutionId *string `json:"execution_id,omitempty"`

	// 流程实例执行状态
	Status *FlowExecutionBriefStatus `json:"status,omitempty"`

	// 流程实例创建时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	BeginTime *string `json:"begin_time,omitempty"`

	// 流程实例结束时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	EndTime *string `json:"end_time,omitempty"`

	// 流程实例上次更新时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	LastUpdateTime *string `json:"last_update_time,omitempty"`

	// 流程实例创建者
	CreatedBy *string `json:"created_by,omitempty"`
}

函数流执行概要信息

func (FlowExecutionBrief) String added in v0.0.104

func (o FlowExecutionBrief) String() string

type FlowExecutionBriefStatus added in v0.0.104

type FlowExecutionBriefStatus struct {
	// contains filtered or unexported fields
}

func (FlowExecutionBriefStatus) MarshalJSON added in v0.0.104

func (c FlowExecutionBriefStatus) MarshalJSON() ([]byte, error)

func (*FlowExecutionBriefStatus) UnmarshalJSON added in v0.0.104

func (c *FlowExecutionBriefStatus) UnmarshalJSON(b []byte) error

func (FlowExecutionBriefStatus) Value added in v0.0.104

func (c FlowExecutionBriefStatus) Value() string

type FlowExecutionBriefStatusEnum added in v0.0.104

type FlowExecutionBriefStatusEnum struct {
	SUCCESS FlowExecutionBriefStatus
	FAIL    FlowExecutionBriefStatus
	RUNNING FlowExecutionBriefStatus
	TIMEOUT FlowExecutionBriefStatus
	CANCEL  FlowExecutionBriefStatus
}

func GetFlowExecutionBriefStatusEnum added in v0.0.104

func GetFlowExecutionBriefStatusEnum() FlowExecutionBriefStatusEnum

type FlowExecutionBriefV2 added in v0.1.10

type FlowExecutionBriefV2 struct {

	// 函数流ID
	WorkflowId *string `json:"workflow_id,omitempty"`

	// 函数流执行ID
	ExecutionId *string `json:"execution_id,omitempty"`

	// 函数流执行状态
	Status *FlowExecutionBriefV2Status `json:"status,omitempty"`

	// 开始时间(格式为yyyy-MM-dd'T'HH:mm:ss'Z',UTC时间)。
	BeginTime *sdktime.SdkTime `json:"begin_time,omitempty"`

	// 结束时间(格式为yyyy-MM-dd'T'HH:mm:ss'Z',UTC时间)。
	EndTime *sdktime.SdkTime `json:"end_time,omitempty"`

	// 结束时间(格式为yyyy-MM-dd'T'HH:mm:ss'Z',UTC时间)。
	LastUpdateTime *sdktime.SdkTime `json:"last_update_time,omitempty"`

	CreatedBy *string `json:"created_by,omitempty"`

	// 函数流执行urn
	WorkflowUrn *string `json:"workflow_urn,omitempty"`
}

func (FlowExecutionBriefV2) String added in v0.1.10

func (o FlowExecutionBriefV2) String() string

type FlowExecutionBriefV2Status added in v0.1.10

type FlowExecutionBriefV2Status struct {
	// contains filtered or unexported fields
}

func (FlowExecutionBriefV2Status) MarshalJSON added in v0.1.10

func (c FlowExecutionBriefV2Status) MarshalJSON() ([]byte, error)

func (*FlowExecutionBriefV2Status) UnmarshalJSON added in v0.1.10

func (c *FlowExecutionBriefV2Status) UnmarshalJSON(b []byte) error

func (FlowExecutionBriefV2Status) Value added in v0.1.10

type FlowExecutionBriefV2StatusEnum added in v0.1.10

func GetFlowExecutionBriefV2StatusEnum added in v0.1.10

func GetFlowExecutionBriefV2StatusEnum() FlowExecutionBriefV2StatusEnum

type FuncAsyncDestinationConfig

type FuncAsyncDestinationConfig struct {
	OnSuccess *FuncDestinationConfig `json:"on_success,omitempty"`

	OnFailure *FuncDestinationConfig `json:"on_failure,omitempty"`
}

函数异步调用目标参数配置。

func (FuncAsyncDestinationConfig) String

type FuncCode

type FuncCode struct {

	// 函数代码,如果不为空必须进行base64编码,为空时使用默认的代码。
	File *string `json:"file,omitempty"`

	// 函数代码链接。
	Link *string `json:"link,omitempty"`
}

FuncCode结构返回体。

func (FuncCode) String

func (o FuncCode) String() string

type FuncDestinationConfig

type FuncDestinationConfig struct {

	// 目标类型。  - OBS:通知到OBS服务。 - SMN:通知到SMN服务。 - DIS:通知到DIS服务。 - FunctionGraph: 通知到函数服务。
	Destination *FuncDestinationConfigDestination `json:"destination,omitempty"`

	// 通知目标服务对应参数,json字符串。  - OBS:包含bucket桶,对象目录前缀prefix,对象默认expires过期时间[0~365]天,0默认不过期。 - SMN:包含smn 主题topic_urn。 - DIS:包含DIS 通道名stream_name。 - FunctionGraph:包含func_urn,函数urn
	Param *string `json:"param,omitempty"`
}

函数通知目标参数配置。

func (FuncDestinationConfig) String

func (o FuncDestinationConfig) String() string

type FuncDestinationConfigDestination

type FuncDestinationConfigDestination struct {
	// contains filtered or unexported fields
}

func (FuncDestinationConfigDestination) MarshalJSON

func (c FuncDestinationConfigDestination) MarshalJSON() ([]byte, error)

func (*FuncDestinationConfigDestination) UnmarshalJSON

func (c *FuncDestinationConfigDestination) UnmarshalJSON(b []byte) error

func (FuncDestinationConfigDestination) Value added in v0.0.90

type FuncLogConfig added in v0.1.37

type FuncLogConfig struct {

	// 函数绑定日志组名。
	GroupName *string `json:"group_name,omitempty"`

	// 函数绑定日志组ID。
	GroupId *string `json:"group_id,omitempty"`

	// 函数绑定日志流名。
	StreamName *string `json:"stream_name,omitempty"`

	// 函数绑定日志流ID。
	StreamId *string `json:"stream_id,omitempty"`
}

函数绑定日志配置。

func (FuncLogConfig) String added in v0.1.37

func (o FuncLogConfig) String() string

type FuncMount

type FuncMount struct {

	// 挂载类型(sfs/sfsTurbo/ecs),func_mounts非空时必选。
	MountType string `json:"mount_type"`

	// 挂载资源ID(对应云服务ID),func_mounts非空时必选。
	MountResource string `json:"mount_resource"`

	// 远端挂载路径(例如192.168.0.12:/data),如果mount_type为ecs,必选。
	MountSharePath *string `json:"mount_share_path,omitempty"`

	// 函数访问路径,func_mounts非空时必选。
	LocalMountPath string `json:"local_mount_path"`
}

函数挂载结构体。

func (FuncMount) String

func (o FuncMount) String() string

type FuncReservedInstance added in v0.1.12

type FuncReservedInstance struct {

	// 函数urn
	FuncUrn string `json:"func_urn"`

	// 预留实例数目
	Count int64 `json:"count"`
}

func (FuncReservedInstance) String added in v0.1.12

func (o FuncReservedInstance) String() string

type FuncVpc

type FuncVpc struct {

	// 虚拟私有云名称。
	VpcName string `json:"vpc_name"`

	// 虚拟私有云唯一标识。
	VpcId string `json:"vpc_id"`

	// 子网名称。
	SubnetName string `json:"subnet_name"`

	// 子网编号。
	SubnetId string `json:"subnet_id"`

	// 子网掩码。
	Cidr string `json:"cidr"`

	// 网关。
	Gateway string `json:"gateway"`

	// 安全组
	SecurityGroups *[]string `json:"security_groups,omitempty"`
}

函数vpc配置。

func (FuncVpc) String

func (o FuncVpc) String() string

type Function added in v0.0.81

type Function struct {

	// 函数名称,在单个流程中,名称需要唯一
	Name string `json:"name"`

	// 函数调用URN
	Operation string `json:"operation"`

	// 函数扩展属性,由用户自己定制
	Metadata *interface{} `json:"metadata,omitempty"`
}

函数信息

func (Function) String added in v0.0.81

func (o Function) String() string

type FunctionAsyncConfig added in v0.0.68

type FunctionAsyncConfig struct {

	// 消息最大存活时长,取值范围[60,86400]。单位:秒。
	MaxAsyncEventAgeInSeconds int32 `json:"max_async_event_age_in_seconds"`

	// 异步调用失败后的最大重试次数,默认值为3。取值范围[0,8]。
	MaxAsyncRetryAttempts int32 `json:"max_async_retry_attempts"`

	DestinationConfig *FuncAsyncDestinationConfig `json:"destination_config"`

	// 异步调用配置的创建时间。
	CreatedTime *string `json:"created_time,omitempty"`

	// 异步调用配置的最后更改时间。
	LastModified *string `json:"last_modified,omitempty"`
}

函数异步配置返回结构体。

func (FunctionAsyncConfig) String added in v0.0.68

func (o FunctionAsyncConfig) String() string

type FunctionMetric added in v0.1.12

type FunctionMetric struct {

	// 函数urn
	Key *string `json:"key,omitempty"`

	// 指标值
	Value *int32 `json:"value,omitempty"`
}

func (FunctionMetric) String added in v0.1.12

func (o FunctionMetric) String() string

type FunctionRef added in v0.0.81

type FunctionRef struct {

	// 函数引用名称,需要和外层functions中的name对应
	RefName string `json:"ref_name"`

	// 函数调用模式,目前只支持同步调用
	InvokeMode *FunctionRefInvokeMode `json:"invoke_mode,omitempty"`

	// 函数执行时的入参,支持引用constants中的常量 定义方式:参数路径 | 常量值/常量路径 参数路径指输入参数的JsonPath路径,如$.a.b[0].c 常量值可以为数字类型,字符串类型(需要用单引号括起来),布尔类型 常量路径为常量的JsonPath路径,但是根节点需要用$CONST表示,示例:$CONST.a.b
	Arguments *interface{} `json:"arguments"`
}

函数调用信息

func (FunctionRef) String added in v0.0.81

func (o FunctionRef) String() string

type FunctionRefInvokeMode added in v0.0.81

type FunctionRefInvokeMode struct {
	// contains filtered or unexported fields
}

func (FunctionRefInvokeMode) MarshalJSON added in v0.0.81

func (c FunctionRefInvokeMode) MarshalJSON() ([]byte, error)

func (*FunctionRefInvokeMode) UnmarshalJSON added in v0.0.81

func (c *FunctionRefInvokeMode) UnmarshalJSON(b []byte) error

func (FunctionRefInvokeMode) Value added in v0.0.90

func (c FunctionRefInvokeMode) Value() string

type FunctionRefInvokeModeEnum added in v0.0.81

type FunctionRefInvokeModeEnum struct {
	SYNCHRONIZE FunctionRefInvokeMode
}

func GetFunctionRefInvokeModeEnum added in v0.0.81

func GetFunctionRefInvokeModeEnum() FunctionRefInvokeModeEnum

type ImportFunctionRequest added in v0.0.47

type ImportFunctionRequest struct {
	Body *ImportFunctionRequestBody `json:"body,omitempty"`
}

Request Object

func (ImportFunctionRequest) String added in v0.0.47

func (o ImportFunctionRequest) String() string

type ImportFunctionRequestBody added in v0.0.47

type ImportFunctionRequestBody struct {

	// 函数名
	FuncName string `json:"func_name"`

	// 文件名
	FileName string `json:"file_name"`

	// 文件类型
	FileType string `json:"file_type"`

	// 函数代码。代码必须要进行base64编码
	FileCode string `json:"file_code"`

	// 应用名称,默认为default
	Package *string `json:"package,omitempty"`
}

导入函数请求结构体

func (ImportFunctionRequestBody) String added in v0.0.47

func (o ImportFunctionRequestBody) String() string

type ImportFunctionResponse added in v0.0.47

type ImportFunctionResponse struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 函数名称。
	FuncName *string `json:"func_name,omitempty"`

	// 域名id。
	DomainId *string `json:"domain_id,omitempty"`

	// 租户的project id。
	Namespace *string `json:"namespace,omitempty"`

	// 租户的project name。
	ProjectName *string `json:"project_name,omitempty"`

	// 函数所属的分组Package,用于用户针对函数的自定义分组。
	Package *string `json:"package,omitempty"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime *ImportFunctionResponseRuntime `json:"runtime,omitempty"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout *int32 `json:"timeout,omitempty"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler *string `json:"handler,omitempty"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize *int32 `json:"memory_size,omitempty"`

	// 函数消耗的显存,只支持自定义运行时与自定义镜像函数配置GPU。 单位MB。 取值范围为:1024、2048、3072、4096、5120、6144、7168、8192、9216、10240、11264、12288、13312、14336、15360、16384。 最小值为1024,最大值为16384。
	GpuMemory *int32 `json:"gpu_memory,omitempty"`

	// 函数占用的cpu资源。 单位为millicore(1 core=1000 millicores)。 取值与MemorySize成比例,默认是128M内存占0.1个核(100 millicores)。 函数占用的CPU为基础CPU:200 millicores,再加上内存按比例占用的CPU,计算方法:内存/128 *100 + 200。
	Cpu *int32 `json:"cpu,omitempty"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType *ImportFunctionResponseCodeType `json:"code_type,omitempty"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize *int64 `json:"code_size,omitempty"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest *string `json:"digest,omitempty"`

	// 函数版本号,由系统自动生成,规则:vYYYYMMDD-HHMMSS(v+年月日-时分秒)。
	Version *string `json:"version,omitempty"`

	// 函数版本的内部标识。
	ImageName *string `json:"image_name,omitempty"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数描述。
	Description *string `json:"description,omitempty"`

	// 函数版本描述。
	VersionDescription *string `json:"version_description,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	FuncVpc *FuncVpc `json:"func_vpc,omitempty"`

	// 依赖id列表
	DependList *[]string `json:"depend_list,omitempty"`

	// 依赖版本id列表
	DependVersionList *[]string `json:"depend_version_list,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数扩展配置。
	ExtendConfig *string `json:"extend_config,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

Response Object

func (ImportFunctionResponse) String added in v0.0.47

func (o ImportFunctionResponse) String() string

type ImportFunctionResponseCodeType added in v0.0.47

type ImportFunctionResponseCodeType struct {
	// contains filtered or unexported fields
}

func (ImportFunctionResponseCodeType) MarshalJSON added in v0.0.47

func (c ImportFunctionResponseCodeType) MarshalJSON() ([]byte, error)

func (*ImportFunctionResponseCodeType) UnmarshalJSON added in v0.0.47

func (c *ImportFunctionResponseCodeType) UnmarshalJSON(b []byte) error

func (ImportFunctionResponseCodeType) Value added in v0.0.90

type ImportFunctionResponseCodeTypeEnum added in v0.0.47

func GetImportFunctionResponseCodeTypeEnum added in v0.0.47

func GetImportFunctionResponseCodeTypeEnum() ImportFunctionResponseCodeTypeEnum

type ImportFunctionResponseRuntime added in v0.0.47

type ImportFunctionResponseRuntime struct {
	// contains filtered or unexported fields
}

func (ImportFunctionResponseRuntime) MarshalJSON added in v0.0.47

func (c ImportFunctionResponseRuntime) MarshalJSON() ([]byte, error)

func (*ImportFunctionResponseRuntime) UnmarshalJSON added in v0.0.47

func (c *ImportFunctionResponseRuntime) UnmarshalJSON(b []byte) error

func (ImportFunctionResponseRuntime) Value added in v0.0.90

type InvokeFunctionRequest

type InvokeFunctionRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 取值为:tail(返回函数执行后的4K日志),或者为空(不返回日志)。
	XCffLogType *string `json:"X-Cff-Log-Type,omitempty"`

	// 返回体格式,取值v0,v1。 v0:默认返回文本格式 v1:默认返回json格式,sdk需要使用此值。
	XCFFRequestVersion *string `json:"X-CFF-Request-Version,omitempty"`

	// 执行函数请求体,为json格式。
	Body map[string]interface{} `json:"body,omitempty"`
}

Request Object

func (InvokeFunctionRequest) String

func (o InvokeFunctionRequest) String() string

type InvokeFunctionResponse

type InvokeFunctionResponse struct {

	// 请求ID。
	RequestId *string `json:"request_id,omitempty"`

	// 函数执行结果
	Result *string `json:"result,omitempty"`

	// 函数执行返回日志
	Log *string `json:"log,omitempty"`

	// 函数执行返回状态
	Status *int32 `json:"status,omitempty"`

	XCffRequestId  *string `json:"X-Cff-Request-Id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (InvokeFunctionResponse) String

func (o InvokeFunctionResponse) String() string

type ListAsyncInvocationsRequest added in v0.0.104

type ListAsyncInvocationsRequest struct {

	// 函数URN
	FunctionUrn string `json:"function_urn"`

	// 需要查询的异步请求ID。如果不指定,默认查询所有异步调用记录
	RequestId *string `json:"request_id,omitempty"`

	// 本次查询起始位置,默认值0
	Marker *string `json:"marker,omitempty"`

	// 本次查询最大返回的数据条数,最大值500,默认值100
	Limit *string `json:"limit,omitempty"`

	// 本次查询指定的异步调用状态,支持5种状态,如果不指定,则查询所有状态的调用记录 WAIT: 等待 RUNNING: 执行中 SUCCESS: 执行成功 FAIL: 执行失败 DISCARD: 请求丢弃
	Status *string `json:"status,omitempty"`

	// 搜索起始时间(格式为YYYY-MM-DD'T'HH:mm:ss,UTC时间)。如果不指定默认为当前时间前1小时
	QueryBeginTime *sdktime.SdkTime `json:"query_begin_time,omitempty"`

	// 搜索结束时间(格式为YYYY-MM-DD'T'HH:mm:ss,UTC时间)。如果不指定默认为当前时间
	QueryEndTime *sdktime.SdkTime `json:"query_end_time,omitempty"`
}

Request Object

func (ListAsyncInvocationsRequest) String added in v0.0.104

type ListAsyncInvocationsResponse added in v0.0.104

type ListAsyncInvocationsResponse struct {

	// 异步调用记录列表。
	Invocations    *[]ListFunctionAsyncInvocationsResult `json:"invocations,omitempty"`
	HttpStatusCode int                                   `json:"-"`
}

Response Object

func (ListAsyncInvocationsResponse) String added in v0.0.104

type ListDependenciesRequest

type ListDependenciesRequest struct {

	// 上一次查询依赖包的最后记录位置,默认为\"0\"。
	Marker *string `json:"marker,omitempty"`

	// 单次查询最大条数
	Maxitems *string `json:"maxitems,omitempty"`

	// 是否为公共依赖包
	Ispublic *string `json:"ispublic,omitempty"`

	// 依赖包类型public:公开,private:私有,all:全部。缺省时查询全量
	DependencyType *string `json:"dependency_type,omitempty"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime *string `json:"runtime,omitempty"`

	// 依赖包名称。
	Name *string `json:"name,omitempty"`

	// 本次查询可获取的依赖包的最大数目,默认为\"400\"。
	Limit *string `json:"limit,omitempty"`
}

Request Object

func (ListDependenciesRequest) String

func (o ListDependenciesRequest) String() string

type ListDependenciesResponse

type ListDependenciesResponse struct {

	// 依赖包列表
	Dependencies *[]ListDependenciesResult `json:"dependencies,omitempty"`

	// 下次读取位置
	NextMarker *int64 `json:"next_marker,omitempty"`

	// 依赖包总数
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListDependenciesResponse) String

func (o ListDependenciesResponse) String() string

type ListDependenciesResult

type ListDependenciesResult struct {

	// 依赖包ID
	Id string `json:"id"`

	// 依赖包拥有者,public标识为公共依赖包
	Owner string `json:"owner"`

	// 依赖包在obs的存储地址
	Link string `json:"link"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime ListDependenciesResultRuntime `json:"runtime"`

	// 依赖包唯一标志
	Etag string `json:"etag"`

	// 依赖包大小
	Size int64 `json:"size"`

	// 依赖包名
	Name string `json:"name"`

	// 依赖包文件名
	FileName *string `json:"file_name,omitempty"`

	// 依赖包描述。
	Description *string `json:"description,omitempty"`

	// 依赖包版本号
	Version *int64 `json:"version,omitempty"`

	// 依赖包更新时间
	LastModified *int64 `json:"last_modified,omitempty"`
}

func (ListDependenciesResult) String

func (o ListDependenciesResult) String() string

type ListDependenciesResultRuntime added in v0.0.92

type ListDependenciesResultRuntime struct {
	// contains filtered or unexported fields
}

func (ListDependenciesResultRuntime) MarshalJSON added in v0.0.92

func (c ListDependenciesResultRuntime) MarshalJSON() ([]byte, error)

func (*ListDependenciesResultRuntime) UnmarshalJSON added in v0.0.92

func (c *ListDependenciesResultRuntime) UnmarshalJSON(b []byte) error

func (ListDependenciesResultRuntime) Value added in v0.0.92

type ListDependencyVersionRequest added in v0.1.12

type ListDependencyVersionRequest struct {

	// 依赖包的ID。
	DependId string `json:"depend_id"`

	// 上一次查询依赖包的最后记录位置,默认为\"0\"。
	Marker *string `json:"marker,omitempty"`

	// 单次查询最大条数
	Maxitems *string `json:"maxitems,omitempty"`
}

Request Object

func (ListDependencyVersionRequest) String added in v0.1.12

type ListDependencyVersionResponse added in v0.1.12

type ListDependencyVersionResponse struct {

	// 依赖包列表
	Dependencies *[]ListDependenciesResult `json:"dependencies,omitempty"`

	// 下次读取位置
	NextMarker *int64 `json:"next_marker,omitempty"`

	// 依赖包总数
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListDependencyVersionResponse) String added in v0.1.12

type ListEnterpriseResourceRequestBody added in v0.1.43

type ListEnterpriseResourceRequestBody struct {

	// 是否通过标签过滤
	WithoutAnyTag *bool `json:"without_any_tag,omitempty"`

	// 每页显示条数
	Limit *string `json:"limit,omitempty"`

	// 查询偏移量
	Offset *string `json:"offset,omitempty"`

	// 查询指定action
	Action *string `json:"action,omitempty"`

	// 查询指定键值对
	Matches *[]map[string]string `json:"matches,omitempty"`

	// 查询指定系统标签列表
	SysTags *[]TagItem `json:"sys_tags,omitempty"`
}

func (ListEnterpriseResourceRequestBody) String added in v0.1.43

type ListEnterpriseResourceResult added in v0.1.43

type ListEnterpriseResourceResult struct {

	// 资源ID
	ResourceId *string `json:"resource_id,omitempty"`

	ResourceDetail *ListFunctionResult `json:"resource_detail,omitempty"`

	// 标签列表
	Tags *[]map[string]string `json:"tags,omitempty"`

	// 系统标签列表
	SysTags *[]map[string]string `json:"sys_tags,omitempty"`

	// 资源名称
	ResourceName *string `json:"resource_name,omitempty"`
}

func (ListEnterpriseResourceResult) String added in v0.1.43

type ListEventsRequest

type ListEventsRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (ListEventsRequest) String

func (o ListEventsRequest) String() string

type ListEventsResponse

type ListEventsResponse struct {

	// 测试事件总数。
	Count *int32 `json:"count,omitempty"`

	// 测试事件列表。
	Events *[]ListEventsResult `json:"events,omitempty"`

	// 下次读取位置。
	NextMarker     *int64 `json:"next_marker,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListEventsResponse) String

func (o ListEventsResponse) String() string

type ListEventsResult

type ListEventsResult struct {

	// 测试事件ID。
	Id *string `json:"id,omitempty"`

	// 上次修改的时间。
	LastModified float32 `json:"last_modified,omitempty"`

	// 测试事件名称。
	Name *string `json:"name,omitempty"`
}

获取测试事件响应返回体。

func (ListEventsResult) String

func (o ListEventsResult) String() string

type ListFunctionAsMetricRequest added in v0.1.12

type ListFunctionAsMetricRequest struct {

	// 指标类型,默认值为failcount。
	Type *string `json:"type,omitempty"`

	// 起始时间。
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间。
	EndTime *string `json:"end_time,omitempty"`

	// 指标类型,默认值为failcount。
	Limit *string `json:"limit,omitempty"`
}

Request Object

func (ListFunctionAsMetricRequest) String added in v0.1.12

type ListFunctionAsMetricResponse added in v0.1.12

type ListFunctionAsMetricResponse struct {

	// 函数Urn及其指标数
	Values *[]FunctionMetric `json:"values,omitempty"`

	// 下次读取位置
	NextMarker *int64 `json:"next_marker,omitempty"`

	// 返回函数总数
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListFunctionAsMetricResponse) String added in v0.1.12

type ListFunctionAsyncInvocationsResult added in v0.0.75

type ListFunctionAsyncInvocationsResult struct {

	// 异步调用请求ID
	RequestId *string `json:"request_id,omitempty"`

	// 异步调用状态,支持5种状态 WAIT: 等待 RUNNING: 执行中 SUCCESS: 执行成功 FAIL: 执行失败 DISCARD: 请求丢弃
	Status *ListFunctionAsyncInvocationsResultStatus `json:"status,omitempty"`

	// 异步调用错误信息,如果执行成功,则返回空
	ErrorMessage *string `json:"error_message,omitempty"`

	// 异步调用错误码,如果执行成功,则返回0
	ErrorCode *int32 `json:"error_code,omitempty"`

	// 异步调用开始时间(格式为YYYY-MM-DD'T'HH:mm:ss,UTC时间)。
	StartTime *sdktime.SdkTime `json:"start_time,omitempty"`

	// 异步调用结束时间(格式为YYYY-MM-DD'T'HH:mm:ss,UTC时间)。
	EndTime *sdktime.SdkTime `json:"end_time,omitempty"`
}

异步调用记录

func (ListFunctionAsyncInvocationsResult) String added in v0.0.75

type ListFunctionAsyncInvocationsResultStatus added in v0.0.75

type ListFunctionAsyncInvocationsResultStatus struct {
	// contains filtered or unexported fields
}

func (ListFunctionAsyncInvocationsResultStatus) MarshalJSON added in v0.0.75

func (*ListFunctionAsyncInvocationsResultStatus) UnmarshalJSON added in v0.0.75

func (c *ListFunctionAsyncInvocationsResultStatus) UnmarshalJSON(b []byte) error

func (ListFunctionAsyncInvocationsResultStatus) Value added in v0.0.90

type ListFunctionAsyncInvokeConfigRequest

type ListFunctionAsyncInvokeConfigRequest struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FunctionUrn string `json:"function_urn"`

	// 上一次查询到的最后的记录位置。
	Marker *string `json:"marker,omitempty"`

	// 每页显示的条目数量。 - 如果不提供该值或者提供的值等于0,则使用默认值:10,最大值100,大于100取值100。 - 如果该值小于0,则返回参数错误。
	Limit *string `json:"limit,omitempty"`
}

Request Object

func (ListFunctionAsyncInvokeConfigRequest) String

type ListFunctionAsyncInvokeConfigResponse

type ListFunctionAsyncInvokeConfigResponse struct {

	// 函数异步配置列表。
	AsyncInvokeConfigs *[]ListFunctionAsyncInvokeConfigResult `json:"async_invoke_configs,omitempty"`

	// 列表总数。
	Count *int64 `json:"count,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListFunctionAsyncInvokeConfigResponse) String

type ListFunctionAsyncInvokeConfigResult

type ListFunctionAsyncInvokeConfigResult struct {

	// 函数URN。
	FuncUrn string `json:"func_urn"`

	// 消息最大存活时长,取值范围[60,86400]。单位:秒。
	MaxAsyncEventAgeInSeconds int32 `json:"max_async_event_age_in_seconds"`

	// 异步调用失败后的最大重试次数,默认值为3。取值范围[0,8]。
	MaxAsyncRetryAttempts int32 `json:"max_async_retry_attempts"`

	DestinationConfig *FuncAsyncDestinationConfig `json:"destination_config"`

	// 异步调用配置的创建时间。
	CreatedTime *string `json:"created_time,omitempty"`

	// 异步调用配置的最后更改时间。
	LastModified *string `json:"last_modified,omitempty"`

	// 开启异步调用状态持久化
	EnableAsyncStatusLog *bool `json:"enable_async_status_log,omitempty"`
}

函数异步配置返回结构体。

func (ListFunctionAsyncInvokeConfigResult) String

type ListFunctionReservedInstancesRequest added in v0.1.12

type ListFunctionReservedInstancesRequest struct {

	// 上一次查询到的最后的记录位置。
	Marker *string `json:"marker,omitempty"`

	// 每次查询获取的最大函数记录数量  最大值:400 如果不提供该值或者提供的值大于400或等于0,则使用默认值:400 如果该值小于0,则返回参数错误。
	Limit *string `json:"limit,omitempty"`

	// 查询指定函数版本预留实例数的函数urn。
	Urn *string `json:"urn,omitempty"`
}

Request Object

func (ListFunctionReservedInstancesRequest) String added in v0.1.12

type ListFunctionReservedInstancesResponse added in v0.1.12

type ListFunctionReservedInstancesResponse struct {

	// 函数预留实例列表
	Reservedinstances *[]FuncReservedInstance `json:"reservedinstances,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 函数个数
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListFunctionReservedInstancesResponse) String added in v0.1.12

type ListFunctionResult

type ListFunctionResult struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn string `json:"func_urn"`

	// 函数名称。
	FuncName string `json:"func_name"`

	// 域名id。
	DomainId string `json:"domain_id"`

	// 租户的project id。
	Namespace string `json:"namespace"`

	// 租户的project name。
	ProjectName string `json:"project_name"`

	// 函数所属的分组Package,用于用户针对函数的自定义分组。
	Package string `json:"package"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime ListFunctionResultRuntime `json:"runtime"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout int32 `json:"timeout"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler string `json:"handler"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize int32 `json:"memory_size"`

	// 函数消耗的显存,只支持自定义运行时与自定义镜像函数配置GPU。 单位MB。 取值范围为:1024、2048、3072、4096、5120、6144、7168、8192、9216、10240、11264、12288、13312、14336、15360、16384。 最小值为1024,最大值为16384。
	GpuMemory *int32 `json:"gpu_memory,omitempty"`

	// 函数占用的cpu资源。 单位为millicore(1 core=1000 millicores)。 取值与MemorySize成比例,默认是128M内存占0.1个核(100 millicores)。 函数占用的CPU为基础CPU:200 millicores,再加上内存按比例占用的CPU,计算方法:内存/128 *100 + 200。
	Cpu int32 `json:"cpu"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType ListFunctionResultCodeType `json:"code_type"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize int64 `json:"code_size"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 用户自定义的name/value信息,用于需要加密的配置。
	EncryptedUserData *string `json:"encrypted_user_data,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest string `json:"digest"`

	// 函数版本号,由系统自动生成,规则:vYYYYMMDD-HHMMSS(v+年月日-时分秒)。
	Version string `json:"version"`

	// 函数版本的内部标识。
	ImageName string `json:"image_name"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数描述。
	Description *string `json:"description,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified"`

	// 用户的vpcid。
	FuncVpcId *string `json:"func_vpc_id,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数扩展配置。
	ExtendConfig *string `json:"extend_config,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否允许进行长时间超时设置。
	LongTime *bool `json:"long_time,omitempty"`

	// 自定义日志查询组id
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 自定义日志查询流id
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// v2表示为公测版本,v1为原来版本。
	Type *ListFunctionResultType `json:"type,omitempty"`

	// 函数最近1天内执行失败的次数。
	FailCount *int32 `json:"fail_count,omitempty"`

	// 是否为bridge函数
	IsBridgeFunction *bool `json:"is_bridge_function,omitempty"`

	// 绑定bridge函数的urn列表
	BindBridgeFuncUrns *[]string `json:"bind_bridge_funcUrns,omitempty"`
}

函数属性结构体。

func (ListFunctionResult) String

func (o ListFunctionResult) String() string

type ListFunctionResultCodeType

type ListFunctionResultCodeType struct {
	// contains filtered or unexported fields
}

func (ListFunctionResultCodeType) MarshalJSON

func (c ListFunctionResultCodeType) MarshalJSON() ([]byte, error)

func (*ListFunctionResultCodeType) UnmarshalJSON

func (c *ListFunctionResultCodeType) UnmarshalJSON(b []byte) error

func (ListFunctionResultCodeType) Value added in v0.0.90

type ListFunctionResultRuntime

type ListFunctionResultRuntime struct {
	// contains filtered or unexported fields
}

func (ListFunctionResultRuntime) MarshalJSON

func (c ListFunctionResultRuntime) MarshalJSON() ([]byte, error)

func (*ListFunctionResultRuntime) UnmarshalJSON

func (c *ListFunctionResultRuntime) UnmarshalJSON(b []byte) error

func (ListFunctionResultRuntime) Value added in v0.0.90

type ListFunctionResultType added in v0.0.53

type ListFunctionResultType struct {
	// contains filtered or unexported fields
}

func (ListFunctionResultType) MarshalJSON added in v0.0.53

func (c ListFunctionResultType) MarshalJSON() ([]byte, error)

func (*ListFunctionResultType) UnmarshalJSON added in v0.0.53

func (c *ListFunctionResultType) UnmarshalJSON(b []byte) error

func (ListFunctionResultType) Value added in v0.0.90

func (c ListFunctionResultType) Value() string

type ListFunctionResultTypeEnum added in v0.0.53

type ListFunctionResultTypeEnum struct {
	V1 ListFunctionResultType
	V2 ListFunctionResultType
}

func GetListFunctionResultTypeEnum added in v0.0.53

func GetListFunctionResultTypeEnum() ListFunctionResultTypeEnum

type ListFunctionStatisticsRequest

type ListFunctionStatisticsRequest struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn string `json:"func_urn"`

	// 获取最近多少分钟内函数执行的指标。
	Period string `json:"period"`
}

Request Object

func (ListFunctionStatisticsRequest) String

type ListFunctionStatisticsResponse

type ListFunctionStatisticsResponse struct {

	// 调用次数
	Count *[]SlaReportsValue `json:"count,omitempty"`

	// 平均时延,单位毫秒
	Duration *[]SlaReportsValue `json:"duration,omitempty"`

	// 错误次数
	FailCount *[]SlaReportsValue `json:"fail_count,omitempty"`

	// 最大时延,单位毫秒
	MaxDuration *[]SlaReportsValue `json:"max_duration,omitempty"`

	// 最小时延,单位毫秒
	MinDuration *[]SlaReportsValue `json:"min_duration,omitempty"`

	// 被拒绝次数
	RejectCount    *[]SlaReportsValue `json:"reject_count,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListFunctionStatisticsResponse) String

type ListFunctionStatisticsResponseBody

type ListFunctionStatisticsResponseBody struct {

	// 调用次数
	Count *[]SlaReportsValue `json:"count,omitempty"`

	// 平均时延,单位毫秒
	Duration *[]SlaReportsValue `json:"duration,omitempty"`

	// 错误次数
	FailCount *[]SlaReportsValue `json:"fail_count,omitempty"`

	// 最大时延,单位毫秒
	MaxDuration *[]SlaReportsValue `json:"max_duration,omitempty"`

	// 最小时延,单位毫秒
	MinDuration *[]SlaReportsValue `json:"min_duration,omitempty"`

	// 被拒绝次数
	RejectCount *[]SlaReportsValue `json:"reject_count,omitempty"`
}

函数指标

func (ListFunctionStatisticsResponseBody) String

type ListFunctionTriggerResult

type ListFunctionTriggerResult struct {

	// 触发器ID。
	TriggerId string `json:"trigger_id"`

	// 触发器类型。  - TIMER: \"定时触发器。\" - APIG: \"APIG触发器。\" - CTS: \"云审计服务触发器。\" - DDS: \"文档数据库服务触发器。\" - DMS: \"分布式服务触发器。\" - DIS: \"数据接入服务触发器。\" - LTS: \"云日志服务触发器。\" - OBS: \"对象存储触发器。\" - SMN: \"消息通知服务触发器。\" - KAFKA: \"专享版消息通知服务触发器。\"
	TriggerTypeCode ListFunctionTriggerResultTriggerTypeCode `json:"trigger_type_code"`

	// \"触发器状态\"  - ACTIVE: 启用状态。 - DISABLED: 禁用状态。
	TriggerStatus ListFunctionTriggerResultTriggerStatus `json:"trigger_status"`

	// 触发器源事件。
	EventData *interface{} `json:"event_data"`

	// 最后更新时间。
	LastUpdatedTime *sdktime.SdkTime `json:"last_updated_time"`

	// 触发器创建时间。
	CreatedTime *sdktime.SdkTime `json:"created_time"`
}

func (ListFunctionTriggerResult) String

func (o ListFunctionTriggerResult) String() string

type ListFunctionTriggerResultTriggerStatus

type ListFunctionTriggerResultTriggerStatus struct {
	// contains filtered or unexported fields
}

func (ListFunctionTriggerResultTriggerStatus) MarshalJSON

func (c ListFunctionTriggerResultTriggerStatus) MarshalJSON() ([]byte, error)

func (*ListFunctionTriggerResultTriggerStatus) UnmarshalJSON

func (c *ListFunctionTriggerResultTriggerStatus) UnmarshalJSON(b []byte) error

func (ListFunctionTriggerResultTriggerStatus) Value added in v0.0.90

type ListFunctionTriggerResultTriggerStatusEnum

type ListFunctionTriggerResultTriggerStatusEnum struct {
	ACTIVE   ListFunctionTriggerResultTriggerStatus
	DISABLED ListFunctionTriggerResultTriggerStatus
}

func GetListFunctionTriggerResultTriggerStatusEnum

func GetListFunctionTriggerResultTriggerStatusEnum() ListFunctionTriggerResultTriggerStatusEnum

type ListFunctionTriggerResultTriggerTypeCode

type ListFunctionTriggerResultTriggerTypeCode struct {
	// contains filtered or unexported fields
}

func (ListFunctionTriggerResultTriggerTypeCode) MarshalJSON

func (*ListFunctionTriggerResultTriggerTypeCode) UnmarshalJSON

func (c *ListFunctionTriggerResultTriggerTypeCode) UnmarshalJSON(b []byte) error

func (ListFunctionTriggerResultTriggerTypeCode) Value added in v0.0.90

type ListFunctionTriggersRequest

type ListFunctionTriggersRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (ListFunctionTriggersRequest) String

type ListFunctionTriggersResponse

type ListFunctionTriggersResponse struct {
	Body           *[]ListFunctionTriggerResult `json:"body,omitempty"`
	HttpStatusCode int                          `json:"-"`
}

Response Object

func (ListFunctionTriggersResponse) String

type ListFunctionVersionResult

type ListFunctionVersionResult struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn string `json:"func_urn"`

	// 函数名称。
	FuncName string `json:"func_name"`

	// 域名id。
	DomainId string `json:"domain_id"`

	// 租户的project id。
	Namespace string `json:"namespace"`

	// 租户的project name。
	ProjectName string `json:"project_name"`

	// 函数所属的分组Package,用于用户针对函数的自定义分组。
	Package string `json:"package"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime ListFunctionVersionResultRuntime `json:"runtime"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout int32 `json:"timeout"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler string `json:"handler"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize int32 `json:"memory_size"`

	// 函数占用的cpu资源。 单位为millicore(1 core=1000 millicores)。 取值与MemorySize成比例,默认是128M内存占0.1个核(100 millicores)。 函数占用的CPU为基础CPU:200 millicores,再加上内存按比例占用的CPU,计算方法:内存/128 *100 + 200。
	Cpu int32 `json:"cpu"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType ListFunctionVersionResultCodeType `json:"code_type"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize int64 `json:"code_size"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 用户自定义的name/value信息,用于需要加密的配置。
	EncryptedUserData *string `json:"encrypted_user_data,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest string `json:"digest"`

	// 函数版本号,由系统自动生成,规则:vYYYYMMDD-HHMMSS(v+年月日-时分秒)。
	Version string `json:"version"`

	// 函数版本的内部标识。
	ImageName string `json:"image_name"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified"`

	// 用户的vpcid
	FuncVpcId *string `json:"func_vpc_id,omitempty"`

	// 0:函数被禁用;-1:函数被启用。
	Concurrency *int32 `json:"concurrency,omitempty"`

	// 并发实例数
	ConcurrentNum *int32 `json:"concurrent_num,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 是否是支持长时间运行
	LongTime *bool `json:"long_time,omitempty"`

	FunctionAsyncConfig *FunctionAsyncConfig `json:"function_async_config,omitempty"`

	// 函数版本
	Type *string `json:"type,omitempty"`

	// 是否启用cloud debug功能
	EnableCloudDebug *string `json:"enable_cloud_debug,omitempty"`

	// 是否启用动态内存功能
	EnableDynamicMemory *bool `json:"enable_dynamic_memory,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否支持有状态,如果需要支持,需要固定传参为true,v2版本支持
	IsStatefulFunction *bool `json:"is_stateful_function,omitempty"`

	// 是否允许在请求头中添加鉴权信息
	EnableAuthInHeader *bool `json:"enable_auth_in_header,omitempty"`

	CustomImage *CustomImage `json:"custom_image,omitempty"`

	// 是否开启预留实例闲置模式
	ReservedInstanceIdleMode *bool `json:"reserved_instance_idle_mode,omitempty"`
}

func (ListFunctionVersionResult) String

func (o ListFunctionVersionResult) String() string

type ListFunctionVersionResultCodeType

type ListFunctionVersionResultCodeType struct {
	// contains filtered or unexported fields
}

func (ListFunctionVersionResultCodeType) MarshalJSON

func (c ListFunctionVersionResultCodeType) MarshalJSON() ([]byte, error)

func (*ListFunctionVersionResultCodeType) UnmarshalJSON

func (c *ListFunctionVersionResultCodeType) UnmarshalJSON(b []byte) error

func (ListFunctionVersionResultCodeType) Value added in v0.0.90

type ListFunctionVersionResultRuntime

type ListFunctionVersionResultRuntime struct {
	// contains filtered or unexported fields
}

func (ListFunctionVersionResultRuntime) MarshalJSON

func (c ListFunctionVersionResultRuntime) MarshalJSON() ([]byte, error)

func (*ListFunctionVersionResultRuntime) UnmarshalJSON

func (c *ListFunctionVersionResultRuntime) UnmarshalJSON(b []byte) error

func (ListFunctionVersionResultRuntime) Value added in v0.0.90

type ListFunctionVersionsRequest

type ListFunctionVersionsRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 上一次查询到的最后的记录位置。
	Marker *string `json:"marker,omitempty"`

	// 每次查询获取的最大函数记录数量。
	Maxitems *string `json:"maxitems,omitempty"`
}

Request Object

func (ListFunctionVersionsRequest) String

type ListFunctionVersionsResponse

type ListFunctionVersionsResponse struct {

	// 版本列表
	Versions *[]ListFunctionVersionResult `json:"versions,omitempty"`

	// 下一次记录位置
	NextMarker *int64 `json:"next_marker,omitempty"`

	// 版本总数
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListFunctionVersionsResponse) String

type ListFunctionsRequest

type ListFunctionsRequest struct {

	// 上一次查询到的最后的记录位置。
	Marker *string `json:"marker,omitempty"`

	// 每次查询获取的最大函数记录数量 最大值:400 如果不提供该值或者提供的值大于400或等于0,则使用默认值:400 如果该值小于0,则返回参数错误。
	Maxitems *string `json:"maxitems,omitempty"`

	// 应用名称。
	PackageName *string `json:"package_name,omitempty"`
}

Request Object

func (ListFunctionsRequest) String

func (o ListFunctionsRequest) String() string

type ListFunctionsResponse

type ListFunctionsResponse struct {

	// 函数列表。
	Functions *[]ListFunctionResult `json:"functions,omitempty"`

	// 函数下次记录读取位置。
	NextMarker *int32 `json:"next_marker,omitempty"`

	// 满足查询条件的函数总数。
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListFunctionsResponse) String

func (o ListFunctionsResponse) String() string

type ListQuotasRequest

type ListQuotasRequest struct {
}

Request Object

func (ListQuotasRequest) String

func (o ListQuotasRequest) String() string

type ListQuotasResponse

type ListQuotasResponse struct {
	Quotas         *ListQuotasResult `json:"quotas,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ListQuotasResponse) String

func (o ListQuotasResponse) String() string

type ListQuotasResult

type ListQuotasResult struct {

	// 配额列表
	Resources []Resources `json:"resources"`
}

配额信息

func (ListQuotasResult) String

func (o ListQuotasResult) String() string

type ListReservedInstanceConfigsRequest added in v0.1.12

type ListReservedInstanceConfigsRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn *string `json:"function_urn,omitempty"`

	// 本次查询起始位置,默认值0
	Marker *string `json:"marker,omitempty"`

	// 本次查询最大返回的数据条数,最大值500,默认值100
	Limit *string `json:"limit,omitempty"`
}

Request Object

func (ListReservedInstanceConfigsRequest) String added in v0.1.12

type ListReservedInstanceConfigsResponse added in v0.1.12

type ListReservedInstanceConfigsResponse struct {

	// 函数预留实例列表
	ReservedInstances *[]ReservedInstanceConfigs `json:"reserved_instances,omitempty"`

	PageInfo *PageInfo `json:"page_info,omitempty"`

	// 函数个数
	Count          *int64 `json:"count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListReservedInstanceConfigsResponse) String added in v0.1.12

type ListStatisticsRequest

type ListStatisticsRequest struct {

	// 参数过滤器。 monitor_data: 查询统计信息。 monthly_report:查询月度统计信息。
	Filter ListStatisticsRequestFilter `json:"filter"`

	// 时间段单位为分钟,与filter参数metric配合使用。
	Period *string `json:"period,omitempty"`

	// 月度统计的维度,filter参数取值为monthly_report时才生效。 当取值不在以上范围时,默认取\"0\"。 - \"0\": 表示统计本月。 - \"1\": 表示统计上月。 - \"2\": 表示统计最近三个月。 - \"3\": 表示统计最近六个月。
	Option *string `json:"option,omitempty"`
}

Request Object

func (ListStatisticsRequest) String

func (o ListStatisticsRequest) String() string

type ListStatisticsRequestFilter

type ListStatisticsRequestFilter struct {
	// contains filtered or unexported fields
}

func (ListStatisticsRequestFilter) MarshalJSON

func (c ListStatisticsRequestFilter) MarshalJSON() ([]byte, error)

func (*ListStatisticsRequestFilter) UnmarshalJSON

func (c *ListStatisticsRequestFilter) UnmarshalJSON(b []byte) error

func (ListStatisticsRequestFilter) Value added in v0.0.90

type ListStatisticsRequestFilterEnum

type ListStatisticsRequestFilterEnum struct {
	MONITOR_DATA   ListStatisticsRequestFilter
	MONTHLY_REPORT ListStatisticsRequestFilter
}

func GetListStatisticsRequestFilterEnum

func GetListStatisticsRequestFilterEnum() ListStatisticsRequestFilterEnum

type ListStatisticsResponse

type ListStatisticsResponse struct {

	// 月度调用次数
	Count *[]MonthUsed `json:"count,omitempty"`

	// 月度资源用量
	Gbs *[]MonthUsed `json:"gbs,omitempty"`

	Statistics     *ListFunctionStatisticsResponseBody `json:"statistics,omitempty"`
	HttpStatusCode int                                 `json:"-"`
}

Response Object

func (ListStatisticsResponse) String

func (o ListStatisticsResponse) String() string

type ListVersionAliasResult

type ListVersionAliasResult struct {

	// 要获取的别名名称。
	Name string `json:"name"`

	// 别名对应的版本名称。
	Version string `json:"version"`

	// 别名描述信息。
	Description *string `json:"description,omitempty"`

	// 别名最后修改时间。
	LastModified *sdktime.SdkTime `json:"last_modified"`

	// 版本别名唯一标识。
	AliasUrn string `json:"alias_urn"`

	// 灰度版本信息
	AdditionalVersionWeights map[string]int64 `json:"additional_version_weights,omitempty"`
}

版本别名结构

func (ListVersionAliasResult) String

func (o ListVersionAliasResult) String() string

type ListVersionAliasesRequest

type ListVersionAliasesRequest struct {

	// 函数的URN。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (ListVersionAliasesRequest) String

func (o ListVersionAliasesRequest) String() string

type ListVersionAliasesResponse

type ListVersionAliasesResponse struct {

	// 函数版本别名列表
	Body           *[]ListVersionAliasResult `json:"body,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (ListVersionAliasesResponse) String

type ListWorkflowExecutionsRequest added in v0.0.81

type ListWorkflowExecutionsRequest struct {

	// 函数工作流ID
	WorkflowId string `json:"workflow_id"`

	// 分页查询,每页显示的条目数量,最大数量200,超过200后只返回200
	Limit *int32 `json:"limit,omitempty"`

	// 需要过滤的流程实例状态
	Status *ListWorkflowExecutionsRequestStatus `json:"status,omitempty"`

	// 查询开始时间,UTC时间。若起始时间未填写,以终止时间前推3天为起始时间
	StartTime *string `json:"start_time,omitempty"`

	// 查询开始时间,UTC时间。若终止时间未填写,以起始时间后退3天未终止时间。若均未填写,默认查询最近3天数据。
	EndTime *string `json:"end_time,omitempty"`
}

Request Object

func (ListWorkflowExecutionsRequest) String added in v0.0.81

type ListWorkflowExecutionsRequestStatus added in v0.0.81

type ListWorkflowExecutionsRequestStatus struct {
	// contains filtered or unexported fields
}

func (ListWorkflowExecutionsRequestStatus) MarshalJSON added in v0.0.81

func (c ListWorkflowExecutionsRequestStatus) MarshalJSON() ([]byte, error)

func (*ListWorkflowExecutionsRequestStatus) UnmarshalJSON added in v0.0.81

func (c *ListWorkflowExecutionsRequestStatus) UnmarshalJSON(b []byte) error

func (ListWorkflowExecutionsRequestStatus) Value added in v0.0.90

type ListWorkflowExecutionsResponse added in v0.0.81

type ListWorkflowExecutionsResponse struct {

	// 流程执行信息列表
	Executions     *[]FlowExecutionBrief `json:"executions,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (ListWorkflowExecutionsResponse) String added in v0.0.81

type ListWorkflowRequest added in v0.0.104

type ListWorkflowRequest struct {

	// 函数流名称
	WorkflowName *string `json:"workflow_name,omitempty"`

	// 分页查询,每页显示的条目数量,默认值为200 limit大于200时,按照200处理
	Limit *int32 `json:"limit,omitempty"`

	// 分页查询,分页的偏移量,默认值为0 offset小于0时,按照0处理
	Offset *int32 `json:"offset,omitempty"`

	// 企业项目ID
	EnterpriseProject *string `json:"enterprise_project,omitempty"`

	// 函数流模式 \"NORMAL\"标准函数流 \"EXPRESS\"快速函数流
	Mode *string `json:"mode,omitempty"`
}

Request Object

func (ListWorkflowRequest) String added in v0.0.104

func (o ListWorkflowRequest) String() string

type ListWorkflowResponse added in v0.0.104

type ListWorkflowResponse struct {

	// 返回所有满足条件的对象个数
	Total *int64 `json:"total,omitempty"`

	// 返回对象的大小
	Size *int32 `json:"size,omitempty"`

	// 返回的实体对象
	Workflows      *[]WorkflowSimpleInfo `json:"workflows,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

Response Object

func (ListWorkflowResponse) String added in v0.0.104

func (o ListWorkflowResponse) String() string

type MetricConfig added in v0.0.104

type MetricConfig struct {

	// 流量配置名称
	Name *string `json:"name,omitempty"`

	// 流量配置类型
	Type *string `json:"type,omitempty"`

	// 流量阈值
	Threshold *int32 `json:"threshold,omitempty"`

	// 流量最小值
	Min *int32 `json:"min,omitempty"`
}

流量配置

func (MetricConfig) String added in v0.0.104

func (o MetricConfig) String() string

type MonthUsed

type MonthUsed struct {

	// 日期
	Date *string `json:"date,omitempty"`

	// 使用量
	Value float32 `json:"value,omitempty"`
}

func (MonthUsed) String

func (o MonthUsed) String() string

type MountConfig

type MountConfig struct {
	MountUser *MountUser `json:"mount_user"`

	// 函数挂载列表。
	FuncMounts []FuncMount `json:"func_mounts"`
}

函数挂载配置。

func (MountConfig) String

func (o MountConfig) String() string

type MountUser

type MountUser struct {

	// 用户ID(-1~65534的非0整数)
	UserId string `json:"user_id"`

	// 用户组ID(-1~65534的非0整数)
	UserGroupId string `json:"user_group_id"`
}

挂载用户信息。

func (MountUser) String

func (o MountUser) String() string

type NetworkControlConfig added in v0.1.37

type NetworkControlConfig struct {

	// 禁止公网访问开关。
	DisablePublicNetwork *bool `json:"disable_public_network,omitempty"`

	// 指定触发函数vpc配置。
	TriggerAccessVpcs *[]VpcConfig `json:"trigger_access_vpcs,omitempty"`
}

函数网络配置。

func (NetworkControlConfig) String added in v0.1.37

func (o NetworkControlConfig) String() string

type NodeExecution added in v0.0.81

type NodeExecution struct {

	// 流程节点执行状态
	Status *NodeExecutionStatus `json:"status,omitempty"`

	// 函数执行时的入参
	Input *interface{} `json:"input,omitempty"`

	// 函数执行结果
	Output *interface{} `json:"output,omitempty"`

	// 节点启动时间,UTC毫秒时间戳格式
	BeginTime *int64 `json:"begin_time,omitempty"`

	// 节点结束时间,UTC毫秒时间戳格式
	EndTime *int64 `json:"end_time,omitempty"`

	// 节点错误信息,仅在节点出错时非空
	ErrorMessage *interface{} `json:"error_message,omitempty"`

	// 流程节点请求ID
	RequestId *string `json:"request_id,omitempty"`
}

节点执行详情

func (NodeExecution) String added in v0.0.81

func (o NodeExecution) String() string

type NodeExecutionDetail added in v0.0.81

type NodeExecutionDetail struct {

	// 流程节点ID
	NodeId *string `json:"node_id,omitempty"`

	// 流程节点名称
	NodeName *string `json:"node_name,omitempty"`

	// 流程节点执行ID
	ExecutionId *string `json:"execution_id,omitempty"`

	// 节点执行记录
	Executions *[]NodeExecution `json:"executions,omitempty"`
}

函数流节点执行详细信息

func (NodeExecutionDetail) String added in v0.0.81

func (o NodeExecutionDetail) String() string

type NodeExecutionStatus added in v0.0.81

type NodeExecutionStatus struct {
	// contains filtered or unexported fields
}

func (NodeExecutionStatus) MarshalJSON added in v0.0.81

func (c NodeExecutionStatus) MarshalJSON() ([]byte, error)

func (*NodeExecutionStatus) UnmarshalJSON added in v0.0.81

func (c *NodeExecutionStatus) UnmarshalJSON(b []byte) error

func (NodeExecutionStatus) Value added in v0.0.90

func (c NodeExecutionStatus) Value() string

type NodeExecutionStatusEnum added in v0.0.81

type NodeExecutionStatusEnum struct {
	SUCCESS NodeExecutionStatus
	FAIL    NodeExecutionStatus
	RUNNING NodeExecutionStatus
	TIMEOUT NodeExecutionStatus
	CANCEL  NodeExecutionStatus
}

func GetNodeExecutionStatusEnum added in v0.0.81

func GetNodeExecutionStatusEnum() NodeExecutionStatusEnum

type ObsTriggerConfig added in v0.0.81

type ObsTriggerConfig struct {

	// OBS桶名(trigger_type为OBS时配置)
	Bucket string `json:"bucket"`

	// OBS事件列表(trigger_type为OBS时配置)
	Events []string `json:"events"`

	// 对象名前缀(trigger_type为OBS时配置)
	Prefix string `json:"prefix"`

	// 对象名后缀(trigger_type为OBS时配置)
	Suffix string `json:"suffix"`
}

触发器结构体

func (ObsTriggerConfig) String added in v0.0.81

func (o ObsTriggerConfig) String() string

type OnError added in v0.0.81

type OnError struct {

	// 错误匹配表达式,用来过滤需要处理的异常
	Error *string `json:"error,omitempty"`

	// 下一步骤节点ID
	Transition *string `json:"transition,omitempty"`

	// 重试策略名称
	RetryRef *string `json:"retry_ref,omitempty"`
}

错误处理策略详情

func (OnError) String added in v0.0.81

func (o OnError) String() string

type OperateErrorInfo added in v0.0.81

type OperateErrorInfo struct {

	// 唯一标识ID,流程URN
	WorkflowUrn *string `json:"workflow_urn,omitempty"`

	// 错误详情
	ErrorDetail *string `json:"error_detail,omitempty"`
}

批量执行错误信息

func (OperateErrorInfo) String added in v0.0.81

func (o OperateErrorInfo) String() string

type OperationState added in v0.0.81

type OperationState struct {

	// Action执行模式,支持串行,并行两种模式,默认串行
	ActionMode *OperationStateActionMode `json:"action_mode,omitempty"`

	// 节点中要执行的操作列表
	Actions []Action `json:"actions"`

	// 错误处理策略
	OnErrors *[]OnError `json:"on_errors,omitempty"`

	// 节点ID,需要在当前函数流中唯一
	Id string `json:"id"`

	// 节点名称
	Name string `json:"name"`

	// 节点类型
	Type OperationStateType `json:"type"`

	// 是否是结束节点
	End bool `json:"end"`

	// 下一步骤节点ID
	Transition string `json:"transition"`

	StateDataFilter *StateDataFilter `json:"state_data_filter,omitempty"`

	// 时间等待节点等待时间(秒),节点类型为Sleep时为必填,节点类型不为Sleep时无效
	Duration *int64 `json:"duration,omitempty"`
}

函数执行节点信息

func (OperationState) String added in v0.0.81

func (o OperationState) String() string

type OperationStateActionMode added in v0.0.81

type OperationStateActionMode struct {
	// contains filtered or unexported fields
}

func (OperationStateActionMode) MarshalJSON added in v0.0.81

func (c OperationStateActionMode) MarshalJSON() ([]byte, error)

func (*OperationStateActionMode) UnmarshalJSON added in v0.0.81

func (c *OperationStateActionMode) UnmarshalJSON(b []byte) error

func (OperationStateActionMode) Value added in v0.0.90

func (c OperationStateActionMode) Value() string

type OperationStateActionModeEnum added in v0.0.81

type OperationStateActionModeEnum struct {
	SEQUENTIAL OperationStateActionMode
	PARALLEL   OperationStateActionMode
}

func GetOperationStateActionModeEnum added in v0.0.81

func GetOperationStateActionModeEnum() OperationStateActionModeEnum

type OperationStateType added in v0.0.81

type OperationStateType struct {
	// contains filtered or unexported fields
}

func (OperationStateType) MarshalJSON added in v0.0.81

func (c OperationStateType) MarshalJSON() ([]byte, error)

func (*OperationStateType) UnmarshalJSON added in v0.0.81

func (c *OperationStateType) UnmarshalJSON(b []byte) error

func (OperationStateType) Value added in v0.0.90

func (c OperationStateType) Value() string

type OperationStateTypeEnum added in v0.0.81

type OperationStateTypeEnum struct {
	OPERATION OperationStateType
	SLEEP     OperationStateType
	END       OperationStateType
}

func GetOperationStateTypeEnum added in v0.0.81

func GetOperationStateTypeEnum() OperationStateTypeEnum

type PageInfo

type PageInfo struct {

	// 下一次读取位置
	NextMarker int64 `json:"next_marker"`

	// 上一次读取位置
	PreviousMarker int64 `json:"previous_marker"`

	// 当前页总数
	CurrentCount int64 `json:"current_count"`
}

func (PageInfo) String

func (o PageInfo) String() string

type ReservedInstanceConfigs added in v0.1.14

type ReservedInstanceConfigs struct {

	// 函数URN
	FunctionUrn *string `json:"function_urn,omitempty"`

	// 限定类型, 支持version和alias
	QualifierType *string `json:"qualifier_type,omitempty"`

	// 限定类型对应的取值
	QualifierName *string `json:"qualifier_name,omitempty"`

	// 预留实例个数
	MinCount *int32 `json:"min_count,omitempty"`

	// 是否开启闲置模式配置
	IdleMode *bool `json:"idle_mode,omitempty"`

	TacticsConfig *TacticsConfig `json:"tactics_config,omitempty"`
}

func (ReservedInstanceConfigs) String added in v0.1.14

func (o ReservedInstanceConfigs) String() string

type Resources

type Resources struct {

	// 函数配额限制。
	Quota *int32 `json:"quota,omitempty"`

	// 已使用的配额。
	Used *int32 `json:"used,omitempty"`

	// “资源类型”
	Type *ResourcesType `json:"type,omitempty"`

	// 资源的计数单位。fgs_func_code_size,单位为MB,其他场景无单位
	Unit *string `json:"unit,omitempty"`
}

func (Resources) String

func (o Resources) String() string

type ResourcesType

type ResourcesType struct {
	// contains filtered or unexported fields
}

func (ResourcesType) MarshalJSON

func (c ResourcesType) MarshalJSON() ([]byte, error)

func (*ResourcesType) UnmarshalJSON

func (c *ResourcesType) UnmarshalJSON(b []byte) error

func (ResourcesType) Value added in v0.0.90

func (c ResourcesType) Value() string

type ResourcesTypeEnum

type ResourcesTypeEnum struct {
	FGS_FUNC_SCALE_DOWN_TIMEOUT ResourcesType
	FGS_FUNC_OCCURS             ResourcesType
	FGS_FUNC_PAT_IDLE_TIME      ResourcesType
	FGS_FUNC_NUM                ResourcesType
	FGS_FUNC_CODE_SIZE          ResourcesType
	FGS_WORKFLOW_NUM            ResourcesType
}

func GetResourcesTypeEnum

func GetResourcesTypeEnum() ResourcesTypeEnum

type Retry added in v0.0.81

type Retry struct {

	// 重试策略名称,在单个流程中,名称需要唯一
	Name string `json:"name"`

	// 重试间隔,单位:秒。若不传,默认为1
	Delay *int64 `json:"delay,omitempty"`

	// 最大重试次数,。若不传,默认为3
	MaxAttempts *int64 `json:"max_attempts,omitempty"`
}

重试策略

func (Retry) String added in v0.0.81

func (o Retry) String() string

type RetryWorkFlowRequest added in v0.0.81

type RetryWorkFlowRequest struct {

	// 函数工作流ID
	WorkflowId string `json:"workflow_id"`

	// 函数流执行实例ID
	ExecutionId string `json:"execution_id"`
}

Request Object

func (RetryWorkFlowRequest) String added in v0.0.81

func (o RetryWorkFlowRequest) String() string

type RetryWorkFlowResponse added in v0.0.81

type RetryWorkFlowResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (RetryWorkFlowResponse) String added in v0.0.81

func (o RetryWorkFlowResponse) String() string

type ShowDependcyRequest added in v0.0.104

type ShowDependcyRequest struct {

	// 依赖包的ID。
	DependId string `json:"depend_id"`
}

Request Object

func (ShowDependcyRequest) String added in v0.0.104

func (o ShowDependcyRequest) String() string

type ShowDependcyResponse added in v0.0.104

type ShowDependcyResponse struct {

	// 依赖包ID。
	Id *string `json:"id,omitempty"`

	// 依赖包拥有者。
	Owner *string `json:"owner,omitempty"`

	// 依赖包在obs的存储地址。
	Link *string `json:"link,omitempty"`

	// 运行时语言。
	Runtime *string `json:"runtime,omitempty"`

	// 依赖包唯一标志。
	Etag *string `json:"etag,omitempty"`

	// 依赖包大小。
	Size *int64 `json:"size,omitempty"`

	// 依赖包名。
	Name *string `json:"name,omitempty"`

	// 依赖包描述。
	Description *string `json:"description,omitempty"`

	// 依赖包文件名。
	FileName *string `json:"file_name,omitempty"`

	// 依赖包版本号
	Version *int64 `json:"version,omitempty"`

	// 依赖包更新时间
	LastModified   *int64 `json:"last_modified,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowDependcyResponse) String added in v0.0.104

func (o ShowDependcyResponse) String() string

type ShowDependencyVersionRequest added in v0.1.12

type ShowDependencyVersionRequest struct {

	// 依赖包的ID。
	DependId string `json:"depend_id"`

	// 依赖包版本号。
	Version string `json:"version"`
}

Request Object

func (ShowDependencyVersionRequest) String added in v0.1.12

type ShowDependencyVersionResponse added in v0.1.12

type ShowDependencyVersionResponse struct {

	// 依赖包ID。
	Id *string `json:"id,omitempty"`

	// 依赖包拥有者。
	Owner *string `json:"owner,omitempty"`

	// 依赖包在obs的存储地址。
	Link *string `json:"link,omitempty"`

	// 运行时语言。
	Runtime *string `json:"runtime,omitempty"`

	// 依赖包唯一标志。
	Etag *string `json:"etag,omitempty"`

	// 依赖包大小。
	Size *int64 `json:"size,omitempty"`

	// 依赖包名。
	Name *string `json:"name,omitempty"`

	// 依赖包描述。
	Description *string `json:"description,omitempty"`

	// 依赖包文件名。
	FileName *string `json:"file_name,omitempty"`

	// 依赖包版本号
	Version *int64 `json:"version,omitempty"`

	// 依赖包更新时间
	LastModified   *int64 `json:"last_modified,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowDependencyVersionResponse) String added in v0.1.12

type ShowEventRequest

type ShowEventRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 测试事件ID
	EventId string `json:"event_id"`
}

Request Object

func (ShowEventRequest) String

func (o ShowEventRequest) String() string

type ShowEventResponse

type ShowEventResponse struct {

	// 测试事件ID。
	Id *string `json:"id,omitempty"`

	// 测试事件名称。
	Name *string `json:"name,omitempty"`

	// 测试事件content。
	Content *string `json:"content,omitempty"`

	// 上次修改的时间。
	LastModified   float32 `json:"last_modified,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowEventResponse) String

func (o ShowEventResponse) String() string

type ShowFuncSnapshotStateRequest added in v0.1.43

type ShowFuncSnapshotStateRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (ShowFuncSnapshotStateRequest) String added in v0.1.43

type ShowFuncSnapshotStateResponse added in v0.1.43

type ShowFuncSnapshotStateResponse struct {

	// 快照制作状态
	State *string `json:"state,omitempty"`

	// 快照制作响应码
	Code           *string `json:"code,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowFuncSnapshotStateResponse) String added in v0.1.43

type ShowFunctionAsyncInvokeConfigRequest

type ShowFunctionAsyncInvokeConfigRequest struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (ShowFunctionAsyncInvokeConfigRequest) String

type ShowFunctionAsyncInvokeConfigResponse

type ShowFunctionAsyncInvokeConfigResponse struct {

	// 函数URN。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 消息最大存活时长,取值范围[60,86400]。单位:秒。
	MaxAsyncEventAgeInSeconds *int32 `json:"max_async_event_age_in_seconds,omitempty"`

	// 异步调用失败后的最大重试次数,默认值为3。取值范围[0,8]。
	MaxAsyncRetryAttempts *int32 `json:"max_async_retry_attempts,omitempty"`

	DestinationConfig *FuncAsyncDestinationConfig `json:"destination_config,omitempty"`

	// 异步调用配置的创建时间。
	CreatedTime *string `json:"created_time,omitempty"`

	// 异步调用配置的最后更改时间。
	LastModified *string `json:"last_modified,omitempty"`

	// 开启异步调用状态持久化
	EnableAsyncStatusLog *bool `json:"enable_async_status_log,omitempty"`
	HttpStatusCode       int   `json:"-"`
}

Response Object

func (ShowFunctionAsyncInvokeConfigResponse) String

type ShowFunctionCodeRequest

type ShowFunctionCodeRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (ShowFunctionCodeRequest) String

func (o ShowFunctionCodeRequest) String() string

type ShowFunctionCodeResponse

type ShowFunctionCodeResponse struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 函数名称。
	FuncName *string `json:"func_name,omitempty"`

	// 域名id。
	DomainId *string `json:"domain_id,omitempty"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime *ShowFunctionCodeResponseRuntime `json:"runtime,omitempty"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType *ShowFunctionCodeResponseCodeType `json:"code_type,omitempty"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize *int64 `json:"code_size,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest *string `json:"digest,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	FuncCode *FuncCode `json:"func_code,omitempty"`

	// 依赖id列表
	DependList *[]string `json:"depend_list,omitempty"`

	// 依赖版本id列表
	DependVersionList *[]string `json:"depend_version_list,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数依赖代码包列表。
	Dependencies   *[]Dependency `json:"dependencies,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ShowFunctionCodeResponse) String

func (o ShowFunctionCodeResponse) String() string

type ShowFunctionCodeResponseCodeType

type ShowFunctionCodeResponseCodeType struct {
	// contains filtered or unexported fields
}

func (ShowFunctionCodeResponseCodeType) MarshalJSON

func (c ShowFunctionCodeResponseCodeType) MarshalJSON() ([]byte, error)

func (*ShowFunctionCodeResponseCodeType) UnmarshalJSON

func (c *ShowFunctionCodeResponseCodeType) UnmarshalJSON(b []byte) error

func (ShowFunctionCodeResponseCodeType) Value added in v0.0.90

type ShowFunctionCodeResponseRuntime

type ShowFunctionCodeResponseRuntime struct {
	// contains filtered or unexported fields
}

func (ShowFunctionCodeResponseRuntime) MarshalJSON

func (c ShowFunctionCodeResponseRuntime) MarshalJSON() ([]byte, error)

func (*ShowFunctionCodeResponseRuntime) UnmarshalJSON

func (c *ShowFunctionCodeResponseRuntime) UnmarshalJSON(b []byte) error

func (ShowFunctionCodeResponseRuntime) Value added in v0.0.90

type ShowFunctionConfigRequest

type ShowFunctionConfigRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (ShowFunctionConfigRequest) String

func (o ShowFunctionConfigRequest) String() string

type ShowFunctionConfigResponse

type ShowFunctionConfigResponse struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 函数名称。
	FuncName *string `json:"func_name,omitempty"`

	// 域名id。
	DomainId *string `json:"domain_id,omitempty"`

	// 租户的project id。
	Namespace *string `json:"namespace,omitempty"`

	// 租户的project name。
	ProjectName *string `json:"project_name,omitempty"`

	// 函数所属的分组Package,用于用户针对函数的自定义分组。
	Package *string `json:"package,omitempty"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime *ShowFunctionConfigResponseRuntime `json:"runtime,omitempty"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout *int32 `json:"timeout,omitempty"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler *string `json:"handler,omitempty"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize *int32 `json:"memory_size,omitempty"`

	// 函数消耗的显存,只支持自定义运行时与自定义镜像函数配置GPU。 单位MB。 取值范围为:1024、2048、3072、4096、5120、6144、7168、8192、9216、10240、11264、12288、13312、14336、15360、16384。 最小值为1024,最大值为16384。
	GpuMemory *int32 `json:"gpu_memory,omitempty"`

	// 函数占用的cpu资源。 单位为millicore(1 core=1000 millicores)。 取值与MemorySize成比例,默认是128M内存占0.1个核(100 millicores)。 函数占用的CPU为基础CPU:200 millicores,再加上内存按比例占用的CPU,计算方法:内存/128 *100 + 200。
	Cpu *int32 `json:"cpu,omitempty"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType *ShowFunctionConfigResponseCodeType `json:"code_type,omitempty"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize *int64 `json:"code_size,omitempty"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 用户自定义的name/value信息,用于需要加密的配置。
	EncryptedUserData *string `json:"encrypted_user_data,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest *string `json:"digest,omitempty"`

	// 函数版本号,由系统自动生成,规则:vYYYYMMDD-HHMMSS(v+年月日-时分秒)。
	Version *string `json:"version,omitempty"`

	// 函数版本的内部标识。
	ImageName *string `json:"image_name,omitempty"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数描述。
	Description *string `json:"description,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	// 临时存储大小。
	EphemeralStorage *int32 `json:"ephemeral_storage,omitempty"`

	FuncVpc *FuncVpc `json:"func_vpc,omitempty"`

	MountConfig *MountConfig `json:"mount_config,omitempty"`

	// 依赖id列表
	DependList *[]string `json:"depend_list,omitempty"`

	// 依赖版本id列表
	DependVersionList *[]string `json:"depend_version_list,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数依赖代码包列表。
	Dependencies *[]Dependency `json:"dependencies,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否允许进行长时间超时设置。
	LongTime *bool `json:"long_time,omitempty"`

	// 自定义日志查询组id
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 自定义日志查询流id
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// v2表示为公测版本,v1为原来版本。
	Type *ShowFunctionConfigResponseType `json:"type,omitempty"`

	// 是否允许动态内存配置
	EnableDynamicMemory *bool `json:"enable_dynamic_memory,omitempty"`

	// 是否支持有状态,如果需要支持,需要固定传参为true,v2版本支持
	IsStatefulFunction *bool `json:"is_stateful_function,omitempty"`

	// 是否允许在请求头中添加鉴权信息
	EnableAuthInHeader *bool `json:"enable_auth_in_header,omitempty"`

	CustomImage    *CustomImage `json:"custom_image,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ShowFunctionConfigResponse) String

type ShowFunctionConfigResponseCodeType

type ShowFunctionConfigResponseCodeType struct {
	// contains filtered or unexported fields
}

func (ShowFunctionConfigResponseCodeType) MarshalJSON

func (c ShowFunctionConfigResponseCodeType) MarshalJSON() ([]byte, error)

func (*ShowFunctionConfigResponseCodeType) UnmarshalJSON

func (c *ShowFunctionConfigResponseCodeType) UnmarshalJSON(b []byte) error

func (ShowFunctionConfigResponseCodeType) Value added in v0.0.90

type ShowFunctionConfigResponseRuntime

type ShowFunctionConfigResponseRuntime struct {
	// contains filtered or unexported fields
}

func (ShowFunctionConfigResponseRuntime) MarshalJSON

func (c ShowFunctionConfigResponseRuntime) MarshalJSON() ([]byte, error)

func (*ShowFunctionConfigResponseRuntime) UnmarshalJSON

func (c *ShowFunctionConfigResponseRuntime) UnmarshalJSON(b []byte) error

func (ShowFunctionConfigResponseRuntime) Value added in v0.0.90

type ShowFunctionConfigResponseType added in v0.0.53

type ShowFunctionConfigResponseType struct {
	// contains filtered or unexported fields
}

func (ShowFunctionConfigResponseType) MarshalJSON added in v0.0.53

func (c ShowFunctionConfigResponseType) MarshalJSON() ([]byte, error)

func (*ShowFunctionConfigResponseType) UnmarshalJSON added in v0.0.53

func (c *ShowFunctionConfigResponseType) UnmarshalJSON(b []byte) error

func (ShowFunctionConfigResponseType) Value added in v0.0.90

type ShowFunctionConfigResponseTypeEnum added in v0.0.53

type ShowFunctionConfigResponseTypeEnum struct {
	V1 ShowFunctionConfigResponseType
	V2 ShowFunctionConfigResponseType
}

func GetShowFunctionConfigResponseTypeEnum added in v0.0.53

func GetShowFunctionConfigResponseTypeEnum() ShowFunctionConfigResponseTypeEnum

type ShowFunctionTriggerRequest

type ShowFunctionTriggerRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 触发器类型代码。
	TriggerTypeCode ShowFunctionTriggerRequestTriggerTypeCode `json:"trigger_type_code"`

	// 触发器编码。
	TriggerId string `json:"trigger_id"`
}

Request Object

func (ShowFunctionTriggerRequest) String

type ShowFunctionTriggerRequestTriggerTypeCode

type ShowFunctionTriggerRequestTriggerTypeCode struct {
	// contains filtered or unexported fields
}

func (ShowFunctionTriggerRequestTriggerTypeCode) MarshalJSON

func (*ShowFunctionTriggerRequestTriggerTypeCode) UnmarshalJSON

func (ShowFunctionTriggerRequestTriggerTypeCode) Value added in v0.0.90

type ShowFunctionTriggerResponse

type ShowFunctionTriggerResponse struct {

	// 触发器ID。
	TriggerId *string `json:"trigger_id,omitempty"`

	// 触发器类型。  - TIMER: \"定时触发器。\" - APIG: \"APIG触发器。\" - CTS: \"云审计服务触发器。\" - DDS: \"文档数据库服务触发器。\" - DMS: \"分布式服务触发器。\" - DIS: \"数据接入服务触发器。\" - LTS: \"云日志服务触发器。\" - OBS: \"对象存储触发器。\" - SMN: \"消息通知服务触发器。\" - KAFKA: \"专享版消息通知服务触发器。\"
	TriggerTypeCode *ShowFunctionTriggerResponseTriggerTypeCode `json:"trigger_type_code,omitempty"`

	// \"触发器状态\"  - ACTIVE: 启用状态。 - DISABLED: 禁用状态。
	TriggerStatus *ShowFunctionTriggerResponseTriggerStatus `json:"trigger_status,omitempty"`

	// 触发器源事件。
	EventData *interface{} `json:"event_data,omitempty"`

	// 最后更新时间。
	LastUpdatedTime *sdktime.SdkTime `json:"last_updated_time,omitempty"`

	// 触发器创建时间。
	CreatedTime    *sdktime.SdkTime `json:"created_time,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ShowFunctionTriggerResponse) String

type ShowFunctionTriggerResponseTriggerStatus

type ShowFunctionTriggerResponseTriggerStatus struct {
	// contains filtered or unexported fields
}

func (ShowFunctionTriggerResponseTriggerStatus) MarshalJSON

func (*ShowFunctionTriggerResponseTriggerStatus) UnmarshalJSON

func (c *ShowFunctionTriggerResponseTriggerStatus) UnmarshalJSON(b []byte) error

func (ShowFunctionTriggerResponseTriggerStatus) Value added in v0.0.90

type ShowFunctionTriggerResponseTriggerStatusEnum

type ShowFunctionTriggerResponseTriggerStatusEnum struct {
	ACTIVE   ShowFunctionTriggerResponseTriggerStatus
	DISABLED ShowFunctionTriggerResponseTriggerStatus
}

func GetShowFunctionTriggerResponseTriggerStatusEnum

func GetShowFunctionTriggerResponseTriggerStatusEnum() ShowFunctionTriggerResponseTriggerStatusEnum

type ShowFunctionTriggerResponseTriggerTypeCode

type ShowFunctionTriggerResponseTriggerTypeCode struct {
	// contains filtered or unexported fields
}

func (ShowFunctionTriggerResponseTriggerTypeCode) MarshalJSON

func (*ShowFunctionTriggerResponseTriggerTypeCode) UnmarshalJSON

func (ShowFunctionTriggerResponseTriggerTypeCode) Value added in v0.0.90

type ShowLtsLogDetailsRequest added in v0.0.53

type ShowLtsLogDetailsRequest struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (ShowLtsLogDetailsRequest) String added in v0.0.53

func (o ShowLtsLogDetailsRequest) String() string

type ShowLtsLogDetailsResponse added in v0.0.53

type ShowLtsLogDetailsResponse struct {

	// 日志组名称
	GroupName *string `json:"group_name,omitempty"`

	// 日志组id
	GroupId *string `json:"group_id,omitempty"`

	// 日志流id
	StreamId *string `json:"stream_id,omitempty"`

	// 日志流名称
	StreamName     *string `json:"stream_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowLtsLogDetailsResponse) String added in v0.0.53

func (o ShowLtsLogDetailsResponse) String() string

type ShowProjectTagsListRequest added in v0.1.43

type ShowProjectTagsListRequest struct {

	// 资源类型
	ResourceType string `json:"resource_type"`
}

Request Object

func (ShowProjectTagsListRequest) String added in v0.1.43

type ShowProjectTagsListResponse added in v0.1.43

type ShowProjectTagsListResponse struct {

	// 标签列表
	Tags *[]TagItem `json:"tags,omitempty"`

	// 系统标签列表
	SysTags        *[]TagItem `json:"sys_tags,omitempty"`
	HttpStatusCode int        `json:"-"`
}

Response Object

func (ShowProjectTagsListResponse) String added in v0.1.43

type ShowResInstanceInfoRequest added in v0.1.43

type ShowResInstanceInfoRequest struct {

	// 资源类型
	ResourceType string `json:"resource_type"`

	// 禁用/启用
	Action string `json:"action"`

	Body *ListEnterpriseResourceRequestBody `json:"body,omitempty"`
}

Request Object

func (ShowResInstanceInfoRequest) String added in v0.1.43

type ShowResInstanceInfoResponse added in v0.1.43

type ShowResInstanceInfoResponse struct {

	// 企业项目列表
	Resources *[]ListEnterpriseResourceResult `json:"resources,omitempty"`

	// 资源数
	TotalCount     *int64 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ShowResInstanceInfoResponse) String added in v0.1.43

type ShowTenantMetricRequest added in v0.0.81

type ShowTenantMetricRequest struct {

	// 时间段,单位为分钟
	Period *string `json:"period,omitempty"`

	// 开始时间,精确到ms的时间戳
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间,精确到ms的时间戳
	EndTime *string `json:"end_time,omitempty"`

	// 指标类型,为空或不在取值范围内时,查询所有指标。取值范围:totalCount 调用次数;errorCount 错误次数; averageDuration 运行时间;running 运行中个数;rejectCount  拒绝个数。
	MetricType *string `json:"metric_type,omitempty"`
}

Request Object

func (ShowTenantMetricRequest) String added in v0.0.81

func (o ShowTenantMetricRequest) String() string

type ShowTenantMetricResponse added in v0.0.81

type ShowTenantMetricResponse struct {

	// 执行次数
	Count *[]SlaReportsValue `json:"count,omitempty"`

	// 平均时延,单位毫秒
	Duration *[]SlaReportsValue `json:"duration,omitempty"`

	// 错误次数
	FailCount *[]SlaReportsValue `json:"fail_count,omitempty"`

	// 运行中数量
	RunningCount   *[]SlaReportsValue `json:"running_count,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ShowTenantMetricResponse) String added in v0.0.81

func (o ShowTenantMetricResponse) String() string

type ShowTracingRequest added in v0.0.68

type ShowTracingRequest struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (ShowTracingRequest) String added in v0.0.68

func (o ShowTracingRequest) String() string

type ShowTracingResponse added in v0.0.68

type ShowTracingResponse struct {

	// apm的ak
	TracingAk *string `json:"tracing_ak,omitempty"`

	// apm的sk
	TracingSk      *string `json:"tracing_sk,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowTracingResponse) String added in v0.0.68

func (o ShowTracingResponse) String() string

type ShowVersionAliasRequest

type ShowVersionAliasRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 要查询的别名名称。
	AliasName string `json:"alias_name"`
}

Request Object

func (ShowVersionAliasRequest) String

func (o ShowVersionAliasRequest) String() string

type ShowVersionAliasResponse

type ShowVersionAliasResponse struct {

	// 要获取的别名名称。
	Name *string `json:"name,omitempty"`

	// 别名对应的版本名称。
	Version *string `json:"version,omitempty"`

	// 别名描述信息。
	Description *string `json:"description,omitempty"`

	// 别名最后修改时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	// 版本别名唯一标识。
	AliasUrn *string `json:"alias_urn,omitempty"`

	// 灰度版本信息
	AdditionalVersionWeights map[string]int32 `json:"additional_version_weights,omitempty"`
	HttpStatusCode           int              `json:"-"`
}

Response Object

func (ShowVersionAliasResponse) String

func (o ShowVersionAliasResponse) String() string

type ShowWorkFlowMetricRequest added in v0.0.81

type ShowWorkFlowMetricRequest struct {

	// 函数工作流URN, 格式为: urn:fss:<region_id>:<project_id>:workflow:\\<package\\>:<workflow_name>:\\<version\\> 注意: package当前只支持default version当前只支持latest
	WorkflowUrn string `json:"workflow_urn"`

	// 时间段,单位为分钟
	Period *string `json:"period,omitempty"`

	// 开始时间,精确到ms的时间戳
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间,精确到ms的时间戳
	EndTime *string `json:"end_time,omitempty"`
}

Request Object

func (ShowWorkFlowMetricRequest) String added in v0.0.81

func (o ShowWorkFlowMetricRequest) String() string

type ShowWorkFlowMetricResponse added in v0.0.81

type ShowWorkFlowMetricResponse struct {

	// 执行次数
	Count *[]SlaReportsValue `json:"count,omitempty"`

	// 平均时延,单位毫秒
	Duration *[]SlaReportsValue `json:"duration,omitempty"`

	// 错误次数
	FailCount *[]SlaReportsValue `json:"fail_count,omitempty"`

	// 运行中数量
	RunningCount   *[]SlaReportsValue `json:"running_count,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ShowWorkFlowMetricResponse) String added in v0.0.81

type ShowWorkFlowRequest added in v0.0.81

type ShowWorkFlowRequest struct {

	// 函数工作流ID
	WorkflowId string `json:"workflow_id"`
}

Request Object

func (ShowWorkFlowRequest) String added in v0.0.81

func (o ShowWorkFlowRequest) String() string

type ShowWorkFlowResponse added in v0.0.81

type ShowWorkFlowResponse struct {

	// 唯一标识ID,流程定义ID
	Id *string `json:"id,omitempty"`

	// 函数工作流URN, 格式为: urn:fss:<region_id>:<project_id>:workflow:\\<package\\>:<workflow_name>:\\<version\\> 注意: package当前只支持default version当前只支持latest
	WorkflowUrn *string `json:"workflow_urn,omitempty"`

	// 流程创建时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 流程修改时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	UpdatedTime *string `json:"updated_time,omitempty"`

	// 流程创建者
	CreatedBy *string `json:"created_by,omitempty"`

	// 快速函数流日志组ID,仅快速模式函数流且日志级别不为NONE时
	LtsGroupId *string `json:"lts_group_id,omitempty"`

	// 快速函数流日志流ID,仅快速模式函数流且日志级别不为NONE时返回。
	LtsStreamId *string `json:"lts_stream_id,omitempty"`

	Definition     *WorkflowCreateBody `json:"definition,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ShowWorkFlowResponse) String added in v0.0.81

func (o ShowWorkFlowResponse) String() string

type ShowWorkflowExecutionForPageRequest added in v0.1.10

type ShowWorkflowExecutionForPageRequest struct {

	// 函数工作流ID
	WorkflowId string `json:"workflow_id"`

	// 偏移量,表示从此偏移量开始查询,offset大于等于0
	Offset int32 `json:"offset"`

	// 分页查询,每页查询数据条数,取值范围:1,2,3...100
	Limit int32 `json:"limit"`

	// 查询开始时间,UTC时间,格式:YYYY-MM-DD hh:mm:ss。若起始时间未填写,以终止时间前推3天为起始时间。
	StartTime *string `json:"start_time,omitempty"`

	// 查询结束时间,UTC时间,格式:YYYY-MM-DD hh:mm:ss。若终止时间未填写,以起始时间后退3天未终止时间。若均未填写,默认查询最近3天数据。
	EndTime *string `json:"end_time,omitempty"`
}

Request Object

func (ShowWorkflowExecutionForPageRequest) String added in v0.1.10

type ShowWorkflowExecutionForPageResponse added in v0.1.10

type ShowWorkflowExecutionForPageResponse struct {

	// 返回所有满足条件的对象个数
	Total *int64 `json:"total,omitempty"`

	// 返回对象的大小
	Size *int32 `json:"size,omitempty"`

	// 函数流返回体信息
	Executions     *[]FlowExecutionBriefV2 `json:"executions,omitempty"`
	HttpStatusCode int                     `json:"-"`
}

Response Object

func (ShowWorkflowExecutionForPageResponse) String added in v0.1.10

type ShowWorkflowExecutionRequest added in v0.0.81

type ShowWorkflowExecutionRequest struct {

	// 函数工作流ID
	WorkflowId string `json:"workflow_id"`

	// 函数流执行实例ID
	ExecutionId string `json:"execution_id"`

	// 获取函数流执行详情完整输出值
	XGetWorkflowFullHistoryData *bool `json:"X-Get-Workflow-Full-History-Data,omitempty"`
}

Request Object

func (ShowWorkflowExecutionRequest) String added in v0.0.81

type ShowWorkflowExecutionResponse added in v0.0.81

type ShowWorkflowExecutionResponse struct {

	// 流程定义ID
	WorkflowId *string `json:"workflow_id,omitempty"`

	// 函数工作流URN, 格式为: urn:fss:<region_id>:<project_id>:workflow:\\<package\\>:<workflow_name>:\\<version\\> 注意: package当前只支持default version当前只支持latest
	WorkflowUrn *string `json:"workflow_urn,omitempty"`

	// 流程执行实例ID
	ExecutionId *string `json:"execution_id,omitempty"`

	// 流程实例执行状态
	Status *ShowWorkflowExecutionResponseStatus `json:"status,omitempty"`

	// 函数执行时需要的Header
	Headers *interface{} `json:"headers,omitempty"`

	// 函数执行时的入参
	Input *interface{} `json:"input,omitempty"`

	// 函数执行结果
	Output *interface{} `json:"output,omitempty"`

	// 流程实例创建时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	BeginTime *string `json:"begin_time,omitempty"`

	// 流程实例结束时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	EndTime *string `json:"end_time,omitempty"`

	// 流程实例上次更新时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	LastUpdateTime *string `json:"last_update_time,omitempty"`

	// 流程实例创建者
	CreatedBy *string `json:"created_by,omitempty"`

	// 节点执行信息
	NodeExecutionDetails *[]NodeExecutionDetail `json:"node_execution_details,omitempty"`
	HttpStatusCode       int                    `json:"-"`
}

Response Object

func (ShowWorkflowExecutionResponse) String added in v0.0.81

type ShowWorkflowExecutionResponseStatus added in v0.0.81

type ShowWorkflowExecutionResponseStatus struct {
	// contains filtered or unexported fields
}

func (ShowWorkflowExecutionResponseStatus) MarshalJSON added in v0.0.81

func (c ShowWorkflowExecutionResponseStatus) MarshalJSON() ([]byte, error)

func (*ShowWorkflowExecutionResponseStatus) UnmarshalJSON added in v0.0.81

func (c *ShowWorkflowExecutionResponseStatus) UnmarshalJSON(b []byte) error

func (ShowWorkflowExecutionResponseStatus) Value added in v0.0.90

type SlaReportsValue

type SlaReportsValue struct {

	// 时间戳
	Timestamp *int64 `json:"timestamp,omitempty"`

	// 值
	Value *float64 `json:"value,omitempty"`
}

func (SlaReportsValue) String

func (o SlaReportsValue) String() string

type StartSyncWorkflowExecutionRequest added in v0.0.86

type StartSyncWorkflowExecutionRequest struct {

	// 函数流定义ID
	WorkflowId string `json:"workflow_id"`

	Body *FlowExecuteBody `json:"body,omitempty"`
}

Request Object

func (StartSyncWorkflowExecutionRequest) String added in v0.0.86

type StartSyncWorkflowExecutionResponse added in v0.0.86

type StartSyncWorkflowExecutionResponse struct {

	// 流程实例ID
	ExecutionId *string `json:"execution_id,omitempty"`

	// 流程执行最终状态
	Status *StartSyncWorkflowExecutionResponseStatus `json:"status,omitempty"`

	// 函数流的执行结果,JSON格式,仅在status为success时有值
	Output *interface{} `json:"output,omitempty"`

	// 流程执行错误信息,仅在status为fail时有值
	Errors *[]SyncExecutionNodeErrorDetail `json:"errors,omitempty"`

	// 流程实例创建时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	BeginTime *string `json:"begin_time,omitempty"`

	// 流程实例结束时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	EndTime        *string `json:"end_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (StartSyncWorkflowExecutionResponse) String added in v0.0.86

type StartSyncWorkflowExecutionResponseStatus added in v0.0.86

type StartSyncWorkflowExecutionResponseStatus struct {
	// contains filtered or unexported fields
}

func (StartSyncWorkflowExecutionResponseStatus) MarshalJSON added in v0.0.86

func (*StartSyncWorkflowExecutionResponseStatus) UnmarshalJSON added in v0.0.86

func (c *StartSyncWorkflowExecutionResponseStatus) UnmarshalJSON(b []byte) error

func (StartSyncWorkflowExecutionResponseStatus) Value added in v0.0.90

type StartSyncWorkflowExecutionResponseStatusEnum added in v0.0.86

type StartSyncWorkflowExecutionResponseStatusEnum struct {
	SUCCESS StartSyncWorkflowExecutionResponseStatus
	FAIL    StartSyncWorkflowExecutionResponseStatus
	TIMEOUT StartSyncWorkflowExecutionResponseStatus
}

func GetStartSyncWorkflowExecutionResponseStatusEnum added in v0.0.86

func GetStartSyncWorkflowExecutionResponseStatusEnum() StartSyncWorkflowExecutionResponseStatusEnum

type StartWorkflowExecutionRequest added in v0.0.81

type StartWorkflowExecutionRequest struct {

	// 函数流定义ID
	WorkflowId string `json:"workflow_id"`

	// workflowRun task create time
	XCreateTime *string `json:"X-Create-Time,omitempty"`

	// workflowRun id
	XWorkflowRunID *string `json:"X-WorkflowRun-ID,omitempty"`

	// Combines the output of the previous node with the input of the next node into an input.
	XWorkflowRunMergeFnParameters *string `json:"X-WorkflowRun-MergeFnParameters,omitempty"`

	Body *FlowExecuteBody `json:"body,omitempty"`
}

Request Object

func (StartWorkflowExecutionRequest) String added in v0.0.81

type StartWorkflowExecutionResponse added in v0.0.81

type StartWorkflowExecutionResponse struct {

	// 错误码
	ExecutionId    *string `json:"execution_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (StartWorkflowExecutionResponse) String added in v0.0.81

type StateDataFilter added in v0.0.81

type StateDataFilter struct {

	// 输入过滤表达式(JsonPath)
	Input *string `json:"input,omitempty"`

	// 输出过滤表达式(JsonPath)
	Output *string `json:"output,omitempty"`
}

输入输出过滤配置

func (StateDataFilter) String added in v0.0.81

func (o StateDataFilter) String() string

type StopWorkFlowRequest added in v0.0.81

type StopWorkFlowRequest struct {

	// 函数工作流ID
	WorkflowId string `json:"workflow_id"`

	// 函数流执行实例ID
	ExecutionId string `json:"execution_id"`
}

Request Object

func (StopWorkFlowRequest) String added in v0.0.81

func (o StopWorkFlowRequest) String() string

type StopWorkFlowResponse added in v0.0.81

type StopWorkFlowResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (StopWorkFlowResponse) String added in v0.0.81

func (o StopWorkFlowResponse) String() string

type StrategyConfig

type StrategyConfig struct {

	// 单函数最大实例数,v1取值0和-1,v2取值-1到1000 -1代表该函数实例数无限制 0代表该函数被禁用
	Concurrency int32 `json:"concurrency"`

	// 单实例最大并发数,v2版本才支持,取值-1到1000
	ConcurrentNum int32 `json:"concurrent_num"`
}

函数策略配置。

func (StrategyConfig) String

func (o StrategyConfig) String() string

type SyncExecutionNodeErrorDetail added in v0.0.86

type SyncExecutionNodeErrorDetail struct {

	// 流程节点ID
	NodeId *string `json:"node_id,omitempty"`

	// 错误详细信息
	ErrorMessage *string `json:"error_message,omitempty"`

	// 流程实例创建时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	BeginTime *string `json:"begin_time,omitempty"`

	// 流程实例结束时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	EndTime *string `json:"end_time,omitempty"`
}

函数流节点错误信息

func (SyncExecutionNodeErrorDetail) String added in v0.0.86

type TacticsConfig added in v0.0.104

type TacticsConfig struct {

	// 定时配置列表
	CronConfigs *[]CronConfig `json:"cron_configs,omitempty"`

	// 流量配置列表
	MetricConfigs *[]MetricConfig `json:"metric_configs,omitempty"`
}

func (TacticsConfig) String added in v0.0.104

func (o TacticsConfig) String() string

type TagItem added in v0.1.43

type TagItem struct {

	// 键
	Key *string `json:"key,omitempty"`

	// 值
	Values *[]string `json:"values,omitempty"`
}

func (TagItem) String added in v0.1.43

func (o TagItem) String() string

type Trigger added in v0.0.81

type Trigger struct {

	// 触发器名称
	TriggerName string `json:"trigger_name"`

	// 触发器类型 FLOWTIMER:定时触发器 SMN:SMN触发器 APIG:APIG触发器(共享版) APIG_DE:APIG触发器(专享版) OBS:OBS触发器
	TriggerType TriggerTriggerType `json:"trigger_type"`

	// 是否启用触发器
	Enabled *bool `json:"enabled,omitempty"`

	TriggerConfig *ObsTriggerConfig `json:"trigger_config,omitempty"`
}

触发器结构体

func (Trigger) String added in v0.0.81

func (o Trigger) String() string

type TriggerEventData added in v0.1.28

type TriggerEventData struct {

	// 串行处理数据
	IsSerial *bool `json:"is_serial,omitempty"`

	// 最大字节数
	MaxFetchBytes *int32 `json:"max_fetch_bytes,omitempty"`

	// 拉取周期
	PollingInterval *int32 `json:"polling_interval,omitempty"`

	// 拉取周期单位
	PollingUnit *TriggerEventDataPollingUnit `json:"polling_unit,omitempty"`
}

func (TriggerEventData) String added in v0.1.28

func (o TriggerEventData) String() string

type TriggerEventDataPollingUnit added in v0.1.28

type TriggerEventDataPollingUnit struct {
	// contains filtered or unexported fields
}

func (TriggerEventDataPollingUnit) MarshalJSON added in v0.1.28

func (c TriggerEventDataPollingUnit) MarshalJSON() ([]byte, error)

func (*TriggerEventDataPollingUnit) UnmarshalJSON added in v0.1.28

func (c *TriggerEventDataPollingUnit) UnmarshalJSON(b []byte) error

func (TriggerEventDataPollingUnit) Value added in v0.1.28

type TriggerEventDataPollingUnitEnum added in v0.1.28

type TriggerEventDataPollingUnitEnum struct {
	MS TriggerEventDataPollingUnit
	S  TriggerEventDataPollingUnit
}

func GetTriggerEventDataPollingUnitEnum added in v0.1.28

func GetTriggerEventDataPollingUnitEnum() TriggerEventDataPollingUnitEnum

type TriggerTriggerType added in v0.0.81

type TriggerTriggerType struct {
	// contains filtered or unexported fields
}

func (TriggerTriggerType) MarshalJSON added in v0.0.81

func (c TriggerTriggerType) MarshalJSON() ([]byte, error)

func (*TriggerTriggerType) UnmarshalJSON added in v0.0.81

func (c *TriggerTriggerType) UnmarshalJSON(b []byte) error

func (TriggerTriggerType) Value added in v0.0.90

func (c TriggerTriggerType) Value() string

type TriggerTriggerTypeEnum added in v0.0.81

type TriggerTriggerTypeEnum struct {
	FLOWTIMER TriggerTriggerType
	SMN       TriggerTriggerType
	APIG      TriggerTriggerType
	APIG_DE   TriggerTriggerType
	OBS       TriggerTriggerType
}

func GetTriggerTriggerTypeEnum added in v0.0.81

func GetTriggerTriggerTypeEnum() TriggerTriggerTypeEnum

type UpdateDependcyRequest added in v0.0.104

type UpdateDependcyRequest struct {

	// 依赖包的ID。
	DependId string `json:"depend_id"`

	Body *UpdateDependencyRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateDependcyRequest) String added in v0.0.104

func (o UpdateDependcyRequest) String() string

type UpdateDependcyResponse added in v0.0.104

type UpdateDependcyResponse struct {

	// 依赖包ID。
	Id *string `json:"id,omitempty"`

	// 依赖包拥有者。
	Owner *string `json:"owner,omitempty"`

	// 依赖包在obs的存储地址。
	Link *string `json:"link,omitempty"`

	// 运行时语言。
	Runtime *string `json:"runtime,omitempty"`

	// 依赖包唯一标志。
	Etag *string `json:"etag,omitempty"`

	// 依赖包大小。
	Size *int64 `json:"size,omitempty"`

	// 依赖包名。
	Name *string `json:"name,omitempty"`

	// 依赖包描述。
	Description *string `json:"description,omitempty"`

	// 依赖包文件名。
	FileName       *string `json:"file_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateDependcyResponse) String added in v0.0.104

func (o UpdateDependcyResponse) String() string

type UpdateDependencyRequestBody

type UpdateDependencyRequestBody struct {

	// depend_type为zip类型时必填,为文件流格式,需要base64编码zip文件。
	DependFile *string `json:"depend_file,omitempty"`

	// depend_type为obs类型时,依赖包在obs的存储地址。
	DependLink *string `json:"depend_link,omitempty"`

	// 导入类型,目前支持obs和zip。
	DependType string `json:"depend_type"`

	// 运行时语言, Java11、Nodejs14:、Python3:在type为v2时支持。
	Runtime UpdateDependencyRequestBodyRuntime `json:"runtime"`

	// 依赖包名称。必须以大、小写字母开头,以字母或数字结尾,只能由字母、数字、下划线、点和中划线组成,长度不超过96个字符。
	Name string `json:"name"`

	// 依赖包描述,不超过512个字符。
	Description *string `json:"description,omitempty"`
}

func (UpdateDependencyRequestBody) String

type UpdateDependencyRequestBodyRuntime

type UpdateDependencyRequestBodyRuntime struct {
	// contains filtered or unexported fields
}

func (UpdateDependencyRequestBodyRuntime) MarshalJSON

func (c UpdateDependencyRequestBodyRuntime) MarshalJSON() ([]byte, error)

func (*UpdateDependencyRequestBodyRuntime) UnmarshalJSON

func (c *UpdateDependencyRequestBodyRuntime) UnmarshalJSON(b []byte) error

func (UpdateDependencyRequestBodyRuntime) Value added in v0.0.90

type UpdateEventRequest

type UpdateEventRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 测试事件ID
	EventId string `json:"event_id"`

	Body *UpdateEventRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateEventRequest) String

func (o UpdateEventRequest) String() string

type UpdateEventRequestBody

type UpdateEventRequestBody struct {

	// 测试事件content,为json字符串
	Content string `json:"content"`
}

func (UpdateEventRequestBody) String

func (o UpdateEventRequestBody) String() string

type UpdateEventResponse

type UpdateEventResponse struct {

	// 测试事件ID。
	Id *string `json:"id,omitempty"`

	// 测试事件名称。
	Name           *string `json:"name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateEventResponse) String

func (o UpdateEventResponse) String() string

type UpdateFuncSnapshotRequest added in v0.1.43

type UpdateFuncSnapshotRequest struct {

	// 禁用/启用
	Action string `json:"action"`

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`
}

Request Object

func (UpdateFuncSnapshotRequest) String added in v0.1.43

func (o UpdateFuncSnapshotRequest) String() string

type UpdateFuncSnapshotResponse added in v0.1.43

type UpdateFuncSnapshotResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateFuncSnapshotResponse) String added in v0.1.43

type UpdateFunctionAsyncInvokeConfigRequest

type UpdateFunctionAsyncInvokeConfigRequest struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FunctionUrn string `json:"function_urn"`

	Body *UpdateFunctionAsyncInvokeConfigRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateFunctionAsyncInvokeConfigRequest) String

type UpdateFunctionAsyncInvokeConfigRequestBody

type UpdateFunctionAsyncInvokeConfigRequestBody struct {

	// 消息最大存活时长,取值范围[1,86400],单位:秒,默认值为3600。
	MaxAsyncEventAgeInSeconds *int32 `json:"max_async_event_age_in_seconds,omitempty"`

	// 异步调用失败后的最大重试次数,默认值为1。取值范围[0,3]。
	MaxAsyncRetryAttempts *int32 `json:"max_async_retry_attempts,omitempty"`

	DestinationConfig *FuncAsyncDestinationConfig `json:"destination_config,omitempty"`

	// 开启异步调用状态持久化
	EnableAsyncStatusLog *bool `json:"enable_async_status_log,omitempty"`
}

函数异步配置请求体。

func (UpdateFunctionAsyncInvokeConfigRequestBody) String

type UpdateFunctionAsyncInvokeConfigResponse

type UpdateFunctionAsyncInvokeConfigResponse struct {

	// 函数URN。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 消息最大存活时长,取值范围[60,86400]。单位:秒。
	MaxAsyncEventAgeInSeconds *int32 `json:"max_async_event_age_in_seconds,omitempty"`

	// 异步调用失败后的最大重试次数,默认值为3。取值范围[0,8]。
	MaxAsyncRetryAttempts *int32 `json:"max_async_retry_attempts,omitempty"`

	DestinationConfig *FuncAsyncDestinationConfig `json:"destination_config,omitempty"`

	// 异步调用配置的创建时间。
	CreatedTime *string `json:"created_time,omitempty"`

	// 异步调用配置的最后更改时间。
	LastModified *string `json:"last_modified,omitempty"`

	// 开启异步调用状态持久化
	EnableAsyncStatusLog *bool `json:"enable_async_status_log,omitempty"`
	HttpStatusCode       int   `json:"-"`
}

Response Object

func (UpdateFunctionAsyncInvokeConfigResponse) String

type UpdateFunctionCodeRequest

type UpdateFunctionCodeRequest struct {

	// 函数的URN,详细解释见表1 FunctionGraph函数字段说明表的描述。
	FunctionUrn string `json:"function_urn"`

	Body *UpdateFunctionCodeRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateFunctionCodeRequest) String

func (o UpdateFunctionCodeRequest) String() string

type UpdateFunctionCodeRequestBody

type UpdateFunctionCodeRequestBody struct {

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType UpdateFunctionCodeRequestBodyCodeType `json:"code_type"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	FuncCode *FuncCode `json:"func_code"`

	// 依赖id列表
	DependList *[]string `json:"depend_list,omitempty"`

	// 依赖版本id列表
	DependVersionList *[]string `json:"depend_version_list,omitempty"`
}

func (UpdateFunctionCodeRequestBody) String

type UpdateFunctionCodeRequestBodyCodeType

type UpdateFunctionCodeRequestBodyCodeType struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionCodeRequestBodyCodeType) MarshalJSON

func (c UpdateFunctionCodeRequestBodyCodeType) MarshalJSON() ([]byte, error)

func (*UpdateFunctionCodeRequestBodyCodeType) UnmarshalJSON

func (c *UpdateFunctionCodeRequestBodyCodeType) UnmarshalJSON(b []byte) error

func (UpdateFunctionCodeRequestBodyCodeType) Value added in v0.0.90

type UpdateFunctionCodeResponse

type UpdateFunctionCodeResponse struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 函数名称。
	FuncName *string `json:"func_name,omitempty"`

	// 域名id。
	DomainId *string `json:"domain_id,omitempty"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime *UpdateFunctionCodeResponseRuntime `json:"runtime,omitempty"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType *UpdateFunctionCodeResponseCodeType `json:"code_type,omitempty"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize *int64 `json:"code_size,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest *string `json:"digest,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	FuncCode *FuncCode `json:"func_code,omitempty"`

	// 依赖id列表
	DependList *[]string `json:"depend_list,omitempty"`

	// 依赖版本id列表
	DependVersionList *[]string `json:"depend_version_list,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数依赖代码包列表。
	Dependencies   *[]Dependency `json:"dependencies,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (UpdateFunctionCodeResponse) String

type UpdateFunctionCodeResponseCodeType

type UpdateFunctionCodeResponseCodeType struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionCodeResponseCodeType) MarshalJSON

func (c UpdateFunctionCodeResponseCodeType) MarshalJSON() ([]byte, error)

func (*UpdateFunctionCodeResponseCodeType) UnmarshalJSON

func (c *UpdateFunctionCodeResponseCodeType) UnmarshalJSON(b []byte) error

func (UpdateFunctionCodeResponseCodeType) Value added in v0.0.90

type UpdateFunctionCodeResponseRuntime

type UpdateFunctionCodeResponseRuntime struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionCodeResponseRuntime) MarshalJSON

func (c UpdateFunctionCodeResponseRuntime) MarshalJSON() ([]byte, error)

func (*UpdateFunctionCodeResponseRuntime) UnmarshalJSON

func (c *UpdateFunctionCodeResponseRuntime) UnmarshalJSON(b []byte) error

func (UpdateFunctionCodeResponseRuntime) Value added in v0.0.90

type UpdateFunctionConfigRequest

type UpdateFunctionConfigRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型。
	FunctionUrn string `json:"function_urn"`

	Body *UpdateFunctionConfigRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateFunctionConfigRequest) String

type UpdateFunctionConfigRequestBody

type UpdateFunctionConfigRequestBody struct {

	// 函数名称。
	FuncName string `json:"func_name"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime UpdateFunctionConfigRequestBodyRuntime `json:"runtime"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout int32 `json:"timeout"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler string `json:"handler"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize int32 `json:"memory_size"`

	// 函数消耗的显存,只支持自定义运行时与自定义镜像函数配置GPU。 单位MB。 取值范围为:1024、2048、3072、4096、5120、6144、7168、8192、9216、10240、11264、12288、13312、14336、15360、16384。 最小值为1024,最大值为16384。
	GpuMemory *int32 `json:"gpu_memory,omitempty"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 用户自定义的name/value信息,用于需要加密的配置。
	EncryptedUserData *string `json:"encrypted_user_data,omitempty"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数描述。
	Description *string `json:"description,omitempty"`

	FuncVpc *FuncVpc `json:"func_vpc,omitempty"`

	MountConfig *MountConfig `json:"mount_config,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	CustomImage *CustomImage `json:"custom_image,omitempty"`

	// 函数扩展配置。
	ExtendConfig *string `json:"extend_config,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 临时存储大小, 默认512M, 支持配置10G。
	EphemeralStorage *int32 `json:"ephemeral_storage,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	LogConfig *FuncLogConfig `json:"log_config,omitempty"`

	NetworkController *NetworkControlConfig `json:"network_controller,omitempty"`

	// 是否支持有状态,如果需要支持,需要固定传参为true,v2版本支持
	IsStatefulFunction *bool `json:"is_stateful_function,omitempty"`

	// 是否启动动态内存配置
	EnableDynamicMemory *bool `json:"enable_dynamic_memory,omitempty"`

	// 是否允许在请求头中添加鉴权信息
	EnableAuthInHeader *bool `json:"enable_auth_in_header,omitempty"`

	// 内网域名配置。
	DomainNames *string `json:"domain_names,omitempty"`

	// 函数快照式冷启动Restore Hook入口,仅支持Java,规则:xx.xx,必须包含“. ”。如:com.huawei.demo.Test.restoreHook
	RestoreHookHandler *string `json:"restore_hook_handler,omitempty"`

	// 快照冷启动Restore Hook的超时时间,超时函数将被强行停止,范围1~300秒。
	RestoreHookTimeout *int32 `json:"restore_hook_timeout,omitempty"`
}

func (UpdateFunctionConfigRequestBody) String

type UpdateFunctionConfigRequestBodyRuntime

type UpdateFunctionConfigRequestBodyRuntime struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionConfigRequestBodyRuntime) MarshalJSON

func (c UpdateFunctionConfigRequestBodyRuntime) MarshalJSON() ([]byte, error)

func (*UpdateFunctionConfigRequestBodyRuntime) UnmarshalJSON

func (c *UpdateFunctionConfigRequestBodyRuntime) UnmarshalJSON(b []byte) error

func (UpdateFunctionConfigRequestBodyRuntime) Value added in v0.0.90

type UpdateFunctionConfigResponse

type UpdateFunctionConfigResponse struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 函数名称。
	FuncName *string `json:"func_name,omitempty"`

	// 域名id。
	DomainId *string `json:"domain_id,omitempty"`

	// 租户的project id。
	Namespace *string `json:"namespace,omitempty"`

	// 租户的project name。
	ProjectName *string `json:"project_name,omitempty"`

	// 函数所属的分组Package,用于用户针对函数的自定义分组。
	Package *string `json:"package,omitempty"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime *UpdateFunctionConfigResponseRuntime `json:"runtime,omitempty"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout *int32 `json:"timeout,omitempty"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler *string `json:"handler,omitempty"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize *int32 `json:"memory_size,omitempty"`

	// 函数消耗的显存,只支持自定义运行时与自定义镜像函数配置GPU。 单位MB。 取值范围为:1024、2048、3072、4096、5120、6144、7168、8192、9216、10240、11264、12288、13312、14336、15360、16384。 最小值为1024,最大值为16384。
	GpuMemory *int32 `json:"gpu_memory,omitempty"`

	// 函数占用的cpu资源。 单位为millicore(1 core=1000 millicores)。 取值与MemorySize成比例,默认是128M内存占0.1个核(100 millicores)。 函数占用的CPU为基础CPU:200 millicores,再加上内存按比例占用的CPU,计算方法:内存/128 *100 + 200。
	Cpu *int32 `json:"cpu,omitempty"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType *UpdateFunctionConfigResponseCodeType `json:"code_type,omitempty"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize *int64 `json:"code_size,omitempty"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 用户自定义的name/value信息,用于需要加密的配置。
	EncryptedUserData *string `json:"encrypted_user_data,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest *string `json:"digest,omitempty"`

	// 函数版本号,由系统自动生成,规则:vYYYYMMDD-HHMMSS(v+年月日-时分秒)。
	Version *string `json:"version,omitempty"`

	// 函数版本的内部标识。
	ImageName *string `json:"image_name,omitempty"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数描述。
	Description *string `json:"description,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	// 临时存储大小。
	EphemeralStorage *int32 `json:"ephemeral_storage,omitempty"`

	FuncVpc *FuncVpc `json:"func_vpc,omitempty"`

	MountConfig *MountConfig `json:"mount_config,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数依赖代码包列表。
	Dependencies *[]Dependency `json:"dependencies,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否允许进行长时间超时设置。
	LongTime *bool `json:"long_time,omitempty"`

	// 自定义日志查询组id
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 自定义日志查询流id
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// v2表示为公测版本,v1为原来版本。
	Type *UpdateFunctionConfigResponseType `json:"type,omitempty"`

	// 是否启动动态内存配置
	EnableDynamicMemory *bool `json:"enable_dynamic_memory,omitempty"`

	// 是否支持有状态,如果需要支持,需要固定传参为true,v2版本支持
	IsStatefulFunction *bool `json:"is_stateful_function,omitempty"`

	// 函数配置的需要支持域名解析的内网域名。
	DomainNames *string `json:"domain_names,omitempty"`

	// 是否允许在请求头中添加鉴权信息
	EnableAuthInHeader *bool `json:"enable_auth_in_header,omitempty"`

	CustomImage    *CustomImage `json:"custom_image,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (UpdateFunctionConfigResponse) String

type UpdateFunctionConfigResponseCodeType

type UpdateFunctionConfigResponseCodeType struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionConfigResponseCodeType) MarshalJSON

func (c UpdateFunctionConfigResponseCodeType) MarshalJSON() ([]byte, error)

func (*UpdateFunctionConfigResponseCodeType) UnmarshalJSON

func (c *UpdateFunctionConfigResponseCodeType) UnmarshalJSON(b []byte) error

func (UpdateFunctionConfigResponseCodeType) Value added in v0.0.90

type UpdateFunctionConfigResponseRuntime

type UpdateFunctionConfigResponseRuntime struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionConfigResponseRuntime) MarshalJSON

func (c UpdateFunctionConfigResponseRuntime) MarshalJSON() ([]byte, error)

func (*UpdateFunctionConfigResponseRuntime) UnmarshalJSON

func (c *UpdateFunctionConfigResponseRuntime) UnmarshalJSON(b []byte) error

func (UpdateFunctionConfigResponseRuntime) Value added in v0.0.90

type UpdateFunctionConfigResponseType added in v0.0.53

type UpdateFunctionConfigResponseType struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionConfigResponseType) MarshalJSON added in v0.0.53

func (c UpdateFunctionConfigResponseType) MarshalJSON() ([]byte, error)

func (*UpdateFunctionConfigResponseType) UnmarshalJSON added in v0.0.53

func (c *UpdateFunctionConfigResponseType) UnmarshalJSON(b []byte) error

func (UpdateFunctionConfigResponseType) Value added in v0.0.90

type UpdateFunctionConfigResponseTypeEnum added in v0.0.53

type UpdateFunctionConfigResponseTypeEnum struct {
	V1 UpdateFunctionConfigResponseType
	V2 UpdateFunctionConfigResponseType
}

func GetUpdateFunctionConfigResponseTypeEnum added in v0.0.53

func GetUpdateFunctionConfigResponseTypeEnum() UpdateFunctionConfigResponseTypeEnum

type UpdateFunctionMaxInstanceConfigRequest added in v0.0.96

type UpdateFunctionMaxInstanceConfigRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	Body *UpdateFunctionMaxInstanceConfigRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateFunctionMaxInstanceConfigRequest) String added in v0.0.96

type UpdateFunctionMaxInstanceConfigRequestBody added in v0.0.96

type UpdateFunctionMaxInstanceConfigRequestBody struct {

	// 最大实例数;-1代表该函数实例数无限制,0代表该函数被禁用
	MaxInstanceNum *int32 `json:"max_instance_num,omitempty"`
}

更新函数最大实例数请求体

func (UpdateFunctionMaxInstanceConfigRequestBody) String added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponse added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponse struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FuncUrn *string `json:"func_urn,omitempty"`

	// 函数名称。
	FuncName *string `json:"func_name,omitempty"`

	// 域名id。
	DomainId *string `json:"domain_id,omitempty"`

	// 租户的project id。
	Namespace *string `json:"namespace,omitempty"`

	// 租户的project name。
	ProjectName *string `json:"project_name,omitempty"`

	// 函数所属的分组Package,用于用户针对函数的自定义分组。
	Package *string `json:"package,omitempty"`

	// FunctionGraph函数的执行环境 Python2.7: Python语言2.7版本。 Python3.6: Pyton语言3.6版本。 Python3.9: Python语言3.9版本。 Go1.8: Go语言1.8版本。 Go1.x: Go语言1.x版本。 Java8: Java语言8版本。 Java11: Java语言11版本。 Node.js6.10: Nodejs语言6.10版本。 Node.js8.10: Nodejs语言8.10版本。 Node.js10.16: Nodejs语言10.16版本。 Node.js12.13: Nodejs语言12.13版本。 Node.js14.18: Nodejs语言14.18版本。 C#(.NET Core 2.0): C#语言2.0版本。 C#(.NET Core 2.1): C#语言2.1版本。 C#(.NET Core 3.1): C#语言3.1版本。 Custom: 自定义运行时。 PHP7.3: Php语言7.3版本。 http: HTTP函数。
	Runtime *UpdateFunctionMaxInstanceConfigResponseRuntime `json:"runtime,omitempty"`

	// 函数执行超时时间,超时函数将被强行停止,范围3~900秒,可以通过白名单配置延长到12小时,具体可以咨询华为云函数工作流服务进行配置
	Timeout *int32 `json:"timeout,omitempty"`

	// 函数执行入口 规则:xx.xx,必须包含“. ” 举例:对于node.js函数:myfunction.handler,则表示函数的文件名为myfunction.js,执行的入口函数名为handler。
	Handler *string `json:"handler,omitempty"`

	// 函数消耗的内存。 单位M。 取值范围为:128、256、512、768、1024、1280、1536、1792、2048、2560、3072、3584、4096。 最小值为128,最大值为4096。
	MemorySize *int32 `json:"memory_size,omitempty"`

	// 函数占用的cpu资源。 单位为millicore(1 core=1000 millicores)。 取值与MemorySize成比例,默认是128M内存占0.1个核(100 millicores)。 函数占用的CPU为基础CPU:200 millicores,再加上内存按比例占用的CPU,计算方法:内存/128 *100 + 200。
	Cpu *int32 `json:"cpu,omitempty"`

	// 函数代码类型,取值有4种。 inline: UI在线编辑代码。 zip: 函数代码为zip包。 obs: 函数代码来源于obs存储。 jar: 函数代码为jar包,主要针对Java函数。
	CodeType *UpdateFunctionMaxInstanceConfigResponseCodeType `json:"code_type,omitempty"`

	// 当CodeType为obs时,该值为函数代码包在OBS上的地址,CodeType为其他值时,该字段为空。
	CodeUrl *string `json:"code_url,omitempty"`

	// 函数的文件名,当CodeType为jar/zip时必须提供该字段,inline和obs不需要提供。
	CodeFilename *string `json:"code_filename,omitempty"`

	// 函数大小,单位:字节。
	CodeSize *int64 `json:"code_size,omitempty"`

	// 用户自定义的name/value信息。 在函数中使用的参数。 举例:如函数要访问某个主机,可以设置自定义参数:Host={host_ip},最多定义20个,总长度不超过4KB。
	UserData *string `json:"user_data,omitempty"`

	// 用户自定义的name/value信息,用于需要加密的配置。
	EncryptedUserData *string `json:"encrypted_user_data,omitempty"`

	// 函数代码SHA512 hash值,用于判断函数是否变化。
	Digest *string `json:"digest,omitempty"`

	// 函数版本号,由系统自动生成,规则:vYYYYMMDD-HHMMSS(v+年月日-时分秒)。
	Version *string `json:"version,omitempty"`

	// 函数版本的内部标识。
	ImageName *string `json:"image_name,omitempty"`

	// 函数使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	Xrole *string `json:"xrole,omitempty"`

	// 函数app使用的权限委托名称,需要IAM支持,并在IAM界面创建委托,当函数需要访问其他服务时,必须提供该字段。
	AppXrole *string `json:"app_xrole,omitempty"`

	// 函数描述。
	Description *string `json:"description,omitempty"`

	// 函数最后一次更新时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	FuncVpc *FuncVpc `json:"func_vpc,omitempty"`

	MountConfig *MountConfig `json:"mount_config,omitempty"`

	StrategyConfig *StrategyConfig `json:"strategy_config,omitempty"`

	// 函数依赖代码包列表。
	Dependencies *[]Dependency `json:"dependencies,omitempty"`

	// 函数初始化入口,规则:xx.xx,必须包含“. ”。 举例:对于node.js函数:myfunction.initializer,则表示函数的文件名为myfunction.js,初始化的入口函数名为initializer。
	InitializerHandler *string `json:"initializer_handler,omitempty"`

	// 初始化超时时间,超时函数将被强行停止,范围1~300秒。
	InitializerTimeout *int32 `json:"initializer_timeout,omitempty"`

	// 企业项目ID,在企业用户创建函数时必填。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否允许进行长时间超时设置。
	LongTime *bool `json:"long_time,omitempty"`

	// 自定义日志查询组id
	LogGroupId *string `json:"log_group_id,omitempty"`

	// 自定义日志查询流id
	LogStreamId *string `json:"log_stream_id,omitempty"`

	// v2表示为公测版本,v1为原来版本。
	Type *UpdateFunctionMaxInstanceConfigResponseType `json:"type,omitempty"`

	// 是否启动动态内存配置
	EnableDynamicMemory *bool `json:"enable_dynamic_memory,omitempty"`

	// 是否支持有状态,如果需要支持,需要固定传参为true,v2版本支持
	IsStatefulFunction *bool `json:"is_stateful_function,omitempty"`

	// 函数配置的需要支持域名解析的内网域名。
	DomainNames    *string `json:"domain_names,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateFunctionMaxInstanceConfigResponse) String added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponseCodeType added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponseCodeType struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionMaxInstanceConfigResponseCodeType) MarshalJSON added in v0.0.96

func (*UpdateFunctionMaxInstanceConfigResponseCodeType) UnmarshalJSON added in v0.0.96

func (UpdateFunctionMaxInstanceConfigResponseCodeType) Value added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponseRuntime added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponseRuntime struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionMaxInstanceConfigResponseRuntime) MarshalJSON added in v0.0.96

func (*UpdateFunctionMaxInstanceConfigResponseRuntime) UnmarshalJSON added in v0.0.96

func (UpdateFunctionMaxInstanceConfigResponseRuntime) Value added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponseType added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponseType struct {
	// contains filtered or unexported fields
}

func (UpdateFunctionMaxInstanceConfigResponseType) MarshalJSON added in v0.0.96

func (*UpdateFunctionMaxInstanceConfigResponseType) UnmarshalJSON added in v0.0.96

func (UpdateFunctionMaxInstanceConfigResponseType) Value added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponseTypeEnum added in v0.0.96

type UpdateFunctionMaxInstanceConfigResponseTypeEnum struct {
	V1 UpdateFunctionMaxInstanceConfigResponseType
	V2 UpdateFunctionMaxInstanceConfigResponseType
}

func GetUpdateFunctionMaxInstanceConfigResponseTypeEnum added in v0.0.96

func GetUpdateFunctionMaxInstanceConfigResponseTypeEnum() UpdateFunctionMaxInstanceConfigResponseTypeEnum

type UpdateFunctionReservedInstancesCountRequest added in v0.0.104

type UpdateFunctionReservedInstancesCountRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	Body *UpdateFunctionReservedInstancesCountRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateFunctionReservedInstancesCountRequest) String added in v0.0.104

type UpdateFunctionReservedInstancesCountRequestBody added in v0.0.104

type UpdateFunctionReservedInstancesCountRequestBody struct {

	// 预留实例个数
	Count int32 `json:"count"`

	// 是否开启闲置模式配置
	IdleMode *bool `json:"idle_mode,omitempty"`

	TacticsConfig *TacticsConfig `json:"tactics_config,omitempty"`
}

func (UpdateFunctionReservedInstancesCountRequestBody) String added in v0.0.104

type UpdateFunctionReservedInstancesCountResponse added in v0.0.104

type UpdateFunctionReservedInstancesCountResponse struct {

	// 预留实例个数
	Count *int32 `json:"count,omitempty"`

	// 是否开启闲置模式配置
	IdleMode *bool `json:"idle_mode,omitempty"`

	TacticsConfig  *TacticsConfig `json:"tactics_config,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (UpdateFunctionReservedInstancesCountResponse) String added in v0.0.104

type UpdateFunctionTagsRequestBody added in v0.1.43

type UpdateFunctionTagsRequestBody struct {

	// action名称
	Action *string `json:"action,omitempty"`

	// 标签列表
	Tags *[]map[string]string `json:"tags,omitempty"`

	// 系统标签列表
	SysTags *[]map[string]string `json:"sys_tags,omitempty"`
}

func (UpdateFunctionTagsRequestBody) String added in v0.1.43

type UpdateTracingRequest added in v0.0.68

type UpdateTracingRequest struct {

	// 函数的URN(Uniform Resource Name),唯一标识函数。
	FunctionUrn string `json:"function_urn"`

	Body *UpdateTracingRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateTracingRequest) String added in v0.0.68

func (o UpdateTracingRequest) String() string

type UpdateTracingRequestBody added in v0.0.68

type UpdateTracingRequestBody struct {

	// apm的ak
	TracingAk *string `json:"tracing_ak,omitempty"`

	// apm的sk
	TracingSk *string `json:"tracing_sk,omitempty"`
}

更新函数调用链请求体

func (UpdateTracingRequestBody) String added in v0.0.68

func (o UpdateTracingRequestBody) String() string

type UpdateTracingResponse added in v0.0.68

type UpdateTracingResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (UpdateTracingResponse) String added in v0.0.68

func (o UpdateTracingResponse) String() string

type UpdateTriggerRequest

type UpdateTriggerRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 触发器类型代码。
	TriggerTypeCode UpdateTriggerRequestTriggerTypeCode `json:"trigger_type_code"`

	// 触发器编码。
	TriggerId string `json:"trigger_id"`

	Body *UpdateTriggerRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateTriggerRequest) String

func (o UpdateTriggerRequest) String() string

type UpdateTriggerRequestBody

type UpdateTriggerRequestBody struct {

	// 触发器状态
	TriggerStatus *UpdateTriggerRequestBodyTriggerStatus `json:"trigger_status,omitempty"`

	// 触发器更新事件
	EventData *[]TriggerEventData `json:"event_data,omitempty"`
}

func (UpdateTriggerRequestBody) String

func (o UpdateTriggerRequestBody) String() string

type UpdateTriggerRequestBodyTriggerStatus

type UpdateTriggerRequestBodyTriggerStatus struct {
	// contains filtered or unexported fields
}

func (UpdateTriggerRequestBodyTriggerStatus) MarshalJSON

func (c UpdateTriggerRequestBodyTriggerStatus) MarshalJSON() ([]byte, error)

func (*UpdateTriggerRequestBodyTriggerStatus) UnmarshalJSON

func (c *UpdateTriggerRequestBodyTriggerStatus) UnmarshalJSON(b []byte) error

func (UpdateTriggerRequestBodyTriggerStatus) Value added in v0.0.90

type UpdateTriggerRequestBodyTriggerStatusEnum

type UpdateTriggerRequestBodyTriggerStatusEnum struct {
	ACTIVE   UpdateTriggerRequestBodyTriggerStatus
	DISABLED UpdateTriggerRequestBodyTriggerStatus
}

func GetUpdateTriggerRequestBodyTriggerStatusEnum

func GetUpdateTriggerRequestBodyTriggerStatusEnum() UpdateTriggerRequestBodyTriggerStatusEnum

type UpdateTriggerRequestTriggerTypeCode

type UpdateTriggerRequestTriggerTypeCode struct {
	// contains filtered or unexported fields
}

func (UpdateTriggerRequestTriggerTypeCode) MarshalJSON

func (c UpdateTriggerRequestTriggerTypeCode) MarshalJSON() ([]byte, error)

func (*UpdateTriggerRequestTriggerTypeCode) UnmarshalJSON

func (c *UpdateTriggerRequestTriggerTypeCode) UnmarshalJSON(b []byte) error

func (UpdateTriggerRequestTriggerTypeCode) Value added in v0.0.90

type UpdateTriggerResponse

type UpdateTriggerResponse struct {

	// 触发器ID。
	TriggerId *string `json:"trigger_id,omitempty"`

	// 触发器类型。  - TIMER: \"定时触发器。\" - APIG: \"APIG触发器。\" - CTS: \"云审计服务触发器。\" - DDS: \"文档数据库服务触发器。\" - DMS: \"分布式服务触发器。\" - DIS: \"数据接入服务触发器。\" - LTS: \"云日志服务触发器。\" - OBS: \"对象存储触发器。\" - SMN: \"消息通知服务触发器。\" - KAFKA: \"专享版消息通知服务触发器。\"
	TriggerTypeCode *UpdateTriggerResponseTriggerTypeCode `json:"trigger_type_code,omitempty"`

	// \"触发器状态\"  - ACTIVE: 启用状态。 - DISABLED: 禁用状态。
	TriggerStatus *UpdateTriggerResponseTriggerStatus `json:"trigger_status,omitempty"`

	// 触发器源事件。
	EventData *interface{} `json:"event_data,omitempty"`

	// 最后更新时间。
	LastUpdatedTime *sdktime.SdkTime `json:"last_updated_time,omitempty"`

	// 触发器创建时间。
	CreatedTime    *sdktime.SdkTime `json:"created_time,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (UpdateTriggerResponse) String

func (o UpdateTriggerResponse) String() string

type UpdateTriggerResponseTriggerStatus added in v0.1.28

type UpdateTriggerResponseTriggerStatus struct {
	// contains filtered or unexported fields
}

func (UpdateTriggerResponseTriggerStatus) MarshalJSON added in v0.1.28

func (c UpdateTriggerResponseTriggerStatus) MarshalJSON() ([]byte, error)

func (*UpdateTriggerResponseTriggerStatus) UnmarshalJSON added in v0.1.28

func (c *UpdateTriggerResponseTriggerStatus) UnmarshalJSON(b []byte) error

func (UpdateTriggerResponseTriggerStatus) Value added in v0.1.28

type UpdateTriggerResponseTriggerStatusEnum added in v0.1.28

type UpdateTriggerResponseTriggerStatusEnum struct {
	ACTIVE   UpdateTriggerResponseTriggerStatus
	DISABLED UpdateTriggerResponseTriggerStatus
}

func GetUpdateTriggerResponseTriggerStatusEnum added in v0.1.28

func GetUpdateTriggerResponseTriggerStatusEnum() UpdateTriggerResponseTriggerStatusEnum

type UpdateTriggerResponseTriggerTypeCode added in v0.1.28

type UpdateTriggerResponseTriggerTypeCode struct {
	// contains filtered or unexported fields
}

func (UpdateTriggerResponseTriggerTypeCode) MarshalJSON added in v0.1.28

func (c UpdateTriggerResponseTriggerTypeCode) MarshalJSON() ([]byte, error)

func (*UpdateTriggerResponseTriggerTypeCode) UnmarshalJSON added in v0.1.28

func (c *UpdateTriggerResponseTriggerTypeCode) UnmarshalJSON(b []byte) error

func (UpdateTriggerResponseTriggerTypeCode) Value added in v0.1.28

type UpdateVersionAliasRequest

type UpdateVersionAliasRequest struct {

	// 函数的URN,详细解释见FunctionGraph函数模型的描述。
	FunctionUrn string `json:"function_urn"`

	// 要更新的别名名称。
	AliasName string `json:"alias_name"`

	Body *UpdateVersionAliasRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateVersionAliasRequest) String

func (o UpdateVersionAliasRequest) String() string

type UpdateVersionAliasRequestBody

type UpdateVersionAliasRequestBody struct {

	// 别名对应的版本名称。
	Version string `json:"version"`

	// 别名描述信息。
	Description *string `json:"description,omitempty"`

	// 灰度版本信息
	AdditionalVersionWeights map[string]int32 `json:"additional_version_weights,omitempty"`
}

func (UpdateVersionAliasRequestBody) String

type UpdateVersionAliasResponse

type UpdateVersionAliasResponse struct {

	// 要获取的别名名称。
	Name *string `json:"name,omitempty"`

	// 别名对应的版本名称。
	Version *string `json:"version,omitempty"`

	// 别名描述信息。
	Description *string `json:"description,omitempty"`

	// 别名最后修改时间。
	LastModified *sdktime.SdkTime `json:"last_modified,omitempty"`

	// 版本别名唯一标识。
	AliasUrn *string `json:"alias_urn,omitempty"`

	// 灰度版本信息
	AdditionalVersionWeights map[string]int32 `json:"additional_version_weights,omitempty"`
	HttpStatusCode           int              `json:"-"`
}

Response Object

func (UpdateVersionAliasResponse) String

type UpdateWorkFlowRequest added in v0.0.81

type UpdateWorkFlowRequest struct {

	// 函数工作流ID
	WorkflowId string `json:"workflow_id"`

	Body *WorkflowCreateBody `json:"body,omitempty"`
}

Request Object

func (UpdateWorkFlowRequest) String added in v0.0.81

func (o UpdateWorkFlowRequest) String() string

type UpdateWorkFlowResponse added in v0.0.81

type UpdateWorkFlowResponse struct {

	// 函数流是否返回流式数据
	EnableStreamResponse *bool `json:"enable_stream_response,omitempty"`

	// 唯一标识ID,流程定义ID
	Id *string `json:"id,omitempty"`

	// 函数工作流URN, 格式为: urn:fss:<region_id>:<project_id>:workflow:\\<package\\>:<workflow_name>:\\<version\\> 注意: package当前只支持default version当前只支持latest
	WorkflowUrn *string `json:"workflow_urn,omitempty"`

	// 流程定义名称
	Name *string `json:"name,omitempty"`

	// 流程定义描述
	Description *string `json:"description,omitempty"`

	// 流程创建时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 流程修改时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	UpdatedTime *string `json:"updated_time,omitempty"`

	// 流程创建者
	CreatedBy      *string `json:"created_by,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateWorkFlowResponse) String added in v0.0.81

func (o UpdateWorkFlowResponse) String() string

type VpcConfig added in v0.1.37

type VpcConfig struct {

	// vpc名称。
	VpcName *string `json:"vpc_name,omitempty"`

	// vpc ID。
	VpcId *string `json:"vpc_id,omitempty"`
}

vpc信息。

func (VpcConfig) String added in v0.1.37

func (o VpcConfig) String() string

type WorkflowCreateBody added in v0.0.104

type WorkflowCreateBody struct {

	// 函数流名称
	Name string `json:"name"`

	// 函数流描述
	Description *string `json:"description,omitempty"`

	// 流程开始节点ID
	Start string `json:"start"`

	// 触发器列表
	Triggers *[]Trigger `json:"triggers,omitempty"`

	// 函数列表
	Functions []Function `json:"functions"`

	// 函数流节点清单,定义参考SleepState和OperationState
	States []OperationState `json:"states"`

	// 函数流中的常量
	Constants *interface{} `json:"constants"`

	// 重试策略清单
	Retries []Retry `json:"retries"`

	// 函数流模式,当前支持两种模式 NORMAL: 标准模式,普通模式面向普通的业务场景,支持长时间任务,支持执行历史持久化和查询,只支持异步调用 EXPRESS: 快速模式,快速模式面向业务执行时长较短,需要极致性能的场景,只支持流程执行时长低于5分钟的场景,不支持执行历史持久化,支持同步和异步调用 默认为标准模式
	Mode *WorkflowCreateBodyMode `json:"mode,omitempty"`

	ExpressConfig *ExpressConfig `json:"express_config,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 是否返回流数据
	EnableStreamResponse *bool `json:"enable_stream_response,omitempty"`
}

创建函数流的body体

func (WorkflowCreateBody) String added in v0.0.104

func (o WorkflowCreateBody) String() string

type WorkflowCreateBodyMode added in v0.0.104

type WorkflowCreateBodyMode struct {
	// contains filtered or unexported fields
}

func (WorkflowCreateBodyMode) MarshalJSON added in v0.0.104

func (c WorkflowCreateBodyMode) MarshalJSON() ([]byte, error)

func (*WorkflowCreateBodyMode) UnmarshalJSON added in v0.0.104

func (c *WorkflowCreateBodyMode) UnmarshalJSON(b []byte) error

func (WorkflowCreateBodyMode) Value added in v0.0.104

func (c WorkflowCreateBodyMode) Value() string

type WorkflowCreateBodyModeEnum added in v0.0.104

type WorkflowCreateBodyModeEnum struct {
	NORMAL  WorkflowCreateBodyMode
	EXPRESS WorkflowCreateBodyMode
}

func GetWorkflowCreateBodyModeEnum added in v0.0.104

func GetWorkflowCreateBodyModeEnum() WorkflowCreateBodyModeEnum

type WorkflowDeleteBody added in v0.0.104

type WorkflowDeleteBody struct {

	// 函数流URN列表
	WorkflowUrns []string `json:"workflow_urns"`
}

批量删除函数流的Body体

func (WorkflowDeleteBody) String added in v0.0.104

func (o WorkflowDeleteBody) String() string

type WorkflowSimpleInfo added in v0.0.104

type WorkflowSimpleInfo struct {

	// 函数流是否返回流式数据
	EnableStreamResponse bool `json:"enable_stream_response"`

	// 唯一标识ID,流程定义ID
	Id string `json:"id"`

	// 函数工作流URN, 格式为: urn:fss:<region_id>:<project_id>:workflow:\\<package\\>:<workflow_name>:\\<version\\> 注意: package当前只支持default version当前只支持latest
	WorkflowUrn string `json:"workflow_urn"`

	// 流程定义名称
	Name string `json:"name"`

	// 流程定义描述
	Description string `json:"description"`

	// 流程创建时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	CreatedTime string `json:"created_time"`

	// 流程修改时间,格式:yyyy-MM-ddTHH:mm:ssZ,UTC时间
	UpdatedTime string `json:"updated_time"`

	// 流程创建者
	CreatedBy string `json:"created_by"`
}

函数流详情

func (WorkflowSimpleInfo) String added in v0.0.104

func (o WorkflowSimpleInfo) String() string

type WorkflowUrn added in v0.0.104

type WorkflowUrn struct {
}

函数工作流URN, 格式为: urn:fss:<region_id>:<project_id>:workflow:\\<package\\>:<workflow_name>:\\<version\\> 注意: package当前只支持default version当前只支持latest

func (WorkflowUrn) String added in v0.0.104

func (o WorkflowUrn) String() string

Source Files

Jump to

Keyboard shortcuts

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