GetRepositoryInfoResult.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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_GETREPOSITORYINFORESULT_H_
  17. #define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFORESULT_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 GetRepositoryInfoResult : 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. struct Permissions
  49. {
  50. struct ProjectAccess
  51. {
  52. int accessLevel;
  53. };
  54. struct GroupAccess
  55. {
  56. int accessLevel;
  57. };
  58. GroupAccess groupAccess;
  59. ProjectAccess projectAccess;
  60. };
  61. std::string httpUrlToRepo;
  62. std::string description;
  63. bool archive;
  64. std::string createdAt;
  65. std::string visibilityLevel;
  66. std::string name;
  67. std::string avatarUrl;
  68. bool demoProjectStatus;
  69. Permissions permissions;
  70. std::vector<std::string> tagList;
  71. std::string defaultBranch;
  72. std::string path;
  73. std::string pathWithNamespace;
  74. std::string lastActivityAt;
  75. long creatorId;
  76. std::string webUrl;
  77. std::string nameWithNamespace;
  78. _Namespace _namespace;
  79. int accessLevel;
  80. std::string importUrl;
  81. std::string sshUrlToRepo;
  82. std::string importStatus;
  83. bool importFromSubversion;
  84. bool _public;
  85. long id;
  86. };
  87. GetRepositoryInfoResult();
  88. explicit GetRepositoryInfoResult(const std::string &payload);
  89. ~GetRepositoryInfoResult();
  90. int getErrorCode()const;
  91. std::string getErrorMessage()const;
  92. bool getSuccess()const;
  93. Result getResult()const;
  94. protected:
  95. void parse(const std::string &payload);
  96. private:
  97. int errorCode_;
  98. std::string errorMessage_;
  99. bool success_;
  100. Result result_;
  101. };
  102. }
  103. }
  104. }
  105. #endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYINFORESULT_H_