Add GetRepositoryTagV2 and DeleteRepositoryTagV2 API.

This commit is contained in:
sdk-team
2021-03-03 13:47:48 +00:00
parent 11e91aaf29
commit b38385d35f
70 changed files with 757 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGV2REQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGV2REQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryTagV2Request : public RoaServiceRequest
{
public:
DeleteRepositoryTagV2Request();
~DeleteRepositoryTagV2Request();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getTagName()const;
void setTagName(const std::string& tagName);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string tagName_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGV2REQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGV2RESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGV2RESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT DeleteRepositoryTagV2Result : public ServiceResult
{
public:
struct Result
{
std::string tagName;
};
DeleteRepositoryTagV2Result();
explicit DeleteRepositoryTagV2Result(const std::string &payload);
~DeleteRepositoryTagV2Result();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_DELETEREPOSITORYTAGV2RESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGV2REQUEST_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGV2REQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RoaServiceRequest.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetRepositoryTagV2Request : public RoaServiceRequest
{
public:
GetRepositoryTagV2Request();
~GetRepositoryTagV2Request();
std::string getOrganizationId()const;
void setOrganizationId(const std::string& organizationId);
std::string getTagName()const;
void setTagName(const std::string& tagName);
std::string getAccessToken()const;
void setAccessToken(const std::string& accessToken);
long getProjectId()const;
void setProjectId(long projectId);
private:
std::string organizationId_;
std::string tagName_;
std::string accessToken_;
long projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGV2REQUEST_H_

View File

@@ -0,0 +1,91 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGV2RESULT_H_
#define ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGV2RESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/codeup/CodeupExport.h>
namespace AlibabaCloud
{
namespace Codeup
{
namespace Model
{
class ALIBABACLOUD_CODEUP_EXPORT GetRepositoryTagV2Result : public ServiceResult
{
public:
struct Result
{
struct Commit
{
struct Signature1
{
std::string verificationStatus;
std::string gpgKeyId;
};
std::string authoredDate;
std::string authorName;
std::string message;
std::string createdAt;
std::string title;
std::string authorEmail;
std::string committedDate;
std::string committerEmail;
std::vector<std::string> parentIds;
std::string shortId;
std::string id;
std::string committerName;
Signature1 signature1;
};
struct Signature
{
std::string verificationStatus;
std::string gpgKeyId;
};
Commit commit;
std::string message;
Signature signature;
std::string id;
std::string name;
};
GetRepositoryTagV2Result();
explicit GetRepositoryTagV2Result(const std::string &payload);
~GetRepositoryTagV2Result();
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
Result getResult()const;
protected:
void parse(const std::string &payload);
private:
std::string errorCode_;
std::string errorMessage_;
bool success_;
Result result_;
};
}
}
}
#endif // !ALIBABACLOUD_CODEUP_MODEL_GETREPOSITORYTAGV2RESULT_H_