GetFileResult.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETFILERESULT_H_
  17. #define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETFILERESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Dataworks_public
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetFileResult : public ServiceResult
  30. {
  31. public:
  32. struct Data
  33. {
  34. struct File
  35. {
  36. long parentId;
  37. std::string owner;
  38. long createTime;
  39. std::string fileName;
  40. std::string useType;
  41. int currentVersion;
  42. std::string createUser;
  43. bool isMaxCompute;
  44. std::string connectionName;
  45. long lastEditTime;
  46. std::string fileDescription;
  47. int fileType;
  48. std::string content;
  49. std::string lastEditUser;
  50. long nodeId;
  51. int commitStatus;
  52. std::string deletedStatus;
  53. bool autoParsing;
  54. std::string fileFolderId;
  55. long bizId;
  56. long businessId;
  57. };
  58. struct NodeConfiguration
  59. {
  60. struct NodeInputOutput
  61. {
  62. std::string input;
  63. std::string parseType;
  64. };
  65. struct NodeInputOutput1
  66. {
  67. std::string output;
  68. std::string refTableName;
  69. };
  70. std::string cycleType;
  71. std::vector<NodeInputOutput> inputList;
  72. long resourceGroupId;
  73. bool stop;
  74. std::string dependentType;
  75. std::string cronExpress;
  76. long endEffectDate;
  77. int autoRerunIntervalMillis;
  78. std::string dependentNodeIdList;
  79. long startEffectDate;
  80. int autoRerunTimes;
  81. std::string rerunMode;
  82. std::string paraValue;
  83. std::vector<NodeInputOutput1> outputList;
  84. };
  85. File file;
  86. NodeConfiguration nodeConfiguration;
  87. };
  88. GetFileResult();
  89. explicit GetFileResult(const std::string &payload);
  90. ~GetFileResult();
  91. int getHttpStatusCode()const;
  92. Data getData()const;
  93. std::string getErrorCode()const;
  94. std::string getErrorMessage()const;
  95. bool getSuccess()const;
  96. protected:
  97. void parse(const std::string &payload);
  98. private:
  99. int httpStatusCode_;
  100. Data data_;
  101. std::string errorCode_;
  102. std::string errorMessage_;
  103. bool success_;
  104. };
  105. }
  106. }
  107. }
  108. #endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_GETFILERESULT_H_