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 v20191022 16 17import ( 18 "encoding/json" 19 "errors" 20 21 tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" 22) 23 24type AlgorithmSpecification struct { 25 26 // 镜像名字 27 // 注意:此字段可能返回 null,表示取不到有效值。 28 TrainingImageName *string `json:"TrainingImageName,omitempty" name:"TrainingImageName"` 29 30 // 输入模式File|Pipe 31 // 注意:此字段可能返回 null,表示取不到有效值。 32 TrainingInputMode *string `json:"TrainingInputMode,omitempty" name:"TrainingInputMode"` 33 34 // 算法名字 35 // 注意:此字段可能返回 null,表示取不到有效值。 36 AlgorithmName *string `json:"AlgorithmName,omitempty" name:"AlgorithmName"` 37} 38 39type BillingLabel struct { 40 41 // 计费项标识 42 // 注意:此字段可能返回 null,表示取不到有效值。 43 Label *string `json:"Label,omitempty" name:"Label"` 44 45 // 存储大小 46 VolumeSize *int64 `json:"VolumeSize,omitempty" name:"VolumeSize"` 47 48 // 计费状态 49 // None: 不计费 50 // StorageOnly: 仅存储计费 51 // Computing: 计算和存储都计费 52 Status *string `json:"Status,omitempty" name:"Status"` 53} 54 55type ClsConfig struct { 56 57 // 接入类型,可选项为free、customer 58 Type *string `json:"Type,omitempty" name:"Type"` 59 60 // 自定义CLS的日志集ID,只有当Type为customer时生效 61 LogSetId *string `json:"LogSetId,omitempty" name:"LogSetId"` 62 63 // 自定义CLS的日志主题ID,只有当Type为customer时生效 64 TopicId *string `json:"TopicId,omitempty" name:"TopicId"` 65} 66 67type CodeRepoSummary struct { 68 69 // 创建时间 70 CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"` 71 72 // 更新时间 73 LastModifiedTime *string `json:"LastModifiedTime,omitempty" name:"LastModifiedTime"` 74 75 // 存储库名称 76 CodeRepositoryName *string `json:"CodeRepositoryName,omitempty" name:"CodeRepositoryName"` 77 78 // Git配置 79 GitConfig *GitConfig `json:"GitConfig,omitempty" name:"GitConfig"` 80 81 // 是否有Git凭证 82 NoSecret *bool `json:"NoSecret,omitempty" name:"NoSecret"` 83} 84 85type CosDataSource struct { 86 87 // cos桶 88 // 注意:此字段可能返回 null,表示取不到有效值。 89 Bucket *string `json:"Bucket,omitempty" name:"Bucket"` 90 91 // cos文件key 92 // 注意:此字段可能返回 null,表示取不到有效值。 93 KeyPrefix *string `json:"KeyPrefix,omitempty" name:"KeyPrefix"` 94 95 // 分布式数据下载方式 96 // 注意:此字段可能返回 null,表示取不到有效值。 97 DataDistributionType *string `json:"DataDistributionType,omitempty" name:"DataDistributionType"` 98 99 // 数据类型 100 // 注意:此字段可能返回 null,表示取不到有效值。 101 DataType *string `json:"DataType,omitempty" name:"DataType"` 102} 103 104type CreateCodeRepositoryRequest struct { 105 *tchttp.BaseRequest 106 107 // 存储库名称 108 CodeRepositoryName *string `json:"CodeRepositoryName,omitempty" name:"CodeRepositoryName"` 109 110 // Git相关配置 111 GitConfig *GitConfig `json:"GitConfig,omitempty" name:"GitConfig"` 112 113 // Git凭证 114 GitSecret *GitSecret `json:"GitSecret,omitempty" name:"GitSecret"` 115} 116 117func (r *CreateCodeRepositoryRequest) ToJsonString() string { 118 b, _ := json.Marshal(r) 119 return string(b) 120} 121 122// It is highly **NOT** recommended to use this function 123// because it has no param check, nor strict type check 124func (r *CreateCodeRepositoryRequest) FromJsonString(s string) error { 125 f := make(map[string]interface{}) 126 if err := json.Unmarshal([]byte(s), &f); err != nil { 127 return err 128 } 129 delete(f, "CodeRepositoryName") 130 delete(f, "GitConfig") 131 delete(f, "GitSecret") 132 if len(f) > 0 { 133 return errors.New("CreateCodeRepositoryRequest has unknown keys!") 134 } 135 return json.Unmarshal([]byte(s), &r) 136} 137 138type CreateCodeRepositoryResponse struct { 139 *tchttp.BaseResponse 140 Response *struct { 141 142 // 存储库名称 143 CodeRepositoryName *string `json:"CodeRepositoryName,omitempty" name:"CodeRepositoryName"` 144 145 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 146 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 147 } `json:"Response"` 148} 149 150func (r *CreateCodeRepositoryResponse) ToJsonString() string { 151 b, _ := json.Marshal(r) 152 return string(b) 153} 154 155// It is highly **NOT** recommended to use this function 156// because it has no param check, nor strict type check 157func (r *CreateCodeRepositoryResponse) FromJsonString(s string) error { 158 return json.Unmarshal([]byte(s), &r) 159} 160 161type CreateNotebookInstanceRequest struct { 162 *tchttp.BaseRequest 163 164 // Notebook实例名称,不能超过63个字符 165 // 规则:“^\[a-zA-Z0-9\](-\*\[a-zA-Z0-9\])\*$” 166 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 167 168 // Notebook算力类型 169 // 参考https://cloud.tencent.com/document/product/851/41239 170 InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` 171 172 // 数据卷大小(GB) 173 // 用户持久化Notebook实例的数据 174 VolumeSizeInGB *uint64 `json:"VolumeSizeInGB,omitempty" name:"VolumeSizeInGB"` 175 176 // 外网访问权限,可取值Enabled/Disabled 177 // 开启后,Notebook实例可以具有访问外网80,443端口的权限 178 DirectInternetAccess *string `json:"DirectInternetAccess,omitempty" name:"DirectInternetAccess"` 179 180 // Root用户权限,可取值Enabled/Disabled 181 // 开启后,Notebook实例可以切换至root用户执行命令 182 RootAccess *string `json:"RootAccess,omitempty" name:"RootAccess"` 183 184 // 子网ID 185 // 如果需要Notebook实例访问VPC内的资源,则需要选择对应的子网 186 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 187 188 // 生命周期脚本名称 189 // 必须是已存在的生命周期脚本,具体参考https://cloud.tencent.com/document/product/851/43140 190 LifecycleScriptsName *string `json:"LifecycleScriptsName,omitempty" name:"LifecycleScriptsName"` 191 192 // 默认存储库名称 193 // 可以是已创建的存储库名称或者已https://开头的公共git库 194 // 参考https://cloud.tencent.com/document/product/851/43139 195 DefaultCodeRepository *string `json:"DefaultCodeRepository,omitempty" name:"DefaultCodeRepository"` 196 197 // 其他存储库列表 198 // 每个元素可以是已创建的存储库名称或者已https://开头的公共git库 199 // 参考https://cloud.tencent.com/document/product/851/43139 200 AdditionalCodeRepositories []*string `json:"AdditionalCodeRepositories,omitempty" name:"AdditionalCodeRepositories" list` 201 202 // 已弃用,请使用ClsConfig配置。 203 // 是否开启CLS日志服务,可取值Enabled/Disabled,默认为Disabled 204 // 开启后,Notebook运行的日志会收集到CLS中,CLS会产生费用,请根据需要选择 205 ClsAccess *string `json:"ClsAccess,omitempty" name:"ClsAccess"` 206 207 // 自动停止配置 208 // 选择定时停止Notebook实例 209 StoppingCondition *StoppingCondition `json:"StoppingCondition,omitempty" name:"StoppingCondition"` 210 211 // 自动停止,可取值Enabled/Disabled 212 // 取值为Disabled的时候StoppingCondition将被忽略 213 // 取值为Enabled的时候读取StoppingCondition作为自动停止的配置 214 AutoStopping *string `json:"AutoStopping,omitempty" name:"AutoStopping"` 215 216 // 接入日志的配置,默认接入免费日志 217 ClsConfig *ClsConfig `json:"ClsConfig,omitempty" name:"ClsConfig"` 218} 219 220func (r *CreateNotebookInstanceRequest) ToJsonString() string { 221 b, _ := json.Marshal(r) 222 return string(b) 223} 224 225// It is highly **NOT** recommended to use this function 226// because it has no param check, nor strict type check 227func (r *CreateNotebookInstanceRequest) FromJsonString(s string) error { 228 f := make(map[string]interface{}) 229 if err := json.Unmarshal([]byte(s), &f); err != nil { 230 return err 231 } 232 delete(f, "NotebookInstanceName") 233 delete(f, "InstanceType") 234 delete(f, "VolumeSizeInGB") 235 delete(f, "DirectInternetAccess") 236 delete(f, "RootAccess") 237 delete(f, "SubnetId") 238 delete(f, "LifecycleScriptsName") 239 delete(f, "DefaultCodeRepository") 240 delete(f, "AdditionalCodeRepositories") 241 delete(f, "ClsAccess") 242 delete(f, "StoppingCondition") 243 delete(f, "AutoStopping") 244 delete(f, "ClsConfig") 245 if len(f) > 0 { 246 return errors.New("CreateNotebookInstanceRequest has unknown keys!") 247 } 248 return json.Unmarshal([]byte(s), &r) 249} 250 251type CreateNotebookInstanceResponse struct { 252 *tchttp.BaseResponse 253 Response *struct { 254 255 // Notebook实例名字 256 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 257 258 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 259 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 260 } `json:"Response"` 261} 262 263func (r *CreateNotebookInstanceResponse) ToJsonString() string { 264 b, _ := json.Marshal(r) 265 return string(b) 266} 267 268// It is highly **NOT** recommended to use this function 269// because it has no param check, nor strict type check 270func (r *CreateNotebookInstanceResponse) FromJsonString(s string) error { 271 return json.Unmarshal([]byte(s), &r) 272} 273 274type CreateNotebookLifecycleScriptRequest struct { 275 *tchttp.BaseRequest 276 277 // Notebook生命周期脚本名称 278 NotebookLifecycleScriptsName *string `json:"NotebookLifecycleScriptsName,omitempty" name:"NotebookLifecycleScriptsName"` 279 280 // 创建脚本,base64编码 281 // base64后的脚本长度不能超过16384个字符 282 CreateScript *string `json:"CreateScript,omitempty" name:"CreateScript"` 283 284 // 启动脚本,base64编码 285 // base64后的脚本长度不能超过16384个字符 286 StartScript *string `json:"StartScript,omitempty" name:"StartScript"` 287} 288 289func (r *CreateNotebookLifecycleScriptRequest) ToJsonString() string { 290 b, _ := json.Marshal(r) 291 return string(b) 292} 293 294// It is highly **NOT** recommended to use this function 295// because it has no param check, nor strict type check 296func (r *CreateNotebookLifecycleScriptRequest) FromJsonString(s string) error { 297 f := make(map[string]interface{}) 298 if err := json.Unmarshal([]byte(s), &f); err != nil { 299 return err 300 } 301 delete(f, "NotebookLifecycleScriptsName") 302 delete(f, "CreateScript") 303 delete(f, "StartScript") 304 if len(f) > 0 { 305 return errors.New("CreateNotebookLifecycleScriptRequest has unknown keys!") 306 } 307 return json.Unmarshal([]byte(s), &r) 308} 309 310type CreateNotebookLifecycleScriptResponse struct { 311 *tchttp.BaseResponse 312 Response *struct { 313 314 // 生命周期脚本名称 315 NotebookLifecycleScriptsName *string `json:"NotebookLifecycleScriptsName,omitempty" name:"NotebookLifecycleScriptsName"` 316 317 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 318 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 319 } `json:"Response"` 320} 321 322func (r *CreateNotebookLifecycleScriptResponse) ToJsonString() string { 323 b, _ := json.Marshal(r) 324 return string(b) 325} 326 327// It is highly **NOT** recommended to use this function 328// because it has no param check, nor strict type check 329func (r *CreateNotebookLifecycleScriptResponse) FromJsonString(s string) error { 330 return json.Unmarshal([]byte(s), &r) 331} 332 333type CreatePresignedNotebookInstanceUrlRequest struct { 334 *tchttp.BaseRequest 335 336 // Notebook实例名称 337 // 规则:“^\[a-zA-Z0-9\](-\*\[a-zA-Z0-9\])\*$” 338 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 339 340 // session有效时间,秒,取值范围[1800, 43200] 341 SessionExpirationDurationInSeconds *int64 `json:"SessionExpirationDurationInSeconds,omitempty" name:"SessionExpirationDurationInSeconds"` 342} 343 344func (r *CreatePresignedNotebookInstanceUrlRequest) ToJsonString() string { 345 b, _ := json.Marshal(r) 346 return string(b) 347} 348 349// It is highly **NOT** recommended to use this function 350// because it has no param check, nor strict type check 351func (r *CreatePresignedNotebookInstanceUrlRequest) FromJsonString(s string) error { 352 f := make(map[string]interface{}) 353 if err := json.Unmarshal([]byte(s), &f); err != nil { 354 return err 355 } 356 delete(f, "NotebookInstanceName") 357 delete(f, "SessionExpirationDurationInSeconds") 358 if len(f) > 0 { 359 return errors.New("CreatePresignedNotebookInstanceUrlRequest has unknown keys!") 360 } 361 return json.Unmarshal([]byte(s), &r) 362} 363 364type CreatePresignedNotebookInstanceUrlResponse struct { 365 *tchttp.BaseResponse 366 Response *struct { 367 368 // 授权url 369 AuthorizedUrl *string `json:"AuthorizedUrl,omitempty" name:"AuthorizedUrl"` 370 371 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 372 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 373 } `json:"Response"` 374} 375 376func (r *CreatePresignedNotebookInstanceUrlResponse) ToJsonString() string { 377 b, _ := json.Marshal(r) 378 return string(b) 379} 380 381// It is highly **NOT** recommended to use this function 382// because it has no param check, nor strict type check 383func (r *CreatePresignedNotebookInstanceUrlResponse) FromJsonString(s string) error { 384 return json.Unmarshal([]byte(s), &r) 385} 386 387type CreateTrainingJobRequest struct { 388 *tchttp.BaseRequest 389 390 // 算法镜像配置 391 AlgorithmSpecification *AlgorithmSpecification `json:"AlgorithmSpecification,omitempty" name:"AlgorithmSpecification"` 392 393 // 输出数据配置 394 OutputDataConfig *OutputDataConfig `json:"OutputDataConfig,omitempty" name:"OutputDataConfig"` 395 396 // 资源实例配置 397 ResourceConfig *ResourceConfig `json:"ResourceConfig,omitempty" name:"ResourceConfig"` 398 399 // 训练任务名称 400 TrainingJobName *string `json:"TrainingJobName,omitempty" name:"TrainingJobName"` 401 402 // 输入数据配置 403 InputDataConfig []*InputDataConfig `json:"InputDataConfig,omitempty" name:"InputDataConfig" list` 404 405 // 中止条件 406 StoppingCondition *StoppingCondition `json:"StoppingCondition,omitempty" name:"StoppingCondition"` 407 408 // 私有网络配置 409 VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"` 410 411 // 算法超级参数 412 HyperParameters *string `json:"HyperParameters,omitempty" name:"HyperParameters"` 413 414 // 环境变量配置 415 EnvConfig []*EnvConfig `json:"EnvConfig,omitempty" name:"EnvConfig" list` 416 417 // 角色名称 418 RoleName *string `json:"RoleName,omitempty" name:"RoleName"` 419 420 // 在资源不足(ResourceInsufficient)时后台不定时尝试重新创建训练任务。可取值Enabled/Disabled 421 // 默认值为Disabled即不重新尝试。设为Enabled时重新尝试有一定的时间期限,定义在 StoppingCondition 中 MaxWaitTimeInSecond中 ,默认值为1天,超过该期限创建失败。 422 RetryWhenResourceInsufficient *string `json:"RetryWhenResourceInsufficient,omitempty" name:"RetryWhenResourceInsufficient"` 423} 424 425func (r *CreateTrainingJobRequest) ToJsonString() string { 426 b, _ := json.Marshal(r) 427 return string(b) 428} 429 430// It is highly **NOT** recommended to use this function 431// because it has no param check, nor strict type check 432func (r *CreateTrainingJobRequest) FromJsonString(s string) error { 433 f := make(map[string]interface{}) 434 if err := json.Unmarshal([]byte(s), &f); err != nil { 435 return err 436 } 437 delete(f, "AlgorithmSpecification") 438 delete(f, "OutputDataConfig") 439 delete(f, "ResourceConfig") 440 delete(f, "TrainingJobName") 441 delete(f, "InputDataConfig") 442 delete(f, "StoppingCondition") 443 delete(f, "VpcConfig") 444 delete(f, "HyperParameters") 445 delete(f, "EnvConfig") 446 delete(f, "RoleName") 447 delete(f, "RetryWhenResourceInsufficient") 448 if len(f) > 0 { 449 return errors.New("CreateTrainingJobRequest has unknown keys!") 450 } 451 return json.Unmarshal([]byte(s), &r) 452} 453 454type CreateTrainingJobResponse struct { 455 *tchttp.BaseResponse 456 Response *struct { 457 458 // 训练任务名称 459 TrainingJobName *string `json:"TrainingJobName,omitempty" name:"TrainingJobName"` 460 461 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 462 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 463 } `json:"Response"` 464} 465 466func (r *CreateTrainingJobResponse) ToJsonString() string { 467 b, _ := json.Marshal(r) 468 return string(b) 469} 470 471// It is highly **NOT** recommended to use this function 472// because it has no param check, nor strict type check 473func (r *CreateTrainingJobResponse) FromJsonString(s string) error { 474 return json.Unmarshal([]byte(s), &r) 475} 476 477type DataSource struct { 478 479 // cos数据源 480 // 注意:此字段可能返回 null,表示取不到有效值。 481 CosDataSource *CosDataSource `json:"CosDataSource,omitempty" name:"CosDataSource"` 482 483 // 文件系统输入源 484 // 注意:此字段可能返回 null,表示取不到有效值。 485 FileSystemDataSource *FileSystemDataSource `json:"FileSystemDataSource,omitempty" name:"FileSystemDataSource"` 486} 487 488type DeleteCodeRepositoryRequest struct { 489 *tchttp.BaseRequest 490 491 // 存储库名称 492 CodeRepositoryName *string `json:"CodeRepositoryName,omitempty" name:"CodeRepositoryName"` 493} 494 495func (r *DeleteCodeRepositoryRequest) ToJsonString() string { 496 b, _ := json.Marshal(r) 497 return string(b) 498} 499 500// It is highly **NOT** recommended to use this function 501// because it has no param check, nor strict type check 502func (r *DeleteCodeRepositoryRequest) FromJsonString(s string) error { 503 f := make(map[string]interface{}) 504 if err := json.Unmarshal([]byte(s), &f); err != nil { 505 return err 506 } 507 delete(f, "CodeRepositoryName") 508 if len(f) > 0 { 509 return errors.New("DeleteCodeRepositoryRequest has unknown keys!") 510 } 511 return json.Unmarshal([]byte(s), &r) 512} 513 514type DeleteCodeRepositoryResponse struct { 515 *tchttp.BaseResponse 516 Response *struct { 517 518 // 存储库名称 519 CodeRepositoryName *string `json:"CodeRepositoryName,omitempty" name:"CodeRepositoryName"` 520 521 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 522 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 523 } `json:"Response"` 524} 525 526func (r *DeleteCodeRepositoryResponse) ToJsonString() string { 527 b, _ := json.Marshal(r) 528 return string(b) 529} 530 531// It is highly **NOT** recommended to use this function 532// because it has no param check, nor strict type check 533func (r *DeleteCodeRepositoryResponse) FromJsonString(s string) error { 534 return json.Unmarshal([]byte(s), &r) 535} 536 537type DeleteNotebookInstanceRequest struct { 538 *tchttp.BaseRequest 539 540 // Notebook实例名称 541 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 542} 543 544func (r *DeleteNotebookInstanceRequest) ToJsonString() string { 545 b, _ := json.Marshal(r) 546 return string(b) 547} 548 549// It is highly **NOT** recommended to use this function 550// because it has no param check, nor strict type check 551func (r *DeleteNotebookInstanceRequest) FromJsonString(s string) error { 552 f := make(map[string]interface{}) 553 if err := json.Unmarshal([]byte(s), &f); err != nil { 554 return err 555 } 556 delete(f, "NotebookInstanceName") 557 if len(f) > 0 { 558 return errors.New("DeleteNotebookInstanceRequest has unknown keys!") 559 } 560 return json.Unmarshal([]byte(s), &r) 561} 562 563type DeleteNotebookInstanceResponse struct { 564 *tchttp.BaseResponse 565 Response *struct { 566 567 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 568 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 569 } `json:"Response"` 570} 571 572func (r *DeleteNotebookInstanceResponse) ToJsonString() string { 573 b, _ := json.Marshal(r) 574 return string(b) 575} 576 577// It is highly **NOT** recommended to use this function 578// because it has no param check, nor strict type check 579func (r *DeleteNotebookInstanceResponse) FromJsonString(s string) error { 580 return json.Unmarshal([]byte(s), &r) 581} 582 583type DeleteNotebookLifecycleScriptRequest struct { 584 *tchttp.BaseRequest 585 586 // 生命周期脚本名称 587 NotebookLifecycleScriptsName *string `json:"NotebookLifecycleScriptsName,omitempty" name:"NotebookLifecycleScriptsName"` 588 589 // 是否忽略已关联的 notebook 实例强行删除生命周期脚本,默认 false 590 Forcible *bool `json:"Forcible,omitempty" name:"Forcible"` 591} 592 593func (r *DeleteNotebookLifecycleScriptRequest) ToJsonString() string { 594 b, _ := json.Marshal(r) 595 return string(b) 596} 597 598// It is highly **NOT** recommended to use this function 599// because it has no param check, nor strict type check 600func (r *DeleteNotebookLifecycleScriptRequest) FromJsonString(s string) error { 601 f := make(map[string]interface{}) 602 if err := json.Unmarshal([]byte(s), &f); err != nil { 603 return err 604 } 605 delete(f, "NotebookLifecycleScriptsName") 606 delete(f, "Forcible") 607 if len(f) > 0 { 608 return errors.New("DeleteNotebookLifecycleScriptRequest has unknown keys!") 609 } 610 return json.Unmarshal([]byte(s), &r) 611} 612 613type DeleteNotebookLifecycleScriptResponse struct { 614 *tchttp.BaseResponse 615 Response *struct { 616 617 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 618 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 619 } `json:"Response"` 620} 621 622func (r *DeleteNotebookLifecycleScriptResponse) ToJsonString() string { 623 b, _ := json.Marshal(r) 624 return string(b) 625} 626 627// It is highly **NOT** recommended to use this function 628// because it has no param check, nor strict type check 629func (r *DeleteNotebookLifecycleScriptResponse) FromJsonString(s string) error { 630 return json.Unmarshal([]byte(s), &r) 631} 632 633type DescribeCodeRepositoriesRequest struct { 634 *tchttp.BaseRequest 635 636 // 偏移量,默认为0 637 Offset *int64 `json:"Offset,omitempty" name:"Offset"` 638 639 // 返回数量,默认为20 640 Limit *int64 `json:"Limit,omitempty" name:"Limit"` 641 642 // 过滤条件。 643 // instance-name - String - 是否必填:否 -(过滤条件)按照名称过滤。 644 // search-by-name - String - 是否必填:否 -(过滤条件)按照名称检索,模糊匹配。 645 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` 646 647 // 排序规则。默认取Descending 648 // Descending 按更新时间降序 649 // Ascending 按更新时间升序 650 SortOrder *string `json:"SortOrder,omitempty" name:"SortOrder"` 651} 652 653func (r *DescribeCodeRepositoriesRequest) ToJsonString() string { 654 b, _ := json.Marshal(r) 655 return string(b) 656} 657 658// It is highly **NOT** recommended to use this function 659// because it has no param check, nor strict type check 660func (r *DescribeCodeRepositoriesRequest) FromJsonString(s string) error { 661 f := make(map[string]interface{}) 662 if err := json.Unmarshal([]byte(s), &f); err != nil { 663 return err 664 } 665 delete(f, "Offset") 666 delete(f, "Limit") 667 delete(f, "Filters") 668 delete(f, "SortOrder") 669 if len(f) > 0 { 670 return errors.New("DescribeCodeRepositoriesRequest has unknown keys!") 671 } 672 return json.Unmarshal([]byte(s), &r) 673} 674 675type DescribeCodeRepositoriesResponse struct { 676 *tchttp.BaseResponse 677 Response *struct { 678 679 // 存储库总数目 680 TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` 681 682 // 存储库列表 683 // 注意:此字段可能返回 null,表示取不到有效值。 684 CodeRepoSet []*CodeRepoSummary `json:"CodeRepoSet,omitempty" name:"CodeRepoSet" list` 685 686 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 687 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 688 } `json:"Response"` 689} 690 691func (r *DescribeCodeRepositoriesResponse) ToJsonString() string { 692 b, _ := json.Marshal(r) 693 return string(b) 694} 695 696// It is highly **NOT** recommended to use this function 697// because it has no param check, nor strict type check 698func (r *DescribeCodeRepositoriesResponse) FromJsonString(s string) error { 699 return json.Unmarshal([]byte(s), &r) 700} 701 702type DescribeCodeRepositoryRequest struct { 703 *tchttp.BaseRequest 704 705 // 存储库名称 706 CodeRepositoryName *string `json:"CodeRepositoryName,omitempty" name:"CodeRepositoryName"` 707} 708 709func (r *DescribeCodeRepositoryRequest) ToJsonString() string { 710 b, _ := json.Marshal(r) 711 return string(b) 712} 713 714// It is highly **NOT** recommended to use this function 715// because it has no param check, nor strict type check 716func (r *DescribeCodeRepositoryRequest) FromJsonString(s string) error { 717 f := make(map[string]interface{}) 718 if err := json.Unmarshal([]byte(s), &f); err != nil { 719 return err 720 } 721 delete(f, "CodeRepositoryName") 722 if len(f) > 0 { 723 return errors.New("DescribeCodeRepositoryRequest has unknown keys!") 724 } 725 return json.Unmarshal([]byte(s), &r) 726} 727 728type DescribeCodeRepositoryResponse struct { 729 *tchttp.BaseResponse 730 Response *struct { 731 732 // 创建时间 733 CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"` 734 735 // 更新时间 736 LastModifiedTime *string `json:"LastModifiedTime,omitempty" name:"LastModifiedTime"` 737 738 // 存储库名称 739 CodeRepositoryName *string `json:"CodeRepositoryName,omitempty" name:"CodeRepositoryName"` 740 741 // Git存储配置 742 GitConfig *GitConfig `json:"GitConfig,omitempty" name:"GitConfig"` 743 744 // 是否有Git凭证 745 NoSecret *bool `json:"NoSecret,omitempty" name:"NoSecret"` 746 747 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 748 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 749 } `json:"Response"` 750} 751 752func (r *DescribeCodeRepositoryResponse) ToJsonString() string { 753 b, _ := json.Marshal(r) 754 return string(b) 755} 756 757// It is highly **NOT** recommended to use this function 758// because it has no param check, nor strict type check 759func (r *DescribeCodeRepositoryResponse) FromJsonString(s string) error { 760 return json.Unmarshal([]byte(s), &r) 761} 762 763type DescribeNotebookInstanceRequest struct { 764 *tchttp.BaseRequest 765 766 // Notebook实例名称 767 // 规则:“^\[a-zA-Z0-9\](-\*\[a-zA-Z0-9\])\*$” 768 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 769} 770 771func (r *DescribeNotebookInstanceRequest) ToJsonString() string { 772 b, _ := json.Marshal(r) 773 return string(b) 774} 775 776// It is highly **NOT** recommended to use this function 777// because it has no param check, nor strict type check 778func (r *DescribeNotebookInstanceRequest) FromJsonString(s string) error { 779 f := make(map[string]interface{}) 780 if err := json.Unmarshal([]byte(s), &f); err != nil { 781 return err 782 } 783 delete(f, "NotebookInstanceName") 784 if len(f) > 0 { 785 return errors.New("DescribeNotebookInstanceRequest has unknown keys!") 786 } 787 return json.Unmarshal([]byte(s), &r) 788} 789 790type DescribeNotebookInstanceResponse struct { 791 *tchttp.BaseResponse 792 Response *struct { 793 794 // Notebook实例名称 795 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 796 797 // Notebook算力资源类型 798 // 注意:此字段可能返回 null,表示取不到有效值。 799 InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` 800 801 // 角色的资源描述 802 // 注意:此字段可能返回 null,表示取不到有效值。 803 RoleArn *string `json:"RoleArn,omitempty" name:"RoleArn"` 804 805 // 外网访问权限 806 // 注意:此字段可能返回 null,表示取不到有效值。 807 DirectInternetAccess *string `json:"DirectInternetAccess,omitempty" name:"DirectInternetAccess"` 808 809 // Root用户权限 810 // 注意:此字段可能返回 null,表示取不到有效值。 811 RootAccess *string `json:"RootAccess,omitempty" name:"RootAccess"` 812 813 // 子网ID 814 // 注意:此字段可能返回 null,表示取不到有效值。 815 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 816 817 // 数据卷大小(GB) 818 // 注意:此字段可能返回 null,表示取不到有效值。 819 VolumeSizeInGB *uint64 `json:"VolumeSizeInGB,omitempty" name:"VolumeSizeInGB"` 820 821 // 创建失败原因 822 // 注意:此字段可能返回 null,表示取不到有效值。 823 FailureReason *string `json:"FailureReason,omitempty" name:"FailureReason"` 824 825 // Notebook实例创建时间 826 // 注意:此字段可能返回 null,表示取不到有效值。 827 CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"` 828 829 // Notebook实例最近修改时间 830 // 注意:此字段可能返回 null,表示取不到有效值。 831 LastModifiedTime *string `json:"LastModifiedTime,omitempty" name:"LastModifiedTime"` 832 833 // Notebook实例日志链接 834 // 注意:此字段可能返回 null,表示取不到有效值。 835 LogUrl *string `json:"LogUrl,omitempty" name:"LogUrl"` 836 837 // Notebook实例状态 838 // 839 // Pending: 创建中 840 // Inservice: 运行中 841 // Stopping: 停止中 842 // Stopped: 已停止 843 // Failed: 失败 844 // 注意:此字段可能返回 null,表示取不到有效值。 845 NotebookInstanceStatus *string `json:"NotebookInstanceStatus,omitempty" name:"NotebookInstanceStatus"` 846 847 // Notebook实例ID 848 // 注意:此字段可能返回 null,表示取不到有效值。 849 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 850 851 // notebook生命周期脚本名称 852 // 注意:此字段可能返回 null,表示取不到有效值。 853 LifecycleScriptsName *string `json:"LifecycleScriptsName,omitempty" name:"LifecycleScriptsName"` 854 855 // 默认存储库名称 856 // 可以是已创建的存储库名称或者已https://开头的公共git库 857 // 注意:此字段可能返回 null,表示取不到有效值。 858 DefaultCodeRepository *string `json:"DefaultCodeRepository,omitempty" name:"DefaultCodeRepository"` 859 860 // 其他存储库列表 861 // 每个元素可以是已创建的存储库名称或者已https://开头的公共git库 862 // 注意:此字段可能返回 null,表示取不到有效值。 863 AdditionalCodeRepositories []*string `json:"AdditionalCodeRepositories,omitempty" name:"AdditionalCodeRepositories" list` 864 865 // 是否开启CLS日志服务 866 // 注意:此字段可能返回 null,表示取不到有效值。 867 ClsAccess *string `json:"ClsAccess,omitempty" name:"ClsAccess"` 868 869 // 是否预付费实例 870 // 注意:此字段可能返回 null,表示取不到有效值。 871 Prepay *bool `json:"Prepay,omitempty" name:"Prepay"` 872 873 // 实例运行截止时间 874 // 注意:此字段可能返回 null,表示取不到有效值。 875 Deadline *string `json:"Deadline,omitempty" name:"Deadline"` 876 877 // 自动停止配置 878 // 注意:此字段可能返回 null,表示取不到有效值。 879 StoppingCondition *StoppingCondition `json:"StoppingCondition,omitempty" name:"StoppingCondition"` 880 881 // Cls配置 882 // 注意:此字段可能返回 null,表示取不到有效值。 883 ClsConfig *ClsConfig `json:"ClsConfig,omitempty" name:"ClsConfig"` 884 885 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 886 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 887 } `json:"Response"` 888} 889 890func (r *DescribeNotebookInstanceResponse) ToJsonString() string { 891 b, _ := json.Marshal(r) 892 return string(b) 893} 894 895// It is highly **NOT** recommended to use this function 896// because it has no param check, nor strict type check 897func (r *DescribeNotebookInstanceResponse) FromJsonString(s string) error { 898 return json.Unmarshal([]byte(s), &r) 899} 900 901type DescribeNotebookInstancesRequest struct { 902 *tchttp.BaseRequest 903 904 // 偏移量 905 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 906 907 // 限制数目 908 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 909 910 // 排序规则。默认取Descending 911 // Descending 按更新时间降序 912 // Ascending 按更新时间升序 913 SortOrder *string `json:"SortOrder,omitempty" name:"SortOrder"` 914 915 // 过滤条件。 916 // instance-name - String - 是否必填:否 -(过滤条件)按照名称过滤。 917 // search-by-name - String - 是否必填:否 -(过滤条件)按照名称检索,模糊匹配。 918 // lifecycle-name - String - 是否必填:否 -(过滤条件)按照生命周期脚本名称过滤。 919 // default-code-repo-name - String - 是否必填:否 -(过滤条件)按照默认存储库名称过滤。 920 // additional-code-repo-name - String - 是否必填:否 -(过滤条件)按照其他存储库名称过滤。 921 // billing-status - String - 是否必填:否 - (过滤条件)按照计费状态过滤,可取以下值 922 // StorageOnly:仅存储计费的实例 923 // Computing:计算和存储都计费的实例 924 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` 925 926 // 【废弃字段】排序字段 927 SortBy *string `json:"SortBy,omitempty" name:"SortBy"` 928} 929 930func (r *DescribeNotebookInstancesRequest) ToJsonString() string { 931 b, _ := json.Marshal(r) 932 return string(b) 933} 934 935// It is highly **NOT** recommended to use this function 936// because it has no param check, nor strict type check 937func (r *DescribeNotebookInstancesRequest) FromJsonString(s string) error { 938 f := make(map[string]interface{}) 939 if err := json.Unmarshal([]byte(s), &f); err != nil { 940 return err 941 } 942 delete(f, "Offset") 943 delete(f, "Limit") 944 delete(f, "SortOrder") 945 delete(f, "Filters") 946 delete(f, "SortBy") 947 if len(f) > 0 { 948 return errors.New("DescribeNotebookInstancesRequest has unknown keys!") 949 } 950 return json.Unmarshal([]byte(s), &r) 951} 952 953type DescribeNotebookInstancesResponse struct { 954 *tchttp.BaseResponse 955 Response *struct { 956 957 // Notebook实例列表 958 NotebookInstanceSet []*NotebookInstanceSummary `json:"NotebookInstanceSet,omitempty" name:"NotebookInstanceSet" list` 959 960 // Notebook实例总数目 961 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 962 963 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 964 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 965 } `json:"Response"` 966} 967 968func (r *DescribeNotebookInstancesResponse) ToJsonString() string { 969 b, _ := json.Marshal(r) 970 return string(b) 971} 972 973// It is highly **NOT** recommended to use this function 974// because it has no param check, nor strict type check 975func (r *DescribeNotebookInstancesResponse) FromJsonString(s string) error { 976 return json.Unmarshal([]byte(s), &r) 977} 978 979type DescribeNotebookLifecycleScriptRequest struct { 980 *tchttp.BaseRequest 981 982 // 生命周期脚本名称 983 NotebookLifecycleScriptsName *string `json:"NotebookLifecycleScriptsName,omitempty" name:"NotebookLifecycleScriptsName"` 984} 985 986func (r *DescribeNotebookLifecycleScriptRequest) ToJsonString() string { 987 b, _ := json.Marshal(r) 988 return string(b) 989} 990 991// It is highly **NOT** recommended to use this function 992// because it has no param check, nor strict type check 993func (r *DescribeNotebookLifecycleScriptRequest) FromJsonString(s string) error { 994 f := make(map[string]interface{}) 995 if err := json.Unmarshal([]byte(s), &f); err != nil { 996 return err 997 } 998 delete(f, "NotebookLifecycleScriptsName") 999 if len(f) > 0 { 1000 return errors.New("DescribeNotebookLifecycleScriptRequest has unknown keys!") 1001 } 1002 return json.Unmarshal([]byte(s), &r) 1003} 1004 1005type DescribeNotebookLifecycleScriptResponse struct { 1006 *tchttp.BaseResponse 1007 Response *struct { 1008 1009 // 生命周期脚本名称 1010 NotebookLifecycleScriptsName *string `json:"NotebookLifecycleScriptsName,omitempty" name:"NotebookLifecycleScriptsName"` 1011 1012 // 创建脚本 1013 // 注意:此字段可能返回 null,表示取不到有效值。 1014 CreateScript *string `json:"CreateScript,omitempty" name:"CreateScript"` 1015 1016 // 启动脚本 1017 // 注意:此字段可能返回 null,表示取不到有效值。 1018 StartScript *string `json:"StartScript,omitempty" name:"StartScript"` 1019 1020 // 创建时间 1021 CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"` 1022 1023 // 最后修改时间 1024 LastModifiedTime *string `json:"LastModifiedTime,omitempty" name:"LastModifiedTime"` 1025 1026 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1027 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1028 } `json:"Response"` 1029} 1030 1031func (r *DescribeNotebookLifecycleScriptResponse) ToJsonString() string { 1032 b, _ := json.Marshal(r) 1033 return string(b) 1034} 1035 1036// It is highly **NOT** recommended to use this function 1037// because it has no param check, nor strict type check 1038func (r *DescribeNotebookLifecycleScriptResponse) FromJsonString(s string) error { 1039 return json.Unmarshal([]byte(s), &r) 1040} 1041 1042type DescribeNotebookLifecycleScriptsRequest struct { 1043 *tchttp.BaseRequest 1044 1045 // 偏移量,默认为0 1046 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1047 1048 // 返回数量,默认为20 1049 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1050 1051 // 过滤条件。 1052 // instance-name - String - 是否必填:否 -(过滤条件)按照名称过滤。 1053 // search-by-name - String - 是否必填:否 -(过滤条件)按照名称检索,模糊匹配。 1054 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` 1055 1056 // 排序规则。默认取Descending 1057 // Descending 按更新时间降序 1058 // Ascending 按更新时间升序 1059 SortOrder *string `json:"SortOrder,omitempty" name:"SortOrder"` 1060} 1061 1062func (r *DescribeNotebookLifecycleScriptsRequest) ToJsonString() string { 1063 b, _ := json.Marshal(r) 1064 return string(b) 1065} 1066 1067// It is highly **NOT** recommended to use this function 1068// because it has no param check, nor strict type check 1069func (r *DescribeNotebookLifecycleScriptsRequest) FromJsonString(s string) error { 1070 f := make(map[string]interface{}) 1071 if err := json.Unmarshal([]byte(s), &f); err != nil { 1072 return err 1073 } 1074 delete(f, "Offset") 1075 delete(f, "Limit") 1076 delete(f, "Filters") 1077 delete(f, "SortOrder") 1078 if len(f) > 0 { 1079 return errors.New("DescribeNotebookLifecycleScriptsRequest has unknown keys!") 1080 } 1081 return json.Unmarshal([]byte(s), &r) 1082} 1083 1084type DescribeNotebookLifecycleScriptsResponse struct { 1085 *tchttp.BaseResponse 1086 Response *struct { 1087 1088 // Notebook生命周期脚本列表 1089 NotebookLifecycleScriptsSet []*NotebookLifecycleScriptsSummary `json:"NotebookLifecycleScriptsSet,omitempty" name:"NotebookLifecycleScriptsSet" list` 1090 1091 // Notebook生命周期脚本总数量 1092 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1093 1094 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1095 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1096 } `json:"Response"` 1097} 1098 1099func (r *DescribeNotebookLifecycleScriptsResponse) ToJsonString() string { 1100 b, _ := json.Marshal(r) 1101 return string(b) 1102} 1103 1104// It is highly **NOT** recommended to use this function 1105// because it has no param check, nor strict type check 1106func (r *DescribeNotebookLifecycleScriptsResponse) FromJsonString(s string) error { 1107 return json.Unmarshal([]byte(s), &r) 1108} 1109 1110type DescribeNotebookSummaryRequest struct { 1111 *tchttp.BaseRequest 1112} 1113 1114func (r *DescribeNotebookSummaryRequest) ToJsonString() string { 1115 b, _ := json.Marshal(r) 1116 return string(b) 1117} 1118 1119// It is highly **NOT** recommended to use this function 1120// because it has no param check, nor strict type check 1121func (r *DescribeNotebookSummaryRequest) FromJsonString(s string) error { 1122 f := make(map[string]interface{}) 1123 if err := json.Unmarshal([]byte(s), &f); err != nil { 1124 return err 1125 } 1126 if len(f) > 0 { 1127 return errors.New("DescribeNotebookSummaryRequest has unknown keys!") 1128 } 1129 return json.Unmarshal([]byte(s), &r) 1130} 1131 1132type DescribeNotebookSummaryResponse struct { 1133 *tchttp.BaseResponse 1134 Response *struct { 1135 1136 // 实例总数 1137 AllInstanceCnt *int64 `json:"AllInstanceCnt,omitempty" name:"AllInstanceCnt"` 1138 1139 // 计费实例总数 1140 BillingInstanceCnt *int64 `json:"BillingInstanceCnt,omitempty" name:"BillingInstanceCnt"` 1141 1142 // 仅存储计费的实例总数 1143 StorageOnlyBillingInstanceCnt *int64 `json:"StorageOnlyBillingInstanceCnt,omitempty" name:"StorageOnlyBillingInstanceCnt"` 1144 1145 // 计算和存储都计费的实例总数 1146 ComputingBillingInstanceCnt *int64 `json:"ComputingBillingInstanceCnt,omitempty" name:"ComputingBillingInstanceCnt"` 1147 1148 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1149 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1150 } `json:"Response"` 1151} 1152 1153func (r *DescribeNotebookSummaryResponse) ToJsonString() string { 1154 b, _ := json.Marshal(r) 1155 return string(b) 1156} 1157 1158// It is highly **NOT** recommended to use this function 1159// because it has no param check, nor strict type check 1160func (r *DescribeNotebookSummaryResponse) FromJsonString(s string) error { 1161 return json.Unmarshal([]byte(s), &r) 1162} 1163 1164type DescribeTrainingJobRequest struct { 1165 *tchttp.BaseRequest 1166 1167 // 训练任务名称 1168 TrainingJobName *string `json:"TrainingJobName,omitempty" name:"TrainingJobName"` 1169} 1170 1171func (r *DescribeTrainingJobRequest) ToJsonString() string { 1172 b, _ := json.Marshal(r) 1173 return string(b) 1174} 1175 1176// It is highly **NOT** recommended to use this function 1177// because it has no param check, nor strict type check 1178func (r *DescribeTrainingJobRequest) FromJsonString(s string) error { 1179 f := make(map[string]interface{}) 1180 if err := json.Unmarshal([]byte(s), &f); err != nil { 1181 return err 1182 } 1183 delete(f, "TrainingJobName") 1184 if len(f) > 0 { 1185 return errors.New("DescribeTrainingJobRequest has unknown keys!") 1186 } 1187 return json.Unmarshal([]byte(s), &r) 1188} 1189 1190type DescribeTrainingJobResponse struct { 1191 *tchttp.BaseResponse 1192 Response *struct { 1193 1194 // 算法镜像配置 1195 AlgorithmSpecification *AlgorithmSpecification `json:"AlgorithmSpecification,omitempty" name:"AlgorithmSpecification"` 1196 1197 // 任务名称 1198 TrainingJobName *string `json:"TrainingJobName,omitempty" name:"TrainingJobName"` 1199 1200 // 算法超级参数 1201 // 注意:此字段可能返回 null,表示取不到有效值。 1202 HyperParameters *string `json:"HyperParameters,omitempty" name:"HyperParameters"` 1203 1204 // 输入数据配置 1205 InputDataConfig []*InputDataConfig `json:"InputDataConfig,omitempty" name:"InputDataConfig" list` 1206 1207 // 输出数据配置 1208 OutputDataConfig *OutputDataConfig `json:"OutputDataConfig,omitempty" name:"OutputDataConfig"` 1209 1210 // 中止条件 1211 // 注意:此字段可能返回 null,表示取不到有效值。 1212 StoppingCondition *StoppingCondition `json:"StoppingCondition,omitempty" name:"StoppingCondition"` 1213 1214 // 计算实例配置 1215 ResourceConfig *ResourceConfig `json:"ResourceConfig,omitempty" name:"ResourceConfig"` 1216 1217 // 私有网络配置 1218 // 注意:此字段可能返回 null,表示取不到有效值。 1219 VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"` 1220 1221 // 失败原因 1222 // 注意:此字段可能返回 null,表示取不到有效值。 1223 FailureReason *string `json:"FailureReason,omitempty" name:"FailureReason"` 1224 1225 // 最近修改时间 1226 LastModifiedTime *string `json:"LastModifiedTime,omitempty" name:"LastModifiedTime"` 1227 1228 // 任务开始时间 1229 // 注意:此字段可能返回 null,表示取不到有效值。 1230 TrainingStartTime *string `json:"TrainingStartTime,omitempty" name:"TrainingStartTime"` 1231 1232 // 任务完成时间 1233 // 注意:此字段可能返回 null,表示取不到有效值。 1234 TrainingEndTime *string `json:"TrainingEndTime,omitempty" name:"TrainingEndTime"` 1235 1236 // 模型输出配置 1237 // 注意:此字段可能返回 null,表示取不到有效值。 1238 ModelArtifacts *ModelArtifacts `json:"ModelArtifacts,omitempty" name:"ModelArtifacts"` 1239 1240 // 详细状态,取值范围 1241 // Starting:启动中 1242 // Downloading: 准备训练数据 1243 // Training: 正在训练 1244 // Uploading: 上传训练结果 1245 // Completed:已完成 1246 // Failed: 失败 1247 // MaxRuntimeExceeded: 任务超过最大运行时间 1248 // Stopping: 停止中 1249 // Stopped:已停止 1250 SecondaryStatus *string `json:"SecondaryStatus,omitempty" name:"SecondaryStatus"` 1251 1252 // 详细状态事件记录 1253 // 注意:此字段可能返回 null,表示取不到有效值。 1254 SecondaryStatusTransitions []*SecondaryStatusTransition `json:"SecondaryStatusTransitions,omitempty" name:"SecondaryStatusTransitions" list` 1255 1256 // 角色名称 1257 // 注意:此字段可能返回 null,表示取不到有效值。 1258 RoleName *string `json:"RoleName,omitempty" name:"RoleName"` 1259 1260 // 训练任务状态,取值范围 1261 // InProgress:运行中 1262 // Completed: 已完成 1263 // Failed: 失败 1264 // Stopping: 停止中 1265 // Stopped:已停止 1266 TrainingJobStatus *string `json:"TrainingJobStatus,omitempty" name:"TrainingJobStatus"` 1267 1268 // 训练任务日志链接 1269 // 注意:此字段可能返回 null,表示取不到有效值。 1270 LogUrl *string `json:"LogUrl,omitempty" name:"LogUrl"` 1271 1272 // 训练任务实例ID 1273 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1274 1275 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1276 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1277 } `json:"Response"` 1278} 1279 1280func (r *DescribeTrainingJobResponse) ToJsonString() string { 1281 b, _ := json.Marshal(r) 1282 return string(b) 1283} 1284 1285// It is highly **NOT** recommended to use this function 1286// because it has no param check, nor strict type check 1287func (r *DescribeTrainingJobResponse) FromJsonString(s string) error { 1288 return json.Unmarshal([]byte(s), &r) 1289} 1290 1291type DescribeTrainingJobsRequest struct { 1292 *tchttp.BaseRequest 1293 1294 // 偏移量 1295 Offset *uint64 `json:"Offset,omitempty" name:"Offset"` 1296 1297 // 限制数目 1298 Limit *uint64 `json:"Limit,omitempty" name:"Limit"` 1299 1300 // 创建时间晚于 1301 CreationTimeAfter *string `json:"CreationTimeAfter,omitempty" name:"CreationTimeAfter"` 1302 1303 // 创建时间早于 1304 CreationTimeBefore *string `json:"CreationTimeBefore,omitempty" name:"CreationTimeBefore"` 1305 1306 // 根据名称过滤 1307 NameContains *string `json:"NameContains,omitempty" name:"NameContains"` 1308 1309 // 根据状态过滤 1310 StatusEquals *string `json:"StatusEquals,omitempty" name:"StatusEquals"` 1311 1312 // 过滤条件。 1313 // instance-name - String - 是否必填:否 -(过滤条件)按照名称过滤。 1314 // search-by-name - String - 是否必填:否 -(过滤条件)按照名称检索,模糊匹配。 1315 Filters []*Filter `json:"Filters,omitempty" name:"Filters" list` 1316} 1317 1318func (r *DescribeTrainingJobsRequest) ToJsonString() string { 1319 b, _ := json.Marshal(r) 1320 return string(b) 1321} 1322 1323// It is highly **NOT** recommended to use this function 1324// because it has no param check, nor strict type check 1325func (r *DescribeTrainingJobsRequest) FromJsonString(s string) error { 1326 f := make(map[string]interface{}) 1327 if err := json.Unmarshal([]byte(s), &f); err != nil { 1328 return err 1329 } 1330 delete(f, "Offset") 1331 delete(f, "Limit") 1332 delete(f, "CreationTimeAfter") 1333 delete(f, "CreationTimeBefore") 1334 delete(f, "NameContains") 1335 delete(f, "StatusEquals") 1336 delete(f, "Filters") 1337 if len(f) > 0 { 1338 return errors.New("DescribeTrainingJobsRequest has unknown keys!") 1339 } 1340 return json.Unmarshal([]byte(s), &r) 1341} 1342 1343type DescribeTrainingJobsResponse struct { 1344 *tchttp.BaseResponse 1345 Response *struct { 1346 1347 // 训练任务列表 1348 TrainingJobSet []*TrainingJobSummary `json:"TrainingJobSet,omitempty" name:"TrainingJobSet" list` 1349 1350 // 训练任务总数目 1351 TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` 1352 1353 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1354 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1355 } `json:"Response"` 1356} 1357 1358func (r *DescribeTrainingJobsResponse) ToJsonString() string { 1359 b, _ := json.Marshal(r) 1360 return string(b) 1361} 1362 1363// It is highly **NOT** recommended to use this function 1364// because it has no param check, nor strict type check 1365func (r *DescribeTrainingJobsResponse) FromJsonString(s string) error { 1366 return json.Unmarshal([]byte(s), &r) 1367} 1368 1369type EnvConfig struct { 1370 1371 // 名称 1372 Name *string `json:"Name,omitempty" name:"Name"` 1373 1374 // 值 1375 Value *string `json:"Value,omitempty" name:"Value"` 1376} 1377 1378type FileSystemDataSource struct { 1379 1380 // 文件系统目录 1381 // 注意:此字段可能返回 null,表示取不到有效值。 1382 DirectoryPath *string `json:"DirectoryPath,omitempty" name:"DirectoryPath"` 1383 1384 // 文件系统类型 1385 // 注意:此字段可能返回 null,表示取不到有效值。 1386 FileSystemType *string `json:"FileSystemType,omitempty" name:"FileSystemType"` 1387 1388 // 文件系统访问模式 1389 // 注意:此字段可能返回 null,表示取不到有效值。 1390 FileSystemAccessMode *string `json:"FileSystemAccessMode,omitempty" name:"FileSystemAccessMode"` 1391 1392 // 文件系统ID 1393 // 注意:此字段可能返回 null,表示取不到有效值。 1394 FileSystemId *string `json:"FileSystemId,omitempty" name:"FileSystemId"` 1395} 1396 1397type Filter struct { 1398 1399 // 过滤字段名称 1400 Name *string `json:"Name,omitempty" name:"Name"` 1401 1402 // 过滤字段取值 1403 Values []*string `json:"Values,omitempty" name:"Values" list` 1404} 1405 1406type GitConfig struct { 1407 1408 // git地址 1409 RepositoryUrl *string `json:"RepositoryUrl,omitempty" name:"RepositoryUrl"` 1410 1411 // 代码分支 1412 // 注意:此字段可能返回 null,表示取不到有效值。 1413 Branch *string `json:"Branch,omitempty" name:"Branch"` 1414} 1415 1416type GitSecret struct { 1417 1418 // 无秘钥,默认选项 1419 NoSecret *bool `json:"NoSecret,omitempty" name:"NoSecret"` 1420 1421 // Git用户名密码base64编码后的字符串 1422 // 编码前的内容应为Json字符串,如 1423 // {"UserName": "用户名", "Password":"密码"} 1424 Secret *string `json:"Secret,omitempty" name:"Secret"` 1425} 1426 1427type InputDataConfig struct { 1428 1429 // 通道名 1430 // 注意:此字段可能返回 null,表示取不到有效值。 1431 ChannelName *string `json:"ChannelName,omitempty" name:"ChannelName"` 1432 1433 // 数据源配置 1434 // 注意:此字段可能返回 null,表示取不到有效值。 1435 DataSource *DataSource `json:"DataSource,omitempty" name:"DataSource"` 1436 1437 // 输入类型 1438 // 注意:此字段可能返回 null,表示取不到有效值。 1439 InputMode *string `json:"InputMode,omitempty" name:"InputMode"` 1440 1441 // 文件类型 1442 // 注意:此字段可能返回 null,表示取不到有效值。 1443 ContentType *string `json:"ContentType,omitempty" name:"ContentType"` 1444} 1445 1446type ModelArtifacts struct { 1447 1448 // cos输出路径 1449 // 注意:此字段可能返回 null,表示取不到有效值。 1450 CosModelArtifacts *string `json:"CosModelArtifacts,omitempty" name:"CosModelArtifacts"` 1451} 1452 1453type NotebookInstanceSummary struct { 1454 1455 // 创建时间 1456 // 注意:此字段可能返回 null,表示取不到有效值。 1457 CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"` 1458 1459 // 最近修改时间 1460 // 注意:此字段可能返回 null,表示取不到有效值。 1461 LastModifiedTime *string `json:"LastModifiedTime,omitempty" name:"LastModifiedTime"` 1462 1463 // notebook实例名字 1464 // 注意:此字段可能返回 null,表示取不到有效值。 1465 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 1466 1467 // notebook实例状态,取值范围: 1468 // Pending: 创建中 1469 // Inservice: 运行中 1470 // Stopping: 停止中 1471 // Stopped: 已停止 1472 // Failed: 失败 1473 // 注意:此字段可能返回 null,表示取不到有效值。 1474 NotebookInstanceStatus *string `json:"NotebookInstanceStatus,omitempty" name:"NotebookInstanceStatus"` 1475 1476 // 算力类型 1477 // 注意:此字段可能返回 null,表示取不到有效值。 1478 InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` 1479 1480 // 实例ID 1481 // 注意:此字段可能返回 null,表示取不到有效值。 1482 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1483 1484 // 启动时间 1485 // 注意:此字段可能返回 null,表示取不到有效值。 1486 StartupTime *string `json:"StartupTime,omitempty" name:"StartupTime"` 1487 1488 // 运行截止时间 1489 // 注意:此字段可能返回 null,表示取不到有效值。 1490 Deadline *string `json:"Deadline,omitempty" name:"Deadline"` 1491 1492 // 自动停止配置 1493 // 注意:此字段可能返回 null,表示取不到有效值。 1494 StoppingCondition *StoppingCondition `json:"StoppingCondition,omitempty" name:"StoppingCondition"` 1495 1496 // 是否是预付费实例 1497 // 注意:此字段可能返回 null,表示取不到有效值。 1498 Prepay *bool `json:"Prepay,omitempty" name:"Prepay"` 1499 1500 // 计费标识 1501 // 注意:此字段可能返回 null,表示取不到有效值。 1502 BillingLabel *BillingLabel `json:"BillingLabel,omitempty" name:"BillingLabel"` 1503 1504 // 运行时长,秒 1505 // 注意:此字段可能返回 null,表示取不到有效值。 1506 RuntimeInSeconds *int64 `json:"RuntimeInSeconds,omitempty" name:"RuntimeInSeconds"` 1507 1508 // 剩余时长,秒 1509 // 注意:此字段可能返回 null,表示取不到有效值。 1510 RemainTimeInSeconds *int64 `json:"RemainTimeInSeconds,omitempty" name:"RemainTimeInSeconds"` 1511} 1512 1513type NotebookLifecycleScriptsSummary struct { 1514 1515 // notebook生命周期脚本名称 1516 NotebookLifecycleScriptsName *string `json:"NotebookLifecycleScriptsName,omitempty" name:"NotebookLifecycleScriptsName"` 1517 1518 // 创建时间 1519 CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"` 1520 1521 // 修改时间 1522 LastModifiedTime *string `json:"LastModifiedTime,omitempty" name:"LastModifiedTime"` 1523} 1524 1525type OutputDataConfig struct { 1526 1527 // cos输出桶 1528 // 注意:此字段可能返回 null,表示取不到有效值。 1529 CosOutputBucket *string `json:"CosOutputBucket,omitempty" name:"CosOutputBucket"` 1530 1531 // cos输出key前缀 1532 // 注意:此字段可能返回 null,表示取不到有效值。 1533 CosOutputKeyPrefix *string `json:"CosOutputKeyPrefix,omitempty" name:"CosOutputKeyPrefix"` 1534 1535 // 文件系统输出,如果指定了文件系统,那么Cos输出会被忽略 1536 // 注意:此字段可能返回 null,表示取不到有效值。 1537 FileSystemDataSource *FileSystemDataSource `json:"FileSystemDataSource,omitempty" name:"FileSystemDataSource"` 1538} 1539 1540type ResourceConfig struct { 1541 1542 // 计算实例数量 1543 // 注意:此字段可能返回 null,表示取不到有效值。 1544 InstanceCount *uint64 `json:"InstanceCount,omitempty" name:"InstanceCount"` 1545 1546 // 计算实例类型 1547 // 注意:此字段可能返回 null,表示取不到有效值。 1548 InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` 1549 1550 // 挂载CBS大小(GB) 1551 // 注意:此字段可能返回 null,表示取不到有效值。 1552 VolumeSizeInGB *uint64 `json:"VolumeSizeInGB,omitempty" name:"VolumeSizeInGB"` 1553} 1554 1555type SecondaryStatusTransition struct { 1556 1557 // 状态开始时间 1558 // 注意:此字段可能返回 null,表示取不到有效值。 1559 StartTime *string `json:"StartTime,omitempty" name:"StartTime"` 1560 1561 // 状态结束时间 1562 // 注意:此字段可能返回 null,表示取不到有效值。 1563 EndTime *string `json:"EndTime,omitempty" name:"EndTime"` 1564 1565 // 状态名 1566 // 注意:此字段可能返回 null,表示取不到有效值。 1567 Status *string `json:"Status,omitempty" name:"Status"` 1568 1569 // 状态详情 1570 // 注意:此字段可能返回 null,表示取不到有效值。 1571 StatusMessage *string `json:"StatusMessage,omitempty" name:"StatusMessage"` 1572} 1573 1574type StartNotebookInstanceRequest struct { 1575 *tchttp.BaseRequest 1576 1577 // Notebook实例名称 1578 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 1579 1580 // 自动停止,可取值Enabled/Disabled 1581 // 取值为Disabled的时候StoppingCondition将被忽略 1582 // 取值为Enabled的时候读取StoppingCondition作为自动停止的配置 1583 AutoStopping *string `json:"AutoStopping,omitempty" name:"AutoStopping"` 1584 1585 // 自动停止配置,只在AutoStopping为Enabled的时候生效 1586 StoppingCondition *StoppingCondition `json:"StoppingCondition,omitempty" name:"StoppingCondition"` 1587} 1588 1589func (r *StartNotebookInstanceRequest) ToJsonString() string { 1590 b, _ := json.Marshal(r) 1591 return string(b) 1592} 1593 1594// It is highly **NOT** recommended to use this function 1595// because it has no param check, nor strict type check 1596func (r *StartNotebookInstanceRequest) FromJsonString(s string) error { 1597 f := make(map[string]interface{}) 1598 if err := json.Unmarshal([]byte(s), &f); err != nil { 1599 return err 1600 } 1601 delete(f, "NotebookInstanceName") 1602 delete(f, "AutoStopping") 1603 delete(f, "StoppingCondition") 1604 if len(f) > 0 { 1605 return errors.New("StartNotebookInstanceRequest has unknown keys!") 1606 } 1607 return json.Unmarshal([]byte(s), &r) 1608} 1609 1610type StartNotebookInstanceResponse struct { 1611 *tchttp.BaseResponse 1612 Response *struct { 1613 1614 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1615 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1616 } `json:"Response"` 1617} 1618 1619func (r *StartNotebookInstanceResponse) ToJsonString() string { 1620 b, _ := json.Marshal(r) 1621 return string(b) 1622} 1623 1624// It is highly **NOT** recommended to use this function 1625// because it has no param check, nor strict type check 1626func (r *StartNotebookInstanceResponse) FromJsonString(s string) error { 1627 return json.Unmarshal([]byte(s), &r) 1628} 1629 1630type StopNotebookInstanceRequest struct { 1631 *tchttp.BaseRequest 1632 1633 // Notebook实例名称 1634 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 1635} 1636 1637func (r *StopNotebookInstanceRequest) ToJsonString() string { 1638 b, _ := json.Marshal(r) 1639 return string(b) 1640} 1641 1642// It is highly **NOT** recommended to use this function 1643// because it has no param check, nor strict type check 1644func (r *StopNotebookInstanceRequest) FromJsonString(s string) error { 1645 f := make(map[string]interface{}) 1646 if err := json.Unmarshal([]byte(s), &f); err != nil { 1647 return err 1648 } 1649 delete(f, "NotebookInstanceName") 1650 if len(f) > 0 { 1651 return errors.New("StopNotebookInstanceRequest has unknown keys!") 1652 } 1653 return json.Unmarshal([]byte(s), &r) 1654} 1655 1656type StopNotebookInstanceResponse struct { 1657 *tchttp.BaseResponse 1658 Response *struct { 1659 1660 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1661 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1662 } `json:"Response"` 1663} 1664 1665func (r *StopNotebookInstanceResponse) ToJsonString() string { 1666 b, _ := json.Marshal(r) 1667 return string(b) 1668} 1669 1670// It is highly **NOT** recommended to use this function 1671// because it has no param check, nor strict type check 1672func (r *StopNotebookInstanceResponse) FromJsonString(s string) error { 1673 return json.Unmarshal([]byte(s), &r) 1674} 1675 1676type StopTrainingJobRequest struct { 1677 *tchttp.BaseRequest 1678 1679 // 训练任务名称 1680 TrainingJobName *string `json:"TrainingJobName,omitempty" name:"TrainingJobName"` 1681} 1682 1683func (r *StopTrainingJobRequest) ToJsonString() string { 1684 b, _ := json.Marshal(r) 1685 return string(b) 1686} 1687 1688// It is highly **NOT** recommended to use this function 1689// because it has no param check, nor strict type check 1690func (r *StopTrainingJobRequest) FromJsonString(s string) error { 1691 f := make(map[string]interface{}) 1692 if err := json.Unmarshal([]byte(s), &f); err != nil { 1693 return err 1694 } 1695 delete(f, "TrainingJobName") 1696 if len(f) > 0 { 1697 return errors.New("StopTrainingJobRequest has unknown keys!") 1698 } 1699 return json.Unmarshal([]byte(s), &r) 1700} 1701 1702type StopTrainingJobResponse struct { 1703 *tchttp.BaseResponse 1704 Response *struct { 1705 1706 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1707 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1708 } `json:"Response"` 1709} 1710 1711func (r *StopTrainingJobResponse) ToJsonString() string { 1712 b, _ := json.Marshal(r) 1713 return string(b) 1714} 1715 1716// It is highly **NOT** recommended to use this function 1717// because it has no param check, nor strict type check 1718func (r *StopTrainingJobResponse) FromJsonString(s string) error { 1719 return json.Unmarshal([]byte(s), &r) 1720} 1721 1722type StoppingCondition struct { 1723 1724 // 最长运行运行时间(秒) 1725 // 注意:此字段可能返回 null,表示取不到有效值。 1726 MaxRuntimeInSeconds *uint64 `json:"MaxRuntimeInSeconds,omitempty" name:"MaxRuntimeInSeconds"` 1727 1728 // 最长等待运行时间(秒) 1729 // 注意:此字段可能返回 null,表示取不到有效值。 1730 MaxWaitTimeInSeconds *uint64 `json:"MaxWaitTimeInSeconds,omitempty" name:"MaxWaitTimeInSeconds"` 1731} 1732 1733type TrainingJobSummary struct { 1734 1735 // 任务创建时间 1736 // 注意:此字段可能返回 null,表示取不到有效值。 1737 CreationTime *string `json:"CreationTime,omitempty" name:"CreationTime"` 1738 1739 // 最近修改时间 1740 // 注意:此字段可能返回 null,表示取不到有效值。 1741 LastModifiedTime *string `json:"LastModifiedTime,omitempty" name:"LastModifiedTime"` 1742 1743 // 训练任务名 1744 // 注意:此字段可能返回 null,表示取不到有效值。 1745 TrainingJobName *string `json:"TrainingJobName,omitempty" name:"TrainingJobName"` 1746 1747 // 训练任务状态,取值范围 1748 // InProgress:运行中 1749 // Completed: 已完成 1750 // Failed: 失败 1751 // Stopping: 停止中 1752 // Stopped:已停止 1753 // 注意:此字段可能返回 null,表示取不到有效值。 1754 TrainingJobStatus *string `json:"TrainingJobStatus,omitempty" name:"TrainingJobStatus"` 1755 1756 // 完成时间 1757 // 注意:此字段可能返回 null,表示取不到有效值。 1758 TrainingEndTime *string `json:"TrainingEndTime,omitempty" name:"TrainingEndTime"` 1759 1760 // 算了实例Id 1761 // 注意:此字段可能返回 null,表示取不到有效值。 1762 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` 1763 1764 // 资源配置 1765 // 注意:此字段可能返回 null,表示取不到有效值。 1766 ResourceConfig *ResourceConfig `json:"ResourceConfig,omitempty" name:"ResourceConfig"` 1767} 1768 1769type UpdateCodeRepositoryRequest struct { 1770 *tchttp.BaseRequest 1771 1772 // 查询存储库名称 1773 CodeRepositoryName *string `json:"CodeRepositoryName,omitempty" name:"CodeRepositoryName"` 1774 1775 // Git凭证 1776 GitSecret *GitSecret `json:"GitSecret,omitempty" name:"GitSecret"` 1777} 1778 1779func (r *UpdateCodeRepositoryRequest) ToJsonString() string { 1780 b, _ := json.Marshal(r) 1781 return string(b) 1782} 1783 1784// It is highly **NOT** recommended to use this function 1785// because it has no param check, nor strict type check 1786func (r *UpdateCodeRepositoryRequest) FromJsonString(s string) error { 1787 f := make(map[string]interface{}) 1788 if err := json.Unmarshal([]byte(s), &f); err != nil { 1789 return err 1790 } 1791 delete(f, "CodeRepositoryName") 1792 delete(f, "GitSecret") 1793 if len(f) > 0 { 1794 return errors.New("UpdateCodeRepositoryRequest has unknown keys!") 1795 } 1796 return json.Unmarshal([]byte(s), &r) 1797} 1798 1799type UpdateCodeRepositoryResponse struct { 1800 *tchttp.BaseResponse 1801 Response *struct { 1802 1803 // 存储库名称 1804 CodeRepositoryName *string `json:"CodeRepositoryName,omitempty" name:"CodeRepositoryName"` 1805 1806 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1807 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1808 } `json:"Response"` 1809} 1810 1811func (r *UpdateCodeRepositoryResponse) ToJsonString() string { 1812 b, _ := json.Marshal(r) 1813 return string(b) 1814} 1815 1816// It is highly **NOT** recommended to use this function 1817// because it has no param check, nor strict type check 1818func (r *UpdateCodeRepositoryResponse) FromJsonString(s string) error { 1819 return json.Unmarshal([]byte(s), &r) 1820} 1821 1822type UpdateNotebookInstanceRequest struct { 1823 *tchttp.BaseRequest 1824 1825 // Notebook实例名称 1826 // 规则:“^\[a-zA-Z0-9\](-\*\[a-zA-Z0-9\])\*$” 1827 NotebookInstanceName *string `json:"NotebookInstanceName,omitempty" name:"NotebookInstanceName"` 1828 1829 // 角色的资源描述 1830 RoleArn *string `json:"RoleArn,omitempty" name:"RoleArn"` 1831 1832 // Root访问权限 1833 RootAccess *string `json:"RootAccess,omitempty" name:"RootAccess"` 1834 1835 // 数据卷大小(GB) 1836 VolumeSizeInGB *uint64 `json:"VolumeSizeInGB,omitempty" name:"VolumeSizeInGB"` 1837 1838 // 算力资源类型 1839 InstanceType *string `json:"InstanceType,omitempty" name:"InstanceType"` 1840 1841 // notebook生命周期脚本名称 1842 LifecycleScriptsName *string `json:"LifecycleScriptsName,omitempty" name:"LifecycleScriptsName"` 1843 1844 // 是否解绑生命周期脚本,默认 false。 1845 // 该值为true时,LifecycleScriptsName将被忽略 1846 DisassociateLifecycleScript *bool `json:"DisassociateLifecycleScript,omitempty" name:"DisassociateLifecycleScript"` 1847 1848 // 默认存储库名称 1849 // 可以是已创建的存储库名称或者已https://开头的公共git库 1850 DefaultCodeRepository *string `json:"DefaultCodeRepository,omitempty" name:"DefaultCodeRepository"` 1851 1852 // 其他存储库列表 1853 // 每个元素可以是已创建的存储库名称或者已https://开头的公共git库 1854 AdditionalCodeRepositories []*string `json:"AdditionalCodeRepositories,omitempty" name:"AdditionalCodeRepositories" list` 1855 1856 // 是否取消关联默认存储库,默认false 1857 // 该值为true时,DefaultCodeRepository将被忽略 1858 DisassociateDefaultCodeRepository *bool `json:"DisassociateDefaultCodeRepository,omitempty" name:"DisassociateDefaultCodeRepository"` 1859 1860 // 是否取消关联其他存储库,默认false 1861 // 该值为true时,AdditionalCodeRepositories将被忽略 1862 DisassociateAdditionalCodeRepositories *bool `json:"DisassociateAdditionalCodeRepositories,omitempty" name:"DisassociateAdditionalCodeRepositories"` 1863 1864 // 已弃用,请使用ClsConfig配置。是否开启CLS日志服务,可取值Enabled/Disabled 1865 ClsAccess *string `json:"ClsAccess,omitempty" name:"ClsAccess"` 1866 1867 // 自动停止,可取值Enabled/Disabled 1868 // 取值为Disabled的时候StoppingCondition将被忽略 1869 // 取值为Enabled的时候读取StoppingCondition作为自动停止的配置 1870 AutoStopping *string `json:"AutoStopping,omitempty" name:"AutoStopping"` 1871 1872 // 自动停止配置,只在AutoStopping为Enabled的时候生效 1873 StoppingCondition *StoppingCondition `json:"StoppingCondition,omitempty" name:"StoppingCondition"` 1874 1875 // 接入日志的配置,默认使用免费日志服务。 1876 ClsConfig *ClsConfig `json:"ClsConfig,omitempty" name:"ClsConfig"` 1877} 1878 1879func (r *UpdateNotebookInstanceRequest) ToJsonString() string { 1880 b, _ := json.Marshal(r) 1881 return string(b) 1882} 1883 1884// It is highly **NOT** recommended to use this function 1885// because it has no param check, nor strict type check 1886func (r *UpdateNotebookInstanceRequest) FromJsonString(s string) error { 1887 f := make(map[string]interface{}) 1888 if err := json.Unmarshal([]byte(s), &f); err != nil { 1889 return err 1890 } 1891 delete(f, "NotebookInstanceName") 1892 delete(f, "RoleArn") 1893 delete(f, "RootAccess") 1894 delete(f, "VolumeSizeInGB") 1895 delete(f, "InstanceType") 1896 delete(f, "LifecycleScriptsName") 1897 delete(f, "DisassociateLifecycleScript") 1898 delete(f, "DefaultCodeRepository") 1899 delete(f, "AdditionalCodeRepositories") 1900 delete(f, "DisassociateDefaultCodeRepository") 1901 delete(f, "DisassociateAdditionalCodeRepositories") 1902 delete(f, "ClsAccess") 1903 delete(f, "AutoStopping") 1904 delete(f, "StoppingCondition") 1905 delete(f, "ClsConfig") 1906 if len(f) > 0 { 1907 return errors.New("UpdateNotebookInstanceRequest has unknown keys!") 1908 } 1909 return json.Unmarshal([]byte(s), &r) 1910} 1911 1912type UpdateNotebookInstanceResponse struct { 1913 *tchttp.BaseResponse 1914 Response *struct { 1915 1916 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1917 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1918 } `json:"Response"` 1919} 1920 1921func (r *UpdateNotebookInstanceResponse) ToJsonString() string { 1922 b, _ := json.Marshal(r) 1923 return string(b) 1924} 1925 1926// It is highly **NOT** recommended to use this function 1927// because it has no param check, nor strict type check 1928func (r *UpdateNotebookInstanceResponse) FromJsonString(s string) error { 1929 return json.Unmarshal([]byte(s), &r) 1930} 1931 1932type UpdateNotebookLifecycleScriptRequest struct { 1933 *tchttp.BaseRequest 1934 1935 // notebook生命周期脚本名称 1936 NotebookLifecycleScriptsName *string `json:"NotebookLifecycleScriptsName,omitempty" name:"NotebookLifecycleScriptsName"` 1937 1938 // 创建脚本,base64编码 1939 // base64后的脚本长度不能超过16384个字符 1940 CreateScript *string `json:"CreateScript,omitempty" name:"CreateScript"` 1941 1942 // 启动脚本,base64编码 1943 // base64后的脚本长度不能超过16384个字符 1944 StartScript *string `json:"StartScript,omitempty" name:"StartScript"` 1945} 1946 1947func (r *UpdateNotebookLifecycleScriptRequest) ToJsonString() string { 1948 b, _ := json.Marshal(r) 1949 return string(b) 1950} 1951 1952// It is highly **NOT** recommended to use this function 1953// because it has no param check, nor strict type check 1954func (r *UpdateNotebookLifecycleScriptRequest) FromJsonString(s string) error { 1955 f := make(map[string]interface{}) 1956 if err := json.Unmarshal([]byte(s), &f); err != nil { 1957 return err 1958 } 1959 delete(f, "NotebookLifecycleScriptsName") 1960 delete(f, "CreateScript") 1961 delete(f, "StartScript") 1962 if len(f) > 0 { 1963 return errors.New("UpdateNotebookLifecycleScriptRequest has unknown keys!") 1964 } 1965 return json.Unmarshal([]byte(s), &r) 1966} 1967 1968type UpdateNotebookLifecycleScriptResponse struct { 1969 *tchttp.BaseResponse 1970 Response *struct { 1971 1972 // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 1973 RequestId *string `json:"RequestId,omitempty" name:"RequestId"` 1974 } `json:"Response"` 1975} 1976 1977func (r *UpdateNotebookLifecycleScriptResponse) ToJsonString() string { 1978 b, _ := json.Marshal(r) 1979 return string(b) 1980} 1981 1982// It is highly **NOT** recommended to use this function 1983// because it has no param check, nor strict type check 1984func (r *UpdateNotebookLifecycleScriptResponse) FromJsonString(s string) error { 1985 return json.Unmarshal([]byte(s), &r) 1986} 1987 1988type VpcConfig struct { 1989 1990 // 安全组id 1991 // 注意:此字段可能返回 null,表示取不到有效值。 1992 SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds" list` 1993 1994 // 子网id 1995 // 注意:此字段可能返回 null,表示取不到有效值。 1996 SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` 1997} 1998