CreateRepositoryResult.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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_CODEUP_MODEL_CREATEREPOSITORYRESULT_H_
  17. #define ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/codeup/CodeupExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Codeup
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_CODEUP_EXPORT CreateRepositoryResult : public ServiceResult
  30. {
  31. public:
  32. struct Result
  33. {
  34. struct _Namespace
  35. {
  36. std::string path;
  37. std::string description;
  38. long ownerId;
  39. std::string state;
  40. std::string createdAt;
  41. bool _public;
  42. std::string visibilityLevel;
  43. long id;
  44. std::string updatedAt;
  45. std::string avatar;
  46. std::string name;
  47. };
  48. std::string httpUrlToRepo;
  49. std::string description;
  50. bool archive;
  51. std::string createdAt;
  52. bool issuesEnableStatus;
  53. std::string visibilityLevel;
  54. bool mergeRequestEnableStatus;
  55. bool buildsEnableStatus;
  56. bool snippetsEnableStatus;
  57. std::string name;
  58. std::string avatarUrl;
  59. bool demoProjectStatus;
  60. std::vector<std::string> tagList;
  61. std::string defaultBranch;
  62. std::string path;
  63. std::string pathWithNamespace;
  64. std::string lastActivityAt;
  65. long creatorId;
  66. std::string webUrl;
  67. std::string nameWithNamespace;
  68. _Namespace _namespace;
  69. std::string sshUrlToRepo;
  70. bool wikiEnableStatus;
  71. bool _public;
  72. long id;
  73. };
  74. CreateRepositoryResult();
  75. explicit CreateRepositoryResult(const std::string &payload);
  76. ~CreateRepositoryResult();
  77. int getErrorCode()const;
  78. std::string getErrorMessage()const;
  79. bool getSuccess()const;
  80. Result getResult()const;
  81. protected:
  82. void parse(const std::string &payload);
  83. private:
  84. int errorCode_;
  85. std::string errorMessage_;
  86. bool success_;
  87. Result result_;
  88. };
  89. }
  90. }
  91. }
  92. #endif // !ALIBABACLOUD_CODEUP_MODEL_CREATEREPOSITORYRESULT_H_