1// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package v20180416 16 17import ( 18 "encoding/json" 19 tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" 20 tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" 21) 22 23type AccessInfo struct { 24 25 // 域名 26 Host *string `json:"Host,omitempty" name:"Host"` 27 28 // VIP 29 Vip *string `json:"Vip,omitempty" name:"Vip"` 30} 31 32type Alias struct { 33 34 // 别名指向的主版本 35 FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"` 36 37 // 别名的名称 38 Name *string `json:"Name,omitempty" name:"Name"` 39 40 // 别名的路由信息 41 // 注意:此字段可能返回 null,表示取不到有效值。 42 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitempty" name:"RoutingConfig"` 43 44 // 描述信息 45 // 注意:此字段可能返回 null,表示取不到有效值。 46 Description *string `json:"Description,omitempty" name:"Description"` 47 48 // 创建时间 49 // 注意:此字段可能返回 null,表示取不到有效值。 50 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 51 52 // 更新时间 53 // 注意:此字段可能返回 null,表示取不到有效值。 54 ModTime *string `json:"ModTime,omitempty" name:"ModTime"` 55} 56 57type AsyncEvent struct { 58 59 // 调用请求id 60 InvokeRequestId *string `json:"InvokeRequestId,omitempty" name:"InvokeRequestId"` 61 62 // 调用类型 63 InvokeType *string `json:"InvokeType,omitempty" name:"InvokeType"` 64 65 // 函数版本 66 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 67 68 // 事件状态,RUNNING 表示运行中, FINISHED 表示调用成功, ABORTED 表示调用终止, FAILED 表示调用失败 69 Status *string `json:"Status,omitempty" name:"Status"` 70 71 // 调用开始时间,格式: "%Y-%m-%d %H:%M:%S.%f" 72 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 73 74 // 调用结束时间,格式: "%Y-%m-%d %H:%M:%S.%f" 75 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 76} 77 78type AsyncTriggerConfig struct { 79 80 // 用户错误的异步重试重试配置 81 RetryConfig []*RetryConfig `json:"RetryConfig,omitempty" name:"RetryConfig"` 82 83 // 消息保留时间 84 MsgTTL *int64 `json:"MsgTTL,omitempty" name:"MsgTTL"` 85} 86 87type CfsConfig struct { 88 89 // 文件系统信息列表 90 CfsInsList []*CfsInsInfo `json:"CfsInsList,omitempty" name:"CfsInsList"` 91} 92 93type CfsInsInfo struct { 94 95 // 用户id 96 UserId *string `json:"UserId,omitempty" name:"UserId"` 97 98 // 用户组id 99 UserGroupId *string `json:"UserGroupId,omitempty" name:"UserGroupId"` 100 101 // 文件系统实例id 102 CfsId *string `json:"CfsId,omitempty" name:"CfsId"` 103 104 // 文件系统挂载点id 105 MountInsId *string `json:"MountInsId,omitempty" name:"MountInsId"` 106 107 // 本地挂载点 108 LocalMountDir *string `json:"LocalMountDir,omitempty" name:"LocalMountDir"` 109 110 // 远程挂载点 111 RemoteMountDir *string `json:"RemoteMountDir,omitempty" name:"RemoteMountDir"` 112 113 // 文件系统ip,配置 cfs 时无需填写。 114 // 注意:此字段可能返回 null,表示取不到有效值。 115 // 注意:此字段可能返回 null,表示取不到有效值。 116 IpAddress *string `json:"IpAddress,omitempty" name:"IpAddress"` 117 118 // 文件系统所在的私有网络id,配置 cfs 时无需填写。 119 // 注意:此字段可能返回 null,表示取不到有效值。 120 // 注意:此字段可能返回 null,表示取不到有效值。 121 MountVpcId *string `json:"MountVpcId,omitempty" name:"MountVpcId"` 122 123 // 文件系统所在私有网络的子网id,配置 cfs 时无需填写。 124 // 注意:此字段可能返回 null,表示取不到有效值。 125 // 注意:此字段可能返回 null,表示取不到有效值。 126 MountSubnetId *string `json:"MountSubnetId,omitempty" name:"MountSubnetId"` 127} 128 129type Code struct { 130 131 // 对象存储桶名称(填写存储桶名称自定义部分,不包含-appid) 132 CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"` 133 134 // 对象存储对象路径 135 CosObjectName *string `json:"CosObjectName,omitempty" name:"CosObjectName"` 136 137 // 包含函数代码文件及其依赖项的 zip 格式文件,zip包大小上限为 50MB,使用该接口时要求将 zip 文件的内容转成 base64 编码 138 ZipFile *string `json:"ZipFile,omitempty" name:"ZipFile"` 139 140 // 对象存储的地域,地域为北京时需要传入ap-beijing,北京一区时需要传递ap-beijing-1,其他的地域不需要传递。 141 CosBucketRegion *string `json:"CosBucketRegion,omitempty" name:"CosBucketRegion"` 142 143 // 如果是通过Demo创建的话,需要传入DemoId 144 DemoId *string `json:"DemoId,omitempty" name:"DemoId"` 145 146 // 如果是从TempCos创建的话,需要传入TempCosObjectName 147 TempCosObjectName *string `json:"TempCosObjectName,omitempty" name:"TempCosObjectName"` 148 149 // Git地址 150 GitUrl *string `json:"GitUrl,omitempty" name:"GitUrl"` 151 152 // Git用户名 153 GitUserName *string `json:"GitUserName,omitempty" name:"GitUserName"` 154 155 // Git密码 156 GitPassword *string `json:"GitPassword,omitempty" name:"GitPassword"` 157 158 // 加密后的Git密码,一般无需指定 159 GitPasswordSecret *string `json:"GitPasswordSecret,omitempty" name:"GitPasswordSecret"` 160 161 // Git分支 162 GitBranch *string `json:"GitBranch,omitempty" name:"GitBranch"` 163 164 // 代码在Git仓库中的路径 165 GitDirectory *string `json:"GitDirectory,omitempty" name:"GitDirectory"` 166 167 // 指定要拉取的版本 168 GitCommitId *string `json:"GitCommitId,omitempty" name:"GitCommitId"` 169 170 // 加密后的Git用户名,一般无需指定 171 GitUserNameSecret *string `json:"GitUserNameSecret,omitempty" name:"GitUserNameSecret"` 172} 173 174type CopyFunctionRequest struct { 175 *tchttp.BaseRequest 176 177 // 要复制的函数的名称 178 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 179 180 // 新函数的名称 181 NewFunctionName *string `json:"NewFunctionName,omitempty" name:"NewFunctionName"` 182 183 // 要复制的函数所在的命名空间,默认为default 184 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 185 186 // 将函数复制到的命名空间,默认为default 187 TargetNamespace *string `json:"TargetNamespace,omitempty" name:"TargetNamespace"` 188 189 // 新函数的描述 190 Description *string `json:"Description,omitempty" name:"Description"` 191 192 // 要将函数复制到的地域,不填则默认为当前地域 193 TargetRegion *string `json:"TargetRegion,omitempty" name:"TargetRegion"` 194 195 // 如果目标Namespace下已有同名函数,是否覆盖,默认为否 196 // (注意:如果选择覆盖,会导致同名函数被删除,请慎重操作) 197 // TRUE:覆盖同名函数 198 // FALSE:不覆盖同名函数 199 Override *bool `json:"Override,omitempty" name:"Override"` 200 201 // 是否复制函数的属性,包括环境变量、内存、超时、函数描述、标签、VPC等,默认为是。 202 // TRUE:复制函数配置 203 // FALSE:不复制函数配置 204 CopyConfiguration *bool `json:"CopyConfiguration,omitempty" name:"CopyConfiguration"` 205} 206 207func (r *CopyFunctionRequest) ToJsonString() string { 208 b, _ := json.Marshal(r) 209 return string(b) 210} 211 212// FromJsonString It is highly **NOT** recommended to use this function 213// because it has no param check, nor strict type check 214func (r *CopyFunctionRequest) FromJsonString(s string) error { 215 f := make(map[string]interface{}) 216 if err := json.Unmarshal([]byte(s), &f); err != nil { 217 return err 218 } 219 delete(f, "FunctionName") 220 delete(f, "NewFunctionName") 221 delete(f, "Namespace") 222 delete(f, "TargetNamespace") 223 delete(f, "Description") 224 delete(f, "TargetRegion") 225 delete(f, "Override") 226 delete(f, "CopyConfiguration") 227 if len(f) > 0 { 228 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CopyFunctionRequest has unknown keys!", "") 229 } 230 return json.Unmarshal([]byte(s), &r) 231} 232 233type CopyFunctionResponse struct { 234 *tchttp.BaseResponse 235 Response *struct { 236 237 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 238 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 239 } `json:"Response"` 240} 241 242func (r *CopyFunctionResponse) ToJsonString() string { 243 b, _ := json.Marshal(r) 244 return string(b) 245} 246 247// FromJsonString It is highly **NOT** recommended to use this function 248// because it has no param check, nor strict type check 249func (r *CopyFunctionResponse) FromJsonString(s string) error { 250 return json.Unmarshal([]byte(s), &r) 251} 252 253type CreateAliasRequest struct { 254 *tchttp.BaseRequest 255 256 // 别名的名称,在函数级别中唯一,只能包含字母、数字、'_'和‘-’,且必须以字母开头,长度限制为1-64 257 Name *string `json:"Name,omitempty" name:"Name"` 258 259 // 函数名称 260 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 261 262 // 别名指向的主版本 263 FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"` 264 265 // 函数所在的命名空间 266 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 267 268 // 别名的请求路由配置 269 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitempty" name:"RoutingConfig"` 270 271 // 别名的描述信息 272 Description *string `json:"Description,omitempty" name:"Description"` 273} 274 275func (r *CreateAliasRequest) ToJsonString() string { 276 b, _ := json.Marshal(r) 277 return string(b) 278} 279 280// FromJsonString It is highly **NOT** recommended to use this function 281// because it has no param check, nor strict type check 282func (r *CreateAliasRequest) FromJsonString(s string) error { 283 f := make(map[string]interface{}) 284 if err := json.Unmarshal([]byte(s), &f); err != nil { 285 return err 286 } 287 delete(f, "Name") 288 delete(f, "FunctionName") 289 delete(f, "FunctionVersion") 290 delete(f, "Namespace") 291 delete(f, "RoutingConfig") 292 delete(f, "Description") 293 if len(f) > 0 { 294 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateAliasRequest has unknown keys!", "") 295 } 296 return json.Unmarshal([]byte(s), &r) 297} 298 299type CreateAliasResponse struct { 300 *tchttp.BaseResponse 301 Response *struct { 302 303 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 304 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 305 } `json:"Response"` 306} 307 308func (r *CreateAliasResponse) ToJsonString() string { 309 b, _ := json.Marshal(r) 310 return string(b) 311} 312 313// FromJsonString It is highly **NOT** recommended to use this function 314// because it has no param check, nor strict type check 315func (r *CreateAliasResponse) FromJsonString(s string) error { 316 return json.Unmarshal([]byte(s), &r) 317} 318 319type CreateFunctionRequest struct { 320 *tchttp.BaseRequest 321 322 // 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60 323 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 324 325 // 函数代码. 注意:不能同时指定Cos、ZipFile或 DemoId。 326 Code *Code `json:"Code,omitempty" name:"Code"` 327 328 // 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符 329 Handler *string `json:"Handler,omitempty" name:"Handler"` 330 331 // 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文 332 Description *string `json:"Description,omitempty" name:"Description"` 333 334 // 函数运行时内存大小,默认为 128M,可选范围 64、128MB-3072MB,并且以 128MB 为阶梯 335 MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"` 336 337 // 函数最长执行时间,单位为秒,可选值范围 1-900 秒,默认为 3 秒 338 Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"` 339 340 // 函数的环境变量 341 Environment *Environment `json:"Environment,omitempty" name:"Environment"` 342 343 // 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, Php5, Php7,Go1,Java8 和 CustomRuntime,默认Python2.7 344 Runtime *string `json:"Runtime,omitempty" name:"Runtime"` 345 346 // 函数的私有网络配置 347 VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"` 348 349 // 函数所属命名空间 350 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 351 352 // 函数绑定的角色 353 Role *string `json:"Role,omitempty" name:"Role"` 354 355 // 函数日志投递到的CLS LogsetID 356 ClsLogsetId *string `json:"ClsLogsetId,omitempty" name:"ClsLogsetId"` 357 358 // 函数日志投递到的CLS TopicID 359 ClsTopicId *string `json:"ClsTopicId,omitempty" name:"ClsTopicId"` 360 361 // 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP 362 Type *string `json:"Type,omitempty" name:"Type"` 363 364 // CodeSource 代码来源,支持ZipFile, Cos, Demo 其中之一 365 CodeSource *string `json:"CodeSource,omitempty" name:"CodeSource"` 366 367 // 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。 368 Layers []*LayerVersionSimple `json:"Layers,omitempty" name:"Layers"` 369 370 // 死信队列参数 371 DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitempty" name:"DeadLetterConfig"` 372 373 // 公网访问配置 374 PublicNetConfig *PublicNetConfigIn `json:"PublicNetConfig,omitempty" name:"PublicNetConfig"` 375 376 // 文件系统配置参数,用于云函数挂载文件系统 377 CfsConfig *CfsConfig `json:"CfsConfig,omitempty" name:"CfsConfig"` 378 379 // 函数初始化超时时间 380 InitTimeout *int64 `json:"InitTimeout,omitempty" name:"InitTimeout"` 381 382 // 函数 Tag 参数,以键值对数组形式传入 383 Tags []*Tag `json:"Tags,omitempty" name:"Tags"` 384 385 // 是否开启异步属性,TRUE 为开启,FALSE为关闭 386 AsyncRunEnable *string `json:"AsyncRunEnable,omitempty" name:"AsyncRunEnable"` 387 388 // 是否开启事件追踪,TRUE 为开启,FALSE为关闭 389 TraceEnable *string `json:"TraceEnable,omitempty" name:"TraceEnable"` 390} 391 392func (r *CreateFunctionRequest) ToJsonString() string { 393 b, _ := json.Marshal(r) 394 return string(b) 395} 396 397// FromJsonString It is highly **NOT** recommended to use this function 398// because it has no param check, nor strict type check 399func (r *CreateFunctionRequest) FromJsonString(s string) error { 400 f := make(map[string]interface{}) 401 if err := json.Unmarshal([]byte(s), &f); err != nil { 402 return err 403 } 404 delete(f, "FunctionName") 405 delete(f, "Code") 406 delete(f, "Handler") 407 delete(f, "Description") 408 delete(f, "MemorySize") 409 delete(f, "Timeout") 410 delete(f, "Environment") 411 delete(f, "Runtime") 412 delete(f, "VpcConfig") 413 delete(f, "Namespace") 414 delete(f, "Role") 415 delete(f, "ClsLogsetId") 416 delete(f, "ClsTopicId") 417 delete(f, "Type") 418 delete(f, "CodeSource") 419 delete(f, "Layers") 420 delete(f, "DeadLetterConfig") 421 delete(f, "PublicNetConfig") 422 delete(f, "CfsConfig") 423 delete(f, "InitTimeout") 424 delete(f, "Tags") 425 delete(f, "AsyncRunEnable") 426 delete(f, "TraceEnable") 427 if len(f) > 0 { 428 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateFunctionRequest has unknown keys!", "") 429 } 430 return json.Unmarshal([]byte(s), &r) 431} 432 433type CreateFunctionResponse struct { 434 *tchttp.BaseResponse 435 Response *struct { 436 437 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 438 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 439 } `json:"Response"` 440} 441 442func (r *CreateFunctionResponse) ToJsonString() string { 443 b, _ := json.Marshal(r) 444 return string(b) 445} 446 447// FromJsonString It is highly **NOT** recommended to use this function 448// because it has no param check, nor strict type check 449func (r *CreateFunctionResponse) FromJsonString(s string) error { 450 return json.Unmarshal([]byte(s), &r) 451} 452 453type CreateNamespaceRequest struct { 454 *tchttp.BaseRequest 455 456 // 命名空间名称 457 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 458 459 // 命名空间描述 460 Description *string `json:"Description,omitempty" name:"Description"` 461} 462 463func (r *CreateNamespaceRequest) ToJsonString() string { 464 b, _ := json.Marshal(r) 465 return string(b) 466} 467 468// FromJsonString It is highly **NOT** recommended to use this function 469// because it has no param check, nor strict type check 470func (r *CreateNamespaceRequest) FromJsonString(s string) error { 471 f := make(map[string]interface{}) 472 if err := json.Unmarshal([]byte(s), &f); err != nil { 473 return err 474 } 475 delete(f, "Namespace") 476 delete(f, "Description") 477 if len(f) > 0 { 478 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateNamespaceRequest has unknown keys!", "") 479 } 480 return json.Unmarshal([]byte(s), &r) 481} 482 483type CreateNamespaceResponse struct { 484 *tchttp.BaseResponse 485 Response *struct { 486 487 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 488 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 489 } `json:"Response"` 490} 491 492func (r *CreateNamespaceResponse) ToJsonString() string { 493 b, _ := json.Marshal(r) 494 return string(b) 495} 496 497// FromJsonString It is highly **NOT** recommended to use this function 498// because it has no param check, nor strict type check 499func (r *CreateNamespaceResponse) FromJsonString(s string) error { 500 return json.Unmarshal([]byte(s), &r) 501} 502 503type CreateTriggerRequest struct { 504 *tchttp.BaseRequest 505 506 // 新建触发器绑定的函数名称 507 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 508 509 // 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明 510 TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` 511 512 // 触发器类型,目前支持 cos 、cmq、 timer、 ckafka、apigw类型 513 Type *string `json:"Type,omitempty" name:"Type"` 514 515 // 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901) 516 TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"` 517 518 // 函数的命名空间 519 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 520 521 // 函数的版本 522 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 523 524 // 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭 525 Enable *string `json:"Enable,omitempty" name:"Enable"` 526 527 // 用户自定义参数,仅支持timer触发器 528 CustomArgument *string `json:"CustomArgument,omitempty" name:"CustomArgument"` 529} 530 531func (r *CreateTriggerRequest) ToJsonString() string { 532 b, _ := json.Marshal(r) 533 return string(b) 534} 535 536// FromJsonString It is highly **NOT** recommended to use this function 537// because it has no param check, nor strict type check 538func (r *CreateTriggerRequest) FromJsonString(s string) error { 539 f := make(map[string]interface{}) 540 if err := json.Unmarshal([]byte(s), &f); err != nil { 541 return err 542 } 543 delete(f, "FunctionName") 544 delete(f, "TriggerName") 545 delete(f, "Type") 546 delete(f, "TriggerDesc") 547 delete(f, "Namespace") 548 delete(f, "Qualifier") 549 delete(f, "Enable") 550 delete(f, "CustomArgument") 551 if len(f) > 0 { 552 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTriggerRequest has unknown keys!", "") 553 } 554 return json.Unmarshal([]byte(s), &r) 555} 556 557type CreateTriggerResponse struct { 558 *tchttp.BaseResponse 559 Response *struct { 560 561 // 触发器信息 562 TriggerInfo *Trigger `json:"TriggerInfo,omitempty" name:"TriggerInfo"` 563 564 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 565 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 566 } `json:"Response"` 567} 568 569func (r *CreateTriggerResponse) ToJsonString() string { 570 b, _ := json.Marshal(r) 571 return string(b) 572} 573 574// FromJsonString It is highly **NOT** recommended to use this function 575// because it has no param check, nor strict type check 576func (r *CreateTriggerResponse) FromJsonString(s string) error { 577 return json.Unmarshal([]byte(s), &r) 578} 579 580type DeadLetterConfig struct { 581 582 // 死信队列模式 583 Type *string `json:"Type,omitempty" name:"Type"` 584 585 // 死信队列名称 586 Name *string `json:"Name,omitempty" name:"Name"` 587 588 // 死信队列主题模式的标签形式 589 FilterType *string `json:"FilterType,omitempty" name:"FilterType"` 590} 591 592type DeleteAliasRequest struct { 593 *tchttp.BaseRequest 594 595 // 函数名称 596 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 597 598 // 别名的名称 599 Name *string `json:"Name,omitempty" name:"Name"` 600 601 // 函数所在的命名空间 602 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 603} 604 605func (r *DeleteAliasRequest) ToJsonString() string { 606 b, _ := json.Marshal(r) 607 return string(b) 608} 609 610// FromJsonString It is highly **NOT** recommended to use this function 611// because it has no param check, nor strict type check 612func (r *DeleteAliasRequest) FromJsonString(s string) error { 613 f := make(map[string]interface{}) 614 if err := json.Unmarshal([]byte(s), &f); err != nil { 615 return err 616 } 617 delete(f, "FunctionName") 618 delete(f, "Name") 619 delete(f, "Namespace") 620 if len(f) > 0 { 621 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteAliasRequest has unknown keys!", "") 622 } 623 return json.Unmarshal([]byte(s), &r) 624} 625 626type DeleteAliasResponse struct { 627 *tchttp.BaseResponse 628 Response *struct { 629 630 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 631 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 632 } `json:"Response"` 633} 634 635func (r *DeleteAliasResponse) ToJsonString() string { 636 b, _ := json.Marshal(r) 637 return string(b) 638} 639 640// FromJsonString It is highly **NOT** recommended to use this function 641// because it has no param check, nor strict type check 642func (r *DeleteAliasResponse) FromJsonString(s string) error { 643 return json.Unmarshal([]byte(s), &r) 644} 645 646type DeleteFunctionRequest struct { 647 *tchttp.BaseRequest 648 649 // 要删除的函数名称 650 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 651 652 // 函数所属命名空间 653 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 654 655 // 函数版本 656 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 657} 658 659func (r *DeleteFunctionRequest) ToJsonString() string { 660 b, _ := json.Marshal(r) 661 return string(b) 662} 663 664// FromJsonString It is highly **NOT** recommended to use this function 665// because it has no param check, nor strict type check 666func (r *DeleteFunctionRequest) FromJsonString(s string) error { 667 f := make(map[string]interface{}) 668 if err := json.Unmarshal([]byte(s), &f); err != nil { 669 return err 670 } 671 delete(f, "FunctionName") 672 delete(f, "Namespace") 673 delete(f, "Qualifier") 674 if len(f) > 0 { 675 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteFunctionRequest has unknown keys!", "") 676 } 677 return json.Unmarshal([]byte(s), &r) 678} 679 680type DeleteFunctionResponse struct { 681 *tchttp.BaseResponse 682 Response *struct { 683 684 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 685 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 686 } `json:"Response"` 687} 688 689func (r *DeleteFunctionResponse) ToJsonString() string { 690 b, _ := json.Marshal(r) 691 return string(b) 692} 693 694// FromJsonString It is highly **NOT** recommended to use this function 695// because it has no param check, nor strict type check 696func (r *DeleteFunctionResponse) FromJsonString(s string) error { 697 return json.Unmarshal([]byte(s), &r) 698} 699 700type DeleteLayerVersionRequest struct { 701 *tchttp.BaseRequest 702 703 // 层名称 704 LayerName *string `json:"LayerName,omitempty" name:"LayerName"` 705 706 // 版本号 707 LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"` 708} 709 710func (r *DeleteLayerVersionRequest) ToJsonString() string { 711 b, _ := json.Marshal(r) 712 return string(b) 713} 714 715// FromJsonString It is highly **NOT** recommended to use this function 716// because it has no param check, nor strict type check 717func (r *DeleteLayerVersionRequest) FromJsonString(s string) error { 718 f := make(map[string]interface{}) 719 if err := json.Unmarshal([]byte(s), &f); err != nil { 720 return err 721 } 722 delete(f, "LayerName") 723 delete(f, "LayerVersion") 724 if len(f) > 0 { 725 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteLayerVersionRequest has unknown keys!", "") 726 } 727 return json.Unmarshal([]byte(s), &r) 728} 729 730type DeleteLayerVersionResponse struct { 731 *tchttp.BaseResponse 732 Response *struct { 733 734 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 735 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 736 } `json:"Response"` 737} 738 739func (r *DeleteLayerVersionResponse) ToJsonString() string { 740 b, _ := json.Marshal(r) 741 return string(b) 742} 743 744// FromJsonString It is highly **NOT** recommended to use this function 745// because it has no param check, nor strict type check 746func (r *DeleteLayerVersionResponse) FromJsonString(s string) error { 747 return json.Unmarshal([]byte(s), &r) 748} 749 750type DeleteNamespaceRequest struct { 751 *tchttp.BaseRequest 752 753 // 命名空间名称 754 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 755} 756 757func (r *DeleteNamespaceRequest) ToJsonString() string { 758 b, _ := json.Marshal(r) 759 return string(b) 760} 761 762// FromJsonString It is highly **NOT** recommended to use this function 763// because it has no param check, nor strict type check 764func (r *DeleteNamespaceRequest) FromJsonString(s string) error { 765 f := make(map[string]interface{}) 766 if err := json.Unmarshal([]byte(s), &f); err != nil { 767 return err 768 } 769 delete(f, "Namespace") 770 if len(f) > 0 { 771 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteNamespaceRequest has unknown keys!", "") 772 } 773 return json.Unmarshal([]byte(s), &r) 774} 775 776type DeleteNamespaceResponse struct { 777 *tchttp.BaseResponse 778 Response *struct { 779 780 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 781 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 782 } `json:"Response"` 783} 784 785func (r *DeleteNamespaceResponse) ToJsonString() string { 786 b, _ := json.Marshal(r) 787 return string(b) 788} 789 790// FromJsonString It is highly **NOT** recommended to use this function 791// because it has no param check, nor strict type check 792func (r *DeleteNamespaceResponse) FromJsonString(s string) error { 793 return json.Unmarshal([]byte(s), &r) 794} 795 796type DeleteProvisionedConcurrencyConfigRequest struct { 797 *tchttp.BaseRequest 798 799 // 需要删除预置并发的函数的名称 800 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 801 802 // 函数的版本号 803 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 804 805 // 函数所属命名空间,默认为default 806 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 807} 808 809func (r *DeleteProvisionedConcurrencyConfigRequest) ToJsonString() string { 810 b, _ := json.Marshal(r) 811 return string(b) 812} 813 814// FromJsonString It is highly **NOT** recommended to use this function 815// because it has no param check, nor strict type check 816func (r *DeleteProvisionedConcurrencyConfigRequest) FromJsonString(s string) error { 817 f := make(map[string]interface{}) 818 if err := json.Unmarshal([]byte(s), &f); err != nil { 819 return err 820 } 821 delete(f, "FunctionName") 822 delete(f, "Qualifier") 823 delete(f, "Namespace") 824 if len(f) > 0 { 825 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteProvisionedConcurrencyConfigRequest has unknown keys!", "") 826 } 827 return json.Unmarshal([]byte(s), &r) 828} 829 830type DeleteProvisionedConcurrencyConfigResponse struct { 831 *tchttp.BaseResponse 832 Response *struct { 833 834 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 835 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 836 } `json:"Response"` 837} 838 839func (r *DeleteProvisionedConcurrencyConfigResponse) ToJsonString() string { 840 b, _ := json.Marshal(r) 841 return string(b) 842} 843 844// FromJsonString It is highly **NOT** recommended to use this function 845// because it has no param check, nor strict type check 846func (r *DeleteProvisionedConcurrencyConfigResponse) FromJsonString(s string) error { 847 return json.Unmarshal([]byte(s), &r) 848} 849 850type DeleteReservedConcurrencyConfigRequest struct { 851 *tchttp.BaseRequest 852 853 // 需要删除预置并发的函数的名称 854 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 855 856 // 函数所属命名空间,默认为default 857 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 858} 859 860func (r *DeleteReservedConcurrencyConfigRequest) ToJsonString() string { 861 b, _ := json.Marshal(r) 862 return string(b) 863} 864 865// FromJsonString It is highly **NOT** recommended to use this function 866// because it has no param check, nor strict type check 867func (r *DeleteReservedConcurrencyConfigRequest) FromJsonString(s string) error { 868 f := make(map[string]interface{}) 869 if err := json.Unmarshal([]byte(s), &f); err != nil { 870 return err 871 } 872 delete(f, "FunctionName") 873 delete(f, "Namespace") 874 if len(f) > 0 { 875 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteReservedConcurrencyConfigRequest has unknown keys!", "") 876 } 877 return json.Unmarshal([]byte(s), &r) 878} 879 880type DeleteReservedConcurrencyConfigResponse struct { 881 *tchttp.BaseResponse 882 Response *struct { 883 884 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 885 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 886 } `json:"Response"` 887} 888 889func (r *DeleteReservedConcurrencyConfigResponse) ToJsonString() string { 890 b, _ := json.Marshal(r) 891 return string(b) 892} 893 894// FromJsonString It is highly **NOT** recommended to use this function 895// because it has no param check, nor strict type check 896func (r *DeleteReservedConcurrencyConfigResponse) FromJsonString(s string) error { 897 return json.Unmarshal([]byte(s), &r) 898} 899 900type DeleteTriggerRequest struct { 901 *tchttp.BaseRequest 902 903 // 函数的名称 904 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 905 906 // 要删除的触发器名称 907 TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` 908 909 // 要删除的触发器类型,目前支持 cos 、cmq、 timer、ckafka 类型 910 Type *string `json:"Type,omitempty" name:"Type"` 911 912 // 函数所属命名空间 913 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 914 915 // 如果删除的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果删除的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段 916 TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"` 917 918 // 函数的版本信息 919 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 920} 921 922func (r *DeleteTriggerRequest) ToJsonString() string { 923 b, _ := json.Marshal(r) 924 return string(b) 925} 926 927// FromJsonString It is highly **NOT** recommended to use this function 928// because it has no param check, nor strict type check 929func (r *DeleteTriggerRequest) FromJsonString(s string) error { 930 f := make(map[string]interface{}) 931 if err := json.Unmarshal([]byte(s), &f); err != nil { 932 return err 933 } 934 delete(f, "FunctionName") 935 delete(f, "TriggerName") 936 delete(f, "Type") 937 delete(f, "Namespace") 938 delete(f, "TriggerDesc") 939 delete(f, "Qualifier") 940 if len(f) > 0 { 941 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTriggerRequest has unknown keys!", "") 942 } 943 return json.Unmarshal([]byte(s), &r) 944} 945 946type DeleteTriggerResponse struct { 947 *tchttp.BaseResponse 948 Response *struct { 949 950 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 951 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 952 } `json:"Response"` 953} 954 955func (r *DeleteTriggerResponse) ToJsonString() string { 956 b, _ := json.Marshal(r) 957 return string(b) 958} 959 960// FromJsonString It is highly **NOT** recommended to use this function 961// because it has no param check, nor strict type check 962func (r *DeleteTriggerResponse) FromJsonString(s string) error { 963 return json.Unmarshal([]byte(s), &r) 964} 965 966type EipConfigIn struct { 967 968 // Eip开启状态,取值['ENABLE','DISABLE'] 969 EipStatus *string `json:"EipStatus,omitempty" name:"EipStatus"` 970} 971 972type EipConfigOut struct { 973 974 // 是否是固定IP,["ENABLE","DISABLE"] 975 EipStatus *string `json:"EipStatus,omitempty" name:"EipStatus"` 976 977 // IP列表 978 // 注意:此字段可能返回 null,表示取不到有效值。 979 EipAddress []*string `json:"EipAddress,omitempty" name:"EipAddress"` 980} 981 982type EipOutConfig struct { 983 984 // 是否是固定IP,["TRUE","FALSE"] 985 EipFixed *string `json:"EipFixed,omitempty" name:"EipFixed"` 986 987 // IP列表 988 Eips []*string `json:"Eips,omitempty" name:"Eips"` 989} 990 991type Environment struct { 992 993 // 环境变量数组 994 Variables []*Variable `json:"Variables,omitempty" name:"Variables"` 995} 996 997type Filter struct { 998 999 // 需要过滤的字段。 1000 Name *string `json:"Name,omitempty" name:"Name"` 1001 1002 // 字段的过滤值。 1003 Values []*string `json:"Values,omitempty" name:"Values"` 1004} 1005 1006type Function struct { 1007 1008 // 修改时间 1009 ModTime *string `json:"ModTime,omitempty" name:"ModTime"` 1010 1011 // 创建时间 1012 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 1013 1014 // 运行时 1015 Runtime *string `json:"Runtime,omitempty" name:"Runtime"` 1016 1017 // 函数名称 1018 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1019 1020 // 函数ID 1021 FunctionId *string `json:"FunctionId,omitempty" name:"FunctionId"` 1022 1023 // 命名空间 1024 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1025 1026 // 函数状态,状态值及流转[参考此处](https://cloud.tencent.com/document/product/583/47175) 1027 Status *string `json:"Status,omitempty" name:"Status"` 1028 1029 // 函数状态详情 1030 StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` 1031 1032 // 函数描述 1033 Description *string `json:"Description,omitempty" name:"Description"` 1034 1035 // 函数标签 1036 Tags []*Tag `json:"Tags,omitempty" name:"Tags"` 1037 1038 // 函数类型,取值为 HTTP 或者 Event 1039 Type *string `json:"Type,omitempty" name:"Type"` 1040 1041 // 函数状态失败原因 1042 StatusReasons []*StatusReason `json:"StatusReasons,omitempty" name:"StatusReasons"` 1043 1044 // 函数所有版本预置并发内存总和 1045 // 注意:此字段可能返回 null,表示取不到有效值。 1046 TotalProvisionedConcurrencyMem *uint64 `json:"TotalProvisionedConcurrencyMem,omitempty" name:"TotalProvisionedConcurrencyMem"` 1047 1048 // 函数并发保留内存 1049 // 注意:此字段可能返回 null,表示取不到有效值。 1050 ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitempty" name:"ReservedConcurrencyMem"` 1051} 1052 1053type FunctionLog struct { 1054 1055 // 函数的名称 1056 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1057 1058 // 函数执行完成后的返回值 1059 RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"` 1060 1061 // 执行该函数对应的requestId 1062 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1063 1064 // 函数开始执行时的时间点 1065 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 1066 1067 // 函数执行结果,如果是 0 表示执行成功,其他值表示失败 1068 RetCode *int64 `json:"RetCode,omitempty" name:"RetCode"` 1069 1070 // 函数调用是否结束,如果是 1 表示执行结束,其他值表示调用异常 1071 InvokeFinished *int64 `json:"InvokeFinished,omitempty" name:"InvokeFinished"` 1072 1073 // 函数执行耗时,单位为 ms 1074 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 1075 1076 // 函数计费时间,根据 duration 向上取最近的 100ms,单位为ms 1077 BillDuration *int64 `json:"BillDuration,omitempty" name:"BillDuration"` 1078 1079 // 函数执行时消耗实际内存大小,单位为 Byte 1080 MemUsage *int64 `json:"MemUsage,omitempty" name:"MemUsage"` 1081 1082 // 函数执行过程中的日志输出 1083 Log *string `json:"Log,omitempty" name:"Log"` 1084 1085 // 日志等级 1086 Level *string `json:"Level,omitempty" name:"Level"` 1087 1088 // 日志来源 1089 Source *string `json:"Source,omitempty" name:"Source"` 1090 1091 // 重试次数 1092 RetryNum *uint64 `json:"RetryNum,omitempty" name:"RetryNum"` 1093} 1094 1095type FunctionVersion struct { 1096 1097 // 函数版本名称 1098 Version *string `json:"Version,omitempty" name:"Version"` 1099 1100 // 版本描述信息 1101 // 注意:此字段可能返回 null,表示取不到有效值。 1102 Description *string `json:"Description,omitempty" name:"Description"` 1103 1104 // 创建时间 1105 // 注意:此字段可能返回 null,表示取不到有效值。 1106 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 1107 1108 // 更新时间 1109 // 注意:此字段可能返回 null,表示取不到有效值。 1110 ModTime *string `json:"ModTime,omitempty" name:"ModTime"` 1111} 1112 1113type GetAccountRequest struct { 1114 *tchttp.BaseRequest 1115} 1116 1117func (r *GetAccountRequest) ToJsonString() string { 1118 b, _ := json.Marshal(r) 1119 return string(b) 1120} 1121 1122// FromJsonString It is highly **NOT** recommended to use this function 1123// because it has no param check, nor strict type check 1124func (r *GetAccountRequest) FromJsonString(s string) error { 1125 f := make(map[string]interface{}) 1126 if err := json.Unmarshal([]byte(s), &f); err != nil { 1127 return err 1128 } 1129 if len(f) > 0 { 1130 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetAccountRequest has unknown keys!", "") 1131 } 1132 return json.Unmarshal([]byte(s), &r) 1133} 1134 1135type GetAccountResponse struct { 1136 *tchttp.BaseResponse 1137 Response *struct { 1138 1139 // 命名空间已使用的信息 1140 AccountUsage *UsageInfo `json:"AccountUsage,omitempty" name:"AccountUsage"` 1141 1142 // 命名空间限制的信息 1143 AccountLimit *LimitsInfo `json:"AccountLimit,omitempty" name:"AccountLimit"` 1144 1145 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1146 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1147 } `json:"Response"` 1148} 1149 1150func (r *GetAccountResponse) ToJsonString() string { 1151 b, _ := json.Marshal(r) 1152 return string(b) 1153} 1154 1155// FromJsonString It is highly **NOT** recommended to use this function 1156// because it has no param check, nor strict type check 1157func (r *GetAccountResponse) FromJsonString(s string) error { 1158 return json.Unmarshal([]byte(s), &r) 1159} 1160 1161type GetAliasRequest struct { 1162 *tchttp.BaseRequest 1163 1164 // 函数名称 1165 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1166 1167 // 别名的名称 1168 Name *string `json:"Name,omitempty" name:"Name"` 1169 1170 // 函数所在的命名空间 1171 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1172} 1173 1174func (r *GetAliasRequest) ToJsonString() string { 1175 b, _ := json.Marshal(r) 1176 return string(b) 1177} 1178 1179// FromJsonString It is highly **NOT** recommended to use this function 1180// because it has no param check, nor strict type check 1181func (r *GetAliasRequest) FromJsonString(s string) error { 1182 f := make(map[string]interface{}) 1183 if err := json.Unmarshal([]byte(s), &f); err != nil { 1184 return err 1185 } 1186 delete(f, "FunctionName") 1187 delete(f, "Name") 1188 delete(f, "Namespace") 1189 if len(f) > 0 { 1190 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetAliasRequest has unknown keys!", "") 1191 } 1192 return json.Unmarshal([]byte(s), &r) 1193} 1194 1195type GetAliasResponse struct { 1196 *tchttp.BaseResponse 1197 Response *struct { 1198 1199 // 别名指向的主版本 1200 FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"` 1201 1202 // 别名的名称 1203 Name *string `json:"Name,omitempty" name:"Name"` 1204 1205 // 别名的路由信息 1206 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitempty" name:"RoutingConfig"` 1207 1208 // 别名的描述 1209 // 注意:此字段可能返回 null,表示取不到有效值。 1210 Description *string `json:"Description,omitempty" name:"Description"` 1211 1212 // 创建时间 1213 // 注意:此字段可能返回 null,表示取不到有效值。 1214 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 1215 1216 // 更新时间 1217 // 注意:此字段可能返回 null,表示取不到有效值。 1218 ModTime *string `json:"ModTime,omitempty" name:"ModTime"` 1219 1220 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1221 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1222 } `json:"Response"` 1223} 1224 1225func (r *GetAliasResponse) ToJsonString() string { 1226 b, _ := json.Marshal(r) 1227 return string(b) 1228} 1229 1230// FromJsonString It is highly **NOT** recommended to use this function 1231// because it has no param check, nor strict type check 1232func (r *GetAliasResponse) FromJsonString(s string) error { 1233 return json.Unmarshal([]byte(s), &r) 1234} 1235 1236type GetFunctionAddressRequest struct { 1237 *tchttp.BaseRequest 1238 1239 // 函数的名称 1240 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1241 1242 // 函数的版本 1243 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 1244 1245 // 函数的命名空间 1246 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1247} 1248 1249func (r *GetFunctionAddressRequest) ToJsonString() string { 1250 b, _ := json.Marshal(r) 1251 return string(b) 1252} 1253 1254// FromJsonString It is highly **NOT** recommended to use this function 1255// because it has no param check, nor strict type check 1256func (r *GetFunctionAddressRequest) FromJsonString(s string) error { 1257 f := make(map[string]interface{}) 1258 if err := json.Unmarshal([]byte(s), &f); err != nil { 1259 return err 1260 } 1261 delete(f, "FunctionName") 1262 delete(f, "Qualifier") 1263 delete(f, "Namespace") 1264 if len(f) > 0 { 1265 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetFunctionAddressRequest has unknown keys!", "") 1266 } 1267 return json.Unmarshal([]byte(s), &r) 1268} 1269 1270type GetFunctionAddressResponse struct { 1271 *tchttp.BaseResponse 1272 Response *struct { 1273 1274 // 函数的Cos地址 1275 Url *string `json:"Url,omitempty" name:"Url"` 1276 1277 // 函数的SHA256编码 1278 CodeSha256 *string `json:"CodeSha256,omitempty" name:"CodeSha256"` 1279 1280 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1281 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1282 } `json:"Response"` 1283} 1284 1285func (r *GetFunctionAddressResponse) ToJsonString() string { 1286 b, _ := json.Marshal(r) 1287 return string(b) 1288} 1289 1290// FromJsonString It is highly **NOT** recommended to use this function 1291// because it has no param check, nor strict type check 1292func (r *GetFunctionAddressResponse) FromJsonString(s string) error { 1293 return json.Unmarshal([]byte(s), &r) 1294} 1295 1296type GetFunctionEventInvokeConfigRequest struct { 1297 *tchttp.BaseRequest 1298 1299 // 函数名称 1300 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1301 1302 // 函数所属命名空间,默认为default 1303 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1304 1305 // 函数版本,默认为$LATEST 1306 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 1307} 1308 1309func (r *GetFunctionEventInvokeConfigRequest) ToJsonString() string { 1310 b, _ := json.Marshal(r) 1311 return string(b) 1312} 1313 1314// FromJsonString It is highly **NOT** recommended to use this function 1315// because it has no param check, nor strict type check 1316func (r *GetFunctionEventInvokeConfigRequest) FromJsonString(s string) error { 1317 f := make(map[string]interface{}) 1318 if err := json.Unmarshal([]byte(s), &f); err != nil { 1319 return err 1320 } 1321 delete(f, "FunctionName") 1322 delete(f, "Namespace") 1323 delete(f, "Qualifier") 1324 if len(f) > 0 { 1325 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetFunctionEventInvokeConfigRequest has unknown keys!", "") 1326 } 1327 return json.Unmarshal([]byte(s), &r) 1328} 1329 1330type GetFunctionEventInvokeConfigResponse struct { 1331 *tchttp.BaseResponse 1332 Response *struct { 1333 1334 // 异步重试配置信息 1335 AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitempty" name:"AsyncTriggerConfig"` 1336 1337 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1338 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1339 } `json:"Response"` 1340} 1341 1342func (r *GetFunctionEventInvokeConfigResponse) ToJsonString() string { 1343 b, _ := json.Marshal(r) 1344 return string(b) 1345} 1346 1347// FromJsonString It is highly **NOT** recommended to use this function 1348// because it has no param check, nor strict type check 1349func (r *GetFunctionEventInvokeConfigResponse) FromJsonString(s string) error { 1350 return json.Unmarshal([]byte(s), &r) 1351} 1352 1353type GetFunctionLogsRequest struct { 1354 *tchttp.BaseRequest 1355 1356 // 函数的名称。 1357 // - 为保证[获取函数运行日志](https://cloud.tencent.com/document/product/583/18583)接口`GetFunctionLogs`兼容性,输入参数`FunctionName`仍为非必填项,但建议填写该参数,否则可能导致日志获取失败。 1358 // - 函数关联日志服务后,建议使用[日志服务](https://cloud.tencent.com/document/product/614/16875)相关接口以获得最佳日志检索体验。 1359 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1360 1361 // 数据的偏移量,Offset+Limit不能大于10000 1362 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 1363 1364 // 返回数据的长度,Offset+Limit不能大于10000 1365 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 1366 1367 // 以升序还是降序的方式对日志进行排序,可选值 desc和 asc 1368 Order *string `json:"Order,omitempty" name:"Order"` 1369 1370 // 根据某个字段排序日志,支持以下字段:function_name, duration, mem_usage, start_time 1371 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` 1372 1373 // 日志过滤条件。可用来区分正确和错误日志,filter.RetCode=not0 表示只返回错误日志,filter.RetCode=is0 表示只返回正确日志,不传,则返回所有日志 1374 Filter *LogFilter `json:"Filter,omitempty" name:"Filter"` 1375 1376 // 函数的命名空间 1377 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1378 1379 // 函数的版本 1380 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 1381 1382 // 执行该函数对应的requestId 1383 FunctionRequestId *string `json:"FunctionRequestId,omitempty" name:"FunctionRequestId"` 1384 1385 // 查询的具体日期,例如:2017-05-16 20:00:00,只能与endtime相差一天之内 1386 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 1387 1388 // 查询的具体日期,例如:2017-05-16 20:59:59,只能与startTime相差一天之内 1389 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 1390 1391 // 该字段已下线 1392 SearchContext *LogSearchContext `json:"SearchContext,omitempty" name:"SearchContext"` 1393} 1394 1395func (r *GetFunctionLogsRequest) ToJsonString() string { 1396 b, _ := json.Marshal(r) 1397 return string(b) 1398} 1399 1400// FromJsonString It is highly **NOT** recommended to use this function 1401// because it has no param check, nor strict type check 1402func (r *GetFunctionLogsRequest) FromJsonString(s string) error { 1403 f := make(map[string]interface{}) 1404 if err := json.Unmarshal([]byte(s), &f); err != nil { 1405 return err 1406 } 1407 delete(f, "FunctionName") 1408 delete(f, "Offset") 1409 delete(f, "Limit") 1410 delete(f, "Order") 1411 delete(f, "OrderBy") 1412 delete(f, "Filter") 1413 delete(f, "Namespace") 1414 delete(f, "Qualifier") 1415 delete(f, "FunctionRequestId") 1416 delete(f, "StartTime") 1417 delete(f, "EndTime") 1418 delete(f, "SearchContext") 1419 if len(f) > 0 { 1420 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetFunctionLogsRequest has unknown keys!", "") 1421 } 1422 return json.Unmarshal([]byte(s), &r) 1423} 1424 1425type GetFunctionLogsResponse struct { 1426 *tchttp.BaseResponse 1427 Response *struct { 1428 1429 // 函数日志的总数 1430 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 1431 1432 // 函数日志信息 1433 Data []*FunctionLog `json:"Data,omitempty" name:"Data"` 1434 1435 // 该字段已下线 1436 SearchContext *LogSearchContext `json:"SearchContext,omitempty" name:"SearchContext"` 1437 1438 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1439 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1440 } `json:"Response"` 1441} 1442 1443func (r *GetFunctionLogsResponse) ToJsonString() string { 1444 b, _ := json.Marshal(r) 1445 return string(b) 1446} 1447 1448// FromJsonString It is highly **NOT** recommended to use this function 1449// because it has no param check, nor strict type check 1450func (r *GetFunctionLogsResponse) FromJsonString(s string) error { 1451 return json.Unmarshal([]byte(s), &r) 1452} 1453 1454type GetFunctionRequest struct { 1455 *tchttp.BaseRequest 1456 1457 // 需要获取详情的函数名称 1458 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1459 1460 // 函数的版本号 1461 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 1462 1463 // 函数所属命名空间 1464 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1465 1466 // 是否显示代码, TRUE表示显示代码,FALSE表示不显示代码,大于1M的入口文件不会显示 1467 ShowCode *string `json:"ShowCode,omitempty" name:"ShowCode"` 1468} 1469 1470func (r *GetFunctionRequest) ToJsonString() string { 1471 b, _ := json.Marshal(r) 1472 return string(b) 1473} 1474 1475// FromJsonString It is highly **NOT** recommended to use this function 1476// because it has no param check, nor strict type check 1477func (r *GetFunctionRequest) FromJsonString(s string) error { 1478 f := make(map[string]interface{}) 1479 if err := json.Unmarshal([]byte(s), &f); err != nil { 1480 return err 1481 } 1482 delete(f, "FunctionName") 1483 delete(f, "Qualifier") 1484 delete(f, "Namespace") 1485 delete(f, "ShowCode") 1486 if len(f) > 0 { 1487 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetFunctionRequest has unknown keys!", "") 1488 } 1489 return json.Unmarshal([]byte(s), &r) 1490} 1491 1492type GetFunctionResponse struct { 1493 *tchttp.BaseResponse 1494 Response *struct { 1495 1496 // 函数的最后修改时间 1497 ModTime *string `json:"ModTime,omitempty" name:"ModTime"` 1498 1499 // 函数的代码 1500 CodeInfo *string `json:"CodeInfo,omitempty" name:"CodeInfo"` 1501 1502 // 函数的描述信息 1503 Description *string `json:"Description,omitempty" name:"Description"` 1504 1505 // 函数的触发器列表 1506 Triggers []*Trigger `json:"Triggers,omitempty" name:"Triggers"` 1507 1508 // 函数的入口 1509 Handler *string `json:"Handler,omitempty" name:"Handler"` 1510 1511 // 函数代码大小 1512 CodeSize *int64 `json:"CodeSize,omitempty" name:"CodeSize"` 1513 1514 // 函数的超时时间 1515 Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"` 1516 1517 // 函数的版本 1518 FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"` 1519 1520 // 函数的最大可用内存 1521 MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"` 1522 1523 // 函数的运行环境 1524 Runtime *string `json:"Runtime,omitempty" name:"Runtime"` 1525 1526 // 函数的名称 1527 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1528 1529 // 函数的私有网络 1530 VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"` 1531 1532 // 是否使用GPU 1533 UseGpu *string `json:"UseGpu,omitempty" name:"UseGpu"` 1534 1535 // 函数的环境变量 1536 Environment *Environment `json:"Environment,omitempty" name:"Environment"` 1537 1538 // 代码是否正确 1539 CodeResult *string `json:"CodeResult,omitempty" name:"CodeResult"` 1540 1541 // 代码错误信息 1542 CodeError *string `json:"CodeError,omitempty" name:"CodeError"` 1543 1544 // 代码错误码 1545 ErrNo *int64 `json:"ErrNo,omitempty" name:"ErrNo"` 1546 1547 // 函数的命名空间 1548 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1549 1550 // 函数绑定的角色 1551 Role *string `json:"Role,omitempty" name:"Role"` 1552 1553 // 是否自动安装依赖 1554 InstallDependency *string `json:"InstallDependency,omitempty" name:"InstallDependency"` 1555 1556 // 函数状态,状态值及流转[参考说明](https://cloud.tencent.com/document/product/583/47175) 1557 Status *string `json:"Status,omitempty" name:"Status"` 1558 1559 // 状态描述 1560 StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"` 1561 1562 // 日志投递到的Cls日志集 1563 ClsLogsetId *string `json:"ClsLogsetId,omitempty" name:"ClsLogsetId"` 1564 1565 // 日志投递到的Cls Topic 1566 ClsTopicId *string `json:"ClsTopicId,omitempty" name:"ClsTopicId"` 1567 1568 // 函数ID 1569 FunctionId *string `json:"FunctionId,omitempty" name:"FunctionId"` 1570 1571 // 函数的标签列表 1572 Tags []*Tag `json:"Tags,omitempty" name:"Tags"` 1573 1574 // EipConfig配置 1575 EipConfig *EipOutConfig `json:"EipConfig,omitempty" name:"EipConfig"` 1576 1577 // 域名信息 1578 AccessInfo *AccessInfo `json:"AccessInfo,omitempty" name:"AccessInfo"` 1579 1580 // 函数类型,取值为HTTP或者Event 1581 Type *string `json:"Type,omitempty" name:"Type"` 1582 1583 // 是否启用L5 1584 L5Enable *string `json:"L5Enable,omitempty" name:"L5Enable"` 1585 1586 // 函数关联的Layer版本信息 1587 Layers []*LayerVersionInfo `json:"Layers,omitempty" name:"Layers"` 1588 1589 // 函数关联的死信队列信息 1590 DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitempty" name:"DeadLetterConfig"` 1591 1592 // 函数创建回见 1593 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 1594 1595 // 公网访问配置 1596 // 注意:此字段可能返回 null,表示取不到有效值。 1597 PublicNetConfig *PublicNetConfigOut `json:"PublicNetConfig,omitempty" name:"PublicNetConfig"` 1598 1599 // 是否启用Ons 1600 // 注意:此字段可能返回 null,表示取不到有效值。 1601 OnsEnable *string `json:"OnsEnable,omitempty" name:"OnsEnable"` 1602 1603 // 文件系统配置参数,用于云函数挂载文件系统 1604 // 注意:此字段可能返回 null,表示取不到有效值。 1605 CfsConfig *CfsConfig `json:"CfsConfig,omitempty" name:"CfsConfig"` 1606 1607 // 函数的计费状态,状态值[参考此处](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) 1608 // 注意:此字段可能返回 null,表示取不到有效值。 1609 AvailableStatus *string `json:"AvailableStatus,omitempty" name:"AvailableStatus"` 1610 1611 // 函数版本 1612 // 注意:此字段可能返回 null,表示取不到有效值。 1613 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 1614 1615 // 函数初始化超时时间 1616 InitTimeout *int64 `json:"InitTimeout,omitempty" name:"InitTimeout"` 1617 1618 // 函数状态失败原因 1619 // 注意:此字段可能返回 null,表示取不到有效值。 1620 StatusReasons []*StatusReason `json:"StatusReasons,omitempty" name:"StatusReasons"` 1621 1622 // 是否开启异步属性 1623 // 注意:此字段可能返回 null,表示取不到有效值。 1624 AsyncRunEnable *string `json:"AsyncRunEnable,omitempty" name:"AsyncRunEnable"` 1625 1626 // 是否开启事件追踪 1627 // 注意:此字段可能返回 null,表示取不到有效值。 1628 TraceEnable *string `json:"TraceEnable,omitempty" name:"TraceEnable"` 1629 1630 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1631 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1632 } `json:"Response"` 1633} 1634 1635func (r *GetFunctionResponse) ToJsonString() string { 1636 b, _ := json.Marshal(r) 1637 return string(b) 1638} 1639 1640// FromJsonString It is highly **NOT** recommended to use this function 1641// because it has no param check, nor strict type check 1642func (r *GetFunctionResponse) FromJsonString(s string) error { 1643 return json.Unmarshal([]byte(s), &r) 1644} 1645 1646type GetLayerVersionRequest struct { 1647 *tchttp.BaseRequest 1648 1649 // 层名称 1650 LayerName *string `json:"LayerName,omitempty" name:"LayerName"` 1651 1652 // 版本号 1653 LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"` 1654} 1655 1656func (r *GetLayerVersionRequest) ToJsonString() string { 1657 b, _ := json.Marshal(r) 1658 return string(b) 1659} 1660 1661// FromJsonString It is highly **NOT** recommended to use this function 1662// because it has no param check, nor strict type check 1663func (r *GetLayerVersionRequest) FromJsonString(s string) error { 1664 f := make(map[string]interface{}) 1665 if err := json.Unmarshal([]byte(s), &f); err != nil { 1666 return err 1667 } 1668 delete(f, "LayerName") 1669 delete(f, "LayerVersion") 1670 if len(f) > 0 { 1671 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetLayerVersionRequest has unknown keys!", "") 1672 } 1673 return json.Unmarshal([]byte(s), &r) 1674} 1675 1676type GetLayerVersionResponse struct { 1677 *tchttp.BaseResponse 1678 Response *struct { 1679 1680 // 适配的运行时 1681 CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitempty" name:"CompatibleRuntimes"` 1682 1683 // 层中版本文件的SHA256编码 1684 CodeSha256 *string `json:"CodeSha256,omitempty" name:"CodeSha256"` 1685 1686 // 层中版本文件的下载地址 1687 Location *string `json:"Location,omitempty" name:"Location"` 1688 1689 // 版本的创建时间 1690 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 1691 1692 // 版本的描述 1693 Description *string `json:"Description,omitempty" name:"Description"` 1694 1695 // 许可证信息 1696 LicenseInfo *string `json:"LicenseInfo,omitempty" name:"LicenseInfo"` 1697 1698 // 版本号 1699 LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"` 1700 1701 // 层名称 1702 LayerName *string `json:"LayerName,omitempty" name:"LayerName"` 1703 1704 // 层的具体版本当前状态,可能取值: 1705 // Active 正常 1706 // Publishing 发布中 1707 // PublishFailed 发布失败 1708 // Deleted 已删除 1709 Status *string `json:"Status,omitempty" name:"Status"` 1710 1711 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1712 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1713 } `json:"Response"` 1714} 1715 1716func (r *GetLayerVersionResponse) ToJsonString() string { 1717 b, _ := json.Marshal(r) 1718 return string(b) 1719} 1720 1721// FromJsonString It is highly **NOT** recommended to use this function 1722// because it has no param check, nor strict type check 1723func (r *GetLayerVersionResponse) FromJsonString(s string) error { 1724 return json.Unmarshal([]byte(s), &r) 1725} 1726 1727type GetProvisionedConcurrencyConfigRequest struct { 1728 *tchttp.BaseRequest 1729 1730 // 需要获取预置并发详情的函数名称。 1731 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1732 1733 // 函数所在的命名空间,默认为default。 1734 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1735 1736 // 函数版本号,不传则返回函数所有版本的预置并发信息。 1737 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 1738} 1739 1740func (r *GetProvisionedConcurrencyConfigRequest) ToJsonString() string { 1741 b, _ := json.Marshal(r) 1742 return string(b) 1743} 1744 1745// FromJsonString It is highly **NOT** recommended to use this function 1746// because it has no param check, nor strict type check 1747func (r *GetProvisionedConcurrencyConfigRequest) FromJsonString(s string) error { 1748 f := make(map[string]interface{}) 1749 if err := json.Unmarshal([]byte(s), &f); err != nil { 1750 return err 1751 } 1752 delete(f, "FunctionName") 1753 delete(f, "Namespace") 1754 delete(f, "Qualifier") 1755 if len(f) > 0 { 1756 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetProvisionedConcurrencyConfigRequest has unknown keys!", "") 1757 } 1758 return json.Unmarshal([]byte(s), &r) 1759} 1760 1761type GetProvisionedConcurrencyConfigResponse struct { 1762 *tchttp.BaseResponse 1763 Response *struct { 1764 1765 // 该函数剩余可配置的预置并发数。 1766 UnallocatedConcurrencyNum *uint64 `json:"UnallocatedConcurrencyNum,omitempty" name:"UnallocatedConcurrencyNum"` 1767 1768 // 函数已预置的并发配置详情。 1769 Allocated []*VersionProvisionedConcurrencyInfo `json:"Allocated,omitempty" name:"Allocated"` 1770 1771 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1772 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1773 } `json:"Response"` 1774} 1775 1776func (r *GetProvisionedConcurrencyConfigResponse) ToJsonString() string { 1777 b, _ := json.Marshal(r) 1778 return string(b) 1779} 1780 1781// FromJsonString It is highly **NOT** recommended to use this function 1782// because it has no param check, nor strict type check 1783func (r *GetProvisionedConcurrencyConfigResponse) FromJsonString(s string) error { 1784 return json.Unmarshal([]byte(s), &r) 1785} 1786 1787type GetReservedConcurrencyConfigRequest struct { 1788 *tchttp.BaseRequest 1789 1790 // 需要获取预置并发详情的函数名称。 1791 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1792 1793 // 函数所在的命名空间,默认为default。 1794 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1795} 1796 1797func (r *GetReservedConcurrencyConfigRequest) ToJsonString() string { 1798 b, _ := json.Marshal(r) 1799 return string(b) 1800} 1801 1802// FromJsonString It is highly **NOT** recommended to use this function 1803// because it has no param check, nor strict type check 1804func (r *GetReservedConcurrencyConfigRequest) FromJsonString(s string) error { 1805 f := make(map[string]interface{}) 1806 if err := json.Unmarshal([]byte(s), &f); err != nil { 1807 return err 1808 } 1809 delete(f, "FunctionName") 1810 delete(f, "Namespace") 1811 if len(f) > 0 { 1812 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetReservedConcurrencyConfigRequest has unknown keys!", "") 1813 } 1814 return json.Unmarshal([]byte(s), &r) 1815} 1816 1817type GetReservedConcurrencyConfigResponse struct { 1818 *tchttp.BaseResponse 1819 Response *struct { 1820 1821 // 该函数的保留并发内存。 1822 // 注意:此字段可能返回 null,表示取不到有效值。 1823 ReservedMem *uint64 `json:"ReservedMem,omitempty" name:"ReservedMem"` 1824 1825 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1826 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1827 } `json:"Response"` 1828} 1829 1830func (r *GetReservedConcurrencyConfigResponse) ToJsonString() string { 1831 b, _ := json.Marshal(r) 1832 return string(b) 1833} 1834 1835// FromJsonString It is highly **NOT** recommended to use this function 1836// because it has no param check, nor strict type check 1837func (r *GetReservedConcurrencyConfigResponse) FromJsonString(s string) error { 1838 return json.Unmarshal([]byte(s), &r) 1839} 1840 1841type InvokeFunctionRequest struct { 1842 *tchttp.BaseRequest 1843 1844 // 函数名称 1845 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1846 1847 // 触发函数的版本号或别名,默认值为$DEFAULT 1848 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 1849 1850 // 运行函数时的参数,以json格式传入,最大支持的参数长度是 1M 1851 Event *string `json:"Event,omitempty" name:"Event"` 1852 1853 // 同步调用时指定该字段,返回值会包含4K的日志,可选值为None和Tail,默认值为None。当该值为Tail时,返回参数中的Log字段会包含对应的函数执行日志 1854 LogType *string `json:"LogType,omitempty" name:"LogType"` 1855 1856 // 命名空间 1857 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1858 1859 // 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节 1860 RoutingKey *string `json:"RoutingKey,omitempty" name:"RoutingKey"` 1861} 1862 1863func (r *InvokeFunctionRequest) ToJsonString() string { 1864 b, _ := json.Marshal(r) 1865 return string(b) 1866} 1867 1868// FromJsonString It is highly **NOT** recommended to use this function 1869// because it has no param check, nor strict type check 1870func (r *InvokeFunctionRequest) FromJsonString(s string) error { 1871 f := make(map[string]interface{}) 1872 if err := json.Unmarshal([]byte(s), &f); err != nil { 1873 return err 1874 } 1875 delete(f, "FunctionName") 1876 delete(f, "Qualifier") 1877 delete(f, "Event") 1878 delete(f, "LogType") 1879 delete(f, "Namespace") 1880 delete(f, "RoutingKey") 1881 if len(f) > 0 { 1882 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InvokeFunctionRequest has unknown keys!", "") 1883 } 1884 return json.Unmarshal([]byte(s), &r) 1885} 1886 1887type InvokeFunctionResponse struct { 1888 *tchttp.BaseResponse 1889 Response *struct { 1890 1891 // 函数执行结果 1892 Result *Result `json:"Result,omitempty" name:"Result"` 1893 1894 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1895 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1896 } `json:"Response"` 1897} 1898 1899func (r *InvokeFunctionResponse) ToJsonString() string { 1900 b, _ := json.Marshal(r) 1901 return string(b) 1902} 1903 1904// FromJsonString It is highly **NOT** recommended to use this function 1905// because it has no param check, nor strict type check 1906func (r *InvokeFunctionResponse) FromJsonString(s string) error { 1907 return json.Unmarshal([]byte(s), &r) 1908} 1909 1910type InvokeRequest struct { 1911 *tchttp.BaseRequest 1912 1913 // 函数名称 1914 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 1915 1916 // RequestResponse(同步) 和 Event(异步),默认为同步 1917 InvocationType *string `json:"InvocationType,omitempty" name:"InvocationType"` 1918 1919 // 触发函数的版本号或别名 1920 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 1921 1922 // 运行函数时的参数,以json格式传入,最大支持的参数长度是 1M 1923 ClientContext *string `json:"ClientContext,omitempty" name:"ClientContext"` 1924 1925 // 同步调用时指定该字段,返回值会包含4K的日志,可选值为None和Tail,默认值为None。当该值为Tail时,返回参数中的Log字段会包含对应的函数执行日志 1926 LogType *string `json:"LogType,omitempty" name:"LogType"` 1927 1928 // 命名空间 1929 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 1930 1931 // 函数灰度流量控制调用,以json格式传入,例如{"k":"v"},注意kv都需要是字符串类型,最大支持的参数长度是1024字节 1932 RoutingKey *string `json:"RoutingKey,omitempty" name:"RoutingKey"` 1933} 1934 1935func (r *InvokeRequest) ToJsonString() string { 1936 b, _ := json.Marshal(r) 1937 return string(b) 1938} 1939 1940// FromJsonString It is highly **NOT** recommended to use this function 1941// because it has no param check, nor strict type check 1942func (r *InvokeRequest) FromJsonString(s string) error { 1943 f := make(map[string]interface{}) 1944 if err := json.Unmarshal([]byte(s), &f); err != nil { 1945 return err 1946 } 1947 delete(f, "FunctionName") 1948 delete(f, "InvocationType") 1949 delete(f, "Qualifier") 1950 delete(f, "ClientContext") 1951 delete(f, "LogType") 1952 delete(f, "Namespace") 1953 delete(f, "RoutingKey") 1954 if len(f) > 0 { 1955 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "InvokeRequest has unknown keys!", "") 1956 } 1957 return json.Unmarshal([]byte(s), &r) 1958} 1959 1960type InvokeResponse struct { 1961 *tchttp.BaseResponse 1962 Response *struct { 1963 1964 // 函数执行结果 1965 Result *Result `json:"Result,omitempty" name:"Result"` 1966 1967 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1968 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1969 } `json:"Response"` 1970} 1971 1972func (r *InvokeResponse) ToJsonString() string { 1973 b, _ := json.Marshal(r) 1974 return string(b) 1975} 1976 1977// FromJsonString It is highly **NOT** recommended to use this function 1978// because it has no param check, nor strict type check 1979func (r *InvokeResponse) FromJsonString(s string) error { 1980 return json.Unmarshal([]byte(s), &r) 1981} 1982 1983type LayerVersionInfo struct { 1984 1985 // 版本适用的运行时 1986 // 注意:此字段可能返回 null,表示取不到有效值。 1987 CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitempty" name:"CompatibleRuntimes"` 1988 1989 // 创建时间 1990 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 1991 1992 // 版本描述 1993 // 注意:此字段可能返回 null,表示取不到有效值。 1994 Description *string `json:"Description,omitempty" name:"Description"` 1995 1996 // 许可证信息 1997 // 注意:此字段可能返回 null,表示取不到有效值。 1998 LicenseInfo *string `json:"LicenseInfo,omitempty" name:"LicenseInfo"` 1999 2000 // 版本号 2001 LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"` 2002 2003 // 层名称 2004 LayerName *string `json:"LayerName,omitempty" name:"LayerName"` 2005 2006 // 层的具体版本当前状态,状态值[参考此处](https://cloud.tencent.com/document/product/583/47175#.E5.B1.82.EF.BC.88layer.EF.BC.89.E7.8A.B6.E6.80.81) 2007 Status *string `json:"Status,omitempty" name:"Status"` 2008} 2009 2010type LayerVersionSimple struct { 2011 2012 // layer名称 2013 LayerName *string `json:"LayerName,omitempty" name:"LayerName"` 2014 2015 // 版本号 2016 LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"` 2017} 2018 2019type LimitsInfo struct { 2020 2021 // 命名空间个数限制 2022 NamespacesCount *int64 `json:"NamespacesCount,omitempty" name:"NamespacesCount"` 2023 2024 // 命名空间限制信息 2025 Namespace []*NamespaceLimit `json:"Namespace,omitempty" name:"Namespace"` 2026} 2027 2028type ListAliasesRequest struct { 2029 *tchttp.BaseRequest 2030 2031 // 函数名称 2032 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 2033 2034 // 函数所在的命名空间 2035 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2036 2037 // 如果提供此参数,则只返回与该函数版本有关联的别名 2038 FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"` 2039 2040 // 数据偏移量,默认值为 0 2041 Offset *string `json:"Offset,omitempty" name:"Offset"` 2042 2043 // 返回数据长度,默认值为 20 2044 Limit *string `json:"Limit,omitempty" name:"Limit"` 2045} 2046 2047func (r *ListAliasesRequest) ToJsonString() string { 2048 b, _ := json.Marshal(r) 2049 return string(b) 2050} 2051 2052// FromJsonString It is highly **NOT** recommended to use this function 2053// because it has no param check, nor strict type check 2054func (r *ListAliasesRequest) FromJsonString(s string) error { 2055 f := make(map[string]interface{}) 2056 if err := json.Unmarshal([]byte(s), &f); err != nil { 2057 return err 2058 } 2059 delete(f, "FunctionName") 2060 delete(f, "Namespace") 2061 delete(f, "FunctionVersion") 2062 delete(f, "Offset") 2063 delete(f, "Limit") 2064 if len(f) > 0 { 2065 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListAliasesRequest has unknown keys!", "") 2066 } 2067 return json.Unmarshal([]byte(s), &r) 2068} 2069 2070type ListAliasesResponse struct { 2071 *tchttp.BaseResponse 2072 Response *struct { 2073 2074 // 别名列表 2075 Aliases []*Alias `json:"Aliases,omitempty" name:"Aliases"` 2076 2077 // 别名总数 2078 // 注意:此字段可能返回 null,表示取不到有效值。 2079 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 2080 2081 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2082 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2083 } `json:"Response"` 2084} 2085 2086func (r *ListAliasesResponse) ToJsonString() string { 2087 b, _ := json.Marshal(r) 2088 return string(b) 2089} 2090 2091// FromJsonString It is highly **NOT** recommended to use this function 2092// because it has no param check, nor strict type check 2093func (r *ListAliasesResponse) FromJsonString(s string) error { 2094 return json.Unmarshal([]byte(s), &r) 2095} 2096 2097type ListAsyncEventsRequest struct { 2098 *tchttp.BaseRequest 2099 2100 // 函数名称 2101 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 2102 2103 // 命名空间 2104 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2105 2106 // 过滤条件,函数版本 2107 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 2108 2109 // 过滤条件,调用类型列表 2110 InvokeType []*string `json:"InvokeType,omitempty" name:"InvokeType"` 2111 2112 // 过滤条件,事件状态列表 2113 Status []*string `json:"Status,omitempty" name:"Status"` 2114 2115 // 过滤条件,开始执行时间左闭右开区间 2116 StartTimeInterval *TimeInterval `json:"StartTimeInterval,omitempty" name:"StartTimeInterval"` 2117 2118 // 过滤条件,结束执行时间左闭右开区间 2119 EndTimeInterval *TimeInterval `json:"EndTimeInterval,omitempty" name:"EndTimeInterval"` 2120 2121 // 可选值 ASC 和 DESC,默认 DESC 2122 Order *string `json:"Order,omitempty" name:"Order"` 2123 2124 // 可选值 StartTime 和 EndTime,默认值 StartTime 2125 Orderby *string `json:"Orderby,omitempty" name:"Orderby"` 2126 2127 // 数据偏移量,默认值为 0 2128 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2129 2130 // 返回数据长度,默认值为 20,最大值 100 2131 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2132 2133 // 过滤条件,事件调用请求id 2134 InvokeRequestId *string `json:"InvokeRequestId,omitempty" name:"InvokeRequestId"` 2135} 2136 2137func (r *ListAsyncEventsRequest) ToJsonString() string { 2138 b, _ := json.Marshal(r) 2139 return string(b) 2140} 2141 2142// FromJsonString It is highly **NOT** recommended to use this function 2143// because it has no param check, nor strict type check 2144func (r *ListAsyncEventsRequest) FromJsonString(s string) error { 2145 f := make(map[string]interface{}) 2146 if err := json.Unmarshal([]byte(s), &f); err != nil { 2147 return err 2148 } 2149 delete(f, "FunctionName") 2150 delete(f, "Namespace") 2151 delete(f, "Qualifier") 2152 delete(f, "InvokeType") 2153 delete(f, "Status") 2154 delete(f, "StartTimeInterval") 2155 delete(f, "EndTimeInterval") 2156 delete(f, "Order") 2157 delete(f, "Orderby") 2158 delete(f, "Offset") 2159 delete(f, "Limit") 2160 delete(f, "InvokeRequestId") 2161 if len(f) > 0 { 2162 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListAsyncEventsRequest has unknown keys!", "") 2163 } 2164 return json.Unmarshal([]byte(s), &r) 2165} 2166 2167type ListAsyncEventsResponse struct { 2168 *tchttp.BaseResponse 2169 Response *struct { 2170 2171 // 满足过滤条件的事件总数 2172 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2173 2174 // 异步事件列表 2175 EventList []*AsyncEvent `json:"EventList,omitempty" name:"EventList"` 2176 2177 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2178 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2179 } `json:"Response"` 2180} 2181 2182func (r *ListAsyncEventsResponse) ToJsonString() string { 2183 b, _ := json.Marshal(r) 2184 return string(b) 2185} 2186 2187// FromJsonString It is highly **NOT** recommended to use this function 2188// because it has no param check, nor strict type check 2189func (r *ListAsyncEventsResponse) FromJsonString(s string) error { 2190 return json.Unmarshal([]byte(s), &r) 2191} 2192 2193type ListFunctionsRequest struct { 2194 *tchttp.BaseRequest 2195 2196 // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC 2197 Order *string `json:"Order,omitempty" name:"Order"` 2198 2199 // 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime, FunctionName 2200 Orderby *string `json:"Orderby,omitempty" name:"Orderby"` 2201 2202 // 数据偏移量,默认值为 0 2203 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2204 2205 // 返回数据长度,默认值为 20 2206 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2207 2208 // 支持FunctionName模糊匹配 2209 SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` 2210 2211 // 命名空间 2212 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2213 2214 // 函数描述,支持模糊搜索 2215 Description *string `json:"Description,omitempty" name:"Description"` 2216 2217 // 过滤条件。 2218 // - tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。 2219 // 2220 // 每次请求的Filters的上限为10,Filter.Values的上限为5。 2221 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` 2222} 2223 2224func (r *ListFunctionsRequest) ToJsonString() string { 2225 b, _ := json.Marshal(r) 2226 return string(b) 2227} 2228 2229// FromJsonString It is highly **NOT** recommended to use this function 2230// because it has no param check, nor strict type check 2231func (r *ListFunctionsRequest) FromJsonString(s string) error { 2232 f := make(map[string]interface{}) 2233 if err := json.Unmarshal([]byte(s), &f); err != nil { 2234 return err 2235 } 2236 delete(f, "Order") 2237 delete(f, "Orderby") 2238 delete(f, "Offset") 2239 delete(f, "Limit") 2240 delete(f, "SearchKey") 2241 delete(f, "Namespace") 2242 delete(f, "Description") 2243 delete(f, "Filters") 2244 if len(f) > 0 { 2245 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListFunctionsRequest has unknown keys!", "") 2246 } 2247 return json.Unmarshal([]byte(s), &r) 2248} 2249 2250type ListFunctionsResponse struct { 2251 *tchttp.BaseResponse 2252 Response *struct { 2253 2254 // 函数列表 2255 Functions []*Function `json:"Functions,omitempty" name:"Functions"` 2256 2257 // 总数 2258 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2259 2260 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2261 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2262 } `json:"Response"` 2263} 2264 2265func (r *ListFunctionsResponse) ToJsonString() string { 2266 b, _ := json.Marshal(r) 2267 return string(b) 2268} 2269 2270// FromJsonString It is highly **NOT** recommended to use this function 2271// because it has no param check, nor strict type check 2272func (r *ListFunctionsResponse) FromJsonString(s string) error { 2273 return json.Unmarshal([]byte(s), &r) 2274} 2275 2276type ListLayerVersionsRequest struct { 2277 *tchttp.BaseRequest 2278 2279 // 层名称 2280 LayerName *string `json:"LayerName,omitempty" name:"LayerName"` 2281 2282 // 适配的运行时 2283 CompatibleRuntime []*string `json:"CompatibleRuntime,omitempty" name:"CompatibleRuntime"` 2284} 2285 2286func (r *ListLayerVersionsRequest) ToJsonString() string { 2287 b, _ := json.Marshal(r) 2288 return string(b) 2289} 2290 2291// FromJsonString It is highly **NOT** recommended to use this function 2292// because it has no param check, nor strict type check 2293func (r *ListLayerVersionsRequest) FromJsonString(s string) error { 2294 f := make(map[string]interface{}) 2295 if err := json.Unmarshal([]byte(s), &f); err != nil { 2296 return err 2297 } 2298 delete(f, "LayerName") 2299 delete(f, "CompatibleRuntime") 2300 if len(f) > 0 { 2301 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListLayerVersionsRequest has unknown keys!", "") 2302 } 2303 return json.Unmarshal([]byte(s), &r) 2304} 2305 2306type ListLayerVersionsResponse struct { 2307 *tchttp.BaseResponse 2308 Response *struct { 2309 2310 // 层版本列表 2311 LayerVersions []*LayerVersionInfo `json:"LayerVersions,omitempty" name:"LayerVersions"` 2312 2313 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2314 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2315 } `json:"Response"` 2316} 2317 2318func (r *ListLayerVersionsResponse) ToJsonString() string { 2319 b, _ := json.Marshal(r) 2320 return string(b) 2321} 2322 2323// FromJsonString It is highly **NOT** recommended to use this function 2324// because it has no param check, nor strict type check 2325func (r *ListLayerVersionsResponse) FromJsonString(s string) error { 2326 return json.Unmarshal([]byte(s), &r) 2327} 2328 2329type ListLayersRequest struct { 2330 *tchttp.BaseRequest 2331 2332 // 适配的运行时 2333 CompatibleRuntime *string `json:"CompatibleRuntime,omitempty" name:"CompatibleRuntime"` 2334 2335 // 偏移位置 2336 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2337 2338 // 查询数目限制 2339 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2340 2341 // 查询key,模糊匹配名称 2342 SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` 2343} 2344 2345func (r *ListLayersRequest) ToJsonString() string { 2346 b, _ := json.Marshal(r) 2347 return string(b) 2348} 2349 2350// FromJsonString It is highly **NOT** recommended to use this function 2351// because it has no param check, nor strict type check 2352func (r *ListLayersRequest) FromJsonString(s string) error { 2353 f := make(map[string]interface{}) 2354 if err := json.Unmarshal([]byte(s), &f); err != nil { 2355 return err 2356 } 2357 delete(f, "CompatibleRuntime") 2358 delete(f, "Offset") 2359 delete(f, "Limit") 2360 delete(f, "SearchKey") 2361 if len(f) > 0 { 2362 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListLayersRequest has unknown keys!", "") 2363 } 2364 return json.Unmarshal([]byte(s), &r) 2365} 2366 2367type ListLayersResponse struct { 2368 *tchttp.BaseResponse 2369 Response *struct { 2370 2371 // 层列表 2372 Layers []*LayerVersionInfo `json:"Layers,omitempty" name:"Layers"` 2373 2374 // 层总数 2375 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2376 2377 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2378 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2379 } `json:"Response"` 2380} 2381 2382func (r *ListLayersResponse) ToJsonString() string { 2383 b, _ := json.Marshal(r) 2384 return string(b) 2385} 2386 2387// FromJsonString It is highly **NOT** recommended to use this function 2388// because it has no param check, nor strict type check 2389func (r *ListLayersResponse) FromJsonString(s string) error { 2390 return json.Unmarshal([]byte(s), &r) 2391} 2392 2393type ListNamespacesRequest struct { 2394 *tchttp.BaseRequest 2395 2396 // 返回数据长度,默认值为 20 2397 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 2398 2399 // 数据的偏移量,默认值为 0 2400 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 2401 2402 // 根据哪个字段进行返回结果排序,支持以下字段:Name,Updatetime 2403 Orderby *string `json:"Orderby,omitempty" name:"Orderby"` 2404 2405 // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC 2406 Order *string `json:"Order,omitempty" name:"Order"` 2407 2408 // 关键字匹配搜索,Key 可选值为 Namespace 和 Description,多个搜索条件之间是与的关系 2409 SearchKey []*SearchKey `json:"SearchKey,omitempty" name:"SearchKey"` 2410} 2411 2412func (r *ListNamespacesRequest) ToJsonString() string { 2413 b, _ := json.Marshal(r) 2414 return string(b) 2415} 2416 2417// FromJsonString It is highly **NOT** recommended to use this function 2418// because it has no param check, nor strict type check 2419func (r *ListNamespacesRequest) FromJsonString(s string) error { 2420 f := make(map[string]interface{}) 2421 if err := json.Unmarshal([]byte(s), &f); err != nil { 2422 return err 2423 } 2424 delete(f, "Limit") 2425 delete(f, "Offset") 2426 delete(f, "Orderby") 2427 delete(f, "Order") 2428 delete(f, "SearchKey") 2429 if len(f) > 0 { 2430 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListNamespacesRequest has unknown keys!", "") 2431 } 2432 return json.Unmarshal([]byte(s), &r) 2433} 2434 2435type ListNamespacesResponse struct { 2436 *tchttp.BaseResponse 2437 Response *struct { 2438 2439 // namespace详情 2440 Namespaces []*Namespace `json:"Namespaces,omitempty" name:"Namespaces"` 2441 2442 // 返回的namespace数量 2443 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 2444 2445 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2446 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2447 } `json:"Response"` 2448} 2449 2450func (r *ListNamespacesResponse) ToJsonString() string { 2451 b, _ := json.Marshal(r) 2452 return string(b) 2453} 2454 2455// FromJsonString It is highly **NOT** recommended to use this function 2456// because it has no param check, nor strict type check 2457func (r *ListNamespacesResponse) FromJsonString(s string) error { 2458 return json.Unmarshal([]byte(s), &r) 2459} 2460 2461type ListTriggersRequest struct { 2462 *tchttp.BaseRequest 2463 2464 // 函数名称 2465 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 2466 2467 // 命名空间,默认是default 2468 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2469 2470 // 数据偏移量,默认值为 0 2471 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 2472 2473 // 返回数据长度,默认值为 20 2474 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 2475 2476 // 根据哪个字段进行返回结果排序,支持以下字段:add_time,mod_time,默认mod_time 2477 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` 2478 2479 // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC,默认DESC 2480 Order *string `json:"Order,omitempty" name:"Order"` 2481 2482 // * Qualifier: 2483 // 函数版本,别名 2484 Filters []*Filter `json:"Filters,omitempty" name:"Filters"` 2485} 2486 2487func (r *ListTriggersRequest) ToJsonString() string { 2488 b, _ := json.Marshal(r) 2489 return string(b) 2490} 2491 2492// FromJsonString It is highly **NOT** recommended to use this function 2493// because it has no param check, nor strict type check 2494func (r *ListTriggersRequest) FromJsonString(s string) error { 2495 f := make(map[string]interface{}) 2496 if err := json.Unmarshal([]byte(s), &f); err != nil { 2497 return err 2498 } 2499 delete(f, "FunctionName") 2500 delete(f, "Namespace") 2501 delete(f, "Offset") 2502 delete(f, "Limit") 2503 delete(f, "OrderBy") 2504 delete(f, "Order") 2505 delete(f, "Filters") 2506 if len(f) > 0 { 2507 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListTriggersRequest has unknown keys!", "") 2508 } 2509 return json.Unmarshal([]byte(s), &r) 2510} 2511 2512type ListTriggersResponse struct { 2513 *tchttp.BaseResponse 2514 Response *struct { 2515 2516 // 触发器总数 2517 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 2518 2519 // 触发器列表 2520 Triggers []*TriggerInfo `json:"Triggers,omitempty" name:"Triggers"` 2521 2522 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2523 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2524 } `json:"Response"` 2525} 2526 2527func (r *ListTriggersResponse) ToJsonString() string { 2528 b, _ := json.Marshal(r) 2529 return string(b) 2530} 2531 2532// FromJsonString It is highly **NOT** recommended to use this function 2533// because it has no param check, nor strict type check 2534func (r *ListTriggersResponse) FromJsonString(s string) error { 2535 return json.Unmarshal([]byte(s), &r) 2536} 2537 2538type ListVersionByFunctionRequest struct { 2539 *tchttp.BaseRequest 2540 2541 // 函数名 2542 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 2543 2544 // 函数所在命名空间 2545 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2546 2547 // 数据偏移量,默认值为 0 2548 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 2549 2550 // 返回数据长度,默认值为 20 2551 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 2552 2553 // 以升序还是降序的方式返回结果,可选值 ASC 和 DESC 2554 Order *string `json:"Order,omitempty" name:"Order"` 2555 2556 // 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime 2557 OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` 2558} 2559 2560func (r *ListVersionByFunctionRequest) ToJsonString() string { 2561 b, _ := json.Marshal(r) 2562 return string(b) 2563} 2564 2565// FromJsonString It is highly **NOT** recommended to use this function 2566// because it has no param check, nor strict type check 2567func (r *ListVersionByFunctionRequest) FromJsonString(s string) error { 2568 f := make(map[string]interface{}) 2569 if err := json.Unmarshal([]byte(s), &f); err != nil { 2570 return err 2571 } 2572 delete(f, "FunctionName") 2573 delete(f, "Namespace") 2574 delete(f, "Offset") 2575 delete(f, "Limit") 2576 delete(f, "Order") 2577 delete(f, "OrderBy") 2578 if len(f) > 0 { 2579 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ListVersionByFunctionRequest has unknown keys!", "") 2580 } 2581 return json.Unmarshal([]byte(s), &r) 2582} 2583 2584type ListVersionByFunctionResponse struct { 2585 *tchttp.BaseResponse 2586 Response *struct { 2587 2588 // 函数版本。 2589 FunctionVersion []*string `json:"FunctionVersion,omitempty" name:"FunctionVersion"` 2590 2591 // 函数版本列表。 2592 // 注意:此字段可能返回 null,表示取不到有效值。 2593 Versions []*FunctionVersion `json:"Versions,omitempty" name:"Versions"` 2594 2595 // 函数版本总数。 2596 // 注意:此字段可能返回 null,表示取不到有效值。 2597 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 2598 2599 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2600 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2601 } `json:"Response"` 2602} 2603 2604func (r *ListVersionByFunctionResponse) ToJsonString() string { 2605 b, _ := json.Marshal(r) 2606 return string(b) 2607} 2608 2609// FromJsonString It is highly **NOT** recommended to use this function 2610// because it has no param check, nor strict type check 2611func (r *ListVersionByFunctionResponse) FromJsonString(s string) error { 2612 return json.Unmarshal([]byte(s), &r) 2613} 2614 2615type LogFilter struct { 2616 2617 // filter.RetCode的取值有: 2618 // not0 表示只返回错误日志, 2619 // is0 表示只返回正确日志, 2620 // TimeLimitExceeded 返回函数调用发生超时的日志, 2621 // ResourceLimitExceeded 返回函数调用发生资源超限的日志, 2622 // UserCodeException 返回函数调用发生用户代码错误的日志, 2623 // 无输入则返回所有日志。 2624 RetCode *string `json:"RetCode,omitempty" name:"RetCode"` 2625} 2626 2627type LogSearchContext struct { 2628 2629 // 偏移量 2630 Offset *string `json:"Offset,omitempty" name:"Offset"` 2631 2632 // 日志条数 2633 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 2634 2635 // 日志关键词 2636 Keyword *string `json:"Keyword,omitempty" name:"Keyword"` 2637 2638 // 日志类型,支持Application和Platform,默认为Application 2639 Type *string `json:"Type,omitempty" name:"Type"` 2640} 2641 2642type Namespace struct { 2643 2644 // 命名空间创建时间 2645 ModTime *string `json:"ModTime,omitempty" name:"ModTime"` 2646 2647 // 命名空间修改时间 2648 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 2649 2650 // 命名空间描述 2651 Description *string `json:"Description,omitempty" name:"Description"` 2652 2653 // 命名空间名称 2654 Name *string `json:"Name,omitempty" name:"Name"` 2655 2656 // 默认default,TCB表示是小程序云开发创建的 2657 Type *string `json:"Type,omitempty" name:"Type"` 2658} 2659 2660type NamespaceLimit struct { 2661 2662 // 函数总数 2663 FunctionsCount *int64 `json:"FunctionsCount,omitempty" name:"FunctionsCount"` 2664 2665 // Trigger信息 2666 Trigger *TriggerCount `json:"Trigger,omitempty" name:"Trigger"` 2667 2668 // Namespace名称 2669 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2670 2671 // 并发量 2672 ConcurrentExecutions *int64 `json:"ConcurrentExecutions,omitempty" name:"ConcurrentExecutions"` 2673 2674 // Timeout限制 2675 TimeoutLimit *int64 `json:"TimeoutLimit,omitempty" name:"TimeoutLimit"` 2676 2677 // 测试事件限制 2678 // 注意:此字段可能返回 null,表示取不到有效值。 2679 TestModelLimit *int64 `json:"TestModelLimit,omitempty" name:"TestModelLimit"` 2680 2681 // 初始化超时限制 2682 InitTimeoutLimit *int64 `json:"InitTimeoutLimit,omitempty" name:"InitTimeoutLimit"` 2683 2684 // 异步重试次数限制 2685 RetryNumLimit *int64 `json:"RetryNumLimit,omitempty" name:"RetryNumLimit"` 2686 2687 // 异步重试消息保留时间下限 2688 MinMsgTTL *int64 `json:"MinMsgTTL,omitempty" name:"MinMsgTTL"` 2689 2690 // 异步重试消息保留时间上限 2691 MaxMsgTTL *int64 `json:"MaxMsgTTL,omitempty" name:"MaxMsgTTL"` 2692} 2693 2694type NamespaceUsage struct { 2695 2696 // 函数数组 2697 Functions []*string `json:"Functions,omitempty" name:"Functions"` 2698 2699 // 命名空间名称 2700 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2701 2702 // 命名空间函数个数 2703 FunctionsCount *int64 `json:"FunctionsCount,omitempty" name:"FunctionsCount"` 2704} 2705 2706type PublicNetConfigIn struct { 2707 2708 // 是否开启公网访问能力取值['DISABLE','ENABLE'] 2709 PublicNetStatus *string `json:"PublicNetStatus,omitempty" name:"PublicNetStatus"` 2710 2711 // Eip配置 2712 EipConfig *EipConfigIn `json:"EipConfig,omitempty" name:"EipConfig"` 2713} 2714 2715type PublicNetConfigOut struct { 2716 2717 // 是否开启公网访问能力取值['DISABLE','ENABLE'] 2718 PublicNetStatus *string `json:"PublicNetStatus,omitempty" name:"PublicNetStatus"` 2719 2720 // Eip配置 2721 EipConfig *EipConfigOut `json:"EipConfig,omitempty" name:"EipConfig"` 2722} 2723 2724type PublishLayerVersionRequest struct { 2725 *tchttp.BaseRequest 2726 2727 // 层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64 2728 LayerName *string `json:"LayerName,omitempty" name:"LayerName"` 2729 2730 // 层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。 2731 CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitempty" name:"CompatibleRuntimes"` 2732 2733 // 层的文件来源或文件内容 2734 Content *Code `json:"Content,omitempty" name:"Content"` 2735 2736 // 层的版本的描述 2737 Description *string `json:"Description,omitempty" name:"Description"` 2738 2739 // 层的软件许可证 2740 LicenseInfo *string `json:"LicenseInfo,omitempty" name:"LicenseInfo"` 2741} 2742 2743func (r *PublishLayerVersionRequest) ToJsonString() string { 2744 b, _ := json.Marshal(r) 2745 return string(b) 2746} 2747 2748// FromJsonString It is highly **NOT** recommended to use this function 2749// because it has no param check, nor strict type check 2750func (r *PublishLayerVersionRequest) FromJsonString(s string) error { 2751 f := make(map[string]interface{}) 2752 if err := json.Unmarshal([]byte(s), &f); err != nil { 2753 return err 2754 } 2755 delete(f, "LayerName") 2756 delete(f, "CompatibleRuntimes") 2757 delete(f, "Content") 2758 delete(f, "Description") 2759 delete(f, "LicenseInfo") 2760 if len(f) > 0 { 2761 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PublishLayerVersionRequest has unknown keys!", "") 2762 } 2763 return json.Unmarshal([]byte(s), &r) 2764} 2765 2766type PublishLayerVersionResponse struct { 2767 *tchttp.BaseResponse 2768 Response *struct { 2769 2770 // 本次创建的层的版本号 2771 LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"` 2772 2773 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2774 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2775 } `json:"Response"` 2776} 2777 2778func (r *PublishLayerVersionResponse) ToJsonString() string { 2779 b, _ := json.Marshal(r) 2780 return string(b) 2781} 2782 2783// FromJsonString It is highly **NOT** recommended to use this function 2784// because it has no param check, nor strict type check 2785func (r *PublishLayerVersionResponse) FromJsonString(s string) error { 2786 return json.Unmarshal([]byte(s), &r) 2787} 2788 2789type PublishVersionRequest struct { 2790 *tchttp.BaseRequest 2791 2792 // 发布函数的名称 2793 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 2794 2795 // 函数的描述 2796 Description *string `json:"Description,omitempty" name:"Description"` 2797 2798 // 函数的命名空间 2799 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2800} 2801 2802func (r *PublishVersionRequest) ToJsonString() string { 2803 b, _ := json.Marshal(r) 2804 return string(b) 2805} 2806 2807// FromJsonString It is highly **NOT** recommended to use this function 2808// because it has no param check, nor strict type check 2809func (r *PublishVersionRequest) FromJsonString(s string) error { 2810 f := make(map[string]interface{}) 2811 if err := json.Unmarshal([]byte(s), &f); err != nil { 2812 return err 2813 } 2814 delete(f, "FunctionName") 2815 delete(f, "Description") 2816 delete(f, "Namespace") 2817 if len(f) > 0 { 2818 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PublishVersionRequest has unknown keys!", "") 2819 } 2820 return json.Unmarshal([]byte(s), &r) 2821} 2822 2823type PublishVersionResponse struct { 2824 *tchttp.BaseResponse 2825 Response *struct { 2826 2827 // 函数的版本 2828 FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"` 2829 2830 // 代码大小 2831 CodeSize *int64 `json:"CodeSize,omitempty" name:"CodeSize"` 2832 2833 // 最大可用内存 2834 MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"` 2835 2836 // 函数的描述 2837 Description *string `json:"Description,omitempty" name:"Description"` 2838 2839 // 函数的入口 2840 Handler *string `json:"Handler,omitempty" name:"Handler"` 2841 2842 // 函数的超时时间 2843 Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"` 2844 2845 // 函数的运行环境 2846 Runtime *string `json:"Runtime,omitempty" name:"Runtime"` 2847 2848 // 函数的命名空间 2849 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2850 2851 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2852 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2853 } `json:"Response"` 2854} 2855 2856func (r *PublishVersionResponse) ToJsonString() string { 2857 b, _ := json.Marshal(r) 2858 return string(b) 2859} 2860 2861// FromJsonString It is highly **NOT** recommended to use this function 2862// because it has no param check, nor strict type check 2863func (r *PublishVersionResponse) FromJsonString(s string) error { 2864 return json.Unmarshal([]byte(s), &r) 2865} 2866 2867type PutProvisionedConcurrencyConfigRequest struct { 2868 *tchttp.BaseRequest 2869 2870 // 需要设置预置并发的函数的名称 2871 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 2872 2873 // 函数的版本号,注:$LATEST版本不支持预置并发 2874 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 2875 2876 // 预置并发数量,注:所有版本的预置并发数总和存在上限限制,当前的上限是:函数最大并发配额 - 100 2877 VersionProvisionedConcurrencyNum *uint64 `json:"VersionProvisionedConcurrencyNum,omitempty" name:"VersionProvisionedConcurrencyNum"` 2878 2879 // 函数所属命名空间,默认为default 2880 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2881} 2882 2883func (r *PutProvisionedConcurrencyConfigRequest) ToJsonString() string { 2884 b, _ := json.Marshal(r) 2885 return string(b) 2886} 2887 2888// FromJsonString It is highly **NOT** recommended to use this function 2889// because it has no param check, nor strict type check 2890func (r *PutProvisionedConcurrencyConfigRequest) FromJsonString(s string) error { 2891 f := make(map[string]interface{}) 2892 if err := json.Unmarshal([]byte(s), &f); err != nil { 2893 return err 2894 } 2895 delete(f, "FunctionName") 2896 delete(f, "Qualifier") 2897 delete(f, "VersionProvisionedConcurrencyNum") 2898 delete(f, "Namespace") 2899 if len(f) > 0 { 2900 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PutProvisionedConcurrencyConfigRequest has unknown keys!", "") 2901 } 2902 return json.Unmarshal([]byte(s), &r) 2903} 2904 2905type PutProvisionedConcurrencyConfigResponse struct { 2906 *tchttp.BaseResponse 2907 Response *struct { 2908 2909 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2910 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2911 } `json:"Response"` 2912} 2913 2914func (r *PutProvisionedConcurrencyConfigResponse) ToJsonString() string { 2915 b, _ := json.Marshal(r) 2916 return string(b) 2917} 2918 2919// FromJsonString It is highly **NOT** recommended to use this function 2920// because it has no param check, nor strict type check 2921func (r *PutProvisionedConcurrencyConfigResponse) FromJsonString(s string) error { 2922 return json.Unmarshal([]byte(s), &r) 2923} 2924 2925type PutReservedConcurrencyConfigRequest struct { 2926 *tchttp.BaseRequest 2927 2928 // 需要设置预置并发的函数的名称 2929 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 2930 2931 // 函数保留并发内存,注:函数的保留并发内存总和上限:用户总并发内存配额 - 12800 2932 ReservedConcurrencyMem *uint64 `json:"ReservedConcurrencyMem,omitempty" name:"ReservedConcurrencyMem"` 2933 2934 // 函数所属命名空间,默认为default 2935 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2936} 2937 2938func (r *PutReservedConcurrencyConfigRequest) ToJsonString() string { 2939 b, _ := json.Marshal(r) 2940 return string(b) 2941} 2942 2943// FromJsonString It is highly **NOT** recommended to use this function 2944// because it has no param check, nor strict type check 2945func (r *PutReservedConcurrencyConfigRequest) FromJsonString(s string) error { 2946 f := make(map[string]interface{}) 2947 if err := json.Unmarshal([]byte(s), &f); err != nil { 2948 return err 2949 } 2950 delete(f, "FunctionName") 2951 delete(f, "ReservedConcurrencyMem") 2952 delete(f, "Namespace") 2953 if len(f) > 0 { 2954 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PutReservedConcurrencyConfigRequest has unknown keys!", "") 2955 } 2956 return json.Unmarshal([]byte(s), &r) 2957} 2958 2959type PutReservedConcurrencyConfigResponse struct { 2960 *tchttp.BaseResponse 2961 Response *struct { 2962 2963 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 2964 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 2965 } `json:"Response"` 2966} 2967 2968func (r *PutReservedConcurrencyConfigResponse) ToJsonString() string { 2969 b, _ := json.Marshal(r) 2970 return string(b) 2971} 2972 2973// FromJsonString It is highly **NOT** recommended to use this function 2974// because it has no param check, nor strict type check 2975func (r *PutReservedConcurrencyConfigResponse) FromJsonString(s string) error { 2976 return json.Unmarshal([]byte(s), &r) 2977} 2978 2979type PutTotalConcurrencyConfigRequest struct { 2980 *tchttp.BaseRequest 2981 2982 // 账号并发内存配额,注:账号并发内存配额下限:用户已用并发内存总额 + 12800 2983 TotalConcurrencyMem *uint64 `json:"TotalConcurrencyMem,omitempty" name:"TotalConcurrencyMem"` 2984 2985 // 命名空间,默认为default 2986 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 2987} 2988 2989func (r *PutTotalConcurrencyConfigRequest) ToJsonString() string { 2990 b, _ := json.Marshal(r) 2991 return string(b) 2992} 2993 2994// FromJsonString It is highly **NOT** recommended to use this function 2995// because it has no param check, nor strict type check 2996func (r *PutTotalConcurrencyConfigRequest) FromJsonString(s string) error { 2997 f := make(map[string]interface{}) 2998 if err := json.Unmarshal([]byte(s), &f); err != nil { 2999 return err 3000 } 3001 delete(f, "TotalConcurrencyMem") 3002 delete(f, "Namespace") 3003 if len(f) > 0 { 3004 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "PutTotalConcurrencyConfigRequest has unknown keys!", "") 3005 } 3006 return json.Unmarshal([]byte(s), &r) 3007} 3008 3009type PutTotalConcurrencyConfigResponse struct { 3010 *tchttp.BaseResponse 3011 Response *struct { 3012 3013 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3014 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3015 } `json:"Response"` 3016} 3017 3018func (r *PutTotalConcurrencyConfigResponse) ToJsonString() string { 3019 b, _ := json.Marshal(r) 3020 return string(b) 3021} 3022 3023// FromJsonString It is highly **NOT** recommended to use this function 3024// because it has no param check, nor strict type check 3025func (r *PutTotalConcurrencyConfigResponse) FromJsonString(s string) error { 3026 return json.Unmarshal([]byte(s), &r) 3027} 3028 3029type Result struct { 3030 3031 // 表示执行过程中的日志输出,异步调用返回为空 3032 Log *string `json:"Log,omitempty" name:"Log"` 3033 3034 // 表示执行函数的返回,异步调用返回为空 3035 RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"` 3036 3037 // 表示执行函数的错误返回信息,异步调用返回为空 3038 ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` 3039 3040 // 执行函数时的内存大小,单位为Byte,异步调用返回为空 3041 MemUsage *int64 `json:"MemUsage,omitempty" name:"MemUsage"` 3042 3043 // 表示执行函数的耗时,单位是毫秒,异步调用返回为空 3044 Duration *float64 `json:"Duration,omitempty" name:"Duration"` 3045 3046 // 表示函数的计费耗时,单位是毫秒,异步调用返回为空 3047 BillDuration *int64 `json:"BillDuration,omitempty" name:"BillDuration"` 3048 3049 // 此次函数执行的Id 3050 FunctionRequestId *string `json:"FunctionRequestId,omitempty" name:"FunctionRequestId"` 3051 3052 // 0为正确,异步调用返回为空 3053 InvokeResult *int64 `json:"InvokeResult,omitempty" name:"InvokeResult"` 3054} 3055 3056type RetryConfig struct { 3057 3058 // 重试次数 3059 RetryNum *int64 `json:"RetryNum,omitempty" name:"RetryNum"` 3060} 3061 3062type RoutingConfig struct { 3063 3064 // 随机权重路由附加版本 3065 AdditionalVersionWeights []*VersionWeight `json:"AdditionalVersionWeights,omitempty" name:"AdditionalVersionWeights"` 3066 3067 // 规则路由附加版本 3068 AddtionVersionMatchs []*VersionMatch `json:"AddtionVersionMatchs,omitempty" name:"AddtionVersionMatchs"` 3069} 3070 3071type SearchKey struct { 3072 3073 // 搜索关键字 3074 Key *string `json:"Key,omitempty" name:"Key"` 3075 3076 // 搜索内容 3077 Value *string `json:"Value,omitempty" name:"Value"` 3078} 3079 3080type StatusReason struct { 3081 3082 // 错误码 3083 ErrorCode *string `json:"ErrorCode,omitempty" name:"ErrorCode"` 3084 3085 // 错误描述 3086 ErrorMessage *string `json:"ErrorMessage,omitempty" name:"ErrorMessage"` 3087} 3088 3089type Tag struct { 3090 3091 // 标签的key 3092 Key *string `json:"Key,omitempty" name:"Key"` 3093 3094 // 标签的value 3095 Value *string `json:"Value,omitempty" name:"Value"` 3096} 3097 3098type TerminateAsyncEventRequest struct { 3099 *tchttp.BaseRequest 3100 3101 // 函数名称 3102 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 3103 3104 // 终止的调用请求id 3105 InvokeRequestId *string `json:"InvokeRequestId,omitempty" name:"InvokeRequestId"` 3106 3107 // 命名空间 3108 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 3109} 3110 3111func (r *TerminateAsyncEventRequest) ToJsonString() string { 3112 b, _ := json.Marshal(r) 3113 return string(b) 3114} 3115 3116// FromJsonString It is highly **NOT** recommended to use this function 3117// because it has no param check, nor strict type check 3118func (r *TerminateAsyncEventRequest) FromJsonString(s string) error { 3119 f := make(map[string]interface{}) 3120 if err := json.Unmarshal([]byte(s), &f); err != nil { 3121 return err 3122 } 3123 delete(f, "FunctionName") 3124 delete(f, "InvokeRequestId") 3125 delete(f, "Namespace") 3126 if len(f) > 0 { 3127 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "TerminateAsyncEventRequest has unknown keys!", "") 3128 } 3129 return json.Unmarshal([]byte(s), &r) 3130} 3131 3132type TerminateAsyncEventResponse struct { 3133 *tchttp.BaseResponse 3134 Response *struct { 3135 3136 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3137 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3138 } `json:"Response"` 3139} 3140 3141func (r *TerminateAsyncEventResponse) ToJsonString() string { 3142 b, _ := json.Marshal(r) 3143 return string(b) 3144} 3145 3146// FromJsonString It is highly **NOT** recommended to use this function 3147// because it has no param check, nor strict type check 3148func (r *TerminateAsyncEventResponse) FromJsonString(s string) error { 3149 return json.Unmarshal([]byte(s), &r) 3150} 3151 3152type TimeInterval struct { 3153 3154 // 起始时间(包括在内),格式"%Y-%m-%d %H:%M:%S" 3155 Start *string `json:"Start,omitempty" name:"Start"` 3156 3157 // 结束时间(不包括在内),格式"%Y-%m-%d %H:%M:%S" 3158 End *string `json:"End,omitempty" name:"End"` 3159} 3160 3161type Trigger struct { 3162 3163 // 触发器最后修改时间 3164 ModTime *string `json:"ModTime,omitempty" name:"ModTime"` 3165 3166 // 触发器类型 3167 Type *string `json:"Type,omitempty" name:"Type"` 3168 3169 // 触发器详细配置 3170 TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"` 3171 3172 // 触发器名称 3173 TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` 3174 3175 // 触发器创建时间 3176 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 3177 3178 // 使能开关 3179 Enable *int64 `json:"Enable,omitempty" name:"Enable"` 3180 3181 // 客户自定义参数 3182 CustomArgument *string `json:"CustomArgument,omitempty" name:"CustomArgument"` 3183 3184 // 触发器状态 3185 AvailableStatus *string `json:"AvailableStatus,omitempty" name:"AvailableStatus"` 3186 3187 // 触发器最小资源ID 3188 ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` 3189 3190 // 触发器和云函数绑定状态 3191 BindStatus *string `json:"BindStatus,omitempty" name:"BindStatus"` 3192 3193 // 触发器类型,双向表示两侧控制台均可操作,单向表示SCF控制台单向创建 3194 TriggerAttribute *string `json:"TriggerAttribute,omitempty" name:"TriggerAttribute"` 3195 3196 // 触发器绑定的别名或版本 3197 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 3198} 3199 3200type TriggerCount struct { 3201 3202 // Cos触发器数量 3203 Cos *int64 `json:"Cos,omitempty" name:"Cos"` 3204 3205 // Timer触发器数量 3206 Timer *int64 `json:"Timer,omitempty" name:"Timer"` 3207 3208 // Cmq触发器数量 3209 Cmq *int64 `json:"Cmq,omitempty" name:"Cmq"` 3210 3211 // 触发器总数 3212 Total *int64 `json:"Total,omitempty" name:"Total"` 3213 3214 // Ckafka触发器数量 3215 Ckafka *int64 `json:"Ckafka,omitempty" name:"Ckafka"` 3216 3217 // Apigw触发器数量 3218 Apigw *int64 `json:"Apigw,omitempty" name:"Apigw"` 3219 3220 // Cls触发器数量 3221 Cls *int64 `json:"Cls,omitempty" name:"Cls"` 3222 3223 // Clb触发器数量 3224 Clb *int64 `json:"Clb,omitempty" name:"Clb"` 3225 3226 // Mps触发器数量 3227 Mps *int64 `json:"Mps,omitempty" name:"Mps"` 3228 3229 // Cm触发器数量 3230 Cm *int64 `json:"Cm,omitempty" name:"Cm"` 3231 3232 // Vod触发器数量 3233 Vod *int64 `json:"Vod,omitempty" name:"Vod"` 3234} 3235 3236type TriggerInfo struct { 3237 3238 // 使能开关 3239 Enable *uint64 `json:"Enable,omitempty" name:"Enable"` 3240 3241 // 函数版本或别名 3242 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 3243 3244 // 触发器名称 3245 TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"` 3246 3247 // 触发器类型 3248 Type *string `json:"Type,omitempty" name:"Type"` 3249 3250 // 触发器详细配置 3251 TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"` 3252 3253 // 触发器是否可用 3254 AvailableStatus *string `json:"AvailableStatus,omitempty" name:"AvailableStatus"` 3255 3256 // 客户自定义参数 3257 // 注意:此字段可能返回 null,表示取不到有效值。 3258 CustomArgument *string `json:"CustomArgument,omitempty" name:"CustomArgument"` 3259 3260 // 触发器创建时间 3261 AddTime *string `json:"AddTime,omitempty" name:"AddTime"` 3262 3263 // 触发器最后修改时间 3264 ModTime *string `json:"ModTime,omitempty" name:"ModTime"` 3265 3266 // 触发器最小资源ID 3267 ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` 3268 3269 // 触发器和云函数绑定状态 3270 BindStatus *string `json:"BindStatus,omitempty" name:"BindStatus"` 3271 3272 // 触发器类型,双向表示两侧控制台均可操作,单向表示SCF控制台单向创建 3273 TriggerAttribute *string `json:"TriggerAttribute,omitempty" name:"TriggerAttribute"` 3274} 3275 3276type UpdateAliasRequest struct { 3277 *tchttp.BaseRequest 3278 3279 // 函数名称 3280 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 3281 3282 // 别名的名称 3283 Name *string `json:"Name,omitempty" name:"Name"` 3284 3285 // 别名指向的主版本 3286 FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"` 3287 3288 // 函数所在的命名空间 3289 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 3290 3291 // 别名的路由信息,需要为别名指定附加版本时,必须提供此参数 3292 RoutingConfig *RoutingConfig `json:"RoutingConfig,omitempty" name:"RoutingConfig"` 3293 3294 // 别名的描述 3295 Description *string `json:"Description,omitempty" name:"Description"` 3296} 3297 3298func (r *UpdateAliasRequest) ToJsonString() string { 3299 b, _ := json.Marshal(r) 3300 return string(b) 3301} 3302 3303// FromJsonString It is highly **NOT** recommended to use this function 3304// because it has no param check, nor strict type check 3305func (r *UpdateAliasRequest) FromJsonString(s string) error { 3306 f := make(map[string]interface{}) 3307 if err := json.Unmarshal([]byte(s), &f); err != nil { 3308 return err 3309 } 3310 delete(f, "FunctionName") 3311 delete(f, "Name") 3312 delete(f, "FunctionVersion") 3313 delete(f, "Namespace") 3314 delete(f, "RoutingConfig") 3315 delete(f, "Description") 3316 if len(f) > 0 { 3317 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateAliasRequest has unknown keys!", "") 3318 } 3319 return json.Unmarshal([]byte(s), &r) 3320} 3321 3322type UpdateAliasResponse struct { 3323 *tchttp.BaseResponse 3324 Response *struct { 3325 3326 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3327 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3328 } `json:"Response"` 3329} 3330 3331func (r *UpdateAliasResponse) ToJsonString() string { 3332 b, _ := json.Marshal(r) 3333 return string(b) 3334} 3335 3336// FromJsonString It is highly **NOT** recommended to use this function 3337// because it has no param check, nor strict type check 3338func (r *UpdateAliasResponse) FromJsonString(s string) error { 3339 return json.Unmarshal([]byte(s), &r) 3340} 3341 3342type UpdateFunctionCodeRequest struct { 3343 *tchttp.BaseRequest 3344 3345 // 要修改的函数名称 3346 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 3347 3348 // 函数处理方法名称。名称格式支持“文件名称.函数名称”形式(java 名称格式 包名.类名::方法名),文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求 2-60 个字符 3349 Handler *string `json:"Handler,omitempty" name:"Handler"` 3350 3351 // 对象存储桶名称 3352 CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"` 3353 3354 // 对象存储对象路径 3355 CosObjectName *string `json:"CosObjectName,omitempty" name:"CosObjectName"` 3356 3357 // 包含函数代码文件及其依赖项的 zip 格式文件,使用该接口时要求将 zip 文件的内容转成 base64 编码,最大支持20M 3358 ZipFile *string `json:"ZipFile,omitempty" name:"ZipFile"` 3359 3360 // 函数所属命名空间 3361 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 3362 3363 // 对象存储的地域,注:北京分为ap-beijing和ap-beijing-1 3364 CosBucketRegion *string `json:"CosBucketRegion,omitempty" name:"CosBucketRegion"` 3365 3366 // 函数所属环境 3367 EnvId *string `json:"EnvId,omitempty" name:"EnvId"` 3368 3369 // 在更新时是否同步发布新版本,默认为:FALSE,不发布 3370 Publish *string `json:"Publish,omitempty" name:"Publish"` 3371 3372 // 函数代码 3373 Code *Code `json:"Code,omitempty" name:"Code"` 3374 3375 // 代码来源方式,支持 ZipFile, Cos, Inline 之一 3376 CodeSource *string `json:"CodeSource,omitempty" name:"CodeSource"` 3377} 3378 3379func (r *UpdateFunctionCodeRequest) ToJsonString() string { 3380 b, _ := json.Marshal(r) 3381 return string(b) 3382} 3383 3384// FromJsonString It is highly **NOT** recommended to use this function 3385// because it has no param check, nor strict type check 3386func (r *UpdateFunctionCodeRequest) FromJsonString(s string) error { 3387 f := make(map[string]interface{}) 3388 if err := json.Unmarshal([]byte(s), &f); err != nil { 3389 return err 3390 } 3391 delete(f, "FunctionName") 3392 delete(f, "Handler") 3393 delete(f, "CosBucketName") 3394 delete(f, "CosObjectName") 3395 delete(f, "ZipFile") 3396 delete(f, "Namespace") 3397 delete(f, "CosBucketRegion") 3398 delete(f, "EnvId") 3399 delete(f, "Publish") 3400 delete(f, "Code") 3401 delete(f, "CodeSource") 3402 if len(f) > 0 { 3403 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateFunctionCodeRequest has unknown keys!", "") 3404 } 3405 return json.Unmarshal([]byte(s), &r) 3406} 3407 3408type UpdateFunctionCodeResponse struct { 3409 *tchttp.BaseResponse 3410 Response *struct { 3411 3412 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3413 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3414 } `json:"Response"` 3415} 3416 3417func (r *UpdateFunctionCodeResponse) ToJsonString() string { 3418 b, _ := json.Marshal(r) 3419 return string(b) 3420} 3421 3422// FromJsonString It is highly **NOT** recommended to use this function 3423// because it has no param check, nor strict type check 3424func (r *UpdateFunctionCodeResponse) FromJsonString(s string) error { 3425 return json.Unmarshal([]byte(s), &r) 3426} 3427 3428type UpdateFunctionConfigurationRequest struct { 3429 *tchttp.BaseRequest 3430 3431 // 要修改的函数名称 3432 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 3433 3434 // 函数描述。最大支持 1000 个英文字母、数字、空格、逗号和英文句号,支持中文 3435 Description *string `json:"Description,omitempty" name:"Description"` 3436 3437 // 函数运行时内存大小,默认为 128 M,可选范64M、128 M-3072 M,以 128MB 为阶梯。 3438 MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"` 3439 3440 // 函数最长执行时间,单位为秒,可选值范 1-900 秒,默认为 3 秒 3441 Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"` 3442 3443 // 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,Nodejs8.9,Nodejs10.15,Nodejs12.16, PHP5, PHP7,Go1 , Java8和CustomRuntime 3444 Runtime *string `json:"Runtime,omitempty" name:"Runtime"` 3445 3446 // 函数的环境变量 3447 Environment *Environment `json:"Environment,omitempty" name:"Environment"` 3448 3449 // 函数所属命名空间 3450 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 3451 3452 // 函数的私有网络配置 3453 VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"` 3454 3455 // 函数绑定的角色 3456 Role *string `json:"Role,omitempty" name:"Role"` 3457 3458 // 日志投递到的cls日志集ID 3459 ClsLogsetId *string `json:"ClsLogsetId,omitempty" name:"ClsLogsetId"` 3460 3461 // 日志投递到的cls Topic ID 3462 ClsTopicId *string `json:"ClsTopicId,omitempty" name:"ClsTopicId"` 3463 3464 // 在更新时是否同步发布新版本,默认为:FALSE,不发布新版本 3465 Publish *string `json:"Publish,omitempty" name:"Publish"` 3466 3467 // 是否开启L5访问能力,TRUE 为开启,FALSE为关闭 3468 L5Enable *string `json:"L5Enable,omitempty" name:"L5Enable"` 3469 3470 // 函数要关联的层版本列表,层的版本会按照在列表中顺序依次覆盖。 3471 Layers []*LayerVersionSimple `json:"Layers,omitempty" name:"Layers"` 3472 3473 // 函数关联的死信队列信息 3474 DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitempty" name:"DeadLetterConfig"` 3475 3476 // 公网访问配置 3477 PublicNetConfig *PublicNetConfigIn `json:"PublicNetConfig,omitempty" name:"PublicNetConfig"` 3478 3479 // 文件系统配置入参,用于云函数绑定CFS文件系统 3480 CfsConfig *CfsConfig `json:"CfsConfig,omitempty" name:"CfsConfig"` 3481 3482 // 函数初始化执行超时时间,默认15秒 3483 InitTimeout *int64 `json:"InitTimeout,omitempty" name:"InitTimeout"` 3484} 3485 3486func (r *UpdateFunctionConfigurationRequest) ToJsonString() string { 3487 b, _ := json.Marshal(r) 3488 return string(b) 3489} 3490 3491// FromJsonString It is highly **NOT** recommended to use this function 3492// because it has no param check, nor strict type check 3493func (r *UpdateFunctionConfigurationRequest) FromJsonString(s string) error { 3494 f := make(map[string]interface{}) 3495 if err := json.Unmarshal([]byte(s), &f); err != nil { 3496 return err 3497 } 3498 delete(f, "FunctionName") 3499 delete(f, "Description") 3500 delete(f, "MemorySize") 3501 delete(f, "Timeout") 3502 delete(f, "Runtime") 3503 delete(f, "Environment") 3504 delete(f, "Namespace") 3505 delete(f, "VpcConfig") 3506 delete(f, "Role") 3507 delete(f, "ClsLogsetId") 3508 delete(f, "ClsTopicId") 3509 delete(f, "Publish") 3510 delete(f, "L5Enable") 3511 delete(f, "Layers") 3512 delete(f, "DeadLetterConfig") 3513 delete(f, "PublicNetConfig") 3514 delete(f, "CfsConfig") 3515 delete(f, "InitTimeout") 3516 if len(f) > 0 { 3517 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateFunctionConfigurationRequest has unknown keys!", "") 3518 } 3519 return json.Unmarshal([]byte(s), &r) 3520} 3521 3522type UpdateFunctionConfigurationResponse struct { 3523 *tchttp.BaseResponse 3524 Response *struct { 3525 3526 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3527 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3528 } `json:"Response"` 3529} 3530 3531func (r *UpdateFunctionConfigurationResponse) ToJsonString() string { 3532 b, _ := json.Marshal(r) 3533 return string(b) 3534} 3535 3536// FromJsonString It is highly **NOT** recommended to use this function 3537// because it has no param check, nor strict type check 3538func (r *UpdateFunctionConfigurationResponse) FromJsonString(s string) error { 3539 return json.Unmarshal([]byte(s), &r) 3540} 3541 3542type UpdateFunctionEventInvokeConfigRequest struct { 3543 *tchttp.BaseRequest 3544 3545 // 异步重试配置信息 3546 AsyncTriggerConfig *AsyncTriggerConfig `json:"AsyncTriggerConfig,omitempty" name:"AsyncTriggerConfig"` 3547 3548 // 函数名称 3549 FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"` 3550 3551 // 函数所属命名空间,默认为default 3552 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 3553} 3554 3555func (r *UpdateFunctionEventInvokeConfigRequest) ToJsonString() string { 3556 b, _ := json.Marshal(r) 3557 return string(b) 3558} 3559 3560// FromJsonString It is highly **NOT** recommended to use this function 3561// because it has no param check, nor strict type check 3562func (r *UpdateFunctionEventInvokeConfigRequest) FromJsonString(s string) error { 3563 f := make(map[string]interface{}) 3564 if err := json.Unmarshal([]byte(s), &f); err != nil { 3565 return err 3566 } 3567 delete(f, "AsyncTriggerConfig") 3568 delete(f, "FunctionName") 3569 delete(f, "Namespace") 3570 if len(f) > 0 { 3571 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateFunctionEventInvokeConfigRequest has unknown keys!", "") 3572 } 3573 return json.Unmarshal([]byte(s), &r) 3574} 3575 3576type UpdateFunctionEventInvokeConfigResponse struct { 3577 *tchttp.BaseResponse 3578 Response *struct { 3579 3580 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3581 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3582 } `json:"Response"` 3583} 3584 3585func (r *UpdateFunctionEventInvokeConfigResponse) ToJsonString() string { 3586 b, _ := json.Marshal(r) 3587 return string(b) 3588} 3589 3590// FromJsonString It is highly **NOT** recommended to use this function 3591// because it has no param check, nor strict type check 3592func (r *UpdateFunctionEventInvokeConfigResponse) FromJsonString(s string) error { 3593 return json.Unmarshal([]byte(s), &r) 3594} 3595 3596type UpdateNamespaceRequest struct { 3597 *tchttp.BaseRequest 3598 3599 // 命名空间名称 3600 Namespace *string `json:"Namespace,omitempty" name:"Namespace"` 3601 3602 // 命名空间描述 3603 Description *string `json:"Description,omitempty" name:"Description"` 3604} 3605 3606func (r *UpdateNamespaceRequest) ToJsonString() string { 3607 b, _ := json.Marshal(r) 3608 return string(b) 3609} 3610 3611// FromJsonString It is highly **NOT** recommended to use this function 3612// because it has no param check, nor strict type check 3613func (r *UpdateNamespaceRequest) FromJsonString(s string) error { 3614 f := make(map[string]interface{}) 3615 if err := json.Unmarshal([]byte(s), &f); err != nil { 3616 return err 3617 } 3618 delete(f, "Namespace") 3619 delete(f, "Description") 3620 if len(f) > 0 { 3621 return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateNamespaceRequest has unknown keys!", "") 3622 } 3623 return json.Unmarshal([]byte(s), &r) 3624} 3625 3626type UpdateNamespaceResponse struct { 3627 *tchttp.BaseResponse 3628 Response *struct { 3629 3630 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 3631 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 3632 } `json:"Response"` 3633} 3634 3635func (r *UpdateNamespaceResponse) ToJsonString() string { 3636 b, _ := json.Marshal(r) 3637 return string(b) 3638} 3639 3640// FromJsonString It is highly **NOT** recommended to use this function 3641// because it has no param check, nor strict type check 3642func (r *UpdateNamespaceResponse) FromJsonString(s string) error { 3643 return json.Unmarshal([]byte(s), &r) 3644} 3645 3646type UsageInfo struct { 3647 3648 // 命名空间个数 3649 NamespacesCount *int64 `json:"NamespacesCount,omitempty" name:"NamespacesCount"` 3650 3651 // 命名空间详情 3652 Namespace []*NamespaceUsage `json:"Namespace,omitempty" name:"Namespace"` 3653 3654 // 当前地域用户并发内存配额上限 3655 TotalConcurrencyMem *int64 `json:"TotalConcurrencyMem,omitempty" name:"TotalConcurrencyMem"` 3656 3657 // 当前地域用户已配置并发内存额度 3658 TotalAllocatedConcurrencyMem *int64 `json:"TotalAllocatedConcurrencyMem,omitempty" name:"TotalAllocatedConcurrencyMem"` 3659 3660 // 用户实际配置的账号并发配额 3661 UserConcurrencyMemLimit *int64 `json:"UserConcurrencyMemLimit,omitempty" name:"UserConcurrencyMemLimit"` 3662} 3663 3664type Variable struct { 3665 3666 // 变量的名称 3667 Key *string `json:"Key,omitempty" name:"Key"` 3668 3669 // 变量的值 3670 Value *string `json:"Value,omitempty" name:"Value"` 3671} 3672 3673type VersionMatch struct { 3674 3675 // 函数版本名称 3676 Version *string `json:"Version,omitempty" name:"Version"` 3677 3678 // 匹配规则的key,调用时通过传key来匹配规则路由到指定版本 3679 // header方式: 3680 // key填写"invoke.headers.User",并在 invoke 调用函数时传参 RoutingKey:{"User":"value"}规则匹配调用 3681 Key *string `json:"Key,omitempty" name:"Key"` 3682 3683 // 匹配方式。取值范围: 3684 // range:范围匹配 3685 // exact:字符串精确匹配 3686 Method *string `json:"Method,omitempty" name:"Method"` 3687 3688 // range 匹配规则要求: 3689 // 需要为开区间或闭区间描述 (a,b) [a,b],其中 a、b 均为整数 3690 // exact 匹配规则要求: 3691 // 字符串精确匹配 3692 Expression *string `json:"Expression,omitempty" name:"Expression"` 3693} 3694 3695type VersionProvisionedConcurrencyInfo struct { 3696 3697 // 设置的预置并发数。 3698 AllocatedProvisionedConcurrencyNum *uint64 `json:"AllocatedProvisionedConcurrencyNum,omitempty" name:"AllocatedProvisionedConcurrencyNum"` 3699 3700 // 当前已完成预置的并发数。 3701 AvailableProvisionedConcurrencyNum *uint64 `json:"AvailableProvisionedConcurrencyNum,omitempty" name:"AvailableProvisionedConcurrencyNum"` 3702 3703 // 预置任务状态,Done表示已完成,InProgress表示进行中,Failed表示部分或全部失败。 3704 Status *string `json:"Status,omitempty" name:"Status"` 3705 3706 // 对预置任务状态Status的说明。 3707 StatusReason *string `json:"StatusReason,omitempty" name:"StatusReason"` 3708 3709 // 函数版本号 3710 Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"` 3711} 3712 3713type VersionWeight struct { 3714 3715 // 函数版本名称 3716 Version *string `json:"Version,omitempty" name:"Version"` 3717 3718 // 该版本的权重 3719 Weight *float64 `json:"Weight,omitempty" name:"Weight"` 3720} 3721 3722type VpcConfig struct { 3723 3724 // 私有网络 的 Id 3725 VpcId *string `json:"VpcId,omitempty" name:"VpcId"` 3726 3727 // 子网的 Id 3728 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 3729} 3730