Documentation
¶
Index ¶
- Constants
- type AccessInfo
- type Alias
- type AsyncEvent
- type AsyncTriggerConfig
- type CfsConfig
- type CfsInsInfo
- type Client
- func (c *Client) CopyFunction(request *CopyFunctionRequest) (response *CopyFunctionResponse, err error)
- func (c *Client) CreateAlias(request *CreateAliasRequest) (response *CreateAliasResponse, err error)
- func (c *Client) CreateFunction(request *CreateFunctionRequest) (response *CreateFunctionResponse, err error)
- func (c *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
- func (c *Client) CreateTrigger(request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)
- func (c *Client) DeleteAlias(request *DeleteAliasRequest) (response *DeleteAliasResponse, err error)
- func (c *Client) DeleteFunction(request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)
- func (c *Client) DeleteLayerVersion(request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)
- func (c *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
- func (c *Client) DeleteProvisionedConcurrencyConfig(request *DeleteProvisionedConcurrencyConfigRequest) (response *DeleteProvisionedConcurrencyConfigResponse, err error)
- func (c *Client) DeleteReservedConcurrencyConfig(request *DeleteReservedConcurrencyConfigRequest) (response *DeleteReservedConcurrencyConfigResponse, err error)
- func (c *Client) DeleteTrigger(request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)
- func (c *Client) GetAccount(request *GetAccountRequest) (response *GetAccountResponse, err error)
- func (c *Client) GetAlias(request *GetAliasRequest) (response *GetAliasResponse, err error)
- func (c *Client) GetFunction(request *GetFunctionRequest) (response *GetFunctionResponse, err error)
- func (c *Client) GetFunctionAddress(request *GetFunctionAddressRequest) (response *GetFunctionAddressResponse, err error)
- func (c *Client) GetFunctionEventInvokeConfig(request *GetFunctionEventInvokeConfigRequest) (response *GetFunctionEventInvokeConfigResponse, err error)
- func (c *Client) GetFunctionLogs(request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)
- func (c *Client) GetLayerVersion(request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)
- func (c *Client) GetProvisionedConcurrencyConfig(request *GetProvisionedConcurrencyConfigRequest) (response *GetProvisionedConcurrencyConfigResponse, err error)
- func (c *Client) GetReservedConcurrencyConfig(request *GetReservedConcurrencyConfigRequest) (response *GetReservedConcurrencyConfigResponse, err error)
- func (c *Client) Invoke(request *InvokeRequest) (response *InvokeResponse, err error)
- func (c *Client) ListAliases(request *ListAliasesRequest) (response *ListAliasesResponse, err error)
- func (c *Client) ListAsyncEvents(request *ListAsyncEventsRequest) (response *ListAsyncEventsResponse, err error)
- func (c *Client) ListFunctions(request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)
- func (c *Client) ListLayerVersions(request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)
- func (c *Client) ListLayers(request *ListLayersRequest) (response *ListLayersResponse, err error)
- func (c *Client) ListNamespaces(request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)
- func (c *Client) ListTriggers(request *ListTriggersRequest) (response *ListTriggersResponse, err error)
- func (c *Client) ListVersionByFunction(request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)
- func (c *Client) PublishLayerVersion(request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)
- func (c *Client) PublishVersion(request *PublishVersionRequest) (response *PublishVersionResponse, err error)
- func (c *Client) PutProvisionedConcurrencyConfig(request *PutProvisionedConcurrencyConfigRequest) (response *PutProvisionedConcurrencyConfigResponse, err error)
- func (c *Client) PutReservedConcurrencyConfig(request *PutReservedConcurrencyConfigRequest) (response *PutReservedConcurrencyConfigResponse, err error)
- func (c *Client) PutTotalConcurrencyConfig(request *PutTotalConcurrencyConfigRequest) (response *PutTotalConcurrencyConfigResponse, err error)
- func (c *Client) TerminateAsyncEvent(request *TerminateAsyncEventRequest) (response *TerminateAsyncEventResponse, err error)
- func (c *Client) UpdateAlias(request *UpdateAliasRequest) (response *UpdateAliasResponse, err error)
- func (c *Client) UpdateFunctionCode(request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)
- func (c *Client) UpdateFunctionConfiguration(request *UpdateFunctionConfigurationRequest) (response *UpdateFunctionConfigurationResponse, err error)
- func (c *Client) UpdateFunctionEventInvokeConfig(request *UpdateFunctionEventInvokeConfigRequest) (response *UpdateFunctionEventInvokeConfigResponse, err error)
- func (c *Client) UpdateNamespace(request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
- type Code
- type CopyFunctionRequest
- type CopyFunctionResponse
- type CreateAliasRequest
- type CreateAliasResponse
- type CreateFunctionRequest
- type CreateFunctionResponse
- type CreateNamespaceRequest
- type CreateNamespaceResponse
- type CreateTriggerRequest
- type CreateTriggerResponse
- type DeadLetterConfig
- type DeleteAliasRequest
- type DeleteAliasResponse
- type DeleteFunctionRequest
- type DeleteFunctionResponse
- type DeleteLayerVersionRequest
- type DeleteLayerVersionResponse
- type DeleteNamespaceRequest
- type DeleteNamespaceResponse
- type DeleteProvisionedConcurrencyConfigRequest
- type DeleteProvisionedConcurrencyConfigResponse
- type DeleteReservedConcurrencyConfigRequest
- type DeleteReservedConcurrencyConfigResponse
- type DeleteTriggerRequest
- type DeleteTriggerResponse
- type EipConfigIn
- type EipConfigOut
- type EipOutConfig
- type Environment
- type Filter
- type Function
- type FunctionLog
- type FunctionVersion
- type GetAccountRequest
- type GetAccountResponse
- type GetAliasRequest
- type GetAliasResponse
- type GetFunctionAddressRequest
- type GetFunctionAddressResponse
- type GetFunctionEventInvokeConfigRequest
- type GetFunctionEventInvokeConfigResponse
- type GetFunctionLogsRequest
- type GetFunctionLogsResponse
- type GetFunctionRequest
- type GetFunctionResponse
- type GetLayerVersionRequest
- type GetLayerVersionResponse
- type GetProvisionedConcurrencyConfigRequest
- type GetProvisionedConcurrencyConfigResponse
- type GetReservedConcurrencyConfigRequest
- type GetReservedConcurrencyConfigResponse
- type InvokeRequest
- type InvokeResponse
- type LayerVersionInfo
- type LayerVersionSimple
- type LimitsInfo
- type ListAliasesRequest
- type ListAliasesResponse
- type ListAsyncEventsRequest
- type ListAsyncEventsResponse
- type ListFunctionsRequest
- type ListFunctionsResponse
- type ListLayerVersionsRequest
- type ListLayerVersionsResponse
- type ListLayersRequest
- type ListLayersResponse
- type ListNamespacesRequest
- type ListNamespacesResponse
- type ListTriggersRequest
- type ListTriggersResponse
- type ListVersionByFunctionRequest
- type ListVersionByFunctionResponse
- type LogFilter
- type LogSearchContext
- type Namespace
- type NamespaceLimit
- type NamespaceUsage
- type PublicNetConfigIn
- type PublicNetConfigOut
- type PublishLayerVersionRequest
- type PublishLayerVersionResponse
- type PublishVersionRequest
- type PublishVersionResponse
- type PutProvisionedConcurrencyConfigRequest
- type PutProvisionedConcurrencyConfigResponse
- type PutReservedConcurrencyConfigRequest
- type PutReservedConcurrencyConfigResponse
- type PutTotalConcurrencyConfigRequest
- type PutTotalConcurrencyConfigResponse
- type Result
- type RetryConfig
- type RoutingConfig
- type StatusReason
- type Tag
- type TerminateAsyncEventRequest
- type TerminateAsyncEventResponse
- type TimeInterval
- type Trigger
- type TriggerCount
- type TriggerInfo
- type UpdateAliasRequest
- type UpdateAliasResponse
- type UpdateFunctionCodeRequest
- type UpdateFunctionCodeResponse
- type UpdateFunctionConfigurationRequest
- type UpdateFunctionConfigurationResponse
- type UpdateFunctionEventInvokeConfigRequest
- type UpdateFunctionEventInvokeConfigResponse
- type UpdateNamespaceRequest
- type UpdateNamespaceResponse
- type UsageInfo
- type Variable
- type VersionMatch
- type VersionProvisionedConcurrencyInfo
- type VersionWeight
- type VpcConfig
Constants ¶
const APIVersion = "2018-04-16"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessInfo ¶
type Alias ¶
type Alias struct {
// 别名指向的主版本
FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"`
// 别名的名称
Name *string `json:"Name,omitempty" name:"Name"`
// 别名的路由信息
// 注意:此字段可能返回 null,表示取不到有效值。
RoutingConfig *RoutingConfig `json:"RoutingConfig,omitempty" name:"RoutingConfig"`
// 描述信息
// 注意:此字段可能返回 null,表示取不到有效值。
Description *string `json:"Description,omitempty" name:"Description"`
// 创建时间
// 注意:此字段可能返回 null,表示取不到有效值。
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
}
type AsyncEvent ¶
type AsyncEvent struct {
// 调用请求id
InvokeRequestId *string `json:"InvokeRequestId,omitempty" name:"InvokeRequestId"`
// 调用类型
InvokeType *string `json:"InvokeType,omitempty" name:"InvokeType"`
// 函数版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 事件状态
Status *string `json:"Status,omitempty" name:"Status"`
// 调用开始时间,格式: "%Y-%m-%d %H:%M:%S.%f"
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 调用结束时间,格式: "%Y-%m-%d %H:%M:%S.%f"
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
}
type AsyncTriggerConfig ¶
type AsyncTriggerConfig struct {
// 用户错误的异步重试重试配置
RetryConfig []*RetryConfig `json:"RetryConfig,omitempty" name:"RetryConfig" list`
// 消息保留时间
MsgTTL *int64 `json:"MsgTTL,omitempty" name:"MsgTTL"`
}
type CfsConfig ¶
type CfsConfig struct {
// 文件系统信息列表
CfsInsList []*CfsInsInfo `json:"CfsInsList,omitempty" name:"CfsInsList" list`
}
type CfsInsInfo ¶
type CfsInsInfo struct {
// 用户id
UserId *string `json:"UserId,omitempty" name:"UserId"`
// 用户组id
UserGroupId *string `json:"UserGroupId,omitempty" name:"UserGroupId"`
// 文件系统实例id
CfsId *string `json:"CfsId,omitempty" name:"CfsId"`
// 文件系统挂载点id
MountInsId *string `json:"MountInsId,omitempty" name:"MountInsId"`
// 本地挂载点
LocalMountDir *string `json:"LocalMountDir,omitempty" name:"LocalMountDir"`
// 远程挂载点
RemoteMountDir *string `json:"RemoteMountDir,omitempty" name:"RemoteMountDir"`
// 文件系统ip,配置 cfs 时无需填写。
// 注意:此字段可能返回 null,表示取不到有效值。
// 注意:此字段可能返回 null,表示取不到有效值。
IpAddress *string `json:"IpAddress,omitempty" name:"IpAddress"`
// 文件系统所在的私有网络id,配置 cfs 时无需填写。
// 注意:此字段可能返回 null,表示取不到有效值。
// 注意:此字段可能返回 null,表示取不到有效值。
MountVpcId *string `json:"MountVpcId,omitempty" name:"MountVpcId"`
// 文件系统所在私有网络的子网id,配置 cfs 时无需填写。
// 注意:此字段可能返回 null,表示取不到有效值。
// 注意:此字段可能返回 null,表示取不到有效值。
MountSubnetId *string `json:"MountSubnetId,omitempty" name:"MountSubnetId"`
}
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CopyFunction ¶
func (c *Client) CopyFunction(request *CopyFunctionRequest) (response *CopyFunctionResponse, err error)
复制一个函数,您可以选择将复制出的新函数放置在特定的Region和Namespace。 注:本接口**不会**复制函数的以下对象或属性: 1. 函数的触发器 2. 除了$LATEST以外的其它版本 3. 函数配置的日志投递到的CLS目标。
如有需要,您可以在复制后手动配置新函数。
func (*Client) CreateAlias ¶
func (c *Client) CreateAlias(request *CreateAliasRequest) (response *CreateAliasResponse, err error)
为某个函数版本创建一个别名,您可以使用别名来标记特定的函数版本,如DEV/RELEASE版本,也可以随时修改别名指向的版本。 一个别名必须指向一个主版本,此外还可以同时指向一个附加版本。调用函数时指定特定的别名,则请求会被发送到别名指向的版本上,您可以配置请求发送到主版本和附加版本的比例。
func (*Client) CreateFunction ¶
func (c *Client) CreateFunction(request *CreateFunctionRequest) (response *CreateFunctionResponse, err error)
该接口根据传入参数创建新的函数。
func (*Client) CreateNamespace ¶
func (c *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
该接口根据传入的参数创建命名空间。
func (*Client) CreateTrigger ¶
func (c *Client) CreateTrigger(request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)
该接口根据参数输入设置新的触发方式。
func (*Client) DeleteAlias ¶
func (c *Client) DeleteAlias(request *DeleteAliasRequest) (response *DeleteAliasResponse, err error)
删除一个函数版本的别名
func (*Client) DeleteFunction ¶
func (c *Client) DeleteFunction(request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)
该接口根据传入参数删除函数。
func (*Client) DeleteLayerVersion ¶
func (c *Client) DeleteLayerVersion(request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)
删除指定层的指定版本,被删除的版本无法再关联到函数上,但不会影响正在引用这个层的函数。
func (*Client) DeleteNamespace ¶
func (c *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
该接口根据传入的参数删除命名空间。
func (*Client) DeleteProvisionedConcurrencyConfig ¶
func (c *Client) DeleteProvisionedConcurrencyConfig(request *DeleteProvisionedConcurrencyConfigRequest) (response *DeleteProvisionedConcurrencyConfigResponse, err error)
删除函数版本的预置并发配置。
func (*Client) DeleteReservedConcurrencyConfig ¶
func (c *Client) DeleteReservedConcurrencyConfig(request *DeleteReservedConcurrencyConfigRequest) (response *DeleteReservedConcurrencyConfigResponse, err error)
删除函数的保留并发配置。
func (*Client) DeleteTrigger ¶
func (c *Client) DeleteTrigger(request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)
该接口根据参数传入删除已有的触发方式。
func (*Client) GetAccount ¶
func (c *Client) GetAccount(request *GetAccountRequest) (response *GetAccountResponse, err error)
获取账户信息
func (*Client) GetAlias ¶
func (c *Client) GetAlias(request *GetAliasRequest) (response *GetAliasResponse, err error)
获取别名的详细信息,包括名称、描述、版本、路由信息等。
func (*Client) GetFunction ¶
func (c *Client) GetFunction(request *GetFunctionRequest) (response *GetFunctionResponse, err error)
该接口获取某个函数的详细信息,包括名称、代码、处理方法、关联触发器和超时时间等字段。
func (*Client) GetFunctionAddress ¶
func (c *Client) GetFunctionAddress(request *GetFunctionAddressRequest) (response *GetFunctionAddressResponse, err error)
该接口用于获取函数代码包的下载地址。
func (*Client) GetFunctionEventInvokeConfig ¶
func (c *Client) GetFunctionEventInvokeConfig(request *GetFunctionEventInvokeConfigRequest) (response *GetFunctionEventInvokeConfigResponse, err error)
获取函数异步重试配置,包括重试次数和消息保留时间
func (*Client) GetFunctionLogs ¶
func (c *Client) GetFunctionLogs(request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)
该接口根据指定的日志查询条件返回函数运行日志。
func (*Client) GetLayerVersion ¶
func (c *Client) GetLayerVersion(request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)
获取层版本详细信息,包括用于下载层中文件的链接。
func (*Client) GetProvisionedConcurrencyConfig ¶
func (c *Client) GetProvisionedConcurrencyConfig(request *GetProvisionedConcurrencyConfigRequest) (response *GetProvisionedConcurrencyConfigResponse, err error)
获取函数或函数某一版本的预置并发详情。
func (*Client) GetReservedConcurrencyConfig ¶
func (c *Client) GetReservedConcurrencyConfig(request *GetReservedConcurrencyConfigRequest) (response *GetReservedConcurrencyConfigResponse, err error)
获取函数的保留并发详情。
func (*Client) Invoke ¶
func (c *Client) Invoke(request *InvokeRequest) (response *InvokeResponse, err error)
该接口用于运行函数。
func (*Client) ListAliases ¶
func (c *Client) ListAliases(request *ListAliasesRequest) (response *ListAliasesResponse, err error)
返回一个函数下的全部别名,可以根据特定函数版本过滤。
func (*Client) ListAsyncEvents ¶
func (c *Client) ListAsyncEvents(request *ListAsyncEventsRequest) (response *ListAsyncEventsResponse, err error)
拉取函数异步事件列表
func (*Client) ListFunctions ¶
func (c *Client) ListFunctions(request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)
该接口根据传入的查询参数返回相关函数信息。
func (*Client) ListLayerVersions ¶
func (c *Client) ListLayerVersions(request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)
返回指定层的全部版本的信息
func (*Client) ListLayers ¶
func (c *Client) ListLayers(request *ListLayersRequest) (response *ListLayersResponse, err error)
返回全部层的列表,其中包含了每个层最新版本的信息,可以通过适配运行时进行过滤。
func (*Client) ListNamespaces ¶
func (c *Client) ListNamespaces(request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)
列出命名空间列表
func (*Client) ListTriggers ¶
func (c *Client) ListTriggers(request *ListTriggersRequest) (response *ListTriggersResponse, err error)
获取函数触发器列表
func (*Client) ListVersionByFunction ¶
func (c *Client) ListVersionByFunction(request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)
该接口根据传入的参数查询函数的版本。
func (*Client) PublishLayerVersion ¶
func (c *Client) PublishLayerVersion(request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)
使用给定的zip文件或cos对象创建一个层的新版本,每次使用相同的层的名称调用本接口,都会生成一个新版本。
func (*Client) PublishVersion ¶
func (c *Client) PublishVersion(request *PublishVersionRequest) (response *PublishVersionResponse, err error)
该接口用于用户发布新版本函数。
func (*Client) PutProvisionedConcurrencyConfig ¶
func (c *Client) PutProvisionedConcurrencyConfig(request *PutProvisionedConcurrencyConfigRequest) (response *PutProvisionedConcurrencyConfigResponse, err error)
设置函数某一非$LATEST版本的预置并发。
func (*Client) PutReservedConcurrencyConfig ¶
func (c *Client) PutReservedConcurrencyConfig(request *PutReservedConcurrencyConfigRequest) (response *PutReservedConcurrencyConfigResponse, err error)
设置函数保留并发
func (*Client) PutTotalConcurrencyConfig ¶
func (c *Client) PutTotalConcurrencyConfig(request *PutTotalConcurrencyConfigRequest) (response *PutTotalConcurrencyConfigResponse, err error)
修改账号并发限制配额
func (*Client) TerminateAsyncEvent ¶
func (c *Client) TerminateAsyncEvent(request *TerminateAsyncEventRequest) (response *TerminateAsyncEventResponse, err error)
终止正在运行中的函数异步事件
func (*Client) UpdateAlias ¶
func (c *Client) UpdateAlias(request *UpdateAliasRequest) (response *UpdateAliasResponse, err error)
更新别名的配置
func (*Client) UpdateFunctionCode ¶
func (c *Client) UpdateFunctionCode(request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)
该接口根据传入参数更新函数代码。
func (*Client) UpdateFunctionConfiguration ¶
func (c *Client) UpdateFunctionConfiguration(request *UpdateFunctionConfigurationRequest) (response *UpdateFunctionConfigurationResponse, err error)
该接口根据传入参数更新函数配置。
func (*Client) UpdateFunctionEventInvokeConfig ¶
func (c *Client) UpdateFunctionEventInvokeConfig(request *UpdateFunctionEventInvokeConfigRequest) (response *UpdateFunctionEventInvokeConfigResponse, err error)
更新函数的异步重试配置,包括重试次数和消息保留时间
func (*Client) UpdateNamespace ¶
func (c *Client) UpdateNamespace(request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
更新命名空间
type Code ¶
type Code struct {
// 对象存储桶名称(填写存储桶名称自定义部分,不包含-appid)
CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"`
// 对象存储对象路径
CosObjectName *string `json:"CosObjectName,omitempty" name:"CosObjectName"`
// 包含函数代码文件及其依赖项的 zip 格式文件,zip包大小上限为 50MB,使用该接口时要求将 zip 文件的内容转成 base64 编码
ZipFile *string `json:"ZipFile,omitempty" name:"ZipFile"`
// 对象存储的地域,地域为北京时需要传入ap-beijing,北京一区时需要传递ap-beijing-1,其他的地域不需要传递。
CosBucketRegion *string `json:"CosBucketRegion,omitempty" name:"CosBucketRegion"`
// 如果是通过Demo创建的话,需要传入DemoId
DemoId *string `json:"DemoId,omitempty" name:"DemoId"`
// 如果是从TempCos创建的话,需要传入TempCosObjectName
TempCosObjectName *string `json:"TempCosObjectName,omitempty" name:"TempCosObjectName"`
// Git地址
GitUrl *string `json:"GitUrl,omitempty" name:"GitUrl"`
// Git用户名
GitUserName *string `json:"GitUserName,omitempty" name:"GitUserName"`
// Git密码
GitPassword *string `json:"GitPassword,omitempty" name:"GitPassword"`
// 加密后的Git密码,一般无需指定
GitPasswordSecret *string `json:"GitPasswordSecret,omitempty" name:"GitPasswordSecret"`
// Git分支
GitBranch *string `json:"GitBranch,omitempty" name:"GitBranch"`
// 代码在Git仓库中的路径
GitDirectory *string `json:"GitDirectory,omitempty" name:"GitDirectory"`
// 指定要拉取的版本
GitCommitId *string `json:"GitCommitId,omitempty" name:"GitCommitId"`
// 加密后的Git用户名,一般无需指定
GitUserNameSecret *string `json:"GitUserNameSecret,omitempty" name:"GitUserNameSecret"`
}
type CopyFunctionRequest ¶
type CopyFunctionRequest struct {
*tchttp.BaseRequest
// 要复制的函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 新函数的名称
NewFunctionName *string `json:"NewFunctionName,omitempty" name:"NewFunctionName"`
// 要复制的函数所在的命名空间,默认为default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 将函数复制到的命名空间,默认为default
TargetNamespace *string `json:"TargetNamespace,omitempty" name:"TargetNamespace"`
// 新函数的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 要将函数复制到的地域,不填则默认为当前地域
TargetRegion *string `json:"TargetRegion,omitempty" name:"TargetRegion"`
// 如果目标Namespace下已有同名函数,是否覆盖,默认为否
// (注意:如果选择覆盖,会导致同名函数被删除,请慎重操作)
// TRUE:覆盖同名函数
// FALSE:不覆盖同名函数
Override *bool `json:"Override,omitempty" name:"Override"`
// 是否复制函数的属性,包括环境变量、内存、超时、函数描述、标签、VPC等,默认为是。
// TRUE:复制函数配置
// FALSE:不复制函数配置
CopyConfiguration *bool `json:"CopyConfiguration,omitempty" name:"CopyConfiguration"`
}
func NewCopyFunctionRequest ¶
func NewCopyFunctionRequest() (request *CopyFunctionRequest)
func (*CopyFunctionRequest) FromJsonString ¶
func (r *CopyFunctionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CopyFunctionRequest) ToJsonString ¶
func (r *CopyFunctionRequest) ToJsonString() string
type CopyFunctionResponse ¶
type CopyFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCopyFunctionResponse ¶
func NewCopyFunctionResponse() (response *CopyFunctionResponse)
func (*CopyFunctionResponse) FromJsonString ¶
func (r *CopyFunctionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CopyFunctionResponse) ToJsonString ¶
func (r *CopyFunctionResponse) ToJsonString() string
type CreateAliasRequest ¶
type CreateAliasRequest struct {
*tchttp.BaseRequest
// 别名的名称,在函数级别中唯一,只能包含字母、数字、'_'和‘-’,且必须以字母开头,长度限制为1-64
Name *string `json:"Name,omitempty" name:"Name"`
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 别名指向的主版本
FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"`
// 函数所在的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 别名的请求路由配置
RoutingConfig *RoutingConfig `json:"RoutingConfig,omitempty" name:"RoutingConfig"`
// 别名的描述信息
Description *string `json:"Description,omitempty" name:"Description"`
}
func NewCreateAliasRequest ¶
func NewCreateAliasRequest() (request *CreateAliasRequest)
func (*CreateAliasRequest) FromJsonString ¶
func (r *CreateAliasRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAliasRequest) ToJsonString ¶
func (r *CreateAliasRequest) ToJsonString() string
type CreateAliasResponse ¶
type CreateAliasResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateAliasResponse ¶
func NewCreateAliasResponse() (response *CreateAliasResponse)
func (*CreateAliasResponse) FromJsonString ¶
func (r *CreateAliasResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAliasResponse) ToJsonString ¶
func (r *CreateAliasResponse) ToJsonString() string
type CreateFunctionRequest ¶
type CreateFunctionRequest struct {
*tchttp.BaseRequest
// 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。
Code *Code `json:"Code,omitempty" name:"Code"`
// 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符
Handler *string `json:"Handler,omitempty" name:"Handler"`
// 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文
Description *string `json:"Description,omitempty" name:"Description"`
// 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯
MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"`
// 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒
Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"`
// 函数的环境变量
Environment *Environment `json:"Environment,omitempty" name:"Environment"`
// 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5, Php7,Go1,Java8 和 CustomRuntime,默认Python2.7
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数的私有网络配置
VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数绑定的角色
Role *string `json:"Role,omitempty" name:"Role"`
// 函数日志投递到的CLS LogsetID
ClsLogsetId *string `json:"ClsLogsetId,omitempty" name:"ClsLogsetId"`
// 函数日志投递到的CLS TopicID
ClsTopicId *string `json:"ClsTopicId,omitempty" name:"ClsTopicId"`
// 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP
Type *string `json:"Type,omitempty" name:"Type"`
// CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一
CodeSource *string `json:"CodeSource,omitempty" name:"CodeSource"`
// 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。
Layers []*LayerVersionSimple `json:"Layers,omitempty" name:"Layers" list`
// 死信队列参数
DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitempty" name:"DeadLetterConfig"`
// 公网访问配置
PublicNetConfig *PublicNetConfigIn `json:"PublicNetConfig,omitempty" name:"PublicNetConfig"`
// 文件系统配置参数,用于云函数挂载文件系统
CfsConfig *CfsConfig `json:"CfsConfig,omitempty" name:"CfsConfig"`
// 函数初始化超时时间
InitTimeout *int64 `json:"InitTimeout,omitempty" name:"InitTimeout"`
// 函数 Tag 参数,以键值对数组形式传入
Tags []*Tag `json:"Tags,omitempty" name:"Tags" list`
// 是否开启异步属性,TRUE 为开启,FALSE为关闭
AsyncRunEnable *string `json:"AsyncRunEnable,omitempty" name:"AsyncRunEnable"`
// 是否开启事件追踪,TRUE 为开启,FALSE为关闭
TraceEnable *string `json:"TraceEnable,omitempty" name:"TraceEnable"`
}
func NewCreateFunctionRequest ¶
func NewCreateFunctionRequest() (request *CreateFunctionRequest)
func (*CreateFunctionRequest) FromJsonString ¶
func (r *CreateFunctionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateFunctionRequest) ToJsonString ¶
func (r *CreateFunctionRequest) ToJsonString() string
type CreateFunctionResponse ¶
type CreateFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateFunctionResponse ¶
func NewCreateFunctionResponse() (response *CreateFunctionResponse)
func (*CreateFunctionResponse) FromJsonString ¶
func (r *CreateFunctionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateFunctionResponse) ToJsonString ¶
func (r *CreateFunctionResponse) ToJsonString() string
type CreateNamespaceRequest ¶
type CreateNamespaceRequest struct {
*tchttp.BaseRequest
// 命名空间名称
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 命名空间描述
Description *string `json:"Description,omitempty" name:"Description"`
}
func NewCreateNamespaceRequest ¶
func NewCreateNamespaceRequest() (request *CreateNamespaceRequest)
func (*CreateNamespaceRequest) FromJsonString ¶
func (r *CreateNamespaceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateNamespaceRequest) ToJsonString ¶
func (r *CreateNamespaceRequest) ToJsonString() string
type CreateNamespaceResponse ¶
type CreateNamespaceResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateNamespaceResponse ¶
func NewCreateNamespaceResponse() (response *CreateNamespaceResponse)
func (*CreateNamespaceResponse) FromJsonString ¶
func (r *CreateNamespaceResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateNamespaceResponse) ToJsonString ¶
func (r *CreateNamespaceResponse) ToJsonString() string
type CreateTriggerRequest ¶
type CreateTriggerRequest struct {
*tchttp.BaseRequest
// 新建触发器绑定的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明
TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"`
// 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型
Type *string `json:"Type,omitempty" name:"Type"`
// 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)
TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数的版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭
Enable *string `json:"Enable,omitempty" name:"Enable"`
// 用户自定义参数,仅支持timer触发器
CustomArgument *string `json:"CustomArgument,omitempty" name:"CustomArgument"`
}
func NewCreateTriggerRequest ¶
func NewCreateTriggerRequest() (request *CreateTriggerRequest)
func (*CreateTriggerRequest) FromJsonString ¶
func (r *CreateTriggerRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTriggerRequest) ToJsonString ¶
func (r *CreateTriggerRequest) ToJsonString() string
type CreateTriggerResponse ¶
type CreateTriggerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 触发器信息
TriggerInfo *Trigger `json:"TriggerInfo,omitempty" name:"TriggerInfo"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateTriggerResponse ¶
func NewCreateTriggerResponse() (response *CreateTriggerResponse)
func (*CreateTriggerResponse) FromJsonString ¶
func (r *CreateTriggerResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateTriggerResponse) ToJsonString ¶
func (r *CreateTriggerResponse) ToJsonString() string
type DeadLetterConfig ¶
type DeleteAliasRequest ¶
type DeleteAliasRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 别名的名称
Name *string `json:"Name,omitempty" name:"Name"`
// 函数所在的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewDeleteAliasRequest ¶
func NewDeleteAliasRequest() (request *DeleteAliasRequest)
func (*DeleteAliasRequest) FromJsonString ¶
func (r *DeleteAliasRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAliasRequest) ToJsonString ¶
func (r *DeleteAliasRequest) ToJsonString() string
type DeleteAliasResponse ¶
type DeleteAliasResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteAliasResponse ¶
func NewDeleteAliasResponse() (response *DeleteAliasResponse)
func (*DeleteAliasResponse) FromJsonString ¶
func (r *DeleteAliasResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteAliasResponse) ToJsonString ¶
func (r *DeleteAliasResponse) ToJsonString() string
type DeleteFunctionRequest ¶
type DeleteFunctionRequest struct {
*tchttp.BaseRequest
// 要删除的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
}
func NewDeleteFunctionRequest ¶
func NewDeleteFunctionRequest() (request *DeleteFunctionRequest)
func (*DeleteFunctionRequest) FromJsonString ¶
func (r *DeleteFunctionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteFunctionRequest) ToJsonString ¶
func (r *DeleteFunctionRequest) ToJsonString() string
type DeleteFunctionResponse ¶
type DeleteFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteFunctionResponse ¶
func NewDeleteFunctionResponse() (response *DeleteFunctionResponse)
func (*DeleteFunctionResponse) FromJsonString ¶
func (r *DeleteFunctionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteFunctionResponse) ToJsonString ¶
func (r *DeleteFunctionResponse) ToJsonString() string
type DeleteLayerVersionRequest ¶
type DeleteLayerVersionRequest struct {
*tchttp.BaseRequest
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
}
func NewDeleteLayerVersionRequest ¶
func NewDeleteLayerVersionRequest() (request *DeleteLayerVersionRequest)
func (*DeleteLayerVersionRequest) FromJsonString ¶
func (r *DeleteLayerVersionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLayerVersionRequest) ToJsonString ¶
func (r *DeleteLayerVersionRequest) ToJsonString() string
type DeleteLayerVersionResponse ¶
type DeleteLayerVersionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteLayerVersionResponse ¶
func NewDeleteLayerVersionResponse() (response *DeleteLayerVersionResponse)
func (*DeleteLayerVersionResponse) FromJsonString ¶
func (r *DeleteLayerVersionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteLayerVersionResponse) ToJsonString ¶
func (r *DeleteLayerVersionResponse) ToJsonString() string
type DeleteNamespaceRequest ¶
type DeleteNamespaceRequest struct {
*tchttp.BaseRequest
// 命名空间名称
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewDeleteNamespaceRequest ¶
func NewDeleteNamespaceRequest() (request *DeleteNamespaceRequest)
func (*DeleteNamespaceRequest) FromJsonString ¶
func (r *DeleteNamespaceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteNamespaceRequest) ToJsonString ¶
func (r *DeleteNamespaceRequest) ToJsonString() string
type DeleteNamespaceResponse ¶
type DeleteNamespaceResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteNamespaceResponse ¶
func NewDeleteNamespaceResponse() (response *DeleteNamespaceResponse)
func (*DeleteNamespaceResponse) FromJsonString ¶
func (r *DeleteNamespaceResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteNamespaceResponse) ToJsonString ¶
func (r *DeleteNamespaceResponse) ToJsonString() string
type DeleteProvisionedConcurrencyConfigRequest ¶
type DeleteProvisionedConcurrencyConfigRequest struct {
*tchttp.BaseRequest
// 需要删除预置并发的函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的版本号
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 函数所属命名空间,默认为default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewDeleteProvisionedConcurrencyConfigRequest ¶
func NewDeleteProvisionedConcurrencyConfigRequest() (request *DeleteProvisionedConcurrencyConfigRequest)
func (*DeleteProvisionedConcurrencyConfigRequest) FromJsonString ¶
func (r *DeleteProvisionedConcurrencyConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteProvisionedConcurrencyConfigRequest) ToJsonString ¶
func (r *DeleteProvisionedConcurrencyConfigRequest) ToJsonString() string
type DeleteProvisionedConcurrencyConfigResponse ¶
type DeleteProvisionedConcurrencyConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteProvisionedConcurrencyConfigResponse ¶
func NewDeleteProvisionedConcurrencyConfigResponse() (response *DeleteProvisionedConcurrencyConfigResponse)
func (*DeleteProvisionedConcurrencyConfigResponse) FromJsonString ¶
func (r *DeleteProvisionedConcurrencyConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteProvisionedConcurrencyConfigResponse) ToJsonString ¶
func (r *DeleteProvisionedConcurrencyConfigResponse) ToJsonString() string
type DeleteReservedConcurrencyConfigRequest ¶
type DeleteReservedConcurrencyConfigRequest struct {
*tchttp.BaseRequest
// 需要删除预置并发的函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所属命名空间,默认为default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewDeleteReservedConcurrencyConfigRequest ¶
func NewDeleteReservedConcurrencyConfigRequest() (request *DeleteReservedConcurrencyConfigRequest)
func (*DeleteReservedConcurrencyConfigRequest) FromJsonString ¶
func (r *DeleteReservedConcurrencyConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteReservedConcurrencyConfigRequest) ToJsonString ¶
func (r *DeleteReservedConcurrencyConfigRequest) ToJsonString() string
type DeleteReservedConcurrencyConfigResponse ¶
type DeleteReservedConcurrencyConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteReservedConcurrencyConfigResponse ¶
func NewDeleteReservedConcurrencyConfigResponse() (response *DeleteReservedConcurrencyConfigResponse)
func (*DeleteReservedConcurrencyConfigResponse) FromJsonString ¶
func (r *DeleteReservedConcurrencyConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteReservedConcurrencyConfigResponse) ToJsonString ¶
func (r *DeleteReservedConcurrencyConfigResponse) ToJsonString() string
type DeleteTriggerRequest ¶
type DeleteTriggerRequest struct {
*tchttp.BaseRequest
// 函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 要删除的触发器名称
TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"`
// 要删除的触发器类型,目前支持 cos 、cmq、 timer、ckafka 类型
Type *string `json:"Type,omitempty" name:"Type"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 如果删除的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果删除的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段
TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"`
// 函数的版本信息
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
}
func NewDeleteTriggerRequest ¶
func NewDeleteTriggerRequest() (request *DeleteTriggerRequest)
func (*DeleteTriggerRequest) FromJsonString ¶
func (r *DeleteTriggerRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTriggerRequest) ToJsonString ¶
func (r *DeleteTriggerRequest) ToJsonString() string
type DeleteTriggerResponse ¶
type DeleteTriggerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteTriggerResponse ¶
func NewDeleteTriggerResponse() (response *DeleteTriggerResponse)
func (*DeleteTriggerResponse) FromJsonString ¶
func (r *DeleteTriggerResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*DeleteTriggerResponse) ToJsonString ¶
func (r *DeleteTriggerResponse) ToJsonString() string
type EipConfigIn ¶
type EipConfigIn struct {
// Eip开启状态,取值['ENABLE','DISABLE']
EipStatus *string `json:"EipStatus,omitempty" name:"EipStatus"`
}
type EipConfigOut ¶
type EipOutConfig ¶
type Environment ¶
type Environment struct {
// 环境变量数组
Variables []*Variable `json:"Variables,omitempty" name:"Variables" list`
}
type Function ¶
type Function struct {
// 修改时间
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 创建时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 运行时
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数ID
FunctionId *string `json:"FunctionId,omitempty" name:"FunctionId"`
// 命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数状态,状态值及流转[参考此处](https://cloud.tencent.com/document/product/583/47175)
Status *string `json:"Status,omitempty" name:"Status"`
// 函数状态详情
StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
// 函数描述
Description *string `json:"Description,omitempty" name:"Description"`
// 函数标签
Tags []*Tag `json:"Tags,omitempty" name:"Tags" list`
// 函数类型,取值为 HTTP 或者 Event
Type *string `json:"Type,omitempty" name:"Type"`
// 函数状态失败原因
StatusReasons []*StatusReason `json:"StatusReasons,omitempty" name:"StatusReasons" list`
// 函数所有版本预置并发内存总和
// 注意:此字段可能返回 null,表示取不到有效值。
TotalProvisionedConcurrencyMem *uint64 `json:"TotalProvisionedConcurrencyMem,omitempty" name:"TotalProvisionedConcurrencyMem"`
// 函数并发保留内存
// 注意:此字段可能返回 null,表示取不到有效值。
ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitempty" name:"ReservedConcurrencyMem"`
}
type FunctionLog ¶
type FunctionLog struct {
// 函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数执行完成后的返回值
RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"`
// 执行该函数对应的requestId
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
// 函数开始执行时的时间点
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 函数执行结果,如果是 0 表示执行成功,其他值表示失败
RetCode *int64 `json:"RetCode,omitempty" name:"RetCode"`
// 函数调用是否结束,如果是 1 表示执行结束,其他值表示调用异常
InvokeFinished *int64 `json:"InvokeFinished,omitempty" name:"InvokeFinished"`
// 函数执行耗时,单位为 ms
Duration *float64 `json:"Duration,omitempty" name:"Duration"`
// 函数计费时间,根据 duration 向上取最近的 100ms,单位为ms
BillDuration *int64 `json:"BillDuration,omitempty" name:"BillDuration"`
// 函数执行时消耗实际内存大小,单位为 Byte
MemUsage *int64 `json:"MemUsage,omitempty" name:"MemUsage"`
// 函数执行过程中的日志输出
Log *string `json:"Log,omitempty" name:"Log"`
// 日志等级
Level *string `json:"Level,omitempty" name:"Level"`
// 日志来源
Source *string `json:"Source,omitempty" name:"Source"`
// 重试次数
RetryNum *uint64 `json:"RetryNum,omitempty" name:"RetryNum"`
}
type FunctionVersion ¶
type FunctionVersion struct {
// 函数版本名称
Version *string `json:"Version,omitempty" name:"Version"`
// 版本描述信息
// 注意:此字段可能返回 null,表示取不到有效值。
Description *string `json:"Description,omitempty" name:"Description"`
// 创建时间
// 注意:此字段可能返回 null,表示取不到有效值。
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
}
type GetAccountRequest ¶
type GetAccountRequest struct {
*tchttp.BaseRequest
}
func NewGetAccountRequest ¶
func NewGetAccountRequest() (request *GetAccountRequest)
func (*GetAccountRequest) FromJsonString ¶
func (r *GetAccountRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAccountRequest) ToJsonString ¶
func (r *GetAccountRequest) ToJsonString() string
type GetAccountResponse ¶
type GetAccountResponse struct {
*tchttp.BaseResponse
Response *struct {
// 命名空间已使用的信息
AccountUsage *UsageInfo `json:"AccountUsage,omitempty" name:"AccountUsage"`
// 命名空间限制的信息
AccountLimit *LimitsInfo `json:"AccountLimit,omitempty" name:"AccountLimit"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetAccountResponse ¶
func NewGetAccountResponse() (response *GetAccountResponse)
func (*GetAccountResponse) FromJsonString ¶
func (r *GetAccountResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAccountResponse) ToJsonString ¶
func (r *GetAccountResponse) ToJsonString() string
type GetAliasRequest ¶
type GetAliasRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 别名的名称
Name *string `json:"Name,omitempty" name:"Name"`
// 函数所在的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewGetAliasRequest ¶
func NewGetAliasRequest() (request *GetAliasRequest)
func (*GetAliasRequest) FromJsonString ¶
func (r *GetAliasRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAliasRequest) ToJsonString ¶
func (r *GetAliasRequest) ToJsonString() string
type GetAliasResponse ¶
type GetAliasResponse struct {
*tchttp.BaseResponse
Response *struct {
// 别名指向的主版本
FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"`
// 别名的名称
Name *string `json:"Name,omitempty" name:"Name"`
// 别名的路由信息
RoutingConfig *RoutingConfig `json:"RoutingConfig,omitempty" name:"RoutingConfig"`
// 别名的描述
// 注意:此字段可能返回 null,表示取不到有效值。
Description *string `json:"Description,omitempty" name:"Description"`
// 创建时间
// 注意:此字段可能返回 null,表示取不到有效值。
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetAliasResponse ¶
func NewGetAliasResponse() (response *GetAliasResponse)
func (*GetAliasResponse) FromJsonString ¶
func (r *GetAliasResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAliasResponse) ToJsonString ¶
func (r *GetAliasResponse) ToJsonString() string
type GetFunctionAddressRequest ¶
type GetFunctionAddressRequest struct {
*tchttp.BaseRequest
// 函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewGetFunctionAddressRequest ¶
func NewGetFunctionAddressRequest() (request *GetFunctionAddressRequest)
func (*GetFunctionAddressRequest) FromJsonString ¶
func (r *GetFunctionAddressRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFunctionAddressRequest) ToJsonString ¶
func (r *GetFunctionAddressRequest) ToJsonString() string
type GetFunctionAddressResponse ¶
type GetFunctionAddressResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数的Cos地址
Url *string `json:"Url,omitempty" name:"Url"`
// 函数的SHA256编码
CodeSha256 *string `json:"CodeSha256,omitempty" name:"CodeSha256"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetFunctionAddressResponse ¶
func NewGetFunctionAddressResponse() (response *GetFunctionAddressResponse)
func (*GetFunctionAddressResponse) FromJsonString ¶
func (r *GetFunctionAddressResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFunctionAddressResponse) ToJsonString ¶
func (r *GetFunctionAddressResponse) ToJsonString() string
type GetFunctionEventInvokeConfigRequest ¶
type GetFunctionEventInvokeConfigRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所属命名空间,默认为default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数版本,默认为$LATEST
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
}
func NewGetFunctionEventInvokeConfigRequest ¶
func NewGetFunctionEventInvokeConfigRequest() (request *GetFunctionEventInvokeConfigRequest)
func (*GetFunctionEventInvokeConfigRequest) FromJsonString ¶
func (r *GetFunctionEventInvokeConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFunctionEventInvokeConfigRequest) ToJsonString ¶
func (r *GetFunctionEventInvokeConfigRequest) ToJsonString() string
type GetFunctionEventInvokeConfigResponse ¶
type GetFunctionEventInvokeConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 异步重试配置信息
AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitempty" name:"AsyncTriggerConfig"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetFunctionEventInvokeConfigResponse ¶
func NewGetFunctionEventInvokeConfigResponse() (response *GetFunctionEventInvokeConfigResponse)
func (*GetFunctionEventInvokeConfigResponse) FromJsonString ¶
func (r *GetFunctionEventInvokeConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFunctionEventInvokeConfigResponse) ToJsonString ¶
func (r *GetFunctionEventInvokeConfigResponse) ToJsonString() string
type GetFunctionLogsRequest ¶
type GetFunctionLogsRequest struct {
*tchttp.BaseRequest
// 函数的名称。
// - 为保证[获取函数运行日志](https://cloud.tencent.com/document/product/583/18583)接口`GetFunctionLogs`兼容性,输入参数`FunctionName`仍为非必填项,但建议填写该参数,否则可能导致日志获取失败。
// - 函数关联日志服务后,建议使用[日志服务](https://cloud.tencent.com/document/product/614/16875)相关接口以获得最佳日志检索体验。
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 数据的偏移量,Offset+Limit不能大于10000
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 返回数据的长度,Offset+Limit不能大于10000
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 以升序还是降序的方式对日志进行排序,可选值 desc和 asc
Order *string `json:"Order,omitempty" name:"Order"`
// 根据某个字段排序日志,支持以下字段:function_name, duration, mem_usage, start_time
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// 日志过滤条件。可用来区分正确和错误日志,filter.RetCode=not0 表示只返回错误日志,filter.RetCode=is0 表示只返回正确日志,不传,则返回所有日志
Filter *LogFilter `json:"Filter,omitempty" name:"Filter"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数的版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 执行该函数对应的requestId
FunctionRequestId *string `json:"FunctionRequestId,omitempty" name:"FunctionRequestId"`
// 查询的具体日期,例如:2017-05-16 20:00:00,只能与endtime相差一天之内
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询的具体日期,例如:2017-05-16 20:59:59,只能与startTime相差一天之内
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 该字段已下线
SearchContext *LogSearchContext `json:"SearchContext,omitempty" name:"SearchContext"`
}
func NewGetFunctionLogsRequest ¶
func NewGetFunctionLogsRequest() (request *GetFunctionLogsRequest)
func (*GetFunctionLogsRequest) FromJsonString ¶
func (r *GetFunctionLogsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFunctionLogsRequest) ToJsonString ¶
func (r *GetFunctionLogsRequest) ToJsonString() string
type GetFunctionLogsResponse ¶
type GetFunctionLogsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数日志的总数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 函数日志信息
Data []*FunctionLog `json:"Data,omitempty" name:"Data" list`
// 该字段已下线
SearchContext *LogSearchContext `json:"SearchContext,omitempty" name:"SearchContext"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetFunctionLogsResponse ¶
func NewGetFunctionLogsResponse() (response *GetFunctionLogsResponse)
func (*GetFunctionLogsResponse) FromJsonString ¶
func (r *GetFunctionLogsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFunctionLogsResponse) ToJsonString ¶
func (r *GetFunctionLogsResponse) ToJsonString() string
type GetFunctionRequest ¶
type GetFunctionRequest struct {
*tchttp.BaseRequest
// 需要获取详情的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的版本号
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 是否显示代码, TRUE表示显示代码,FALSE表示不显示代码,大于1M的入口文件不会显示
ShowCode *string `json:"ShowCode,omitempty" name:"ShowCode"`
}
func NewGetFunctionRequest ¶
func NewGetFunctionRequest() (request *GetFunctionRequest)
func (*GetFunctionRequest) FromJsonString ¶
func (r *GetFunctionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFunctionRequest) ToJsonString ¶
func (r *GetFunctionRequest) ToJsonString() string
type GetFunctionResponse ¶
type GetFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数的最后修改时间
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 函数的代码
CodeInfo *string `json:"CodeInfo,omitempty" name:"CodeInfo"`
// 函数的描述信息
Description *string `json:"Description,omitempty" name:"Description"`
// 函数的触发器列表
Triggers []*Trigger `json:"Triggers,omitempty" name:"Triggers" list`
// 函数的入口
Handler *string `json:"Handler,omitempty" name:"Handler"`
// 函数代码大小
CodeSize *int64 `json:"CodeSize,omitempty" name:"CodeSize"`
// 函数的超时时间
Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"`
// 函数的版本
FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"`
// 函数的最大可用内存
MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"`
// 函数的运行环境
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的私有网络
VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"`
// 是否使用GPU
UseGpu *string `json:"UseGpu,omitempty" name:"UseGpu"`
// 函数的环境变量
Environment *Environment `json:"Environment,omitempty" name:"Environment"`
// 代码是否正确
CodeResult *string `json:"CodeResult,omitempty" name:"CodeResult"`
// 代码错误信息
CodeError *string `json:"CodeError,omitempty" name:"CodeError"`
// 代码错误码
ErrNo *int64 `json:"ErrNo,omitempty" name:"ErrNo"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数绑定的角色
Role *string `json:"Role,omitempty" name:"Role"`
// 是否自动安装依赖
InstallDependency *string `json:"InstallDependency,omitempty" name:"InstallDependency"`
// 函数状态,状态值及流转[参考说明](https://cloud.tencent.com/document/product/583/47175)
Status *string `json:"Status,omitempty" name:"Status"`
// 状态描述
StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
// 日志投递到的Cls日志集
ClsLogsetId *string `json:"ClsLogsetId,omitempty" name:"ClsLogsetId"`
// 日志投递到的Cls Topic
ClsTopicId *string `json:"ClsTopicId,omitempty" name:"ClsTopicId"`
// 函数ID
FunctionId *string `json:"FunctionId,omitempty" name:"FunctionId"`
// 函数的标签列表
Tags []*Tag `json:"Tags,omitempty" name:"Tags" list`
// EipConfig配置
EipConfig *EipOutConfig `json:"EipConfig,omitempty" name:"EipConfig"`
// 域名信息
AccessInfo *AccessInfo `json:"AccessInfo,omitempty" name:"AccessInfo"`
// 函数类型,取值为HTTP或者Event
Type *string `json:"Type,omitempty" name:"Type"`
// 是否启用L5
L5Enable *string `json:"L5Enable,omitempty" name:"L5Enable"`
// 函数关联的Layer版本信息
Layers []*LayerVersionInfo `json:"Layers,omitempty" name:"Layers" list`
// 函数关联的死信队列信息
DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitempty" name:"DeadLetterConfig"`
// 函数创建回见
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 公网访问配置
// 注意:此字段可能返回 null,表示取不到有效值。
PublicNetConfig *PublicNetConfigOut `json:"PublicNetConfig,omitempty" name:"PublicNetConfig"`
// 是否启用Ons
// 注意:此字段可能返回 null,表示取不到有效值。
OnsEnable *string `json:"OnsEnable,omitempty" name:"OnsEnable"`
// 文件系统配置参数,用于云函数挂载文件系统
// 注意:此字段可能返回 null,表示取不到有效值。
CfsConfig *CfsConfig `json:"CfsConfig,omitempty" name:"CfsConfig"`
// 函数的计费状态,状态值[参考此处](https://cloud.tencent.com/document/product/583/47175#.E5.87.BD.E6.95.B0.E8.AE.A1.E8.B4.B9.E7.8A.B6.E6.80.81)
// 注意:此字段可能返回 null,表示取不到有效值。
AvailableStatus *string `json:"AvailableStatus,omitempty" name:"AvailableStatus"`
// 函数版本
// 注意:此字段可能返回 null,表示取不到有效值。
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 函数初始化超时时间
InitTimeout *int64 `json:"InitTimeout,omitempty" name:"InitTimeout"`
// 函数状态失败原因
// 注意:此字段可能返回 null,表示取不到有效值。
StatusReasons []*StatusReason `json:"StatusReasons,omitempty" name:"StatusReasons" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetFunctionResponse ¶
func NewGetFunctionResponse() (response *GetFunctionResponse)
func (*GetFunctionResponse) FromJsonString ¶
func (r *GetFunctionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetFunctionResponse) ToJsonString ¶
func (r *GetFunctionResponse) ToJsonString() string
type GetLayerVersionRequest ¶
type GetLayerVersionRequest struct {
*tchttp.BaseRequest
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
}
func NewGetLayerVersionRequest ¶
func NewGetLayerVersionRequest() (request *GetLayerVersionRequest)
func (*GetLayerVersionRequest) FromJsonString ¶
func (r *GetLayerVersionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetLayerVersionRequest) ToJsonString ¶
func (r *GetLayerVersionRequest) ToJsonString() string
type GetLayerVersionResponse ¶
type GetLayerVersionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 适配的运行时
CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitempty" name:"CompatibleRuntimes" list`
// 层中版本文件的SHA256编码
CodeSha256 *string `json:"CodeSha256,omitempty" name:"CodeSha256"`
// 层中版本文件的下载地址
Location *string `json:"Location,omitempty" name:"Location"`
// 版本的创建时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 版本的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 许可证信息
LicenseInfo *string `json:"LicenseInfo,omitempty" name:"LicenseInfo"`
// 版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 层的具体版本当前状态,可能取值:
// Active 正常
// Publishing 发布中
// PublishFailed 发布失败
// Deleted 已删除
Status *string `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetLayerVersionResponse ¶
func NewGetLayerVersionResponse() (response *GetLayerVersionResponse)
func (*GetLayerVersionResponse) FromJsonString ¶
func (r *GetLayerVersionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetLayerVersionResponse) ToJsonString ¶
func (r *GetLayerVersionResponse) ToJsonString() string
type GetProvisionedConcurrencyConfigRequest ¶
type GetProvisionedConcurrencyConfigRequest struct {
*tchttp.BaseRequest
// 需要获取预置并发详情的函数名称。
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所在的命名空间,默认为default。
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数版本号,不传则返回函数所有版本的预置并发信息。
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
}
func NewGetProvisionedConcurrencyConfigRequest ¶
func NewGetProvisionedConcurrencyConfigRequest() (request *GetProvisionedConcurrencyConfigRequest)
func (*GetProvisionedConcurrencyConfigRequest) FromJsonString ¶
func (r *GetProvisionedConcurrencyConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetProvisionedConcurrencyConfigRequest) ToJsonString ¶
func (r *GetProvisionedConcurrencyConfigRequest) ToJsonString() string
type GetProvisionedConcurrencyConfigResponse ¶
type GetProvisionedConcurrencyConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 该函数剩余可配置的预置并发数。
UnallocatedConcurrencyNum *uint64 `json:"UnallocatedConcurrencyNum,omitempty" name:"UnallocatedConcurrencyNum"`
// 函数已预置的并发配置详情。
Allocated []*VersionProvisionedConcurrencyInfo `json:"Allocated,omitempty" name:"Allocated" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetProvisionedConcurrencyConfigResponse ¶
func NewGetProvisionedConcurrencyConfigResponse() (response *GetProvisionedConcurrencyConfigResponse)
func (*GetProvisionedConcurrencyConfigResponse) FromJsonString ¶
func (r *GetProvisionedConcurrencyConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetProvisionedConcurrencyConfigResponse) ToJsonString ¶
func (r *GetProvisionedConcurrencyConfigResponse) ToJsonString() string
type GetReservedConcurrencyConfigRequest ¶
type GetReservedConcurrencyConfigRequest struct {
*tchttp.BaseRequest
// 需要获取预置并发详情的函数名称。
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所在的命名空间,默认为default。
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewGetReservedConcurrencyConfigRequest ¶
func NewGetReservedConcurrencyConfigRequest() (request *GetReservedConcurrencyConfigRequest)
func (*GetReservedConcurrencyConfigRequest) FromJsonString ¶
func (r *GetReservedConcurrencyConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetReservedConcurrencyConfigRequest) ToJsonString ¶
func (r *GetReservedConcurrencyConfigRequest) ToJsonString() string
type GetReservedConcurrencyConfigResponse ¶
type GetReservedConcurrencyConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 该函数的保留并发内存。
// 注意:此字段可能返回 null,表示取不到有效值。
ReservedMem *uint64 `json:"ReservedMem,omitempty" name:"ReservedMem"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetReservedConcurrencyConfigResponse ¶
func NewGetReservedConcurrencyConfigResponse() (response *GetReservedConcurrencyConfigResponse)
func (*GetReservedConcurrencyConfigResponse) FromJsonString ¶
func (r *GetReservedConcurrencyConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetReservedConcurrencyConfigResponse) ToJsonString ¶
func (r *GetReservedConcurrencyConfigResponse) ToJsonString() string
type InvokeRequest ¶
type InvokeRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// RequestResponse(同步) 和 Event(异步),默认为同步
InvocationType *string `json:"InvocationType,omitempty" name:"InvocationType"`
// 触发函数的版本号或别名
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 运行函数时的参数,以json格式传入,最大支持的参数长度是 1M
ClientContext *string `json:"ClientContext,omitempty" name:"ClientContext"`
// 同步调用时指定该字段,返回值会包含4K的日志,可选值为None和Tail,默认值为None。当该值为Tail时,返回参数中的Log字段会包含对应的函数执行日志
LogType *string `json:"LogType,omitempty" name:"LogType"`
// 命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节
RoutingKey *string `json:"RoutingKey,omitempty" name:"RoutingKey"`
}
func NewInvokeRequest ¶
func NewInvokeRequest() (request *InvokeRequest)
func (*InvokeRequest) FromJsonString ¶
func (r *InvokeRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InvokeRequest) ToJsonString ¶
func (r *InvokeRequest) ToJsonString() string
type InvokeResponse ¶
type InvokeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数执行结果
Result *Result `json:"Result,omitempty" name:"Result"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewInvokeResponse ¶
func NewInvokeResponse() (response *InvokeResponse)
func (*InvokeResponse) FromJsonString ¶
func (r *InvokeResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InvokeResponse) ToJsonString ¶
func (r *InvokeResponse) ToJsonString() string
type LayerVersionInfo ¶
type LayerVersionInfo struct {
// 版本适用的运行时
// 注意:此字段可能返回 null,表示取不到有效值。
CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitempty" name:"CompatibleRuntimes" list`
// 创建时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 版本描述
// 注意:此字段可能返回 null,表示取不到有效值。
Description *string `json:"Description,omitempty" name:"Description"`
// 许可证信息
// 注意:此字段可能返回 null,表示取不到有效值。
LicenseInfo *string `json:"LicenseInfo,omitempty" name:"LicenseInfo"`
// 版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 层的具体版本当前状态,状态值[参考此处](https://cloud.tencent.com/document/product/583/47175#.E5.B1.82.EF.BC.88layer.EF.BC.89.E7.8A.B6.E6.80.81)
Status *string `json:"Status,omitempty" name:"Status"`
}
type LayerVersionSimple ¶
type LimitsInfo ¶
type LimitsInfo struct {
// 命名空间个数限制
NamespacesCount *int64 `json:"NamespacesCount,omitempty" name:"NamespacesCount"`
// 命名空间限制信息
Namespace []*NamespaceLimit `json:"Namespace,omitempty" name:"Namespace" list`
}
type ListAliasesRequest ¶
type ListAliasesRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所在的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 如果提供此参数,则只返回与该函数版本有关联的别名
FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"`
// 数据偏移量,默认值为 0
Offset *string `json:"Offset,omitempty" name:"Offset"`
// 返回数据长度,默认值为 20
Limit *string `json:"Limit,omitempty" name:"Limit"`
}
func NewListAliasesRequest ¶
func NewListAliasesRequest() (request *ListAliasesRequest)
func (*ListAliasesRequest) FromJsonString ¶
func (r *ListAliasesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAliasesRequest) ToJsonString ¶
func (r *ListAliasesRequest) ToJsonString() string
type ListAliasesResponse ¶
type ListAliasesResponse struct {
*tchttp.BaseResponse
Response *struct {
// 别名列表
Aliases []*Alias `json:"Aliases,omitempty" name:"Aliases" list`
// 别名总数
// 注意:此字段可能返回 null,表示取不到有效值。
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListAliasesResponse ¶
func NewListAliasesResponse() (response *ListAliasesResponse)
func (*ListAliasesResponse) FromJsonString ¶
func (r *ListAliasesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAliasesResponse) ToJsonString ¶
func (r *ListAliasesResponse) ToJsonString() string
type ListAsyncEventsRequest ¶
type ListAsyncEventsRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 过滤条件,函数版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 过滤条件,调用类型列表
InvokeType []*string `json:"InvokeType,omitempty" name:"InvokeType" list`
// 过滤条件,事件状态列表
Status []*string `json:"Status,omitempty" name:"Status" list`
// 过滤条件,开始执行时间左闭右开区间
StartTimeInterval *TimeInterval `json:"StartTimeInterval,omitempty" name:"StartTimeInterval"`
// 过滤条件,结束执行时间左闭右开区间
EndTimeInterval *TimeInterval `json:"EndTimeInterval,omitempty" name:"EndTimeInterval"`
// 可选值 ASC 和 DESC,默认 DESC
Order *string `json:"Order,omitempty" name:"Order"`
// 可选值 StartTime 和 EndTime,默认值 StartTime
Orderby *string `json:"Orderby,omitempty" name:"Orderby"`
// 数据偏移量,默认值为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 返回数据长度,默认值为 20,最大值 100
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 过滤条件,事件调用请求id
InvokeRequestId *string `json:"InvokeRequestId,omitempty" name:"InvokeRequestId"`
}
func NewListAsyncEventsRequest ¶
func NewListAsyncEventsRequest() (request *ListAsyncEventsRequest)
func (*ListAsyncEventsRequest) FromJsonString ¶
func (r *ListAsyncEventsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAsyncEventsRequest) ToJsonString ¶
func (r *ListAsyncEventsRequest) ToJsonString() string
type ListAsyncEventsResponse ¶
type ListAsyncEventsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 满足过滤条件的事件总数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 异步事件列表
EventList []*AsyncEvent `json:"EventList,omitempty" name:"EventList" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListAsyncEventsResponse ¶
func NewListAsyncEventsResponse() (response *ListAsyncEventsResponse)
func (*ListAsyncEventsResponse) FromJsonString ¶
func (r *ListAsyncEventsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListAsyncEventsResponse) ToJsonString ¶
func (r *ListAsyncEventsResponse) ToJsonString() string
type ListFunctionsRequest ¶
type ListFunctionsRequest struct {
*tchttp.BaseRequest
// 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
Order *string `json:"Order,omitempty" name:"Order"`
// 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime, FunctionName
Orderby *string `json:"Orderby,omitempty" name:"Orderby"`
// 数据偏移量,默认值为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 返回数据长度,默认值为 20
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 支持FunctionName模糊匹配
SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
// 命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数描述,支持模糊搜索
Description *string `json:"Description,omitempty" name:"Description"`
// 过滤条件。
// - tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
//
// 每次请求的Filters的上限为10,Filter.Values的上限为5。
Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
}
func NewListFunctionsRequest ¶
func NewListFunctionsRequest() (request *ListFunctionsRequest)
func (*ListFunctionsRequest) FromJsonString ¶
func (r *ListFunctionsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListFunctionsRequest) ToJsonString ¶
func (r *ListFunctionsRequest) ToJsonString() string
type ListFunctionsResponse ¶
type ListFunctionsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数列表
Functions []*Function `json:"Functions,omitempty" name:"Functions" list`
// 总数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListFunctionsResponse ¶
func NewListFunctionsResponse() (response *ListFunctionsResponse)
func (*ListFunctionsResponse) FromJsonString ¶
func (r *ListFunctionsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListFunctionsResponse) ToJsonString ¶
func (r *ListFunctionsResponse) ToJsonString() string
type ListLayerVersionsRequest ¶
type ListLayerVersionsRequest struct {
*tchttp.BaseRequest
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 适配的运行时
CompatibleRuntime []*string `json:"CompatibleRuntime,omitempty" name:"CompatibleRuntime" list`
}
func NewListLayerVersionsRequest ¶
func NewListLayerVersionsRequest() (request *ListLayerVersionsRequest)
func (*ListLayerVersionsRequest) FromJsonString ¶
func (r *ListLayerVersionsRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListLayerVersionsRequest) ToJsonString ¶
func (r *ListLayerVersionsRequest) ToJsonString() string
type ListLayerVersionsResponse ¶
type ListLayerVersionsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 层版本列表
LayerVersions []*LayerVersionInfo `json:"LayerVersions,omitempty" name:"LayerVersions" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListLayerVersionsResponse ¶
func NewListLayerVersionsResponse() (response *ListLayerVersionsResponse)
func (*ListLayerVersionsResponse) FromJsonString ¶
func (r *ListLayerVersionsResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListLayerVersionsResponse) ToJsonString ¶
func (r *ListLayerVersionsResponse) ToJsonString() string
type ListLayersRequest ¶
type ListLayersRequest struct {
*tchttp.BaseRequest
// 适配的运行时
CompatibleRuntime *string `json:"CompatibleRuntime,omitempty" name:"CompatibleRuntime"`
// 偏移位置
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 查询数目限制
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 查询key,模糊匹配名称
SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
}
func NewListLayersRequest ¶
func NewListLayersRequest() (request *ListLayersRequest)
func (*ListLayersRequest) FromJsonString ¶
func (r *ListLayersRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListLayersRequest) ToJsonString ¶
func (r *ListLayersRequest) ToJsonString() string
type ListLayersResponse ¶
type ListLayersResponse struct {
*tchttp.BaseResponse
Response *struct {
// 层列表
Layers []*LayerVersionInfo `json:"Layers,omitempty" name:"Layers" list`
// 层总数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListLayersResponse ¶
func NewListLayersResponse() (response *ListLayersResponse)
func (*ListLayersResponse) FromJsonString ¶
func (r *ListLayersResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListLayersResponse) ToJsonString ¶
func (r *ListLayersResponse) ToJsonString() string
type ListNamespacesRequest ¶
type ListNamespacesRequest struct {
*tchttp.BaseRequest
// 返回数据长度,默认值为 20
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 数据的偏移量,默认值为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 根据哪个字段进行返回结果排序,支持以下字段:Name,Updatetime
Orderby *string `json:"Orderby,omitempty" name:"Orderby"`
// 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
Order *string `json:"Order,omitempty" name:"Order"`
}
func NewListNamespacesRequest ¶
func NewListNamespacesRequest() (request *ListNamespacesRequest)
func (*ListNamespacesRequest) FromJsonString ¶
func (r *ListNamespacesRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListNamespacesRequest) ToJsonString ¶
func (r *ListNamespacesRequest) ToJsonString() string
type ListNamespacesResponse ¶
type ListNamespacesResponse struct {
*tchttp.BaseResponse
Response *struct {
// namespace详情
Namespaces []*Namespace `json:"Namespaces,omitempty" name:"Namespaces" list`
// 返回的namespace数量
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListNamespacesResponse ¶
func NewListNamespacesResponse() (response *ListNamespacesResponse)
func (*ListNamespacesResponse) FromJsonString ¶
func (r *ListNamespacesResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListNamespacesResponse) ToJsonString ¶
func (r *ListNamespacesResponse) ToJsonString() string
type ListTriggersRequest ¶
type ListTriggersRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 命名空间,默认是default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 数据偏移量,默认值为 0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 返回数据长度,默认值为 20
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 根据哪个字段进行返回结果排序,支持以下字段:add_time,mod_time,默认mod_time
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// 以升序还是降序的方式返回结果,可选值 ASC 和 DESC,默认DESC
Order *string `json:"Order,omitempty" name:"Order"`
// * Qualifier:
// 函数版本,别名
Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
}
func NewListTriggersRequest ¶
func NewListTriggersRequest() (request *ListTriggersRequest)
func (*ListTriggersRequest) FromJsonString ¶
func (r *ListTriggersRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListTriggersRequest) ToJsonString ¶
func (r *ListTriggersRequest) ToJsonString() string
type ListTriggersResponse ¶
type ListTriggersResponse struct {
*tchttp.BaseResponse
Response *struct {
// 触发器总数
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 触发器列表
Triggers []*TriggerInfo `json:"Triggers,omitempty" name:"Triggers" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListTriggersResponse ¶
func NewListTriggersResponse() (response *ListTriggersResponse)
func (*ListTriggersResponse) FromJsonString ¶
func (r *ListTriggersResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListTriggersResponse) ToJsonString ¶
func (r *ListTriggersResponse) ToJsonString() string
type ListVersionByFunctionRequest ¶
type ListVersionByFunctionRequest struct {
*tchttp.BaseRequest
// 函数名
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所在命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 数据偏移量,默认值为 0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 返回数据长度,默认值为 20
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
Order *string `json:"Order,omitempty" name:"Order"`
// 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
}
func NewListVersionByFunctionRequest ¶
func NewListVersionByFunctionRequest() (request *ListVersionByFunctionRequest)
func (*ListVersionByFunctionRequest) FromJsonString ¶
func (r *ListVersionByFunctionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListVersionByFunctionRequest) ToJsonString ¶
func (r *ListVersionByFunctionRequest) ToJsonString() string
type ListVersionByFunctionResponse ¶
type ListVersionByFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数版本。
FunctionVersion []*string `json:"FunctionVersion,omitempty" name:"FunctionVersion" list`
// 函数版本列表。
// 注意:此字段可能返回 null,表示取不到有效值。
Versions []*FunctionVersion `json:"Versions,omitempty" name:"Versions" list`
// 函数版本总数。
// 注意:此字段可能返回 null,表示取不到有效值。
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListVersionByFunctionResponse ¶
func NewListVersionByFunctionResponse() (response *ListVersionByFunctionResponse)
func (*ListVersionByFunctionResponse) FromJsonString ¶
func (r *ListVersionByFunctionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*ListVersionByFunctionResponse) ToJsonString ¶
func (r *ListVersionByFunctionResponse) ToJsonString() string
type LogFilter ¶
type LogFilter struct {
// filter.RetCode的取值有:
// not0 表示只返回错误日志,
// is0 表示只返回正确日志,
// TimeLimitExceeded 返回函数调用发生超时的日志,
// ResourceLimitExceeded 返回函数调用发生资源超限的日志,
// UserCodeException 返回函数调用发生用户代码错误的日志,
// 无输入则返回所有日志。
RetCode *string `json:"RetCode,omitempty" name:"RetCode"`
}
type LogSearchContext ¶
type LogSearchContext struct {
// 偏移量
Offset *string `json:"Offset,omitempty" name:"Offset"`
// 日志条数
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 日志关键词
Keyword *string `json:"Keyword,omitempty" name:"Keyword"`
// 日志类型,支持Application和Platform,默认为Application
Type *string `json:"Type,omitempty" name:"Type"`
}
type Namespace ¶
type Namespace struct {
// 命名空间创建时间
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 命名空间修改时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 命名空间描述
Description *string `json:"Description,omitempty" name:"Description"`
// 命名空间名称
Name *string `json:"Name,omitempty" name:"Name"`
// 默认default,TCB表示是小程序云开发创建的
Type *string `json:"Type,omitempty" name:"Type"`
}
type NamespaceLimit ¶
type NamespaceLimit struct {
// 函数总数
FunctionsCount *int64 `json:"FunctionsCount,omitempty" name:"FunctionsCount"`
// Trigger信息
Trigger *TriggerCount `json:"Trigger,omitempty" name:"Trigger"`
// Namespace名称
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 并发量
ConcurrentExecutions *int64 `json:"ConcurrentExecutions,omitempty" name:"ConcurrentExecutions"`
// Timeout限制
TimeoutLimit *int64 `json:"TimeoutLimit,omitempty" name:"TimeoutLimit"`
// 测试事件限制
// 注意:此字段可能返回 null,表示取不到有效值。
TestModelLimit *int64 `json:"TestModelLimit,omitempty" name:"TestModelLimit"`
// 初始化超时限制
InitTimeoutLimit *int64 `json:"InitTimeoutLimit,omitempty" name:"InitTimeoutLimit"`
// 异步重试次数限制
RetryNumLimit *int64 `json:"RetryNumLimit,omitempty" name:"RetryNumLimit"`
// 异步重试消息保留时间下限
MinMsgTTL *int64 `json:"MinMsgTTL,omitempty" name:"MinMsgTTL"`
// 异步重试消息保留时间上限
MaxMsgTTL *int64 `json:"MaxMsgTTL,omitempty" name:"MaxMsgTTL"`
}
type NamespaceUsage ¶
type PublicNetConfigIn ¶
type PublicNetConfigIn struct {
// 是否开启公网访问能力取值['DISABLE','ENABLE']
PublicNetStatus *string `json:"PublicNetStatus,omitempty" name:"PublicNetStatus"`
// Eip配置
EipConfig *EipConfigIn `json:"EipConfig,omitempty" name:"EipConfig"`
}
type PublicNetConfigOut ¶
type PublicNetConfigOut struct {
// 是否开启公网访问能力取值['DISABLE','ENABLE']
PublicNetStatus *string `json:"PublicNetStatus,omitempty" name:"PublicNetStatus"`
// Eip配置
EipConfig *EipConfigOut `json:"EipConfig,omitempty" name:"EipConfig"`
}
type PublishLayerVersionRequest ¶
type PublishLayerVersionRequest struct {
*tchttp.BaseRequest
// 层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。
CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitempty" name:"CompatibleRuntimes" list`
// 层的文件来源或文件内容
Content *Code `json:"Content,omitempty" name:"Content"`
// 层的版本的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 层的软件许可证
LicenseInfo *string `json:"LicenseInfo,omitempty" name:"LicenseInfo"`
}
func NewPublishLayerVersionRequest ¶
func NewPublishLayerVersionRequest() (request *PublishLayerVersionRequest)
func (*PublishLayerVersionRequest) FromJsonString ¶
func (r *PublishLayerVersionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PublishLayerVersionRequest) ToJsonString ¶
func (r *PublishLayerVersionRequest) ToJsonString() string
type PublishLayerVersionResponse ¶
type PublishLayerVersionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 本次创建的层的版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPublishLayerVersionResponse ¶
func NewPublishLayerVersionResponse() (response *PublishLayerVersionResponse)
func (*PublishLayerVersionResponse) FromJsonString ¶
func (r *PublishLayerVersionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PublishLayerVersionResponse) ToJsonString ¶
func (r *PublishLayerVersionResponse) ToJsonString() string
type PublishVersionRequest ¶
type PublishVersionRequest struct {
*tchttp.BaseRequest
// 发布函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewPublishVersionRequest ¶
func NewPublishVersionRequest() (request *PublishVersionRequest)
func (*PublishVersionRequest) FromJsonString ¶
func (r *PublishVersionRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PublishVersionRequest) ToJsonString ¶
func (r *PublishVersionRequest) ToJsonString() string
type PublishVersionResponse ¶
type PublishVersionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数的版本
FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"`
// 代码大小
CodeSize *int64 `json:"CodeSize,omitempty" name:"CodeSize"`
// 最大可用内存
MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"`
// 函数的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 函数的入口
Handler *string `json:"Handler,omitempty" name:"Handler"`
// 函数的超时时间
Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"`
// 函数的运行环境
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPublishVersionResponse ¶
func NewPublishVersionResponse() (response *PublishVersionResponse)
func (*PublishVersionResponse) FromJsonString ¶
func (r *PublishVersionResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PublishVersionResponse) ToJsonString ¶
func (r *PublishVersionResponse) ToJsonString() string
type PutProvisionedConcurrencyConfigRequest ¶
type PutProvisionedConcurrencyConfigRequest struct {
*tchttp.BaseRequest
// 需要设置预置并发的函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的版本号,注:$LATEST版本不支持预置并发
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 预置并发数量,注:所有版本的预置并发数总和存在上限限制,当前的上限是:函数最大并发配额 - 100
VersionProvisionedConcurrencyNum *uint64 `json:"VersionProvisionedConcurrencyNum,omitempty" name:"VersionProvisionedConcurrencyNum"`
// 函数所属命名空间,默认为default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewPutProvisionedConcurrencyConfigRequest ¶
func NewPutProvisionedConcurrencyConfigRequest() (request *PutProvisionedConcurrencyConfigRequest)
func (*PutProvisionedConcurrencyConfigRequest) FromJsonString ¶
func (r *PutProvisionedConcurrencyConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutProvisionedConcurrencyConfigRequest) ToJsonString ¶
func (r *PutProvisionedConcurrencyConfigRequest) ToJsonString() string
type PutProvisionedConcurrencyConfigResponse ¶
type PutProvisionedConcurrencyConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPutProvisionedConcurrencyConfigResponse ¶
func NewPutProvisionedConcurrencyConfigResponse() (response *PutProvisionedConcurrencyConfigResponse)
func (*PutProvisionedConcurrencyConfigResponse) FromJsonString ¶
func (r *PutProvisionedConcurrencyConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutProvisionedConcurrencyConfigResponse) ToJsonString ¶
func (r *PutProvisionedConcurrencyConfigResponse) ToJsonString() string
type PutReservedConcurrencyConfigRequest ¶
type PutReservedConcurrencyConfigRequest struct {
*tchttp.BaseRequest
// 需要设置预置并发的函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数保留并发内存,注:函数的保留并发内存总和上限:用户总并发内存配额 - 12800
ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitempty" name:"ReservedConcurrencyMem"`
// 函数所属命名空间,默认为default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewPutReservedConcurrencyConfigRequest ¶
func NewPutReservedConcurrencyConfigRequest() (request *PutReservedConcurrencyConfigRequest)
func (*PutReservedConcurrencyConfigRequest) FromJsonString ¶
func (r *PutReservedConcurrencyConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutReservedConcurrencyConfigRequest) ToJsonString ¶
func (r *PutReservedConcurrencyConfigRequest) ToJsonString() string
type PutReservedConcurrencyConfigResponse ¶
type PutReservedConcurrencyConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPutReservedConcurrencyConfigResponse ¶
func NewPutReservedConcurrencyConfigResponse() (response *PutReservedConcurrencyConfigResponse)
func (*PutReservedConcurrencyConfigResponse) FromJsonString ¶
func (r *PutReservedConcurrencyConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutReservedConcurrencyConfigResponse) ToJsonString ¶
func (r *PutReservedConcurrencyConfigResponse) ToJsonString() string
type PutTotalConcurrencyConfigRequest ¶
type PutTotalConcurrencyConfigRequest struct {
*tchttp.BaseRequest
// 账号并发内存配额,注:账号并发内存配额下限:用户已用并发内存总额 + 12800
TotalConcurrencyMem *uint64 `json:"TotalConcurrencyMem,omitempty" name:"TotalConcurrencyMem"`
// 命名空间,默认为default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewPutTotalConcurrencyConfigRequest ¶
func NewPutTotalConcurrencyConfigRequest() (request *PutTotalConcurrencyConfigRequest)
func (*PutTotalConcurrencyConfigRequest) FromJsonString ¶
func (r *PutTotalConcurrencyConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutTotalConcurrencyConfigRequest) ToJsonString ¶
func (r *PutTotalConcurrencyConfigRequest) ToJsonString() string
type PutTotalConcurrencyConfigResponse ¶
type PutTotalConcurrencyConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPutTotalConcurrencyConfigResponse ¶
func NewPutTotalConcurrencyConfigResponse() (response *PutTotalConcurrencyConfigResponse)
func (*PutTotalConcurrencyConfigResponse) FromJsonString ¶
func (r *PutTotalConcurrencyConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*PutTotalConcurrencyConfigResponse) ToJsonString ¶
func (r *PutTotalConcurrencyConfigResponse) ToJsonString() string
type Result ¶
type Result struct {
// 表示执行过程中的日志输出,异步调用返回为空
Log *string `json:"Log,omitempty" name:"Log"`
// 表示执行函数的返回,异步调用返回为空
RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"`
// 表示执行函数的错误返回信息,异步调用返回为空
ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
// 执行函数时的内存大小,单位为Byte,异步调用返回为空
MemUsage *int64 `json:"MemUsage,omitempty" name:"MemUsage"`
// 表示执行函数的耗时,单位是毫秒,异步调用返回为空
Duration *float64 `json:"Duration,omitempty" name:"Duration"`
// 表示函数的计费耗时,单位是毫秒,异步调用返回为空
BillDuration *int64 `json:"BillDuration,omitempty" name:"BillDuration"`
// 此次函数执行的Id
FunctionRequestId *string `json:"FunctionRequestId,omitempty" name:"FunctionRequestId"`
// 0为正确,异步调用返回为空
InvokeResult *int64 `json:"InvokeResult,omitempty" name:"InvokeResult"`
}
type RetryConfig ¶
type RetryConfig struct {
// 重试次数
RetryNum *int64 `json:"RetryNum,omitempty" name:"RetryNum"`
}
type RoutingConfig ¶
type RoutingConfig struct {
// 随机权重路由附加版本
AdditionalVersionWeights []*VersionWeight `json:"AdditionalVersionWeights,omitempty" name:"AdditionalVersionWeights" list`
// 规则路由附加版本
AddtionVersionMatchs []*VersionMatch `json:"AddtionVersionMatchs,omitempty" name:"AddtionVersionMatchs" list`
}
type StatusReason ¶
type TerminateAsyncEventRequest ¶
type TerminateAsyncEventRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 终止的调用请求id
InvokeRequestId *string `json:"InvokeRequestId,omitempty" name:"InvokeRequestId"`
// 命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewTerminateAsyncEventRequest ¶
func NewTerminateAsyncEventRequest() (request *TerminateAsyncEventRequest)
func (*TerminateAsyncEventRequest) FromJsonString ¶
func (r *TerminateAsyncEventRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateAsyncEventRequest) ToJsonString ¶
func (r *TerminateAsyncEventRequest) ToJsonString() string
type TerminateAsyncEventResponse ¶
type TerminateAsyncEventResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewTerminateAsyncEventResponse ¶
func NewTerminateAsyncEventResponse() (response *TerminateAsyncEventResponse)
func (*TerminateAsyncEventResponse) FromJsonString ¶
func (r *TerminateAsyncEventResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*TerminateAsyncEventResponse) ToJsonString ¶
func (r *TerminateAsyncEventResponse) ToJsonString() string
type TimeInterval ¶
type Trigger ¶
type Trigger struct {
// 触发器最后修改时间
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 触发器类型
Type *string `json:"Type,omitempty" name:"Type"`
// 触发器详细配置
TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"`
// 触发器名称
TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"`
// 触发器创建时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 使能开关
Enable *int64 `json:"Enable,omitempty" name:"Enable"`
// 客户自定义参数
CustomArgument *string `json:"CustomArgument,omitempty" name:"CustomArgument"`
// 触发器状态
AvailableStatus *string `json:"AvailableStatus,omitempty" name:"AvailableStatus"`
// 触发器最小资源ID
ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
// 触发器和云函数绑定状态
BindStatus *string `json:"BindStatus,omitempty" name:"BindStatus"`
// 触发器类型,双向表示两侧控制台均可操作,单向表示SCF控制台单向创建
TriggerAttribute *string `json:"TriggerAttribute,omitempty" name:"TriggerAttribute"`
// 触发器绑定的别名或版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
}
type TriggerCount ¶
type TriggerCount struct {
// Cos触发器数量
Cos *int64 `json:"Cos,omitempty" name:"Cos"`
// Timer触发器数量
Timer *int64 `json:"Timer,omitempty" name:"Timer"`
// Cmq触发器数量
Cmq *int64 `json:"Cmq,omitempty" name:"Cmq"`
// 触发器总数
Total *int64 `json:"Total,omitempty" name:"Total"`
// Ckafka触发器数量
Ckafka *int64 `json:"Ckafka,omitempty" name:"Ckafka"`
// Apigw触发器数量
Apigw *int64 `json:"Apigw,omitempty" name:"Apigw"`
// Cls触发器数量
Cls *int64 `json:"Cls,omitempty" name:"Cls"`
// Clb触发器数量
Clb *int64 `json:"Clb,omitempty" name:"Clb"`
// Mps触发器数量
Mps *int64 `json:"Mps,omitempty" name:"Mps"`
// Cm触发器数量
Cm *int64 `json:"Cm,omitempty" name:"Cm"`
// Vod触发器数量
Vod *int64 `json:"Vod,omitempty" name:"Vod"`
}
type TriggerInfo ¶
type TriggerInfo struct {
// 使能开关
Enable *uint64 `json:"Enable,omitempty" name:"Enable"`
// 函数版本或别名
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 触发器名称
TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"`
// 触发器类型
Type *string `json:"Type,omitempty" name:"Type"`
// 触发器详细配置
TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"`
// 触发器是否可用
AvailableStatus *string `json:"AvailableStatus,omitempty" name:"AvailableStatus"`
// 客户自定义参数
// 注意:此字段可能返回 null,表示取不到有效值。
CustomArgument *string `json:"CustomArgument,omitempty" name:"CustomArgument"`
// 触发器创建时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 触发器最后修改时间
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 触发器最小资源ID
ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"`
// 触发器和云函数绑定状态
BindStatus *string `json:"BindStatus,omitempty" name:"BindStatus"`
// 触发器类型,双向表示两侧控制台均可操作,单向表示SCF控制台单向创建
TriggerAttribute *string `json:"TriggerAttribute,omitempty" name:"TriggerAttribute"`
}
type UpdateAliasRequest ¶
type UpdateAliasRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 别名的名称
Name *string `json:"Name,omitempty" name:"Name"`
// 别名指向的主版本
FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"`
// 函数所在的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 别名的路由信息,需要为别名指定附加版本时,必须提供此参数
RoutingConfig *RoutingConfig `json:"RoutingConfig,omitempty" name:"RoutingConfig"`
// 别名的描述
Description *string `json:"Description,omitempty" name:"Description"`
}
func NewUpdateAliasRequest ¶
func NewUpdateAliasRequest() (request *UpdateAliasRequest)
func (*UpdateAliasRequest) FromJsonString ¶
func (r *UpdateAliasRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateAliasRequest) ToJsonString ¶
func (r *UpdateAliasRequest) ToJsonString() string
type UpdateAliasResponse ¶
type UpdateAliasResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateAliasResponse ¶
func NewUpdateAliasResponse() (response *UpdateAliasResponse)
func (*UpdateAliasResponse) FromJsonString ¶
func (r *UpdateAliasResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateAliasResponse) ToJsonString ¶
func (r *UpdateAliasResponse) ToJsonString() string
type UpdateFunctionCodeRequest ¶
type UpdateFunctionCodeRequest struct {
*tchttp.BaseRequest
// 函数处理方法名称。名称格式支持“文件名称.函数名称”形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求 2-60 个字符
Handler *string `json:"Handler,omitempty" name:"Handler"`
// 要修改的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 对象存储桶名称
CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"`
// 对象存储对象路径
CosObjectName *string `json:"CosObjectName,omitempty" name:"CosObjectName"`
// 包含函数代码文件及其依赖项的 zip 格式文件,使用该接口时要求将 zip 文件的内容转成 base64 编码,最大支持20M
ZipFile *string `json:"ZipFile,omitempty" name:"ZipFile"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 对象存储的地域,注:北京分为ap-beijing和ap-beijing-1
CosBucketRegion *string `json:"CosBucketRegion,omitempty" name:"CosBucketRegion"`
// 函数所属环境
EnvId *string `json:"EnvId,omitempty" name:"EnvId"`
// 在更新时是否同步发布新版本,默认为:FALSE,不发布
Publish *string `json:"Publish,omitempty" name:"Publish"`
// 函数代码
Code *Code `json:"Code,omitempty" name:"Code"`
// 代码来源方式,支持 ZipFile, Cos, Inline 之一
CodeSource *string `json:"CodeSource,omitempty" name:"CodeSource"`
}
func NewUpdateFunctionCodeRequest ¶
func NewUpdateFunctionCodeRequest() (request *UpdateFunctionCodeRequest)
func (*UpdateFunctionCodeRequest) FromJsonString ¶
func (r *UpdateFunctionCodeRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateFunctionCodeRequest) ToJsonString ¶
func (r *UpdateFunctionCodeRequest) ToJsonString() string
type UpdateFunctionCodeResponse ¶
type UpdateFunctionCodeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateFunctionCodeResponse ¶
func NewUpdateFunctionCodeResponse() (response *UpdateFunctionCodeResponse)
func (*UpdateFunctionCodeResponse) FromJsonString ¶
func (r *UpdateFunctionCodeResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateFunctionCodeResponse) ToJsonString ¶
func (r *UpdateFunctionCodeResponse) ToJsonString() string
type UpdateFunctionConfigurationRequest ¶
type UpdateFunctionConfigurationRequest struct {
*tchttp.BaseRequest
// 要修改的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数描述。最大支持 1000 个英文字母、数字、空格、逗号和英文句号,支持中文
Description *string `json:"Description,omitempty" name:"Description"`
// 函数运行时内存大小,默认为 128 M,可选范64M、128 M-3072 M,以 128MB 为阶梯。
MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"`
// 函数最长执行时间,单位为秒,可选值范 1-900 秒,默认为 3 秒
Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"`
// 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, PHP5, PHP7,Go1 , Java8和CustomRuntime
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数的环境变量
Environment *Environment `json:"Environment,omitempty" name:"Environment"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数的私有网络配置
VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"`
// 函数绑定的角色
Role *string `json:"Role,omitempty" name:"Role"`
// 日志投递到的cls日志集ID
ClsLogsetId *string `json:"ClsLogsetId,omitempty" name:"ClsLogsetId"`
// 日志投递到的cls Topic ID
ClsTopicId *string `json:"ClsTopicId,omitempty" name:"ClsTopicId"`
// 在更新时是否同步发布新版本,默认为:FALSE,不发布新版本
Publish *string `json:"Publish,omitempty" name:"Publish"`
// 是否开启L5访问能力,TRUE 为开启,FALSE为关闭
L5Enable *string `json:"L5Enable,omitempty" name:"L5Enable"`
// 函数要关联的层版本列表,层的版本会按照在列表中顺序依次覆盖。
Layers []*LayerVersionSimple `json:"Layers,omitempty" name:"Layers" list`
// 函数关联的死信队列信息
DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitempty" name:"DeadLetterConfig"`
// 公网访问配置
PublicNetConfig *PublicNetConfigIn `json:"PublicNetConfig,omitempty" name:"PublicNetConfig"`
// 文件系统配置入参,用于云函数绑定CFS文件系统
CfsConfig *CfsConfig `json:"CfsConfig,omitempty" name:"CfsConfig"`
// 函数初始化执行超时时间,默认15秒
InitTimeout *int64 `json:"InitTimeout,omitempty" name:"InitTimeout"`
}
func NewUpdateFunctionConfigurationRequest ¶
func NewUpdateFunctionConfigurationRequest() (request *UpdateFunctionConfigurationRequest)
func (*UpdateFunctionConfigurationRequest) FromJsonString ¶
func (r *UpdateFunctionConfigurationRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateFunctionConfigurationRequest) ToJsonString ¶
func (r *UpdateFunctionConfigurationRequest) ToJsonString() string
type UpdateFunctionConfigurationResponse ¶
type UpdateFunctionConfigurationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateFunctionConfigurationResponse ¶
func NewUpdateFunctionConfigurationResponse() (response *UpdateFunctionConfigurationResponse)
func (*UpdateFunctionConfigurationResponse) FromJsonString ¶
func (r *UpdateFunctionConfigurationResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateFunctionConfigurationResponse) ToJsonString ¶
func (r *UpdateFunctionConfigurationResponse) ToJsonString() string
type UpdateFunctionEventInvokeConfigRequest ¶
type UpdateFunctionEventInvokeConfigRequest struct {
*tchttp.BaseRequest
// 异步重试配置信息
AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitempty" name:"AsyncTriggerConfig"`
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所属命名空间,默认为default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewUpdateFunctionEventInvokeConfigRequest ¶
func NewUpdateFunctionEventInvokeConfigRequest() (request *UpdateFunctionEventInvokeConfigRequest)
func (*UpdateFunctionEventInvokeConfigRequest) FromJsonString ¶
func (r *UpdateFunctionEventInvokeConfigRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateFunctionEventInvokeConfigRequest) ToJsonString ¶
func (r *UpdateFunctionEventInvokeConfigRequest) ToJsonString() string
type UpdateFunctionEventInvokeConfigResponse ¶
type UpdateFunctionEventInvokeConfigResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateFunctionEventInvokeConfigResponse ¶
func NewUpdateFunctionEventInvokeConfigResponse() (response *UpdateFunctionEventInvokeConfigResponse)
func (*UpdateFunctionEventInvokeConfigResponse) FromJsonString ¶
func (r *UpdateFunctionEventInvokeConfigResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateFunctionEventInvokeConfigResponse) ToJsonString ¶
func (r *UpdateFunctionEventInvokeConfigResponse) ToJsonString() string
type UpdateNamespaceRequest ¶
type UpdateNamespaceRequest struct {
*tchttp.BaseRequest
// 命名空间名称
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 命名空间描述
Description *string `json:"Description,omitempty" name:"Description"`
}
func NewUpdateNamespaceRequest ¶
func NewUpdateNamespaceRequest() (request *UpdateNamespaceRequest)
func (*UpdateNamespaceRequest) FromJsonString ¶
func (r *UpdateNamespaceRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateNamespaceRequest) ToJsonString ¶
func (r *UpdateNamespaceRequest) ToJsonString() string
type UpdateNamespaceResponse ¶
type UpdateNamespaceResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateNamespaceResponse ¶
func NewUpdateNamespaceResponse() (response *UpdateNamespaceResponse)
func (*UpdateNamespaceResponse) FromJsonString ¶
func (r *UpdateNamespaceResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateNamespaceResponse) ToJsonString ¶
func (r *UpdateNamespaceResponse) ToJsonString() string
type UsageInfo ¶
type UsageInfo struct {
// 命名空间个数
NamespacesCount *int64 `json:"NamespacesCount,omitempty" name:"NamespacesCount"`
// 命名空间详情
Namespace []*NamespaceUsage `json:"Namespace,omitempty" name:"Namespace" list`
// 当前地域用户并发内存配额上限
TotalConcurrencyMem *int64 `json:"TotalConcurrencyMem,omitempty" name:"TotalConcurrencyMem"`
// 当前地域用户已配置并发内存额度
TotalAllocatedConcurrencyMem *int64 `json:"TotalAllocatedConcurrencyMem,omitempty" name:"TotalAllocatedConcurrencyMem"`
// 用户实际配置的账号并发配额
UserConcurrencyMemLimit *int64 `json:"UserConcurrencyMemLimit,omitempty" name:"UserConcurrencyMemLimit"`
}
type VersionMatch ¶
type VersionMatch struct {
// 函数版本名称
Version *string `json:"Version,omitempty" name:"Version"`
// 匹配规则的key,调用时通过传key来匹配规则路由到指定版本
// header方式:
// key填写"invoke.headers.User",并在 invoke 调用函数时传参 RoutingKey:{"User":"value"}规则匹配调用
Key *string `json:"Key,omitempty" name:"Key"`
// 匹配方式。取值范围:
// range:范围匹配
// exact:字符串精确匹配
Method *string `json:"Method,omitempty" name:"Method"`
// range 匹配规则要求:
// 需要为开区间或闭区间描述 (a,b) [a,b],其中 a、b 均为整数
// exact 匹配规则要求:
// 字符串精确匹配
Expression *string `json:"Expression,omitempty" name:"Expression"`
}
type VersionProvisionedConcurrencyInfo ¶
type VersionProvisionedConcurrencyInfo struct {
// 设置的预置并发数。
AllocatedProvisionedConcurrencyNum *uint64 `json:"AllocatedProvisionedConcurrencyNum,omitempty" name:"AllocatedProvisionedConcurrencyNum"`
// 当前已完成预置的并发数。
AvailableProvisionedConcurrencyNum *uint64 `json:"AvailableProvisionedConcurrencyNum,omitempty" name:"AvailableProvisionedConcurrencyNum"`
// 预置任务状态,Done表示已完成,InProgress表示进行中,Failed表示部分或全部失败。
Status *string `json:"Status,omitempty" name:"Status"`
// 对预置任务状态Status的说明。
StatusReason *string `json:"StatusReason,omitempty" name:"StatusReason"`
// 函数版本号
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
}