GetFileBlobsRequest.cc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. #include <alibabacloud/codeup/model/GetFileBlobsRequest.h>
  17. using AlibabaCloud::Codeup::Model::GetFileBlobsRequest;
  18. GetFileBlobsRequest::GetFileBlobsRequest() :
  19. RoaServiceRequest("codeup", "2020-04-14")
  20. {
  21. setResourcePath("/api/v4/projects/[ProjectId]/repository/blobs");
  22. setMethod(HttpRequest::Method::Get);
  23. }
  24. GetFileBlobsRequest::~GetFileBlobsRequest()
  25. {}
  26. std::string GetFileBlobsRequest::getAccessToken()const
  27. {
  28. return accessToken_;
  29. }
  30. void GetFileBlobsRequest::setAccessToken(const std::string& accessToken)
  31. {
  32. accessToken_ = accessToken;
  33. setParameter("AccessToken", accessToken);
  34. }
  35. std::string GetFileBlobsRequest::getOrganizationId()const
  36. {
  37. return organizationId_;
  38. }
  39. void GetFileBlobsRequest::setOrganizationId(const std::string& organizationId)
  40. {
  41. organizationId_ = organizationId;
  42. setParameter("OrganizationId", organizationId);
  43. }
  44. std::string GetFileBlobsRequest::getRef()const
  45. {
  46. return ref_;
  47. }
  48. void GetFileBlobsRequest::setRef(const std::string& ref)
  49. {
  50. ref_ = ref;
  51. setParameter("Ref", ref);
  52. }
  53. std::string GetFileBlobsRequest::getSubUserId()const
  54. {
  55. return subUserId_;
  56. }
  57. void GetFileBlobsRequest::setSubUserId(const std::string& subUserId)
  58. {
  59. subUserId_ = subUserId;
  60. setParameter("SubUserId", subUserId);
  61. }
  62. std::string GetFileBlobsRequest::getFilePath()const
  63. {
  64. return filePath_;
  65. }
  66. void GetFileBlobsRequest::setFilePath(const std::string& filePath)
  67. {
  68. filePath_ = filePath;
  69. setParameter("FilePath", filePath);
  70. }
  71. long GetFileBlobsRequest::getFrom()const
  72. {
  73. return from_;
  74. }
  75. void GetFileBlobsRequest::setFrom(long from)
  76. {
  77. from_ = from;
  78. setParameter("From", std::to_string(from));
  79. }
  80. long GetFileBlobsRequest::getTo()const
  81. {
  82. return to_;
  83. }
  84. void GetFileBlobsRequest::setTo(long to)
  85. {
  86. to_ = to;
  87. setParameter("To", std::to_string(to));
  88. }
  89. long GetFileBlobsRequest::getProjectId()const
  90. {
  91. return projectId_;
  92. }
  93. void GetFileBlobsRequest::setProjectId(long projectId)
  94. {
  95. projectId_ = projectId;
  96. setParameter("ProjectId", std::to_string(projectId));
  97. }