Documentation ¶
Index ¶
- Constants
- type AccessInfo
- type Alias
- type AsyncEvent
- type AsyncEventStatus
- type AsyncTriggerConfig
- type CfsConfig
- type CfsInsInfo
- type Client
- func (c *Client) CopyFunction(request *CopyFunctionRequest) (response *CopyFunctionResponse, err error)
- func (c *Client) CopyFunctionWithContext(ctx context.Context, request *CopyFunctionRequest) (response *CopyFunctionResponse, err error)
- func (c *Client) CreateAlias(request *CreateAliasRequest) (response *CreateAliasResponse, err error)
- func (c *Client) CreateAliasWithContext(ctx context.Context, request *CreateAliasRequest) (response *CreateAliasResponse, err error)
- func (c *Client) CreateFunction(request *CreateFunctionRequest) (response *CreateFunctionResponse, err error)
- func (c *Client) CreateFunctionWithContext(ctx context.Context, request *CreateFunctionRequest) (response *CreateFunctionResponse, err error)
- func (c *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
- func (c *Client) CreateNamespaceWithContext(ctx context.Context, request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
- func (c *Client) CreateTrigger(request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)
- func (c *Client) CreateTriggerWithContext(ctx context.Context, request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)
- func (c *Client) DeleteAlias(request *DeleteAliasRequest) (response *DeleteAliasResponse, err error)
- func (c *Client) DeleteAliasWithContext(ctx context.Context, request *DeleteAliasRequest) (response *DeleteAliasResponse, err error)
- func (c *Client) DeleteFunction(request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)
- func (c *Client) DeleteFunctionWithContext(ctx context.Context, request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)
- func (c *Client) DeleteLayerVersion(request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)
- func (c *Client) DeleteLayerVersionWithContext(ctx context.Context, request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)
- func (c *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
- func (c *Client) DeleteNamespaceWithContext(ctx context.Context, request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
- func (c *Client) DeleteProvisionedConcurrencyConfig(request *DeleteProvisionedConcurrencyConfigRequest) (response *DeleteProvisionedConcurrencyConfigResponse, err error)
- func (c *Client) DeleteProvisionedConcurrencyConfigWithContext(ctx context.Context, request *DeleteProvisionedConcurrencyConfigRequest) (response *DeleteProvisionedConcurrencyConfigResponse, err error)
- func (c *Client) DeleteReservedConcurrencyConfig(request *DeleteReservedConcurrencyConfigRequest) (response *DeleteReservedConcurrencyConfigResponse, err error)
- func (c *Client) DeleteReservedConcurrencyConfigWithContext(ctx context.Context, request *DeleteReservedConcurrencyConfigRequest) (response *DeleteReservedConcurrencyConfigResponse, err error)
- func (c *Client) DeleteTrigger(request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)
- func (c *Client) DeleteTriggerWithContext(ctx context.Context, request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)
- func (c *Client) GetAccount(request *GetAccountRequest) (response *GetAccountResponse, err error)
- func (c *Client) GetAccountWithContext(ctx context.Context, request *GetAccountRequest) (response *GetAccountResponse, err error)
- func (c *Client) GetAlias(request *GetAliasRequest) (response *GetAliasResponse, err error)
- func (c *Client) GetAliasWithContext(ctx context.Context, request *GetAliasRequest) (response *GetAliasResponse, err error)
- func (c *Client) GetAsyncEventStatus(request *GetAsyncEventStatusRequest) (response *GetAsyncEventStatusResponse, err error)
- func (c *Client) GetAsyncEventStatusWithContext(ctx context.Context, request *GetAsyncEventStatusRequest) (response *GetAsyncEventStatusResponse, 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) GetFunctionAddressWithContext(ctx context.Context, request *GetFunctionAddressRequest) (response *GetFunctionAddressResponse, err error)
- func (c *Client) GetFunctionEventInvokeConfig(request *GetFunctionEventInvokeConfigRequest) (response *GetFunctionEventInvokeConfigResponse, err error)
- func (c *Client) GetFunctionEventInvokeConfigWithContext(ctx context.Context, request *GetFunctionEventInvokeConfigRequest) (response *GetFunctionEventInvokeConfigResponse, err error)
- func (c *Client) GetFunctionLogs(request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)
- func (c *Client) GetFunctionLogsWithContext(ctx context.Context, request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)
- func (c *Client) GetFunctionWithContext(ctx context.Context, request *GetFunctionRequest) (response *GetFunctionResponse, err error)
- func (c *Client) GetLayerVersion(request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)
- func (c *Client) GetLayerVersionWithContext(ctx context.Context, request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)
- func (c *Client) GetProvisionedConcurrencyConfig(request *GetProvisionedConcurrencyConfigRequest) (response *GetProvisionedConcurrencyConfigResponse, err error)
- func (c *Client) GetProvisionedConcurrencyConfigWithContext(ctx context.Context, request *GetProvisionedConcurrencyConfigRequest) (response *GetProvisionedConcurrencyConfigResponse, err error)
- func (c *Client) GetRequestStatus(request *GetRequestStatusRequest) (response *GetRequestStatusResponse, err error)
- func (c *Client) GetRequestStatusWithContext(ctx context.Context, request *GetRequestStatusRequest) (response *GetRequestStatusResponse, err error)
- func (c *Client) GetReservedConcurrencyConfig(request *GetReservedConcurrencyConfigRequest) (response *GetReservedConcurrencyConfigResponse, err error)
- func (c *Client) GetReservedConcurrencyConfigWithContext(ctx context.Context, request *GetReservedConcurrencyConfigRequest) (response *GetReservedConcurrencyConfigResponse, err error)
- func (c *Client) Invoke(request *InvokeRequest) (response *InvokeResponse, err error)
- func (c *Client) InvokeFunction(request *InvokeFunctionRequest) (response *InvokeFunctionResponse, err error)
- func (c *Client) InvokeFunctionWithContext(ctx context.Context, request *InvokeFunctionRequest) (response *InvokeFunctionResponse, err error)
- func (c *Client) InvokeWithContext(ctx context.Context, request *InvokeRequest) (response *InvokeResponse, err error)
- func (c *Client) ListAliases(request *ListAliasesRequest) (response *ListAliasesResponse, err error)
- func (c *Client) ListAliasesWithContext(ctx context.Context, request *ListAliasesRequest) (response *ListAliasesResponse, err error)
- func (c *Client) ListAsyncEvents(request *ListAsyncEventsRequest) (response *ListAsyncEventsResponse, err error)
- func (c *Client) ListAsyncEventsWithContext(ctx context.Context, request *ListAsyncEventsRequest) (response *ListAsyncEventsResponse, err error)
- func (c *Client) ListFunctions(request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)
- func (c *Client) ListFunctionsWithContext(ctx context.Context, request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)
- func (c *Client) ListLayerVersions(request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)
- func (c *Client) ListLayerVersionsWithContext(ctx context.Context, request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)
- func (c *Client) ListLayers(request *ListLayersRequest) (response *ListLayersResponse, err error)
- func (c *Client) ListLayersWithContext(ctx context.Context, request *ListLayersRequest) (response *ListLayersResponse, err error)
- func (c *Client) ListNamespaces(request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)
- func (c *Client) ListNamespacesWithContext(ctx context.Context, request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)
- func (c *Client) ListTriggers(request *ListTriggersRequest) (response *ListTriggersResponse, err error)
- func (c *Client) ListTriggersWithContext(ctx context.Context, request *ListTriggersRequest) (response *ListTriggersResponse, err error)
- func (c *Client) ListVersionByFunction(request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)
- func (c *Client) ListVersionByFunctionWithContext(ctx context.Context, request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)
- func (c *Client) PublishLayerVersion(request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)
- func (c *Client) PublishLayerVersionWithContext(ctx context.Context, request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)
- func (c *Client) PublishVersion(request *PublishVersionRequest) (response *PublishVersionResponse, err error)
- func (c *Client) PublishVersionWithContext(ctx context.Context, request *PublishVersionRequest) (response *PublishVersionResponse, err error)
- func (c *Client) PutProvisionedConcurrencyConfig(request *PutProvisionedConcurrencyConfigRequest) (response *PutProvisionedConcurrencyConfigResponse, err error)
- func (c *Client) PutProvisionedConcurrencyConfigWithContext(ctx context.Context, request *PutProvisionedConcurrencyConfigRequest) (response *PutProvisionedConcurrencyConfigResponse, err error)
- func (c *Client) PutReservedConcurrencyConfig(request *PutReservedConcurrencyConfigRequest) (response *PutReservedConcurrencyConfigResponse, err error)
- func (c *Client) PutReservedConcurrencyConfigWithContext(ctx context.Context, request *PutReservedConcurrencyConfigRequest) (response *PutReservedConcurrencyConfigResponse, err error)
- func (c *Client) PutTotalConcurrencyConfig(request *PutTotalConcurrencyConfigRequest) (response *PutTotalConcurrencyConfigResponse, err error)
- func (c *Client) PutTotalConcurrencyConfigWithContext(ctx context.Context, request *PutTotalConcurrencyConfigRequest) (response *PutTotalConcurrencyConfigResponse, err error)
- func (c *Client) TerminateAsyncEvent(request *TerminateAsyncEventRequest) (response *TerminateAsyncEventResponse, err error)
- func (c *Client) TerminateAsyncEventWithContext(ctx context.Context, request *TerminateAsyncEventRequest) (response *TerminateAsyncEventResponse, err error)
- func (c *Client) UpdateAlias(request *UpdateAliasRequest) (response *UpdateAliasResponse, err error)
- func (c *Client) UpdateAliasWithContext(ctx context.Context, request *UpdateAliasRequest) (response *UpdateAliasResponse, err error)
- func (c *Client) UpdateFunctionCode(request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)
- func (c *Client) UpdateFunctionCodeWithContext(ctx context.Context, request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)
- func (c *Client) UpdateFunctionConfiguration(request *UpdateFunctionConfigurationRequest) (response *UpdateFunctionConfigurationResponse, err error)
- func (c *Client) UpdateFunctionConfigurationWithContext(ctx context.Context, request *UpdateFunctionConfigurationRequest) (response *UpdateFunctionConfigurationResponse, err error)
- func (c *Client) UpdateFunctionEventInvokeConfig(request *UpdateFunctionEventInvokeConfigRequest) (response *UpdateFunctionEventInvokeConfigResponse, err error)
- func (c *Client) UpdateFunctionEventInvokeConfigWithContext(ctx context.Context, request *UpdateFunctionEventInvokeConfigRequest) (response *UpdateFunctionEventInvokeConfigResponse, err error)
- func (c *Client) UpdateNamespace(request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
- func (c *Client) UpdateNamespaceWithContext(ctx context.Context, request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
- func (c *Client) UpdateTrigger(request *UpdateTriggerRequest) (response *UpdateTriggerResponse, err error)
- func (c *Client) UpdateTriggerStatus(request *UpdateTriggerStatusRequest) (response *UpdateTriggerStatusResponse, err error)
- func (c *Client) UpdateTriggerStatusWithContext(ctx context.Context, request *UpdateTriggerStatusRequest) (response *UpdateTriggerStatusResponse, err error)
- func (c *Client) UpdateTriggerWithContext(ctx context.Context, request *UpdateTriggerRequest) (response *UpdateTriggerResponse, err error)
- type Code
- type CopyFunctionRequest
- type CopyFunctionRequestParams
- type CopyFunctionResponse
- type CopyFunctionResponseParams
- type CreateAliasRequest
- type CreateAliasRequestParams
- type CreateAliasResponse
- type CreateAliasResponseParams
- type CreateFunctionRequest
- type CreateFunctionRequestParams
- type CreateFunctionResponse
- type CreateFunctionResponseParams
- type CreateNamespaceRequest
- type CreateNamespaceRequestParams
- type CreateNamespaceResponse
- type CreateNamespaceResponseParams
- type CreateTriggerRequest
- type CreateTriggerRequestParams
- type CreateTriggerResponse
- type CreateTriggerResponseParams
- type DeadLetterConfig
- type DeleteAliasRequest
- type DeleteAliasRequestParams
- type DeleteAliasResponse
- type DeleteAliasResponseParams
- type DeleteFunctionRequest
- type DeleteFunctionRequestParams
- type DeleteFunctionResponse
- type DeleteFunctionResponseParams
- type DeleteLayerVersionRequest
- type DeleteLayerVersionRequestParams
- type DeleteLayerVersionResponse
- type DeleteLayerVersionResponseParams
- type DeleteNamespaceRequest
- type DeleteNamespaceRequestParams
- type DeleteNamespaceResponse
- type DeleteNamespaceResponseParams
- type DeleteProvisionedConcurrencyConfigRequest
- type DeleteProvisionedConcurrencyConfigRequestParams
- type DeleteProvisionedConcurrencyConfigResponse
- type DeleteProvisionedConcurrencyConfigResponseParams
- type DeleteReservedConcurrencyConfigRequest
- type DeleteReservedConcurrencyConfigRequestParams
- type DeleteReservedConcurrencyConfigResponse
- type DeleteReservedConcurrencyConfigResponseParams
- type DeleteTriggerRequest
- type DeleteTriggerRequestParams
- type DeleteTriggerResponse
- type DeleteTriggerResponseParams
- type EipConfigIn
- type EipConfigOut
- type EipOutConfig
- type Environment
- type Filter
- type Function
- type FunctionLog
- type FunctionVersion
- type GetAccountRequest
- type GetAccountRequestParams
- type GetAccountResponse
- type GetAccountResponseParams
- type GetAliasRequest
- type GetAliasRequestParams
- type GetAliasResponse
- type GetAliasResponseParams
- type GetAsyncEventStatusRequest
- type GetAsyncEventStatusRequestParams
- type GetAsyncEventStatusResponse
- type GetAsyncEventStatusResponseParams
- type GetFunctionAddressRequest
- type GetFunctionAddressRequestParams
- type GetFunctionAddressResponse
- type GetFunctionAddressResponseParams
- type GetFunctionEventInvokeConfigRequest
- type GetFunctionEventInvokeConfigRequestParams
- type GetFunctionEventInvokeConfigResponse
- type GetFunctionEventInvokeConfigResponseParams
- type GetFunctionLogsRequest
- type GetFunctionLogsRequestParams
- type GetFunctionLogsResponse
- type GetFunctionLogsResponseParams
- type GetFunctionRequest
- type GetFunctionRequestParams
- type GetFunctionResponse
- type GetFunctionResponseParams
- type GetLayerVersionRequest
- type GetLayerVersionRequestParams
- type GetLayerVersionResponse
- type GetLayerVersionResponseParams
- type GetProvisionedConcurrencyConfigRequest
- type GetProvisionedConcurrencyConfigRequestParams
- type GetProvisionedConcurrencyConfigResponse
- type GetProvisionedConcurrencyConfigResponseParams
- type GetRequestStatusRequest
- type GetRequestStatusRequestParams
- type GetRequestStatusResponse
- type GetRequestStatusResponseParams
- type GetReservedConcurrencyConfigRequest
- type GetReservedConcurrencyConfigRequestParams
- type GetReservedConcurrencyConfigResponse
- type GetReservedConcurrencyConfigResponseParams
- type ImageConfig
- type InstanceConcurrencyConfig
- type IntranetConfigIn
- type IntranetConfigOut
- type InvokeFunctionRequest
- type InvokeFunctionRequestParams
- type InvokeFunctionResponse
- type InvokeFunctionResponseParams
- type InvokeRequest
- type InvokeRequestParams
- type InvokeResponse
- type InvokeResponseParams
- type K8SLabel
- type K8SToleration
- type LayerVersionInfo
- type LayerVersionSimple
- type LimitsInfo
- type ListAliasesRequest
- type ListAliasesRequestParams
- type ListAliasesResponse
- type ListAliasesResponseParams
- type ListAsyncEventsRequest
- type ListAsyncEventsRequestParams
- type ListAsyncEventsResponse
- type ListAsyncEventsResponseParams
- type ListFunctionsRequest
- type ListFunctionsRequestParams
- type ListFunctionsResponse
- type ListFunctionsResponseParams
- type ListLayerVersionsRequest
- type ListLayerVersionsRequestParams
- type ListLayerVersionsResponse
- type ListLayerVersionsResponseParams
- type ListLayersRequest
- type ListLayersRequestParams
- type ListLayersResponse
- type ListLayersResponseParams
- type ListNamespacesRequest
- type ListNamespacesRequestParams
- type ListNamespacesResponse
- type ListNamespacesResponseParams
- type ListTriggersRequest
- type ListTriggersRequestParams
- type ListTriggersResponse
- type ListTriggersResponseParams
- type ListVersionByFunctionRequest
- type ListVersionByFunctionRequestParams
- type ListVersionByFunctionResponse
- type ListVersionByFunctionResponseParams
- type LogFilter
- type LogSearchContext
- type Namespace
- type NamespaceLimit
- type NamespaceResourceEnv
- type NamespaceResourceEnvTKE
- type NamespaceUsage
- type ProtocolParams
- type PublicNetConfigIn
- type PublicNetConfigOut
- type PublishLayerVersionRequest
- type PublishLayerVersionRequestParams
- type PublishLayerVersionResponse
- type PublishLayerVersionResponseParams
- type PublishVersionRequest
- type PublishVersionRequestParams
- type PublishVersionResponse
- type PublishVersionResponseParams
- type PutProvisionedConcurrencyConfigRequest
- type PutProvisionedConcurrencyConfigRequestParams
- type PutProvisionedConcurrencyConfigResponse
- type PutProvisionedConcurrencyConfigResponseParams
- type PutReservedConcurrencyConfigRequest
- type PutReservedConcurrencyConfigRequestParams
- type PutReservedConcurrencyConfigResponse
- type PutReservedConcurrencyConfigResponseParams
- type PutTotalConcurrencyConfigRequest
- type PutTotalConcurrencyConfigRequestParams
- type PutTotalConcurrencyConfigResponse
- type PutTotalConcurrencyConfigResponseParams
- type RequestStatus
- type Result
- type RetryConfig
- type RoutingConfig
- type SearchKey
- type StatusReason
- type Tag
- type TerminateAsyncEventRequest
- type TerminateAsyncEventRequestParams
- type TerminateAsyncEventResponse
- type TerminateAsyncEventResponseParams
- type TimeInterval
- type Trigger
- type TriggerAction
- type TriggerCount
- type TriggerInfo
- type UpdateAliasRequest
- type UpdateAliasRequestParams
- type UpdateAliasResponse
- type UpdateAliasResponseParams
- type UpdateFunctionCodeRequest
- type UpdateFunctionCodeRequestParams
- type UpdateFunctionCodeResponse
- type UpdateFunctionCodeResponseParams
- type UpdateFunctionConfigurationRequest
- type UpdateFunctionConfigurationRequestParams
- type UpdateFunctionConfigurationResponse
- type UpdateFunctionConfigurationResponseParams
- type UpdateFunctionEventInvokeConfigRequest
- type UpdateFunctionEventInvokeConfigRequestParams
- type UpdateFunctionEventInvokeConfigResponse
- type UpdateFunctionEventInvokeConfigResponseParams
- type UpdateNamespaceRequest
- type UpdateNamespaceRequestParams
- type UpdateNamespaceResponse
- type UpdateNamespaceResponseParams
- type UpdateTriggerRequest
- type UpdateTriggerRequestParams
- type UpdateTriggerResponse
- type UpdateTriggerResponseParams
- type UpdateTriggerStatusRequest
- type UpdateTriggerStatusRequestParams
- type UpdateTriggerStatusResponse
- type UpdateTriggerStatusResponseParams
- type UsageInfo
- type Variable
- type VersionMatch
- type VersionProvisionedConcurrencyInfo
- type VersionWeight
- type VpcConfig
- type WSParams
Constants ¶
const ( // 操作失败。 FAILEDOPERATION = "FailedOperation" // 账户余额不足。 FAILEDOPERATION_ACCOUNTINSUFFICIENT = "FailedOperation.AccountInsufficient" // API网关触发器创建失败。 FAILEDOPERATION_APIGATEWAY = "FailedOperation.ApiGateway" // 创建触发器失败。 FAILEDOPERATION_APIGW = "FailedOperation.Apigw" // 获取Apm InstanceId失败。 FAILEDOPERATION_APMCONFIGINSTANCEID = "FailedOperation.ApmConfigInstanceId" // 当前异步事件状态不支持此操作,请稍后重试。 FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus" // 登录信息验证失败,token 验证失败。 FAILEDOPERATION_AUTHFAILURE = "FailedOperation.AuthFailure" // 调用 NetDeploy 失败。 FAILEDOPERATION_CALLNETDEPLOYFAILED = "FailedOperation.CallNetDeployFailed" // 请求role信息失败。 FAILEDOPERATION_CALLROLEFAILED = "FailedOperation.CallRoleFailed" // CLS服务未注册。 FAILEDOPERATION_CLSSERVICEUNREGISTERED = "FailedOperation.ClsServiceUnregistered" // 函数集群不存在。 FAILEDOPERATION_CLUSTERNOTFOUND = "FailedOperation.ClusterNotFound" // CopyAsyncRun 传参异常。 FAILEDOPERATION_COPYASYNCRUN = "FailedOperation.CopyAsyncRun" // 复制函数失败。 FAILEDOPERATION_COPYFAILED = "FailedOperation.CopyFailed" // 不支持复制到该地域。 FAILEDOPERATION_COPYFUNCTION = "FailedOperation.CopyFunction" // 操作COS资源失败。 FAILEDOPERATION_COS = "FailedOperation.Cos" // 创建别名失败。 FAILEDOPERATION_CREATEALIAS = "FailedOperation.CreateAlias" // 操作失败。 FAILEDOPERATION_CREATEFUNCTION = "FailedOperation.CreateFunction" // 创建命名空间失败。 FAILEDOPERATION_CREATENAMESPACE = "FailedOperation.CreateNamespace" // 当前函数状态无法进行此操作。 FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger" // 当前调试状态无法执行此操作。 FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus" // 调试状态下无法更新执行超时时间。 FAILEDOPERATION_DEBUGMODEUPDATETIMEOUTFAIL = "FailedOperation.DebugModeUpdateTimeOutFail" // 删除别名失败。 FAILEDOPERATION_DELETEALIAS = "FailedOperation.DeleteAlias" // 当前函数状态无法进行此操作,请在函数状态正常时重试。 FAILEDOPERATION_DELETEFUNCTION = "FailedOperation.DeleteFunction" // 删除layer版本失败。 FAILEDOPERATION_DELETELAYERVERSION = "FailedOperation.DeleteLayerVersion" // 无法删除默认Namespace。 FAILEDOPERATION_DELETENAMESPACE = "FailedOperation.DeleteNamespace" // 删除触发器失败。 FAILEDOPERATION_DELETETRIGGER = "FailedOperation.DeleteTrigger" // 当前函数状态无法更新代码,请在状态为正常时更新。 FAILEDOPERATION_FUNCTIONNAMESTATUSERROR = "FailedOperation.FunctionNameStatusError" // 函数在部署中,无法做此操作。 FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" // 当前函数版本状态无法进行此操作,请在版本状态为正常时重试。 FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive" // 获取别名信息失败。 FAILEDOPERATION_GETALIAS = "FailedOperation.GetAlias" // 获取函数代码地址失败。 FAILEDOPERATION_GETFUNCTIONADDRESS = "FailedOperation.GetFunctionAddress" // InstanceNotFound 实例不存在。 FAILEDOPERATION_INSTANCENOTFOUND = "FailedOperation.InstanceNotFound" // 当前账号或命名空间处于欠费状态,请在可用时重试。 FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" // 本地域资源售罄。 FAILEDOPERATION_INSUFFICIENTRESOURCES = "FailedOperation.InsufficientResources" // 调用函数失败。 FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction" // 命名空间已存在,请勿重复创建。 FAILEDOPERATION_NAMESPACE = "FailedOperation.Namespace" // 服务开通失败。 FAILEDOPERATION_OPENSERVICE = "FailedOperation.OpenService" // 操作冲突。 FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict" // 创建定时预置任务失败。 FAILEDOPERATION_PROVISIONCREATETIMER = "FailedOperation.ProvisionCreateTimer" // 删除定时预置任务失败。 FAILEDOPERATION_PROVISIONDELETETIMER = "FailedOperation.ProvisionDeleteTimer" // 预置超过可用。 FAILEDOPERATION_PROVISIONEDEXCEEDAVAILABLE = "FailedOperation.ProvisionedExceedAvailable" // 预置超限。 FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved" // 当前函数版本已有预置任务处于进行中,请稍后重试。 FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress" // 发布layer版本失败。 FAILEDOPERATION_PUBLISHLAYERVERSION = "FailedOperation.PublishLayerVersion" // 当前函数状态无法发布版本,请在状态为正常时发布。 FAILEDOPERATION_PUBLISHVERSION = "FailedOperation.PublishVersion" // 角色不存在。 FAILEDOPERATION_QCSROLENOTFOUND = "FailedOperation.QcsRoleNotFound" // 查询失败。 FAILEDOPERATION_QUERYERROR = "FailedOperation.QueryError" // ReservedExceedTotal 总保留超限。 FAILEDOPERATION_RESERVEDEXCEEDTOTAL = "FailedOperation.ReservedExceedTotal" // 当前函数已有保留并发设置任务处于进行中,请稍后重试。 FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress" // ServiceClosed 请确认后再操作。 FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed" // Topic不存在。 FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist" // 用户并发内存配额设置任务处于进行中,请稍后重试。 FAILEDOPERATION_TOTALCONCURRENCYMEMORYINPROGRESS = "FailedOperation.TotalConcurrencyMemoryInProgress" // 指定的服务未开通,可以提交工单申请开通服务。 FAILEDOPERATION_UNOPENEDSERVICE = "FailedOperation.UnOpenedService" // 更新别名失败。 FAILEDOPERATION_UPDATEALIAS = "FailedOperation.UpdateAlias" // 当前函数状态无法更新代码,请在状态为正常时更新。 FAILEDOPERATION_UPDATEFUNCTIONCODE = "FailedOperation.UpdateFunctionCode" // UpdateFunctionConfiguration操作失败。 FAILEDOPERATION_UPDATEFUNCTIONCONFIGURATION = "FailedOperation.UpdateFunctionConfiguration" // 更新状态操作失败。 FAILEDOPERATION_UPDATESTATUS = "FailedOperation.UpdateStatus" // 更新触发器出错。 FAILEDOPERATION_UPDATETRIGGER = "FailedOperation.UpdateTrigger" // 与原状态一致,无需更改。 FAILEDOPERATION_UPDATETRIGGERSTATUS = "FailedOperation.UpdateTriggerStatus" // 内部错误。 INTERNALERROR = "InternalError" // 创建apigw触发器内部错误。 INTERNALERROR_APIGATEWAY = "InternalError.ApiGateway" // ckafka接口失败。 INTERNALERROR_CKAFKA = "InternalError.Ckafka" // 删除cmq触发器失败。 INTERNALERROR_CMQ = "InternalError.Cmq" // 更新触发器失败。 INTERNALERROR_COS = "InternalError.Cos" // ES错误。 INTERNALERROR_ES = "InternalError.ES" // 内部服务异常。 INTERNALERROR_EXCEPTION = "InternalError.Exception" // 内部服务错误。 INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError" // 获取sts票据信息失败。 INTERNALERROR_GETSTSTOKENFAILED = "InternalError.GetStsTokenFailed" // 内部系统错误。 INTERNALERROR_SYSTEM = "InternalError.System" // 内部服务错误。 INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" // 日志参数有误。 INVALIDPARAMETER_CLS = "InvalidParameter.Cls" // FunctionName取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName" // 创建函数传参异常。 INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" // 请求参数不合法。 INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" // 请求大小超限。 INVALIDPARAMETER_REQUESTTOOLARGE = "InvalidParameter.RequestTooLarge" // RoleCheck 传参有误。 INVALIDPARAMETER_ROLECHECK = "InvalidParameter.RoleCheck" // RoutingConfig参数传入错误。 INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig" // 参数取值错误。 INVALIDPARAMETERVALUE = "InvalidParameterValue" // Action取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" // AdditionalVersionWeights参数传入错误。 INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights" // 不支持删除默认别名,请修正后重试。 INVALIDPARAMETERVALUE_ALIAS = "InvalidParameterValue.Alias" // ApiGateway参数错误。 INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway" // ApmConfig参数传入错误。 INVALIDPARAMETERVALUE_APMCONFIG = "InvalidParameterValue.ApmConfig" // ApmConfigInstanceId参数传入错误。 INVALIDPARAMETERVALUE_APMCONFIGINSTANCEID = "InvalidParameterValue.ApmConfigInstanceId" // ApmConfigRegion参数传入错误。 INVALIDPARAMETERVALUE_APMCONFIGREGION = "InvalidParameterValue.ApmConfigRegion" // Args 参数值有误。 INVALIDPARAMETERVALUE_ARGS = "InvalidParameterValue.Args" // 容器启动参数取值与规范不符。 INVALIDPARAMETERVALUE_ARGSLIST = "InvalidParameterValue.ArgsList" // AsyncRunEnable 取值不正确。 INVALIDPARAMETERVALUE_ASYNCRUNENABLE = "InvalidParameterValue.AsyncRunEnable" // 函数异步重试配置参数无效。 INVALIDPARAMETERVALUE_ASYNCTRIGGERCONFIG = "InvalidParameterValue.AsyncTriggerConfig" // Cdn传入错误。 INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn" // cfs配置项重复。 INVALIDPARAMETERVALUE_CFSPARAMETERDUPLICATE = "InvalidParameterValue.CfsParameterDuplicate" // cfs配置项取值与规范不符。 INVALIDPARAMETERVALUE_CFSPARAMETERERROR = "InvalidParameterValue.CfsParameterError" // cfs参数格式与规范不符。 INVALIDPARAMETERVALUE_CFSSTRUCTIONERROR = "InvalidParameterValue.CfsStructionError" // Ckafka传入错误。 INVALIDPARAMETERVALUE_CKAFKA = "InvalidParameterValue.Ckafka" // 运行函数时的参数传入有误。 INVALIDPARAMETERVALUE_CLIENTCONTEXT = "InvalidParameterValue.ClientContext" // Cls传入错误。 INVALIDPARAMETERVALUE_CLS = "InvalidParameterValue.Cls" // 修改Cls配置需要传入Role参数,请修正后重试。 INVALIDPARAMETERVALUE_CLSROLE = "InvalidParameterValue.ClsRole" // Cmq传入错误。 INVALIDPARAMETERVALUE_CMQ = "InvalidParameterValue.Cmq" // Code传入错误。 INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code" // CodeSecret传入错误。 INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret" // CodeSource传入错误。 INVALIDPARAMETERVALUE_CODESOURCE = "InvalidParameterValue.CodeSource" // Command[Entrypoint] 参数值有误。 INVALIDPARAMETERVALUE_COMMAND = "InvalidParameterValue.Command" // 容器启动命令参数值与规范不符。 INVALIDPARAMETERVALUE_COMMANDLIST = "InvalidParameterValue.CommandList" // CompatibleRuntimes参数传入错误。 INVALIDPARAMETERVALUE_COMPATIBLERUNTIMES = "InvalidParameterValue.CompatibleRuntimes" // Content参数传入错误。 INVALIDPARAMETERVALUE_CONTENT = "InvalidParameterValue.Content" // Cos传入错误。 INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" // CosBucketName不符合规范。 INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName" // CosBucketRegion取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion" // COS通知规则冲突。 INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict" // CosObjectName不符合规范。 INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName" // CustomArgument参数长度超限。 INVALIDPARAMETERVALUE_CUSTOMARGUMENT = "InvalidParameterValue.CustomArgument" // DateTime传入错误。 INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime" // DeadLetterConfig取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETERVALUE_DEADLETTERCONFIG = "InvalidParameterValue.DeadLetterConfig" // 默认Namespace无法创建。 INVALIDPARAMETERVALUE_DEFAULTNAMESPACE = "InvalidParameterValue.DefaultNamespace" // DemoID 对应的函数模板 ,code 参数值有误,请确认后重试。 INVALIDPARAMETERVALUE_DEMO = "InvalidParameterValue.Demo" // DemoId 不存在。 INVALIDPARAMETERVALUE_DEMOID = "InvalidParameterValue.DemoId" // Description传入错误。 INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" // DiskSize 参数取值不规范。 INVALIDPARAMETERVALUE_DISKSIZE = "InvalidParameterValue.DiskSize" // 环境变量DNS[OS_NAMESERVER]配置有误。 INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo" // DynamicEnabled 参数传入错误。 INVALIDPARAMETERVALUE_DYNAMICENABLED = "InvalidParameterValue.DynamicEnabled" // EipConfig参数错误。 INVALIDPARAMETERVALUE_EIPCONFIG = "InvalidParameterValue.EipConfig" // Enable取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable" // Environment传入错误。 INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment" // 环境变量大小超限,请保持在 4KB 以内。 INVALIDPARAMETERVALUE_ENVIRONMENTEXCEEDEDLIMIT = "InvalidParameterValue.EnvironmentExceededLimit" // 不支持修改函数系统环境变量和运行环境变量。 INVALIDPARAMETERVALUE_ENVIRONMENTSYSTEMPROTECT = "InvalidParameterValue.EnvironmentSystemProtect" // Filters参数错误。 INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters" // Function取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETERVALUE_FUNCTION = "InvalidParameterValue.Function" // 函数不存在。 INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" // 请求 id 传参错误。 INVALIDPARAMETERVALUE_FUNCTIONREQUESTID = "InvalidParameterValue.FunctionRequestId" // FunctionType参数错误。 INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType" // GitBranch不符合规范。 INVALIDPARAMETERVALUE_GITBRANCH = "InvalidParameterValue.GitBranch" // GitCommitId取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETERVALUE_GITCOMMITID = "InvalidParameterValue.GitCommitId" // GitDirectory不符合规范。 INVALIDPARAMETERVALUE_GITDIRECTORY = "InvalidParameterValue.GitDirectory" // GitPassword不符合规范。 INVALIDPARAMETERVALUE_GITPASSWORD = "InvalidParameterValue.GitPassword" // GitPasswordSecret 传参有误。 INVALIDPARAMETERVALUE_GITPASSWORDSECRET = "InvalidParameterValue.GitPasswordSecret" // GitUrl不符合规范。 INVALIDPARAMETERVALUE_GITURL = "InvalidParameterValue.GitUrl" // GitUserName不符合规范。 INVALIDPARAMETERVALUE_GITUSERNAME = "InvalidParameterValue.GitUserName" // GitUserNameSecret 传参有误。 INVALIDPARAMETERVALUE_GITUSERNAMESECRET = "InvalidParameterValue.GitUserNameSecret" // Handler传入错误。 INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler" // IdleTimeOut参数传入错误。 INVALIDPARAMETERVALUE_IDLETIMEOUT = "InvalidParameterValue.IdleTimeOut" // ImageType 参数值有误。 INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType" // imageUri 传入有误。 INVALIDPARAMETERVALUE_IMAGEURI = "InvalidParameterValue.ImageUri" // InlineZipFile非法。 INVALIDPARAMETERVALUE_INLINEZIPFILE = "InvalidParameterValue.InlineZipFile" // InstanceConcurrencyConfig 参数传入错误。 INVALIDPARAMETERVALUE_INSTANCECONCURRENCYCONFIG = "InvalidParameterValue.InstanceConcurrencyConfig" // InvokeType取值与规范不符,请修正后再试。 INVALIDPARAMETERVALUE_INVOKETYPE = "InvalidParameterValue.InvokeType" // L5Enable取值与规范不符,请修正后再试。 INVALIDPARAMETERVALUE_L5ENABLE = "InvalidParameterValue.L5Enable" // LayerName参数传入错误。 INVALIDPARAMETERVALUE_LAYERNAME = "InvalidParameterValue.LayerName" // Layers参数传入错误。 INVALIDPARAMETERVALUE_LAYERS = "InvalidParameterValue.Layers" // Limit传入错误。 INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit" // 参数超出长度限制。 INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" // 日志格式不正确。 INVALIDPARAMETERVALUE_LOGFORMAT = "InvalidParameterValue.LogFormat" // MaxConcurrency 参数传入错误。 INVALIDPARAMETERVALUE_MAXCONCURRENCY = "InvalidParameterValue.MaxConcurrency" // Memory取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETERVALUE_MEMORY = "InvalidParameterValue.Memory" // MemorySize错误。 INVALIDPARAMETERVALUE_MEMORYSIZE = "InvalidParameterValue.MemorySize" // MinCapacity 参数传入错误。 INVALIDPARAMETERVALUE_MINCAPACITY = "InvalidParameterValue.MinCapacity" // Name参数传入错误。 INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" // Namespace参数传入错误。 INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" // 规则不正确,Namespace为英文字母、数字、-_ 符号组成,长度30。 INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid" // NodeSpec 参数传入错误。 INVALIDPARAMETERVALUE_NODESPEC = "InvalidParameterValue.NodeSpec" // NodeType 参数传入错误。 INVALIDPARAMETERVALUE_NODETYPE = "InvalidParameterValue.NodeType" // 偏移量不合法。 INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset" // Order传入错误。 INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" // OrderBy取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy" // 入参不是标准的json。 INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param" // ProtocolType参数传入错误。 INVALIDPARAMETERVALUE_PROTOCOLTYPE = "InvalidParameterValue.ProtocolType" // 定时预置的cron配置重复。 INVALIDPARAMETERVALUE_PROVISIONTRIGGERCRONCONFIGDUPLICATE = "InvalidParameterValue.ProvisionTriggerCronConfigDuplicate" // TriggerName参数传入错误。 INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAME = "InvalidParameterValue.ProvisionTriggerName" // TriggerName重复。 INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAMEDUPLICATE = "InvalidParameterValue.ProvisionTriggerNameDuplicate" // ProvisionType 参数传入错误。 INVALIDPARAMETERVALUE_PROVISIONTYPE = "InvalidParameterValue.ProvisionType" // PublicNetConfig参数错误。 INVALIDPARAMETERVALUE_PUBLICNETCONFIG = "InvalidParameterValue.PublicNetConfig" // 不支持的函数版本。 INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" // 查询版本详情,版本参数传入错误。 INVALIDPARAMETERVALUE_QUERYVERSION = "InvalidParameterValue.QueryVersion" // 企业版镜像实例ID[RegistryId]传值错误。 INVALIDPARAMETERVALUE_REGISTRYID = "InvalidParameterValue.RegistryId" // RetCode不合法。 INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode" // RoutingConfig取值与规范不符,请修正后再试。可参考:https://tencentcs.com/5jXKFnBW。 INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig" // Runtime传入错误。 INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" // searchkey 不是 Keyword,Tag 或者 Runtime。 INVALIDPARAMETERVALUE_SEARCHKEY = "InvalidParameterValue.SearchKey" // SecretInfo错误。 INVALIDPARAMETERVALUE_SECRETINFO = "InvalidParameterValue.SecretInfo" // ServiceName命名不规范。 INVALIDPARAMETERVALUE_SERVICENAME = "InvalidParameterValue.ServiceName" // Stamp取值与规范不符,请修正后再试。 INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" // 起始时间传入错误。 INVALIDPARAMETERVALUE_STARTTIME = "InvalidParameterValue.StartTime" // 需要同时指定开始日期与结束日期。 INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime" // Status取值与规范不符,请修正后再试。 INVALIDPARAMETERVALUE_STATUS = "InvalidParameterValue.Status" // 系统环境变量错误。 INVALIDPARAMETERVALUE_SYSTEMENVIRONMENT = "InvalidParameterValue.SystemEnvironment" // 非法的TempCosObjectName。 INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName" // TraceEnable取值与规范不符,请修正后再试。 INVALIDPARAMETERVALUE_TRACEENABLE = "InvalidParameterValue.TraceEnable" // TrackingTarget 参数输入错误。 INVALIDPARAMETERVALUE_TRACKINGTARGET = "InvalidParameterValue.TrackingTarget" // TriggerCronConfig参数传入错误。 INVALIDPARAMETERVALUE_TRIGGERCRONCONFIG = "InvalidParameterValue.TriggerCronConfig" // TriggerCronConfig参数定时触发间隔小于指定值。 INVALIDPARAMETERVALUE_TRIGGERCRONCONFIGTIMEINTERVAL = "InvalidParameterValue.TriggerCronConfigTimeInterval" // TriggerDesc传入参数错误。 INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc" // TriggerName传入错误。 INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName" // TriggerProvisionedConcurrencyNum参数传入错误。 INVALIDPARAMETERVALUE_TRIGGERPROVISIONEDCONCURRENCYNUM = "InvalidParameterValue.TriggerProvisionedConcurrencyNum" // Type传入错误。 INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" // VPC不正确。 INVALIDPARAMETERVALUE_VPC = "InvalidParameterValue.Vpc" // 开启cfs配置的同时必须开启vpc。 INVALIDPARAMETERVALUE_VPCNOTSETWHENOPENCFS = "InvalidParameterValue.VpcNotSetWhenOpenCfs" // WebSocketsParams参数传入错误。 INVALIDPARAMETERVALUE_WEBSOCKETSPARAMS = "InvalidParameterValue.WebSocketsParams" // 检测到不是标准的zip文件,请重新压缩后再试。 INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile" // 压缩文件base64解码失败: `Incorrect padding`,请修正后再试。 INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError" // 别名个数超过最大限制。 LIMITEXCEEDED_ALIAS = "LimitExceeded.Alias" // Cdn使用超过最大限制。 LIMITEXCEEDED_CDN = "LimitExceeded.Cdn" // 用户开启镜像加速函数版本超限。 LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate" // 用户开启镜像加速函数版本超限。 LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota" // eip资源超限。 LIMITEXCEEDED_EIP = "LimitExceeded.Eip" // 函数数量超出最大限制 ,可通过[提交工单](https://cloud.tencent.com/act/event/Online_service?from=scf%7Cindex)申请提升限制。 LIMITEXCEEDED_FUNCTION = "LimitExceeded.Function" // 同一个主题下的函数超过最大限制。 LIMITEXCEEDED_FUNCTIONONTOPIC = "LimitExceeded.FunctionOnTopic" // FunctionProvisionedConcurrencyMemory数量达到限制,可提交工单申请提升限制:https://tencentcs.com/7Fixwt63。 LIMITEXCEEDED_FUNCTIONPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionProvisionedConcurrencyMemory" // 函数保留并发内存超限。 LIMITEXCEEDED_FUNCTIONRESERVEDCONCURRENCYMEMORY = "LimitExceeded.FunctionReservedConcurrencyMemory" // FunctionTotalProvisionedConcurrencyMemory达到限制,可提交工单申请提升限制:https://tencentcs.com/7Fixwt63。 LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionTotalProvisionedConcurrencyMemory" // 函数预置并发总数达到限制。 LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYNUM = "LimitExceeded.FunctionTotalProvisionedConcurrencyNum" // InitTimeout达到限制,可提交工单申请提升限制:https://tencentcs.com/7Fixwt63。 LIMITEXCEEDED_INITTIMEOUT = "LimitExceeded.InitTimeout" // 内网固定IP个数超限。 LIMITEXCEEDED_INTRAIP = "LimitExceeded.IntraIp" // layer版本数量超出最大限制。 LIMITEXCEEDED_LAYERVERSIONS = "LimitExceeded.LayerVersions" // layer数量超出最大限制。 LIMITEXCEEDED_LAYERS = "LimitExceeded.Layers" // 动态扩容最大值超限。 LIMITEXCEEDED_MAXCAPACITY = "LimitExceeded.MaxCapacity" // 内存超出最大限制。 LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory" // 函数异步重试配置消息保留时间超过限制。 LIMITEXCEEDED_MSGTTL = "LimitExceeded.MsgTTL" // 命名空间数量超过最大限制,可通过[提交工单](https://cloud.tencent.com/act/event/Online_service?from=scf%7Cindex)申请提升限制。 LIMITEXCEEDED_NAMESPACE = "LimitExceeded.Namespace" // Offset超出限制。 LIMITEXCEEDED_OFFSET = "LimitExceeded.Offset" // 特权容器属性开启失败 LIMITEXCEEDED_PRIVILEGECONTAINER = "LimitExceeded.PrivilegeContainer" // 定时预置数量超过最大限制。 LIMITEXCEEDED_PROVISIONTRIGGERACTION = "LimitExceeded.ProvisionTriggerAction" // 定时触发间隔小于最大限制。 LIMITEXCEEDED_PROVISIONTRIGGERINTERVAL = "LimitExceeded.ProvisionTriggerInterval" // 配额超限。 LIMITEXCEEDED_QUOTA = "LimitExceeded.Quota" // 函数异步重试配置异步重试次数超过限制。 LIMITEXCEEDED_RETRYNUM = "LimitExceeded.RetryNum" // Timeout超出最大限制。 LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout" // 用户并发内存配额超限。 LIMITEXCEEDED_TOTALCONCURRENCYMEMORY = "LimitExceeded.TotalConcurrencyMemory" // 触发器数量超出最大限制,可通过[提交工单](https://cloud.tencent.com/act/event/Online_service?from=scf%7Cindex)申请提升限制。 LIMITEXCEEDED_TRIGGER = "LimitExceeded.Trigger" // UserTotalConcurrencyMemory达到限制,可提交工单申请提升限制:https://tencentcs.com/7Fixwt63。 LIMITEXCEEDED_USERTOTALCONCURRENCYMEMORY = "LimitExceeded.UserTotalConcurrencyMemory" // 缺少参数错误。 MISSINGPARAMETER = "MissingParameter" // Code没有传入。 MISSINGPARAMETER_CODE = "MissingParameter.Code" // 缺失 Runtime 字段。 MISSINGPARAMETER_RUNTIME = "MissingParameter.Runtime" // 账号已被隔离。 OPERATIONDENIED_ACCOUNTISOLATE = "OperationDenied.AccountIsolate" // 账号不存在。 OPERATIONDENIED_ACCOUNTNOTEXISTS = "OperationDenied.AccountNotExists" // 资源被占用。 RESOURCEINUSE = "ResourceInUse" // Alias已被占用。 RESOURCEINUSE_ALIAS = "ResourceInUse.Alias" // Cdn已被占用。 RESOURCEINUSE_CDN = "ResourceInUse.Cdn" // Cmq已被占用。 RESOURCEINUSE_CMQ = "ResourceInUse.Cmq" // Cos已被占用。 RESOURCEINUSE_COS = "ResourceInUse.Cos" // 函数已存在。 RESOURCEINUSE_FUNCTION = "ResourceInUse.Function" // FunctionName已存在。 RESOURCEINUSE_FUNCTIONNAME = "ResourceInUse.FunctionName" // Layer版本正在使用中。 RESOURCEINUSE_LAYERVERSION = "ResourceInUse.LayerVersion" // Namespace已存在。 RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace" // TriggerName已存在。 RESOURCEINUSE_TRIGGER = "ResourceInUse.Trigger" // TriggerName已存在。 RESOURCEINUSE_TRIGGERNAME = "ResourceInUse.TriggerName" // COS资源不足。 RESOURCEINSUFFICIENT_COS = "ResourceInsufficient.COS" // 资源不存在。 RESOURCENOTFOUND = "ResourceNotFound" // 别名不存在。 RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias" // 未找到指定的AsyncEvent,请创建后再试。 RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent" // 函数需要关联的标签Key不存在。 RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound" // Cdn不存在。 RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn" // 指定的cfs下未找到您所指定的挂载点。 RESOURCENOTFOUND_CFSMOUNTINSNOTMATCH = "ResourceNotFound.CfsMountInsNotMatch" // CfsProtocolError 参数异常。 RESOURCENOTFOUND_CFSPROTOCOLERROR = "ResourceNotFound.CfsProtocolError" // 检测cfs状态为不可用。 RESOURCENOTFOUND_CFSSTATUSERROR = "ResourceNotFound.CfsStatusError" // cfs与云函数所处vpc不一致。 RESOURCENOTFOUND_CFSVPCNOTMATCH = "ResourceNotFound.CfsVpcNotMatch" // Ckafka不存在。 RESOURCENOTFOUND_CKAFKA = "ResourceNotFound.Ckafka" // Cmq不存在。 RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq" // Cos不存在。 RESOURCENOTFOUND_COS = "ResourceNotFound.Cos" // 不存在的Demo。 RESOURCENOTFOUND_DEMO = "ResourceNotFound.Demo" // 函数不存在。 RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" // 函数不存在。 RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" // 函数版本不存在。 RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" // 获取cfs挂载点信息错误。 RESOURCENOTFOUND_GETCFSMOUNTINSERROR = "ResourceNotFound.GetCfsMountInsError" // 获取cfs信息错误。 RESOURCENOTFOUND_GETCFSNOTMATCH = "ResourceNotFound.GetCfsNotMatch" // 未找到指定的ImageConfig,请创建后再试。 RESOURCENOTFOUND_IMAGECONFIG = "ResourceNotFound.ImageConfig" // layer不存在。 RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer" // Layer版本不存在。 RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion" // Namespace不存在。 RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" // 版本不存在。 RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" // 角色不存在。 RESOURCENOTFOUND_ROLE = "ResourceNotFound.Role" // Role不存在。 RESOURCENOTFOUND_ROLECHECK = "ResourceNotFound.RoleCheck" // Timer不存在。 RESOURCENOTFOUND_TIMER = "ResourceNotFound.Timer" // 并发内存配额资源未找到。 RESOURCENOTFOUND_TOTALCONCURRENCYMEMORY = "ResourceNotFound.TotalConcurrencyMemory" // 触发器不存在。 RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger" // 版本不存在。 RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" // VPC或子网不存在。 RESOURCENOTFOUND_VPC = "ResourceNotFound.Vpc" // 余额不足,请先充值。 RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" // Namespace不可用。 RESOURCEUNAVAILABLE_NAMESPACE = "ResourceUnavailable.Namespace" // 服务已冻结。 RESOURCEUNAVAILABLE_SERVICESUSPENDED = "ResourceUnavailable.ServiceSuspended" // 未授权操作。 UNAUTHORIZEDOPERATION = "UnauthorizedOperation" // CAM鉴权失败。 UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" // 无访问代码权限。 UNAUTHORIZEDOPERATION_CODESECRET = "UnauthorizedOperation.CodeSecret" // 没有权限。 UNAUTHORIZEDOPERATION_CREATETRIGGER = "UnauthorizedOperation.CreateTrigger" // 没有权限的操作。 UNAUTHORIZEDOPERATION_DELETEFUNCTION = "UnauthorizedOperation.DeleteFunction" // 没有权限。 UNAUTHORIZEDOPERATION_DELETETRIGGER = "UnauthorizedOperation.DeleteTrigger" // 不是从控制台调用的该接口。 UNAUTHORIZEDOPERATION_NOTMC = "UnauthorizedOperation.NotMC" // Region错误。 UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region" // 没有权限访问您的Cos资源。 UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role" // TempCos的Appid和请求账户的APPID不一致。 UNAUTHORIZEDOPERATION_TEMPCOSAPPID = "UnauthorizedOperation.TempCosAppid" // 无法进行此操作。 UNAUTHORIZEDOPERATION_UPDATEFUNCTIONCODE = "UnauthorizedOperation.UpdateFunctionCode" // 没有权限。 UNAUTHORIZEDOPERATION_UPDATETRIGGERSTATUS = "UnauthorizedOperation.UpdateTriggerStatus" // 操作不支持。 UNSUPPORTEDOPERATION = "UnsupportedOperation" // 资源还有别名绑定,不支持当前操作,请解绑别名后重试。 UNSUPPORTEDOPERATION_ALIASBIND = "UnsupportedOperation.AliasBind" // 指定的配置AsyncRunEnable暂不支持,请修正后再试。 UNSUPPORTEDOPERATION_ASYNCRUNENABLE = "UnsupportedOperation.AsyncRunEnable" // Cdn不支持。 UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn" // 该函数无法复制。 UNSUPPORTEDOPERATION_COPYFUNCTION = "UnsupportedOperation.CopyFunction" // Cos操作不支持。 UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos" // DiskSize 配置内测中,需要申请开启。如需使用可联系我们。 UNSUPPORTEDOPERATION_DISKSIZE = "UnsupportedOperation.DiskSize" // 指定的配置EipFixed暂不支持。 UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed" // 不支持的地域。 UNSUPPORTEDOPERATION_NOTSUPPORTREGION = "UnsupportedOperation.NotSupportRegion" // 当前状态无法发布版本。 UNSUPPORTEDOPERATION_PUBLISHVERSION = "UnsupportedOperation.PublishVersion" // 不支持此地域。 UNSUPPORTEDOPERATION_REGION = "UnsupportedOperation.Region" // Trigger操作不支持。 UNSUPPORTEDOPERATION_TRIGGER = "UnsupportedOperation.Trigger" // 更新函数代码失败。 UNSUPPORTEDOPERATION_UPDATEFUNCTIONCODE = "UnsupportedOperation.UpdateFunctionCode" // 指定的配置暂不支持,请修正后再试。 UNSUPPORTEDOPERATION_UPDATEFUNCTIONEVENTINVOKECONFIG = "UnsupportedOperation.UpdateFunctionEventInvokeConfig" // 指定的配置VpcConfig暂不支持。 UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig" )
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,omitnil,omitempty" name:"FunctionVersion"` // 别名的名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 别名的路由信息 // 注意:此字段可能返回 null,表示取不到有效值。 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"` // 描述信息 // 注意:此字段可能返回 null,表示取不到有效值。 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 更新时间 // 注意:此字段可能返回 null,表示取不到有效值。 ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"` }
type AsyncEvent ¶
type AsyncEvent struct { // 调用请求id InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"` // 调用类型 InvokeType *string `json:"InvokeType,omitnil,omitempty" name:"InvokeType"` // 函数版本 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 事件状态,RUNNING 表示运行中, FINISHED 表示调用成功, ABORTED 表示调用终止, FAILED 表示调用失败 Status *string `json:"Status,omitnil,omitempty" name:"Status"` // 调用开始时间,格式: "%Y-%m-%d %H:%M:%S.%f" StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 调用结束时间,格式: "%Y-%m-%d %H:%M:%S.%f" EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` }
type AsyncEventStatus ¶ added in v1.0.308
type AsyncEventStatus struct { // 异步事件状态,RUNNING 表示运行中, FINISHED 表示调用成功, ABORTED 表示调用终止, FAILED 表示调用失败。 Status *string `json:"Status,omitnil,omitempty" name:"Status"` // 请求状态码 StatusCode *int64 `json:"StatusCode,omitnil,omitempty" name:"StatusCode"` // 异步执行请求 Id InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"` }
type AsyncTriggerConfig ¶
type AsyncTriggerConfig struct { // 用户错误的异步重试重试配置 RetryConfig []*RetryConfig `json:"RetryConfig,omitnil,omitempty" name:"RetryConfig"` // 消息保留时间 MsgTTL *int64 `json:"MsgTTL,omitnil,omitempty" name:"MsgTTL"` }
type CfsConfig ¶
type CfsConfig struct { // 文件系统信息列表 CfsInsList []*CfsInsInfo `json:"CfsInsList,omitnil,omitempty" name:"CfsInsList"` }
type CfsInsInfo ¶
type CfsInsInfo struct { // 用户id UserId *string `json:"UserId,omitnil,omitempty" name:"UserId"` // 用户组id UserGroupId *string `json:"UserGroupId,omitnil,omitempty" name:"UserGroupId"` // 文件系统实例id CfsId *string `json:"CfsId,omitnil,omitempty" name:"CfsId"` // 文件系统挂载点id MountInsId *string `json:"MountInsId,omitnil,omitempty" name:"MountInsId"` // 本地挂载点 LocalMountDir *string `json:"LocalMountDir,omitnil,omitempty" name:"LocalMountDir"` // 远程挂载点 RemoteMountDir *string `json:"RemoteMountDir,omitnil,omitempty" name:"RemoteMountDir"` // 文件系统ip,配置 cfs 时无需填写。 // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 IpAddress *string `json:"IpAddress,omitnil,omitempty" name:"IpAddress"` // 文件系统所在的私有网络id,配置 cfs 时无需填写。 // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 MountVpcId *string `json:"MountVpcId,omitnil,omitempty" name:"MountVpcId"` // 文件系统所在私有网络的子网id,配置 cfs 时无需填写。 // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 MountSubnetId *string `json:"MountSubnetId,omitnil,omitempty" name:"MountSubnetId"` }
type Client ¶
func NewClient ¶
func NewClient(credential common.CredentialIface, 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)
CopyFunction 复制一个函数,您可以选择将复制出的新函数放置在特定的Region和Namespace。
注:本接口**不会**复制函数的以下对象或属性:
1. 函数的触发器
2. 除了$LATEST以外的其它版本
3. 函数配置的日志投递到的CLS目标。
如有需要,您可以在复制后手动配置新函数。
可能返回的错误码:
FAILEDOPERATION_COPYASYNCRUN = "FailedOperation.CopyAsyncRun" FAILEDOPERATION_COPYFAILED = "FailedOperation.CopyFailed" FAILEDOPERATION_COPYFUNCTION = "FailedOperation.CopyFunction" INTERNALERROR = "InternalError" INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" LIMITEXCEEDED_FUNCTION = "LimitExceeded.Function" LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory" LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout" RESOURCEINUSE_FUNCTIONNAME = "ResourceInUse.FunctionName" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region" UNSUPPORTEDOPERATION_COPYFUNCTION = "UnsupportedOperation.CopyFunction" UNSUPPORTEDOPERATION_REGION = "UnsupportedOperation.Region"
func (*Client) CopyFunctionWithContext ¶ added in v1.0.324
func (c *Client) CopyFunctionWithContext(ctx context.Context, request *CopyFunctionRequest) (response *CopyFunctionResponse, err error)
CopyFunction 复制一个函数,您可以选择将复制出的新函数放置在特定的Region和Namespace。
注:本接口**不会**复制函数的以下对象或属性:
1. 函数的触发器
2. 除了$LATEST以外的其它版本
3. 函数配置的日志投递到的CLS目标。
如有需要,您可以在复制后手动配置新函数。
可能返回的错误码:
FAILEDOPERATION_COPYASYNCRUN = "FailedOperation.CopyAsyncRun" FAILEDOPERATION_COPYFAILED = "FailedOperation.CopyFailed" FAILEDOPERATION_COPYFUNCTION = "FailedOperation.CopyFunction" INTERNALERROR = "InternalError" INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" LIMITEXCEEDED_FUNCTION = "LimitExceeded.Function" LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory" LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout" RESOURCEINUSE_FUNCTIONNAME = "ResourceInUse.FunctionName" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region" UNSUPPORTEDOPERATION_COPYFUNCTION = "UnsupportedOperation.CopyFunction" UNSUPPORTEDOPERATION_REGION = "UnsupportedOperation.Region"
func (*Client) CreateAlias ¶
func (c *Client) CreateAlias(request *CreateAliasRequest) (response *CreateAliasResponse, err error)
CreateAlias 为某个函数版本创建一个别名,您可以使用别名来标记特定的函数版本,如DEV/RELEASE版本,也可以随时修改别名指向的版本。
一个别名必须指向一个主版本,此外还可以同时指向一个附加版本。调用函数时指定特定的别名,则请求会被发送到别名指向的版本上,您可以配置请求发送到主版本和附加版本的比例。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CREATEALIAS = "FailedOperation.CreateAlias" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig" INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig" LIMITEXCEEDED_ALIAS = "LimitExceeded.Alias" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_ALIAS = "ResourceInUse.Alias" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) CreateAliasWithContext ¶ added in v1.0.324
func (c *Client) CreateAliasWithContext(ctx context.Context, request *CreateAliasRequest) (response *CreateAliasResponse, err error)
CreateAlias 为某个函数版本创建一个别名,您可以使用别名来标记特定的函数版本,如DEV/RELEASE版本,也可以随时修改别名指向的版本。
一个别名必须指向一个主版本,此外还可以同时指向一个附加版本。调用函数时指定特定的别名,则请求会被发送到别名指向的版本上,您可以配置请求发送到主版本和附加版本的比例。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CREATEALIAS = "FailedOperation.CreateAlias" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig" INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig" LIMITEXCEEDED_ALIAS = "LimitExceeded.Alias" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_ALIAS = "ResourceInUse.Alias" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) CreateFunction ¶
func (c *Client) CreateFunction(request *CreateFunctionRequest) (response *CreateFunctionResponse, err error)
CreateFunction 该接口根据传入参数创建新的函数。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_ACCOUNTINSUFFICIENT = "FailedOperation.AccountInsufficient" FAILEDOPERATION_APMCONFIGINSTANCEID = "FailedOperation.ApmConfigInstanceId" FAILEDOPERATION_CALLNETDEPLOYFAILED = "FailedOperation.CallNetDeployFailed" FAILEDOPERATION_CALLROLEFAILED = "FailedOperation.CallRoleFailed" FAILEDOPERATION_CLSSERVICEUNREGISTERED = "FailedOperation.ClsServiceUnregistered" FAILEDOPERATION_CLUSTERNOTFOUND = "FailedOperation.ClusterNotFound" FAILEDOPERATION_CREATEFUNCTION = "FailedOperation.CreateFunction" FAILEDOPERATION_INSTANCENOTFOUND = "FailedOperation.InstanceNotFound" FAILEDOPERATION_INSUFFICIENTRESOURCES = "FailedOperation.InsufficientResources" FAILEDOPERATION_NAMESPACE = "FailedOperation.Namespace" FAILEDOPERATION_OPENSERVICE = "FailedOperation.OpenService" FAILEDOPERATION_QCSROLENOTFOUND = "FailedOperation.QcsRoleNotFound" FAILEDOPERATION_TOTALCONCURRENCYMEMORYINPROGRESS = "FailedOperation.TotalConcurrencyMemoryInProgress" FAILEDOPERATION_UNOPENEDSERVICE = "FailedOperation.UnOpenedService" INTERNALERROR = "InternalError" INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError" INTERNALERROR_GETSTSTOKENFAILED = "InternalError.GetStsTokenFailed" INTERNALERROR_SYSTEM = "InternalError.System" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_APMCONFIG = "InvalidParameterValue.ApmConfig" INVALIDPARAMETERVALUE_APMCONFIGINSTANCEID = "InvalidParameterValue.ApmConfigInstanceId" INVALIDPARAMETERVALUE_APMCONFIGREGION = "InvalidParameterValue.ApmConfigRegion" INVALIDPARAMETERVALUE_ARGS = "InvalidParameterValue.Args" INVALIDPARAMETERVALUE_ARGSLIST = "InvalidParameterValue.ArgsList" INVALIDPARAMETERVALUE_ASYNCRUNENABLE = "InvalidParameterValue.AsyncRunEnable" INVALIDPARAMETERVALUE_CFSPARAMETERDUPLICATE = "InvalidParameterValue.CfsParameterDuplicate" INVALIDPARAMETERVALUE_CFSPARAMETERERROR = "InvalidParameterValue.CfsParameterError" INVALIDPARAMETERVALUE_CFSSTRUCTIONERROR = "InvalidParameterValue.CfsStructionError" INVALIDPARAMETERVALUE_CLS = "InvalidParameterValue.Cls" INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code" INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret" INVALIDPARAMETERVALUE_CODESOURCE = "InvalidParameterValue.CodeSource" INVALIDPARAMETERVALUE_COMMAND = "InvalidParameterValue.Command" INVALIDPARAMETERVALUE_COMMANDLIST = "InvalidParameterValue.CommandList" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName" INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion" INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName" INVALIDPARAMETERVALUE_DEADLETTERCONFIG = "InvalidParameterValue.DeadLetterConfig" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_DISKSIZE = "InvalidParameterValue.DiskSize" INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo" INVALIDPARAMETERVALUE_DYNAMICENABLED = "InvalidParameterValue.DynamicEnabled" INVALIDPARAMETERVALUE_EIPCONFIG = "InvalidParameterValue.EipConfig" INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment" INVALIDPARAMETERVALUE_ENVIRONMENTEXCEEDEDLIMIT = "InvalidParameterValue.EnvironmentExceededLimit" INVALIDPARAMETERVALUE_ENVIRONMENTSYSTEMPROTECT = "InvalidParameterValue.EnvironmentSystemProtect" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType" INVALIDPARAMETERVALUE_GITCOMMITID = "InvalidParameterValue.GitCommitId" INVALIDPARAMETERVALUE_GITPASSWORDSECRET = "InvalidParameterValue.GitPasswordSecret" INVALIDPARAMETERVALUE_GITURL = "InvalidParameterValue.GitUrl" INVALIDPARAMETERVALUE_GITUSERNAMESECRET = "InvalidParameterValue.GitUserNameSecret" INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler" INVALIDPARAMETERVALUE_IDLETIMEOUT = "InvalidParameterValue.IdleTimeOut" INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType" INVALIDPARAMETERVALUE_IMAGEURI = "InvalidParameterValue.ImageUri" INVALIDPARAMETERVALUE_INSTANCECONCURRENCYCONFIG = "InvalidParameterValue.InstanceConcurrencyConfig" INVALIDPARAMETERVALUE_L5ENABLE = "InvalidParameterValue.L5Enable" INVALIDPARAMETERVALUE_LAYERS = "InvalidParameterValue.Layers" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_LOGFORMAT = "InvalidParameterValue.LogFormat" INVALIDPARAMETERVALUE_MAXCONCURRENCY = "InvalidParameterValue.MaxConcurrency" INVALIDPARAMETERVALUE_MEMORY = "InvalidParameterValue.Memory" INVALIDPARAMETERVALUE_MEMORYSIZE = "InvalidParameterValue.MemorySize" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_NODESPEC = "InvalidParameterValue.NodeSpec" INVALIDPARAMETERVALUE_NODETYPE = "InvalidParameterValue.NodeType" INVALIDPARAMETERVALUE_PROTOCOLTYPE = "InvalidParameterValue.ProtocolType" INVALIDPARAMETERVALUE_PUBLICNETCONFIG = "InvalidParameterValue.PublicNetConfig" INVALIDPARAMETERVALUE_REGISTRYID = "InvalidParameterValue.RegistryId" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName" INVALIDPARAMETERVALUE_TRACEENABLE = "InvalidParameterValue.TraceEnable" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" INVALIDPARAMETERVALUE_VPC = "InvalidParameterValue.Vpc" INVALIDPARAMETERVALUE_VPCNOTSETWHENOPENCFS = "InvalidParameterValue.VpcNotSetWhenOpenCfs" INVALIDPARAMETERVALUE_WEBSOCKETSPARAMS = "InvalidParameterValue.WebSocketsParams" INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile" INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError" LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate" LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota" LIMITEXCEEDED_EIP = "LimitExceeded.Eip" LIMITEXCEEDED_FUNCTION = "LimitExceeded.Function" LIMITEXCEEDED_INITTIMEOUT = "LimitExceeded.InitTimeout" LIMITEXCEEDED_INTRAIP = "LimitExceeded.IntraIp" LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory" LIMITEXCEEDED_PRIVILEGECONTAINER = "LimitExceeded.PrivilegeContainer" LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout" MISSINGPARAMETER_CODE = "MissingParameter.Code" MISSINGPARAMETER_RUNTIME = "MissingParameter.Runtime" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_FUNCTION = "ResourceInUse.Function" RESOURCEINUSE_FUNCTIONNAME = "ResourceInUse.FunctionName" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CFSMOUNTINSNOTMATCH = "ResourceNotFound.CfsMountInsNotMatch" RESOURCENOTFOUND_CFSPROTOCOLERROR = "ResourceNotFound.CfsProtocolError" RESOURCENOTFOUND_CFSSTATUSERROR = "ResourceNotFound.CfsStatusError" RESOURCENOTFOUND_CFSVPCNOTMATCH = "ResourceNotFound.CfsVpcNotMatch" RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq" RESOURCENOTFOUND_DEMO = "ResourceNotFound.Demo" RESOURCENOTFOUND_GETCFSMOUNTINSERROR = "ResourceNotFound.GetCfsMountInsError" RESOURCENOTFOUND_GETCFSNOTMATCH = "ResourceNotFound.GetCfsNotMatch" RESOURCENOTFOUND_IMAGECONFIG = "ResourceNotFound.ImageConfig" RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_ROLE = "ResourceNotFound.Role" RESOURCENOTFOUND_VPC = "ResourceNotFound.Vpc" RESOURCEUNAVAILABLE_NAMESPACE = "ResourceUnavailable.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region" UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role" UNAUTHORIZEDOPERATION_TEMPCOSAPPID = "UnauthorizedOperation.TempCosAppid" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_ASYNCRUNENABLE = "UnsupportedOperation.AsyncRunEnable" UNSUPPORTEDOPERATION_DISKSIZE = "UnsupportedOperation.DiskSize" UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed" UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig"
func (*Client) CreateFunctionWithContext ¶ added in v1.0.324
func (c *Client) CreateFunctionWithContext(ctx context.Context, request *CreateFunctionRequest) (response *CreateFunctionResponse, err error)
CreateFunction 该接口根据传入参数创建新的函数。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_ACCOUNTINSUFFICIENT = "FailedOperation.AccountInsufficient" FAILEDOPERATION_APMCONFIGINSTANCEID = "FailedOperation.ApmConfigInstanceId" FAILEDOPERATION_CALLNETDEPLOYFAILED = "FailedOperation.CallNetDeployFailed" FAILEDOPERATION_CALLROLEFAILED = "FailedOperation.CallRoleFailed" FAILEDOPERATION_CLSSERVICEUNREGISTERED = "FailedOperation.ClsServiceUnregistered" FAILEDOPERATION_CLUSTERNOTFOUND = "FailedOperation.ClusterNotFound" FAILEDOPERATION_CREATEFUNCTION = "FailedOperation.CreateFunction" FAILEDOPERATION_INSTANCENOTFOUND = "FailedOperation.InstanceNotFound" FAILEDOPERATION_INSUFFICIENTRESOURCES = "FailedOperation.InsufficientResources" FAILEDOPERATION_NAMESPACE = "FailedOperation.Namespace" FAILEDOPERATION_OPENSERVICE = "FailedOperation.OpenService" FAILEDOPERATION_QCSROLENOTFOUND = "FailedOperation.QcsRoleNotFound" FAILEDOPERATION_TOTALCONCURRENCYMEMORYINPROGRESS = "FailedOperation.TotalConcurrencyMemoryInProgress" FAILEDOPERATION_UNOPENEDSERVICE = "FailedOperation.UnOpenedService" INTERNALERROR = "InternalError" INTERNALERROR_GETROLEERROR = "InternalError.GetRoleError" INTERNALERROR_GETSTSTOKENFAILED = "InternalError.GetStsTokenFailed" INTERNALERROR_SYSTEM = "InternalError.System" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_APMCONFIG = "InvalidParameterValue.ApmConfig" INVALIDPARAMETERVALUE_APMCONFIGINSTANCEID = "InvalidParameterValue.ApmConfigInstanceId" INVALIDPARAMETERVALUE_APMCONFIGREGION = "InvalidParameterValue.ApmConfigRegion" INVALIDPARAMETERVALUE_ARGS = "InvalidParameterValue.Args" INVALIDPARAMETERVALUE_ARGSLIST = "InvalidParameterValue.ArgsList" INVALIDPARAMETERVALUE_ASYNCRUNENABLE = "InvalidParameterValue.AsyncRunEnable" INVALIDPARAMETERVALUE_CFSPARAMETERDUPLICATE = "InvalidParameterValue.CfsParameterDuplicate" INVALIDPARAMETERVALUE_CFSPARAMETERERROR = "InvalidParameterValue.CfsParameterError" INVALIDPARAMETERVALUE_CFSSTRUCTIONERROR = "InvalidParameterValue.CfsStructionError" INVALIDPARAMETERVALUE_CLS = "InvalidParameterValue.Cls" INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code" INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret" INVALIDPARAMETERVALUE_CODESOURCE = "InvalidParameterValue.CodeSource" INVALIDPARAMETERVALUE_COMMAND = "InvalidParameterValue.Command" INVALIDPARAMETERVALUE_COMMANDLIST = "InvalidParameterValue.CommandList" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName" INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion" INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName" INVALIDPARAMETERVALUE_DEADLETTERCONFIG = "InvalidParameterValue.DeadLetterConfig" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_DISKSIZE = "InvalidParameterValue.DiskSize" INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo" INVALIDPARAMETERVALUE_DYNAMICENABLED = "InvalidParameterValue.DynamicEnabled" INVALIDPARAMETERVALUE_EIPCONFIG = "InvalidParameterValue.EipConfig" INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment" INVALIDPARAMETERVALUE_ENVIRONMENTEXCEEDEDLIMIT = "InvalidParameterValue.EnvironmentExceededLimit" INVALIDPARAMETERVALUE_ENVIRONMENTSYSTEMPROTECT = "InvalidParameterValue.EnvironmentSystemProtect" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType" INVALIDPARAMETERVALUE_GITCOMMITID = "InvalidParameterValue.GitCommitId" INVALIDPARAMETERVALUE_GITPASSWORDSECRET = "InvalidParameterValue.GitPasswordSecret" INVALIDPARAMETERVALUE_GITURL = "InvalidParameterValue.GitUrl" INVALIDPARAMETERVALUE_GITUSERNAMESECRET = "InvalidParameterValue.GitUserNameSecret" INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler" INVALIDPARAMETERVALUE_IDLETIMEOUT = "InvalidParameterValue.IdleTimeOut" INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType" INVALIDPARAMETERVALUE_IMAGEURI = "InvalidParameterValue.ImageUri" INVALIDPARAMETERVALUE_INSTANCECONCURRENCYCONFIG = "InvalidParameterValue.InstanceConcurrencyConfig" INVALIDPARAMETERVALUE_L5ENABLE = "InvalidParameterValue.L5Enable" INVALIDPARAMETERVALUE_LAYERS = "InvalidParameterValue.Layers" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_LOGFORMAT = "InvalidParameterValue.LogFormat" INVALIDPARAMETERVALUE_MAXCONCURRENCY = "InvalidParameterValue.MaxConcurrency" INVALIDPARAMETERVALUE_MEMORY = "InvalidParameterValue.Memory" INVALIDPARAMETERVALUE_MEMORYSIZE = "InvalidParameterValue.MemorySize" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_NODESPEC = "InvalidParameterValue.NodeSpec" INVALIDPARAMETERVALUE_NODETYPE = "InvalidParameterValue.NodeType" INVALIDPARAMETERVALUE_PROTOCOLTYPE = "InvalidParameterValue.ProtocolType" INVALIDPARAMETERVALUE_PUBLICNETCONFIG = "InvalidParameterValue.PublicNetConfig" INVALIDPARAMETERVALUE_REGISTRYID = "InvalidParameterValue.RegistryId" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName" INVALIDPARAMETERVALUE_TRACEENABLE = "InvalidParameterValue.TraceEnable" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" INVALIDPARAMETERVALUE_VPC = "InvalidParameterValue.Vpc" INVALIDPARAMETERVALUE_VPCNOTSETWHENOPENCFS = "InvalidParameterValue.VpcNotSetWhenOpenCfs" INVALIDPARAMETERVALUE_WEBSOCKETSPARAMS = "InvalidParameterValue.WebSocketsParams" INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile" INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError" LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate" LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota" LIMITEXCEEDED_EIP = "LimitExceeded.Eip" LIMITEXCEEDED_FUNCTION = "LimitExceeded.Function" LIMITEXCEEDED_INITTIMEOUT = "LimitExceeded.InitTimeout" LIMITEXCEEDED_INTRAIP = "LimitExceeded.IntraIp" LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory" LIMITEXCEEDED_PRIVILEGECONTAINER = "LimitExceeded.PrivilegeContainer" LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout" MISSINGPARAMETER_CODE = "MissingParameter.Code" MISSINGPARAMETER_RUNTIME = "MissingParameter.Runtime" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_FUNCTION = "ResourceInUse.Function" RESOURCEINUSE_FUNCTIONNAME = "ResourceInUse.FunctionName" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CFSMOUNTINSNOTMATCH = "ResourceNotFound.CfsMountInsNotMatch" RESOURCENOTFOUND_CFSPROTOCOLERROR = "ResourceNotFound.CfsProtocolError" RESOURCENOTFOUND_CFSSTATUSERROR = "ResourceNotFound.CfsStatusError" RESOURCENOTFOUND_CFSVPCNOTMATCH = "ResourceNotFound.CfsVpcNotMatch" RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq" RESOURCENOTFOUND_DEMO = "ResourceNotFound.Demo" RESOURCENOTFOUND_GETCFSMOUNTINSERROR = "ResourceNotFound.GetCfsMountInsError" RESOURCENOTFOUND_GETCFSNOTMATCH = "ResourceNotFound.GetCfsNotMatch" RESOURCENOTFOUND_IMAGECONFIG = "ResourceNotFound.ImageConfig" RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_ROLE = "ResourceNotFound.Role" RESOURCENOTFOUND_VPC = "ResourceNotFound.Vpc" RESOURCEUNAVAILABLE_NAMESPACE = "ResourceUnavailable.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region" UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role" UNAUTHORIZEDOPERATION_TEMPCOSAPPID = "UnauthorizedOperation.TempCosAppid" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_ASYNCRUNENABLE = "UnsupportedOperation.AsyncRunEnable" UNSUPPORTEDOPERATION_DISKSIZE = "UnsupportedOperation.DiskSize" UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed" UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig"
func (*Client) CreateNamespace ¶
func (c *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
CreateNamespace 该接口根据传入的参数创建命名空间。
可能返回的错误码:
FAILEDOPERATION_CREATENAMESPACE = "FailedOperation.CreateNamespace" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_DEFAULTNAMESPACE = "InvalidParameterValue.DefaultNamespace" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" LIMITEXCEEDED_NAMESPACE = "LimitExceeded.Namespace" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateNamespaceWithContext ¶ added in v1.0.324
func (c *Client) CreateNamespaceWithContext(ctx context.Context, request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
CreateNamespace 该接口根据传入的参数创建命名空间。
可能返回的错误码:
FAILEDOPERATION_CREATENAMESPACE = "FailedOperation.CreateNamespace" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_DEFAULTNAMESPACE = "InvalidParameterValue.DefaultNamespace" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" LIMITEXCEEDED_NAMESPACE = "LimitExceeded.Namespace" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) CreateTrigger ¶
func (c *Client) CreateTrigger(request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)
CreateTrigger 该接口根据参数输入设置新的触发方式。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_APIGATEWAY = "FailedOperation.ApiGateway" FAILEDOPERATION_APIGW = "FailedOperation.Apigw" FAILEDOPERATION_COS = "FailedOperation.Cos" FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger" INTERNALERROR_APIGATEWAY = "InternalError.ApiGateway" INTERNALERROR_CKAFKA = "InternalError.Ckafka" INTERNALERROR_CMQ = "InternalError.Cmq" INTERNALERROR_COS = "InternalError.Cos" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway" INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn" INVALIDPARAMETERVALUE_CKAFKA = "InvalidParameterValue.Ckafka" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict" INVALIDPARAMETERVALUE_CUSTOMARGUMENT = "InvalidParameterValue.CustomArgument" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_SECRETINFO = "InvalidParameterValue.SecretInfo" INVALIDPARAMETERVALUE_SERVICENAME = "InvalidParameterValue.ServiceName" INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc" INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile" LIMITEXCEEDED_CDN = "LimitExceeded.Cdn" LIMITEXCEEDED_FUNCTIONONTOPIC = "LimitExceeded.FunctionOnTopic" LIMITEXCEEDED_TRIGGER = "LimitExceeded.Trigger" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_CDN = "ResourceInUse.Cdn" RESOURCEINUSE_CMQ = "ResourceInUse.Cmq" RESOURCEINUSE_COS = "ResourceInUse.Cos" RESOURCEINUSE_TRIGGER = "ResourceInUse.Trigger" RESOURCEINUSE_TRIGGERNAME = "ResourceInUse.TriggerName" RESOURCEINSUFFICIENT_COS = "ResourceInsufficient.COS" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn" RESOURCENOTFOUND_CKAFKA = "ResourceNotFound.Ckafka" RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq" RESOURCENOTFOUND_COS = "ResourceNotFound.Cos" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_CREATETRIGGER = "UnauthorizedOperation.CreateTrigger" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn" UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos" UNSUPPORTEDOPERATION_TRIGGER = "UnsupportedOperation.Trigger"
func (*Client) CreateTriggerWithContext ¶ added in v1.0.324
func (c *Client) CreateTriggerWithContext(ctx context.Context, request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)
CreateTrigger 该接口根据参数输入设置新的触发方式。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_APIGATEWAY = "FailedOperation.ApiGateway" FAILEDOPERATION_APIGW = "FailedOperation.Apigw" FAILEDOPERATION_COS = "FailedOperation.Cos" FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger" INTERNALERROR_APIGATEWAY = "InternalError.ApiGateway" INTERNALERROR_CKAFKA = "InternalError.Ckafka" INTERNALERROR_CMQ = "InternalError.Cmq" INTERNALERROR_COS = "InternalError.Cos" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway" INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn" INVALIDPARAMETERVALUE_CKAFKA = "InvalidParameterValue.Ckafka" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict" INVALIDPARAMETERVALUE_CUSTOMARGUMENT = "InvalidParameterValue.CustomArgument" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_SECRETINFO = "InvalidParameterValue.SecretInfo" INVALIDPARAMETERVALUE_SERVICENAME = "InvalidParameterValue.ServiceName" INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc" INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile" LIMITEXCEEDED_CDN = "LimitExceeded.Cdn" LIMITEXCEEDED_FUNCTIONONTOPIC = "LimitExceeded.FunctionOnTopic" LIMITEXCEEDED_TRIGGER = "LimitExceeded.Trigger" RESOURCEINUSE = "ResourceInUse" RESOURCEINUSE_CDN = "ResourceInUse.Cdn" RESOURCEINUSE_CMQ = "ResourceInUse.Cmq" RESOURCEINUSE_COS = "ResourceInUse.Cos" RESOURCEINUSE_TRIGGER = "ResourceInUse.Trigger" RESOURCEINUSE_TRIGGERNAME = "ResourceInUse.TriggerName" RESOURCEINSUFFICIENT_COS = "ResourceInsufficient.COS" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn" RESOURCENOTFOUND_CKAFKA = "ResourceNotFound.Ckafka" RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq" RESOURCENOTFOUND_COS = "ResourceNotFound.Cos" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_CREATETRIGGER = "UnauthorizedOperation.CreateTrigger" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn" UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos" UNSUPPORTEDOPERATION_TRIGGER = "UnsupportedOperation.Trigger"
func (*Client) DeleteAlias ¶
func (c *Client) DeleteAlias(request *DeleteAliasRequest) (response *DeleteAliasResponse, err error)
DeleteAlias 删除一个函数版本的别名
可能返回的错误码:
FAILEDOPERATION_DELETEALIAS = "FailedOperation.DeleteAlias" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_ALIAS = "InvalidParameterValue.Alias" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
func (*Client) DeleteAliasWithContext ¶ added in v1.0.324
func (c *Client) DeleteAliasWithContext(ctx context.Context, request *DeleteAliasRequest) (response *DeleteAliasResponse, err error)
DeleteAlias 删除一个函数版本的别名
可能返回的错误码:
FAILEDOPERATION_DELETEALIAS = "FailedOperation.DeleteAlias" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_ALIAS = "InvalidParameterValue.Alias" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
func (*Client) DeleteFunction ¶
func (c *Client) DeleteFunction(request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)
DeleteFunction 该接口根据传入参数删除函数。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DELETEFUNCTION = "FailedOperation.DeleteFunction" FAILEDOPERATION_FUNCTIONNAMESTATUSERROR = "FailedOperation.FunctionNameStatusError" FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress" INTERNALERROR_CMQ = "InternalError.Cmq" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_DELETEFUNCTION = "UnauthorizedOperation.DeleteFunction" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_ALIASBIND = "UnsupportedOperation.AliasBind"
func (*Client) DeleteFunctionWithContext ¶ added in v1.0.324
func (c *Client) DeleteFunctionWithContext(ctx context.Context, request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)
DeleteFunction 该接口根据传入参数删除函数。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DELETEFUNCTION = "FailedOperation.DeleteFunction" FAILEDOPERATION_FUNCTIONNAMESTATUSERROR = "FailedOperation.FunctionNameStatusError" FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress" INTERNALERROR_CMQ = "InternalError.Cmq" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_ATTACHEDTAGKEYNOTFOUND = "ResourceNotFound.AttachedTagKeyNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_DELETEFUNCTION = "UnauthorizedOperation.DeleteFunction" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_ALIASBIND = "UnsupportedOperation.AliasBind"
func (*Client) DeleteLayerVersion ¶
func (c *Client) DeleteLayerVersion(request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)
DeleteLayerVersion 删除指定层的指定版本,被删除的版本无法再关联到函数上,但不会影响正在引用这个层的函数。
可能返回的错误码:
FAILEDOPERATION_DELETELAYERVERSION = "FailedOperation.DeleteLayerVersion" FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" RESOURCEINUSE_LAYERVERSION = "ResourceInUse.LayerVersion" RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) DeleteLayerVersionWithContext ¶ added in v1.0.324
func (c *Client) DeleteLayerVersionWithContext(ctx context.Context, request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)
DeleteLayerVersion 删除指定层的指定版本,被删除的版本无法再关联到函数上,但不会影响正在引用这个层的函数。
可能返回的错误码:
FAILEDOPERATION_DELETELAYERVERSION = "FailedOperation.DeleteLayerVersion" FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" RESOURCEINUSE_LAYERVERSION = "ResourceInUse.LayerVersion" RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) DeleteNamespace ¶
func (c *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
DeleteNamespace 该接口根据传入的参数删除命名空间。
可能返回的错误码:
FAILEDOPERATION_DELETENAMESPACE = "FailedOperation.DeleteNamespace" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid" RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteNamespaceWithContext ¶ added in v1.0.324
func (c *Client) DeleteNamespaceWithContext(ctx context.Context, request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
DeleteNamespace 该接口根据传入的参数删除命名空间。
可能返回的错误码:
FAILEDOPERATION_DELETENAMESPACE = "FailedOperation.DeleteNamespace" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_NAMESPACEINVALID = "InvalidParameterValue.NamespaceInvalid" RESOURCEINUSE_NAMESPACE = "ResourceInUse.Namespace" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) DeleteProvisionedConcurrencyConfig ¶
func (c *Client) DeleteProvisionedConcurrencyConfig(request *DeleteProvisionedConcurrencyConfigRequest) (response *DeleteProvisionedConcurrencyConfigResponse, err error)
DeleteProvisionedConcurrencyConfig 删除函数版本的预置并发配置。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteProvisionedConcurrencyConfigWithContext ¶ added in v1.0.324
func (c *Client) DeleteProvisionedConcurrencyConfigWithContext(ctx context.Context, request *DeleteProvisionedConcurrencyConfigRequest) (response *DeleteProvisionedConcurrencyConfigResponse, err error)
DeleteProvisionedConcurrencyConfig 删除函数版本的预置并发配置。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteReservedConcurrencyConfig ¶
func (c *Client) DeleteReservedConcurrencyConfig(request *DeleteReservedConcurrencyConfigRequest) (response *DeleteReservedConcurrencyConfigResponse, err error)
DeleteReservedConcurrencyConfig 删除函数的最大独占配额配置。
可能返回的错误码:
FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus" FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress" INTERNALERROR = "InternalError" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteReservedConcurrencyConfigWithContext ¶ added in v1.0.324
func (c *Client) DeleteReservedConcurrencyConfigWithContext(ctx context.Context, request *DeleteReservedConcurrencyConfigRequest) (response *DeleteReservedConcurrencyConfigResponse, err error)
DeleteReservedConcurrencyConfig 删除函数的最大独占配额配置。
可能返回的错误码:
FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus" FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress" INTERNALERROR = "InternalError" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) DeleteTrigger ¶
func (c *Client) DeleteTrigger(request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)
DeleteTrigger 该接口根据参数传入删除已有的触发方式。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger" FAILEDOPERATION_DELETETRIGGER = "FailedOperation.DeleteTrigger" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway" INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn" INVALIDPARAMETERVALUE_CMQ = "InvalidParameterValue.Cmq" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc" INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" RESOURCEINUSE_CDN = "ResourceInUse.Cdn" RESOURCEINUSE_CMQ = "ResourceInUse.Cmq" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn" RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_TIMER = "ResourceNotFound.Timer" RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_DELETETRIGGER = "UnauthorizedOperation.DeleteTrigger" UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn"
func (*Client) DeleteTriggerWithContext ¶ added in v1.0.324
func (c *Client) DeleteTriggerWithContext(ctx context.Context, request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)
DeleteTrigger 该接口根据参数传入删除已有的触发方式。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger" FAILEDOPERATION_DELETETRIGGER = "FailedOperation.DeleteTrigger" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_APIGATEWAY = "InvalidParameterValue.ApiGateway" INVALIDPARAMETERVALUE_CDN = "InvalidParameterValue.Cdn" INVALIDPARAMETERVALUE_CMQ = "InvalidParameterValue.Cmq" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc" INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" RESOURCEINUSE_CDN = "ResourceInUse.Cdn" RESOURCEINUSE_CMQ = "ResourceInUse.Cmq" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_CDN = "ResourceNotFound.Cdn" RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_TIMER = "ResourceNotFound.Timer" RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_DELETETRIGGER = "UnauthorizedOperation.DeleteTrigger" UNSUPPORTEDOPERATION_CDN = "UnsupportedOperation.Cdn"
func (*Client) GetAccount ¶
func (c *Client) GetAccount(request *GetAccountRequest) (response *GetAccountResponse, err error)
GetAccount 获取账户信息
可能返回的错误码:
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) GetAccountWithContext ¶ added in v1.0.324
func (c *Client) GetAccountWithContext(ctx context.Context, request *GetAccountRequest) (response *GetAccountResponse, err error)
GetAccount 获取账户信息
可能返回的错误码:
INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) GetAlias ¶
func (c *Client) GetAlias(request *GetAliasRequest) (response *GetAliasResponse, err error)
GetAlias 获取别名的详细信息,包括名称、描述、版本、路由信息等。
可能返回的错误码:
FAILEDOPERATION_GETALIAS = "FailedOperation.GetAlias" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) GetAliasWithContext ¶ added in v1.0.324
func (c *Client) GetAliasWithContext(ctx context.Context, request *GetAliasRequest) (response *GetAliasResponse, err error)
GetAlias 获取别名的详细信息,包括名称、描述、版本、路由信息等。
可能返回的错误码:
FAILEDOPERATION_GETALIAS = "FailedOperation.GetAlias" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) GetAsyncEventStatus ¶ added in v1.0.308
func (c *Client) GetAsyncEventStatus(request *GetAsyncEventStatusRequest) (response *GetAsyncEventStatusResponse, err error)
GetAsyncEventStatus 获取函数异步执行事件状态,事件状态保留 3 * 24 小时(从事件完成开始计时)。
可能返回的错误码:
FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus" RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
func (*Client) GetAsyncEventStatusWithContext ¶ added in v1.0.324
func (c *Client) GetAsyncEventStatusWithContext(ctx context.Context, request *GetAsyncEventStatusRequest) (response *GetAsyncEventStatusResponse, err error)
GetAsyncEventStatus 获取函数异步执行事件状态,事件状态保留 3 * 24 小时(从事件完成开始计时)。
可能返回的错误码:
FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus" RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
func (*Client) GetFunction ¶
func (c *Client) GetFunction(request *GetFunctionRequest) (response *GetFunctionResponse, err error)
GetFunction 该接口获取某个函数的详细信息,包括名称、代码、处理方法、关联触发器和超时时间等字段。
可能返回的错误码:
FAILEDOPERATION_APIGW = "FailedOperation.Apigw" FAILEDOPERATION_CALLNETDEPLOYFAILED = "FailedOperation.CallNetDeployFailed" INTERNALERROR = "InternalError" INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_CODESECRET = "UnauthorizedOperation.CodeSecret"
func (*Client) GetFunctionAddress ¶
func (c *Client) GetFunctionAddress(request *GetFunctionAddressRequest) (response *GetFunctionAddressResponse, err error)
GetFunctionAddress 该接口用于获取函数代码包的下载地址。
可能返回的错误码:
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_GETFUNCTIONADDRESS = "FailedOperation.GetFunctionAddress" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_CODESECRET = "UnauthorizedOperation.CodeSecret"
func (*Client) GetFunctionAddressWithContext ¶ added in v1.0.324
func (c *Client) GetFunctionAddressWithContext(ctx context.Context, request *GetFunctionAddressRequest) (response *GetFunctionAddressResponse, err error)
GetFunctionAddress 该接口用于获取函数代码包的下载地址。
可能返回的错误码:
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_GETFUNCTIONADDRESS = "FailedOperation.GetFunctionAddress" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_CODESECRET = "UnauthorizedOperation.CodeSecret"
func (*Client) GetFunctionEventInvokeConfig ¶
func (c *Client) GetFunctionEventInvokeConfig(request *GetFunctionEventInvokeConfigRequest) (response *GetFunctionEventInvokeConfigResponse, err error)
GetFunctionEventInvokeConfig 获取函数异步重试配置,包括重试次数和消息保留时间
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) GetFunctionEventInvokeConfigWithContext ¶ added in v1.0.324
func (c *Client) GetFunctionEventInvokeConfigWithContext(ctx context.Context, request *GetFunctionEventInvokeConfigRequest) (response *GetFunctionEventInvokeConfigResponse, err error)
GetFunctionEventInvokeConfig 获取函数异步重试配置,包括重试次数和消息保留时间
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) GetFunctionLogs ¶
func (c *Client) GetFunctionLogs(request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)
GetFunctionLogs 该接口根据指定的日志查询条件返回函数运行日志。该接口已下线,查询函数请求运行的返回信息,请使用 [GetRequestStatus](https://cloud.tencent.com/document/product/583/65348)。查询函数运行日志,请参考[日志检索教程](https://cloud.tencent.com/document/product/583/52637)。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_AUTHFAILURE = "FailedOperation.AuthFailure" FAILEDOPERATION_QUERYERROR = "FailedOperation.QueryError" FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist" INTERNALERROR = "InternalError" INTERNALERROR_ES = "InternalError.ES" INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_CLS = "InvalidParameter.Cls" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETER_ROLECHECK = "InvalidParameter.RoleCheck" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime" INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType" INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType" INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy" INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode" INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime" LIMITEXCEEDED_OFFSET = "LimitExceeded.Offset" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_ROLECHECK = "ResourceNotFound.RoleCheck" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_NOTSUPPORTREGION = "UnsupportedOperation.NotSupportRegion"
func (*Client) GetFunctionLogsWithContext ¶ added in v1.0.324
func (c *Client) GetFunctionLogsWithContext(ctx context.Context, request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)
GetFunctionLogs 该接口根据指定的日志查询条件返回函数运行日志。该接口已下线,查询函数请求运行的返回信息,请使用 [GetRequestStatus](https://cloud.tencent.com/document/product/583/65348)。查询函数运行日志,请参考[日志检索教程](https://cloud.tencent.com/document/product/583/52637)。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_AUTHFAILURE = "FailedOperation.AuthFailure" FAILEDOPERATION_QUERYERROR = "FailedOperation.QueryError" FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist" INTERNALERROR = "InternalError" INTERNALERROR_ES = "InternalError.ES" INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_CLS = "InvalidParameter.Cls" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETER_ROLECHECK = "InvalidParameter.RoleCheck" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime" INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType" INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType" INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy" INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode" INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime" LIMITEXCEEDED_OFFSET = "LimitExceeded.Offset" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_ROLECHECK = "ResourceNotFound.RoleCheck" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_NOTSUPPORTREGION = "UnsupportedOperation.NotSupportRegion"
func (*Client) GetFunctionWithContext ¶ added in v1.0.324
func (c *Client) GetFunctionWithContext(ctx context.Context, request *GetFunctionRequest) (response *GetFunctionResponse, err error)
GetFunction 该接口获取某个函数的详细信息,包括名称、代码、处理方法、关联触发器和超时时间等字段。
可能返回的错误码:
FAILEDOPERATION_APIGW = "FailedOperation.Apigw" FAILEDOPERATION_CALLNETDEPLOYFAILED = "FailedOperation.CallNetDeployFailed" INTERNALERROR = "InternalError" INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_CODESECRET = "UnauthorizedOperation.CodeSecret"
func (*Client) GetLayerVersion ¶
func (c *Client) GetLayerVersion(request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)
GetLayerVersion 获取层版本详细信息,包括用于下载层中文件的链接。
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) GetLayerVersionWithContext ¶ added in v1.0.324
func (c *Client) GetLayerVersionWithContext(ctx context.Context, request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)
GetLayerVersion 获取层版本详细信息,包括用于下载层中文件的链接。
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" RESOURCENOTFOUND_LAYERVERSION = "ResourceNotFound.LayerVersion" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) GetProvisionedConcurrencyConfig ¶
func (c *Client) GetProvisionedConcurrencyConfig(request *GetProvisionedConcurrencyConfigRequest) (response *GetProvisionedConcurrencyConfigResponse, err error)
GetProvisionedConcurrencyConfig 获取函数或函数某一版本的预置并发详情。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) GetProvisionedConcurrencyConfigWithContext ¶ added in v1.0.324
func (c *Client) GetProvisionedConcurrencyConfigWithContext(ctx context.Context, request *GetProvisionedConcurrencyConfigRequest) (response *GetProvisionedConcurrencyConfigResponse, err error)
GetProvisionedConcurrencyConfig 获取函数或函数某一版本的预置并发详情。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) GetRequestStatus ¶ added in v1.0.304
func (c *Client) GetRequestStatus(request *GetRequestStatusRequest) (response *GetRequestStatusResponse, err error)
GetRequestStatus 该接口根据指定的查询条件返回函数单个请求运行状态。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_QUERYERROR = "FailedOperation.QueryError" FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_CLS = "InvalidParameter.Cls" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime" INVALIDPARAMETERVALUE_FUNCTION = "InvalidParameterValue.Function" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_FUNCTIONREQUESTID = "InvalidParameterValue.FunctionRequestId" INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode" INVALIDPARAMETERVALUE_STARTTIME = "InvalidParameterValue.StartTime" INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime" OPERATIONDENIED_ACCOUNTISOLATE = "OperationDenied.AccountIsolate" OPERATIONDENIED_ACCOUNTNOTEXISTS = "OperationDenied.AccountNotExists" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
func (*Client) GetRequestStatusWithContext ¶ added in v1.0.324
func (c *Client) GetRequestStatusWithContext(ctx context.Context, request *GetRequestStatusRequest) (response *GetRequestStatusResponse, err error)
GetRequestStatus 该接口根据指定的查询条件返回函数单个请求运行状态。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_QUERYERROR = "FailedOperation.QueryError" FAILEDOPERATION_TOPICNOTEXIST = "FailedOperation.TopicNotExist" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_CLS = "InvalidParameter.Cls" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DATETIME = "InvalidParameterValue.DateTime" INVALIDPARAMETERVALUE_FUNCTION = "InvalidParameterValue.Function" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_FUNCTIONREQUESTID = "InvalidParameterValue.FunctionRequestId" INVALIDPARAMETERVALUE_RETCODE = "InvalidParameterValue.RetCode" INVALIDPARAMETERVALUE_STARTTIME = "InvalidParameterValue.StartTime" INVALIDPARAMETERVALUE_STARTTIMEORENDTIME = "InvalidParameterValue.StartTimeOrEndTime" OPERATIONDENIED_ACCOUNTISOLATE = "OperationDenied.AccountIsolate" OPERATIONDENIED_ACCOUNTNOTEXISTS = "OperationDenied.AccountNotExists" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName"
func (*Client) GetReservedConcurrencyConfig ¶
func (c *Client) GetReservedConcurrencyConfig(request *GetReservedConcurrencyConfigRequest) (response *GetReservedConcurrencyConfigResponse, err error)
GetReservedConcurrencyConfig 获取函数的最大独占配额详情。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) GetReservedConcurrencyConfigWithContext ¶ added in v1.0.324
func (c *Client) GetReservedConcurrencyConfigWithContext(ctx context.Context, request *GetReservedConcurrencyConfigRequest) (response *GetReservedConcurrencyConfigResponse, err error)
GetReservedConcurrencyConfig 获取函数的最大独占配额详情。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) Invoke ¶
func (c *Client) Invoke(request *InvokeRequest) (response *InvokeResponse, err error)
Invoke 该接口用于运行函数。
可能返回的错误码:
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) InvokeFunction ¶ added in v1.0.205
func (c *Client) InvokeFunction(request *InvokeFunctionRequest) (response *InvokeFunctionResponse, err error)
InvokeFunction
SCF同步调用函数接口
可能返回的错误码:
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName" INVALIDPARAMETER_REQUESTTOOLARGE = "InvalidParameter.RequestTooLarge" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_CLIENTCONTEXT = "InvalidParameterValue.ClientContext" INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType" INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param" LIMITEXCEEDED_QUOTA = "LimitExceeded.Quota" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" RESOURCEUNAVAILABLE_SERVICESUSPENDED = "ResourceUnavailable.ServiceSuspended" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) InvokeFunctionWithContext ¶ added in v1.0.324
func (c *Client) InvokeFunctionWithContext(ctx context.Context, request *InvokeFunctionRequest) (response *InvokeFunctionResponse, err error)
InvokeFunction
SCF同步调用函数接口
可能返回的错误码:
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName" INVALIDPARAMETER_REQUESTTOOLARGE = "InvalidParameter.RequestTooLarge" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_CLIENTCONTEXT = "InvalidParameterValue.ClientContext" INVALIDPARAMETERVALUE_FUNCTIONTYPE = "InvalidParameterValue.FunctionType" INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param" LIMITEXCEEDED_QUOTA = "LimitExceeded.Quota" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" RESOURCEUNAVAILABLE_SERVICESUSPENDED = "ResourceUnavailable.ServiceSuspended" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) InvokeWithContext ¶ added in v1.0.324
func (c *Client) InvokeWithContext(ctx context.Context, request *InvokeRequest) (response *InvokeResponse, err error)
Invoke 该接口用于运行函数。
可能返回的错误码:
FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_INVOKEFUNCTION = "FailedOperation.InvokeFunction" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_FUNCTIONNAME = "InvalidParameter.FunctionName" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_PARAM = "InvalidParameterValue.Param" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCEUNAVAILABLE_INSUFFICIENTBALANCE = "ResourceUnavailable.InsufficientBalance" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) ListAliases ¶
func (c *Client) ListAliases(request *ListAliasesRequest) (response *ListAliasesResponse, err error)
ListAliases 返回一个函数下的全部别名,可以根据特定函数版本过滤。
可能返回的错误码:
INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) ListAliasesWithContext ¶ added in v1.0.324
func (c *Client) ListAliasesWithContext(ctx context.Context, request *ListAliasesRequest) (response *ListAliasesResponse, err error)
ListAliases 返回一个函数下的全部别名,可以根据特定函数版本过滤。
可能返回的错误码:
INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) ListAsyncEvents ¶
func (c *Client) ListAsyncEvents(request *ListAsyncEventsRequest) (response *ListAsyncEventsResponse, err error)
ListAsyncEvents 拉取函数异步事件列表
可能返回的错误码:
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_INVOKETYPE = "InvalidParameterValue.InvokeType" INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_STATUS = "InvalidParameterValue.Status" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
func (*Client) ListAsyncEventsWithContext ¶ added in v1.0.324
func (c *Client) ListAsyncEventsWithContext(ctx context.Context, request *ListAsyncEventsRequest) (response *ListAsyncEventsResponse, err error)
ListAsyncEvents 拉取函数异步事件列表
可能返回的错误码:
INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_INVOKETYPE = "InvalidParameterValue.InvokeType" INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_STATUS = "InvalidParameterValue.Status" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version"
func (*Client) ListFunctions ¶
func (c *Client) ListFunctions(request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)
ListFunctions 该接口根据传入的查询参数返回相关函数信息。
可能返回的错误码:
INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_QUERYVERSION = "InvalidParameterValue.QueryVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region"
func (*Client) ListFunctionsWithContext ¶ added in v1.0.324
func (c *Client) ListFunctionsWithContext(ctx context.Context, request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)
ListFunctions 该接口根据传入的查询参数返回相关函数信息。
可能返回的错误码:
INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_LIMIT = "InvalidParameterValue.Limit" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_OFFSET = "InvalidParameterValue.Offset" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_QUERYVERSION = "InvalidParameterValue.QueryVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_REGION = "UnauthorizedOperation.Region"
func (*Client) ListLayerVersions ¶
func (c *Client) ListLayerVersions(request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)
ListLayerVersions 返回指定层的全部版本的信息
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) ListLayerVersionsWithContext ¶ added in v1.0.324
func (c *Client) ListLayerVersionsWithContext(ctx context.Context, request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)
ListLayerVersions 返回指定层的全部版本的信息
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) ListLayers ¶
func (c *Client) ListLayers(request *ListLayersRequest) (response *ListLayersResponse, err error)
ListLayers 返回全部层的列表,其中包含了每个层最新版本的信息,可以通过适配运行时进行过滤。
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" LIMITEXCEEDED_LAYERS = "LimitExceeded.Layers" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) ListLayersWithContext ¶ added in v1.0.324
func (c *Client) ListLayersWithContext(ctx context.Context, request *ListLayersRequest) (response *ListLayersResponse, err error)
ListLayers 返回全部层的列表,其中包含了每个层最新版本的信息,可以通过适配运行时进行过滤。
可能返回的错误码:
INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" LIMITEXCEEDED_LAYERS = "LimitExceeded.Layers" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) ListNamespaces ¶
func (c *Client) ListNamespaces(request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)
ListNamespaces 列出命名空间列表
可能返回的错误码:
INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_SEARCHKEY = "InvalidParameterValue.SearchKey" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
func (*Client) ListNamespacesWithContext ¶ added in v1.0.324
func (c *Client) ListNamespacesWithContext(ctx context.Context, request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)
ListNamespaces 列出命名空间列表
可能返回的错误码:
INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_SEARCHKEY = "InvalidParameterValue.SearchKey" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp"
func (*Client) ListTriggers ¶
func (c *Client) ListTriggers(request *ListTriggersRequest) (response *ListTriggersResponse, err error)
ListTriggers 获取函数触发器列表
可能返回的错误码:
FAILEDOPERATION_APIGW = "FailedOperation.Apigw" INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy"
func (*Client) ListTriggersWithContext ¶ added in v1.0.324
func (c *Client) ListTriggersWithContext(ctx context.Context, request *ListTriggersRequest) (response *ListTriggersResponse, err error)
ListTriggers 获取函数触发器列表
可能返回的错误码:
FAILEDOPERATION_APIGW = "FailedOperation.Apigw" INVALIDPARAMETERVALUE_FILTERS = "InvalidParameterValue.Filters" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" INVALIDPARAMETERVALUE_ORDERBY = "InvalidParameterValue.OrderBy"
func (*Client) ListVersionByFunction ¶
func (c *Client) ListVersionByFunction(request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)
ListVersionByFunction 该接口根据传入的参数查询函数的版本。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) ListVersionByFunctionWithContext ¶ added in v1.0.324
func (c *Client) ListVersionByFunctionWithContext(ctx context.Context, request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)
ListVersionByFunction 该接口根据传入的参数查询函数的版本。
可能返回的错误码:
INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_ORDER = "InvalidParameterValue.Order" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) PublishLayerVersion ¶
func (c *Client) PublishLayerVersion(request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)
PublishLayerVersion 使用给定的zip文件或cos对象创建一个层的新版本,每次使用相同的层的名称调用本接口,都会生成一个新版本。
可能返回的错误码:
FAILEDOPERATION_PUBLISHLAYERVERSION = "FailedOperation.PublishLayerVersion" INTERNALERROR = "InternalError" INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_COMPATIBLERUNTIMES = "InvalidParameterValue.CompatibleRuntimes" INVALIDPARAMETERVALUE_CONTENT = "InvalidParameterValue.Content" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName" INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion" INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_LAYERNAME = "InvalidParameterValue.LayerName" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName" INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError" LIMITEXCEEDED_LAYERVERSIONS = "LimitExceeded.LayerVersions" RESOURCEINUSE = "ResourceInUse" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_NOTMC = "UnauthorizedOperation.NotMC" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos"
func (*Client) PublishLayerVersionWithContext ¶ added in v1.0.324
func (c *Client) PublishLayerVersionWithContext(ctx context.Context, request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)
PublishLayerVersion 使用给定的zip文件或cos对象创建一个层的新版本,每次使用相同的层的名称调用本接口,都会生成一个新版本。
可能返回的错误码:
FAILEDOPERATION_PUBLISHLAYERVERSION = "FailedOperation.PublishLayerVersion" INTERNALERROR = "InternalError" INTERNALERROR_EXCEPTION = "InternalError.Exception" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE_COMPATIBLERUNTIMES = "InvalidParameterValue.CompatibleRuntimes" INVALIDPARAMETERVALUE_CONTENT = "InvalidParameterValue.Content" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName" INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion" INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_LAYERNAME = "InvalidParameterValue.LayerName" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" INVALIDPARAMETERVALUE_STAMP = "InvalidParameterValue.Stamp" INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName" INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError" LIMITEXCEEDED_LAYERVERSIONS = "LimitExceeded.LayerVersions" RESOURCEINUSE = "ResourceInUse" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_NOTMC = "UnauthorizedOperation.NotMC" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_COS = "UnsupportedOperation.Cos"
func (*Client) PublishVersion ¶
func (c *Client) PublishVersion(request *PublishVersionRequest) (response *PublishVersionResponse, err error)
PublishVersion 该接口用于用户发布新版本函数。
可能返回的错误码:
FAILEDOPERATION_PUBLISHVERSION = "FailedOperation.PublishVersion" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate" LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_PUBLISHVERSION = "UnsupportedOperation.PublishVersion"
func (*Client) PublishVersionWithContext ¶ added in v1.0.324
func (c *Client) PublishVersionWithContext(ctx context.Context, request *PublishVersionRequest) (response *PublishVersionResponse, err error)
PublishVersion 该接口用于用户发布新版本函数。
可能返回的错误码:
FAILEDOPERATION_PUBLISHVERSION = "FailedOperation.PublishVersion" INTERNALERROR = "InternalError" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate" LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_PUBLISHVERSION = "UnsupportedOperation.PublishVersion"
func (*Client) PutProvisionedConcurrencyConfig ¶
func (c *Client) PutProvisionedConcurrencyConfig(request *PutProvisionedConcurrencyConfigRequest) (response *PutProvisionedConcurrencyConfigResponse, err error)
PutProvisionedConcurrencyConfig 设置函数某一非$LATEST版本的预置并发。
可能返回的错误码:
FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus" FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_PROVISIONCREATETIMER = "FailedOperation.ProvisionCreateTimer" FAILEDOPERATION_PROVISIONDELETETIMER = "FailedOperation.ProvisionDeleteTimer" FAILEDOPERATION_PROVISIONEDEXCEEDAVAILABLE = "FailedOperation.ProvisionedExceedAvailable" FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved" FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress" FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed" FAILEDOPERATION_UNOPENEDSERVICE = "FailedOperation.UnOpenedService" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_MINCAPACITY = "InvalidParameterValue.MinCapacity" INVALIDPARAMETERVALUE_PROVISIONTRIGGERCRONCONFIGDUPLICATE = "InvalidParameterValue.ProvisionTriggerCronConfigDuplicate" INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAME = "InvalidParameterValue.ProvisionTriggerName" INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAMEDUPLICATE = "InvalidParameterValue.ProvisionTriggerNameDuplicate" INVALIDPARAMETERVALUE_PROVISIONTYPE = "InvalidParameterValue.ProvisionType" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" INVALIDPARAMETERVALUE_TRACKINGTARGET = "InvalidParameterValue.TrackingTarget" INVALIDPARAMETERVALUE_TRIGGERCRONCONFIG = "InvalidParameterValue.TriggerCronConfig" INVALIDPARAMETERVALUE_TRIGGERCRONCONFIGTIMEINTERVAL = "InvalidParameterValue.TriggerCronConfigTimeInterval" INVALIDPARAMETERVALUE_TRIGGERPROVISIONEDCONCURRENCYNUM = "InvalidParameterValue.TriggerProvisionedConcurrencyNum" LIMITEXCEEDED_FUNCTIONPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionProvisionedConcurrencyMemory" LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionTotalProvisionedConcurrencyMemory" LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYNUM = "LimitExceeded.FunctionTotalProvisionedConcurrencyNum" LIMITEXCEEDED_MAXCAPACITY = "LimitExceeded.MaxCapacity" LIMITEXCEEDED_PROVISIONTRIGGERACTION = "LimitExceeded.ProvisionTriggerAction" LIMITEXCEEDED_PROVISIONTRIGGERINTERVAL = "LimitExceeded.ProvisionTriggerInterval" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) PutProvisionedConcurrencyConfigWithContext ¶ added in v1.0.324
func (c *Client) PutProvisionedConcurrencyConfigWithContext(ctx context.Context, request *PutProvisionedConcurrencyConfigRequest) (response *PutProvisionedConcurrencyConfigResponse, err error)
PutProvisionedConcurrencyConfig 设置函数某一非$LATEST版本的预置并发。
可能返回的错误码:
FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus" FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_PROVISIONCREATETIMER = "FailedOperation.ProvisionCreateTimer" FAILEDOPERATION_PROVISIONDELETETIMER = "FailedOperation.ProvisionDeleteTimer" FAILEDOPERATION_PROVISIONEDEXCEEDAVAILABLE = "FailedOperation.ProvisionedExceedAvailable" FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved" FAILEDOPERATION_PROVISIONEDINPROGRESS = "FailedOperation.ProvisionedInProgress" FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed" FAILEDOPERATION_UNOPENEDSERVICE = "FailedOperation.UnOpenedService" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_MINCAPACITY = "InvalidParameterValue.MinCapacity" INVALIDPARAMETERVALUE_PROVISIONTRIGGERCRONCONFIGDUPLICATE = "InvalidParameterValue.ProvisionTriggerCronConfigDuplicate" INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAME = "InvalidParameterValue.ProvisionTriggerName" INVALIDPARAMETERVALUE_PROVISIONTRIGGERNAMEDUPLICATE = "InvalidParameterValue.ProvisionTriggerNameDuplicate" INVALIDPARAMETERVALUE_PROVISIONTYPE = "InvalidParameterValue.ProvisionType" INVALIDPARAMETERVALUE_QUALIFIER = "InvalidParameterValue.Qualifier" INVALIDPARAMETERVALUE_TRACKINGTARGET = "InvalidParameterValue.TrackingTarget" INVALIDPARAMETERVALUE_TRIGGERCRONCONFIG = "InvalidParameterValue.TriggerCronConfig" INVALIDPARAMETERVALUE_TRIGGERCRONCONFIGTIMEINTERVAL = "InvalidParameterValue.TriggerCronConfigTimeInterval" INVALIDPARAMETERVALUE_TRIGGERPROVISIONEDCONCURRENCYNUM = "InvalidParameterValue.TriggerProvisionedConcurrencyNum" LIMITEXCEEDED_FUNCTIONPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionProvisionedConcurrencyMemory" LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYMEMORY = "LimitExceeded.FunctionTotalProvisionedConcurrencyMemory" LIMITEXCEEDED_FUNCTIONTOTALPROVISIONEDCONCURRENCYNUM = "LimitExceeded.FunctionTotalProvisionedConcurrencyNum" LIMITEXCEEDED_MAXCAPACITY = "LimitExceeded.MaxCapacity" LIMITEXCEEDED_PROVISIONTRIGGERACTION = "LimitExceeded.ProvisionTriggerAction" LIMITEXCEEDED_PROVISIONTRIGGERINTERVAL = "LimitExceeded.ProvisionTriggerInterval" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_VERSION = "ResourceNotFound.Version" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) PutReservedConcurrencyConfig ¶
func (c *Client) PutReservedConcurrencyConfig(request *PutReservedConcurrencyConfigRequest) (response *PutReservedConcurrencyConfigResponse, err error)
PutReservedConcurrencyConfig 设置函数最大独占配额
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus" FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved" FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress" FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" LIMITEXCEEDED_FUNCTIONRESERVEDCONCURRENCYMEMORY = "LimitExceeded.FunctionReservedConcurrencyMemory" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) PutReservedConcurrencyConfigWithContext ¶ added in v1.0.324
func (c *Client) PutReservedConcurrencyConfigWithContext(ctx context.Context, request *PutReservedConcurrencyConfigRequest) (response *PutReservedConcurrencyConfigResponse, err error)
PutReservedConcurrencyConfig 设置函数最大独占配额
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_DEBUGMODESTATUS = "FailedOperation.DebugModeStatus" FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_PROVISIONEDEXCEEDRESERVED = "FailedOperation.ProvisionedExceedReserved" FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress" FAILEDOPERATION_SERVICECLOSED = "FailedOperation.ServiceClosed" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" LIMITEXCEEDED_FUNCTIONRESERVEDCONCURRENCYMEMORY = "LimitExceeded.FunctionReservedConcurrencyMemory" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (*Client) PutTotalConcurrencyConfig ¶
func (c *Client) PutTotalConcurrencyConfig(request *PutTotalConcurrencyConfigRequest) (response *PutTotalConcurrencyConfigResponse, err error)
PutTotalConcurrencyConfig 修改账号并发限制配额
可能返回的错误码:
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_RESERVEDEXCEEDTOTAL = "FailedOperation.ReservedExceedTotal" FAILEDOPERATION_TOTALCONCURRENCYMEMORYINPROGRESS = "FailedOperation.TotalConcurrencyMemoryInProgress" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED_TOTALCONCURRENCYMEMORY = "LimitExceeded.TotalConcurrencyMemory" LIMITEXCEEDED_USERTOTALCONCURRENCYMEMORY = "LimitExceeded.UserTotalConcurrencyMemory" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_TOTALCONCURRENCYMEMORY = "ResourceNotFound.TotalConcurrencyMemory" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) PutTotalConcurrencyConfigWithContext ¶ added in v1.0.324
func (c *Client) PutTotalConcurrencyConfigWithContext(ctx context.Context, request *PutTotalConcurrencyConfigRequest) (response *PutTotalConcurrencyConfigResponse, err error)
PutTotalConcurrencyConfig 修改账号并发限制配额
可能返回的错误码:
FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_RESERVEDEXCEEDTOTAL = "FailedOperation.ReservedExceedTotal" FAILEDOPERATION_TOTALCONCURRENCYMEMORYINPROGRESS = "FailedOperation.TotalConcurrencyMemoryInProgress" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" LIMITEXCEEDED_TOTALCONCURRENCYMEMORY = "LimitExceeded.TotalConcurrencyMemory" LIMITEXCEEDED_USERTOTALCONCURRENCYMEMORY = "LimitExceeded.UserTotalConcurrencyMemory" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_TOTALCONCURRENCYMEMORY = "ResourceNotFound.TotalConcurrencyMemory" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (*Client) TerminateAsyncEvent ¶
func (c *Client) TerminateAsyncEvent(request *TerminateAsyncEventRequest) (response *TerminateAsyncEventResponse, err error)
TerminateAsyncEvent 终止正在运行中的函数异步事件
可能返回的错误码:
FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
func (*Client) TerminateAsyncEventWithContext ¶ added in v1.0.324
func (c *Client) TerminateAsyncEventWithContext(ctx context.Context, request *TerminateAsyncEventRequest) (response *TerminateAsyncEventResponse, err error)
TerminateAsyncEvent 终止正在运行中的函数异步事件
可能返回的错误码:
FAILEDOPERATION_ASYNCEVENTSTATUS = "FailedOperation.AsyncEventStatus" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" RESOURCENOTFOUND_ASYNCEVENT = "ResourceNotFound.AsyncEvent" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
func (*Client) UpdateAlias ¶
func (c *Client) UpdateAlias(request *UpdateAliasRequest) (response *UpdateAliasResponse, err error)
UpdateAlias 更新别名的配置
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_UPDATEALIAS = "FailedOperation.UpdateAlias" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) UpdateAliasWithContext ¶ added in v1.0.324
func (c *Client) UpdateAliasWithContext(ctx context.Context, request *UpdateAliasRequest) (response *UpdateAliasResponse, err error)
UpdateAlias 更新别名的配置
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_UPDATEALIAS = "FailedOperation.UpdateAlias" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_ROUTINGCONFIG = "InvalidParameter.RoutingConfig" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ADDITIONALVERSIONWEIGHTS = "InvalidParameterValue.AdditionalVersionWeights" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAME = "InvalidParameterValue.Name" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_ROUTINGCONFIG = "InvalidParameterValue.RoutingConfig" RESOURCEINUSE = "ResourceInUse" RESOURCENOTFOUND_ALIAS = "ResourceNotFound.Alias" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) UpdateFunctionCode ¶
func (c *Client) UpdateFunctionCode(request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)
UpdateFunctionCode 该接口根据传入参数更新函数代码。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CALLROLEFAILED = "FailedOperation.CallRoleFailed" FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict" FAILEDOPERATION_UPDATEFUNCTIONCODE = "FailedOperation.UpdateFunctionCode" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ARGS = "InvalidParameterValue.Args" INVALIDPARAMETERVALUE_ARGSLIST = "InvalidParameterValue.ArgsList" INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code" INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret" INVALIDPARAMETERVALUE_CODESOURCE = "InvalidParameterValue.CodeSource" INVALIDPARAMETERVALUE_COMMAND = "InvalidParameterValue.Command" INVALIDPARAMETERVALUE_COMMANDLIST = "InvalidParameterValue.CommandList" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName" INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion" INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName" INVALIDPARAMETERVALUE_DEMO = "InvalidParameterValue.Demo" INVALIDPARAMETERVALUE_DEMOID = "InvalidParameterValue.DemoId" INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_GITBRANCH = "InvalidParameterValue.GitBranch" INVALIDPARAMETERVALUE_GITDIRECTORY = "InvalidParameterValue.GitDirectory" INVALIDPARAMETERVALUE_GITPASSWORD = "InvalidParameterValue.GitPassword" INVALIDPARAMETERVALUE_GITURL = "InvalidParameterValue.GitUrl" INVALIDPARAMETERVALUE_GITUSERNAME = "InvalidParameterValue.GitUserName" INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler" INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType" INVALIDPARAMETERVALUE_IMAGEURI = "InvalidParameterValue.ImageUri" INVALIDPARAMETERVALUE_INLINEZIPFILE = "InvalidParameterValue.InlineZipFile" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_REGISTRYID = "InvalidParameterValue.RegistryId" INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName" INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile" INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError" LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate" LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_IMAGECONFIG = "ResourceNotFound.ImageConfig" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_TEMPCOSAPPID = "UnauthorizedOperation.TempCosAppid" UNAUTHORIZEDOPERATION_UPDATEFUNCTIONCODE = "UnauthorizedOperation.UpdateFunctionCode" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_UPDATEFUNCTIONCODE = "UnsupportedOperation.UpdateFunctionCode"
func (*Client) UpdateFunctionCodeWithContext ¶ added in v1.0.324
func (c *Client) UpdateFunctionCodeWithContext(ctx context.Context, request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)
UpdateFunctionCode 该接口根据传入参数更新函数代码。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CALLROLEFAILED = "FailedOperation.CallRoleFailed" FAILEDOPERATION_FUNCTIONSTATUSERROR = "FailedOperation.FunctionStatusError" FAILEDOPERATION_OPERATIONCONFLICT = "FailedOperation.OperationConflict" FAILEDOPERATION_UPDATEFUNCTIONCODE = "FailedOperation.UpdateFunctionCode" INTERNALERROR_SYSTEM = "InternalError.System" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ARGS = "InvalidParameterValue.Args" INVALIDPARAMETERVALUE_ARGSLIST = "InvalidParameterValue.ArgsList" INVALIDPARAMETERVALUE_CODE = "InvalidParameterValue.Code" INVALIDPARAMETERVALUE_CODESECRET = "InvalidParameterValue.CodeSecret" INVALIDPARAMETERVALUE_CODESOURCE = "InvalidParameterValue.CodeSource" INVALIDPARAMETERVALUE_COMMAND = "InvalidParameterValue.Command" INVALIDPARAMETERVALUE_COMMANDLIST = "InvalidParameterValue.CommandList" INVALIDPARAMETERVALUE_COS = "InvalidParameterValue.Cos" INVALIDPARAMETERVALUE_COSBUCKETNAME = "InvalidParameterValue.CosBucketName" INVALIDPARAMETERVALUE_COSBUCKETREGION = "InvalidParameterValue.CosBucketRegion" INVALIDPARAMETERVALUE_COSOBJECTNAME = "InvalidParameterValue.CosObjectName" INVALIDPARAMETERVALUE_DEMO = "InvalidParameterValue.Demo" INVALIDPARAMETERVALUE_DEMOID = "InvalidParameterValue.DemoId" INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_GITBRANCH = "InvalidParameterValue.GitBranch" INVALIDPARAMETERVALUE_GITDIRECTORY = "InvalidParameterValue.GitDirectory" INVALIDPARAMETERVALUE_GITPASSWORD = "InvalidParameterValue.GitPassword" INVALIDPARAMETERVALUE_GITURL = "InvalidParameterValue.GitUrl" INVALIDPARAMETERVALUE_GITUSERNAME = "InvalidParameterValue.GitUserName" INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler" INVALIDPARAMETERVALUE_IMAGETYPE = "InvalidParameterValue.ImageType" INVALIDPARAMETERVALUE_IMAGEURI = "InvalidParameterValue.ImageUri" INVALIDPARAMETERVALUE_INLINEZIPFILE = "InvalidParameterValue.InlineZipFile" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_REGISTRYID = "InvalidParameterValue.RegistryId" INVALIDPARAMETERVALUE_TEMPCOSOBJECTNAME = "InvalidParameterValue.TempCosObjectName" INVALIDPARAMETERVALUE_ZIPFILE = "InvalidParameterValue.ZipFile" INVALIDPARAMETERVALUE_ZIPFILEBASE64BINASCIIERROR = "InvalidParameterValue.ZipFileBase64BinasciiError" LIMITEXCEEDED_CONTAINERIMAGEACCELERATE = "LimitExceeded.ContainerImageAccelerate" LIMITEXCEEDED_CONTAINERIMAGEACCELERATEQUOTA = "LimitExceeded.ContainerImageAccelerateQuota" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_IMAGECONFIG = "ResourceNotFound.ImageConfig" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_TEMPCOSAPPID = "UnauthorizedOperation.TempCosAppid" UNAUTHORIZEDOPERATION_UPDATEFUNCTIONCODE = "UnauthorizedOperation.UpdateFunctionCode" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_UPDATEFUNCTIONCODE = "UnsupportedOperation.UpdateFunctionCode"
func (*Client) UpdateFunctionConfiguration ¶
func (c *Client) UpdateFunctionConfiguration(request *UpdateFunctionConfigurationRequest) (response *UpdateFunctionConfigurationResponse, err error)
UpdateFunctionConfiguration 该接口根据传入参数更新函数配置。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_ACCOUNTINSUFFICIENT = "FailedOperation.AccountInsufficient" FAILEDOPERATION_APMCONFIGINSTANCEID = "FailedOperation.ApmConfigInstanceId" FAILEDOPERATION_CALLNETDEPLOYFAILED = "FailedOperation.CallNetDeployFailed" FAILEDOPERATION_CLSSERVICEUNREGISTERED = "FailedOperation.ClsServiceUnregistered" FAILEDOPERATION_DEBUGMODEUPDATETIMEOUTFAIL = "FailedOperation.DebugModeUpdateTimeOutFail" FAILEDOPERATION_INSTANCENOTFOUND = "FailedOperation.InstanceNotFound" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_INSUFFICIENTRESOURCES = "FailedOperation.InsufficientResources" FAILEDOPERATION_OPENSERVICE = "FailedOperation.OpenService" FAILEDOPERATION_QCSROLENOTFOUND = "FailedOperation.QcsRoleNotFound" FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress" FAILEDOPERATION_UPDATEFUNCTIONCONFIGURATION = "FailedOperation.UpdateFunctionConfiguration" INTERNALERROR_SYSTEM = "InternalError.System" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_APMCONFIG = "InvalidParameterValue.ApmConfig" INVALIDPARAMETERVALUE_APMCONFIGINSTANCEID = "InvalidParameterValue.ApmConfigInstanceId" INVALIDPARAMETERVALUE_APMCONFIGREGION = "InvalidParameterValue.ApmConfigRegion" INVALIDPARAMETERVALUE_CFSPARAMETERDUPLICATE = "InvalidParameterValue.CfsParameterDuplicate" INVALIDPARAMETERVALUE_CFSPARAMETERERROR = "InvalidParameterValue.CfsParameterError" INVALIDPARAMETERVALUE_CLS = "InvalidParameterValue.Cls" INVALIDPARAMETERVALUE_CLSROLE = "InvalidParameterValue.ClsRole" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_DISKSIZE = "InvalidParameterValue.DiskSize" INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo" INVALIDPARAMETERVALUE_DYNAMICENABLED = "InvalidParameterValue.DynamicEnabled" INVALIDPARAMETERVALUE_EIPCONFIG = "InvalidParameterValue.EipConfig" INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment" INVALIDPARAMETERVALUE_ENVIRONMENTEXCEEDEDLIMIT = "InvalidParameterValue.EnvironmentExceededLimit" INVALIDPARAMETERVALUE_ENVIRONMENTSYSTEMPROTECT = "InvalidParameterValue.EnvironmentSystemProtect" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler" INVALIDPARAMETERVALUE_IDLETIMEOUT = "InvalidParameterValue.IdleTimeOut" INVALIDPARAMETERVALUE_INSTANCECONCURRENCYCONFIG = "InvalidParameterValue.InstanceConcurrencyConfig" INVALIDPARAMETERVALUE_L5ENABLE = "InvalidParameterValue.L5Enable" INVALIDPARAMETERVALUE_LAYERS = "InvalidParameterValue.Layers" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_LOGFORMAT = "InvalidParameterValue.LogFormat" INVALIDPARAMETERVALUE_MAXCONCURRENCY = "InvalidParameterValue.MaxConcurrency" INVALIDPARAMETERVALUE_MEMORY = "InvalidParameterValue.Memory" INVALIDPARAMETERVALUE_MEMORYSIZE = "InvalidParameterValue.MemorySize" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_NODESPEC = "InvalidParameterValue.NodeSpec" INVALIDPARAMETERVALUE_NODETYPE = "InvalidParameterValue.NodeType" INVALIDPARAMETERVALUE_PUBLICNETCONFIG = "InvalidParameterValue.PublicNetConfig" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" INVALIDPARAMETERVALUE_SYSTEMENVIRONMENT = "InvalidParameterValue.SystemEnvironment" INVALIDPARAMETERVALUE_TRACEENABLE = "InvalidParameterValue.TraceEnable" INVALIDPARAMETERVALUE_VPC = "InvalidParameterValue.Vpc" INVALIDPARAMETERVALUE_WEBSOCKETSPARAMS = "InvalidParameterValue.WebSocketsParams" LIMITEXCEEDED_EIP = "LimitExceeded.Eip" LIMITEXCEEDED_INITTIMEOUT = "LimitExceeded.InitTimeout" LIMITEXCEEDED_INTRAIP = "LimitExceeded.IntraIp" LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory" LIMITEXCEEDED_PRIVILEGECONTAINER = "LimitExceeded.PrivilegeContainer" LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout" RESOURCENOTFOUND_CFSMOUNTINSNOTMATCH = "ResourceNotFound.CfsMountInsNotMatch" RESOURCENOTFOUND_CFSPROTOCOLERROR = "ResourceNotFound.CfsProtocolError" RESOURCENOTFOUND_CFSSTATUSERROR = "ResourceNotFound.CfsStatusError" RESOURCENOTFOUND_CFSVPCNOTMATCH = "ResourceNotFound.CfsVpcNotMatch" RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_GETCFSMOUNTINSERROR = "ResourceNotFound.GetCfsMountInsError" RESOURCENOTFOUND_GETCFSNOTMATCH = "ResourceNotFound.GetCfsNotMatch" RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_ROLE = "ResourceNotFound.Role" RESOURCENOTFOUND_VPC = "ResourceNotFound.Vpc" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_DISKSIZE = "UnsupportedOperation.DiskSize" UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed" UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig"
func (*Client) UpdateFunctionConfigurationWithContext ¶ added in v1.0.324
func (c *Client) UpdateFunctionConfigurationWithContext(ctx context.Context, request *UpdateFunctionConfigurationRequest) (response *UpdateFunctionConfigurationResponse, err error)
UpdateFunctionConfiguration 该接口根据传入参数更新函数配置。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_ACCOUNTINSUFFICIENT = "FailedOperation.AccountInsufficient" FAILEDOPERATION_APMCONFIGINSTANCEID = "FailedOperation.ApmConfigInstanceId" FAILEDOPERATION_CALLNETDEPLOYFAILED = "FailedOperation.CallNetDeployFailed" FAILEDOPERATION_CLSSERVICEUNREGISTERED = "FailedOperation.ClsServiceUnregistered" FAILEDOPERATION_DEBUGMODEUPDATETIMEOUTFAIL = "FailedOperation.DebugModeUpdateTimeOutFail" FAILEDOPERATION_INSTANCENOTFOUND = "FailedOperation.InstanceNotFound" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" FAILEDOPERATION_INSUFFICIENTRESOURCES = "FailedOperation.InsufficientResources" FAILEDOPERATION_OPENSERVICE = "FailedOperation.OpenService" FAILEDOPERATION_QCSROLENOTFOUND = "FailedOperation.QcsRoleNotFound" FAILEDOPERATION_RESERVEDINPROGRESS = "FailedOperation.ReservedInProgress" FAILEDOPERATION_UPDATEFUNCTIONCONFIGURATION = "FailedOperation.UpdateFunctionConfiguration" INTERNALERROR_SYSTEM = "InternalError.System" INTERNALERROR_SYSTEMERROR = "InternalError.SystemError" INVALIDPARAMETER_PARAMERROR = "InvalidParameter.ParamError" INVALIDPARAMETER_PAYLOAD = "InvalidParameter.Payload" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_APMCONFIG = "InvalidParameterValue.ApmConfig" INVALIDPARAMETERVALUE_APMCONFIGINSTANCEID = "InvalidParameterValue.ApmConfigInstanceId" INVALIDPARAMETERVALUE_APMCONFIGREGION = "InvalidParameterValue.ApmConfigRegion" INVALIDPARAMETERVALUE_CFSPARAMETERDUPLICATE = "InvalidParameterValue.CfsParameterDuplicate" INVALIDPARAMETERVALUE_CFSPARAMETERERROR = "InvalidParameterValue.CfsParameterError" INVALIDPARAMETERVALUE_CLS = "InvalidParameterValue.Cls" INVALIDPARAMETERVALUE_CLSROLE = "InvalidParameterValue.ClsRole" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_DISKSIZE = "InvalidParameterValue.DiskSize" INVALIDPARAMETERVALUE_DNSINFO = "InvalidParameterValue.DnsInfo" INVALIDPARAMETERVALUE_DYNAMICENABLED = "InvalidParameterValue.DynamicEnabled" INVALIDPARAMETERVALUE_EIPCONFIG = "InvalidParameterValue.EipConfig" INVALIDPARAMETERVALUE_ENVIRONMENT = "InvalidParameterValue.Environment" INVALIDPARAMETERVALUE_ENVIRONMENTEXCEEDEDLIMIT = "InvalidParameterValue.EnvironmentExceededLimit" INVALIDPARAMETERVALUE_ENVIRONMENTSYSTEMPROTECT = "InvalidParameterValue.EnvironmentSystemProtect" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_HANDLER = "InvalidParameterValue.Handler" INVALIDPARAMETERVALUE_IDLETIMEOUT = "InvalidParameterValue.IdleTimeOut" INVALIDPARAMETERVALUE_INSTANCECONCURRENCYCONFIG = "InvalidParameterValue.InstanceConcurrencyConfig" INVALIDPARAMETERVALUE_L5ENABLE = "InvalidParameterValue.L5Enable" INVALIDPARAMETERVALUE_LAYERS = "InvalidParameterValue.Layers" INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded" INVALIDPARAMETERVALUE_LOGFORMAT = "InvalidParameterValue.LogFormat" INVALIDPARAMETERVALUE_MAXCONCURRENCY = "InvalidParameterValue.MaxConcurrency" INVALIDPARAMETERVALUE_MEMORY = "InvalidParameterValue.Memory" INVALIDPARAMETERVALUE_MEMORYSIZE = "InvalidParameterValue.MemorySize" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" INVALIDPARAMETERVALUE_NODESPEC = "InvalidParameterValue.NodeSpec" INVALIDPARAMETERVALUE_NODETYPE = "InvalidParameterValue.NodeType" INVALIDPARAMETERVALUE_PUBLICNETCONFIG = "InvalidParameterValue.PublicNetConfig" INVALIDPARAMETERVALUE_RUNTIME = "InvalidParameterValue.Runtime" INVALIDPARAMETERVALUE_SYSTEMENVIRONMENT = "InvalidParameterValue.SystemEnvironment" INVALIDPARAMETERVALUE_TRACEENABLE = "InvalidParameterValue.TraceEnable" INVALIDPARAMETERVALUE_VPC = "InvalidParameterValue.Vpc" INVALIDPARAMETERVALUE_WEBSOCKETSPARAMS = "InvalidParameterValue.WebSocketsParams" LIMITEXCEEDED_EIP = "LimitExceeded.Eip" LIMITEXCEEDED_INITTIMEOUT = "LimitExceeded.InitTimeout" LIMITEXCEEDED_INTRAIP = "LimitExceeded.IntraIp" LIMITEXCEEDED_MEMORY = "LimitExceeded.Memory" LIMITEXCEEDED_PRIVILEGECONTAINER = "LimitExceeded.PrivilegeContainer" LIMITEXCEEDED_TIMEOUT = "LimitExceeded.Timeout" RESOURCENOTFOUND_CFSMOUNTINSNOTMATCH = "ResourceNotFound.CfsMountInsNotMatch" RESOURCENOTFOUND_CFSPROTOCOLERROR = "ResourceNotFound.CfsProtocolError" RESOURCENOTFOUND_CFSSTATUSERROR = "ResourceNotFound.CfsStatusError" RESOURCENOTFOUND_CFSVPCNOTMATCH = "ResourceNotFound.CfsVpcNotMatch" RESOURCENOTFOUND_CMQ = "ResourceNotFound.Cmq" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_GETCFSMOUNTINSERROR = "ResourceNotFound.GetCfsMountInsError" RESOURCENOTFOUND_GETCFSNOTMATCH = "ResourceNotFound.GetCfsNotMatch" RESOURCENOTFOUND_LAYER = "ResourceNotFound.Layer" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_ROLE = "ResourceNotFound.Role" RESOURCENOTFOUND_VPC = "ResourceNotFound.Vpc" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_ROLE = "UnauthorizedOperation.Role" UNSUPPORTEDOPERATION = "UnsupportedOperation" UNSUPPORTEDOPERATION_DISKSIZE = "UnsupportedOperation.DiskSize" UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed" UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig"
func (*Client) UpdateFunctionEventInvokeConfig ¶
func (c *Client) UpdateFunctionEventInvokeConfig(request *UpdateFunctionEventInvokeConfigRequest) (response *UpdateFunctionEventInvokeConfigResponse, err error)
UpdateFunctionEventInvokeConfig 更新函数的异步重试配置,包括重试次数和消息保留时间
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ASYNCTRIGGERCONFIG = "InvalidParameterValue.AsyncTriggerConfig" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" LIMITEXCEEDED_MSGTTL = "LimitExceeded.MsgTTL" LIMITEXCEEDED_RETRYNUM = "LimitExceeded.RetryNum" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed" UNSUPPORTEDOPERATION_UPDATEFUNCTIONEVENTINVOKECONFIG = "UnsupportedOperation.UpdateFunctionEventInvokeConfig" UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig"
func (*Client) UpdateFunctionEventInvokeConfigWithContext ¶ added in v1.0.324
func (c *Client) UpdateFunctionEventInvokeConfigWithContext(ctx context.Context, request *UpdateFunctionEventInvokeConfigRequest) (response *UpdateFunctionEventInvokeConfigResponse, err error)
UpdateFunctionEventInvokeConfig 更新函数的异步重试配置,包括重试次数和消息保留时间
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_FUNCTIONVERSIONSTATUSNOTACTIVE = "FailedOperation.FunctionVersionStatusNotActive" FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" INTERNALERROR = "InternalError" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ASYNCTRIGGERCONFIG = "InvalidParameterValue.AsyncTriggerConfig" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_NAMESPACE = "InvalidParameterValue.Namespace" LIMITEXCEEDED_MSGTTL = "LimitExceeded.MsgTTL" LIMITEXCEEDED_RETRYNUM = "LimitExceeded.RetryNum" MISSINGPARAMETER = "MissingParameter" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_FUNCTIONVERSION = "ResourceNotFound.FunctionVersion" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" UNAUTHORIZEDOPERATION = "UnauthorizedOperation" UNSUPPORTEDOPERATION_EIPFIXED = "UnsupportedOperation.EipFixed" UNSUPPORTEDOPERATION_UPDATEFUNCTIONEVENTINVOKECONFIG = "UnsupportedOperation.UpdateFunctionEventInvokeConfig" UNSUPPORTEDOPERATION_VPCCONFIG = "UnsupportedOperation.VpcConfig"
func (*Client) UpdateNamespace ¶
func (c *Client) UpdateNamespace(request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
UpdateNamespace 更新命名空间
可能返回的错误码:
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
func (*Client) UpdateNamespaceWithContext ¶ added in v1.0.324
func (c *Client) UpdateNamespaceWithContext(ctx context.Context, request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
UpdateNamespace 更新命名空间
可能返回的错误码:
INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace"
func (*Client) UpdateTrigger ¶ added in v1.0.728
func (c *Client) UpdateTrigger(request *UpdateTriggerRequest) (response *UpdateTriggerResponse, err error)
UpdateTrigger 支持触发器配置更新。
默认接口请求频率限制:20次/秒
注意:目前只支持timer触发器和ckafka触发器更新!
timer触发器和ckafka触发器支持更新字段有:Enable、TriggerDesc、Description、CustomArgument。
timer触发器TriggerDesc支持5段式和7段式的更新。
ckafka触发器TriggerDesc支持Retry、MaxMsgNum、TimeOut参数更新,不传值表示原值不变,传值不能为空。
Enable 触发器开启或关闭,传参为OPEN为开启,CLOSE为关闭。不传值表示原值不变,传值不能为空。
Description 触发器描述,不传值保持原值不变,传值为空则为空。
CustomArgument 触发器用户附加信息(注意:只有timer触发器展示),不传值保持原值不变,传值为空则为空。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger" FAILEDOPERATION_UPDATETRIGGER = "FailedOperation.UpdateTrigger" INTERNALERROR_CMQ = "InternalError.Cmq" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc" INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
func (*Client) UpdateTriggerStatus ¶ added in v1.0.630
func (c *Client) UpdateTriggerStatus(request *UpdateTriggerStatusRequest) (response *UpdateTriggerStatusResponse, err error)
UpdateTriggerStatus 更新触发器状态的值
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_COS = "FailedOperation.Cos" FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger" FAILEDOPERATION_UPDATESTATUS = "FailedOperation.UpdateStatus" FAILEDOPERATION_UPDATETRIGGERSTATUS = "FailedOperation.UpdateTriggerStatus" INTERNALERROR_CMQ = "InternalError.Cmq" INTERNALERROR_COS = "InternalError.Cos" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict" INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable" INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc" INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_UPDATETRIGGERSTATUS = "UnauthorizedOperation.UpdateTriggerStatus"
func (*Client) UpdateTriggerStatusWithContext ¶ added in v1.0.630
func (c *Client) UpdateTriggerStatusWithContext(ctx context.Context, request *UpdateTriggerStatusRequest) (response *UpdateTriggerStatusResponse, err error)
UpdateTriggerStatus 更新触发器状态的值
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_COS = "FailedOperation.Cos" FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger" FAILEDOPERATION_UPDATESTATUS = "FailedOperation.UpdateStatus" FAILEDOPERATION_UPDATETRIGGERSTATUS = "FailedOperation.UpdateTriggerStatus" INTERNALERROR_CMQ = "InternalError.Cmq" INTERNALERROR_COS = "InternalError.Cos" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_COSNOTIFYRULECONFLICT = "InvalidParameterValue.CosNotifyRuleConflict" INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable" INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc" INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM" UNAUTHORIZEDOPERATION_UPDATETRIGGERSTATUS = "UnauthorizedOperation.UpdateTriggerStatus"
func (*Client) UpdateTriggerWithContext ¶ added in v1.0.728
func (c *Client) UpdateTriggerWithContext(ctx context.Context, request *UpdateTriggerRequest) (response *UpdateTriggerResponse, err error)
UpdateTrigger 支持触发器配置更新。
默认接口请求频率限制:20次/秒
注意:目前只支持timer触发器和ckafka触发器更新!
timer触发器和ckafka触发器支持更新字段有:Enable、TriggerDesc、Description、CustomArgument。
timer触发器TriggerDesc支持5段式和7段式的更新。
ckafka触发器TriggerDesc支持Retry、MaxMsgNum、TimeOut参数更新,不传值表示原值不变,传值不能为空。
Enable 触发器开启或关闭,传参为OPEN为开启,CLOSE为关闭。不传值表示原值不变,传值不能为空。
Description 触发器描述,不传值保持原值不变,传值为空则为空。
CustomArgument 触发器用户附加信息(注意:只有timer触发器展示),不传值保持原值不变,传值为空则为空。
可能返回的错误码:
FAILEDOPERATION = "FailedOperation" FAILEDOPERATION_CREATETRIGGER = "FailedOperation.CreateTrigger" FAILEDOPERATION_UPDATETRIGGER = "FailedOperation.UpdateTrigger" INTERNALERROR_CMQ = "InternalError.Cmq" INVALIDPARAMETERVALUE = "InvalidParameterValue" INVALIDPARAMETERVALUE_ACTION = "InvalidParameterValue.Action" INVALIDPARAMETERVALUE_DESCRIPTION = "InvalidParameterValue.Description" INVALIDPARAMETERVALUE_ENABLE = "InvalidParameterValue.Enable" INVALIDPARAMETERVALUE_FUNCTIONNAME = "InvalidParameterValue.FunctionName" INVALIDPARAMETERVALUE_TRIGGERDESC = "InvalidParameterValue.TriggerDesc" INVALIDPARAMETERVALUE_TRIGGERNAME = "InvalidParameterValue.TriggerName" INVALIDPARAMETERVALUE_TYPE = "InvalidParameterValue.Type" RESOURCENOTFOUND = "ResourceNotFound" RESOURCENOTFOUND_FUNCTION = "ResourceNotFound.Function" RESOURCENOTFOUND_FUNCTIONNAME = "ResourceNotFound.FunctionName" RESOURCENOTFOUND_NAMESPACE = "ResourceNotFound.Namespace" RESOURCENOTFOUND_QUALIFIER = "ResourceNotFound.Qualifier" RESOURCENOTFOUND_TRIGGER = "ResourceNotFound.Trigger" UNAUTHORIZEDOPERATION_CAM = "UnauthorizedOperation.CAM"
type Code ¶
type Code struct { // 对象存储桶名称(填写存储桶名称自定义部分,不包含-appid) CosBucketName *string `json:"CosBucketName,omitnil,omitempty" name:"CosBucketName"` // 对象存储中代码包文件路径,以/开头 CosObjectName *string `json:"CosObjectName,omitnil,omitempty" name:"CosObjectName"` // 包含函数代码文件及其依赖项的 zip 格式文件,zip包大小上限为 50MB,使用该接口时要求将 zip 文件的内容转成 base64 编码 ZipFile *string `json:"ZipFile,omitnil,omitempty" name:"ZipFile"` // 对象存储的地域,地域为北京时需要传入ap-beijing,北京一区时需要传递ap-beijing-1,其他的地域不需要传递。 CosBucketRegion *string `json:"CosBucketRegion,omitnil,omitempty" name:"CosBucketRegion"` // 如果是通过Demo创建的话,需要传入DemoId DemoId *string `json:"DemoId,omitnil,omitempty" name:"DemoId"` // 如果是从TempCos创建的话,需要传入TempCosObjectName TempCosObjectName *string `json:"TempCosObjectName,omitnil,omitempty" name:"TempCosObjectName"` // Git地址。该功能已下线。 GitUrl *string `json:"GitUrl,omitnil,omitempty" name:"GitUrl"` // Git用户名。该功能已下线。 GitUserName *string `json:"GitUserName,omitnil,omitempty" name:"GitUserName"` // Git密码。该功能已下线。 GitPassword *string `json:"GitPassword,omitnil,omitempty" name:"GitPassword"` // 加密后的Git密码,一般无需指定。该功能已下线。 GitPasswordSecret *string `json:"GitPasswordSecret,omitnil,omitempty" name:"GitPasswordSecret"` // Git分支。该功能已下线。 GitBranch *string `json:"GitBranch,omitnil,omitempty" name:"GitBranch"` // 代码在Git仓库中的路径。该功能已下线。 GitDirectory *string `json:"GitDirectory,omitnil,omitempty" name:"GitDirectory"` // 指定要拉取的版本。该功能已下线。 GitCommitId *string `json:"GitCommitId,omitnil,omitempty" name:"GitCommitId"` // 加密后的Git用户名,一般无需指定。该功能已下线。 GitUserNameSecret *string `json:"GitUserNameSecret,omitnil,omitempty" name:"GitUserNameSecret"` // 镜像部署时配置TCR镜像信息 ImageConfig *ImageConfig `json:"ImageConfig,omitnil,omitempty" name:"ImageConfig"` }
type CopyFunctionRequest ¶
type CopyFunctionRequest struct { *tchttp.BaseRequest // 要复制的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 新函数的名称 NewFunctionName *string `json:"NewFunctionName,omitnil,omitempty" name:"NewFunctionName"` // 要复制的函数所在的命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 将函数复制到的命名空间,默认为default TargetNamespace *string `json:"TargetNamespace,omitnil,omitempty" name:"TargetNamespace"` // 新函数的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 要将函数复制到的地域,不填则默认为当前地域 TargetRegion *string `json:"TargetRegion,omitnil,omitempty" name:"TargetRegion"` // 如果目标Namespace下已有同名函数,是否覆盖,默认为否 // (注意:如果选择覆盖,会导致同名函数被删除,请慎重操作) // TRUE:覆盖同名函数 // FALSE:不覆盖同名函数 Override *bool `json:"Override,omitnil,omitempty" name:"Override"` // 是否复制函数的属性,包括环境变量、内存、超时、函数描述、标签、VPC等,默认为是。 // TRUE:复制函数配置 // FALSE:不复制函数配置 CopyConfiguration *bool `json:"CopyConfiguration,omitnil,omitempty" name:"CopyConfiguration"` }
func NewCopyFunctionRequest ¶
func NewCopyFunctionRequest() (request *CopyFunctionRequest)
func (*CopyFunctionRequest) FromJsonString ¶
func (r *CopyFunctionRequest) FromJsonString(s string) error
FromJsonString 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 CopyFunctionRequestParams ¶ added in v1.0.426
type CopyFunctionRequestParams struct { // 要复制的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 新函数的名称 NewFunctionName *string `json:"NewFunctionName,omitnil,omitempty" name:"NewFunctionName"` // 要复制的函数所在的命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 将函数复制到的命名空间,默认为default TargetNamespace *string `json:"TargetNamespace,omitnil,omitempty" name:"TargetNamespace"` // 新函数的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 要将函数复制到的地域,不填则默认为当前地域 TargetRegion *string `json:"TargetRegion,omitnil,omitempty" name:"TargetRegion"` // 如果目标Namespace下已有同名函数,是否覆盖,默认为否 // (注意:如果选择覆盖,会导致同名函数被删除,请慎重操作) // TRUE:覆盖同名函数 // FALSE:不覆盖同名函数 Override *bool `json:"Override,omitnil,omitempty" name:"Override"` // 是否复制函数的属性,包括环境变量、内存、超时、函数描述、标签、VPC等,默认为是。 // TRUE:复制函数配置 // FALSE:不复制函数配置 CopyConfiguration *bool `json:"CopyConfiguration,omitnil,omitempty" name:"CopyConfiguration"` }
Predefined struct for user
type CopyFunctionResponse ¶
type CopyFunctionResponse struct { *tchttp.BaseResponse Response *CopyFunctionResponseParams `json:"Response"` }
func NewCopyFunctionResponse ¶
func NewCopyFunctionResponse() (response *CopyFunctionResponse)
func (*CopyFunctionResponse) FromJsonString ¶
func (r *CopyFunctionResponse) FromJsonString(s string) error
FromJsonString 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 CopyFunctionResponseParams ¶ added in v1.0.426
type CopyFunctionResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateAliasRequest ¶
type CreateAliasRequest struct { *tchttp.BaseRequest // 别名的名称,在函数级别中唯一,只能包含字母、数字、'_'和‘-’,且必须以字母开头,长度限制为1-64 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 别名指向的主版本 FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 别名的路由信息,需要为别名指定附加版本时,必须提供此参数; 附加版本指的是:除主版本 FunctionVersion 外,为此别名再指定一个函数可正常使用的版本; 这里附加版本中的 Version 值 不能是别名指向的主版本; 要注意的是:如果想要某个版本的流量全部指向这个别名,不需配置此参数; 目前一个别名最多只能指定一个附加版本 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"` // 别名的描述信息 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
func NewCreateAliasRequest ¶
func NewCreateAliasRequest() (request *CreateAliasRequest)
func (*CreateAliasRequest) FromJsonString ¶
func (r *CreateAliasRequest) FromJsonString(s string) error
FromJsonString 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 CreateAliasRequestParams ¶ added in v1.0.426
type CreateAliasRequestParams struct { // 别名的名称,在函数级别中唯一,只能包含字母、数字、'_'和‘-’,且必须以字母开头,长度限制为1-64 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 别名指向的主版本 FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 别名的路由信息,需要为别名指定附加版本时,必须提供此参数; 附加版本指的是:除主版本 FunctionVersion 外,为此别名再指定一个函数可正常使用的版本; 这里附加版本中的 Version 值 不能是别名指向的主版本; 要注意的是:如果想要某个版本的流量全部指向这个别名,不需配置此参数; 目前一个别名最多只能指定一个附加版本 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"` // 别名的描述信息 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
Predefined struct for user
type CreateAliasResponse ¶
type CreateAliasResponse struct { *tchttp.BaseResponse Response *CreateAliasResponseParams `json:"Response"` }
func NewCreateAliasResponse ¶
func NewCreateAliasResponse() (response *CreateAliasResponse)
func (*CreateAliasResponse) FromJsonString ¶
func (r *CreateAliasResponse) FromJsonString(s string) error
FromJsonString 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 CreateAliasResponseParams ¶ added in v1.0.426
type CreateAliasResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateFunctionRequest ¶
type CreateFunctionRequest struct { *tchttp.BaseRequest // 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。 Code *Code `json:"Code,omitnil,omitempty" name:"Code"` // 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符 Handler *string `json:"Handler,omitnil,omitempty" name:"Handler"` // 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯 MemorySize *int64 `json:"MemorySize,omitnil,omitempty" name:"MemorySize"` // 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒 Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"` // 函数的环境变量 Environment *Environment `json:"Environment,omitnil,omitempty" name:"Environment"` // 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5.2, Php7.4,Go1,Java8 和 CustomRuntime,默认Python2.7 Runtime *string `json:"Runtime,omitnil,omitempty" name:"Runtime"` // 函数的私有网络配置 VpcConfig *VpcConfig `json:"VpcConfig,omitnil,omitempty" name:"VpcConfig"` // 函数所属命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数绑定的角色 Role *string `json:"Role,omitnil,omitempty" name:"Role"` // [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。 InstallDependency *string `json:"InstallDependency,omitnil,omitempty" name:"InstallDependency"` // 函数日志投递到的CLS LogsetID ClsLogsetId *string `json:"ClsLogsetId,omitnil,omitempty" name:"ClsLogsetId"` // 函数日志投递到的CLS TopicID ClsTopicId *string `json:"ClsTopicId,omitnil,omitempty" name:"ClsTopicId"` // 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP Type *string `json:"Type,omitnil,omitempty" name:"Type"` // CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一 CodeSource *string `json:"CodeSource,omitnil,omitempty" name:"CodeSource"` // 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。 Layers []*LayerVersionSimple `json:"Layers,omitnil,omitempty" name:"Layers"` // 死信队列参数 DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitnil,omitempty" name:"DeadLetterConfig"` // 公网访问配置 PublicNetConfig *PublicNetConfigIn `json:"PublicNetConfig,omitnil,omitempty" name:"PublicNetConfig"` // 文件系统配置参数,用于云函数挂载文件系统 CfsConfig *CfsConfig `json:"CfsConfig,omitnil,omitempty" name:"CfsConfig"` // 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。 InitTimeout *int64 `json:"InitTimeout,omitnil,omitempty" name:"InitTimeout"` // 函数 Tag 参数,以键值对数组形式传入 Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"` // 是否开启异步属性,TRUE 为开启,FALSE为关闭 AsyncRunEnable *string `json:"AsyncRunEnable,omitnil,omitempty" name:"AsyncRunEnable"` // 是否开启事件追踪,TRUE 为开启,FALSE为关闭 TraceEnable *string `json:"TraceEnable,omitnil,omitempty" name:"TraceEnable"` // 是否自动创建cls索引,TRUE 为开启,FALSE为关闭 AutoDeployClsTopicIndex *string `json:"AutoDeployClsTopicIndex,omitnil,omitempty" name:"AutoDeployClsTopicIndex"` // 是否自动创建cls主题,TRUE 为开启,FALSE为关闭 AutoCreateClsTopic *string `json:"AutoCreateClsTopic,omitnil,omitempty" name:"AutoCreateClsTopic"` // HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS ProtocolType *string `json:"ProtocolType,omitnil,omitempty" name:"ProtocolType"` // HTTP函数配置ProtocolType访问协议,当前协议可配置的参数 ProtocolParams *ProtocolParams `json:"ProtocolParams,omitnil,omitempty" name:"ProtocolParams"` // 单实例多并发配置。只支持Web函数。 InstanceConcurrencyConfig *InstanceConcurrencyConfig `json:"InstanceConcurrencyConfig,omitnil,omitempty" name:"InstanceConcurrencyConfig"` // 是否开启Dns缓存能力。只支持EVENT函数。默认为FALSE,TRUE 为开启,FALSE为关闭 DnsCache *string `json:"DnsCache,omitnil,omitempty" name:"DnsCache"` // 内网访问配置 IntranetConfig *IntranetConfigIn `json:"IntranetConfig,omitnil,omitempty" name:"IntranetConfig"` }
func NewCreateFunctionRequest ¶
func NewCreateFunctionRequest() (request *CreateFunctionRequest)
func (*CreateFunctionRequest) FromJsonString ¶
func (r *CreateFunctionRequest) FromJsonString(s string) error
FromJsonString 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 CreateFunctionRequestParams ¶ added in v1.0.426
type CreateFunctionRequestParams struct { // 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。 Code *Code `json:"Code,omitnil,omitempty" name:"Code"` // 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符 Handler *string `json:"Handler,omitnil,omitempty" name:"Handler"` // 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯 MemorySize *int64 `json:"MemorySize,omitnil,omitempty" name:"MemorySize"` // 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒 Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"` // 函数的环境变量 Environment *Environment `json:"Environment,omitnil,omitempty" name:"Environment"` // 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5.2, Php7.4,Go1,Java8 和 CustomRuntime,默认Python2.7 Runtime *string `json:"Runtime,omitnil,omitempty" name:"Runtime"` // 函数的私有网络配置 VpcConfig *VpcConfig `json:"VpcConfig,omitnil,omitempty" name:"VpcConfig"` // 函数所属命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数绑定的角色 Role *string `json:"Role,omitnil,omitempty" name:"Role"` // [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。 InstallDependency *string `json:"InstallDependency,omitnil,omitempty" name:"InstallDependency"` // 函数日志投递到的CLS LogsetID ClsLogsetId *string `json:"ClsLogsetId,omitnil,omitempty" name:"ClsLogsetId"` // 函数日志投递到的CLS TopicID ClsTopicId *string `json:"ClsTopicId,omitnil,omitempty" name:"ClsTopicId"` // 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP Type *string `json:"Type,omitnil,omitempty" name:"Type"` // CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一 CodeSource *string `json:"CodeSource,omitnil,omitempty" name:"CodeSource"` // 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。 Layers []*LayerVersionSimple `json:"Layers,omitnil,omitempty" name:"Layers"` // 死信队列参数 DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitnil,omitempty" name:"DeadLetterConfig"` // 公网访问配置 PublicNetConfig *PublicNetConfigIn `json:"PublicNetConfig,omitnil,omitempty" name:"PublicNetConfig"` // 文件系统配置参数,用于云函数挂载文件系统 CfsConfig *CfsConfig `json:"CfsConfig,omitnil,omitempty" name:"CfsConfig"` // 函数初始化超时时间,默认 65s,镜像部署函数默认 90s。 InitTimeout *int64 `json:"InitTimeout,omitnil,omitempty" name:"InitTimeout"` // 函数 Tag 参数,以键值对数组形式传入 Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"` // 是否开启异步属性,TRUE 为开启,FALSE为关闭 AsyncRunEnable *string `json:"AsyncRunEnable,omitnil,omitempty" name:"AsyncRunEnable"` // 是否开启事件追踪,TRUE 为开启,FALSE为关闭 TraceEnable *string `json:"TraceEnable,omitnil,omitempty" name:"TraceEnable"` // 是否自动创建cls索引,TRUE 为开启,FALSE为关闭 AutoDeployClsTopicIndex *string `json:"AutoDeployClsTopicIndex,omitnil,omitempty" name:"AutoDeployClsTopicIndex"` // 是否自动创建cls主题,TRUE 为开启,FALSE为关闭 AutoCreateClsTopic *string `json:"AutoCreateClsTopic,omitnil,omitempty" name:"AutoCreateClsTopic"` // HTTP函数支持的访问协议。当前支持WebSockets协议,值为WS ProtocolType *string `json:"ProtocolType,omitnil,omitempty" name:"ProtocolType"` // HTTP函数配置ProtocolType访问协议,当前协议可配置的参数 ProtocolParams *ProtocolParams `json:"ProtocolParams,omitnil,omitempty" name:"ProtocolParams"` // 单实例多并发配置。只支持Web函数。 InstanceConcurrencyConfig *InstanceConcurrencyConfig `json:"InstanceConcurrencyConfig,omitnil,omitempty" name:"InstanceConcurrencyConfig"` // 是否开启Dns缓存能力。只支持EVENT函数。默认为FALSE,TRUE 为开启,FALSE为关闭 DnsCache *string `json:"DnsCache,omitnil,omitempty" name:"DnsCache"` // 内网访问配置 IntranetConfig *IntranetConfigIn `json:"IntranetConfig,omitnil,omitempty" name:"IntranetConfig"` }
Predefined struct for user
type CreateFunctionResponse ¶
type CreateFunctionResponse struct { *tchttp.BaseResponse Response *CreateFunctionResponseParams `json:"Response"` }
func NewCreateFunctionResponse ¶
func NewCreateFunctionResponse() (response *CreateFunctionResponse)
func (*CreateFunctionResponse) FromJsonString ¶
func (r *CreateFunctionResponse) FromJsonString(s string) error
FromJsonString 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 CreateFunctionResponseParams ¶ added in v1.0.426
type CreateFunctionResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateNamespaceRequest ¶
type CreateNamespaceRequest struct { *tchttp.BaseRequest // 命名空间名称 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 命名空间描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 资源池配置 ResourceEnv *NamespaceResourceEnv `json:"ResourceEnv,omitnil,omitempty" name:"ResourceEnv"` }
func NewCreateNamespaceRequest ¶
func NewCreateNamespaceRequest() (request *CreateNamespaceRequest)
func (*CreateNamespaceRequest) FromJsonString ¶
func (r *CreateNamespaceRequest) FromJsonString(s string) error
FromJsonString 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 CreateNamespaceRequestParams ¶ added in v1.0.426
type CreateNamespaceRequestParams struct { // 命名空间名称 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 命名空间描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 资源池配置 ResourceEnv *NamespaceResourceEnv `json:"ResourceEnv,omitnil,omitempty" name:"ResourceEnv"` }
Predefined struct for user
type CreateNamespaceResponse ¶
type CreateNamespaceResponse struct { *tchttp.BaseResponse Response *CreateNamespaceResponseParams `json:"Response"` }
func NewCreateNamespaceResponse ¶
func NewCreateNamespaceResponse() (response *CreateNamespaceResponse)
func (*CreateNamespaceResponse) FromJsonString ¶
func (r *CreateNamespaceResponse) FromJsonString(s string) error
FromJsonString 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 CreateNamespaceResponseParams ¶ added in v1.0.426
type CreateNamespaceResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type CreateTriggerRequest ¶
type CreateTriggerRequest struct { *tchttp.BaseRequest // 新建触发器绑定的函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型。创建函数 URL 请在此填写 http,请参考[创建函数 URL ](https://cloud.tencent.com/document/product/583/100227#33bbbda4-9131-48a6-ac37-ac62ffe01424)。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901) TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭 Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"` // 用户自定义参数,仅支持timer触发器 CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"` // 触发器描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
func NewCreateTriggerRequest ¶
func NewCreateTriggerRequest() (request *CreateTriggerRequest)
func (*CreateTriggerRequest) FromJsonString ¶
func (r *CreateTriggerRequest) FromJsonString(s string) error
FromJsonString 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 CreateTriggerRequestParams ¶ added in v1.0.426
type CreateTriggerRequestParams struct { // 新建触发器绑定的函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型。创建函数 URL 请在此填写 http,请参考[创建函数 URL ](https://cloud.tencent.com/document/product/583/100227#33bbbda4-9131-48a6-ac37-ac62ffe01424)。创建 cls 触发器请参考[CLS 创建投递 SCF 任务](https://cloud.tencent.com/document/product/614/61096)。 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901) TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭 Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"` // 用户自定义参数,仅支持timer触发器 CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"` // 触发器描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
Predefined struct for user
type CreateTriggerResponse ¶
type CreateTriggerResponse struct { *tchttp.BaseResponse Response *CreateTriggerResponseParams `json:"Response"` }
func NewCreateTriggerResponse ¶
func NewCreateTriggerResponse() (response *CreateTriggerResponse)
func (*CreateTriggerResponse) FromJsonString ¶
func (r *CreateTriggerResponse) FromJsonString(s string) error
FromJsonString 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 CreateTriggerResponseParams ¶ added in v1.0.426
type CreateTriggerResponseParams struct { // 触发器信息 TriggerInfo *Trigger `json:"TriggerInfo,omitnil,omitempty" name:"TriggerInfo"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeadLetterConfig ¶
type DeleteAliasRequest ¶
type DeleteAliasRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 别名的名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewDeleteAliasRequest ¶
func NewDeleteAliasRequest() (request *DeleteAliasRequest)
func (*DeleteAliasRequest) FromJsonString ¶
func (r *DeleteAliasRequest) FromJsonString(s string) error
FromJsonString 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 DeleteAliasRequestParams ¶ added in v1.0.426
type DeleteAliasRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 别名的名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type DeleteAliasResponse ¶
type DeleteAliasResponse struct { *tchttp.BaseResponse Response *DeleteAliasResponseParams `json:"Response"` }
func NewDeleteAliasResponse ¶
func NewDeleteAliasResponse() (response *DeleteAliasResponse)
func (*DeleteAliasResponse) FromJsonString ¶
func (r *DeleteAliasResponse) FromJsonString(s string) error
FromJsonString 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 DeleteAliasResponseParams ¶ added in v1.0.426
type DeleteAliasResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteFunctionRequest ¶
type DeleteFunctionRequest struct { *tchttp.BaseRequest // 要删除的函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所属命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 填写需要删除的版本号,不填默认删除函数下全部版本。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` }
func NewDeleteFunctionRequest ¶
func NewDeleteFunctionRequest() (request *DeleteFunctionRequest)
func (*DeleteFunctionRequest) FromJsonString ¶
func (r *DeleteFunctionRequest) FromJsonString(s string) error
FromJsonString 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 DeleteFunctionRequestParams ¶ added in v1.0.426
type DeleteFunctionRequestParams struct { // 要删除的函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所属命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 填写需要删除的版本号,不填默认删除函数下全部版本。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` }
Predefined struct for user
type DeleteFunctionResponse ¶
type DeleteFunctionResponse struct { *tchttp.BaseResponse Response *DeleteFunctionResponseParams `json:"Response"` }
func NewDeleteFunctionResponse ¶
func NewDeleteFunctionResponse() (response *DeleteFunctionResponse)
func (*DeleteFunctionResponse) FromJsonString ¶
func (r *DeleteFunctionResponse) FromJsonString(s string) error
FromJsonString 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 DeleteFunctionResponseParams ¶ added in v1.0.426
type DeleteFunctionResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteLayerVersionRequest ¶
type DeleteLayerVersionRequest struct { *tchttp.BaseRequest // 层名称 LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"` // 版本号 LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"` }
func NewDeleteLayerVersionRequest ¶
func NewDeleteLayerVersionRequest() (request *DeleteLayerVersionRequest)
func (*DeleteLayerVersionRequest) FromJsonString ¶
func (r *DeleteLayerVersionRequest) FromJsonString(s string) error
FromJsonString 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 DeleteLayerVersionRequestParams ¶ added in v1.0.426
type DeleteLayerVersionRequestParams struct { // 层名称 LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"` // 版本号 LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"` }
Predefined struct for user
type DeleteLayerVersionResponse ¶
type DeleteLayerVersionResponse struct { *tchttp.BaseResponse Response *DeleteLayerVersionResponseParams `json:"Response"` }
func NewDeleteLayerVersionResponse ¶
func NewDeleteLayerVersionResponse() (response *DeleteLayerVersionResponse)
func (*DeleteLayerVersionResponse) FromJsonString ¶
func (r *DeleteLayerVersionResponse) FromJsonString(s string) error
FromJsonString 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 DeleteLayerVersionResponseParams ¶ added in v1.0.426
type DeleteLayerVersionResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteNamespaceRequest ¶
type DeleteNamespaceRequest struct { *tchttp.BaseRequest // 命名空间名称 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewDeleteNamespaceRequest ¶
func NewDeleteNamespaceRequest() (request *DeleteNamespaceRequest)
func (*DeleteNamespaceRequest) FromJsonString ¶
func (r *DeleteNamespaceRequest) FromJsonString(s string) error
FromJsonString 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 DeleteNamespaceRequestParams ¶ added in v1.0.426
type DeleteNamespaceRequestParams struct { // 命名空间名称 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type DeleteNamespaceResponse ¶
type DeleteNamespaceResponse struct { *tchttp.BaseResponse Response *DeleteNamespaceResponseParams `json:"Response"` }
func NewDeleteNamespaceResponse ¶
func NewDeleteNamespaceResponse() (response *DeleteNamespaceResponse)
func (*DeleteNamespaceResponse) FromJsonString ¶
func (r *DeleteNamespaceResponse) FromJsonString(s string) error
FromJsonString 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 DeleteNamespaceResponseParams ¶ added in v1.0.426
type DeleteNamespaceResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteProvisionedConcurrencyConfigRequest ¶
type DeleteProvisionedConcurrencyConfigRequest struct { *tchttp.BaseRequest // 需要删除预置并发的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的版本号 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewDeleteProvisionedConcurrencyConfigRequest ¶
func NewDeleteProvisionedConcurrencyConfigRequest() (request *DeleteProvisionedConcurrencyConfigRequest)
func (*DeleteProvisionedConcurrencyConfigRequest) FromJsonString ¶
func (r *DeleteProvisionedConcurrencyConfigRequest) FromJsonString(s string) error
FromJsonString 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 DeleteProvisionedConcurrencyConfigRequestParams ¶ added in v1.0.426
type DeleteProvisionedConcurrencyConfigRequestParams struct { // 需要删除预置并发的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的版本号 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type DeleteProvisionedConcurrencyConfigResponse ¶
type DeleteProvisionedConcurrencyConfigResponse struct { *tchttp.BaseResponse Response *DeleteProvisionedConcurrencyConfigResponseParams `json:"Response"` }
func NewDeleteProvisionedConcurrencyConfigResponse ¶
func NewDeleteProvisionedConcurrencyConfigResponse() (response *DeleteProvisionedConcurrencyConfigResponse)
func (*DeleteProvisionedConcurrencyConfigResponse) FromJsonString ¶
func (r *DeleteProvisionedConcurrencyConfigResponse) FromJsonString(s string) error
FromJsonString 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 DeleteProvisionedConcurrencyConfigResponseParams ¶ added in v1.0.426
type DeleteProvisionedConcurrencyConfigResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteReservedConcurrencyConfigRequest ¶
type DeleteReservedConcurrencyConfigRequest struct { *tchttp.BaseRequest // 需要删除最大独占配额的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewDeleteReservedConcurrencyConfigRequest ¶
func NewDeleteReservedConcurrencyConfigRequest() (request *DeleteReservedConcurrencyConfigRequest)
func (*DeleteReservedConcurrencyConfigRequest) FromJsonString ¶
func (r *DeleteReservedConcurrencyConfigRequest) FromJsonString(s string) error
FromJsonString 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 DeleteReservedConcurrencyConfigRequestParams ¶ added in v1.0.426
type DeleteReservedConcurrencyConfigRequestParams struct { // 需要删除最大独占配额的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type DeleteReservedConcurrencyConfigResponse ¶
type DeleteReservedConcurrencyConfigResponse struct { *tchttp.BaseResponse Response *DeleteReservedConcurrencyConfigResponseParams `json:"Response"` }
func NewDeleteReservedConcurrencyConfigResponse ¶
func NewDeleteReservedConcurrencyConfigResponse() (response *DeleteReservedConcurrencyConfigResponse)
func (*DeleteReservedConcurrencyConfigResponse) FromJsonString ¶
func (r *DeleteReservedConcurrencyConfigResponse) FromJsonString(s string) error
FromJsonString 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 DeleteReservedConcurrencyConfigResponseParams ¶ added in v1.0.426
type DeleteReservedConcurrencyConfigResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type DeleteTriggerRequest ¶
type DeleteTriggerRequest struct { *tchttp.BaseRequest // 函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 要删除的触发器名称 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 要删除的触发器类型,目前支持 cos 、cmq、 timer、ckafka 类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 函数所属命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 如果删除的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果删除的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段 TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` // 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。 // 如果删除的触发器类型为 APIGW 触发器,该字段为必填参数 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` }
func NewDeleteTriggerRequest ¶
func NewDeleteTriggerRequest() (request *DeleteTriggerRequest)
func (*DeleteTriggerRequest) FromJsonString ¶
func (r *DeleteTriggerRequest) FromJsonString(s string) error
FromJsonString 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 DeleteTriggerRequestParams ¶ added in v1.0.426
type DeleteTriggerRequestParams struct { // 函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 要删除的触发器名称 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 要删除的触发器类型,目前支持 cos 、cmq、 timer、ckafka 类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 函数所属命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 如果删除的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果删除的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段 TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` // 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。 // 如果删除的触发器类型为 APIGW 触发器,该字段为必填参数 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` }
Predefined struct for user
type DeleteTriggerResponse ¶
type DeleteTriggerResponse struct { *tchttp.BaseResponse Response *DeleteTriggerResponseParams `json:"Response"` }
func NewDeleteTriggerResponse ¶
func NewDeleteTriggerResponse() (response *DeleteTriggerResponse)
func (*DeleteTriggerResponse) FromJsonString ¶
func (r *DeleteTriggerResponse) FromJsonString(s string) error
FromJsonString 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 DeleteTriggerResponseParams ¶ added in v1.0.426
type DeleteTriggerResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type EipConfigIn ¶
type EipConfigIn struct { // Eip开启状态,取值['ENABLE','DISABLE'] EipStatus *string `json:"EipStatus,omitnil,omitempty" name:"EipStatus"` }
type EipConfigOut ¶
type EipOutConfig ¶
type Environment ¶
type Environment struct { // 环境变量数组 Variables []*Variable `json:"Variables,omitnil,omitempty" name:"Variables"` }
type Filter ¶
type Filter struct { // 需要过滤的字段。过滤条件数量限制为10。 // Name可选值:VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip;Values 长度限制为1。 // Name可选值:Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable;Values 长度限制为20。 // 当 Name = Runtime 时,CustomImage 表示过滤镜像类型函数。 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 字段的过滤值。 Values []*string `json:"Values,omitnil,omitempty" name:"Values"` }
type Function ¶
type Function struct { // 修改时间 ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"` // 创建时间 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 运行时 // 注意:此字段可能返回 null,表示取不到有效值。 Runtime *string `json:"Runtime,omitnil,omitempty" name:"Runtime"` // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数ID FunctionId *string `json:"FunctionId,omitnil,omitempty" name:"FunctionId"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数状态,状态值及流转[参考此处](https://cloud.tencent.com/document/product/583/47175) Status *string `json:"Status,omitnil,omitempty" name:"Status"` // 函数状态详情 StatusDesc *string `json:"StatusDesc,omitnil,omitempty" name:"StatusDesc"` // 函数描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 函数标签 Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"` // 函数类型,取值为 HTTP 或者 Event Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 函数状态失败原因 StatusReasons []*StatusReason `json:"StatusReasons,omitnil,omitempty" name:"StatusReasons"` // 函数所有版本预置并发内存总和 // 注意:此字段可能返回 null,表示取不到有效值。 TotalProvisionedConcurrencyMem *uint64 `json:"TotalProvisionedConcurrencyMem,omitnil,omitempty" name:"TotalProvisionedConcurrencyMem"` // 函数并发保留内存 // 注意:此字段可能返回 null,表示取不到有效值。 ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitnil,omitempty" name:"ReservedConcurrencyMem"` // 函数异步属性,取值 TRUE 或者 FALSE AsyncRunEnable *string `json:"AsyncRunEnable,omitnil,omitempty" name:"AsyncRunEnable"` // 异步函数是否开启调用追踪,取值 TRUE 或者 FALSE TraceEnable *string `json:"TraceEnable,omitnil,omitempty" name:"TraceEnable"` }
type FunctionLog ¶
type FunctionLog struct { // 函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数执行完成后的返回值 RetMsg *string `json:"RetMsg,omitnil,omitempty" name:"RetMsg"` // 执行该函数对应的requestId RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` // 函数开始执行时的时间点 StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 函数执行结果,如果是 0 表示执行成功,其他值表示失败 RetCode *int64 `json:"RetCode,omitnil,omitempty" name:"RetCode"` // 函数调用是否结束,如果是 1 表示执行结束,其他值表示调用异常 InvokeFinished *int64 `json:"InvokeFinished,omitnil,omitempty" name:"InvokeFinished"` // 函数执行耗时,单位为 ms Duration *float64 `json:"Duration,omitnil,omitempty" name:"Duration"` // 函数计费时间,根据 duration 向上取最近的 100ms,单位为ms BillDuration *int64 `json:"BillDuration,omitnil,omitempty" name:"BillDuration"` // 函数执行时消耗实际内存大小,单位为 Byte MemUsage *int64 `json:"MemUsage,omitnil,omitempty" name:"MemUsage"` // 函数执行过程中的日志输出 Log *string `json:"Log,omitnil,omitempty" name:"Log"` // 日志等级 Level *string `json:"Level,omitnil,omitempty" name:"Level"` // 日志来源 Source *string `json:"Source,omitnil,omitempty" name:"Source"` // 重试次数 RetryNum *uint64 `json:"RetryNum,omitnil,omitempty" name:"RetryNum"` }
type FunctionVersion ¶
type FunctionVersion struct { // 函数版本名称 Version *string `json:"Version,omitnil,omitempty" name:"Version"` // 版本描述信息 // 注意:此字段可能返回 null,表示取不到有效值。 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 更新时间 // 注意:此字段可能返回 null,表示取不到有效值。 ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"` // 版本状态 // 注意:此字段可能返回 null,表示取不到有效值。 Status *string `json:"Status,omitnil,omitempty" name:"Status"` }
type GetAccountRequest ¶
type GetAccountRequest struct {
*tchttp.BaseRequest
}
func NewGetAccountRequest ¶
func NewGetAccountRequest() (request *GetAccountRequest)
func (*GetAccountRequest) FromJsonString ¶
func (r *GetAccountRequest) FromJsonString(s string) error
FromJsonString 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 GetAccountRequestParams ¶ added in v1.0.426
type GetAccountRequestParams struct { }
Predefined struct for user
type GetAccountResponse ¶
type GetAccountResponse struct { *tchttp.BaseResponse Response *GetAccountResponseParams `json:"Response"` }
func NewGetAccountResponse ¶
func NewGetAccountResponse() (response *GetAccountResponse)
func (*GetAccountResponse) FromJsonString ¶
func (r *GetAccountResponse) FromJsonString(s string) error
FromJsonString 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 GetAccountResponseParams ¶ added in v1.0.426
type GetAccountResponseParams struct { // 命名空间已使用的信息 AccountUsage *UsageInfo `json:"AccountUsage,omitnil,omitempty" name:"AccountUsage"` // 命名空间限制的信息 AccountLimit *LimitsInfo `json:"AccountLimit,omitnil,omitempty" name:"AccountLimit"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetAliasRequest ¶
type GetAliasRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 别名的名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewGetAliasRequest ¶
func NewGetAliasRequest() (request *GetAliasRequest)
func (*GetAliasRequest) FromJsonString ¶
func (r *GetAliasRequest) FromJsonString(s string) error
FromJsonString 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 GetAliasRequestParams ¶ added in v1.0.426
type GetAliasRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 别名的名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type GetAliasResponse ¶
type GetAliasResponse struct { *tchttp.BaseResponse Response *GetAliasResponseParams `json:"Response"` }
func NewGetAliasResponse ¶
func NewGetAliasResponse() (response *GetAliasResponse)
func (*GetAliasResponse) FromJsonString ¶
func (r *GetAliasResponse) FromJsonString(s string) error
FromJsonString 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 GetAliasResponseParams ¶ added in v1.0.426
type GetAliasResponseParams struct { // 别名指向的主版本 FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 别名的名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 别名的路由信息 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"` // 别名的描述 // 注意:此字段可能返回 null,表示取不到有效值。 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 更新时间 // 注意:此字段可能返回 null,表示取不到有效值。 ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetAsyncEventStatusRequest ¶ added in v1.0.308
type GetAsyncEventStatusRequest struct { *tchttp.BaseRequest // 异步执行请求 id InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"` }
func NewGetAsyncEventStatusRequest ¶ added in v1.0.308
func NewGetAsyncEventStatusRequest() (request *GetAsyncEventStatusRequest)
func (*GetAsyncEventStatusRequest) FromJsonString ¶ added in v1.0.308
func (r *GetAsyncEventStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAsyncEventStatusRequest) ToJsonString ¶ added in v1.0.308
func (r *GetAsyncEventStatusRequest) ToJsonString() string
type GetAsyncEventStatusRequestParams ¶ added in v1.0.426
type GetAsyncEventStatusRequestParams struct { // 异步执行请求 id InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"` }
Predefined struct for user
type GetAsyncEventStatusResponse ¶ added in v1.0.308
type GetAsyncEventStatusResponse struct { *tchttp.BaseResponse Response *GetAsyncEventStatusResponseParams `json:"Response"` }
func NewGetAsyncEventStatusResponse ¶ added in v1.0.308
func NewGetAsyncEventStatusResponse() (response *GetAsyncEventStatusResponse)
func (*GetAsyncEventStatusResponse) FromJsonString ¶ added in v1.0.308
func (r *GetAsyncEventStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetAsyncEventStatusResponse) ToJsonString ¶ added in v1.0.308
func (r *GetAsyncEventStatusResponse) ToJsonString() string
type GetAsyncEventStatusResponseParams ¶ added in v1.0.426
type GetAsyncEventStatusResponseParams struct { // 异步事件状态 Result *AsyncEventStatus `json:"Result,omitnil,omitempty" name:"Result"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetFunctionAddressRequest ¶
type GetFunctionAddressRequest struct { *tchttp.BaseRequest // 函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的版本 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewGetFunctionAddressRequest ¶
func NewGetFunctionAddressRequest() (request *GetFunctionAddressRequest)
func (*GetFunctionAddressRequest) FromJsonString ¶
func (r *GetFunctionAddressRequest) FromJsonString(s string) error
FromJsonString 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 GetFunctionAddressRequestParams ¶ added in v1.0.426
type GetFunctionAddressRequestParams struct { // 函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的版本 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type GetFunctionAddressResponse ¶
type GetFunctionAddressResponse struct { *tchttp.BaseResponse Response *GetFunctionAddressResponseParams `json:"Response"` }
func NewGetFunctionAddressResponse ¶
func NewGetFunctionAddressResponse() (response *GetFunctionAddressResponse)
func (*GetFunctionAddressResponse) FromJsonString ¶
func (r *GetFunctionAddressResponse) FromJsonString(s string) error
FromJsonString 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 GetFunctionAddressResponseParams ¶ added in v1.0.426
type GetFunctionAddressResponseParams struct { // 函数的Cos地址 Url *string `json:"Url,omitnil,omitempty" name:"Url"` // 函数的SHA256编码 CodeSha256 *string `json:"CodeSha256,omitnil,omitempty" name:"CodeSha256"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetFunctionEventInvokeConfigRequest ¶
type GetFunctionEventInvokeConfigRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数版本,默认为$LATEST Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` }
func NewGetFunctionEventInvokeConfigRequest ¶
func NewGetFunctionEventInvokeConfigRequest() (request *GetFunctionEventInvokeConfigRequest)
func (*GetFunctionEventInvokeConfigRequest) FromJsonString ¶
func (r *GetFunctionEventInvokeConfigRequest) FromJsonString(s string) error
FromJsonString 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 GetFunctionEventInvokeConfigRequestParams ¶ added in v1.0.426
type GetFunctionEventInvokeConfigRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数版本,默认为$LATEST Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` }
Predefined struct for user
type GetFunctionEventInvokeConfigResponse ¶
type GetFunctionEventInvokeConfigResponse struct { *tchttp.BaseResponse Response *GetFunctionEventInvokeConfigResponseParams `json:"Response"` }
func NewGetFunctionEventInvokeConfigResponse ¶
func NewGetFunctionEventInvokeConfigResponse() (response *GetFunctionEventInvokeConfigResponse)
func (*GetFunctionEventInvokeConfigResponse) FromJsonString ¶
func (r *GetFunctionEventInvokeConfigResponse) FromJsonString(s string) error
FromJsonString 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 GetFunctionEventInvokeConfigResponseParams ¶ added in v1.0.426
type GetFunctionEventInvokeConfigResponseParams struct { // 异步重试配置信息 AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitnil,omitempty" name:"AsyncTriggerConfig"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
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,omitnil,omitempty" name:"FunctionName"` // 数据的偏移量,Offset+Limit不能大于10000 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据的长度,Offset+Limit不能大于10000 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 以升序还是降序的方式对日志进行排序,可选值 desc和 asc Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 根据某个字段排序日志,支持以下字段:function_name, duration, mem_usage, start_time OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"` // 日志过滤条件。可用来区分正确和错误日志,filter.RetCode=not0 表示只返回错误日志,filter.RetCode=is0 表示只返回正确日志,不传,则返回所有日志 Filter *LogFilter `json:"Filter,omitnil,omitempty" name:"Filter"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数的版本 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 执行该函数对应的requestId FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"` // 查询的具体日期,例如:2017-05-16 20:00:00,只能与endtime相差一天之内 StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 查询的具体日期,例如:2017-05-16 20:59:59,只能与startTime相差一天之内 EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` // 该字段已下线 SearchContext *LogSearchContext `json:"SearchContext,omitnil,omitempty" name:"SearchContext"` }
func NewGetFunctionLogsRequest ¶
func NewGetFunctionLogsRequest() (request *GetFunctionLogsRequest)
func (*GetFunctionLogsRequest) FromJsonString ¶
func (r *GetFunctionLogsRequest) FromJsonString(s string) error
FromJsonString 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 GetFunctionLogsRequestParams ¶ added in v1.0.426
type GetFunctionLogsRequestParams struct { // 函数的名称。 // - 为保证[获取函数运行日志](https://cloud.tencent.com/document/product/583/18583)接口`GetFunctionLogs`兼容性,输入参数`FunctionName`仍为非必填项,但建议填写该参数,否则可能导致日志获取失败。 // - 函数关联日志服务后,建议使用[日志服务](https://cloud.tencent.com/document/product/614/16875)相关接口以获得最佳日志检索体验。 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 数据的偏移量,Offset+Limit不能大于10000 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据的长度,Offset+Limit不能大于10000 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 以升序还是降序的方式对日志进行排序,可选值 desc和 asc Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 根据某个字段排序日志,支持以下字段:function_name, duration, mem_usage, start_time OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"` // 日志过滤条件。可用来区分正确和错误日志,filter.RetCode=not0 表示只返回错误日志,filter.RetCode=is0 表示只返回正确日志,不传,则返回所有日志 Filter *LogFilter `json:"Filter,omitnil,omitempty" name:"Filter"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数的版本 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 执行该函数对应的requestId FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"` // 查询的具体日期,例如:2017-05-16 20:00:00,只能与endtime相差一天之内 StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 查询的具体日期,例如:2017-05-16 20:59:59,只能与startTime相差一天之内 EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` // 该字段已下线 SearchContext *LogSearchContext `json:"SearchContext,omitnil,omitempty" name:"SearchContext"` }
Predefined struct for user
type GetFunctionLogsResponse ¶
type GetFunctionLogsResponse struct { *tchttp.BaseResponse Response *GetFunctionLogsResponseParams `json:"Response"` }
func NewGetFunctionLogsResponse ¶
func NewGetFunctionLogsResponse() (response *GetFunctionLogsResponse)
func (*GetFunctionLogsResponse) FromJsonString ¶
func (r *GetFunctionLogsResponse) FromJsonString(s string) error
FromJsonString 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 GetFunctionLogsResponseParams ¶ added in v1.0.426
type GetFunctionLogsResponseParams struct { // 函数日志的总数 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 函数日志信息 Data []*FunctionLog `json:"Data,omitnil,omitempty" name:"Data"` // 该字段已下线 SearchContext *LogSearchContext `json:"SearchContext,omitnil,omitempty" name:"SearchContext"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetFunctionRequest ¶
type GetFunctionRequest struct { *tchttp.BaseRequest // 需要获取详情的函数名称,ResourceId和FunctionName只能传一个 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的版本号 // 默认值: $LATEST Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数所属命名空间 // 默认值: default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 是否显示代码, TRUE表示显示代码,FALSE表示不显示代码,大于1M的入口文件不会显示 ShowCode *string `json:"ShowCode,omitnil,omitempty" name:"ShowCode"` }
func NewGetFunctionRequest ¶
func NewGetFunctionRequest() (request *GetFunctionRequest)
func (*GetFunctionRequest) FromJsonString ¶
func (r *GetFunctionRequest) FromJsonString(s string) error
FromJsonString 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 GetFunctionRequestParams ¶ added in v1.0.426
type GetFunctionRequestParams struct { // 需要获取详情的函数名称,ResourceId和FunctionName只能传一个 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的版本号 // 默认值: $LATEST Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数所属命名空间 // 默认值: default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 是否显示代码, TRUE表示显示代码,FALSE表示不显示代码,大于1M的入口文件不会显示 ShowCode *string `json:"ShowCode,omitnil,omitempty" name:"ShowCode"` }
Predefined struct for user
type GetFunctionResponse ¶
type GetFunctionResponse struct { *tchttp.BaseResponse Response *GetFunctionResponseParams `json:"Response"` }
func NewGetFunctionResponse ¶
func NewGetFunctionResponse() (response *GetFunctionResponse)
func (*GetFunctionResponse) FromJsonString ¶
func (r *GetFunctionResponse) FromJsonString(s string) error
FromJsonString 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 GetFunctionResponseParams ¶ added in v1.0.426
type GetFunctionResponseParams struct { // 函数的最后修改时间 ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"` // 函数的代码 CodeInfo *string `json:"CodeInfo,omitnil,omitempty" name:"CodeInfo"` // 函数的描述信息 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 函数的触发器列表 Triggers []*Trigger `json:"Triggers,omitnil,omitempty" name:"Triggers"` // 函数的入口 Handler *string `json:"Handler,omitnil,omitempty" name:"Handler"` // 函数代码大小 CodeSize *int64 `json:"CodeSize,omitnil,omitempty" name:"CodeSize"` // 函数的超时时间 Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"` // 函数的版本 FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 函数的最大可用内存 MemorySize *int64 `json:"MemorySize,omitnil,omitempty" name:"MemorySize"` // 函数的运行环境 // 注意:此字段可能返回 null,表示取不到有效值。 Runtime *string `json:"Runtime,omitnil,omitempty" name:"Runtime"` // 函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的私有网络 VpcConfig *VpcConfig `json:"VpcConfig,omitnil,omitempty" name:"VpcConfig"` // 是否使用GPU UseGpu *string `json:"UseGpu,omitnil,omitempty" name:"UseGpu"` // 函数的环境变量 Environment *Environment `json:"Environment,omitnil,omitempty" name:"Environment"` // 代码是否正确 CodeResult *string `json:"CodeResult,omitnil,omitempty" name:"CodeResult"` // 代码错误信息 CodeError *string `json:"CodeError,omitnil,omitempty" name:"CodeError"` // 代码错误码 ErrNo *int64 `json:"ErrNo,omitnil,omitempty" name:"ErrNo"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数绑定的角色 Role *string `json:"Role,omitnil,omitempty" name:"Role"` // 是否自动安装依赖 InstallDependency *string `json:"InstallDependency,omitnil,omitempty" name:"InstallDependency"` // 函数状态,状态值及流转[参考说明](https://cloud.tencent.com/document/product/583/47175) Status *string `json:"Status,omitnil,omitempty" name:"Status"` // 状态描述 StatusDesc *string `json:"StatusDesc,omitnil,omitempty" name:"StatusDesc"` // 日志投递到的Cls日志集 ClsLogsetId *string `json:"ClsLogsetId,omitnil,omitempty" name:"ClsLogsetId"` // 日志投递到的Cls Topic ClsTopicId *string `json:"ClsTopicId,omitnil,omitempty" name:"ClsTopicId"` // 函数ID FunctionId *string `json:"FunctionId,omitnil,omitempty" name:"FunctionId"` // 函数的标签列表 Tags []*Tag `json:"Tags,omitnil,omitempty" name:"Tags"` // EipConfig配置 EipConfig *EipOutConfig `json:"EipConfig,omitnil,omitempty" name:"EipConfig"` // 域名信息 AccessInfo *AccessInfo `json:"AccessInfo,omitnil,omitempty" name:"AccessInfo"` // 函数类型,取值为HTTP或者Event Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 是否启用L5 L5Enable *string `json:"L5Enable,omitnil,omitempty" name:"L5Enable"` // 函数关联的Layer版本信息 Layers []*LayerVersionInfo `json:"Layers,omitnil,omitempty" name:"Layers"` // 函数关联的死信队列信息 DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitnil,omitempty" name:"DeadLetterConfig"` // 函数创建回见 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 公网访问配置 // 注意:此字段可能返回 null,表示取不到有效值。 PublicNetConfig *PublicNetConfigOut `json:"PublicNetConfig,omitnil,omitempty" name:"PublicNetConfig"` // 是否启用Ons // 注意:此字段可能返回 null,表示取不到有效值。 OnsEnable *string `json:"OnsEnable,omitnil,omitempty" name:"OnsEnable"` // 文件系统配置参数,用于云函数挂载文件系统 // 注意:此字段可能返回 null,表示取不到有效值。 CfsConfig *CfsConfig `json:"CfsConfig,omitnil,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,omitnil,omitempty" name:"AvailableStatus"` // 函数版本 // 注意:此字段可能返回 null,表示取不到有效值。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数初始化超时时间 InitTimeout *int64 `json:"InitTimeout,omitnil,omitempty" name:"InitTimeout"` // 函数状态失败原因 // 注意:此字段可能返回 null,表示取不到有效值。 StatusReasons []*StatusReason `json:"StatusReasons,omitnil,omitempty" name:"StatusReasons"` // 是否开启异步属性 // 注意:此字段可能返回 null,表示取不到有效值。 AsyncRunEnable *string `json:"AsyncRunEnable,omitnil,omitempty" name:"AsyncRunEnable"` // 是否开启事件追踪 // 注意:此字段可能返回 null,表示取不到有效值。 TraceEnable *string `json:"TraceEnable,omitnil,omitempty" name:"TraceEnable"` // 镜像配置 // 注意:此字段可能返回 null,表示取不到有效值。 ImageConfig *ImageConfig `json:"ImageConfig,omitnil,omitempty" name:"ImageConfig"` // HTTP函数支持的访问协议。当前支持WebSockets协议。 // 注意:此字段可能返回 null,表示取不到有效值。 ProtocolType *string `json:"ProtocolType,omitnil,omitempty" name:"ProtocolType"` // HTTP函数配置ProtocolType访问协议,当前协议配置的参数 // 注意:此字段可能返回 null,表示取不到有效值。 ProtocolParams *ProtocolParams `json:"ProtocolParams,omitnil,omitempty" name:"ProtocolParams"` // 是否开启DNS缓存 // 注意:此字段可能返回 null,表示取不到有效值。 DnsCache *string `json:"DnsCache,omitnil,omitempty" name:"DnsCache"` // 内网访问配置 // 注意:此字段可能返回 null,表示取不到有效值。 IntranetConfig *IntranetConfigOut `json:"IntranetConfig,omitnil,omitempty" name:"IntranetConfig"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetLayerVersionRequest ¶
type GetLayerVersionRequest struct { *tchttp.BaseRequest // 层名称 LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"` // 版本号 LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"` }
func NewGetLayerVersionRequest ¶
func NewGetLayerVersionRequest() (request *GetLayerVersionRequest)
func (*GetLayerVersionRequest) FromJsonString ¶
func (r *GetLayerVersionRequest) FromJsonString(s string) error
FromJsonString 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 GetLayerVersionRequestParams ¶ added in v1.0.426
type GetLayerVersionRequestParams struct { // 层名称 LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"` // 版本号 LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"` }
Predefined struct for user
type GetLayerVersionResponse ¶
type GetLayerVersionResponse struct { *tchttp.BaseResponse Response *GetLayerVersionResponseParams `json:"Response"` }
func NewGetLayerVersionResponse ¶
func NewGetLayerVersionResponse() (response *GetLayerVersionResponse)
func (*GetLayerVersionResponse) FromJsonString ¶
func (r *GetLayerVersionResponse) FromJsonString(s string) error
FromJsonString 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 GetLayerVersionResponseParams ¶ added in v1.0.426
type GetLayerVersionResponseParams struct { // 适配的运行时 CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitnil,omitempty" name:"CompatibleRuntimes"` // 层中版本文件的SHA256编码 CodeSha256 *string `json:"CodeSha256,omitnil,omitempty" name:"CodeSha256"` // 层中版本文件的下载地址 Location *string `json:"Location,omitnil,omitempty" name:"Location"` // 版本的创建时间 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 版本的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 许可证信息 LicenseInfo *string `json:"LicenseInfo,omitnil,omitempty" name:"LicenseInfo"` // 版本号 LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"` // 层名称 LayerName *string `json:"LayerName,omitnil,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,omitnil,omitempty" name:"Status"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetProvisionedConcurrencyConfigRequest ¶
type GetProvisionedConcurrencyConfigRequest struct { *tchttp.BaseRequest // 需要获取预置并发详情的函数名称。 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所在的命名空间,默认为default。 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数版本号,不传则返回函数所有版本的预置并发信息。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` }
func NewGetProvisionedConcurrencyConfigRequest ¶
func NewGetProvisionedConcurrencyConfigRequest() (request *GetProvisionedConcurrencyConfigRequest)
func (*GetProvisionedConcurrencyConfigRequest) FromJsonString ¶
func (r *GetProvisionedConcurrencyConfigRequest) FromJsonString(s string) error
FromJsonString 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 GetProvisionedConcurrencyConfigRequestParams ¶ added in v1.0.426
type GetProvisionedConcurrencyConfigRequestParams struct { // 需要获取预置并发详情的函数名称。 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所在的命名空间,默认为default。 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数版本号,不传则返回函数所有版本的预置并发信息。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` }
Predefined struct for user
type GetProvisionedConcurrencyConfigResponse ¶
type GetProvisionedConcurrencyConfigResponse struct { *tchttp.BaseResponse Response *GetProvisionedConcurrencyConfigResponseParams `json:"Response"` }
func NewGetProvisionedConcurrencyConfigResponse ¶
func NewGetProvisionedConcurrencyConfigResponse() (response *GetProvisionedConcurrencyConfigResponse)
func (*GetProvisionedConcurrencyConfigResponse) FromJsonString ¶
func (r *GetProvisionedConcurrencyConfigResponse) FromJsonString(s string) error
FromJsonString 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 GetProvisionedConcurrencyConfigResponseParams ¶ added in v1.0.426
type GetProvisionedConcurrencyConfigResponseParams struct { // 该函数剩余可配置的预置并发数。 UnallocatedConcurrencyNum *uint64 `json:"UnallocatedConcurrencyNum,omitnil,omitempty" name:"UnallocatedConcurrencyNum"` // 函数已预置的并发配置详情。 Allocated []*VersionProvisionedConcurrencyInfo `json:"Allocated,omitnil,omitempty" name:"Allocated"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetRequestStatusRequest ¶ added in v1.0.304
type GetRequestStatusRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 需要查询状态的请求 id FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"` // 函数的所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 查询的开始时间,例如:2017-05-16 20:00:00,不填默认为当前时间 - 15min StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 查询的结束时间,例如:2017-05-16 20:59:59。StartTime 为空时,EndTime 默认为当前时间;StartTime 有值时,需要同时传 EndTime。EndTime 需要晚于 StartTime。 EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` }
func NewGetRequestStatusRequest ¶ added in v1.0.304
func NewGetRequestStatusRequest() (request *GetRequestStatusRequest)
func (*GetRequestStatusRequest) FromJsonString ¶ added in v1.0.304
func (r *GetRequestStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetRequestStatusRequest) ToJsonString ¶ added in v1.0.304
func (r *GetRequestStatusRequest) ToJsonString() string
type GetRequestStatusRequestParams ¶ added in v1.0.426
type GetRequestStatusRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 需要查询状态的请求 id FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"` // 函数的所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 查询的开始时间,例如:2017-05-16 20:00:00,不填默认为当前时间 - 15min StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 查询的结束时间,例如:2017-05-16 20:59:59。StartTime 为空时,EndTime 默认为当前时间;StartTime 有值时,需要同时传 EndTime。EndTime 需要晚于 StartTime。 EndTime *string `json:"EndTime,omitnil,omitempty" name:"EndTime"` }
Predefined struct for user
type GetRequestStatusResponse ¶ added in v1.0.304
type GetRequestStatusResponse struct { *tchttp.BaseResponse Response *GetRequestStatusResponseParams `json:"Response"` }
func NewGetRequestStatusResponse ¶ added in v1.0.304
func NewGetRequestStatusResponse() (response *GetRequestStatusResponse)
func (*GetRequestStatusResponse) FromJsonString ¶ added in v1.0.304
func (r *GetRequestStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetRequestStatusResponse) ToJsonString ¶ added in v1.0.304
func (r *GetRequestStatusResponse) ToJsonString() string
type GetRequestStatusResponseParams ¶ added in v1.0.426
type GetRequestStatusResponseParams struct { // 函数运行状态的总数 // 注意:此字段可能返回 null,表示取不到有效值。 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 函数运行状态数组 // 注意:此字段可能返回 null,表示取不到有效值。 Data []*RequestStatus `json:"Data,omitnil,omitempty" name:"Data"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type GetReservedConcurrencyConfigRequest ¶
type GetReservedConcurrencyConfigRequest struct { *tchttp.BaseRequest // 需要获取最大独占配额详情的函数名称。 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所在的命名空间,默认为default。 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewGetReservedConcurrencyConfigRequest ¶
func NewGetReservedConcurrencyConfigRequest() (request *GetReservedConcurrencyConfigRequest)
func (*GetReservedConcurrencyConfigRequest) FromJsonString ¶
func (r *GetReservedConcurrencyConfigRequest) FromJsonString(s string) error
FromJsonString 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 GetReservedConcurrencyConfigRequestParams ¶ added in v1.0.426
type GetReservedConcurrencyConfigRequestParams struct { // 需要获取最大独占配额详情的函数名称。 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所在的命名空间,默认为default。 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type GetReservedConcurrencyConfigResponse ¶
type GetReservedConcurrencyConfigResponse struct { *tchttp.BaseResponse Response *GetReservedConcurrencyConfigResponseParams `json:"Response"` }
func NewGetReservedConcurrencyConfigResponse ¶
func NewGetReservedConcurrencyConfigResponse() (response *GetReservedConcurrencyConfigResponse)
func (*GetReservedConcurrencyConfigResponse) FromJsonString ¶
func (r *GetReservedConcurrencyConfigResponse) FromJsonString(s string) error
FromJsonString 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 GetReservedConcurrencyConfigResponseParams ¶ added in v1.0.426
type GetReservedConcurrencyConfigResponseParams struct { // 该函数的最大独占配额。 // 注意:此字段可能返回 null,表示取不到有效值。 ReservedMem *uint64 `json:"ReservedMem,omitnil,omitempty" name:"ReservedMem"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ImageConfig ¶ added in v1.0.254
type ImageConfig struct { // 镜像仓库类型,个人版或者企业版:personal/enterprise ImageType *string `json:"ImageType,omitnil,omitempty" name:"ImageType"` // {domain}/{namespace}/{imageName}:{tag}@{digest} ImageUri *string `json:"ImageUri,omitnil,omitempty" name:"ImageUri"` // 用于企业版TCR获取镜像拉取临时凭证,ImageType为"enterprise"时必填 // 注意:此字段可能返回 null,表示取不到有效值。 RegistryId *string `json:"RegistryId,omitnil,omitempty" name:"RegistryId"` // 参数已废弃 // 注意:此字段可能返回 null,表示取不到有效值。 EntryPoint *string `json:"EntryPoint,omitnil,omitempty" name:"EntryPoint"` // 容器的启动命令。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 Entrypoint。传入规范,填写可运行的指令,例如 python // 注意:此字段可能返回 null,表示取不到有效值。 Command *string `json:"Command,omitnil,omitempty" name:"Command"` // 容器的启动参数。该参数为可选参数,如果不填写,则默认使用 Dockerfile 中的 CMD。传入规范,以“空格”作为参数的分割标识,例如 -u app.py // 注意:此字段可能返回 null,表示取不到有效值。 Args *string `json:"Args,omitnil,omitempty" name:"Args"` // 镜像加速开关,默认False // 注意:此字段可能返回 null,表示取不到有效值。 ContainerImageAccelerate *bool `json:"ContainerImageAccelerate,omitnil,omitempty" name:"ContainerImageAccelerate"` // 镜像函数端口设置 // 默认值: 9000 // -1: 无端口镜像函数 // 其他: 取值范围 0 ~ 65535 // 注意:此字段可能返回 null,表示取不到有效值。 ImagePort *int64 `json:"ImagePort,omitnil,omitempty" name:"ImagePort"` }
type InstanceConcurrencyConfig ¶ added in v1.0.539
type InstanceConcurrencyConfig struct { // 是否开启智能动态并发。'FALSE'时是静态并发。”时取消多并发配置。 // 注意:此字段可能返回 null,表示取不到有效值。 DynamicEnabled *string `json:"DynamicEnabled,omitnil,omitempty" name:"DynamicEnabled"` // 单实例并发数最大值。取值范围 [1,100] // 注意:此字段可能返回 null,表示取不到有效值。 MaxConcurrency *uint64 `json:"MaxConcurrency,omitnil,omitempty" name:"MaxConcurrency"` }
type IntranetConfigIn ¶ added in v1.0.806
type IntranetConfigIn struct { // 是否开启固定内网IP // ENABLE 为开启 // DISABLE 为不开启 IpFixed *string `json:"IpFixed,omitnil,omitempty" name:"IpFixed"` }
type IntranetConfigOut ¶ added in v1.0.803
type InvokeFunctionRequest ¶ added in v1.0.205
type InvokeFunctionRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 触发函数的版本号或别名,默认值为$DEFAULT Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 运行函数时的参数,以json格式传入,最大支持的参数长度是 6MB。该字段信息对应函数 [event 入参](https://cloud.tencent.com/document/product/583/9210#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E)。 Event *string `json:"Event,omitnil,omitempty" name:"Event"` // 返回值会包含4KB的日志,可选值为None和Tail,默认值为None。当该值为Tail时,返回参数中的Log字段会包含对应的函数执行日志 LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"` // 命名空间,不填默认为 default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节 RoutingKey *string `json:"RoutingKey,omitnil,omitempty" name:"RoutingKey"` }
func NewInvokeFunctionRequest ¶ added in v1.0.205
func NewInvokeFunctionRequest() (request *InvokeFunctionRequest)
func (*InvokeFunctionRequest) FromJsonString ¶ added in v1.0.205
func (r *InvokeFunctionRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InvokeFunctionRequest) ToJsonString ¶ added in v1.0.205
func (r *InvokeFunctionRequest) ToJsonString() string
type InvokeFunctionRequestParams ¶ added in v1.0.426
type InvokeFunctionRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 触发函数的版本号或别名,默认值为$DEFAULT Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 运行函数时的参数,以json格式传入,最大支持的参数长度是 6MB。该字段信息对应函数 [event 入参](https://cloud.tencent.com/document/product/583/9210#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E)。 Event *string `json:"Event,omitnil,omitempty" name:"Event"` // 返回值会包含4KB的日志,可选值为None和Tail,默认值为None。当该值为Tail时,返回参数中的Log字段会包含对应的函数执行日志 LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"` // 命名空间,不填默认为 default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节 RoutingKey *string `json:"RoutingKey,omitnil,omitempty" name:"RoutingKey"` }
Predefined struct for user
type InvokeFunctionResponse ¶ added in v1.0.205
type InvokeFunctionResponse struct { *tchttp.BaseResponse Response *InvokeFunctionResponseParams `json:"Response"` }
func NewInvokeFunctionResponse ¶ added in v1.0.205
func NewInvokeFunctionResponse() (response *InvokeFunctionResponse)
func (*InvokeFunctionResponse) FromJsonString ¶ added in v1.0.205
func (r *InvokeFunctionResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*InvokeFunctionResponse) ToJsonString ¶ added in v1.0.205
func (r *InvokeFunctionResponse) ToJsonString() string
type InvokeFunctionResponseParams ¶ added in v1.0.426
type InvokeFunctionResponseParams struct { // 函数执行结果 Result *Result `json:"Result,omitnil,omitempty" name:"Result"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type InvokeRequest ¶
type InvokeRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 同步调用请使用[同步 Invoke 调用接口](https://cloud.tencent.com/document/product/583/58400) 或填写同步调用参数 RequestResponse ,建议使用同步调用接口以获取最佳性能;异步调用填写 Event;默认为同步。接口超时时间为 300s,更长超时时间请使用异步调用。 InvocationType *string `json:"InvocationType,omitnil,omitempty" name:"InvocationType"` // 触发函数的版本号或别名,默认值为 $LATEST Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 运行函数时的参数,以json格式传入,同步调用最大支持 6MB,异步调用最大支持 128 KB。该字段信息对应函数 [event 入参](https://cloud.tencent.com/document/product/583/9210#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E)。 ClientContext *string `json:"ClientContext,omitnil,omitempty" name:"ClientContext"` // 异步调用该字段返回为空。 LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节 RoutingKey *string `json:"RoutingKey,omitnil,omitempty" name:"RoutingKey"` }
func NewInvokeRequest ¶
func NewInvokeRequest() (request *InvokeRequest)
func (*InvokeRequest) FromJsonString ¶
func (r *InvokeRequest) FromJsonString(s string) error
FromJsonString 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 InvokeRequestParams ¶ added in v1.0.426
type InvokeRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 同步调用请使用[同步 Invoke 调用接口](https://cloud.tencent.com/document/product/583/58400) 或填写同步调用参数 RequestResponse ,建议使用同步调用接口以获取最佳性能;异步调用填写 Event;默认为同步。接口超时时间为 300s,更长超时时间请使用异步调用。 InvocationType *string `json:"InvocationType,omitnil,omitempty" name:"InvocationType"` // 触发函数的版本号或别名,默认值为 $LATEST Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 运行函数时的参数,以json格式传入,同步调用最大支持 6MB,异步调用最大支持 128 KB。该字段信息对应函数 [event 入参](https://cloud.tencent.com/document/product/583/9210#.E5.87.BD.E6.95.B0.E5.85.A5.E5.8F.82.3Ca-id.3D.22input.22.3E.3C.2Fa.3E)。 ClientContext *string `json:"ClientContext,omitnil,omitempty" name:"ClientContext"` // 异步调用该字段返回为空。 LogType *string `json:"LogType,omitnil,omitempty" name:"LogType"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节 RoutingKey *string `json:"RoutingKey,omitnil,omitempty" name:"RoutingKey"` }
Predefined struct for user
type InvokeResponse ¶
type InvokeResponse struct { *tchttp.BaseResponse Response *InvokeResponseParams `json:"Response"` }
func NewInvokeResponse ¶
func NewInvokeResponse() (response *InvokeResponse)
func (*InvokeResponse) FromJsonString ¶
func (r *InvokeResponse) FromJsonString(s string) error
FromJsonString 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 InvokeResponseParams ¶ added in v1.0.426
type InvokeResponseParams struct { // 函数执行结果 Result *Result `json:"Result,omitnil,omitempty" name:"Result"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type K8SToleration ¶ added in v1.0.705
type K8SToleration struct { // 匹配的污点名 Key *string `json:"Key,omitnil,omitempty" name:"Key"` // 匹配方式,默认值为: Equal // 注意:此字段可能返回 null,表示取不到有效值。 Operator *string `json:"Operator,omitnil,omitempty" name:"Operator"` // 执行策略 // 注意:此字段可能返回 null,表示取不到有效值。 Effect *string `json:"Effect,omitnil,omitempty" name:"Effect"` // 匹配的污点值,当Operator为Equal时必填 // 注意:此字段可能返回 null,表示取不到有效值。 Value *string `json:"Value,omitnil,omitempty" name:"Value"` // 当污点不被容忍时,Pod还能在节点上运行多久 // 注意:此字段可能返回 null,表示取不到有效值。 TolerationSeconds *uint64 `json:"TolerationSeconds,omitnil,omitempty" name:"TolerationSeconds"` }
type LayerVersionInfo ¶
type LayerVersionInfo struct { // 版本适用的运行时 // 注意:此字段可能返回 null,表示取不到有效值。 CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitnil,omitempty" name:"CompatibleRuntimes"` // 创建时间 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 版本描述 // 注意:此字段可能返回 null,表示取不到有效值。 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 许可证信息 // 注意:此字段可能返回 null,表示取不到有效值。 LicenseInfo *string `json:"LicenseInfo,omitnil,omitempty" name:"LicenseInfo"` // 版本号 LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"` // 层名称 LayerName *string `json:"LayerName,omitnil,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,omitnil,omitempty" name:"Status"` // Stamp // 注意:此字段可能返回 null,表示取不到有效值。 Stamp *string `json:"Stamp,omitnil,omitempty" name:"Stamp"` }
type LayerVersionSimple ¶
type LimitsInfo ¶
type LimitsInfo struct { // 命名空间个数限制 NamespacesCount *int64 `json:"NamespacesCount,omitnil,omitempty" name:"NamespacesCount"` // 命名空间限制信息 Namespace []*NamespaceLimit `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
type ListAliasesRequest ¶
type ListAliasesRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 如果提供此参数,则只返回与该函数版本有关联的别名 FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 数据偏移量,默认值为 0 Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20 Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"` }
func NewListAliasesRequest ¶
func NewListAliasesRequest() (request *ListAliasesRequest)
func (*ListAliasesRequest) FromJsonString ¶
func (r *ListAliasesRequest) FromJsonString(s string) error
FromJsonString 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 ListAliasesRequestParams ¶ added in v1.0.426
type ListAliasesRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 如果提供此参数,则只返回与该函数版本有关联的别名 FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 数据偏移量,默认值为 0 Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20 Limit *string `json:"Limit,omitnil,omitempty" name:"Limit"` }
Predefined struct for user
type ListAliasesResponse ¶
type ListAliasesResponse struct { *tchttp.BaseResponse Response *ListAliasesResponseParams `json:"Response"` }
func NewListAliasesResponse ¶
func NewListAliasesResponse() (response *ListAliasesResponse)
func (*ListAliasesResponse) FromJsonString ¶
func (r *ListAliasesResponse) FromJsonString(s string) error
FromJsonString 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 ListAliasesResponseParams ¶ added in v1.0.426
type ListAliasesResponseParams struct { // 别名列表 Aliases []*Alias `json:"Aliases,omitnil,omitempty" name:"Aliases"` // 别名总数 // 注意:此字段可能返回 null,表示取不到有效值。 TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ListAsyncEventsRequest ¶
type ListAsyncEventsRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 过滤条件,函数版本 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 过滤条件,调用类型列表 InvokeType []*string `json:"InvokeType,omitnil,omitempty" name:"InvokeType"` // 过滤条件,事件状态列表 Status []*string `json:"Status,omitnil,omitempty" name:"Status"` // 过滤条件,开始执行时间左闭右开区间 StartTimeInterval *TimeInterval `json:"StartTimeInterval,omitnil,omitempty" name:"StartTimeInterval"` // 过滤条件,结束执行时间左闭右开区间 EndTimeInterval *TimeInterval `json:"EndTimeInterval,omitnil,omitempty" name:"EndTimeInterval"` // 可选值 ASC 和 DESC,默认 DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 可选值 StartTime 和 EndTime,默认值 StartTime Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"` // 数据偏移量,默认值为 0 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20,最大值 100 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 过滤条件,事件调用请求id InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"` }
func NewListAsyncEventsRequest ¶
func NewListAsyncEventsRequest() (request *ListAsyncEventsRequest)
func (*ListAsyncEventsRequest) FromJsonString ¶
func (r *ListAsyncEventsRequest) FromJsonString(s string) error
FromJsonString 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 ListAsyncEventsRequestParams ¶ added in v1.0.426
type ListAsyncEventsRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 过滤条件,函数版本 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 过滤条件,调用类型列表 InvokeType []*string `json:"InvokeType,omitnil,omitempty" name:"InvokeType"` // 过滤条件,事件状态列表 Status []*string `json:"Status,omitnil,omitempty" name:"Status"` // 过滤条件,开始执行时间左闭右开区间 StartTimeInterval *TimeInterval `json:"StartTimeInterval,omitnil,omitempty" name:"StartTimeInterval"` // 过滤条件,结束执行时间左闭右开区间 EndTimeInterval *TimeInterval `json:"EndTimeInterval,omitnil,omitempty" name:"EndTimeInterval"` // 可选值 ASC 和 DESC,默认 DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 可选值 StartTime 和 EndTime,默认值 StartTime Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"` // 数据偏移量,默认值为 0 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20,最大值 100 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 过滤条件,事件调用请求id InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"` }
Predefined struct for user
type ListAsyncEventsResponse ¶
type ListAsyncEventsResponse struct { *tchttp.BaseResponse Response *ListAsyncEventsResponseParams `json:"Response"` }
func NewListAsyncEventsResponse ¶
func NewListAsyncEventsResponse() (response *ListAsyncEventsResponse)
func (*ListAsyncEventsResponse) FromJsonString ¶
func (r *ListAsyncEventsResponse) FromJsonString(s string) error
FromJsonString 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 ListAsyncEventsResponseParams ¶ added in v1.0.426
type ListAsyncEventsResponseParams struct { // 满足过滤条件的事件总数 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 异步事件列表 EventList []*AsyncEvent `json:"EventList,omitnil,omitempty" name:"EventList"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ListFunctionsRequest ¶
type ListFunctionsRequest struct { *tchttp.BaseRequest // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime, FunctionName Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"` // 数据偏移量,默认值为 0 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 支持FunctionName模糊匹配 SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数描述,支持模糊搜索 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 过滤条件。 // - tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。 // // 每次请求的Filters的上限为10,Filter.Values的上限为5。 Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` }
func NewListFunctionsRequest ¶
func NewListFunctionsRequest() (request *ListFunctionsRequest)
func (*ListFunctionsRequest) FromJsonString ¶
func (r *ListFunctionsRequest) FromJsonString(s string) error
FromJsonString 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 ListFunctionsRequestParams ¶ added in v1.0.426
type ListFunctionsRequestParams struct { // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime, FunctionName Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"` // 数据偏移量,默认值为 0 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 支持FunctionName模糊匹配 SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数描述,支持模糊搜索 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 过滤条件。 // - tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。 // // 每次请求的Filters的上限为10,Filter.Values的上限为5。 Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` }
Predefined struct for user
type ListFunctionsResponse ¶
type ListFunctionsResponse struct { *tchttp.BaseResponse Response *ListFunctionsResponseParams `json:"Response"` }
func NewListFunctionsResponse ¶
func NewListFunctionsResponse() (response *ListFunctionsResponse)
func (*ListFunctionsResponse) FromJsonString ¶
func (r *ListFunctionsResponse) FromJsonString(s string) error
FromJsonString 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 ListFunctionsResponseParams ¶ added in v1.0.426
type ListFunctionsResponseParams struct { // 函数列表 Functions []*Function `json:"Functions,omitnil,omitempty" name:"Functions"` // 总数 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ListLayerVersionsRequest ¶
type ListLayerVersionsRequest struct { *tchttp.BaseRequest // 层名称 LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"` // 适配的运行时 CompatibleRuntime []*string `json:"CompatibleRuntime,omitnil,omitempty" name:"CompatibleRuntime"` }
func NewListLayerVersionsRequest ¶
func NewListLayerVersionsRequest() (request *ListLayerVersionsRequest)
func (*ListLayerVersionsRequest) FromJsonString ¶
func (r *ListLayerVersionsRequest) FromJsonString(s string) error
FromJsonString 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 ListLayerVersionsRequestParams ¶ added in v1.0.426
type ListLayerVersionsRequestParams struct { // 层名称 LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"` // 适配的运行时 CompatibleRuntime []*string `json:"CompatibleRuntime,omitnil,omitempty" name:"CompatibleRuntime"` }
Predefined struct for user
type ListLayerVersionsResponse ¶
type ListLayerVersionsResponse struct { *tchttp.BaseResponse Response *ListLayerVersionsResponseParams `json:"Response"` }
func NewListLayerVersionsResponse ¶
func NewListLayerVersionsResponse() (response *ListLayerVersionsResponse)
func (*ListLayerVersionsResponse) FromJsonString ¶
func (r *ListLayerVersionsResponse) FromJsonString(s string) error
FromJsonString 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 ListLayerVersionsResponseParams ¶ added in v1.0.426
type ListLayerVersionsResponseParams struct { // 层版本列表 LayerVersions []*LayerVersionInfo `json:"LayerVersions,omitnil,omitempty" name:"LayerVersions"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ListLayersRequest ¶
type ListLayersRequest struct { *tchttp.BaseRequest // 适配的运行时 CompatibleRuntime *string `json:"CompatibleRuntime,omitnil,omitempty" name:"CompatibleRuntime"` // 偏移位置 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 查询数目限制 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 查询key,模糊匹配名称 SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"` }
func NewListLayersRequest ¶
func NewListLayersRequest() (request *ListLayersRequest)
func (*ListLayersRequest) FromJsonString ¶
func (r *ListLayersRequest) FromJsonString(s string) error
FromJsonString 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 ListLayersRequestParams ¶ added in v1.0.426
type ListLayersRequestParams struct { // 适配的运行时 CompatibleRuntime *string `json:"CompatibleRuntime,omitnil,omitempty" name:"CompatibleRuntime"` // 偏移位置 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 查询数目限制 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 查询key,模糊匹配名称 SearchKey *string `json:"SearchKey,omitnil,omitempty" name:"SearchKey"` }
Predefined struct for user
type ListLayersResponse ¶
type ListLayersResponse struct { *tchttp.BaseResponse Response *ListLayersResponseParams `json:"Response"` }
func NewListLayersResponse ¶
func NewListLayersResponse() (response *ListLayersResponse)
func (*ListLayersResponse) FromJsonString ¶
func (r *ListLayersResponse) FromJsonString(s string) error
FromJsonString 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 ListLayersResponseParams ¶ added in v1.0.426
type ListLayersResponseParams struct { // 层列表 Layers []*LayerVersionInfo `json:"Layers,omitnil,omitempty" name:"Layers"` // 层总数 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ListNamespacesRequest ¶
type ListNamespacesRequest struct { *tchttp.BaseRequest // 返回数据长度,默认值为 20 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 数据的偏移量,默认值为 0 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 根据哪个字段进行返回结果排序,支持以下字段:Name,Updatetime Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"` // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 关键字匹配搜索,Key 可选值为 Namespace 和 Description,多个搜索条件之间是与的关系 SearchKey []*SearchKey `json:"SearchKey,omitnil,omitempty" name:"SearchKey"` }
func NewListNamespacesRequest ¶
func NewListNamespacesRequest() (request *ListNamespacesRequest)
func (*ListNamespacesRequest) FromJsonString ¶
func (r *ListNamespacesRequest) FromJsonString(s string) error
FromJsonString 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 ListNamespacesRequestParams ¶ added in v1.0.426
type ListNamespacesRequestParams struct { // 返回数据长度,默认值为 20 Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 数据的偏移量,默认值为 0 Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 根据哪个字段进行返回结果排序,支持以下字段:Name,Updatetime Orderby *string `json:"Orderby,omitnil,omitempty" name:"Orderby"` // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 关键字匹配搜索,Key 可选值为 Namespace 和 Description,多个搜索条件之间是与的关系 SearchKey []*SearchKey `json:"SearchKey,omitnil,omitempty" name:"SearchKey"` }
Predefined struct for user
type ListNamespacesResponse ¶
type ListNamespacesResponse struct { *tchttp.BaseResponse Response *ListNamespacesResponseParams `json:"Response"` }
func NewListNamespacesResponse ¶
func NewListNamespacesResponse() (response *ListNamespacesResponse)
func (*ListNamespacesResponse) FromJsonString ¶
func (r *ListNamespacesResponse) FromJsonString(s string) error
FromJsonString 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 ListNamespacesResponseParams ¶ added in v1.0.426
type ListNamespacesResponseParams struct { // namespace详情 Namespaces []*Namespace `json:"Namespaces,omitnil,omitempty" name:"Namespaces"` // 返回的namespace数量 TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ListTriggersRequest ¶
type ListTriggersRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 命名空间,默认是default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 数据偏移量,默认值为 0 Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20 Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 根据哪个字段进行返回结果排序,支持以下字段:add_time,mod_time,默认mod_time OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"` // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC,默认DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // * Qualifier: 函数版本,别名 // * TriggerName: 函数触发器名称 // * Description: 函数触发器描述 Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` }
func NewListTriggersRequest ¶
func NewListTriggersRequest() (request *ListTriggersRequest)
func (*ListTriggersRequest) FromJsonString ¶
func (r *ListTriggersRequest) FromJsonString(s string) error
FromJsonString 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 ListTriggersRequestParams ¶ added in v1.0.426
type ListTriggersRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 命名空间,默认是default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 数据偏移量,默认值为 0 Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20 Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 根据哪个字段进行返回结果排序,支持以下字段:add_time,mod_time,默认mod_time OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"` // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC,默认DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // * Qualifier: 函数版本,别名 // * TriggerName: 函数触发器名称 // * Description: 函数触发器描述 Filters []*Filter `json:"Filters,omitnil,omitempty" name:"Filters"` }
Predefined struct for user
type ListTriggersResponse ¶
type ListTriggersResponse struct { *tchttp.BaseResponse Response *ListTriggersResponseParams `json:"Response"` }
func NewListTriggersResponse ¶
func NewListTriggersResponse() (response *ListTriggersResponse)
func (*ListTriggersResponse) FromJsonString ¶
func (r *ListTriggersResponse) FromJsonString(s string) error
FromJsonString 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 ListTriggersResponseParams ¶ added in v1.0.426
type ListTriggersResponseParams struct { // 触发器总数 TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 触发器列表 Triggers []*TriggerInfo `json:"Triggers,omitnil,omitempty" name:"Triggers"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type ListVersionByFunctionRequest ¶
type ListVersionByFunctionRequest struct { *tchttp.BaseRequest // 函数名 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所在命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 数据偏移量,默认值为 0 Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20 Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"` }
func NewListVersionByFunctionRequest ¶
func NewListVersionByFunctionRequest() (request *ListVersionByFunctionRequest)
func (*ListVersionByFunctionRequest) FromJsonString ¶
func (r *ListVersionByFunctionRequest) FromJsonString(s string) error
FromJsonString 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 ListVersionByFunctionRequestParams ¶ added in v1.0.426
type ListVersionByFunctionRequestParams struct { // 函数名 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所在命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 数据偏移量,默认值为 0 Offset *uint64 `json:"Offset,omitnil,omitempty" name:"Offset"` // 返回数据长度,默认值为 20 Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC Order *string `json:"Order,omitnil,omitempty" name:"Order"` // 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime OrderBy *string `json:"OrderBy,omitnil,omitempty" name:"OrderBy"` }
Predefined struct for user
type ListVersionByFunctionResponse ¶
type ListVersionByFunctionResponse struct { *tchttp.BaseResponse Response *ListVersionByFunctionResponseParams `json:"Response"` }
func NewListVersionByFunctionResponse ¶
func NewListVersionByFunctionResponse() (response *ListVersionByFunctionResponse)
func (*ListVersionByFunctionResponse) FromJsonString ¶
func (r *ListVersionByFunctionResponse) FromJsonString(s string) error
FromJsonString 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 ListVersionByFunctionResponseParams ¶ added in v1.0.426
type ListVersionByFunctionResponseParams struct { // 函数版本。 FunctionVersion []*string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 函数版本列表。 // 注意:此字段可能返回 null,表示取不到有效值。 Versions []*FunctionVersion `json:"Versions,omitnil,omitempty" name:"Versions"` // 函数版本总数。 // 注意:此字段可能返回 null,表示取不到有效值。 TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type LogFilter ¶
type LogFilter struct { // filter.RetCode的取值有: // not0 表示只返回错误日志, // is0 表示只返回正确日志, // TimeLimitExceeded 返回函数调用发生超时的日志, // ResourceLimitExceeded 返回函数调用发生资源超限的日志, // UserCodeException 返回函数调用发生用户代码错误的日志, // 无输入则返回所有日志。 RetCode *string `json:"RetCode,omitnil,omitempty" name:"RetCode"` }
type LogSearchContext ¶
type LogSearchContext struct { // 偏移量 Offset *string `json:"Offset,omitnil,omitempty" name:"Offset"` // 日志条数 Limit *uint64 `json:"Limit,omitnil,omitempty" name:"Limit"` // 日志关键词 Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"` // 日志类型,支持Application和Platform,默认为Application Type *string `json:"Type,omitnil,omitempty" name:"Type"` }
type Namespace ¶
type Namespace struct { // 命名空间创建时间 ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"` // 命名空间修改时间 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 命名空间描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 命名空间名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 默认default,TCB表示是小程序云开发创建的 Type *string `json:"Type,omitnil,omitempty" name:"Type"` }
type NamespaceLimit ¶
type NamespaceLimit struct { // 函数总数 FunctionsCount *int64 `json:"FunctionsCount,omitnil,omitempty" name:"FunctionsCount"` // Trigger信息 Trigger *TriggerCount `json:"Trigger,omitnil,omitempty" name:"Trigger"` // Namespace名称 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 并发量 ConcurrentExecutions *int64 `json:"ConcurrentExecutions,omitnil,omitempty" name:"ConcurrentExecutions"` // Timeout限制 TimeoutLimit *int64 `json:"TimeoutLimit,omitnil,omitempty" name:"TimeoutLimit"` // 测试事件限制 // 注意:此字段可能返回 null,表示取不到有效值。 TestModelLimit *int64 `json:"TestModelLimit,omitnil,omitempty" name:"TestModelLimit"` // 初始化超时限制 InitTimeoutLimit *int64 `json:"InitTimeoutLimit,omitnil,omitempty" name:"InitTimeoutLimit"` // 异步重试次数限制 RetryNumLimit *int64 `json:"RetryNumLimit,omitnil,omitempty" name:"RetryNumLimit"` // 异步重试消息保留时间下限 MinMsgTTL *int64 `json:"MinMsgTTL,omitnil,omitempty" name:"MinMsgTTL"` // 异步重试消息保留时间上限 MaxMsgTTL *int64 `json:"MaxMsgTTL,omitnil,omitempty" name:"MaxMsgTTL"` }
type NamespaceResourceEnv ¶ added in v1.0.705
type NamespaceResourceEnv struct { // 基于TKE集群的资源池 // 注意:此字段可能返回 null,表示取不到有效值。 TKE *NamespaceResourceEnvTKE `json:"TKE,omitnil,omitempty" name:"TKE"` }
type NamespaceResourceEnvTKE ¶ added in v1.0.705
type NamespaceResourceEnvTKE struct { // 集群ID ClusterID *string `json:"ClusterID,omitnil,omitempty" name:"ClusterID"` // 子网ID SubnetID *string `json:"SubnetID,omitnil,omitempty" name:"SubnetID"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 数据存储地址 // 注意:此字段可能返回 null,表示取不到有效值。 DataPath *string `json:"DataPath,omitnil,omitempty" name:"DataPath"` // node选择器 // 注意:此字段可能返回 null,表示取不到有效值。 NodeSelector []*K8SLabel `json:"NodeSelector,omitnil,omitempty" name:"NodeSelector"` // 污点容忍 // 注意:此字段可能返回 null,表示取不到有效值。 Tolerations []*K8SToleration `json:"Tolerations,omitnil,omitempty" name:"Tolerations"` // scf组件将占用的节点端口起始号 // 注意:此字段可能返回 null,表示取不到有效值。 Port *uint64 `json:"Port,omitnil,omitempty" name:"Port"` // yaml格式的pod patch内容,例如 // metadata: // labels: // key: value // 注意:此字段可能返回 null,表示取不到有效值。 PodTemplatePatch *string `json:"PodTemplatePatch,omitnil,omitempty" name:"PodTemplatePatch"` }
type NamespaceUsage ¶
type NamespaceUsage struct { // 函数数组 Functions []*string `json:"Functions,omitnil,omitempty" name:"Functions"` // 命名空间名称 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 命名空间函数个数 FunctionsCount *int64 `json:"FunctionsCount,omitnil,omitempty" name:"FunctionsCount"` // 命名空间配额总量 // 注意:此字段可能返回 null,表示取不到有效值。 TotalConcurrencyMem *int64 `json:"TotalConcurrencyMem,omitnil,omitempty" name:"TotalConcurrencyMem"` // 命名空间并发使用量 // 注意:此字段可能返回 null,表示取不到有效值。 TotalAllocatedConcurrencyMem *int64 `json:"TotalAllocatedConcurrencyMem,omitnil,omitempty" name:"TotalAllocatedConcurrencyMem"` // 命名空间预置使用量 // 注意:此字段可能返回 null,表示取不到有效值。 TotalAllocatedProvisionedMem *int64 `json:"TotalAllocatedProvisionedMem,omitnil,omitempty" name:"TotalAllocatedProvisionedMem"` }
type ProtocolParams ¶ added in v1.0.286
type ProtocolParams struct { // WebSockets协议支持的参数 // 注意:此字段可能返回 null,表示取不到有效值。 WSParams *WSParams `json:"WSParams,omitnil,omitempty" name:"WSParams"` }
type PublicNetConfigIn ¶
type PublicNetConfigIn struct { // 是否开启公网访问能力取值['DISABLE','ENABLE'] PublicNetStatus *string `json:"PublicNetStatus,omitnil,omitempty" name:"PublicNetStatus"` // Eip配置 EipConfig *EipConfigIn `json:"EipConfig,omitnil,omitempty" name:"EipConfig"` }
type PublicNetConfigOut ¶
type PublicNetConfigOut struct { // 是否开启公网访问能力取值['DISABLE','ENABLE'] PublicNetStatus *string `json:"PublicNetStatus,omitnil,omitempty" name:"PublicNetStatus"` // Eip配置 EipConfig *EipConfigOut `json:"EipConfig,omitnil,omitempty" name:"EipConfig"` }
type PublishLayerVersionRequest ¶
type PublishLayerVersionRequest struct { *tchttp.BaseRequest // 层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64 LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"` // 层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。 CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitnil,omitempty" name:"CompatibleRuntimes"` // 层的文件来源或文件内容 Content *Code `json:"Content,omitnil,omitempty" name:"Content"` // 层的版本的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 层的软件许可证 LicenseInfo *string `json:"LicenseInfo,omitnil,omitempty" name:"LicenseInfo"` }
func NewPublishLayerVersionRequest ¶
func NewPublishLayerVersionRequest() (request *PublishLayerVersionRequest)
func (*PublishLayerVersionRequest) FromJsonString ¶
func (r *PublishLayerVersionRequest) FromJsonString(s string) error
FromJsonString 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 PublishLayerVersionRequestParams ¶ added in v1.0.426
type PublishLayerVersionRequestParams struct { // 层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64 LayerName *string `json:"LayerName,omitnil,omitempty" name:"LayerName"` // 层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。 CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitnil,omitempty" name:"CompatibleRuntimes"` // 层的文件来源或文件内容 Content *Code `json:"Content,omitnil,omitempty" name:"Content"` // 层的版本的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 层的软件许可证 LicenseInfo *string `json:"LicenseInfo,omitnil,omitempty" name:"LicenseInfo"` }
Predefined struct for user
type PublishLayerVersionResponse ¶
type PublishLayerVersionResponse struct { *tchttp.BaseResponse Response *PublishLayerVersionResponseParams `json:"Response"` }
func NewPublishLayerVersionResponse ¶
func NewPublishLayerVersionResponse() (response *PublishLayerVersionResponse)
func (*PublishLayerVersionResponse) FromJsonString ¶
func (r *PublishLayerVersionResponse) FromJsonString(s string) error
FromJsonString 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 PublishLayerVersionResponseParams ¶ added in v1.0.426
type PublishLayerVersionResponseParams struct { // 本次创建的层的版本号 LayerVersion *int64 `json:"LayerVersion,omitnil,omitempty" name:"LayerVersion"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type PublishVersionRequest ¶
type PublishVersionRequest struct { *tchttp.BaseRequest // 发布函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewPublishVersionRequest ¶
func NewPublishVersionRequest() (request *PublishVersionRequest)
func (*PublishVersionRequest) FromJsonString ¶
func (r *PublishVersionRequest) FromJsonString(s string) error
FromJsonString 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 PublishVersionRequestParams ¶ added in v1.0.426
type PublishVersionRequestParams struct { // 发布函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type PublishVersionResponse ¶
type PublishVersionResponse struct { *tchttp.BaseResponse Response *PublishVersionResponseParams `json:"Response"` }
func NewPublishVersionResponse ¶
func NewPublishVersionResponse() (response *PublishVersionResponse)
func (*PublishVersionResponse) FromJsonString ¶
func (r *PublishVersionResponse) FromJsonString(s string) error
FromJsonString 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 PublishVersionResponseParams ¶ added in v1.0.426
type PublishVersionResponseParams struct { // 函数的版本 FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 代码大小 CodeSize *int64 `json:"CodeSize,omitnil,omitempty" name:"CodeSize"` // 最大可用内存 MemorySize *int64 `json:"MemorySize,omitnil,omitempty" name:"MemorySize"` // 函数的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 函数的入口 Handler *string `json:"Handler,omitnil,omitempty" name:"Handler"` // 函数的超时时间 Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"` // 函数的运行环境 // 注意:此字段可能返回 null,表示取不到有效值。 Runtime *string `json:"Runtime,omitnil,omitempty" name:"Runtime"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type PutProvisionedConcurrencyConfigRequest ¶
type PutProvisionedConcurrencyConfigRequest struct { *tchttp.BaseRequest // 需要设置预置并发的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的版本号,注:$LATEST版本不支持预置并发 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 预置并发数量,注:所有版本的预置并发数总和存在上限限制,当前的上限是:函数最大并发配额 - 100 VersionProvisionedConcurrencyNum *uint64 `json:"VersionProvisionedConcurrencyNum,omitnil,omitempty" name:"VersionProvisionedConcurrencyNum"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 定时预置任务 TriggerActions []*TriggerAction `json:"TriggerActions,omitnil,omitempty" name:"TriggerActions"` // 预置类型, // 静态预置:Default // 动态追踪并发利用率指标预置:ConcurrencyUtilizationTracking // 预置类型二选一,设置静态预置时可以设置VersionProvisionedConcurrencyNum。 // // 动态利用率预置可以设置TrackingTarget,MinCapacity,MaxCapacity,保持向后兼容性此时VersionProvisionedConcurrencyNum设置为0. ProvisionedType *string `json:"ProvisionedType,omitnil,omitempty" name:"ProvisionedType"` // 指标追踪的并发利用率。设置范围(0,1) TrackingTarget *float64 `json:"TrackingTarget,omitnil,omitempty" name:"TrackingTarget"` // 缩容时的最小值, 最小值为1 MinCapacity *uint64 `json:"MinCapacity,omitnil,omitempty" name:"MinCapacity"` // 扩容时的最大值 MaxCapacity *uint64 `json:"MaxCapacity,omitnil,omitempty" name:"MaxCapacity"` }
func NewPutProvisionedConcurrencyConfigRequest ¶
func NewPutProvisionedConcurrencyConfigRequest() (request *PutProvisionedConcurrencyConfigRequest)
func (*PutProvisionedConcurrencyConfigRequest) FromJsonString ¶
func (r *PutProvisionedConcurrencyConfigRequest) FromJsonString(s string) error
FromJsonString 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 PutProvisionedConcurrencyConfigRequestParams ¶ added in v1.0.426
type PutProvisionedConcurrencyConfigRequestParams struct { // 需要设置预置并发的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数的版本号,注:$LATEST版本不支持预置并发 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 预置并发数量,注:所有版本的预置并发数总和存在上限限制,当前的上限是:函数最大并发配额 - 100 VersionProvisionedConcurrencyNum *uint64 `json:"VersionProvisionedConcurrencyNum,omitnil,omitempty" name:"VersionProvisionedConcurrencyNum"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 定时预置任务 TriggerActions []*TriggerAction `json:"TriggerActions,omitnil,omitempty" name:"TriggerActions"` // 预置类型, // 静态预置:Default // 动态追踪并发利用率指标预置:ConcurrencyUtilizationTracking // 预置类型二选一,设置静态预置时可以设置VersionProvisionedConcurrencyNum。 // // 动态利用率预置可以设置TrackingTarget,MinCapacity,MaxCapacity,保持向后兼容性此时VersionProvisionedConcurrencyNum设置为0. ProvisionedType *string `json:"ProvisionedType,omitnil,omitempty" name:"ProvisionedType"` // 指标追踪的并发利用率。设置范围(0,1) TrackingTarget *float64 `json:"TrackingTarget,omitnil,omitempty" name:"TrackingTarget"` // 缩容时的最小值, 最小值为1 MinCapacity *uint64 `json:"MinCapacity,omitnil,omitempty" name:"MinCapacity"` // 扩容时的最大值 MaxCapacity *uint64 `json:"MaxCapacity,omitnil,omitempty" name:"MaxCapacity"` }
Predefined struct for user
type PutProvisionedConcurrencyConfigResponse ¶
type PutProvisionedConcurrencyConfigResponse struct { *tchttp.BaseResponse Response *PutProvisionedConcurrencyConfigResponseParams `json:"Response"` }
func NewPutProvisionedConcurrencyConfigResponse ¶
func NewPutProvisionedConcurrencyConfigResponse() (response *PutProvisionedConcurrencyConfigResponse)
func (*PutProvisionedConcurrencyConfigResponse) FromJsonString ¶
func (r *PutProvisionedConcurrencyConfigResponse) FromJsonString(s string) error
FromJsonString 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 PutProvisionedConcurrencyConfigResponseParams ¶ added in v1.0.426
type PutProvisionedConcurrencyConfigResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type PutReservedConcurrencyConfigRequest ¶
type PutReservedConcurrencyConfigRequest struct { *tchttp.BaseRequest // 需要设置最大独占配额的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数最大独占配额,注:函数的最大独占配额内存总和上限:用户总并发内存配额 - 12800 ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitnil,omitempty" name:"ReservedConcurrencyMem"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewPutReservedConcurrencyConfigRequest ¶
func NewPutReservedConcurrencyConfigRequest() (request *PutReservedConcurrencyConfigRequest)
func (*PutReservedConcurrencyConfigRequest) FromJsonString ¶
func (r *PutReservedConcurrencyConfigRequest) FromJsonString(s string) error
FromJsonString 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 PutReservedConcurrencyConfigRequestParams ¶ added in v1.0.426
type PutReservedConcurrencyConfigRequestParams struct { // 需要设置最大独占配额的函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数最大独占配额,注:函数的最大独占配额内存总和上限:用户总并发内存配额 - 12800 ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitnil,omitempty" name:"ReservedConcurrencyMem"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type PutReservedConcurrencyConfigResponse ¶
type PutReservedConcurrencyConfigResponse struct { *tchttp.BaseResponse Response *PutReservedConcurrencyConfigResponseParams `json:"Response"` }
func NewPutReservedConcurrencyConfigResponse ¶
func NewPutReservedConcurrencyConfigResponse() (response *PutReservedConcurrencyConfigResponse)
func (*PutReservedConcurrencyConfigResponse) FromJsonString ¶
func (r *PutReservedConcurrencyConfigResponse) FromJsonString(s string) error
FromJsonString 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 PutReservedConcurrencyConfigResponseParams ¶ added in v1.0.426
type PutReservedConcurrencyConfigResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type PutTotalConcurrencyConfigRequest ¶
type PutTotalConcurrencyConfigRequest struct { *tchttp.BaseRequest // 账号并发内存配额,注:账号并发内存配额下限:用户已用并发内存总额 + 12800 TotalConcurrencyMem *uint64 `json:"TotalConcurrencyMem,omitnil,omitempty" name:"TotalConcurrencyMem"` // 命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewPutTotalConcurrencyConfigRequest ¶
func NewPutTotalConcurrencyConfigRequest() (request *PutTotalConcurrencyConfigRequest)
func (*PutTotalConcurrencyConfigRequest) FromJsonString ¶
func (r *PutTotalConcurrencyConfigRequest) FromJsonString(s string) error
FromJsonString 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 PutTotalConcurrencyConfigRequestParams ¶ added in v1.0.426
type PutTotalConcurrencyConfigRequestParams struct { // 账号并发内存配额,注:账号并发内存配额下限:用户已用并发内存总额 + 12800 TotalConcurrencyMem *uint64 `json:"TotalConcurrencyMem,omitnil,omitempty" name:"TotalConcurrencyMem"` // 命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type PutTotalConcurrencyConfigResponse ¶
type PutTotalConcurrencyConfigResponse struct { *tchttp.BaseResponse Response *PutTotalConcurrencyConfigResponseParams `json:"Response"` }
func NewPutTotalConcurrencyConfigResponse ¶
func NewPutTotalConcurrencyConfigResponse() (response *PutTotalConcurrencyConfigResponse)
func (*PutTotalConcurrencyConfigResponse) FromJsonString ¶
func (r *PutTotalConcurrencyConfigResponse) FromJsonString(s string) error
FromJsonString 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 PutTotalConcurrencyConfigResponseParams ¶ added in v1.0.426
type PutTotalConcurrencyConfigResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type RequestStatus ¶ added in v1.0.304
type RequestStatus struct { // 函数的名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数执行完成后的返回值 RetMsg *string `json:"RetMsg,omitnil,omitempty" name:"RetMsg"` // 查询的请求 id RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` // 请求开始时间 StartTime *string `json:"StartTime,omitnil,omitempty" name:"StartTime"` // 请求执行结果, 0 表示执行成功,1表示运行中,-1 表示执行异常。 RetCode *int64 `json:"RetCode,omitnil,omitempty" name:"RetCode"` // 请求运行耗时,单位:ms Duration *float64 `json:"Duration,omitnil,omitempty" name:"Duration"` // 请求消耗内存,单位为 MB MemUsage *float64 `json:"MemUsage,omitnil,omitempty" name:"MemUsage"` // 重试次数 RetryNum *int64 `json:"RetryNum,omitnil,omitempty" name:"RetryNum"` }
type Result ¶
type Result struct { // 表示执行过程中的日志输出,异步调用返回为空 Log *string `json:"Log,omitnil,omitempty" name:"Log"` // 表示执行函数的返回,异步调用返回为空 RetMsg *string `json:"RetMsg,omitnil,omitempty" name:"RetMsg"` // 表示执行函数的错误返回信息,异步调用返回为空 ErrMsg *string `json:"ErrMsg,omitnil,omitempty" name:"ErrMsg"` // 执行函数时的内存大小,单位为Byte,异步调用返回为空 MemUsage *int64 `json:"MemUsage,omitnil,omitempty" name:"MemUsage"` // 表示执行函数的耗时,单位是毫秒,异步调用返回为空 Duration *float64 `json:"Duration,omitnil,omitempty" name:"Duration"` // 表示函数的计费耗时,单位是毫秒,异步调用返回为空 BillDuration *int64 `json:"BillDuration,omitnil,omitempty" name:"BillDuration"` // 此次函数执行的Id FunctionRequestId *string `json:"FunctionRequestId,omitnil,omitempty" name:"FunctionRequestId"` // 请求 Invoke 接口,该参数已弃用。请求 InvokeFunction 接口,该参数值为请求执行[状态码](https://cloud.tencent.com/document/product/583/42611)。 InvokeResult *int64 `json:"InvokeResult,omitnil,omitempty" name:"InvokeResult"` }
type RetryConfig ¶
type RetryConfig struct { // 重试次数 RetryNum *int64 `json:"RetryNum,omitnil,omitempty" name:"RetryNum"` }
type RoutingConfig ¶
type RoutingConfig struct { // 随机权重路由附加版本 AdditionalVersionWeights []*VersionWeight `json:"AdditionalVersionWeights,omitnil,omitempty" name:"AdditionalVersionWeights"` // 规则路由附加版本 AddtionVersionMatchs []*VersionMatch `json:"AddtionVersionMatchs,omitnil,omitempty" name:"AddtionVersionMatchs"` }
type StatusReason ¶
type TerminateAsyncEventRequest ¶
type TerminateAsyncEventRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 终止的调用请求id InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // true,向指定请求[发送 SIGTERM 终止信号](https://cloud.tencent.com/document/product/583/63969#.E5.8F.91.E9.80.81.E7.BB.88.E6.AD.A2.E4.BF.A1.E5.8F.B7], ,默认值为 false。 GraceShutdown *bool `json:"GraceShutdown,omitnil,omitempty" name:"GraceShutdown"` }
func NewTerminateAsyncEventRequest ¶
func NewTerminateAsyncEventRequest() (request *TerminateAsyncEventRequest)
func (*TerminateAsyncEventRequest) FromJsonString ¶
func (r *TerminateAsyncEventRequest) FromJsonString(s string) error
FromJsonString 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 TerminateAsyncEventRequestParams ¶ added in v1.0.426
type TerminateAsyncEventRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 终止的调用请求id InvokeRequestId *string `json:"InvokeRequestId,omitnil,omitempty" name:"InvokeRequestId"` // 命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // true,向指定请求[发送 SIGTERM 终止信号](https://cloud.tencent.com/document/product/583/63969#.E5.8F.91.E9.80.81.E7.BB.88.E6.AD.A2.E4.BF.A1.E5.8F.B7], ,默认值为 false。 GraceShutdown *bool `json:"GraceShutdown,omitnil,omitempty" name:"GraceShutdown"` }
Predefined struct for user
type TerminateAsyncEventResponse ¶
type TerminateAsyncEventResponse struct { *tchttp.BaseResponse Response *TerminateAsyncEventResponseParams `json:"Response"` }
func NewTerminateAsyncEventResponse ¶
func NewTerminateAsyncEventResponse() (response *TerminateAsyncEventResponse)
func (*TerminateAsyncEventResponse) FromJsonString ¶
func (r *TerminateAsyncEventResponse) FromJsonString(s string) error
FromJsonString 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 TerminateAsyncEventResponseParams ¶ added in v1.0.426
type TerminateAsyncEventResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type TimeInterval ¶
type Trigger ¶
type Trigger struct { // 触发器最后修改时间 ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"` // 触发器类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 触发器详细配置 TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` // 触发器名称 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 触发器创建时间 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 使能开关 Enable *int64 `json:"Enable,omitnil,omitempty" name:"Enable"` // 客户自定义参数 CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"` // 触发器状态 AvailableStatus *string `json:"AvailableStatus,omitnil,omitempty" name:"AvailableStatus"` // 触发器最小资源ID // // Deprecated: ResourceId is deprecated. ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` // 触发器和云函数绑定状态 // // Deprecated: BindStatus is deprecated. BindStatus *string `json:"BindStatus,omitnil,omitempty" name:"BindStatus"` // 触发器类型,双向表示两侧控制台均可操作,单向表示SCF控制台单向创建 // // Deprecated: TriggerAttribute is deprecated. TriggerAttribute *string `json:"TriggerAttribute,omitnil,omitempty" name:"TriggerAttribute"` // 触发器绑定的别名或版本 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 触发器描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
type TriggerAction ¶ added in v1.0.275
type TriggerAction struct { // 定时预置名称 // 注意:此字段可能返回 null,表示取不到有效值。 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 定时预置并发数量 // 注意:此字段可能返回 null,表示取不到有效值。 TriggerProvisionedConcurrencyNum *uint64 `json:"TriggerProvisionedConcurrencyNum,omitnil,omitempty" name:"TriggerProvisionedConcurrencyNum"` // 设置定时触发器的时间配置,cron表达式。Cron 表达式有七个必需字段,按空格分隔。 // 注意:此字段可能返回 null,表示取不到有效值。 TriggerCronConfig *string `json:"TriggerCronConfig,omitnil,omitempty" name:"TriggerCronConfig"` // 预置类型 Default // 注意:此字段可能返回 null,表示取不到有效值。 ProvisionedType *string `json:"ProvisionedType,omitnil,omitempty" name:"ProvisionedType"` }
type TriggerCount ¶
type TriggerCount struct { // Cos触发器数量 Cos *int64 `json:"Cos,omitnil,omitempty" name:"Cos"` // Timer触发器数量 Timer *int64 `json:"Timer,omitnil,omitempty" name:"Timer"` // Cmq触发器数量 Cmq *int64 `json:"Cmq,omitnil,omitempty" name:"Cmq"` // 触发器总数 Total *int64 `json:"Total,omitnil,omitempty" name:"Total"` // Ckafka触发器数量 Ckafka *int64 `json:"Ckafka,omitnil,omitempty" name:"Ckafka"` // Apigw触发器数量 Apigw *int64 `json:"Apigw,omitnil,omitempty" name:"Apigw"` // Cls触发器数量 Cls *int64 `json:"Cls,omitnil,omitempty" name:"Cls"` // Clb触发器数量 Clb *int64 `json:"Clb,omitnil,omitempty" name:"Clb"` // Mps触发器数量 Mps *int64 `json:"Mps,omitnil,omitempty" name:"Mps"` // Cm触发器数量 Cm *int64 `json:"Cm,omitnil,omitempty" name:"Cm"` // Vod触发器数量 Vod *int64 `json:"Vod,omitnil,omitempty" name:"Vod"` // Eb触发器数量 // 注意:此字段可能返回 null,表示取不到有效值。 Eb *int64 `json:"Eb,omitnil,omitempty" name:"Eb"` }
type TriggerInfo ¶
type TriggerInfo struct { // 使能开关 Enable *uint64 `json:"Enable,omitnil,omitempty" name:"Enable"` // 函数版本或别名 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 触发器名称 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 触发器类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 触发器详细配置 TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` // 触发器是否可用 AvailableStatus *string `json:"AvailableStatus,omitnil,omitempty" name:"AvailableStatus"` // 客户自定义参数 // 注意:此字段可能返回 null,表示取不到有效值。 CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"` // 触发器创建时间 AddTime *string `json:"AddTime,omitnil,omitempty" name:"AddTime"` // 触发器最后修改时间 ModTime *string `json:"ModTime,omitnil,omitempty" name:"ModTime"` // 触发器最小资源ID // // Deprecated: ResourceId is deprecated. ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"` // 触发器和云函数绑定状态 // // Deprecated: BindStatus is deprecated. BindStatus *string `json:"BindStatus,omitnil,omitempty" name:"BindStatus"` // 触发器类型,双向表示两侧控制台均可操作,单向表示SCF控制台单向创建 // // Deprecated: TriggerAttribute is deprecated. TriggerAttribute *string `json:"TriggerAttribute,omitnil,omitempty" name:"TriggerAttribute"` // 客户自定义触发器描述 // 注意:此字段可能返回 null,表示取不到有效值。 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
type UpdateAliasRequest ¶
type UpdateAliasRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 别名的名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 别名指向的主版本 FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 别名的路由信息,需要为别名指定附加版本时,必须提供此参数; 附加版本指的是:除主版本 FunctionVersion 外,为此别名再指定一个函数可正常使用的版本; 这里附加版本中的 Version 值 不能是别名指向的主版本; 要注意的是:如果想要某个版本的流量全部指向这个别名,不需配置此参数; 目前一个别名最多只能指定一个附加版本 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"` // 别名的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
func NewUpdateAliasRequest ¶
func NewUpdateAliasRequest() (request *UpdateAliasRequest)
func (*UpdateAliasRequest) FromJsonString ¶
func (r *UpdateAliasRequest) FromJsonString(s string) error
FromJsonString 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 UpdateAliasRequestParams ¶ added in v1.0.426
type UpdateAliasRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 别名的名称 Name *string `json:"Name,omitnil,omitempty" name:"Name"` // 别名指向的主版本 FunctionVersion *string `json:"FunctionVersion,omitnil,omitempty" name:"FunctionVersion"` // 函数所在的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 别名的路由信息,需要为别名指定附加版本时,必须提供此参数; 附加版本指的是:除主版本 FunctionVersion 外,为此别名再指定一个函数可正常使用的版本; 这里附加版本中的 Version 值 不能是别名指向的主版本; 要注意的是:如果想要某个版本的流量全部指向这个别名,不需配置此参数; 目前一个别名最多只能指定一个附加版本 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitnil,omitempty" name:"RoutingConfig"` // 别名的描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
Predefined struct for user
type UpdateAliasResponse ¶
type UpdateAliasResponse struct { *tchttp.BaseResponse Response *UpdateAliasResponseParams `json:"Response"` }
func NewUpdateAliasResponse ¶
func NewUpdateAliasResponse() (response *UpdateAliasResponse)
func (*UpdateAliasResponse) FromJsonString ¶
func (r *UpdateAliasResponse) FromJsonString(s string) error
FromJsonString 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 UpdateAliasResponseParams ¶ added in v1.0.426
type UpdateAliasResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type UpdateFunctionCodeRequest ¶
type UpdateFunctionCodeRequest struct { *tchttp.BaseRequest // 要修改的函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数处理方法名称。名称格式支持“文件名称.函数名称”形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求 2-60 个字符 Handler *string `json:"Handler,omitnil,omitempty" name:"Handler"` // 对象存储桶名称 CosBucketName *string `json:"CosBucketName,omitnil,omitempty" name:"CosBucketName"` // 对象存储对象路径 CosObjectName *string `json:"CosObjectName,omitnil,omitempty" name:"CosObjectName"` // 包含函数代码文件及其依赖项的 zip 格式文件,使用该接口时要求将 zip 文件的内容转成 base64 编码,最大支持20M ZipFile *string `json:"ZipFile,omitnil,omitempty" name:"ZipFile"` // 函数所属命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 对象存储的地域,注:北京分为ap-beijing和ap-beijing-1 CosBucketRegion *string `json:"CosBucketRegion,omitnil,omitempty" name:"CosBucketRegion"` // 是否自动安装依赖 InstallDependency *string `json:"InstallDependency,omitnil,omitempty" name:"InstallDependency"` // 函数所属环境 EnvId *string `json:"EnvId,omitnil,omitempty" name:"EnvId"` // 在更新时是否同步发布新版本,默认为:FALSE,不发布 Publish *string `json:"Publish,omitnil,omitempty" name:"Publish"` // 函数代码 Code *Code `json:"Code,omitnil,omitempty" name:"Code"` // 代码来源方式,支持 ZipFile, Cos, Inline 之一 CodeSource *string `json:"CodeSource,omitnil,omitempty" name:"CodeSource"` }
func NewUpdateFunctionCodeRequest ¶
func NewUpdateFunctionCodeRequest() (request *UpdateFunctionCodeRequest)
func (*UpdateFunctionCodeRequest) FromJsonString ¶
func (r *UpdateFunctionCodeRequest) FromJsonString(s string) error
FromJsonString 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 UpdateFunctionCodeRequestParams ¶ added in v1.0.426
type UpdateFunctionCodeRequestParams struct { // 要修改的函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数处理方法名称。名称格式支持“文件名称.函数名称”形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求 2-60 个字符 Handler *string `json:"Handler,omitnil,omitempty" name:"Handler"` // 对象存储桶名称 CosBucketName *string `json:"CosBucketName,omitnil,omitempty" name:"CosBucketName"` // 对象存储对象路径 CosObjectName *string `json:"CosObjectName,omitnil,omitempty" name:"CosObjectName"` // 包含函数代码文件及其依赖项的 zip 格式文件,使用该接口时要求将 zip 文件的内容转成 base64 编码,最大支持20M ZipFile *string `json:"ZipFile,omitnil,omitempty" name:"ZipFile"` // 函数所属命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 对象存储的地域,注:北京分为ap-beijing和ap-beijing-1 CosBucketRegion *string `json:"CosBucketRegion,omitnil,omitempty" name:"CosBucketRegion"` // 是否自动安装依赖 InstallDependency *string `json:"InstallDependency,omitnil,omitempty" name:"InstallDependency"` // 函数所属环境 EnvId *string `json:"EnvId,omitnil,omitempty" name:"EnvId"` // 在更新时是否同步发布新版本,默认为:FALSE,不发布 Publish *string `json:"Publish,omitnil,omitempty" name:"Publish"` // 函数代码 Code *Code `json:"Code,omitnil,omitempty" name:"Code"` // 代码来源方式,支持 ZipFile, Cos, Inline 之一 CodeSource *string `json:"CodeSource,omitnil,omitempty" name:"CodeSource"` }
Predefined struct for user
type UpdateFunctionCodeResponse ¶
type UpdateFunctionCodeResponse struct { *tchttp.BaseResponse Response *UpdateFunctionCodeResponseParams `json:"Response"` }
func NewUpdateFunctionCodeResponse ¶
func NewUpdateFunctionCodeResponse() (response *UpdateFunctionCodeResponse)
func (*UpdateFunctionCodeResponse) FromJsonString ¶
func (r *UpdateFunctionCodeResponse) FromJsonString(s string) error
FromJsonString 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 UpdateFunctionCodeResponseParams ¶ added in v1.0.426
type UpdateFunctionCodeResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type UpdateFunctionConfigurationRequest ¶
type UpdateFunctionConfigurationRequest struct { *tchttp.BaseRequest // 要修改的函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数描述。最大支持 1000 个英文字母、数字、空格、逗号和英文句号,支持中文 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 函数运行时内存大小,默认为 128 M,可选范64M、128 M-3072 M,以 128MB 为阶梯。 MemorySize *int64 `json:"MemorySize,omitnil,omitempty" name:"MemorySize"` // 函数最长执行时间,单位为秒,可选值范 1-900 秒,默认为 3 秒 Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"` // 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, PHP5, PHP7,Go1 , Java8和CustomRuntime Runtime *string `json:"Runtime,omitnil,omitempty" name:"Runtime"` // 函数的环境变量 Environment *Environment `json:"Environment,omitnil,omitempty" name:"Environment"` // 函数所属命名空间 // 默认值: default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数的私有网络配置 VpcConfig *VpcConfig `json:"VpcConfig,omitnil,omitempty" name:"VpcConfig"` // 函数绑定的角色 Role *string `json:"Role,omitnil,omitempty" name:"Role"` // [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。 InstallDependency *string `json:"InstallDependency,omitnil,omitempty" name:"InstallDependency"` // 日志投递到的cls日志集ID ClsLogsetId *string `json:"ClsLogsetId,omitnil,omitempty" name:"ClsLogsetId"` // 日志投递到的cls Topic ID ClsTopicId *string `json:"ClsTopicId,omitnil,omitempty" name:"ClsTopicId"` // 在更新时是否同步发布新版本,默认为:FALSE,不发布新版本 Publish *string `json:"Publish,omitnil,omitempty" name:"Publish"` // 是否开启L5访问能力,TRUE 为开启,FALSE为关闭 L5Enable *string `json:"L5Enable,omitnil,omitempty" name:"L5Enable"` // 函数要关联的层版本列表,层的版本会按照在列表中顺序依次覆盖。 Layers []*LayerVersionSimple `json:"Layers,omitnil,omitempty" name:"Layers"` // 函数关联的死信队列信息 DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitnil,omitempty" name:"DeadLetterConfig"` // 公网访问配置 PublicNetConfig *PublicNetConfigIn `json:"PublicNetConfig,omitnil,omitempty" name:"PublicNetConfig"` // 文件系统配置入参,用于云函数绑定CFS文件系统 CfsConfig *CfsConfig `json:"CfsConfig,omitnil,omitempty" name:"CfsConfig"` // 函数初始化执行超时时间 InitTimeout *int64 `json:"InitTimeout,omitnil,omitempty" name:"InitTimeout"` // HTTP函数配置ProtocolType访问协议,当前协议可配置的参数 ProtocolParams *ProtocolParams `json:"ProtocolParams,omitnil,omitempty" name:"ProtocolParams"` // 单实例多并发配置。只支持Web函数。 InstanceConcurrencyConfig *InstanceConcurrencyConfig `json:"InstanceConcurrencyConfig,omitnil,omitempty" name:"InstanceConcurrencyConfig"` // 是否开启Dns缓存能力。只支持EVENT函数。默认为FALSE,TRUE 为开启,FALSE为关闭 DnsCache *string `json:"DnsCache,omitnil,omitempty" name:"DnsCache"` // 内网访问配置 IntranetConfig *IntranetConfigIn `json:"IntranetConfig,omitnil,omitempty" name:"IntranetConfig"` // 忽略系统日志上报 IgnoreSysLog *bool `json:"IgnoreSysLog,omitnil,omitempty" name:"IgnoreSysLog"` }
func NewUpdateFunctionConfigurationRequest ¶
func NewUpdateFunctionConfigurationRequest() (request *UpdateFunctionConfigurationRequest)
func (*UpdateFunctionConfigurationRequest) FromJsonString ¶
func (r *UpdateFunctionConfigurationRequest) FromJsonString(s string) error
FromJsonString 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 UpdateFunctionConfigurationRequestParams ¶ added in v1.0.426
type UpdateFunctionConfigurationRequestParams struct { // 要修改的函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数描述。最大支持 1000 个英文字母、数字、空格、逗号和英文句号,支持中文 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 函数运行时内存大小,默认为 128 M,可选范64M、128 M-3072 M,以 128MB 为阶梯。 MemorySize *int64 `json:"MemorySize,omitnil,omitempty" name:"MemorySize"` // 函数最长执行时间,单位为秒,可选值范 1-900 秒,默认为 3 秒 Timeout *int64 `json:"Timeout,omitnil,omitempty" name:"Timeout"` // 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, PHP5, PHP7,Go1 , Java8和CustomRuntime Runtime *string `json:"Runtime,omitnil,omitempty" name:"Runtime"` // 函数的环境变量 Environment *Environment `json:"Environment,omitnil,omitempty" name:"Environment"` // 函数所属命名空间 // 默认值: default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 函数的私有网络配置 VpcConfig *VpcConfig `json:"VpcConfig,omitnil,omitempty" name:"VpcConfig"` // 函数绑定的角色 Role *string `json:"Role,omitnil,omitempty" name:"Role"` // [在线依赖安装](https://cloud.tencent.com/document/product/583/37920),TRUE 表示安装,默认值为 FALSE。仅支持 Node.js 函数。 InstallDependency *string `json:"InstallDependency,omitnil,omitempty" name:"InstallDependency"` // 日志投递到的cls日志集ID ClsLogsetId *string `json:"ClsLogsetId,omitnil,omitempty" name:"ClsLogsetId"` // 日志投递到的cls Topic ID ClsTopicId *string `json:"ClsTopicId,omitnil,omitempty" name:"ClsTopicId"` // 在更新时是否同步发布新版本,默认为:FALSE,不发布新版本 Publish *string `json:"Publish,omitnil,omitempty" name:"Publish"` // 是否开启L5访问能力,TRUE 为开启,FALSE为关闭 L5Enable *string `json:"L5Enable,omitnil,omitempty" name:"L5Enable"` // 函数要关联的层版本列表,层的版本会按照在列表中顺序依次覆盖。 Layers []*LayerVersionSimple `json:"Layers,omitnil,omitempty" name:"Layers"` // 函数关联的死信队列信息 DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitnil,omitempty" name:"DeadLetterConfig"` // 公网访问配置 PublicNetConfig *PublicNetConfigIn `json:"PublicNetConfig,omitnil,omitempty" name:"PublicNetConfig"` // 文件系统配置入参,用于云函数绑定CFS文件系统 CfsConfig *CfsConfig `json:"CfsConfig,omitnil,omitempty" name:"CfsConfig"` // 函数初始化执行超时时间 InitTimeout *int64 `json:"InitTimeout,omitnil,omitempty" name:"InitTimeout"` // HTTP函数配置ProtocolType访问协议,当前协议可配置的参数 ProtocolParams *ProtocolParams `json:"ProtocolParams,omitnil,omitempty" name:"ProtocolParams"` // 单实例多并发配置。只支持Web函数。 InstanceConcurrencyConfig *InstanceConcurrencyConfig `json:"InstanceConcurrencyConfig,omitnil,omitempty" name:"InstanceConcurrencyConfig"` // 是否开启Dns缓存能力。只支持EVENT函数。默认为FALSE,TRUE 为开启,FALSE为关闭 DnsCache *string `json:"DnsCache,omitnil,omitempty" name:"DnsCache"` // 内网访问配置 IntranetConfig *IntranetConfigIn `json:"IntranetConfig,omitnil,omitempty" name:"IntranetConfig"` // 忽略系统日志上报 IgnoreSysLog *bool `json:"IgnoreSysLog,omitnil,omitempty" name:"IgnoreSysLog"` }
Predefined struct for user
type UpdateFunctionConfigurationResponse ¶
type UpdateFunctionConfigurationResponse struct { *tchttp.BaseResponse Response *UpdateFunctionConfigurationResponseParams `json:"Response"` }
func NewUpdateFunctionConfigurationResponse ¶
func NewUpdateFunctionConfigurationResponse() (response *UpdateFunctionConfigurationResponse)
func (*UpdateFunctionConfigurationResponse) FromJsonString ¶
func (r *UpdateFunctionConfigurationResponse) FromJsonString(s string) error
FromJsonString 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 UpdateFunctionConfigurationResponseParams ¶ added in v1.0.426
type UpdateFunctionConfigurationResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type UpdateFunctionEventInvokeConfigRequest ¶
type UpdateFunctionEventInvokeConfigRequest struct { *tchttp.BaseRequest // 异步重试配置信息 AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitnil,omitempty" name:"AsyncTriggerConfig"` // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
func NewUpdateFunctionEventInvokeConfigRequest ¶
func NewUpdateFunctionEventInvokeConfigRequest() (request *UpdateFunctionEventInvokeConfigRequest)
func (*UpdateFunctionEventInvokeConfigRequest) FromJsonString ¶
func (r *UpdateFunctionEventInvokeConfigRequest) FromJsonString(s string) error
FromJsonString 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 UpdateFunctionEventInvokeConfigRequestParams ¶ added in v1.0.426
type UpdateFunctionEventInvokeConfigRequestParams struct { // 异步重试配置信息 AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitnil,omitempty" name:"AsyncTriggerConfig"` // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 函数所属命名空间,默认为default Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` }
Predefined struct for user
type UpdateFunctionEventInvokeConfigResponse ¶
type UpdateFunctionEventInvokeConfigResponse struct { *tchttp.BaseResponse Response *UpdateFunctionEventInvokeConfigResponseParams `json:"Response"` }
func NewUpdateFunctionEventInvokeConfigResponse ¶
func NewUpdateFunctionEventInvokeConfigResponse() (response *UpdateFunctionEventInvokeConfigResponse)
func (*UpdateFunctionEventInvokeConfigResponse) FromJsonString ¶
func (r *UpdateFunctionEventInvokeConfigResponse) FromJsonString(s string) error
FromJsonString 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 UpdateFunctionEventInvokeConfigResponseParams ¶ added in v1.0.426
type UpdateFunctionEventInvokeConfigResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type UpdateNamespaceRequest ¶
type UpdateNamespaceRequest struct { *tchttp.BaseRequest // 命名空间名称 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 命名空间描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
func NewUpdateNamespaceRequest ¶
func NewUpdateNamespaceRequest() (request *UpdateNamespaceRequest)
func (*UpdateNamespaceRequest) FromJsonString ¶
func (r *UpdateNamespaceRequest) FromJsonString(s string) error
FromJsonString 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 UpdateNamespaceRequestParams ¶ added in v1.0.426
type UpdateNamespaceRequestParams struct { // 命名空间名称 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 命名空间描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` }
Predefined struct for user
type UpdateNamespaceResponse ¶
type UpdateNamespaceResponse struct { *tchttp.BaseResponse Response *UpdateNamespaceResponseParams `json:"Response"` }
func NewUpdateNamespaceResponse ¶
func NewUpdateNamespaceResponse() (response *UpdateNamespaceResponse)
func (*UpdateNamespaceResponse) FromJsonString ¶
func (r *UpdateNamespaceResponse) FromJsonString(s string) error
FromJsonString 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 UpdateNamespaceResponseParams ¶ added in v1.0.426
type UpdateNamespaceResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type UpdateTriggerRequest ¶ added in v1.0.728
type UpdateTriggerRequest struct { *tchttp.BaseRequest // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 触发器名称 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 触发器类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 触发器开启或关闭,传参为OPEN为开启,CLOSE为关闭 Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"` // 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // TriggerDesc参数 TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` // 触发器描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 用户附加信息 CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"` }
func NewUpdateTriggerRequest ¶ added in v1.0.728
func NewUpdateTriggerRequest() (request *UpdateTriggerRequest)
func (*UpdateTriggerRequest) FromJsonString ¶ added in v1.0.728
func (r *UpdateTriggerRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateTriggerRequest) ToJsonString ¶ added in v1.0.728
func (r *UpdateTriggerRequest) ToJsonString() string
type UpdateTriggerRequestParams ¶ added in v1.0.728
type UpdateTriggerRequestParams struct { // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 触发器名称 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 触发器类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 触发器开启或关闭,传参为OPEN为开启,CLOSE为关闭 Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"` // 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // TriggerDesc参数 TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` // 触发器描述 Description *string `json:"Description,omitnil,omitempty" name:"Description"` // 用户附加信息 CustomArgument *string `json:"CustomArgument,omitnil,omitempty" name:"CustomArgument"` }
Predefined struct for user
type UpdateTriggerResponse ¶ added in v1.0.728
type UpdateTriggerResponse struct { *tchttp.BaseResponse Response *UpdateTriggerResponseParams `json:"Response"` }
func NewUpdateTriggerResponse ¶ added in v1.0.728
func NewUpdateTriggerResponse() (response *UpdateTriggerResponse)
func (*UpdateTriggerResponse) FromJsonString ¶ added in v1.0.728
func (r *UpdateTriggerResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateTriggerResponse) ToJsonString ¶ added in v1.0.728
func (r *UpdateTriggerResponse) ToJsonString() string
type UpdateTriggerResponseParams ¶ added in v1.0.728
type UpdateTriggerResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type UpdateTriggerStatusRequest ¶ added in v1.0.630
type UpdateTriggerStatusRequest struct { *tchttp.BaseRequest // 触发器的初始是能状态OPEN表示开启 CLOSE表示关闭 Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"` // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 触发器名称 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 触发器类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 如果更新的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果更新的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段 TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` }
func NewUpdateTriggerStatusRequest ¶ added in v1.0.630
func NewUpdateTriggerStatusRequest() (request *UpdateTriggerStatusRequest)
func (*UpdateTriggerStatusRequest) FromJsonString ¶ added in v1.0.630
func (r *UpdateTriggerStatusRequest) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateTriggerStatusRequest) ToJsonString ¶ added in v1.0.630
func (r *UpdateTriggerStatusRequest) ToJsonString() string
type UpdateTriggerStatusRequestParams ¶ added in v1.0.630
type UpdateTriggerStatusRequestParams struct { // 触发器的初始是能状态OPEN表示开启 CLOSE表示关闭 Enable *string `json:"Enable,omitnil,omitempty" name:"Enable"` // 函数名称 FunctionName *string `json:"FunctionName,omitnil,omitempty" name:"FunctionName"` // 触发器名称 TriggerName *string `json:"TriggerName,omitnil,omitempty" name:"TriggerName"` // 触发器类型 Type *string `json:"Type,omitnil,omitempty" name:"Type"` // 函数的版本,默认为 $LATEST,建议填写 [$DEFAULT](https://cloud.tencent.com/document/product/583/36149#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)方便后续进行版本的灰度发布。 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 函数的命名空间 Namespace *string `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 如果更新的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果更新的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段 TriggerDesc *string `json:"TriggerDesc,omitnil,omitempty" name:"TriggerDesc"` }
Predefined struct for user
type UpdateTriggerStatusResponse ¶ added in v1.0.630
type UpdateTriggerStatusResponse struct { *tchttp.BaseResponse Response *UpdateTriggerStatusResponseParams `json:"Response"` }
func NewUpdateTriggerStatusResponse ¶ added in v1.0.630
func NewUpdateTriggerStatusResponse() (response *UpdateTriggerStatusResponse)
func (*UpdateTriggerStatusResponse) FromJsonString ¶ added in v1.0.630
func (r *UpdateTriggerStatusResponse) FromJsonString(s string) error
FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*UpdateTriggerStatusResponse) ToJsonString ¶ added in v1.0.630
func (r *UpdateTriggerStatusResponse) ToJsonString() string
type UpdateTriggerStatusResponseParams ¶ added in v1.0.630
type UpdateTriggerStatusResponseParams struct { // 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"` }
Predefined struct for user
type UsageInfo ¶
type UsageInfo struct { // 命名空间个数 NamespacesCount *int64 `json:"NamespacesCount,omitnil,omitempty" name:"NamespacesCount"` // 命名空间详情 Namespace []*NamespaceUsage `json:"Namespace,omitnil,omitempty" name:"Namespace"` // 当前地域用户并发内存配额上限 TotalConcurrencyMem *int64 `json:"TotalConcurrencyMem,omitnil,omitempty" name:"TotalConcurrencyMem"` // 当前地域用户已配置并发内存额度 TotalAllocatedConcurrencyMem *int64 `json:"TotalAllocatedConcurrencyMem,omitnil,omitempty" name:"TotalAllocatedConcurrencyMem"` // 用户实际配置的账号并发配额 UserConcurrencyMemLimit *int64 `json:"UserConcurrencyMemLimit,omitnil,omitempty" name:"UserConcurrencyMemLimit"` }
type VersionMatch ¶
type VersionMatch struct { // 函数版本名称 Version *string `json:"Version,omitnil,omitempty" name:"Version"` // 匹配规则的key,调用时通过传key来匹配规则路由到指定版本 // header方式: // key填写"invoke.headers.User",并在 invoke 调用函数时传参 RoutingKey:{"User":"value"}规则匹配调用 Key *string `json:"Key,omitnil,omitempty" name:"Key"` // 匹配方式。取值范围: // range:范围匹配 // exact:字符串精确匹配 Method *string `json:"Method,omitnil,omitempty" name:"Method"` // range 匹配规则要求: // 需要为开区间或闭区间描述 (a,b) [a,b],其中 a、b 均为整数 // exact 匹配规则要求: // 字符串精确匹配 Expression *string `json:"Expression,omitnil,omitempty" name:"Expression"` }
type VersionProvisionedConcurrencyInfo ¶
type VersionProvisionedConcurrencyInfo struct { // 设置的预置并发数。 AllocatedProvisionedConcurrencyNum *uint64 `json:"AllocatedProvisionedConcurrencyNum,omitnil,omitempty" name:"AllocatedProvisionedConcurrencyNum"` // 当前已完成预置的并发数。 AvailableProvisionedConcurrencyNum *uint64 `json:"AvailableProvisionedConcurrencyNum,omitnil,omitempty" name:"AvailableProvisionedConcurrencyNum"` // 预置任务状态,Done表示已完成,InProgress表示进行中,Failed表示部分或全部失败。 Status *string `json:"Status,omitnil,omitempty" name:"Status"` // 对预置任务状态Status的说明。 StatusReason *string `json:"StatusReason,omitnil,omitempty" name:"StatusReason"` // 函数版本号 Qualifier *string `json:"Qualifier,omitnil,omitempty" name:"Qualifier"` // 预置并发定时任务。 // 注意:此字段可能返回 null,表示取不到有效值。 TriggerActions []*TriggerAction `json:"TriggerActions,omitnil,omitempty" name:"TriggerActions"` }