|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | + |
| 3 | +using System; |
| 4 | +using System.Collections.Generic; |
| 5 | +using System.IO; |
| 6 | + |
| 7 | +using Tea; |
| 8 | + |
| 9 | +namespace AlibabaCloud.SDK.Dataworks_public20240518.Models |
| 10 | +{ |
| 11 | + public class CreateResourceAdvanceRequest : TeaModel { |
| 12 | + /// <summary> |
| 13 | + /// <para>The DataWorks workspace ID. You can log on to the <a href="https://workbench.data.aliyun.com/console">DataWorks console</a> and go to the Workspace page to query the ID.</para> |
| 14 | + /// <para>This parameter is required.</para> |
| 15 | + /// |
| 16 | + /// <b>Example:</b> |
| 17 | + /// <para>123456</para> |
| 18 | + /// </summary> |
| 19 | + [NameInMap("ProjectId")] |
| 20 | + [Validation(Required=false)] |
| 21 | + public long? ProjectId { get; set; } |
| 22 | + |
| 23 | + [NameInMap("ResourceFile")] |
| 24 | + [Validation(Required=false)] |
| 25 | + public Stream ResourceFileObject { get; set; } |
| 26 | + |
| 27 | + /// <summary> |
| 28 | + /// <para>The FlowSpec field information about the file resource. For more information, see <a href="https://github.com/aliyun/dataworks-spec/blob/master/README_zh_CN.md">FlowSpec</a>.</para> |
| 29 | + /// <para>This parameter is required.</para> |
| 30 | + /// |
| 31 | + /// <b>Example:</b> |
| 32 | + /// <para>{ |
| 33 | + /// "version": "1.1.0", |
| 34 | + /// "kind": "Resource", |
| 35 | + /// "spec": { |
| 36 | + /// "fileResources": [ |
| 37 | + /// { |
| 38 | + /// "name": "OpenAPITestResource.py", |
| 39 | + /// "script": { |
| 40 | + /// "content": "", |
| 41 | + /// "path": "XX/OpenAPITest/ResourcesTest/OpenAPITestResource.py", |
| 42 | + /// "runtime": { |
| 43 | + /// "command": "ODPS_PYTHON" |
| 44 | + /// } |
| 45 | + /// }, |
| 46 | + /// "type": "python", |
| 47 | + /// "file": { |
| 48 | + /// "storage": {} |
| 49 | + /// }, |
| 50 | + /// "datasource": { |
| 51 | + /// "name": "odps_first", |
| 52 | + /// "type": "odps" |
| 53 | + /// } |
| 54 | + /// } |
| 55 | + /// ] |
| 56 | + /// } |
| 57 | + /// }</para> |
| 58 | + /// </summary> |
| 59 | + [NameInMap("Spec")] |
| 60 | + [Validation(Required=false)] |
| 61 | + public string Spec { get; set; } |
| 62 | + |
| 63 | + } |
| 64 | + |
| 65 | +} |
0 commit comments