CreateCheckRunRequest.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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_DEVOPS_MODEL_CREATECHECKRUNREQUEST_H_
  17. #define ALIBABACLOUD_DEVOPS_MODEL_CREATECHECKRUNREQUEST_H_
  18. #include <alibabacloud/devops/DevopsExport.h>
  19. #include <alibabacloud/core/RoaServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Devops {
  25. namespace Model {
  26. class ALIBABACLOUD_DEVOPS_EXPORT CreateCheckRunRequest : public RoaServiceRequest {
  27. public:
  28. struct Body {
  29. std::string conclusion;
  30. struct Output {
  31. std::string summary;
  32. struct ImagesItem {
  33. std::string imageUrl;
  34. std::string alt;
  35. std::string caption;
  36. };
  37. imagesItem imagesItem;
  38. std::vector<imagesItem> images;
  39. std::string text;
  40. std::string title;
  41. };
  42. output output;
  43. std::string completedAt;
  44. std::string detailsUrl;
  45. std::string name;
  46. std::string startedAt;
  47. std::string externalId;
  48. struct AnnotationsItem {
  49. std::string path;
  50. long endLine;
  51. long startColumn;
  52. std::string annotationLevel;
  53. long startLine;
  54. std::string message;
  55. std::string title;
  56. std::string rawDetails;
  57. long endColumn;
  58. };
  59. annotationsItem annotationsItem;
  60. std::vector<annotationsItem> annotations;
  61. std::string headSha;
  62. std::string status;
  63. };
  64. CreateCheckRunRequest();
  65. ~CreateCheckRunRequest();
  66. std::string getOrganizationId() const;
  67. void setOrganizationId(const std::string &organizationId);
  68. std::string getRepositoryIdentity() const;
  69. void setRepositoryIdentity(const std::string &repositoryIdentity);
  70. std::string getAccessToken() const;
  71. void setAccessToken(const std::string &accessToken);
  72. body getBody() const;
  73. void setBody(const body &body);
  74. private:
  75. std::string organizationId_;
  76. std::string repositoryIdentity_;
  77. std::string accessToken_;
  78. body body_;
  79. };
  80. } // namespace Model
  81. } // namespace Devops
  82. } // namespace AlibabaCloud
  83. #endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATECHECKRUNREQUEST_H_