diff --git a/VERSION b/VERSION index 6ba5cca25..16022ca45 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1884 \ No newline at end of file +1.36.1885 \ No newline at end of file diff --git a/devops/CMakeLists.txt b/devops/CMakeLists.txt new file mode 100644 index 000000000..9317b0f83 --- /dev/null +++ b/devops/CMakeLists.txt @@ -0,0 +1,974 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(devops_public_header + include/alibabacloud/devops/DevopsClient.h + include/alibabacloud/devops/DevopsExport.h ) + +set(devops_public_header_model + include/alibabacloud/devops/model/AddGroupMemberRequest.h + include/alibabacloud/devops/model/AddGroupMemberResult.h + include/alibabacloud/devops/model/AddPipelineRelationsRequest.h + include/alibabacloud/devops/model/AddPipelineRelationsResult.h + include/alibabacloud/devops/model/AddRepositoryMemberRequest.h + include/alibabacloud/devops/model/AddRepositoryMemberResult.h + include/alibabacloud/devops/model/AddWebhookRequest.h + include/alibabacloud/devops/model/AddWebhookResult.h + include/alibabacloud/devops/model/CloseMergeRequestRequest.h + include/alibabacloud/devops/model/CloseMergeRequestResult.h + include/alibabacloud/devops/model/CreateAppMembersRequest.h + include/alibabacloud/devops/model/CreateAppMembersResult.h + include/alibabacloud/devops/model/CreateBranchRequest.h + include/alibabacloud/devops/model/CreateBranchResult.h + include/alibabacloud/devops/model/CreateCheckRunRequest.h + include/alibabacloud/devops/model/CreateCheckRunResult.h + include/alibabacloud/devops/model/CreateCommentRequest.h + include/alibabacloud/devops/model/CreateCommentResult.h + include/alibabacloud/devops/model/CreateCommitStatusRequest.h + include/alibabacloud/devops/model/CreateCommitStatusResult.h + include/alibabacloud/devops/model/CreateCommitWithMultipleFilesRequest.h + include/alibabacloud/devops/model/CreateCommitWithMultipleFilesResult.h + include/alibabacloud/devops/model/CreateDeployKeyRequest.h + include/alibabacloud/devops/model/CreateDeployKeyResult.h + include/alibabacloud/devops/model/CreateFileRequest.h + include/alibabacloud/devops/model/CreateFileResult.h + include/alibabacloud/devops/model/CreateFlowTagRequest.h + include/alibabacloud/devops/model/CreateFlowTagResult.h + include/alibabacloud/devops/model/CreateFlowTagGroupRequest.h + include/alibabacloud/devops/model/CreateFlowTagGroupResult.h + include/alibabacloud/devops/model/CreateHostGroupRequest.h + include/alibabacloud/devops/model/CreateHostGroupResult.h + include/alibabacloud/devops/model/CreateMergeRequestRequest.h + include/alibabacloud/devops/model/CreateMergeRequestResult.h + include/alibabacloud/devops/model/CreateOAuthTokenRequest.h + include/alibabacloud/devops/model/CreateOAuthTokenResult.h + include/alibabacloud/devops/model/CreatePipelineRequest.h + include/alibabacloud/devops/model/CreatePipelineResult.h + include/alibabacloud/devops/model/CreatePipelineGroupRequest.h + include/alibabacloud/devops/model/CreatePipelineGroupResult.h + include/alibabacloud/devops/model/CreateProjectRequest.h + include/alibabacloud/devops/model/CreateProjectResult.h + include/alibabacloud/devops/model/CreateProjectLabelRequest.h + include/alibabacloud/devops/model/CreateProjectLabelResult.h + include/alibabacloud/devops/model/CreateProtectdBranchRequest.h + include/alibabacloud/devops/model/CreateProtectdBranchResult.h + include/alibabacloud/devops/model/CreatePushRuleRequest.h + include/alibabacloud/devops/model/CreatePushRuleResult.h + include/alibabacloud/devops/model/CreateRepositoryRequest.h + include/alibabacloud/devops/model/CreateRepositoryResult.h + include/alibabacloud/devops/model/CreateRepositoryGroupRequest.h + include/alibabacloud/devops/model/CreateRepositoryGroupResult.h + include/alibabacloud/devops/model/CreateResourceMemberRequest.h + include/alibabacloud/devops/model/CreateResourceMemberResult.h + include/alibabacloud/devops/model/CreateServiceAuthRequest.h + include/alibabacloud/devops/model/CreateServiceAuthResult.h + include/alibabacloud/devops/model/CreateServiceConnectionRequest.h + include/alibabacloud/devops/model/CreateServiceConnectionResult.h + include/alibabacloud/devops/model/CreateServiceCredentialRequest.h + include/alibabacloud/devops/model/CreateServiceCredentialResult.h + include/alibabacloud/devops/model/CreateSprintRequest.h + include/alibabacloud/devops/model/CreateSprintResult.h + include/alibabacloud/devops/model/CreateSshKeyRequest.h + include/alibabacloud/devops/model/CreateSshKeyResult.h + include/alibabacloud/devops/model/CreateTagRequest.h + include/alibabacloud/devops/model/CreateTagResult.h + include/alibabacloud/devops/model/CreateTestCaseRequest.h + include/alibabacloud/devops/model/CreateTestCaseResult.h + include/alibabacloud/devops/model/CreateUserKeyRequest.h + include/alibabacloud/devops/model/CreateUserKeyResult.h + include/alibabacloud/devops/model/CreateVariableGroupRequest.h + include/alibabacloud/devops/model/CreateVariableGroupResult.h + include/alibabacloud/devops/model/CreateWorkitemRequest.h + include/alibabacloud/devops/model/CreateWorkitemResult.h + include/alibabacloud/devops/model/CreateWorkitemCommentRequest.h + include/alibabacloud/devops/model/CreateWorkitemCommentResult.h + include/alibabacloud/devops/model/CreateWorkitemEstimateRequest.h + include/alibabacloud/devops/model/CreateWorkitemEstimateResult.h + include/alibabacloud/devops/model/CreateWorkitemRecordRequest.h + include/alibabacloud/devops/model/CreateWorkitemRecordResult.h + include/alibabacloud/devops/model/CreateWorkitemV2Request.h + include/alibabacloud/devops/model/CreateWorkitemV2Result.h + include/alibabacloud/devops/model/CreateWorkspaceRequest.h + include/alibabacloud/devops/model/CreateWorkspaceResult.h + include/alibabacloud/devops/model/DeleteAppMemberRequest.h + include/alibabacloud/devops/model/DeleteAppMemberResult.h + include/alibabacloud/devops/model/DeleteBranchRequest.h + include/alibabacloud/devops/model/DeleteBranchResult.h + include/alibabacloud/devops/model/DeleteFileRequest.h + include/alibabacloud/devops/model/DeleteFileResult.h + include/alibabacloud/devops/model/DeleteFlowTagRequest.h + include/alibabacloud/devops/model/DeleteFlowTagResult.h + include/alibabacloud/devops/model/DeleteFlowTagGroupRequest.h + include/alibabacloud/devops/model/DeleteFlowTagGroupResult.h + include/alibabacloud/devops/model/DeleteGroupMemberRequest.h + include/alibabacloud/devops/model/DeleteGroupMemberResult.h + include/alibabacloud/devops/model/DeleteHostGroupRequest.h + include/alibabacloud/devops/model/DeleteHostGroupResult.h + include/alibabacloud/devops/model/DeletePipelineRequest.h + include/alibabacloud/devops/model/DeletePipelineResult.h + include/alibabacloud/devops/model/DeletePipelineGroupRequest.h + include/alibabacloud/devops/model/DeletePipelineGroupResult.h + include/alibabacloud/devops/model/DeletePipelineRelationsRequest.h + include/alibabacloud/devops/model/DeletePipelineRelationsResult.h + include/alibabacloud/devops/model/DeleteProjectRequest.h + include/alibabacloud/devops/model/DeleteProjectResult.h + include/alibabacloud/devops/model/DeleteProjectLabelRequest.h + include/alibabacloud/devops/model/DeleteProjectLabelResult.h + include/alibabacloud/devops/model/DeleteProtectedBranchRequest.h + include/alibabacloud/devops/model/DeleteProtectedBranchResult.h + include/alibabacloud/devops/model/DeletePushRuleRequest.h + include/alibabacloud/devops/model/DeletePushRuleResult.h + include/alibabacloud/devops/model/DeleteRepositoryRequest.h + include/alibabacloud/devops/model/DeleteRepositoryResult.h + include/alibabacloud/devops/model/DeleteRepositoryGroupRequest.h + include/alibabacloud/devops/model/DeleteRepositoryGroupResult.h + include/alibabacloud/devops/model/DeleteRepositoryMemberRequest.h + include/alibabacloud/devops/model/DeleteRepositoryMemberResult.h + include/alibabacloud/devops/model/DeleteRepositoryWebhookRequest.h + include/alibabacloud/devops/model/DeleteRepositoryWebhookResult.h + include/alibabacloud/devops/model/DeleteResourceMemberRequest.h + include/alibabacloud/devops/model/DeleteResourceMemberResult.h + include/alibabacloud/devops/model/DeleteTagRequest.h + include/alibabacloud/devops/model/DeleteTagResult.h + include/alibabacloud/devops/model/DeleteUserKeyRequest.h + include/alibabacloud/devops/model/DeleteUserKeyResult.h + include/alibabacloud/devops/model/DeleteVariableGroupRequest.h + include/alibabacloud/devops/model/DeleteVariableGroupResult.h + include/alibabacloud/devops/model/DeleteWorkitemRequest.h + include/alibabacloud/devops/model/DeleteWorkitemResult.h + include/alibabacloud/devops/model/DeleteWorkitemAllCommentRequest.h + include/alibabacloud/devops/model/DeleteWorkitemAllCommentResult.h + include/alibabacloud/devops/model/DeleteWorkitemCommentRequest.h + include/alibabacloud/devops/model/DeleteWorkitemCommentResult.h + include/alibabacloud/devops/model/EnableDeployKeyRequest.h + include/alibabacloud/devops/model/EnableDeployKeyResult.h + include/alibabacloud/devops/model/FrozenWorkspaceRequest.h + include/alibabacloud/devops/model/FrozenWorkspaceResult.h + include/alibabacloud/devops/model/GetApplicationRequest.h + include/alibabacloud/devops/model/GetApplicationResult.h + include/alibabacloud/devops/model/GetBranchInfoRequest.h + include/alibabacloud/devops/model/GetBranchInfoResult.h + include/alibabacloud/devops/model/GetCheckRunRequest.h + include/alibabacloud/devops/model/GetCheckRunResult.h + include/alibabacloud/devops/model/GetCodeupOrganizationRequest.h + include/alibabacloud/devops/model/GetCodeupOrganizationResult.h + include/alibabacloud/devops/model/GetCompareDetailRequest.h + include/alibabacloud/devops/model/GetCompareDetailResult.h + include/alibabacloud/devops/model/GetCustomFieldOptionRequest.h + include/alibabacloud/devops/model/GetCustomFieldOptionResult.h + include/alibabacloud/devops/model/GetFileBlobsRequest.h + include/alibabacloud/devops/model/GetFileBlobsResult.h + include/alibabacloud/devops/model/GetFileLastCommitRequest.h + include/alibabacloud/devops/model/GetFileLastCommitResult.h + include/alibabacloud/devops/model/GetFlowTagGroupRequest.h + include/alibabacloud/devops/model/GetFlowTagGroupResult.h + include/alibabacloud/devops/model/GetGroupByPathRequest.h + include/alibabacloud/devops/model/GetGroupByPathResult.h + include/alibabacloud/devops/model/GetGroupDetailRequest.h + include/alibabacloud/devops/model/GetGroupDetailResult.h + include/alibabacloud/devops/model/GetHostGroupRequest.h + include/alibabacloud/devops/model/GetHostGroupResult.h + include/alibabacloud/devops/model/GetMergeRequestRequest.h + include/alibabacloud/devops/model/GetMergeRequestResult.h + include/alibabacloud/devops/model/GetMergeRequestChangeTreeRequest.h + include/alibabacloud/devops/model/GetMergeRequestChangeTreeResult.h + include/alibabacloud/devops/model/GetOrganizationMemberRequest.h + include/alibabacloud/devops/model/GetOrganizationMemberResult.h + include/alibabacloud/devops/model/GetPipelineRequest.h + include/alibabacloud/devops/model/GetPipelineResult.h + include/alibabacloud/devops/model/GetPipelineArtifactUrlRequest.h + include/alibabacloud/devops/model/GetPipelineArtifactUrlResult.h + include/alibabacloud/devops/model/GetPipelineEmasArtifactUrlRequest.h + include/alibabacloud/devops/model/GetPipelineEmasArtifactUrlResult.h + include/alibabacloud/devops/model/GetPipelineGroupRequest.h + include/alibabacloud/devops/model/GetPipelineGroupResult.h + include/alibabacloud/devops/model/GetPipelineRunRequest.h + include/alibabacloud/devops/model/GetPipelineRunResult.h + include/alibabacloud/devops/model/GetPipelineScanReportUrlRequest.h + include/alibabacloud/devops/model/GetPipelineScanReportUrlResult.h + include/alibabacloud/devops/model/GetProjectInfoRequest.h + include/alibabacloud/devops/model/GetProjectInfoResult.h + include/alibabacloud/devops/model/GetProjectMemberRequest.h + include/alibabacloud/devops/model/GetProjectMemberResult.h + include/alibabacloud/devops/model/GetPushRuleRequest.h + include/alibabacloud/devops/model/GetPushRuleResult.h + include/alibabacloud/devops/model/GetRepositoryRequest.h + include/alibabacloud/devops/model/GetRepositoryResult.h + include/alibabacloud/devops/model/GetRepositoryCommitRequest.h + include/alibabacloud/devops/model/GetRepositoryCommitResult.h + include/alibabacloud/devops/model/GetRepositoryTagRequest.h + include/alibabacloud/devops/model/GetRepositoryTagResult.h + include/alibabacloud/devops/model/GetSearchCodePreviewRequest.h + include/alibabacloud/devops/model/GetSearchCodePreviewResult.h + include/alibabacloud/devops/model/GetSprintInfoRequest.h + include/alibabacloud/devops/model/GetSprintInfoResult.h + include/alibabacloud/devops/model/GetTestResultListRequest.h + include/alibabacloud/devops/model/GetTestResultListResult.h + include/alibabacloud/devops/model/GetTestcaseListRequest.h + include/alibabacloud/devops/model/GetTestcaseListResult.h + include/alibabacloud/devops/model/GetUserInfoRequest.h + include/alibabacloud/devops/model/GetUserInfoResult.h + include/alibabacloud/devops/model/GetVMDeployOrderRequest.h + include/alibabacloud/devops/model/GetVMDeployOrderResult.h + include/alibabacloud/devops/model/GetVariableGroupRequest.h + include/alibabacloud/devops/model/GetVariableGroupResult.h + include/alibabacloud/devops/model/GetWorkItemActivityRequest.h + include/alibabacloud/devops/model/GetWorkItemActivityResult.h + include/alibabacloud/devops/model/GetWorkItemInfoRequest.h + include/alibabacloud/devops/model/GetWorkItemInfoResult.h + include/alibabacloud/devops/model/GetWorkItemWorkFlowInfoRequest.h + include/alibabacloud/devops/model/GetWorkItemWorkFlowInfoResult.h + include/alibabacloud/devops/model/GetWorkitemAttachmentCreatemetaRequest.h + include/alibabacloud/devops/model/GetWorkitemAttachmentCreatemetaResult.h + include/alibabacloud/devops/model/GetWorkitemCommentListRequest.h + include/alibabacloud/devops/model/GetWorkitemCommentListResult.h + include/alibabacloud/devops/model/GetWorkitemFileRequest.h + include/alibabacloud/devops/model/GetWorkitemFileResult.h + include/alibabacloud/devops/model/GetWorkitemRelationsRequest.h + include/alibabacloud/devops/model/GetWorkitemRelationsResult.h + include/alibabacloud/devops/model/GetWorkitemTimeTypeListRequest.h + include/alibabacloud/devops/model/GetWorkitemTimeTypeListResult.h + include/alibabacloud/devops/model/GetWorkspaceRequest.h + include/alibabacloud/devops/model/GetWorkspaceResult.h + include/alibabacloud/devops/model/JoinPipelineGroupRequest.h + include/alibabacloud/devops/model/JoinPipelineGroupResult.h + include/alibabacloud/devops/model/LinkMergeRequestLabelRequest.h + include/alibabacloud/devops/model/LinkMergeRequestLabelResult.h + include/alibabacloud/devops/model/ListApplicationMembersRequest.h + include/alibabacloud/devops/model/ListApplicationMembersResult.h + include/alibabacloud/devops/model/ListApplicationsRequest.h + include/alibabacloud/devops/model/ListApplicationsResult.h + include/alibabacloud/devops/model/ListCheckRunsRequest.h + include/alibabacloud/devops/model/ListCheckRunsResult.h + include/alibabacloud/devops/model/ListCommitStatusesRequest.h + include/alibabacloud/devops/model/ListCommitStatusesResult.h + include/alibabacloud/devops/model/ListFlowTagGroupsRequest.h + include/alibabacloud/devops/model/ListFlowTagGroupsResult.h + include/alibabacloud/devops/model/ListGroupMemberRequest.h + include/alibabacloud/devops/model/ListGroupMemberResult.h + include/alibabacloud/devops/model/ListGroupRepositoriesRequest.h + include/alibabacloud/devops/model/ListGroupRepositoriesResult.h + include/alibabacloud/devops/model/ListHostGroupsRequest.h + include/alibabacloud/devops/model/ListHostGroupsResult.h + include/alibabacloud/devops/model/ListJoinedOrganizationsRequest.h + include/alibabacloud/devops/model/ListJoinedOrganizationsResult.h + include/alibabacloud/devops/model/ListMergeRequestCommentsRequest.h + include/alibabacloud/devops/model/ListMergeRequestCommentsResult.h + include/alibabacloud/devops/model/ListMergeRequestFilesReadsRequest.h + include/alibabacloud/devops/model/ListMergeRequestFilesReadsResult.h + include/alibabacloud/devops/model/ListMergeRequestLabelsRequest.h + include/alibabacloud/devops/model/ListMergeRequestLabelsResult.h + include/alibabacloud/devops/model/ListMergeRequestPatchSetsRequest.h + include/alibabacloud/devops/model/ListMergeRequestPatchSetsResult.h + include/alibabacloud/devops/model/ListMergeRequestsRequest.h + include/alibabacloud/devops/model/ListMergeRequestsResult.h + include/alibabacloud/devops/model/ListOrganizationMembersRequest.h + include/alibabacloud/devops/model/ListOrganizationMembersResult.h + include/alibabacloud/devops/model/ListOrganizationsRequest.h + include/alibabacloud/devops/model/ListOrganizationsResult.h + include/alibabacloud/devops/model/ListPipelineGroupPipelinesRequest.h + include/alibabacloud/devops/model/ListPipelineGroupPipelinesResult.h + include/alibabacloud/devops/model/ListPipelineGroupsRequest.h + include/alibabacloud/devops/model/ListPipelineGroupsResult.h + include/alibabacloud/devops/model/ListPipelineJobHistorysRequest.h + include/alibabacloud/devops/model/ListPipelineJobHistorysResult.h + include/alibabacloud/devops/model/ListPipelineJobsRequest.h + include/alibabacloud/devops/model/ListPipelineJobsResult.h + include/alibabacloud/devops/model/ListPipelineRelationsRequest.h + include/alibabacloud/devops/model/ListPipelineRelationsResult.h + include/alibabacloud/devops/model/ListPipelineRunsRequest.h + include/alibabacloud/devops/model/ListPipelineRunsResult.h + include/alibabacloud/devops/model/ListPipelinesRequest.h + include/alibabacloud/devops/model/ListPipelinesResult.h + include/alibabacloud/devops/model/ListProjectLabelsRequest.h + include/alibabacloud/devops/model/ListProjectLabelsResult.h + include/alibabacloud/devops/model/ListProjectMembersRequest.h + include/alibabacloud/devops/model/ListProjectMembersResult.h + include/alibabacloud/devops/model/ListProjectTemplatesRequest.h + include/alibabacloud/devops/model/ListProjectTemplatesResult.h + include/alibabacloud/devops/model/ListProjectWorkitemTypesRequest.h + include/alibabacloud/devops/model/ListProjectWorkitemTypesResult.h + include/alibabacloud/devops/model/ListProjectsRequest.h + include/alibabacloud/devops/model/ListProjectsResult.h + include/alibabacloud/devops/model/ListProtectedBranchesRequest.h + include/alibabacloud/devops/model/ListProtectedBranchesResult.h + include/alibabacloud/devops/model/ListPushRulesRequest.h + include/alibabacloud/devops/model/ListPushRulesResult.h + include/alibabacloud/devops/model/ListRepositoriesRequest.h + include/alibabacloud/devops/model/ListRepositoriesResult.h + include/alibabacloud/devops/model/ListRepositoryBranchesRequest.h + include/alibabacloud/devops/model/ListRepositoryBranchesResult.h + include/alibabacloud/devops/model/ListRepositoryCommitDiffRequest.h + include/alibabacloud/devops/model/ListRepositoryCommitDiffResult.h + include/alibabacloud/devops/model/ListRepositoryCommitsRequest.h + include/alibabacloud/devops/model/ListRepositoryCommitsResult.h + include/alibabacloud/devops/model/ListRepositoryGroupsRequest.h + include/alibabacloud/devops/model/ListRepositoryGroupsResult.h + include/alibabacloud/devops/model/ListRepositoryMemberWithInheritedRequest.h + include/alibabacloud/devops/model/ListRepositoryMemberWithInheritedResult.h + include/alibabacloud/devops/model/ListRepositoryTagsRequest.h + include/alibabacloud/devops/model/ListRepositoryTagsResult.h + include/alibabacloud/devops/model/ListRepositoryTreeRequest.h + include/alibabacloud/devops/model/ListRepositoryTreeResult.h + include/alibabacloud/devops/model/ListRepositoryWebhookRequest.h + include/alibabacloud/devops/model/ListRepositoryWebhookResult.h + include/alibabacloud/devops/model/ListResourceMembersRequest.h + include/alibabacloud/devops/model/ListResourceMembersResult.h + include/alibabacloud/devops/model/ListSearchCommitRequest.h + include/alibabacloud/devops/model/ListSearchCommitResult.h + include/alibabacloud/devops/model/ListSearchRepositoryRequest.h + include/alibabacloud/devops/model/ListSearchRepositoryResult.h + include/alibabacloud/devops/model/ListSearchSourceCodeRequest.h + include/alibabacloud/devops/model/ListSearchSourceCodeResult.h + include/alibabacloud/devops/model/ListServiceAuthsRequest.h + include/alibabacloud/devops/model/ListServiceAuthsResult.h + include/alibabacloud/devops/model/ListServiceConnectionsRequest.h + include/alibabacloud/devops/model/ListServiceConnectionsResult.h + include/alibabacloud/devops/model/ListServiceCredentialsRequest.h + include/alibabacloud/devops/model/ListServiceCredentialsResult.h + include/alibabacloud/devops/model/ListSprintsRequest.h + include/alibabacloud/devops/model/ListSprintsResult.h + include/alibabacloud/devops/model/ListTestCaseFieldsRequest.h + include/alibabacloud/devops/model/ListTestCaseFieldsResult.h + include/alibabacloud/devops/model/ListUserDrawRecordByPkRequest.h + include/alibabacloud/devops/model/ListUserDrawRecordByPkResult.h + include/alibabacloud/devops/model/ListUserKeysRequest.h + include/alibabacloud/devops/model/ListUserKeysResult.h + include/alibabacloud/devops/model/ListUserResourcesRequest.h + include/alibabacloud/devops/model/ListUserResourcesResult.h + include/alibabacloud/devops/model/ListVariableGroupsRequest.h + include/alibabacloud/devops/model/ListVariableGroupsResult.h + include/alibabacloud/devops/model/ListWorkItemAllFieldsRequest.h + include/alibabacloud/devops/model/ListWorkItemAllFieldsResult.h + include/alibabacloud/devops/model/ListWorkItemWorkFlowStatusRequest.h + include/alibabacloud/devops/model/ListWorkItemWorkFlowStatusResult.h + include/alibabacloud/devops/model/ListWorkitemAttachmentsRequest.h + include/alibabacloud/devops/model/ListWorkitemAttachmentsResult.h + include/alibabacloud/devops/model/ListWorkitemEstimateRequest.h + include/alibabacloud/devops/model/ListWorkitemEstimateResult.h + include/alibabacloud/devops/model/ListWorkitemTimeRequest.h + include/alibabacloud/devops/model/ListWorkitemTimeResult.h + include/alibabacloud/devops/model/ListWorkitemsRequest.h + include/alibabacloud/devops/model/ListWorkitemsResult.h + include/alibabacloud/devops/model/ListWorkspacesRequest.h + include/alibabacloud/devops/model/ListWorkspacesResult.h + include/alibabacloud/devops/model/LogPipelineJobRunRequest.h + include/alibabacloud/devops/model/LogPipelineJobRunResult.h + include/alibabacloud/devops/model/LogVMDeployMachineRequest.h + include/alibabacloud/devops/model/LogVMDeployMachineResult.h + include/alibabacloud/devops/model/MergeMergeRequestRequest.h + include/alibabacloud/devops/model/MergeMergeRequestResult.h + include/alibabacloud/devops/model/PassPipelineValidateRequest.h + include/alibabacloud/devops/model/PassPipelineValidateResult.h + include/alibabacloud/devops/model/RefusePipelineValidateRequest.h + include/alibabacloud/devops/model/RefusePipelineValidateResult.h + include/alibabacloud/devops/model/ReleaseWorkspaceRequest.h + include/alibabacloud/devops/model/ReleaseWorkspaceResult.h + include/alibabacloud/devops/model/ReopenMergeRequestRequest.h + include/alibabacloud/devops/model/ReopenMergeRequestResult.h + include/alibabacloud/devops/model/ResetSshKeyRequest.h + include/alibabacloud/devops/model/ResetSshKeyResult.h + include/alibabacloud/devops/model/ResumeVMDeployOrderRequest.h + include/alibabacloud/devops/model/ResumeVMDeployOrderResult.h + include/alibabacloud/devops/model/RetryPipelineJobRunRequest.h + include/alibabacloud/devops/model/RetryPipelineJobRunResult.h + include/alibabacloud/devops/model/RetryVMDeployMachineRequest.h + include/alibabacloud/devops/model/RetryVMDeployMachineResult.h + include/alibabacloud/devops/model/ReviewMergeRequestRequest.h + include/alibabacloud/devops/model/ReviewMergeRequestResult.h + include/alibabacloud/devops/model/SkipPipelineJobRunRequest.h + include/alibabacloud/devops/model/SkipPipelineJobRunResult.h + include/alibabacloud/devops/model/SkipVMDeployMachineRequest.h + include/alibabacloud/devops/model/SkipVMDeployMachineResult.h + include/alibabacloud/devops/model/StartPipelineRunRequest.h + include/alibabacloud/devops/model/StartPipelineRunResult.h + include/alibabacloud/devops/model/StopPipelineJobRunRequest.h + include/alibabacloud/devops/model/StopPipelineJobRunResult.h + include/alibabacloud/devops/model/StopPipelineRunRequest.h + include/alibabacloud/devops/model/StopPipelineRunResult.h + include/alibabacloud/devops/model/StopVMDeployOrderRequest.h + include/alibabacloud/devops/model/StopVMDeployOrderResult.h + include/alibabacloud/devops/model/TransferRepositoryRequest.h + include/alibabacloud/devops/model/TransferRepositoryResult.h + include/alibabacloud/devops/model/TriggerRepositoryMirrorSyncRequest.h + include/alibabacloud/devops/model/TriggerRepositoryMirrorSyncResult.h + include/alibabacloud/devops/model/UpdateAppMemberRequest.h + include/alibabacloud/devops/model/UpdateAppMemberResult.h + include/alibabacloud/devops/model/UpdateApplicationRequest.h + include/alibabacloud/devops/model/UpdateApplicationResult.h + include/alibabacloud/devops/model/UpdateCheckRunRequest.h + include/alibabacloud/devops/model/UpdateCheckRunResult.h + include/alibabacloud/devops/model/UpdateFileRequest.h + include/alibabacloud/devops/model/UpdateFileResult.h + include/alibabacloud/devops/model/UpdateFlowTagRequest.h + include/alibabacloud/devops/model/UpdateFlowTagResult.h + include/alibabacloud/devops/model/UpdateFlowTagGroupRequest.h + include/alibabacloud/devops/model/UpdateFlowTagGroupResult.h + include/alibabacloud/devops/model/UpdateGroupRequest.h + include/alibabacloud/devops/model/UpdateGroupResult.h + include/alibabacloud/devops/model/UpdateGroupMemberRequest.h + include/alibabacloud/devops/model/UpdateGroupMemberResult.h + include/alibabacloud/devops/model/UpdateHostGroupRequest.h + include/alibabacloud/devops/model/UpdateHostGroupResult.h + include/alibabacloud/devops/model/UpdateMergeRequestRequest.h + include/alibabacloud/devops/model/UpdateMergeRequestResult.h + include/alibabacloud/devops/model/UpdateMergeRequestPersonnelRequest.h + include/alibabacloud/devops/model/UpdateMergeRequestPersonnelResult.h + include/alibabacloud/devops/model/UpdatePipelineRequest.h + include/alibabacloud/devops/model/UpdatePipelineResult.h + include/alibabacloud/devops/model/UpdatePipelineBaseInfoRequest.h + include/alibabacloud/devops/model/UpdatePipelineBaseInfoResult.h + include/alibabacloud/devops/model/UpdatePipelineGroupRequest.h + include/alibabacloud/devops/model/UpdatePipelineGroupResult.h + include/alibabacloud/devops/model/UpdateProjectFieldRequest.h + include/alibabacloud/devops/model/UpdateProjectFieldResult.h + include/alibabacloud/devops/model/UpdateProjectLabelRequest.h + include/alibabacloud/devops/model/UpdateProjectLabelResult.h + include/alibabacloud/devops/model/UpdateProjectMemberRequest.h + include/alibabacloud/devops/model/UpdateProjectMemberResult.h + include/alibabacloud/devops/model/UpdateProtectedBranchesRequest.h + include/alibabacloud/devops/model/UpdateProtectedBranchesResult.h + include/alibabacloud/devops/model/UpdatePushReviewOnOffRequest.h + include/alibabacloud/devops/model/UpdatePushReviewOnOffResult.h + include/alibabacloud/devops/model/UpdatePushRuleRequest.h + include/alibabacloud/devops/model/UpdatePushRuleResult.h + include/alibabacloud/devops/model/UpdateRepositoryRequest.h + include/alibabacloud/devops/model/UpdateRepositoryResult.h + include/alibabacloud/devops/model/UpdateRepositoryMemberRequest.h + include/alibabacloud/devops/model/UpdateRepositoryMemberResult.h + include/alibabacloud/devops/model/UpdateResourceMemberRequest.h + include/alibabacloud/devops/model/UpdateResourceMemberResult.h + include/alibabacloud/devops/model/UpdateTestCaseRequest.h + include/alibabacloud/devops/model/UpdateTestCaseResult.h + include/alibabacloud/devops/model/UpdateTestResultRequest.h + include/alibabacloud/devops/model/UpdateTestResultResult.h + include/alibabacloud/devops/model/UpdateVariableGroupRequest.h + include/alibabacloud/devops/model/UpdateVariableGroupResult.h + include/alibabacloud/devops/model/UpdateWorkItemRequest.h + include/alibabacloud/devops/model/UpdateWorkItemResult.h + include/alibabacloud/devops/model/UpdateWorkitemCommentRequest.h + include/alibabacloud/devops/model/UpdateWorkitemCommentResult.h + include/alibabacloud/devops/model/UpdateWorkitemFieldRequest.h + include/alibabacloud/devops/model/UpdateWorkitemFieldResult.h + include/alibabacloud/devops/model/WorkitemAttachmentCreateRequest.h + include/alibabacloud/devops/model/WorkitemAttachmentCreateResult.h ) + +set(devops_src + src/DevopsClient.cc + src/model/AddGroupMemberRequest.cc + src/model/AddGroupMemberResult.cc + src/model/AddPipelineRelationsRequest.cc + src/model/AddPipelineRelationsResult.cc + src/model/AddRepositoryMemberRequest.cc + src/model/AddRepositoryMemberResult.cc + src/model/AddWebhookRequest.cc + src/model/AddWebhookResult.cc + src/model/CloseMergeRequestRequest.cc + src/model/CloseMergeRequestResult.cc + src/model/CreateAppMembersRequest.cc + src/model/CreateAppMembersResult.cc + src/model/CreateBranchRequest.cc + src/model/CreateBranchResult.cc + src/model/CreateCheckRunRequest.cc + src/model/CreateCheckRunResult.cc + src/model/CreateCommentRequest.cc + src/model/CreateCommentResult.cc + src/model/CreateCommitStatusRequest.cc + src/model/CreateCommitStatusResult.cc + src/model/CreateCommitWithMultipleFilesRequest.cc + src/model/CreateCommitWithMultipleFilesResult.cc + src/model/CreateDeployKeyRequest.cc + src/model/CreateDeployKeyResult.cc + src/model/CreateFileRequest.cc + src/model/CreateFileResult.cc + src/model/CreateFlowTagRequest.cc + src/model/CreateFlowTagResult.cc + src/model/CreateFlowTagGroupRequest.cc + src/model/CreateFlowTagGroupResult.cc + src/model/CreateHostGroupRequest.cc + src/model/CreateHostGroupResult.cc + src/model/CreateMergeRequestRequest.cc + src/model/CreateMergeRequestResult.cc + src/model/CreateOAuthTokenRequest.cc + src/model/CreateOAuthTokenResult.cc + src/model/CreatePipelineRequest.cc + src/model/CreatePipelineResult.cc + src/model/CreatePipelineGroupRequest.cc + src/model/CreatePipelineGroupResult.cc + src/model/CreateProjectRequest.cc + src/model/CreateProjectResult.cc + src/model/CreateProjectLabelRequest.cc + src/model/CreateProjectLabelResult.cc + src/model/CreateProtectdBranchRequest.cc + src/model/CreateProtectdBranchResult.cc + src/model/CreatePushRuleRequest.cc + src/model/CreatePushRuleResult.cc + src/model/CreateRepositoryRequest.cc + src/model/CreateRepositoryResult.cc + src/model/CreateRepositoryGroupRequest.cc + src/model/CreateRepositoryGroupResult.cc + src/model/CreateResourceMemberRequest.cc + src/model/CreateResourceMemberResult.cc + src/model/CreateServiceAuthRequest.cc + src/model/CreateServiceAuthResult.cc + src/model/CreateServiceConnectionRequest.cc + src/model/CreateServiceConnectionResult.cc + src/model/CreateServiceCredentialRequest.cc + src/model/CreateServiceCredentialResult.cc + src/model/CreateSprintRequest.cc + src/model/CreateSprintResult.cc + src/model/CreateSshKeyRequest.cc + src/model/CreateSshKeyResult.cc + src/model/CreateTagRequest.cc + src/model/CreateTagResult.cc + src/model/CreateTestCaseRequest.cc + src/model/CreateTestCaseResult.cc + src/model/CreateUserKeyRequest.cc + src/model/CreateUserKeyResult.cc + src/model/CreateVariableGroupRequest.cc + src/model/CreateVariableGroupResult.cc + src/model/CreateWorkitemRequest.cc + src/model/CreateWorkitemResult.cc + src/model/CreateWorkitemCommentRequest.cc + src/model/CreateWorkitemCommentResult.cc + src/model/CreateWorkitemEstimateRequest.cc + src/model/CreateWorkitemEstimateResult.cc + src/model/CreateWorkitemRecordRequest.cc + src/model/CreateWorkitemRecordResult.cc + src/model/CreateWorkitemV2Request.cc + src/model/CreateWorkitemV2Result.cc + src/model/CreateWorkspaceRequest.cc + src/model/CreateWorkspaceResult.cc + src/model/DeleteAppMemberRequest.cc + src/model/DeleteAppMemberResult.cc + src/model/DeleteBranchRequest.cc + src/model/DeleteBranchResult.cc + src/model/DeleteFileRequest.cc + src/model/DeleteFileResult.cc + src/model/DeleteFlowTagRequest.cc + src/model/DeleteFlowTagResult.cc + src/model/DeleteFlowTagGroupRequest.cc + src/model/DeleteFlowTagGroupResult.cc + src/model/DeleteGroupMemberRequest.cc + src/model/DeleteGroupMemberResult.cc + src/model/DeleteHostGroupRequest.cc + src/model/DeleteHostGroupResult.cc + src/model/DeletePipelineRequest.cc + src/model/DeletePipelineResult.cc + src/model/DeletePipelineGroupRequest.cc + src/model/DeletePipelineGroupResult.cc + src/model/DeletePipelineRelationsRequest.cc + src/model/DeletePipelineRelationsResult.cc + src/model/DeleteProjectRequest.cc + src/model/DeleteProjectResult.cc + src/model/DeleteProjectLabelRequest.cc + src/model/DeleteProjectLabelResult.cc + src/model/DeleteProtectedBranchRequest.cc + src/model/DeleteProtectedBranchResult.cc + src/model/DeletePushRuleRequest.cc + src/model/DeletePushRuleResult.cc + src/model/DeleteRepositoryRequest.cc + src/model/DeleteRepositoryResult.cc + src/model/DeleteRepositoryGroupRequest.cc + src/model/DeleteRepositoryGroupResult.cc + src/model/DeleteRepositoryMemberRequest.cc + src/model/DeleteRepositoryMemberResult.cc + src/model/DeleteRepositoryWebhookRequest.cc + src/model/DeleteRepositoryWebhookResult.cc + src/model/DeleteResourceMemberRequest.cc + src/model/DeleteResourceMemberResult.cc + src/model/DeleteTagRequest.cc + src/model/DeleteTagResult.cc + src/model/DeleteUserKeyRequest.cc + src/model/DeleteUserKeyResult.cc + src/model/DeleteVariableGroupRequest.cc + src/model/DeleteVariableGroupResult.cc + src/model/DeleteWorkitemRequest.cc + src/model/DeleteWorkitemResult.cc + src/model/DeleteWorkitemAllCommentRequest.cc + src/model/DeleteWorkitemAllCommentResult.cc + src/model/DeleteWorkitemCommentRequest.cc + src/model/DeleteWorkitemCommentResult.cc + src/model/EnableDeployKeyRequest.cc + src/model/EnableDeployKeyResult.cc + src/model/FrozenWorkspaceRequest.cc + src/model/FrozenWorkspaceResult.cc + src/model/GetApplicationRequest.cc + src/model/GetApplicationResult.cc + src/model/GetBranchInfoRequest.cc + src/model/GetBranchInfoResult.cc + src/model/GetCheckRunRequest.cc + src/model/GetCheckRunResult.cc + src/model/GetCodeupOrganizationRequest.cc + src/model/GetCodeupOrganizationResult.cc + src/model/GetCompareDetailRequest.cc + src/model/GetCompareDetailResult.cc + src/model/GetCustomFieldOptionRequest.cc + src/model/GetCustomFieldOptionResult.cc + src/model/GetFileBlobsRequest.cc + src/model/GetFileBlobsResult.cc + src/model/GetFileLastCommitRequest.cc + src/model/GetFileLastCommitResult.cc + src/model/GetFlowTagGroupRequest.cc + src/model/GetFlowTagGroupResult.cc + src/model/GetGroupByPathRequest.cc + src/model/GetGroupByPathResult.cc + src/model/GetGroupDetailRequest.cc + src/model/GetGroupDetailResult.cc + src/model/GetHostGroupRequest.cc + src/model/GetHostGroupResult.cc + src/model/GetMergeRequestRequest.cc + src/model/GetMergeRequestResult.cc + src/model/GetMergeRequestChangeTreeRequest.cc + src/model/GetMergeRequestChangeTreeResult.cc + src/model/GetOrganizationMemberRequest.cc + src/model/GetOrganizationMemberResult.cc + src/model/GetPipelineRequest.cc + src/model/GetPipelineResult.cc + src/model/GetPipelineArtifactUrlRequest.cc + src/model/GetPipelineArtifactUrlResult.cc + src/model/GetPipelineEmasArtifactUrlRequest.cc + src/model/GetPipelineEmasArtifactUrlResult.cc + src/model/GetPipelineGroupRequest.cc + src/model/GetPipelineGroupResult.cc + src/model/GetPipelineRunRequest.cc + src/model/GetPipelineRunResult.cc + src/model/GetPipelineScanReportUrlRequest.cc + src/model/GetPipelineScanReportUrlResult.cc + src/model/GetProjectInfoRequest.cc + src/model/GetProjectInfoResult.cc + src/model/GetProjectMemberRequest.cc + src/model/GetProjectMemberResult.cc + src/model/GetPushRuleRequest.cc + src/model/GetPushRuleResult.cc + src/model/GetRepositoryRequest.cc + src/model/GetRepositoryResult.cc + src/model/GetRepositoryCommitRequest.cc + src/model/GetRepositoryCommitResult.cc + src/model/GetRepositoryTagRequest.cc + src/model/GetRepositoryTagResult.cc + src/model/GetSearchCodePreviewRequest.cc + src/model/GetSearchCodePreviewResult.cc + src/model/GetSprintInfoRequest.cc + src/model/GetSprintInfoResult.cc + src/model/GetTestResultListRequest.cc + src/model/GetTestResultListResult.cc + src/model/GetTestcaseListRequest.cc + src/model/GetTestcaseListResult.cc + src/model/GetUserInfoRequest.cc + src/model/GetUserInfoResult.cc + src/model/GetVMDeployOrderRequest.cc + src/model/GetVMDeployOrderResult.cc + src/model/GetVariableGroupRequest.cc + src/model/GetVariableGroupResult.cc + src/model/GetWorkItemActivityRequest.cc + src/model/GetWorkItemActivityResult.cc + src/model/GetWorkItemInfoRequest.cc + src/model/GetWorkItemInfoResult.cc + src/model/GetWorkItemWorkFlowInfoRequest.cc + src/model/GetWorkItemWorkFlowInfoResult.cc + src/model/GetWorkitemAttachmentCreatemetaRequest.cc + src/model/GetWorkitemAttachmentCreatemetaResult.cc + src/model/GetWorkitemCommentListRequest.cc + src/model/GetWorkitemCommentListResult.cc + src/model/GetWorkitemFileRequest.cc + src/model/GetWorkitemFileResult.cc + src/model/GetWorkitemRelationsRequest.cc + src/model/GetWorkitemRelationsResult.cc + src/model/GetWorkitemTimeTypeListRequest.cc + src/model/GetWorkitemTimeTypeListResult.cc + src/model/GetWorkspaceRequest.cc + src/model/GetWorkspaceResult.cc + src/model/JoinPipelineGroupRequest.cc + src/model/JoinPipelineGroupResult.cc + src/model/LinkMergeRequestLabelRequest.cc + src/model/LinkMergeRequestLabelResult.cc + src/model/ListApplicationMembersRequest.cc + src/model/ListApplicationMembersResult.cc + src/model/ListApplicationsRequest.cc + src/model/ListApplicationsResult.cc + src/model/ListCheckRunsRequest.cc + src/model/ListCheckRunsResult.cc + src/model/ListCommitStatusesRequest.cc + src/model/ListCommitStatusesResult.cc + src/model/ListFlowTagGroupsRequest.cc + src/model/ListFlowTagGroupsResult.cc + src/model/ListGroupMemberRequest.cc + src/model/ListGroupMemberResult.cc + src/model/ListGroupRepositoriesRequest.cc + src/model/ListGroupRepositoriesResult.cc + src/model/ListHostGroupsRequest.cc + src/model/ListHostGroupsResult.cc + src/model/ListJoinedOrganizationsRequest.cc + src/model/ListJoinedOrganizationsResult.cc + src/model/ListMergeRequestCommentsRequest.cc + src/model/ListMergeRequestCommentsResult.cc + src/model/ListMergeRequestFilesReadsRequest.cc + src/model/ListMergeRequestFilesReadsResult.cc + src/model/ListMergeRequestLabelsRequest.cc + src/model/ListMergeRequestLabelsResult.cc + src/model/ListMergeRequestPatchSetsRequest.cc + src/model/ListMergeRequestPatchSetsResult.cc + src/model/ListMergeRequestsRequest.cc + src/model/ListMergeRequestsResult.cc + src/model/ListOrganizationMembersRequest.cc + src/model/ListOrganizationMembersResult.cc + src/model/ListOrganizationsRequest.cc + src/model/ListOrganizationsResult.cc + src/model/ListPipelineGroupPipelinesRequest.cc + src/model/ListPipelineGroupPipelinesResult.cc + src/model/ListPipelineGroupsRequest.cc + src/model/ListPipelineGroupsResult.cc + src/model/ListPipelineJobHistorysRequest.cc + src/model/ListPipelineJobHistorysResult.cc + src/model/ListPipelineJobsRequest.cc + src/model/ListPipelineJobsResult.cc + src/model/ListPipelineRelationsRequest.cc + src/model/ListPipelineRelationsResult.cc + src/model/ListPipelineRunsRequest.cc + src/model/ListPipelineRunsResult.cc + src/model/ListPipelinesRequest.cc + src/model/ListPipelinesResult.cc + src/model/ListProjectLabelsRequest.cc + src/model/ListProjectLabelsResult.cc + src/model/ListProjectMembersRequest.cc + src/model/ListProjectMembersResult.cc + src/model/ListProjectTemplatesRequest.cc + src/model/ListProjectTemplatesResult.cc + src/model/ListProjectWorkitemTypesRequest.cc + src/model/ListProjectWorkitemTypesResult.cc + src/model/ListProjectsRequest.cc + src/model/ListProjectsResult.cc + src/model/ListProtectedBranchesRequest.cc + src/model/ListProtectedBranchesResult.cc + src/model/ListPushRulesRequest.cc + src/model/ListPushRulesResult.cc + src/model/ListRepositoriesRequest.cc + src/model/ListRepositoriesResult.cc + src/model/ListRepositoryBranchesRequest.cc + src/model/ListRepositoryBranchesResult.cc + src/model/ListRepositoryCommitDiffRequest.cc + src/model/ListRepositoryCommitDiffResult.cc + src/model/ListRepositoryCommitsRequest.cc + src/model/ListRepositoryCommitsResult.cc + src/model/ListRepositoryGroupsRequest.cc + src/model/ListRepositoryGroupsResult.cc + src/model/ListRepositoryMemberWithInheritedRequest.cc + src/model/ListRepositoryMemberWithInheritedResult.cc + src/model/ListRepositoryTagsRequest.cc + src/model/ListRepositoryTagsResult.cc + src/model/ListRepositoryTreeRequest.cc + src/model/ListRepositoryTreeResult.cc + src/model/ListRepositoryWebhookRequest.cc + src/model/ListRepositoryWebhookResult.cc + src/model/ListResourceMembersRequest.cc + src/model/ListResourceMembersResult.cc + src/model/ListSearchCommitRequest.cc + src/model/ListSearchCommitResult.cc + src/model/ListSearchRepositoryRequest.cc + src/model/ListSearchRepositoryResult.cc + src/model/ListSearchSourceCodeRequest.cc + src/model/ListSearchSourceCodeResult.cc + src/model/ListServiceAuthsRequest.cc + src/model/ListServiceAuthsResult.cc + src/model/ListServiceConnectionsRequest.cc + src/model/ListServiceConnectionsResult.cc + src/model/ListServiceCredentialsRequest.cc + src/model/ListServiceCredentialsResult.cc + src/model/ListSprintsRequest.cc + src/model/ListSprintsResult.cc + src/model/ListTestCaseFieldsRequest.cc + src/model/ListTestCaseFieldsResult.cc + src/model/ListUserDrawRecordByPkRequest.cc + src/model/ListUserDrawRecordByPkResult.cc + src/model/ListUserKeysRequest.cc + src/model/ListUserKeysResult.cc + src/model/ListUserResourcesRequest.cc + src/model/ListUserResourcesResult.cc + src/model/ListVariableGroupsRequest.cc + src/model/ListVariableGroupsResult.cc + src/model/ListWorkItemAllFieldsRequest.cc + src/model/ListWorkItemAllFieldsResult.cc + src/model/ListWorkItemWorkFlowStatusRequest.cc + src/model/ListWorkItemWorkFlowStatusResult.cc + src/model/ListWorkitemAttachmentsRequest.cc + src/model/ListWorkitemAttachmentsResult.cc + src/model/ListWorkitemEstimateRequest.cc + src/model/ListWorkitemEstimateResult.cc + src/model/ListWorkitemTimeRequest.cc + src/model/ListWorkitemTimeResult.cc + src/model/ListWorkitemsRequest.cc + src/model/ListWorkitemsResult.cc + src/model/ListWorkspacesRequest.cc + src/model/ListWorkspacesResult.cc + src/model/LogPipelineJobRunRequest.cc + src/model/LogPipelineJobRunResult.cc + src/model/LogVMDeployMachineRequest.cc + src/model/LogVMDeployMachineResult.cc + src/model/MergeMergeRequestRequest.cc + src/model/MergeMergeRequestResult.cc + src/model/PassPipelineValidateRequest.cc + src/model/PassPipelineValidateResult.cc + src/model/RefusePipelineValidateRequest.cc + src/model/RefusePipelineValidateResult.cc + src/model/ReleaseWorkspaceRequest.cc + src/model/ReleaseWorkspaceResult.cc + src/model/ReopenMergeRequestRequest.cc + src/model/ReopenMergeRequestResult.cc + src/model/ResetSshKeyRequest.cc + src/model/ResetSshKeyResult.cc + src/model/ResumeVMDeployOrderRequest.cc + src/model/ResumeVMDeployOrderResult.cc + src/model/RetryPipelineJobRunRequest.cc + src/model/RetryPipelineJobRunResult.cc + src/model/RetryVMDeployMachineRequest.cc + src/model/RetryVMDeployMachineResult.cc + src/model/ReviewMergeRequestRequest.cc + src/model/ReviewMergeRequestResult.cc + src/model/SkipPipelineJobRunRequest.cc + src/model/SkipPipelineJobRunResult.cc + src/model/SkipVMDeployMachineRequest.cc + src/model/SkipVMDeployMachineResult.cc + src/model/StartPipelineRunRequest.cc + src/model/StartPipelineRunResult.cc + src/model/StopPipelineJobRunRequest.cc + src/model/StopPipelineJobRunResult.cc + src/model/StopPipelineRunRequest.cc + src/model/StopPipelineRunResult.cc + src/model/StopVMDeployOrderRequest.cc + src/model/StopVMDeployOrderResult.cc + src/model/TransferRepositoryRequest.cc + src/model/TransferRepositoryResult.cc + src/model/TriggerRepositoryMirrorSyncRequest.cc + src/model/TriggerRepositoryMirrorSyncResult.cc + src/model/UpdateAppMemberRequest.cc + src/model/UpdateAppMemberResult.cc + src/model/UpdateApplicationRequest.cc + src/model/UpdateApplicationResult.cc + src/model/UpdateCheckRunRequest.cc + src/model/UpdateCheckRunResult.cc + src/model/UpdateFileRequest.cc + src/model/UpdateFileResult.cc + src/model/UpdateFlowTagRequest.cc + src/model/UpdateFlowTagResult.cc + src/model/UpdateFlowTagGroupRequest.cc + src/model/UpdateFlowTagGroupResult.cc + src/model/UpdateGroupRequest.cc + src/model/UpdateGroupResult.cc + src/model/UpdateGroupMemberRequest.cc + src/model/UpdateGroupMemberResult.cc + src/model/UpdateHostGroupRequest.cc + src/model/UpdateHostGroupResult.cc + src/model/UpdateMergeRequestRequest.cc + src/model/UpdateMergeRequestResult.cc + src/model/UpdateMergeRequestPersonnelRequest.cc + src/model/UpdateMergeRequestPersonnelResult.cc + src/model/UpdatePipelineRequest.cc + src/model/UpdatePipelineResult.cc + src/model/UpdatePipelineBaseInfoRequest.cc + src/model/UpdatePipelineBaseInfoResult.cc + src/model/UpdatePipelineGroupRequest.cc + src/model/UpdatePipelineGroupResult.cc + src/model/UpdateProjectFieldRequest.cc + src/model/UpdateProjectFieldResult.cc + src/model/UpdateProjectLabelRequest.cc + src/model/UpdateProjectLabelResult.cc + src/model/UpdateProjectMemberRequest.cc + src/model/UpdateProjectMemberResult.cc + src/model/UpdateProtectedBranchesRequest.cc + src/model/UpdateProtectedBranchesResult.cc + src/model/UpdatePushReviewOnOffRequest.cc + src/model/UpdatePushReviewOnOffResult.cc + src/model/UpdatePushRuleRequest.cc + src/model/UpdatePushRuleResult.cc + src/model/UpdateRepositoryRequest.cc + src/model/UpdateRepositoryResult.cc + src/model/UpdateRepositoryMemberRequest.cc + src/model/UpdateRepositoryMemberResult.cc + src/model/UpdateResourceMemberRequest.cc + src/model/UpdateResourceMemberResult.cc + src/model/UpdateTestCaseRequest.cc + src/model/UpdateTestCaseResult.cc + src/model/UpdateTestResultRequest.cc + src/model/UpdateTestResultResult.cc + src/model/UpdateVariableGroupRequest.cc + src/model/UpdateVariableGroupResult.cc + src/model/UpdateWorkItemRequest.cc + src/model/UpdateWorkItemResult.cc + src/model/UpdateWorkitemCommentRequest.cc + src/model/UpdateWorkitemCommentResult.cc + src/model/UpdateWorkitemFieldRequest.cc + src/model/UpdateWorkitemFieldResult.cc + src/model/WorkitemAttachmentCreateRequest.cc + src/model/WorkitemAttachmentCreateResult.cc ) + +add_library(devops ${LIB_TYPE} + ${devops_public_header} + ${devops_public_header_model} + ${devops_src}) + +set_target_properties(devops + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}devops + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(devops + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_DEVOPS_LIBRARY) +endif() + +target_include_directories(devops + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(devops + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(devops + jsoncpp) + target_include_directories(devops + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(devops + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(devops + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(devops + PRIVATE /usr/include/jsoncpp) + target_link_libraries(devops + jsoncpp) +endif() + +install(FILES ${devops_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/devops) +install(FILES ${devops_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/devops/model) +install(TARGETS devops + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/DevopsClient.h b/devops/include/alibabacloud/devops/DevopsClient.h new file mode 100644 index 000000000..ba6ec9e39 --- /dev/null +++ b/devops/include/alibabacloud/devops/DevopsClient.h @@ -0,0 +1,1830 @@ +/* + * 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_DEVOPS_DEVOPSCLIENT_H_ +#define ALIBABACLOUD_DEVOPS_DEVOPSCLIENT_H_ + +#include +#include +#include +#include +#include "DevopsExport.h" +#include "model/AddGroupMemberRequest.h" +#include "model/AddGroupMemberResult.h" +#include "model/AddPipelineRelationsRequest.h" +#include "model/AddPipelineRelationsResult.h" +#include "model/AddRepositoryMemberRequest.h" +#include "model/AddRepositoryMemberResult.h" +#include "model/AddWebhookRequest.h" +#include "model/AddWebhookResult.h" +#include "model/CloseMergeRequestRequest.h" +#include "model/CloseMergeRequestResult.h" +#include "model/CreateAppMembersRequest.h" +#include "model/CreateAppMembersResult.h" +#include "model/CreateBranchRequest.h" +#include "model/CreateBranchResult.h" +#include "model/CreateCheckRunRequest.h" +#include "model/CreateCheckRunResult.h" +#include "model/CreateCommentRequest.h" +#include "model/CreateCommentResult.h" +#include "model/CreateCommitStatusRequest.h" +#include "model/CreateCommitStatusResult.h" +#include "model/CreateCommitWithMultipleFilesRequest.h" +#include "model/CreateCommitWithMultipleFilesResult.h" +#include "model/CreateDeployKeyRequest.h" +#include "model/CreateDeployKeyResult.h" +#include "model/CreateFileRequest.h" +#include "model/CreateFileResult.h" +#include "model/CreateFlowTagRequest.h" +#include "model/CreateFlowTagResult.h" +#include "model/CreateFlowTagGroupRequest.h" +#include "model/CreateFlowTagGroupResult.h" +#include "model/CreateHostGroupRequest.h" +#include "model/CreateHostGroupResult.h" +#include "model/CreateMergeRequestRequest.h" +#include "model/CreateMergeRequestResult.h" +#include "model/CreateOAuthTokenRequest.h" +#include "model/CreateOAuthTokenResult.h" +#include "model/CreatePipelineRequest.h" +#include "model/CreatePipelineResult.h" +#include "model/CreatePipelineGroupRequest.h" +#include "model/CreatePipelineGroupResult.h" +#include "model/CreateProjectRequest.h" +#include "model/CreateProjectResult.h" +#include "model/CreateProjectLabelRequest.h" +#include "model/CreateProjectLabelResult.h" +#include "model/CreateProtectdBranchRequest.h" +#include "model/CreateProtectdBranchResult.h" +#include "model/CreatePushRuleRequest.h" +#include "model/CreatePushRuleResult.h" +#include "model/CreateRepositoryRequest.h" +#include "model/CreateRepositoryResult.h" +#include "model/CreateRepositoryGroupRequest.h" +#include "model/CreateRepositoryGroupResult.h" +#include "model/CreateResourceMemberRequest.h" +#include "model/CreateResourceMemberResult.h" +#include "model/CreateServiceAuthRequest.h" +#include "model/CreateServiceAuthResult.h" +#include "model/CreateServiceConnectionRequest.h" +#include "model/CreateServiceConnectionResult.h" +#include "model/CreateServiceCredentialRequest.h" +#include "model/CreateServiceCredentialResult.h" +#include "model/CreateSprintRequest.h" +#include "model/CreateSprintResult.h" +#include "model/CreateSshKeyRequest.h" +#include "model/CreateSshKeyResult.h" +#include "model/CreateTagRequest.h" +#include "model/CreateTagResult.h" +#include "model/CreateTestCaseRequest.h" +#include "model/CreateTestCaseResult.h" +#include "model/CreateUserKeyRequest.h" +#include "model/CreateUserKeyResult.h" +#include "model/CreateVariableGroupRequest.h" +#include "model/CreateVariableGroupResult.h" +#include "model/CreateWorkitemRequest.h" +#include "model/CreateWorkitemResult.h" +#include "model/CreateWorkitemCommentRequest.h" +#include "model/CreateWorkitemCommentResult.h" +#include "model/CreateWorkitemEstimateRequest.h" +#include "model/CreateWorkitemEstimateResult.h" +#include "model/CreateWorkitemRecordRequest.h" +#include "model/CreateWorkitemRecordResult.h" +#include "model/CreateWorkitemV2Request.h" +#include "model/CreateWorkitemV2Result.h" +#include "model/CreateWorkspaceRequest.h" +#include "model/CreateWorkspaceResult.h" +#include "model/DeleteAppMemberRequest.h" +#include "model/DeleteAppMemberResult.h" +#include "model/DeleteBranchRequest.h" +#include "model/DeleteBranchResult.h" +#include "model/DeleteFileRequest.h" +#include "model/DeleteFileResult.h" +#include "model/DeleteFlowTagRequest.h" +#include "model/DeleteFlowTagResult.h" +#include "model/DeleteFlowTagGroupRequest.h" +#include "model/DeleteFlowTagGroupResult.h" +#include "model/DeleteGroupMemberRequest.h" +#include "model/DeleteGroupMemberResult.h" +#include "model/DeleteHostGroupRequest.h" +#include "model/DeleteHostGroupResult.h" +#include "model/DeletePipelineRequest.h" +#include "model/DeletePipelineResult.h" +#include "model/DeletePipelineGroupRequest.h" +#include "model/DeletePipelineGroupResult.h" +#include "model/DeletePipelineRelationsRequest.h" +#include "model/DeletePipelineRelationsResult.h" +#include "model/DeleteProjectRequest.h" +#include "model/DeleteProjectResult.h" +#include "model/DeleteProjectLabelRequest.h" +#include "model/DeleteProjectLabelResult.h" +#include "model/DeleteProtectedBranchRequest.h" +#include "model/DeleteProtectedBranchResult.h" +#include "model/DeletePushRuleRequest.h" +#include "model/DeletePushRuleResult.h" +#include "model/DeleteRepositoryRequest.h" +#include "model/DeleteRepositoryResult.h" +#include "model/DeleteRepositoryGroupRequest.h" +#include "model/DeleteRepositoryGroupResult.h" +#include "model/DeleteRepositoryMemberRequest.h" +#include "model/DeleteRepositoryMemberResult.h" +#include "model/DeleteRepositoryWebhookRequest.h" +#include "model/DeleteRepositoryWebhookResult.h" +#include "model/DeleteResourceMemberRequest.h" +#include "model/DeleteResourceMemberResult.h" +#include "model/DeleteTagRequest.h" +#include "model/DeleteTagResult.h" +#include "model/DeleteUserKeyRequest.h" +#include "model/DeleteUserKeyResult.h" +#include "model/DeleteVariableGroupRequest.h" +#include "model/DeleteVariableGroupResult.h" +#include "model/DeleteWorkitemRequest.h" +#include "model/DeleteWorkitemResult.h" +#include "model/DeleteWorkitemAllCommentRequest.h" +#include "model/DeleteWorkitemAllCommentResult.h" +#include "model/DeleteWorkitemCommentRequest.h" +#include "model/DeleteWorkitemCommentResult.h" +#include "model/EnableDeployKeyRequest.h" +#include "model/EnableDeployKeyResult.h" +#include "model/FrozenWorkspaceRequest.h" +#include "model/FrozenWorkspaceResult.h" +#include "model/GetApplicationRequest.h" +#include "model/GetApplicationResult.h" +#include "model/GetBranchInfoRequest.h" +#include "model/GetBranchInfoResult.h" +#include "model/GetCheckRunRequest.h" +#include "model/GetCheckRunResult.h" +#include "model/GetCodeupOrganizationRequest.h" +#include "model/GetCodeupOrganizationResult.h" +#include "model/GetCompareDetailRequest.h" +#include "model/GetCompareDetailResult.h" +#include "model/GetCustomFieldOptionRequest.h" +#include "model/GetCustomFieldOptionResult.h" +#include "model/GetFileBlobsRequest.h" +#include "model/GetFileBlobsResult.h" +#include "model/GetFileLastCommitRequest.h" +#include "model/GetFileLastCommitResult.h" +#include "model/GetFlowTagGroupRequest.h" +#include "model/GetFlowTagGroupResult.h" +#include "model/GetGroupByPathRequest.h" +#include "model/GetGroupByPathResult.h" +#include "model/GetGroupDetailRequest.h" +#include "model/GetGroupDetailResult.h" +#include "model/GetHostGroupRequest.h" +#include "model/GetHostGroupResult.h" +#include "model/GetMergeRequestRequest.h" +#include "model/GetMergeRequestResult.h" +#include "model/GetMergeRequestChangeTreeRequest.h" +#include "model/GetMergeRequestChangeTreeResult.h" +#include "model/GetOrganizationMemberRequest.h" +#include "model/GetOrganizationMemberResult.h" +#include "model/GetPipelineRequest.h" +#include "model/GetPipelineResult.h" +#include "model/GetPipelineArtifactUrlRequest.h" +#include "model/GetPipelineArtifactUrlResult.h" +#include "model/GetPipelineEmasArtifactUrlRequest.h" +#include "model/GetPipelineEmasArtifactUrlResult.h" +#include "model/GetPipelineGroupRequest.h" +#include "model/GetPipelineGroupResult.h" +#include "model/GetPipelineRunRequest.h" +#include "model/GetPipelineRunResult.h" +#include "model/GetPipelineScanReportUrlRequest.h" +#include "model/GetPipelineScanReportUrlResult.h" +#include "model/GetProjectInfoRequest.h" +#include "model/GetProjectInfoResult.h" +#include "model/GetProjectMemberRequest.h" +#include "model/GetProjectMemberResult.h" +#include "model/GetPushRuleRequest.h" +#include "model/GetPushRuleResult.h" +#include "model/GetRepositoryRequest.h" +#include "model/GetRepositoryResult.h" +#include "model/GetRepositoryCommitRequest.h" +#include "model/GetRepositoryCommitResult.h" +#include "model/GetRepositoryTagRequest.h" +#include "model/GetRepositoryTagResult.h" +#include "model/GetSearchCodePreviewRequest.h" +#include "model/GetSearchCodePreviewResult.h" +#include "model/GetSprintInfoRequest.h" +#include "model/GetSprintInfoResult.h" +#include "model/GetTestResultListRequest.h" +#include "model/GetTestResultListResult.h" +#include "model/GetTestcaseListRequest.h" +#include "model/GetTestcaseListResult.h" +#include "model/GetUserInfoRequest.h" +#include "model/GetUserInfoResult.h" +#include "model/GetVMDeployOrderRequest.h" +#include "model/GetVMDeployOrderResult.h" +#include "model/GetVariableGroupRequest.h" +#include "model/GetVariableGroupResult.h" +#include "model/GetWorkItemActivityRequest.h" +#include "model/GetWorkItemActivityResult.h" +#include "model/GetWorkItemInfoRequest.h" +#include "model/GetWorkItemInfoResult.h" +#include "model/GetWorkItemWorkFlowInfoRequest.h" +#include "model/GetWorkItemWorkFlowInfoResult.h" +#include "model/GetWorkitemAttachmentCreatemetaRequest.h" +#include "model/GetWorkitemAttachmentCreatemetaResult.h" +#include "model/GetWorkitemCommentListRequest.h" +#include "model/GetWorkitemCommentListResult.h" +#include "model/GetWorkitemFileRequest.h" +#include "model/GetWorkitemFileResult.h" +#include "model/GetWorkitemRelationsRequest.h" +#include "model/GetWorkitemRelationsResult.h" +#include "model/GetWorkitemTimeTypeListRequest.h" +#include "model/GetWorkitemTimeTypeListResult.h" +#include "model/GetWorkspaceRequest.h" +#include "model/GetWorkspaceResult.h" +#include "model/JoinPipelineGroupRequest.h" +#include "model/JoinPipelineGroupResult.h" +#include "model/LinkMergeRequestLabelRequest.h" +#include "model/LinkMergeRequestLabelResult.h" +#include "model/ListApplicationMembersRequest.h" +#include "model/ListApplicationMembersResult.h" +#include "model/ListApplicationsRequest.h" +#include "model/ListApplicationsResult.h" +#include "model/ListCheckRunsRequest.h" +#include "model/ListCheckRunsResult.h" +#include "model/ListCommitStatusesRequest.h" +#include "model/ListCommitStatusesResult.h" +#include "model/ListFlowTagGroupsRequest.h" +#include "model/ListFlowTagGroupsResult.h" +#include "model/ListGroupMemberRequest.h" +#include "model/ListGroupMemberResult.h" +#include "model/ListGroupRepositoriesRequest.h" +#include "model/ListGroupRepositoriesResult.h" +#include "model/ListHostGroupsRequest.h" +#include "model/ListHostGroupsResult.h" +#include "model/ListJoinedOrganizationsRequest.h" +#include "model/ListJoinedOrganizationsResult.h" +#include "model/ListMergeRequestCommentsRequest.h" +#include "model/ListMergeRequestCommentsResult.h" +#include "model/ListMergeRequestFilesReadsRequest.h" +#include "model/ListMergeRequestFilesReadsResult.h" +#include "model/ListMergeRequestLabelsRequest.h" +#include "model/ListMergeRequestLabelsResult.h" +#include "model/ListMergeRequestPatchSetsRequest.h" +#include "model/ListMergeRequestPatchSetsResult.h" +#include "model/ListMergeRequestsRequest.h" +#include "model/ListMergeRequestsResult.h" +#include "model/ListOrganizationMembersRequest.h" +#include "model/ListOrganizationMembersResult.h" +#include "model/ListOrganizationsRequest.h" +#include "model/ListOrganizationsResult.h" +#include "model/ListPipelineGroupPipelinesRequest.h" +#include "model/ListPipelineGroupPipelinesResult.h" +#include "model/ListPipelineGroupsRequest.h" +#include "model/ListPipelineGroupsResult.h" +#include "model/ListPipelineJobHistorysRequest.h" +#include "model/ListPipelineJobHistorysResult.h" +#include "model/ListPipelineJobsRequest.h" +#include "model/ListPipelineJobsResult.h" +#include "model/ListPipelineRelationsRequest.h" +#include "model/ListPipelineRelationsResult.h" +#include "model/ListPipelineRunsRequest.h" +#include "model/ListPipelineRunsResult.h" +#include "model/ListPipelinesRequest.h" +#include "model/ListPipelinesResult.h" +#include "model/ListProjectLabelsRequest.h" +#include "model/ListProjectLabelsResult.h" +#include "model/ListProjectMembersRequest.h" +#include "model/ListProjectMembersResult.h" +#include "model/ListProjectTemplatesRequest.h" +#include "model/ListProjectTemplatesResult.h" +#include "model/ListProjectWorkitemTypesRequest.h" +#include "model/ListProjectWorkitemTypesResult.h" +#include "model/ListProjectsRequest.h" +#include "model/ListProjectsResult.h" +#include "model/ListProtectedBranchesRequest.h" +#include "model/ListProtectedBranchesResult.h" +#include "model/ListPushRulesRequest.h" +#include "model/ListPushRulesResult.h" +#include "model/ListRepositoriesRequest.h" +#include "model/ListRepositoriesResult.h" +#include "model/ListRepositoryBranchesRequest.h" +#include "model/ListRepositoryBranchesResult.h" +#include "model/ListRepositoryCommitDiffRequest.h" +#include "model/ListRepositoryCommitDiffResult.h" +#include "model/ListRepositoryCommitsRequest.h" +#include "model/ListRepositoryCommitsResult.h" +#include "model/ListRepositoryGroupsRequest.h" +#include "model/ListRepositoryGroupsResult.h" +#include "model/ListRepositoryMemberWithInheritedRequest.h" +#include "model/ListRepositoryMemberWithInheritedResult.h" +#include "model/ListRepositoryTagsRequest.h" +#include "model/ListRepositoryTagsResult.h" +#include "model/ListRepositoryTreeRequest.h" +#include "model/ListRepositoryTreeResult.h" +#include "model/ListRepositoryWebhookRequest.h" +#include "model/ListRepositoryWebhookResult.h" +#include "model/ListResourceMembersRequest.h" +#include "model/ListResourceMembersResult.h" +#include "model/ListSearchCommitRequest.h" +#include "model/ListSearchCommitResult.h" +#include "model/ListSearchRepositoryRequest.h" +#include "model/ListSearchRepositoryResult.h" +#include "model/ListSearchSourceCodeRequest.h" +#include "model/ListSearchSourceCodeResult.h" +#include "model/ListServiceAuthsRequest.h" +#include "model/ListServiceAuthsResult.h" +#include "model/ListServiceConnectionsRequest.h" +#include "model/ListServiceConnectionsResult.h" +#include "model/ListServiceCredentialsRequest.h" +#include "model/ListServiceCredentialsResult.h" +#include "model/ListSprintsRequest.h" +#include "model/ListSprintsResult.h" +#include "model/ListTestCaseFieldsRequest.h" +#include "model/ListTestCaseFieldsResult.h" +#include "model/ListUserDrawRecordByPkRequest.h" +#include "model/ListUserDrawRecordByPkResult.h" +#include "model/ListUserKeysRequest.h" +#include "model/ListUserKeysResult.h" +#include "model/ListUserResourcesRequest.h" +#include "model/ListUserResourcesResult.h" +#include "model/ListVariableGroupsRequest.h" +#include "model/ListVariableGroupsResult.h" +#include "model/ListWorkItemAllFieldsRequest.h" +#include "model/ListWorkItemAllFieldsResult.h" +#include "model/ListWorkItemWorkFlowStatusRequest.h" +#include "model/ListWorkItemWorkFlowStatusResult.h" +#include "model/ListWorkitemAttachmentsRequest.h" +#include "model/ListWorkitemAttachmentsResult.h" +#include "model/ListWorkitemEstimateRequest.h" +#include "model/ListWorkitemEstimateResult.h" +#include "model/ListWorkitemTimeRequest.h" +#include "model/ListWorkitemTimeResult.h" +#include "model/ListWorkitemsRequest.h" +#include "model/ListWorkitemsResult.h" +#include "model/ListWorkspacesRequest.h" +#include "model/ListWorkspacesResult.h" +#include "model/LogPipelineJobRunRequest.h" +#include "model/LogPipelineJobRunResult.h" +#include "model/LogVMDeployMachineRequest.h" +#include "model/LogVMDeployMachineResult.h" +#include "model/MergeMergeRequestRequest.h" +#include "model/MergeMergeRequestResult.h" +#include "model/PassPipelineValidateRequest.h" +#include "model/PassPipelineValidateResult.h" +#include "model/RefusePipelineValidateRequest.h" +#include "model/RefusePipelineValidateResult.h" +#include "model/ReleaseWorkspaceRequest.h" +#include "model/ReleaseWorkspaceResult.h" +#include "model/ReopenMergeRequestRequest.h" +#include "model/ReopenMergeRequestResult.h" +#include "model/ResetSshKeyRequest.h" +#include "model/ResetSshKeyResult.h" +#include "model/ResumeVMDeployOrderRequest.h" +#include "model/ResumeVMDeployOrderResult.h" +#include "model/RetryPipelineJobRunRequest.h" +#include "model/RetryPipelineJobRunResult.h" +#include "model/RetryVMDeployMachineRequest.h" +#include "model/RetryVMDeployMachineResult.h" +#include "model/ReviewMergeRequestRequest.h" +#include "model/ReviewMergeRequestResult.h" +#include "model/SkipPipelineJobRunRequest.h" +#include "model/SkipPipelineJobRunResult.h" +#include "model/SkipVMDeployMachineRequest.h" +#include "model/SkipVMDeployMachineResult.h" +#include "model/StartPipelineRunRequest.h" +#include "model/StartPipelineRunResult.h" +#include "model/StopPipelineJobRunRequest.h" +#include "model/StopPipelineJobRunResult.h" +#include "model/StopPipelineRunRequest.h" +#include "model/StopPipelineRunResult.h" +#include "model/StopVMDeployOrderRequest.h" +#include "model/StopVMDeployOrderResult.h" +#include "model/TransferRepositoryRequest.h" +#include "model/TransferRepositoryResult.h" +#include "model/TriggerRepositoryMirrorSyncRequest.h" +#include "model/TriggerRepositoryMirrorSyncResult.h" +#include "model/UpdateAppMemberRequest.h" +#include "model/UpdateAppMemberResult.h" +#include "model/UpdateApplicationRequest.h" +#include "model/UpdateApplicationResult.h" +#include "model/UpdateCheckRunRequest.h" +#include "model/UpdateCheckRunResult.h" +#include "model/UpdateFileRequest.h" +#include "model/UpdateFileResult.h" +#include "model/UpdateFlowTagRequest.h" +#include "model/UpdateFlowTagResult.h" +#include "model/UpdateFlowTagGroupRequest.h" +#include "model/UpdateFlowTagGroupResult.h" +#include "model/UpdateGroupRequest.h" +#include "model/UpdateGroupResult.h" +#include "model/UpdateGroupMemberRequest.h" +#include "model/UpdateGroupMemberResult.h" +#include "model/UpdateHostGroupRequest.h" +#include "model/UpdateHostGroupResult.h" +#include "model/UpdateMergeRequestRequest.h" +#include "model/UpdateMergeRequestResult.h" +#include "model/UpdateMergeRequestPersonnelRequest.h" +#include "model/UpdateMergeRequestPersonnelResult.h" +#include "model/UpdatePipelineRequest.h" +#include "model/UpdatePipelineResult.h" +#include "model/UpdatePipelineBaseInfoRequest.h" +#include "model/UpdatePipelineBaseInfoResult.h" +#include "model/UpdatePipelineGroupRequest.h" +#include "model/UpdatePipelineGroupResult.h" +#include "model/UpdateProjectFieldRequest.h" +#include "model/UpdateProjectFieldResult.h" +#include "model/UpdateProjectLabelRequest.h" +#include "model/UpdateProjectLabelResult.h" +#include "model/UpdateProjectMemberRequest.h" +#include "model/UpdateProjectMemberResult.h" +#include "model/UpdateProtectedBranchesRequest.h" +#include "model/UpdateProtectedBranchesResult.h" +#include "model/UpdatePushReviewOnOffRequest.h" +#include "model/UpdatePushReviewOnOffResult.h" +#include "model/UpdatePushRuleRequest.h" +#include "model/UpdatePushRuleResult.h" +#include "model/UpdateRepositoryRequest.h" +#include "model/UpdateRepositoryResult.h" +#include "model/UpdateRepositoryMemberRequest.h" +#include "model/UpdateRepositoryMemberResult.h" +#include "model/UpdateResourceMemberRequest.h" +#include "model/UpdateResourceMemberResult.h" +#include "model/UpdateTestCaseRequest.h" +#include "model/UpdateTestCaseResult.h" +#include "model/UpdateTestResultRequest.h" +#include "model/UpdateTestResultResult.h" +#include "model/UpdateVariableGroupRequest.h" +#include "model/UpdateVariableGroupResult.h" +#include "model/UpdateWorkItemRequest.h" +#include "model/UpdateWorkItemResult.h" +#include "model/UpdateWorkitemCommentRequest.h" +#include "model/UpdateWorkitemCommentResult.h" +#include "model/UpdateWorkitemFieldRequest.h" +#include "model/UpdateWorkitemFieldResult.h" +#include "model/WorkitemAttachmentCreateRequest.h" +#include "model/WorkitemAttachmentCreateResult.h" + + +namespace AlibabaCloud +{ + namespace Devops + { + class ALIBABACLOUD_DEVOPS_EXPORT DevopsClient : public RoaServiceClient + { + public: + typedef Outcome AddGroupMemberOutcome; + typedef std::future AddGroupMemberOutcomeCallable; + typedef std::function&)> AddGroupMemberAsyncHandler; + typedef Outcome AddPipelineRelationsOutcome; + typedef std::future AddPipelineRelationsOutcomeCallable; + typedef std::function&)> AddPipelineRelationsAsyncHandler; + typedef Outcome AddRepositoryMemberOutcome; + typedef std::future AddRepositoryMemberOutcomeCallable; + typedef std::function&)> AddRepositoryMemberAsyncHandler; + typedef Outcome AddWebhookOutcome; + typedef std::future AddWebhookOutcomeCallable; + typedef std::function&)> AddWebhookAsyncHandler; + typedef Outcome CloseMergeRequestOutcome; + typedef std::future CloseMergeRequestOutcomeCallable; + typedef std::function&)> CloseMergeRequestAsyncHandler; + typedef Outcome CreateAppMembersOutcome; + typedef std::future CreateAppMembersOutcomeCallable; + typedef std::function&)> CreateAppMembersAsyncHandler; + typedef Outcome CreateBranchOutcome; + typedef std::future CreateBranchOutcomeCallable; + typedef std::function&)> CreateBranchAsyncHandler; + typedef Outcome CreateCheckRunOutcome; + typedef std::future CreateCheckRunOutcomeCallable; + typedef std::function&)> CreateCheckRunAsyncHandler; + typedef Outcome CreateCommentOutcome; + typedef std::future CreateCommentOutcomeCallable; + typedef std::function&)> CreateCommentAsyncHandler; + typedef Outcome CreateCommitStatusOutcome; + typedef std::future CreateCommitStatusOutcomeCallable; + typedef std::function&)> CreateCommitStatusAsyncHandler; + typedef Outcome CreateCommitWithMultipleFilesOutcome; + typedef std::future CreateCommitWithMultipleFilesOutcomeCallable; + typedef std::function&)> CreateCommitWithMultipleFilesAsyncHandler; + typedef Outcome CreateDeployKeyOutcome; + typedef std::future CreateDeployKeyOutcomeCallable; + typedef std::function&)> CreateDeployKeyAsyncHandler; + typedef Outcome CreateFileOutcome; + typedef std::future CreateFileOutcomeCallable; + typedef std::function&)> CreateFileAsyncHandler; + typedef Outcome CreateFlowTagOutcome; + typedef std::future CreateFlowTagOutcomeCallable; + typedef std::function&)> CreateFlowTagAsyncHandler; + typedef Outcome CreateFlowTagGroupOutcome; + typedef std::future CreateFlowTagGroupOutcomeCallable; + typedef std::function&)> CreateFlowTagGroupAsyncHandler; + typedef Outcome CreateHostGroupOutcome; + typedef std::future CreateHostGroupOutcomeCallable; + typedef std::function&)> CreateHostGroupAsyncHandler; + typedef Outcome CreateMergeRequestOutcome; + typedef std::future CreateMergeRequestOutcomeCallable; + typedef std::function&)> CreateMergeRequestAsyncHandler; + typedef Outcome CreateOAuthTokenOutcome; + typedef std::future CreateOAuthTokenOutcomeCallable; + typedef std::function&)> CreateOAuthTokenAsyncHandler; + typedef Outcome CreatePipelineOutcome; + typedef std::future CreatePipelineOutcomeCallable; + typedef std::function&)> CreatePipelineAsyncHandler; + typedef Outcome CreatePipelineGroupOutcome; + typedef std::future CreatePipelineGroupOutcomeCallable; + typedef std::function&)> CreatePipelineGroupAsyncHandler; + typedef Outcome CreateProjectOutcome; + typedef std::future CreateProjectOutcomeCallable; + typedef std::function&)> CreateProjectAsyncHandler; + typedef Outcome CreateProjectLabelOutcome; + typedef std::future CreateProjectLabelOutcomeCallable; + typedef std::function&)> CreateProjectLabelAsyncHandler; + typedef Outcome CreateProtectdBranchOutcome; + typedef std::future CreateProtectdBranchOutcomeCallable; + typedef std::function&)> CreateProtectdBranchAsyncHandler; + typedef Outcome CreatePushRuleOutcome; + typedef std::future CreatePushRuleOutcomeCallable; + typedef std::function&)> CreatePushRuleAsyncHandler; + typedef Outcome CreateRepositoryOutcome; + typedef std::future CreateRepositoryOutcomeCallable; + typedef std::function&)> CreateRepositoryAsyncHandler; + typedef Outcome CreateRepositoryGroupOutcome; + typedef std::future CreateRepositoryGroupOutcomeCallable; + typedef std::function&)> CreateRepositoryGroupAsyncHandler; + typedef Outcome CreateResourceMemberOutcome; + typedef std::future CreateResourceMemberOutcomeCallable; + typedef std::function&)> CreateResourceMemberAsyncHandler; + typedef Outcome CreateServiceAuthOutcome; + typedef std::future CreateServiceAuthOutcomeCallable; + typedef std::function&)> CreateServiceAuthAsyncHandler; + typedef Outcome CreateServiceConnectionOutcome; + typedef std::future CreateServiceConnectionOutcomeCallable; + typedef std::function&)> CreateServiceConnectionAsyncHandler; + typedef Outcome CreateServiceCredentialOutcome; + typedef std::future CreateServiceCredentialOutcomeCallable; + typedef std::function&)> CreateServiceCredentialAsyncHandler; + typedef Outcome CreateSprintOutcome; + typedef std::future CreateSprintOutcomeCallable; + typedef std::function&)> CreateSprintAsyncHandler; + typedef Outcome CreateSshKeyOutcome; + typedef std::future CreateSshKeyOutcomeCallable; + typedef std::function&)> CreateSshKeyAsyncHandler; + typedef Outcome CreateTagOutcome; + typedef std::future CreateTagOutcomeCallable; + typedef std::function&)> CreateTagAsyncHandler; + typedef Outcome CreateTestCaseOutcome; + typedef std::future CreateTestCaseOutcomeCallable; + typedef std::function&)> CreateTestCaseAsyncHandler; + typedef Outcome CreateUserKeyOutcome; + typedef std::future CreateUserKeyOutcomeCallable; + typedef std::function&)> CreateUserKeyAsyncHandler; + typedef Outcome CreateVariableGroupOutcome; + typedef std::future CreateVariableGroupOutcomeCallable; + typedef std::function&)> CreateVariableGroupAsyncHandler; + typedef Outcome CreateWorkitemOutcome; + typedef std::future CreateWorkitemOutcomeCallable; + typedef std::function&)> CreateWorkitemAsyncHandler; + typedef Outcome CreateWorkitemCommentOutcome; + typedef std::future CreateWorkitemCommentOutcomeCallable; + typedef std::function&)> CreateWorkitemCommentAsyncHandler; + typedef Outcome CreateWorkitemEstimateOutcome; + typedef std::future CreateWorkitemEstimateOutcomeCallable; + typedef std::function&)> CreateWorkitemEstimateAsyncHandler; + typedef Outcome CreateWorkitemRecordOutcome; + typedef std::future CreateWorkitemRecordOutcomeCallable; + typedef std::function&)> CreateWorkitemRecordAsyncHandler; + typedef Outcome CreateWorkitemV2Outcome; + typedef std::future CreateWorkitemV2OutcomeCallable; + typedef std::function&)> CreateWorkitemV2AsyncHandler; + typedef Outcome CreateWorkspaceOutcome; + typedef std::future CreateWorkspaceOutcomeCallable; + typedef std::function&)> CreateWorkspaceAsyncHandler; + typedef Outcome DeleteAppMemberOutcome; + typedef std::future DeleteAppMemberOutcomeCallable; + typedef std::function&)> DeleteAppMemberAsyncHandler; + typedef Outcome DeleteBranchOutcome; + typedef std::future DeleteBranchOutcomeCallable; + typedef std::function&)> DeleteBranchAsyncHandler; + typedef Outcome DeleteFileOutcome; + typedef std::future DeleteFileOutcomeCallable; + typedef std::function&)> DeleteFileAsyncHandler; + typedef Outcome DeleteFlowTagOutcome; + typedef std::future DeleteFlowTagOutcomeCallable; + typedef std::function&)> DeleteFlowTagAsyncHandler; + typedef Outcome DeleteFlowTagGroupOutcome; + typedef std::future DeleteFlowTagGroupOutcomeCallable; + typedef std::function&)> DeleteFlowTagGroupAsyncHandler; + typedef Outcome DeleteGroupMemberOutcome; + typedef std::future DeleteGroupMemberOutcomeCallable; + typedef std::function&)> DeleteGroupMemberAsyncHandler; + typedef Outcome DeleteHostGroupOutcome; + typedef std::future DeleteHostGroupOutcomeCallable; + typedef std::function&)> DeleteHostGroupAsyncHandler; + typedef Outcome DeletePipelineOutcome; + typedef std::future DeletePipelineOutcomeCallable; + typedef std::function&)> DeletePipelineAsyncHandler; + typedef Outcome DeletePipelineGroupOutcome; + typedef std::future DeletePipelineGroupOutcomeCallable; + typedef std::function&)> DeletePipelineGroupAsyncHandler; + typedef Outcome DeletePipelineRelationsOutcome; + typedef std::future DeletePipelineRelationsOutcomeCallable; + typedef std::function&)> DeletePipelineRelationsAsyncHandler; + typedef Outcome DeleteProjectOutcome; + typedef std::future DeleteProjectOutcomeCallable; + typedef std::function&)> DeleteProjectAsyncHandler; + typedef Outcome DeleteProjectLabelOutcome; + typedef std::future DeleteProjectLabelOutcomeCallable; + typedef std::function&)> DeleteProjectLabelAsyncHandler; + typedef Outcome DeleteProtectedBranchOutcome; + typedef std::future DeleteProtectedBranchOutcomeCallable; + typedef std::function&)> DeleteProtectedBranchAsyncHandler; + typedef Outcome DeletePushRuleOutcome; + typedef std::future DeletePushRuleOutcomeCallable; + typedef std::function&)> DeletePushRuleAsyncHandler; + typedef Outcome DeleteRepositoryOutcome; + typedef std::future DeleteRepositoryOutcomeCallable; + typedef std::function&)> DeleteRepositoryAsyncHandler; + typedef Outcome DeleteRepositoryGroupOutcome; + typedef std::future DeleteRepositoryGroupOutcomeCallable; + typedef std::function&)> DeleteRepositoryGroupAsyncHandler; + typedef Outcome DeleteRepositoryMemberOutcome; + typedef std::future DeleteRepositoryMemberOutcomeCallable; + typedef std::function&)> DeleteRepositoryMemberAsyncHandler; + typedef Outcome DeleteRepositoryWebhookOutcome; + typedef std::future DeleteRepositoryWebhookOutcomeCallable; + typedef std::function&)> DeleteRepositoryWebhookAsyncHandler; + typedef Outcome DeleteResourceMemberOutcome; + typedef std::future DeleteResourceMemberOutcomeCallable; + typedef std::function&)> DeleteResourceMemberAsyncHandler; + typedef Outcome DeleteTagOutcome; + typedef std::future DeleteTagOutcomeCallable; + typedef std::function&)> DeleteTagAsyncHandler; + typedef Outcome DeleteUserKeyOutcome; + typedef std::future DeleteUserKeyOutcomeCallable; + typedef std::function&)> DeleteUserKeyAsyncHandler; + typedef Outcome DeleteVariableGroupOutcome; + typedef std::future DeleteVariableGroupOutcomeCallable; + typedef std::function&)> DeleteVariableGroupAsyncHandler; + typedef Outcome DeleteWorkitemOutcome; + typedef std::future DeleteWorkitemOutcomeCallable; + typedef std::function&)> DeleteWorkitemAsyncHandler; + typedef Outcome DeleteWorkitemAllCommentOutcome; + typedef std::future DeleteWorkitemAllCommentOutcomeCallable; + typedef std::function&)> DeleteWorkitemAllCommentAsyncHandler; + typedef Outcome DeleteWorkitemCommentOutcome; + typedef std::future DeleteWorkitemCommentOutcomeCallable; + typedef std::function&)> DeleteWorkitemCommentAsyncHandler; + typedef Outcome EnableDeployKeyOutcome; + typedef std::future EnableDeployKeyOutcomeCallable; + typedef std::function&)> EnableDeployKeyAsyncHandler; + typedef Outcome FrozenWorkspaceOutcome; + typedef std::future FrozenWorkspaceOutcomeCallable; + typedef std::function&)> FrozenWorkspaceAsyncHandler; + typedef Outcome GetApplicationOutcome; + typedef std::future GetApplicationOutcomeCallable; + typedef std::function&)> GetApplicationAsyncHandler; + typedef Outcome GetBranchInfoOutcome; + typedef std::future GetBranchInfoOutcomeCallable; + typedef std::function&)> GetBranchInfoAsyncHandler; + typedef Outcome GetCheckRunOutcome; + typedef std::future GetCheckRunOutcomeCallable; + typedef std::function&)> GetCheckRunAsyncHandler; + typedef Outcome GetCodeupOrganizationOutcome; + typedef std::future GetCodeupOrganizationOutcomeCallable; + typedef std::function&)> GetCodeupOrganizationAsyncHandler; + typedef Outcome GetCompareDetailOutcome; + typedef std::future GetCompareDetailOutcomeCallable; + typedef std::function&)> GetCompareDetailAsyncHandler; + typedef Outcome GetCustomFieldOptionOutcome; + typedef std::future GetCustomFieldOptionOutcomeCallable; + typedef std::function&)> GetCustomFieldOptionAsyncHandler; + typedef Outcome GetFileBlobsOutcome; + typedef std::future GetFileBlobsOutcomeCallable; + typedef std::function&)> GetFileBlobsAsyncHandler; + typedef Outcome GetFileLastCommitOutcome; + typedef std::future GetFileLastCommitOutcomeCallable; + typedef std::function&)> GetFileLastCommitAsyncHandler; + typedef Outcome GetFlowTagGroupOutcome; + typedef std::future GetFlowTagGroupOutcomeCallable; + typedef std::function&)> GetFlowTagGroupAsyncHandler; + typedef Outcome GetGroupByPathOutcome; + typedef std::future GetGroupByPathOutcomeCallable; + typedef std::function&)> GetGroupByPathAsyncHandler; + typedef Outcome GetGroupDetailOutcome; + typedef std::future GetGroupDetailOutcomeCallable; + typedef std::function&)> GetGroupDetailAsyncHandler; + typedef Outcome GetHostGroupOutcome; + typedef std::future GetHostGroupOutcomeCallable; + typedef std::function&)> GetHostGroupAsyncHandler; + typedef Outcome GetMergeRequestOutcome; + typedef std::future GetMergeRequestOutcomeCallable; + typedef std::function&)> GetMergeRequestAsyncHandler; + typedef Outcome GetMergeRequestChangeTreeOutcome; + typedef std::future GetMergeRequestChangeTreeOutcomeCallable; + typedef std::function&)> GetMergeRequestChangeTreeAsyncHandler; + typedef Outcome GetOrganizationMemberOutcome; + typedef std::future GetOrganizationMemberOutcomeCallable; + typedef std::function&)> GetOrganizationMemberAsyncHandler; + typedef Outcome GetPipelineOutcome; + typedef std::future GetPipelineOutcomeCallable; + typedef std::function&)> GetPipelineAsyncHandler; + typedef Outcome GetPipelineArtifactUrlOutcome; + typedef std::future GetPipelineArtifactUrlOutcomeCallable; + typedef std::function&)> GetPipelineArtifactUrlAsyncHandler; + typedef Outcome GetPipelineEmasArtifactUrlOutcome; + typedef std::future GetPipelineEmasArtifactUrlOutcomeCallable; + typedef std::function&)> GetPipelineEmasArtifactUrlAsyncHandler; + typedef Outcome GetPipelineGroupOutcome; + typedef std::future GetPipelineGroupOutcomeCallable; + typedef std::function&)> GetPipelineGroupAsyncHandler; + typedef Outcome GetPipelineRunOutcome; + typedef std::future GetPipelineRunOutcomeCallable; + typedef std::function&)> GetPipelineRunAsyncHandler; + typedef Outcome GetPipelineScanReportUrlOutcome; + typedef std::future GetPipelineScanReportUrlOutcomeCallable; + typedef std::function&)> GetPipelineScanReportUrlAsyncHandler; + typedef Outcome GetProjectInfoOutcome; + typedef std::future GetProjectInfoOutcomeCallable; + typedef std::function&)> GetProjectInfoAsyncHandler; + typedef Outcome GetProjectMemberOutcome; + typedef std::future GetProjectMemberOutcomeCallable; + typedef std::function&)> GetProjectMemberAsyncHandler; + typedef Outcome GetPushRuleOutcome; + typedef std::future GetPushRuleOutcomeCallable; + typedef std::function&)> GetPushRuleAsyncHandler; + typedef Outcome GetRepositoryOutcome; + typedef std::future GetRepositoryOutcomeCallable; + typedef std::function&)> GetRepositoryAsyncHandler; + typedef Outcome GetRepositoryCommitOutcome; + typedef std::future GetRepositoryCommitOutcomeCallable; + typedef std::function&)> GetRepositoryCommitAsyncHandler; + typedef Outcome GetRepositoryTagOutcome; + typedef std::future GetRepositoryTagOutcomeCallable; + typedef std::function&)> GetRepositoryTagAsyncHandler; + typedef Outcome GetSearchCodePreviewOutcome; + typedef std::future GetSearchCodePreviewOutcomeCallable; + typedef std::function&)> GetSearchCodePreviewAsyncHandler; + typedef Outcome GetSprintInfoOutcome; + typedef std::future GetSprintInfoOutcomeCallable; + typedef std::function&)> GetSprintInfoAsyncHandler; + typedef Outcome GetTestResultListOutcome; + typedef std::future GetTestResultListOutcomeCallable; + typedef std::function&)> GetTestResultListAsyncHandler; + typedef Outcome GetTestcaseListOutcome; + typedef std::future GetTestcaseListOutcomeCallable; + typedef std::function&)> GetTestcaseListAsyncHandler; + typedef Outcome GetUserInfoOutcome; + typedef std::future GetUserInfoOutcomeCallable; + typedef std::function&)> GetUserInfoAsyncHandler; + typedef Outcome GetVMDeployOrderOutcome; + typedef std::future GetVMDeployOrderOutcomeCallable; + typedef std::function&)> GetVMDeployOrderAsyncHandler; + typedef Outcome GetVariableGroupOutcome; + typedef std::future GetVariableGroupOutcomeCallable; + typedef std::function&)> GetVariableGroupAsyncHandler; + typedef Outcome GetWorkItemActivityOutcome; + typedef std::future GetWorkItemActivityOutcomeCallable; + typedef std::function&)> GetWorkItemActivityAsyncHandler; + typedef Outcome GetWorkItemInfoOutcome; + typedef std::future GetWorkItemInfoOutcomeCallable; + typedef std::function&)> GetWorkItemInfoAsyncHandler; + typedef Outcome GetWorkItemWorkFlowInfoOutcome; + typedef std::future GetWorkItemWorkFlowInfoOutcomeCallable; + typedef std::function&)> GetWorkItemWorkFlowInfoAsyncHandler; + typedef Outcome GetWorkitemAttachmentCreatemetaOutcome; + typedef std::future GetWorkitemAttachmentCreatemetaOutcomeCallable; + typedef std::function&)> GetWorkitemAttachmentCreatemetaAsyncHandler; + typedef Outcome GetWorkitemCommentListOutcome; + typedef std::future GetWorkitemCommentListOutcomeCallable; + typedef std::function&)> GetWorkitemCommentListAsyncHandler; + typedef Outcome GetWorkitemFileOutcome; + typedef std::future GetWorkitemFileOutcomeCallable; + typedef std::function&)> GetWorkitemFileAsyncHandler; + typedef Outcome GetWorkitemRelationsOutcome; + typedef std::future GetWorkitemRelationsOutcomeCallable; + typedef std::function&)> GetWorkitemRelationsAsyncHandler; + typedef Outcome GetWorkitemTimeTypeListOutcome; + typedef std::future GetWorkitemTimeTypeListOutcomeCallable; + typedef std::function&)> GetWorkitemTimeTypeListAsyncHandler; + typedef Outcome GetWorkspaceOutcome; + typedef std::future GetWorkspaceOutcomeCallable; + typedef std::function&)> GetWorkspaceAsyncHandler; + typedef Outcome JoinPipelineGroupOutcome; + typedef std::future JoinPipelineGroupOutcomeCallable; + typedef std::function&)> JoinPipelineGroupAsyncHandler; + typedef Outcome LinkMergeRequestLabelOutcome; + typedef std::future LinkMergeRequestLabelOutcomeCallable; + typedef std::function&)> LinkMergeRequestLabelAsyncHandler; + typedef Outcome ListApplicationMembersOutcome; + typedef std::future ListApplicationMembersOutcomeCallable; + typedef std::function&)> ListApplicationMembersAsyncHandler; + typedef Outcome ListApplicationsOutcome; + typedef std::future ListApplicationsOutcomeCallable; + typedef std::function&)> ListApplicationsAsyncHandler; + typedef Outcome ListCheckRunsOutcome; + typedef std::future ListCheckRunsOutcomeCallable; + typedef std::function&)> ListCheckRunsAsyncHandler; + typedef Outcome ListCommitStatusesOutcome; + typedef std::future ListCommitStatusesOutcomeCallable; + typedef std::function&)> ListCommitStatusesAsyncHandler; + typedef Outcome ListFlowTagGroupsOutcome; + typedef std::future ListFlowTagGroupsOutcomeCallable; + typedef std::function&)> ListFlowTagGroupsAsyncHandler; + typedef Outcome ListGroupMemberOutcome; + typedef std::future ListGroupMemberOutcomeCallable; + typedef std::function&)> ListGroupMemberAsyncHandler; + typedef Outcome ListGroupRepositoriesOutcome; + typedef std::future ListGroupRepositoriesOutcomeCallable; + typedef std::function&)> ListGroupRepositoriesAsyncHandler; + typedef Outcome ListHostGroupsOutcome; + typedef std::future ListHostGroupsOutcomeCallable; + typedef std::function&)> ListHostGroupsAsyncHandler; + typedef Outcome ListJoinedOrganizationsOutcome; + typedef std::future ListJoinedOrganizationsOutcomeCallable; + typedef std::function&)> ListJoinedOrganizationsAsyncHandler; + typedef Outcome ListMergeRequestCommentsOutcome; + typedef std::future ListMergeRequestCommentsOutcomeCallable; + typedef std::function&)> ListMergeRequestCommentsAsyncHandler; + typedef Outcome ListMergeRequestFilesReadsOutcome; + typedef std::future ListMergeRequestFilesReadsOutcomeCallable; + typedef std::function&)> ListMergeRequestFilesReadsAsyncHandler; + typedef Outcome ListMergeRequestLabelsOutcome; + typedef std::future ListMergeRequestLabelsOutcomeCallable; + typedef std::function&)> ListMergeRequestLabelsAsyncHandler; + typedef Outcome ListMergeRequestPatchSetsOutcome; + typedef std::future ListMergeRequestPatchSetsOutcomeCallable; + typedef std::function&)> ListMergeRequestPatchSetsAsyncHandler; + typedef Outcome ListMergeRequestsOutcome; + typedef std::future ListMergeRequestsOutcomeCallable; + typedef std::function&)> ListMergeRequestsAsyncHandler; + typedef Outcome ListOrganizationMembersOutcome; + typedef std::future ListOrganizationMembersOutcomeCallable; + typedef std::function&)> ListOrganizationMembersAsyncHandler; + typedef Outcome ListOrganizationsOutcome; + typedef std::future ListOrganizationsOutcomeCallable; + typedef std::function&)> ListOrganizationsAsyncHandler; + typedef Outcome ListPipelineGroupPipelinesOutcome; + typedef std::future ListPipelineGroupPipelinesOutcomeCallable; + typedef std::function&)> ListPipelineGroupPipelinesAsyncHandler; + typedef Outcome ListPipelineGroupsOutcome; + typedef std::future ListPipelineGroupsOutcomeCallable; + typedef std::function&)> ListPipelineGroupsAsyncHandler; + typedef Outcome ListPipelineJobHistorysOutcome; + typedef std::future ListPipelineJobHistorysOutcomeCallable; + typedef std::function&)> ListPipelineJobHistorysAsyncHandler; + typedef Outcome ListPipelineJobsOutcome; + typedef std::future ListPipelineJobsOutcomeCallable; + typedef std::function&)> ListPipelineJobsAsyncHandler; + typedef Outcome ListPipelineRelationsOutcome; + typedef std::future ListPipelineRelationsOutcomeCallable; + typedef std::function&)> ListPipelineRelationsAsyncHandler; + typedef Outcome ListPipelineRunsOutcome; + typedef std::future ListPipelineRunsOutcomeCallable; + typedef std::function&)> ListPipelineRunsAsyncHandler; + typedef Outcome ListPipelinesOutcome; + typedef std::future ListPipelinesOutcomeCallable; + typedef std::function&)> ListPipelinesAsyncHandler; + typedef Outcome ListProjectLabelsOutcome; + typedef std::future ListProjectLabelsOutcomeCallable; + typedef std::function&)> ListProjectLabelsAsyncHandler; + typedef Outcome ListProjectMembersOutcome; + typedef std::future ListProjectMembersOutcomeCallable; + typedef std::function&)> ListProjectMembersAsyncHandler; + typedef Outcome ListProjectTemplatesOutcome; + typedef std::future ListProjectTemplatesOutcomeCallable; + typedef std::function&)> ListProjectTemplatesAsyncHandler; + typedef Outcome ListProjectWorkitemTypesOutcome; + typedef std::future ListProjectWorkitemTypesOutcomeCallable; + typedef std::function&)> ListProjectWorkitemTypesAsyncHandler; + typedef Outcome ListProjectsOutcome; + typedef std::future ListProjectsOutcomeCallable; + typedef std::function&)> ListProjectsAsyncHandler; + typedef Outcome ListProtectedBranchesOutcome; + typedef std::future ListProtectedBranchesOutcomeCallable; + typedef std::function&)> ListProtectedBranchesAsyncHandler; + typedef Outcome ListPushRulesOutcome; + typedef std::future ListPushRulesOutcomeCallable; + typedef std::function&)> ListPushRulesAsyncHandler; + typedef Outcome ListRepositoriesOutcome; + typedef std::future ListRepositoriesOutcomeCallable; + typedef std::function&)> ListRepositoriesAsyncHandler; + typedef Outcome ListRepositoryBranchesOutcome; + typedef std::future ListRepositoryBranchesOutcomeCallable; + typedef std::function&)> ListRepositoryBranchesAsyncHandler; + typedef Outcome ListRepositoryCommitDiffOutcome; + typedef std::future ListRepositoryCommitDiffOutcomeCallable; + typedef std::function&)> ListRepositoryCommitDiffAsyncHandler; + typedef Outcome ListRepositoryCommitsOutcome; + typedef std::future ListRepositoryCommitsOutcomeCallable; + typedef std::function&)> ListRepositoryCommitsAsyncHandler; + typedef Outcome ListRepositoryGroupsOutcome; + typedef std::future ListRepositoryGroupsOutcomeCallable; + typedef std::function&)> ListRepositoryGroupsAsyncHandler; + typedef Outcome ListRepositoryMemberWithInheritedOutcome; + typedef std::future ListRepositoryMemberWithInheritedOutcomeCallable; + typedef std::function&)> ListRepositoryMemberWithInheritedAsyncHandler; + typedef Outcome ListRepositoryTagsOutcome; + typedef std::future ListRepositoryTagsOutcomeCallable; + typedef std::function&)> ListRepositoryTagsAsyncHandler; + typedef Outcome ListRepositoryTreeOutcome; + typedef std::future ListRepositoryTreeOutcomeCallable; + typedef std::function&)> ListRepositoryTreeAsyncHandler; + typedef Outcome ListRepositoryWebhookOutcome; + typedef std::future ListRepositoryWebhookOutcomeCallable; + typedef std::function&)> ListRepositoryWebhookAsyncHandler; + typedef Outcome ListResourceMembersOutcome; + typedef std::future ListResourceMembersOutcomeCallable; + typedef std::function&)> ListResourceMembersAsyncHandler; + typedef Outcome ListSearchCommitOutcome; + typedef std::future ListSearchCommitOutcomeCallable; + typedef std::function&)> ListSearchCommitAsyncHandler; + typedef Outcome ListSearchRepositoryOutcome; + typedef std::future ListSearchRepositoryOutcomeCallable; + typedef std::function&)> ListSearchRepositoryAsyncHandler; + typedef Outcome ListSearchSourceCodeOutcome; + typedef std::future ListSearchSourceCodeOutcomeCallable; + typedef std::function&)> ListSearchSourceCodeAsyncHandler; + typedef Outcome ListServiceAuthsOutcome; + typedef std::future ListServiceAuthsOutcomeCallable; + typedef std::function&)> ListServiceAuthsAsyncHandler; + typedef Outcome ListServiceConnectionsOutcome; + typedef std::future ListServiceConnectionsOutcomeCallable; + typedef std::function&)> ListServiceConnectionsAsyncHandler; + typedef Outcome ListServiceCredentialsOutcome; + typedef std::future ListServiceCredentialsOutcomeCallable; + typedef std::function&)> ListServiceCredentialsAsyncHandler; + typedef Outcome ListSprintsOutcome; + typedef std::future ListSprintsOutcomeCallable; + typedef std::function&)> ListSprintsAsyncHandler; + typedef Outcome ListTestCaseFieldsOutcome; + typedef std::future ListTestCaseFieldsOutcomeCallable; + typedef std::function&)> ListTestCaseFieldsAsyncHandler; + typedef Outcome ListUserDrawRecordByPkOutcome; + typedef std::future ListUserDrawRecordByPkOutcomeCallable; + typedef std::function&)> ListUserDrawRecordByPkAsyncHandler; + typedef Outcome ListUserKeysOutcome; + typedef std::future ListUserKeysOutcomeCallable; + typedef std::function&)> ListUserKeysAsyncHandler; + typedef Outcome ListUserResourcesOutcome; + typedef std::future ListUserResourcesOutcomeCallable; + typedef std::function&)> ListUserResourcesAsyncHandler; + typedef Outcome ListVariableGroupsOutcome; + typedef std::future ListVariableGroupsOutcomeCallable; + typedef std::function&)> ListVariableGroupsAsyncHandler; + typedef Outcome ListWorkItemAllFieldsOutcome; + typedef std::future ListWorkItemAllFieldsOutcomeCallable; + typedef std::function&)> ListWorkItemAllFieldsAsyncHandler; + typedef Outcome ListWorkItemWorkFlowStatusOutcome; + typedef std::future ListWorkItemWorkFlowStatusOutcomeCallable; + typedef std::function&)> ListWorkItemWorkFlowStatusAsyncHandler; + typedef Outcome ListWorkitemAttachmentsOutcome; + typedef std::future ListWorkitemAttachmentsOutcomeCallable; + typedef std::function&)> ListWorkitemAttachmentsAsyncHandler; + typedef Outcome ListWorkitemEstimateOutcome; + typedef std::future ListWorkitemEstimateOutcomeCallable; + typedef std::function&)> ListWorkitemEstimateAsyncHandler; + typedef Outcome ListWorkitemTimeOutcome; + typedef std::future ListWorkitemTimeOutcomeCallable; + typedef std::function&)> ListWorkitemTimeAsyncHandler; + typedef Outcome ListWorkitemsOutcome; + typedef std::future ListWorkitemsOutcomeCallable; + typedef std::function&)> ListWorkitemsAsyncHandler; + typedef Outcome ListWorkspacesOutcome; + typedef std::future ListWorkspacesOutcomeCallable; + typedef std::function&)> ListWorkspacesAsyncHandler; + typedef Outcome LogPipelineJobRunOutcome; + typedef std::future LogPipelineJobRunOutcomeCallable; + typedef std::function&)> LogPipelineJobRunAsyncHandler; + typedef Outcome LogVMDeployMachineOutcome; + typedef std::future LogVMDeployMachineOutcomeCallable; + typedef std::function&)> LogVMDeployMachineAsyncHandler; + typedef Outcome MergeMergeRequestOutcome; + typedef std::future MergeMergeRequestOutcomeCallable; + typedef std::function&)> MergeMergeRequestAsyncHandler; + typedef Outcome PassPipelineValidateOutcome; + typedef std::future PassPipelineValidateOutcomeCallable; + typedef std::function&)> PassPipelineValidateAsyncHandler; + typedef Outcome RefusePipelineValidateOutcome; + typedef std::future RefusePipelineValidateOutcomeCallable; + typedef std::function&)> RefusePipelineValidateAsyncHandler; + typedef Outcome ReleaseWorkspaceOutcome; + typedef std::future ReleaseWorkspaceOutcomeCallable; + typedef std::function&)> ReleaseWorkspaceAsyncHandler; + typedef Outcome ReopenMergeRequestOutcome; + typedef std::future ReopenMergeRequestOutcomeCallable; + typedef std::function&)> ReopenMergeRequestAsyncHandler; + typedef Outcome ResetSshKeyOutcome; + typedef std::future ResetSshKeyOutcomeCallable; + typedef std::function&)> ResetSshKeyAsyncHandler; + typedef Outcome ResumeVMDeployOrderOutcome; + typedef std::future ResumeVMDeployOrderOutcomeCallable; + typedef std::function&)> ResumeVMDeployOrderAsyncHandler; + typedef Outcome RetryPipelineJobRunOutcome; + typedef std::future RetryPipelineJobRunOutcomeCallable; + typedef std::function&)> RetryPipelineJobRunAsyncHandler; + typedef Outcome RetryVMDeployMachineOutcome; + typedef std::future RetryVMDeployMachineOutcomeCallable; + typedef std::function&)> RetryVMDeployMachineAsyncHandler; + typedef Outcome ReviewMergeRequestOutcome; + typedef std::future ReviewMergeRequestOutcomeCallable; + typedef std::function&)> ReviewMergeRequestAsyncHandler; + typedef Outcome SkipPipelineJobRunOutcome; + typedef std::future SkipPipelineJobRunOutcomeCallable; + typedef std::function&)> SkipPipelineJobRunAsyncHandler; + typedef Outcome SkipVMDeployMachineOutcome; + typedef std::future SkipVMDeployMachineOutcomeCallable; + typedef std::function&)> SkipVMDeployMachineAsyncHandler; + typedef Outcome StartPipelineRunOutcome; + typedef std::future StartPipelineRunOutcomeCallable; + typedef std::function&)> StartPipelineRunAsyncHandler; + typedef Outcome StopPipelineJobRunOutcome; + typedef std::future StopPipelineJobRunOutcomeCallable; + typedef std::function&)> StopPipelineJobRunAsyncHandler; + typedef Outcome StopPipelineRunOutcome; + typedef std::future StopPipelineRunOutcomeCallable; + typedef std::function&)> StopPipelineRunAsyncHandler; + typedef Outcome StopVMDeployOrderOutcome; + typedef std::future StopVMDeployOrderOutcomeCallable; + typedef std::function&)> StopVMDeployOrderAsyncHandler; + typedef Outcome TransferRepositoryOutcome; + typedef std::future TransferRepositoryOutcomeCallable; + typedef std::function&)> TransferRepositoryAsyncHandler; + typedef Outcome TriggerRepositoryMirrorSyncOutcome; + typedef std::future TriggerRepositoryMirrorSyncOutcomeCallable; + typedef std::function&)> TriggerRepositoryMirrorSyncAsyncHandler; + typedef Outcome UpdateAppMemberOutcome; + typedef std::future UpdateAppMemberOutcomeCallable; + typedef std::function&)> UpdateAppMemberAsyncHandler; + typedef Outcome UpdateApplicationOutcome; + typedef std::future UpdateApplicationOutcomeCallable; + typedef std::function&)> UpdateApplicationAsyncHandler; + typedef Outcome UpdateCheckRunOutcome; + typedef std::future UpdateCheckRunOutcomeCallable; + typedef std::function&)> UpdateCheckRunAsyncHandler; + typedef Outcome UpdateFileOutcome; + typedef std::future UpdateFileOutcomeCallable; + typedef std::function&)> UpdateFileAsyncHandler; + typedef Outcome UpdateFlowTagOutcome; + typedef std::future UpdateFlowTagOutcomeCallable; + typedef std::function&)> UpdateFlowTagAsyncHandler; + typedef Outcome UpdateFlowTagGroupOutcome; + typedef std::future UpdateFlowTagGroupOutcomeCallable; + typedef std::function&)> UpdateFlowTagGroupAsyncHandler; + typedef Outcome UpdateGroupOutcome; + typedef std::future UpdateGroupOutcomeCallable; + typedef std::function&)> UpdateGroupAsyncHandler; + typedef Outcome UpdateGroupMemberOutcome; + typedef std::future UpdateGroupMemberOutcomeCallable; + typedef std::function&)> UpdateGroupMemberAsyncHandler; + typedef Outcome UpdateHostGroupOutcome; + typedef std::future UpdateHostGroupOutcomeCallable; + typedef std::function&)> UpdateHostGroupAsyncHandler; + typedef Outcome UpdateMergeRequestOutcome; + typedef std::future UpdateMergeRequestOutcomeCallable; + typedef std::function&)> UpdateMergeRequestAsyncHandler; + typedef Outcome UpdateMergeRequestPersonnelOutcome; + typedef std::future UpdateMergeRequestPersonnelOutcomeCallable; + typedef std::function&)> UpdateMergeRequestPersonnelAsyncHandler; + typedef Outcome UpdatePipelineOutcome; + typedef std::future UpdatePipelineOutcomeCallable; + typedef std::function&)> UpdatePipelineAsyncHandler; + typedef Outcome UpdatePipelineBaseInfoOutcome; + typedef std::future UpdatePipelineBaseInfoOutcomeCallable; + typedef std::function&)> UpdatePipelineBaseInfoAsyncHandler; + typedef Outcome UpdatePipelineGroupOutcome; + typedef std::future UpdatePipelineGroupOutcomeCallable; + typedef std::function&)> UpdatePipelineGroupAsyncHandler; + typedef Outcome UpdateProjectFieldOutcome; + typedef std::future UpdateProjectFieldOutcomeCallable; + typedef std::function&)> UpdateProjectFieldAsyncHandler; + typedef Outcome UpdateProjectLabelOutcome; + typedef std::future UpdateProjectLabelOutcomeCallable; + typedef std::function&)> UpdateProjectLabelAsyncHandler; + typedef Outcome UpdateProjectMemberOutcome; + typedef std::future UpdateProjectMemberOutcomeCallable; + typedef std::function&)> UpdateProjectMemberAsyncHandler; + typedef Outcome UpdateProtectedBranchesOutcome; + typedef std::future UpdateProtectedBranchesOutcomeCallable; + typedef std::function&)> UpdateProtectedBranchesAsyncHandler; + typedef Outcome UpdatePushReviewOnOffOutcome; + typedef std::future UpdatePushReviewOnOffOutcomeCallable; + typedef std::function&)> UpdatePushReviewOnOffAsyncHandler; + typedef Outcome UpdatePushRuleOutcome; + typedef std::future UpdatePushRuleOutcomeCallable; + typedef std::function&)> UpdatePushRuleAsyncHandler; + typedef Outcome UpdateRepositoryOutcome; + typedef std::future UpdateRepositoryOutcomeCallable; + typedef std::function&)> UpdateRepositoryAsyncHandler; + typedef Outcome UpdateRepositoryMemberOutcome; + typedef std::future UpdateRepositoryMemberOutcomeCallable; + typedef std::function&)> UpdateRepositoryMemberAsyncHandler; + typedef Outcome UpdateResourceMemberOutcome; + typedef std::future UpdateResourceMemberOutcomeCallable; + typedef std::function&)> UpdateResourceMemberAsyncHandler; + typedef Outcome UpdateTestCaseOutcome; + typedef std::future UpdateTestCaseOutcomeCallable; + typedef std::function&)> UpdateTestCaseAsyncHandler; + typedef Outcome UpdateTestResultOutcome; + typedef std::future UpdateTestResultOutcomeCallable; + typedef std::function&)> UpdateTestResultAsyncHandler; + typedef Outcome UpdateVariableGroupOutcome; + typedef std::future UpdateVariableGroupOutcomeCallable; + typedef std::function&)> UpdateVariableGroupAsyncHandler; + typedef Outcome UpdateWorkItemOutcome; + typedef std::future UpdateWorkItemOutcomeCallable; + typedef std::function&)> UpdateWorkItemAsyncHandler; + typedef Outcome UpdateWorkitemCommentOutcome; + typedef std::future UpdateWorkitemCommentOutcomeCallable; + typedef std::function&)> UpdateWorkitemCommentAsyncHandler; + typedef Outcome UpdateWorkitemFieldOutcome; + typedef std::future UpdateWorkitemFieldOutcomeCallable; + typedef std::function&)> UpdateWorkitemFieldAsyncHandler; + typedef Outcome WorkitemAttachmentCreateOutcome; + typedef std::future WorkitemAttachmentCreateOutcomeCallable; + typedef std::function&)> WorkitemAttachmentCreateAsyncHandler; + + DevopsClient(const Credentials &credentials, const ClientConfiguration &configuration); + DevopsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + DevopsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~DevopsClient(); + AddGroupMemberOutcome addGroupMember(const Model::AddGroupMemberRequest &request)const; + void addGroupMemberAsync(const Model::AddGroupMemberRequest& request, const AddGroupMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddGroupMemberOutcomeCallable addGroupMemberCallable(const Model::AddGroupMemberRequest& request) const; + AddPipelineRelationsOutcome addPipelineRelations(const Model::AddPipelineRelationsRequest &request)const; + void addPipelineRelationsAsync(const Model::AddPipelineRelationsRequest& request, const AddPipelineRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddPipelineRelationsOutcomeCallable addPipelineRelationsCallable(const Model::AddPipelineRelationsRequest& request) const; + AddRepositoryMemberOutcome addRepositoryMember(const Model::AddRepositoryMemberRequest &request)const; + void addRepositoryMemberAsync(const Model::AddRepositoryMemberRequest& request, const AddRepositoryMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddRepositoryMemberOutcomeCallable addRepositoryMemberCallable(const Model::AddRepositoryMemberRequest& request) const; + AddWebhookOutcome addWebhook(const Model::AddWebhookRequest &request)const; + void addWebhookAsync(const Model::AddWebhookRequest& request, const AddWebhookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddWebhookOutcomeCallable addWebhookCallable(const Model::AddWebhookRequest& request) const; + CloseMergeRequestOutcome closeMergeRequest(const Model::CloseMergeRequestRequest &request)const; + void closeMergeRequestAsync(const Model::CloseMergeRequestRequest& request, const CloseMergeRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloseMergeRequestOutcomeCallable closeMergeRequestCallable(const Model::CloseMergeRequestRequest& request) const; + CreateAppMembersOutcome createAppMembers(const Model::CreateAppMembersRequest &request)const; + void createAppMembersAsync(const Model::CreateAppMembersRequest& request, const CreateAppMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAppMembersOutcomeCallable createAppMembersCallable(const Model::CreateAppMembersRequest& request) const; + CreateBranchOutcome createBranch(const Model::CreateBranchRequest &request)const; + void createBranchAsync(const Model::CreateBranchRequest& request, const CreateBranchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBranchOutcomeCallable createBranchCallable(const Model::CreateBranchRequest& request) const; + CreateCheckRunOutcome createCheckRun(const Model::CreateCheckRunRequest &request)const; + void createCheckRunAsync(const Model::CreateCheckRunRequest& request, const CreateCheckRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCheckRunOutcomeCallable createCheckRunCallable(const Model::CreateCheckRunRequest& request) const; + CreateCommentOutcome createComment(const Model::CreateCommentRequest &request)const; + void createCommentAsync(const Model::CreateCommentRequest& request, const CreateCommentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCommentOutcomeCallable createCommentCallable(const Model::CreateCommentRequest& request) const; + CreateCommitStatusOutcome createCommitStatus(const Model::CreateCommitStatusRequest &request)const; + void createCommitStatusAsync(const Model::CreateCommitStatusRequest& request, const CreateCommitStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCommitStatusOutcomeCallable createCommitStatusCallable(const Model::CreateCommitStatusRequest& request) const; + CreateCommitWithMultipleFilesOutcome createCommitWithMultipleFiles(const Model::CreateCommitWithMultipleFilesRequest &request)const; + void createCommitWithMultipleFilesAsync(const Model::CreateCommitWithMultipleFilesRequest& request, const CreateCommitWithMultipleFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCommitWithMultipleFilesOutcomeCallable createCommitWithMultipleFilesCallable(const Model::CreateCommitWithMultipleFilesRequest& request) const; + CreateDeployKeyOutcome createDeployKey(const Model::CreateDeployKeyRequest &request)const; + void createDeployKeyAsync(const Model::CreateDeployKeyRequest& request, const CreateDeployKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDeployKeyOutcomeCallable createDeployKeyCallable(const Model::CreateDeployKeyRequest& request) const; + CreateFileOutcome createFile(const Model::CreateFileRequest &request)const; + void createFileAsync(const Model::CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFileOutcomeCallable createFileCallable(const Model::CreateFileRequest& request) const; + CreateFlowTagOutcome createFlowTag(const Model::CreateFlowTagRequest &request)const; + void createFlowTagAsync(const Model::CreateFlowTagRequest& request, const CreateFlowTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFlowTagOutcomeCallable createFlowTagCallable(const Model::CreateFlowTagRequest& request) const; + CreateFlowTagGroupOutcome createFlowTagGroup(const Model::CreateFlowTagGroupRequest &request)const; + void createFlowTagGroupAsync(const Model::CreateFlowTagGroupRequest& request, const CreateFlowTagGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFlowTagGroupOutcomeCallable createFlowTagGroupCallable(const Model::CreateFlowTagGroupRequest& request) const; + CreateHostGroupOutcome createHostGroup(const Model::CreateHostGroupRequest &request)const; + void createHostGroupAsync(const Model::CreateHostGroupRequest& request, const CreateHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHostGroupOutcomeCallable createHostGroupCallable(const Model::CreateHostGroupRequest& request) const; + CreateMergeRequestOutcome createMergeRequest(const Model::CreateMergeRequestRequest &request)const; + void createMergeRequestAsync(const Model::CreateMergeRequestRequest& request, const CreateMergeRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMergeRequestOutcomeCallable createMergeRequestCallable(const Model::CreateMergeRequestRequest& request) const; + CreateOAuthTokenOutcome createOAuthToken(const Model::CreateOAuthTokenRequest &request)const; + void createOAuthTokenAsync(const Model::CreateOAuthTokenRequest& request, const CreateOAuthTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOAuthTokenOutcomeCallable createOAuthTokenCallable(const Model::CreateOAuthTokenRequest& request) const; + CreatePipelineOutcome createPipeline(const Model::CreatePipelineRequest &request)const; + void createPipelineAsync(const Model::CreatePipelineRequest& request, const CreatePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePipelineOutcomeCallable createPipelineCallable(const Model::CreatePipelineRequest& request) const; + CreatePipelineGroupOutcome createPipelineGroup(const Model::CreatePipelineGroupRequest &request)const; + void createPipelineGroupAsync(const Model::CreatePipelineGroupRequest& request, const CreatePipelineGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePipelineGroupOutcomeCallable createPipelineGroupCallable(const Model::CreatePipelineGroupRequest& request) const; + CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const; + void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const; + CreateProjectLabelOutcome createProjectLabel(const Model::CreateProjectLabelRequest &request)const; + void createProjectLabelAsync(const Model::CreateProjectLabelRequest& request, const CreateProjectLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProjectLabelOutcomeCallable createProjectLabelCallable(const Model::CreateProjectLabelRequest& request) const; + CreateProtectdBranchOutcome createProtectdBranch(const Model::CreateProtectdBranchRequest &request)const; + void createProtectdBranchAsync(const Model::CreateProtectdBranchRequest& request, const CreateProtectdBranchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProtectdBranchOutcomeCallable createProtectdBranchCallable(const Model::CreateProtectdBranchRequest& request) const; + CreatePushRuleOutcome createPushRule(const Model::CreatePushRuleRequest &request)const; + void createPushRuleAsync(const Model::CreatePushRuleRequest& request, const CreatePushRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePushRuleOutcomeCallable createPushRuleCallable(const Model::CreatePushRuleRequest& request) const; + CreateRepositoryOutcome createRepository(const Model::CreateRepositoryRequest &request)const; + void createRepositoryAsync(const Model::CreateRepositoryRequest& request, const CreateRepositoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRepositoryOutcomeCallable createRepositoryCallable(const Model::CreateRepositoryRequest& request) const; + CreateRepositoryGroupOutcome createRepositoryGroup(const Model::CreateRepositoryGroupRequest &request)const; + void createRepositoryGroupAsync(const Model::CreateRepositoryGroupRequest& request, const CreateRepositoryGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRepositoryGroupOutcomeCallable createRepositoryGroupCallable(const Model::CreateRepositoryGroupRequest& request) const; + CreateResourceMemberOutcome createResourceMember(const Model::CreateResourceMemberRequest &request)const; + void createResourceMemberAsync(const Model::CreateResourceMemberRequest& request, const CreateResourceMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateResourceMemberOutcomeCallable createResourceMemberCallable(const Model::CreateResourceMemberRequest& request) const; + CreateServiceAuthOutcome createServiceAuth(const Model::CreateServiceAuthRequest &request)const; + void createServiceAuthAsync(const Model::CreateServiceAuthRequest& request, const CreateServiceAuthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceAuthOutcomeCallable createServiceAuthCallable(const Model::CreateServiceAuthRequest& request) const; + CreateServiceConnectionOutcome createServiceConnection(const Model::CreateServiceConnectionRequest &request)const; + void createServiceConnectionAsync(const Model::CreateServiceConnectionRequest& request, const CreateServiceConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceConnectionOutcomeCallable createServiceConnectionCallable(const Model::CreateServiceConnectionRequest& request) const; + CreateServiceCredentialOutcome createServiceCredential(const Model::CreateServiceCredentialRequest &request)const; + void createServiceCredentialAsync(const Model::CreateServiceCredentialRequest& request, const CreateServiceCredentialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServiceCredentialOutcomeCallable createServiceCredentialCallable(const Model::CreateServiceCredentialRequest& request) const; + CreateSprintOutcome createSprint(const Model::CreateSprintRequest &request)const; + void createSprintAsync(const Model::CreateSprintRequest& request, const CreateSprintAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSprintOutcomeCallable createSprintCallable(const Model::CreateSprintRequest& request) const; + CreateSshKeyOutcome createSshKey(const Model::CreateSshKeyRequest &request)const; + void createSshKeyAsync(const Model::CreateSshKeyRequest& request, const CreateSshKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSshKeyOutcomeCallable createSshKeyCallable(const Model::CreateSshKeyRequest& request) const; + CreateTagOutcome createTag(const Model::CreateTagRequest &request)const; + void createTagAsync(const Model::CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagOutcomeCallable createTagCallable(const Model::CreateTagRequest& request) const; + CreateTestCaseOutcome createTestCase(const Model::CreateTestCaseRequest &request)const; + void createTestCaseAsync(const Model::CreateTestCaseRequest& request, const CreateTestCaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTestCaseOutcomeCallable createTestCaseCallable(const Model::CreateTestCaseRequest& request) const; + CreateUserKeyOutcome createUserKey(const Model::CreateUserKeyRequest &request)const; + void createUserKeyAsync(const Model::CreateUserKeyRequest& request, const CreateUserKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateUserKeyOutcomeCallable createUserKeyCallable(const Model::CreateUserKeyRequest& request) const; + CreateVariableGroupOutcome createVariableGroup(const Model::CreateVariableGroupRequest &request)const; + void createVariableGroupAsync(const Model::CreateVariableGroupRequest& request, const CreateVariableGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVariableGroupOutcomeCallable createVariableGroupCallable(const Model::CreateVariableGroupRequest& request) const; + CreateWorkitemOutcome createWorkitem(const Model::CreateWorkitemRequest &request)const; + void createWorkitemAsync(const Model::CreateWorkitemRequest& request, const CreateWorkitemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateWorkitemOutcomeCallable createWorkitemCallable(const Model::CreateWorkitemRequest& request) const; + CreateWorkitemCommentOutcome createWorkitemComment(const Model::CreateWorkitemCommentRequest &request)const; + void createWorkitemCommentAsync(const Model::CreateWorkitemCommentRequest& request, const CreateWorkitemCommentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateWorkitemCommentOutcomeCallable createWorkitemCommentCallable(const Model::CreateWorkitemCommentRequest& request) const; + CreateWorkitemEstimateOutcome createWorkitemEstimate(const Model::CreateWorkitemEstimateRequest &request)const; + void createWorkitemEstimateAsync(const Model::CreateWorkitemEstimateRequest& request, const CreateWorkitemEstimateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateWorkitemEstimateOutcomeCallable createWorkitemEstimateCallable(const Model::CreateWorkitemEstimateRequest& request) const; + CreateWorkitemRecordOutcome createWorkitemRecord(const Model::CreateWorkitemRecordRequest &request)const; + void createWorkitemRecordAsync(const Model::CreateWorkitemRecordRequest& request, const CreateWorkitemRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateWorkitemRecordOutcomeCallable createWorkitemRecordCallable(const Model::CreateWorkitemRecordRequest& request) const; + CreateWorkitemV2Outcome createWorkitemV2(const Model::CreateWorkitemV2Request &request)const; + void createWorkitemV2Async(const Model::CreateWorkitemV2Request& request, const CreateWorkitemV2AsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateWorkitemV2OutcomeCallable createWorkitemV2Callable(const Model::CreateWorkitemV2Request& request) const; + CreateWorkspaceOutcome createWorkspace(const Model::CreateWorkspaceRequest &request)const; + void createWorkspaceAsync(const Model::CreateWorkspaceRequest& request, const CreateWorkspaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateWorkspaceOutcomeCallable createWorkspaceCallable(const Model::CreateWorkspaceRequest& request) const; + DeleteAppMemberOutcome deleteAppMember(const Model::DeleteAppMemberRequest &request)const; + void deleteAppMemberAsync(const Model::DeleteAppMemberRequest& request, const DeleteAppMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAppMemberOutcomeCallable deleteAppMemberCallable(const Model::DeleteAppMemberRequest& request) const; + DeleteBranchOutcome deleteBranch(const Model::DeleteBranchRequest &request)const; + void deleteBranchAsync(const Model::DeleteBranchRequest& request, const DeleteBranchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteBranchOutcomeCallable deleteBranchCallable(const Model::DeleteBranchRequest& request) const; + DeleteFileOutcome deleteFile(const Model::DeleteFileRequest &request)const; + void deleteFileAsync(const Model::DeleteFileRequest& request, const DeleteFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFileOutcomeCallable deleteFileCallable(const Model::DeleteFileRequest& request) const; + DeleteFlowTagOutcome deleteFlowTag(const Model::DeleteFlowTagRequest &request)const; + void deleteFlowTagAsync(const Model::DeleteFlowTagRequest& request, const DeleteFlowTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowTagOutcomeCallable deleteFlowTagCallable(const Model::DeleteFlowTagRequest& request) const; + DeleteFlowTagGroupOutcome deleteFlowTagGroup(const Model::DeleteFlowTagGroupRequest &request)const; + void deleteFlowTagGroupAsync(const Model::DeleteFlowTagGroupRequest& request, const DeleteFlowTagGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFlowTagGroupOutcomeCallable deleteFlowTagGroupCallable(const Model::DeleteFlowTagGroupRequest& request) const; + DeleteGroupMemberOutcome deleteGroupMember(const Model::DeleteGroupMemberRequest &request)const; + void deleteGroupMemberAsync(const Model::DeleteGroupMemberRequest& request, const DeleteGroupMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGroupMemberOutcomeCallable deleteGroupMemberCallable(const Model::DeleteGroupMemberRequest& request) const; + DeleteHostGroupOutcome deleteHostGroup(const Model::DeleteHostGroupRequest &request)const; + void deleteHostGroupAsync(const Model::DeleteHostGroupRequest& request, const DeleteHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHostGroupOutcomeCallable deleteHostGroupCallable(const Model::DeleteHostGroupRequest& request) const; + DeletePipelineOutcome deletePipeline(const Model::DeletePipelineRequest &request)const; + void deletePipelineAsync(const Model::DeletePipelineRequest& request, const DeletePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePipelineOutcomeCallable deletePipelineCallable(const Model::DeletePipelineRequest& request) const; + DeletePipelineGroupOutcome deletePipelineGroup(const Model::DeletePipelineGroupRequest &request)const; + void deletePipelineGroupAsync(const Model::DeletePipelineGroupRequest& request, const DeletePipelineGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePipelineGroupOutcomeCallable deletePipelineGroupCallable(const Model::DeletePipelineGroupRequest& request) const; + DeletePipelineRelationsOutcome deletePipelineRelations(const Model::DeletePipelineRelationsRequest &request)const; + void deletePipelineRelationsAsync(const Model::DeletePipelineRelationsRequest& request, const DeletePipelineRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePipelineRelationsOutcomeCallable deletePipelineRelationsCallable(const Model::DeletePipelineRelationsRequest& request) const; + DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; + void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const; + DeleteProjectLabelOutcome deleteProjectLabel(const Model::DeleteProjectLabelRequest &request)const; + void deleteProjectLabelAsync(const Model::DeleteProjectLabelRequest& request, const DeleteProjectLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectLabelOutcomeCallable deleteProjectLabelCallable(const Model::DeleteProjectLabelRequest& request) const; + DeleteProtectedBranchOutcome deleteProtectedBranch(const Model::DeleteProtectedBranchRequest &request)const; + void deleteProtectedBranchAsync(const Model::DeleteProtectedBranchRequest& request, const DeleteProtectedBranchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProtectedBranchOutcomeCallable deleteProtectedBranchCallable(const Model::DeleteProtectedBranchRequest& request) const; + DeletePushRuleOutcome deletePushRule(const Model::DeletePushRuleRequest &request)const; + void deletePushRuleAsync(const Model::DeletePushRuleRequest& request, const DeletePushRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePushRuleOutcomeCallable deletePushRuleCallable(const Model::DeletePushRuleRequest& request) const; + DeleteRepositoryOutcome deleteRepository(const Model::DeleteRepositoryRequest &request)const; + void deleteRepositoryAsync(const Model::DeleteRepositoryRequest& request, const DeleteRepositoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRepositoryOutcomeCallable deleteRepositoryCallable(const Model::DeleteRepositoryRequest& request) const; + DeleteRepositoryGroupOutcome deleteRepositoryGroup(const Model::DeleteRepositoryGroupRequest &request)const; + void deleteRepositoryGroupAsync(const Model::DeleteRepositoryGroupRequest& request, const DeleteRepositoryGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRepositoryGroupOutcomeCallable deleteRepositoryGroupCallable(const Model::DeleteRepositoryGroupRequest& request) const; + DeleteRepositoryMemberOutcome deleteRepositoryMember(const Model::DeleteRepositoryMemberRequest &request)const; + void deleteRepositoryMemberAsync(const Model::DeleteRepositoryMemberRequest& request, const DeleteRepositoryMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRepositoryMemberOutcomeCallable deleteRepositoryMemberCallable(const Model::DeleteRepositoryMemberRequest& request) const; + DeleteRepositoryWebhookOutcome deleteRepositoryWebhook(const Model::DeleteRepositoryWebhookRequest &request)const; + void deleteRepositoryWebhookAsync(const Model::DeleteRepositoryWebhookRequest& request, const DeleteRepositoryWebhookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRepositoryWebhookOutcomeCallable deleteRepositoryWebhookCallable(const Model::DeleteRepositoryWebhookRequest& request) const; + DeleteResourceMemberOutcome deleteResourceMember(const Model::DeleteResourceMemberRequest &request)const; + void deleteResourceMemberAsync(const Model::DeleteResourceMemberRequest& request, const DeleteResourceMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteResourceMemberOutcomeCallable deleteResourceMemberCallable(const Model::DeleteResourceMemberRequest& request) const; + DeleteTagOutcome deleteTag(const Model::DeleteTagRequest &request)const; + void deleteTagAsync(const Model::DeleteTagRequest& request, const DeleteTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagOutcomeCallable deleteTagCallable(const Model::DeleteTagRequest& request) const; + DeleteUserKeyOutcome deleteUserKey(const Model::DeleteUserKeyRequest &request)const; + void deleteUserKeyAsync(const Model::DeleteUserKeyRequest& request, const DeleteUserKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteUserKeyOutcomeCallable deleteUserKeyCallable(const Model::DeleteUserKeyRequest& request) const; + DeleteVariableGroupOutcome deleteVariableGroup(const Model::DeleteVariableGroupRequest &request)const; + void deleteVariableGroupAsync(const Model::DeleteVariableGroupRequest& request, const DeleteVariableGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVariableGroupOutcomeCallable deleteVariableGroupCallable(const Model::DeleteVariableGroupRequest& request) const; + DeleteWorkitemOutcome deleteWorkitem(const Model::DeleteWorkitemRequest &request)const; + void deleteWorkitemAsync(const Model::DeleteWorkitemRequest& request, const DeleteWorkitemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteWorkitemOutcomeCallable deleteWorkitemCallable(const Model::DeleteWorkitemRequest& request) const; + DeleteWorkitemAllCommentOutcome deleteWorkitemAllComment(const Model::DeleteWorkitemAllCommentRequest &request)const; + void deleteWorkitemAllCommentAsync(const Model::DeleteWorkitemAllCommentRequest& request, const DeleteWorkitemAllCommentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteWorkitemAllCommentOutcomeCallable deleteWorkitemAllCommentCallable(const Model::DeleteWorkitemAllCommentRequest& request) const; + DeleteWorkitemCommentOutcome deleteWorkitemComment(const Model::DeleteWorkitemCommentRequest &request)const; + void deleteWorkitemCommentAsync(const Model::DeleteWorkitemCommentRequest& request, const DeleteWorkitemCommentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteWorkitemCommentOutcomeCallable deleteWorkitemCommentCallable(const Model::DeleteWorkitemCommentRequest& request) const; + EnableDeployKeyOutcome enableDeployKey(const Model::EnableDeployKeyRequest &request)const; + void enableDeployKeyAsync(const Model::EnableDeployKeyRequest& request, const EnableDeployKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableDeployKeyOutcomeCallable enableDeployKeyCallable(const Model::EnableDeployKeyRequest& request) const; + FrozenWorkspaceOutcome frozenWorkspace(const Model::FrozenWorkspaceRequest &request)const; + void frozenWorkspaceAsync(const Model::FrozenWorkspaceRequest& request, const FrozenWorkspaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FrozenWorkspaceOutcomeCallable frozenWorkspaceCallable(const Model::FrozenWorkspaceRequest& request) const; + GetApplicationOutcome getApplication(const Model::GetApplicationRequest &request)const; + void getApplicationAsync(const Model::GetApplicationRequest& request, const GetApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetApplicationOutcomeCallable getApplicationCallable(const Model::GetApplicationRequest& request) const; + GetBranchInfoOutcome getBranchInfo(const Model::GetBranchInfoRequest &request)const; + void getBranchInfoAsync(const Model::GetBranchInfoRequest& request, const GetBranchInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBranchInfoOutcomeCallable getBranchInfoCallable(const Model::GetBranchInfoRequest& request) const; + GetCheckRunOutcome getCheckRun(const Model::GetCheckRunRequest &request)const; + void getCheckRunAsync(const Model::GetCheckRunRequest& request, const GetCheckRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCheckRunOutcomeCallable getCheckRunCallable(const Model::GetCheckRunRequest& request) const; + GetCodeupOrganizationOutcome getCodeupOrganization(const Model::GetCodeupOrganizationRequest &request)const; + void getCodeupOrganizationAsync(const Model::GetCodeupOrganizationRequest& request, const GetCodeupOrganizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCodeupOrganizationOutcomeCallable getCodeupOrganizationCallable(const Model::GetCodeupOrganizationRequest& request) const; + GetCompareDetailOutcome getCompareDetail(const Model::GetCompareDetailRequest &request)const; + void getCompareDetailAsync(const Model::GetCompareDetailRequest& request, const GetCompareDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCompareDetailOutcomeCallable getCompareDetailCallable(const Model::GetCompareDetailRequest& request) const; + GetCustomFieldOptionOutcome getCustomFieldOption(const Model::GetCustomFieldOptionRequest &request)const; + void getCustomFieldOptionAsync(const Model::GetCustomFieldOptionRequest& request, const GetCustomFieldOptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCustomFieldOptionOutcomeCallable getCustomFieldOptionCallable(const Model::GetCustomFieldOptionRequest& request) const; + GetFileBlobsOutcome getFileBlobs(const Model::GetFileBlobsRequest &request)const; + void getFileBlobsAsync(const Model::GetFileBlobsRequest& request, const GetFileBlobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFileBlobsOutcomeCallable getFileBlobsCallable(const Model::GetFileBlobsRequest& request) const; + GetFileLastCommitOutcome getFileLastCommit(const Model::GetFileLastCommitRequest &request)const; + void getFileLastCommitAsync(const Model::GetFileLastCommitRequest& request, const GetFileLastCommitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFileLastCommitOutcomeCallable getFileLastCommitCallable(const Model::GetFileLastCommitRequest& request) const; + GetFlowTagGroupOutcome getFlowTagGroup(const Model::GetFlowTagGroupRequest &request)const; + void getFlowTagGroupAsync(const Model::GetFlowTagGroupRequest& request, const GetFlowTagGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFlowTagGroupOutcomeCallable getFlowTagGroupCallable(const Model::GetFlowTagGroupRequest& request) const; + GetGroupByPathOutcome getGroupByPath(const Model::GetGroupByPathRequest &request)const; + void getGroupByPathAsync(const Model::GetGroupByPathRequest& request, const GetGroupByPathAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGroupByPathOutcomeCallable getGroupByPathCallable(const Model::GetGroupByPathRequest& request) const; + GetGroupDetailOutcome getGroupDetail(const Model::GetGroupDetailRequest &request)const; + void getGroupDetailAsync(const Model::GetGroupDetailRequest& request, const GetGroupDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGroupDetailOutcomeCallable getGroupDetailCallable(const Model::GetGroupDetailRequest& request) const; + GetHostGroupOutcome getHostGroup(const Model::GetHostGroupRequest &request)const; + void getHostGroupAsync(const Model::GetHostGroupRequest& request, const GetHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHostGroupOutcomeCallable getHostGroupCallable(const Model::GetHostGroupRequest& request) const; + GetMergeRequestOutcome getMergeRequest(const Model::GetMergeRequestRequest &request)const; + void getMergeRequestAsync(const Model::GetMergeRequestRequest& request, const GetMergeRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMergeRequestOutcomeCallable getMergeRequestCallable(const Model::GetMergeRequestRequest& request) const; + GetMergeRequestChangeTreeOutcome getMergeRequestChangeTree(const Model::GetMergeRequestChangeTreeRequest &request)const; + void getMergeRequestChangeTreeAsync(const Model::GetMergeRequestChangeTreeRequest& request, const GetMergeRequestChangeTreeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMergeRequestChangeTreeOutcomeCallable getMergeRequestChangeTreeCallable(const Model::GetMergeRequestChangeTreeRequest& request) const; + GetOrganizationMemberOutcome getOrganizationMember(const Model::GetOrganizationMemberRequest &request)const; + void getOrganizationMemberAsync(const Model::GetOrganizationMemberRequest& request, const GetOrganizationMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOrganizationMemberOutcomeCallable getOrganizationMemberCallable(const Model::GetOrganizationMemberRequest& request) const; + GetPipelineOutcome getPipeline(const Model::GetPipelineRequest &request)const; + void getPipelineAsync(const Model::GetPipelineRequest& request, const GetPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineOutcomeCallable getPipelineCallable(const Model::GetPipelineRequest& request) const; + GetPipelineArtifactUrlOutcome getPipelineArtifactUrl(const Model::GetPipelineArtifactUrlRequest &request)const; + void getPipelineArtifactUrlAsync(const Model::GetPipelineArtifactUrlRequest& request, const GetPipelineArtifactUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineArtifactUrlOutcomeCallable getPipelineArtifactUrlCallable(const Model::GetPipelineArtifactUrlRequest& request) const; + GetPipelineEmasArtifactUrlOutcome getPipelineEmasArtifactUrl(const Model::GetPipelineEmasArtifactUrlRequest &request)const; + void getPipelineEmasArtifactUrlAsync(const Model::GetPipelineEmasArtifactUrlRequest& request, const GetPipelineEmasArtifactUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineEmasArtifactUrlOutcomeCallable getPipelineEmasArtifactUrlCallable(const Model::GetPipelineEmasArtifactUrlRequest& request) const; + GetPipelineGroupOutcome getPipelineGroup(const Model::GetPipelineGroupRequest &request)const; + void getPipelineGroupAsync(const Model::GetPipelineGroupRequest& request, const GetPipelineGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineGroupOutcomeCallable getPipelineGroupCallable(const Model::GetPipelineGroupRequest& request) const; + GetPipelineRunOutcome getPipelineRun(const Model::GetPipelineRunRequest &request)const; + void getPipelineRunAsync(const Model::GetPipelineRunRequest& request, const GetPipelineRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineRunOutcomeCallable getPipelineRunCallable(const Model::GetPipelineRunRequest& request) const; + GetPipelineScanReportUrlOutcome getPipelineScanReportUrl(const Model::GetPipelineScanReportUrlRequest &request)const; + void getPipelineScanReportUrlAsync(const Model::GetPipelineScanReportUrlRequest& request, const GetPipelineScanReportUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPipelineScanReportUrlOutcomeCallable getPipelineScanReportUrlCallable(const Model::GetPipelineScanReportUrlRequest& request) const; + GetProjectInfoOutcome getProjectInfo(const Model::GetProjectInfoRequest &request)const; + void getProjectInfoAsync(const Model::GetProjectInfoRequest& request, const GetProjectInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProjectInfoOutcomeCallable getProjectInfoCallable(const Model::GetProjectInfoRequest& request) const; + GetProjectMemberOutcome getProjectMember(const Model::GetProjectMemberRequest &request)const; + void getProjectMemberAsync(const Model::GetProjectMemberRequest& request, const GetProjectMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProjectMemberOutcomeCallable getProjectMemberCallable(const Model::GetProjectMemberRequest& request) const; + GetPushRuleOutcome getPushRule(const Model::GetPushRuleRequest &request)const; + void getPushRuleAsync(const Model::GetPushRuleRequest& request, const GetPushRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPushRuleOutcomeCallable getPushRuleCallable(const Model::GetPushRuleRequest& request) const; + GetRepositoryOutcome getRepository(const Model::GetRepositoryRequest &request)const; + void getRepositoryAsync(const Model::GetRepositoryRequest& request, const GetRepositoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRepositoryOutcomeCallable getRepositoryCallable(const Model::GetRepositoryRequest& request) const; + GetRepositoryCommitOutcome getRepositoryCommit(const Model::GetRepositoryCommitRequest &request)const; + void getRepositoryCommitAsync(const Model::GetRepositoryCommitRequest& request, const GetRepositoryCommitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRepositoryCommitOutcomeCallable getRepositoryCommitCallable(const Model::GetRepositoryCommitRequest& request) const; + GetRepositoryTagOutcome getRepositoryTag(const Model::GetRepositoryTagRequest &request)const; + void getRepositoryTagAsync(const Model::GetRepositoryTagRequest& request, const GetRepositoryTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetRepositoryTagOutcomeCallable getRepositoryTagCallable(const Model::GetRepositoryTagRequest& request) const; + GetSearchCodePreviewOutcome getSearchCodePreview(const Model::GetSearchCodePreviewRequest &request)const; + void getSearchCodePreviewAsync(const Model::GetSearchCodePreviewRequest& request, const GetSearchCodePreviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSearchCodePreviewOutcomeCallable getSearchCodePreviewCallable(const Model::GetSearchCodePreviewRequest& request) const; + GetSprintInfoOutcome getSprintInfo(const Model::GetSprintInfoRequest &request)const; + void getSprintInfoAsync(const Model::GetSprintInfoRequest& request, const GetSprintInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSprintInfoOutcomeCallable getSprintInfoCallable(const Model::GetSprintInfoRequest& request) const; + GetTestResultListOutcome getTestResultList(const Model::GetTestResultListRequest &request)const; + void getTestResultListAsync(const Model::GetTestResultListRequest& request, const GetTestResultListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTestResultListOutcomeCallable getTestResultListCallable(const Model::GetTestResultListRequest& request) const; + GetTestcaseListOutcome getTestcaseList(const Model::GetTestcaseListRequest &request)const; + void getTestcaseListAsync(const Model::GetTestcaseListRequest& request, const GetTestcaseListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTestcaseListOutcomeCallable getTestcaseListCallable(const Model::GetTestcaseListRequest& request) const; + GetUserInfoOutcome getUserInfo(const Model::GetUserInfoRequest &request)const; + void getUserInfoAsync(const Model::GetUserInfoRequest& request, const GetUserInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserInfoOutcomeCallable getUserInfoCallable(const Model::GetUserInfoRequest& request) const; + GetVMDeployOrderOutcome getVMDeployOrder(const Model::GetVMDeployOrderRequest &request)const; + void getVMDeployOrderAsync(const Model::GetVMDeployOrderRequest& request, const GetVMDeployOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVMDeployOrderOutcomeCallable getVMDeployOrderCallable(const Model::GetVMDeployOrderRequest& request) const; + GetVariableGroupOutcome getVariableGroup(const Model::GetVariableGroupRequest &request)const; + void getVariableGroupAsync(const Model::GetVariableGroupRequest& request, const GetVariableGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVariableGroupOutcomeCallable getVariableGroupCallable(const Model::GetVariableGroupRequest& request) const; + GetWorkItemActivityOutcome getWorkItemActivity(const Model::GetWorkItemActivityRequest &request)const; + void getWorkItemActivityAsync(const Model::GetWorkItemActivityRequest& request, const GetWorkItemActivityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkItemActivityOutcomeCallable getWorkItemActivityCallable(const Model::GetWorkItemActivityRequest& request) const; + GetWorkItemInfoOutcome getWorkItemInfo(const Model::GetWorkItemInfoRequest &request)const; + void getWorkItemInfoAsync(const Model::GetWorkItemInfoRequest& request, const GetWorkItemInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkItemInfoOutcomeCallable getWorkItemInfoCallable(const Model::GetWorkItemInfoRequest& request) const; + GetWorkItemWorkFlowInfoOutcome getWorkItemWorkFlowInfo(const Model::GetWorkItemWorkFlowInfoRequest &request)const; + void getWorkItemWorkFlowInfoAsync(const Model::GetWorkItemWorkFlowInfoRequest& request, const GetWorkItemWorkFlowInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkItemWorkFlowInfoOutcomeCallable getWorkItemWorkFlowInfoCallable(const Model::GetWorkItemWorkFlowInfoRequest& request) const; + GetWorkitemAttachmentCreatemetaOutcome getWorkitemAttachmentCreatemeta(const Model::GetWorkitemAttachmentCreatemetaRequest &request)const; + void getWorkitemAttachmentCreatemetaAsync(const Model::GetWorkitemAttachmentCreatemetaRequest& request, const GetWorkitemAttachmentCreatemetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkitemAttachmentCreatemetaOutcomeCallable getWorkitemAttachmentCreatemetaCallable(const Model::GetWorkitemAttachmentCreatemetaRequest& request) const; + GetWorkitemCommentListOutcome getWorkitemCommentList(const Model::GetWorkitemCommentListRequest &request)const; + void getWorkitemCommentListAsync(const Model::GetWorkitemCommentListRequest& request, const GetWorkitemCommentListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkitemCommentListOutcomeCallable getWorkitemCommentListCallable(const Model::GetWorkitemCommentListRequest& request) const; + GetWorkitemFileOutcome getWorkitemFile(const Model::GetWorkitemFileRequest &request)const; + void getWorkitemFileAsync(const Model::GetWorkitemFileRequest& request, const GetWorkitemFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkitemFileOutcomeCallable getWorkitemFileCallable(const Model::GetWorkitemFileRequest& request) const; + GetWorkitemRelationsOutcome getWorkitemRelations(const Model::GetWorkitemRelationsRequest &request)const; + void getWorkitemRelationsAsync(const Model::GetWorkitemRelationsRequest& request, const GetWorkitemRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkitemRelationsOutcomeCallable getWorkitemRelationsCallable(const Model::GetWorkitemRelationsRequest& request) const; + GetWorkitemTimeTypeListOutcome getWorkitemTimeTypeList(const Model::GetWorkitemTimeTypeListRequest &request)const; + void getWorkitemTimeTypeListAsync(const Model::GetWorkitemTimeTypeListRequest& request, const GetWorkitemTimeTypeListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkitemTimeTypeListOutcomeCallable getWorkitemTimeTypeListCallable(const Model::GetWorkitemTimeTypeListRequest& request) const; + GetWorkspaceOutcome getWorkspace(const Model::GetWorkspaceRequest &request)const; + void getWorkspaceAsync(const Model::GetWorkspaceRequest& request, const GetWorkspaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetWorkspaceOutcomeCallable getWorkspaceCallable(const Model::GetWorkspaceRequest& request) const; + JoinPipelineGroupOutcome joinPipelineGroup(const Model::JoinPipelineGroupRequest &request)const; + void joinPipelineGroupAsync(const Model::JoinPipelineGroupRequest& request, const JoinPipelineGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + JoinPipelineGroupOutcomeCallable joinPipelineGroupCallable(const Model::JoinPipelineGroupRequest& request) const; + LinkMergeRequestLabelOutcome linkMergeRequestLabel(const Model::LinkMergeRequestLabelRequest &request)const; + void linkMergeRequestLabelAsync(const Model::LinkMergeRequestLabelRequest& request, const LinkMergeRequestLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LinkMergeRequestLabelOutcomeCallable linkMergeRequestLabelCallable(const Model::LinkMergeRequestLabelRequest& request) const; + ListApplicationMembersOutcome listApplicationMembers(const Model::ListApplicationMembersRequest &request)const; + void listApplicationMembersAsync(const Model::ListApplicationMembersRequest& request, const ListApplicationMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApplicationMembersOutcomeCallable listApplicationMembersCallable(const Model::ListApplicationMembersRequest& request) const; + ListApplicationsOutcome listApplications(const Model::ListApplicationsRequest &request)const; + void listApplicationsAsync(const Model::ListApplicationsRequest& request, const ListApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListApplicationsOutcomeCallable listApplicationsCallable(const Model::ListApplicationsRequest& request) const; + ListCheckRunsOutcome listCheckRuns(const Model::ListCheckRunsRequest &request)const; + void listCheckRunsAsync(const Model::ListCheckRunsRequest& request, const ListCheckRunsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCheckRunsOutcomeCallable listCheckRunsCallable(const Model::ListCheckRunsRequest& request) const; + ListCommitStatusesOutcome listCommitStatuses(const Model::ListCommitStatusesRequest &request)const; + void listCommitStatusesAsync(const Model::ListCommitStatusesRequest& request, const ListCommitStatusesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCommitStatusesOutcomeCallable listCommitStatusesCallable(const Model::ListCommitStatusesRequest& request) const; + ListFlowTagGroupsOutcome listFlowTagGroups(const Model::ListFlowTagGroupsRequest &request)const; + void listFlowTagGroupsAsync(const Model::ListFlowTagGroupsRequest& request, const ListFlowTagGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFlowTagGroupsOutcomeCallable listFlowTagGroupsCallable(const Model::ListFlowTagGroupsRequest& request) const; + ListGroupMemberOutcome listGroupMember(const Model::ListGroupMemberRequest &request)const; + void listGroupMemberAsync(const Model::ListGroupMemberRequest& request, const ListGroupMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGroupMemberOutcomeCallable listGroupMemberCallable(const Model::ListGroupMemberRequest& request) const; + ListGroupRepositoriesOutcome listGroupRepositories(const Model::ListGroupRepositoriesRequest &request)const; + void listGroupRepositoriesAsync(const Model::ListGroupRepositoriesRequest& request, const ListGroupRepositoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGroupRepositoriesOutcomeCallable listGroupRepositoriesCallable(const Model::ListGroupRepositoriesRequest& request) const; + ListHostGroupsOutcome listHostGroups(const Model::ListHostGroupsRequest &request)const; + void listHostGroupsAsync(const Model::ListHostGroupsRequest& request, const ListHostGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListHostGroupsOutcomeCallable listHostGroupsCallable(const Model::ListHostGroupsRequest& request) const; + ListJoinedOrganizationsOutcome listJoinedOrganizations(const Model::ListJoinedOrganizationsRequest &request)const; + void listJoinedOrganizationsAsync(const Model::ListJoinedOrganizationsRequest& request, const ListJoinedOrganizationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJoinedOrganizationsOutcomeCallable listJoinedOrganizationsCallable(const Model::ListJoinedOrganizationsRequest& request) const; + ListMergeRequestCommentsOutcome listMergeRequestComments(const Model::ListMergeRequestCommentsRequest &request)const; + void listMergeRequestCommentsAsync(const Model::ListMergeRequestCommentsRequest& request, const ListMergeRequestCommentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMergeRequestCommentsOutcomeCallable listMergeRequestCommentsCallable(const Model::ListMergeRequestCommentsRequest& request) const; + ListMergeRequestFilesReadsOutcome listMergeRequestFilesReads(const Model::ListMergeRequestFilesReadsRequest &request)const; + void listMergeRequestFilesReadsAsync(const Model::ListMergeRequestFilesReadsRequest& request, const ListMergeRequestFilesReadsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMergeRequestFilesReadsOutcomeCallable listMergeRequestFilesReadsCallable(const Model::ListMergeRequestFilesReadsRequest& request) const; + ListMergeRequestLabelsOutcome listMergeRequestLabels(const Model::ListMergeRequestLabelsRequest &request)const; + void listMergeRequestLabelsAsync(const Model::ListMergeRequestLabelsRequest& request, const ListMergeRequestLabelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMergeRequestLabelsOutcomeCallable listMergeRequestLabelsCallable(const Model::ListMergeRequestLabelsRequest& request) const; + ListMergeRequestPatchSetsOutcome listMergeRequestPatchSets(const Model::ListMergeRequestPatchSetsRequest &request)const; + void listMergeRequestPatchSetsAsync(const Model::ListMergeRequestPatchSetsRequest& request, const ListMergeRequestPatchSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMergeRequestPatchSetsOutcomeCallable listMergeRequestPatchSetsCallable(const Model::ListMergeRequestPatchSetsRequest& request) const; + ListMergeRequestsOutcome listMergeRequests(const Model::ListMergeRequestsRequest &request)const; + void listMergeRequestsAsync(const Model::ListMergeRequestsRequest& request, const ListMergeRequestsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMergeRequestsOutcomeCallable listMergeRequestsCallable(const Model::ListMergeRequestsRequest& request) const; + ListOrganizationMembersOutcome listOrganizationMembers(const Model::ListOrganizationMembersRequest &request)const; + void listOrganizationMembersAsync(const Model::ListOrganizationMembersRequest& request, const ListOrganizationMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOrganizationMembersOutcomeCallable listOrganizationMembersCallable(const Model::ListOrganizationMembersRequest& request) const; + ListOrganizationsOutcome listOrganizations(const Model::ListOrganizationsRequest &request)const; + void listOrganizationsAsync(const Model::ListOrganizationsRequest& request, const ListOrganizationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOrganizationsOutcomeCallable listOrganizationsCallable(const Model::ListOrganizationsRequest& request) const; + ListPipelineGroupPipelinesOutcome listPipelineGroupPipelines(const Model::ListPipelineGroupPipelinesRequest &request)const; + void listPipelineGroupPipelinesAsync(const Model::ListPipelineGroupPipelinesRequest& request, const ListPipelineGroupPipelinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPipelineGroupPipelinesOutcomeCallable listPipelineGroupPipelinesCallable(const Model::ListPipelineGroupPipelinesRequest& request) const; + ListPipelineGroupsOutcome listPipelineGroups(const Model::ListPipelineGroupsRequest &request)const; + void listPipelineGroupsAsync(const Model::ListPipelineGroupsRequest& request, const ListPipelineGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPipelineGroupsOutcomeCallable listPipelineGroupsCallable(const Model::ListPipelineGroupsRequest& request) const; + ListPipelineJobHistorysOutcome listPipelineJobHistorys(const Model::ListPipelineJobHistorysRequest &request)const; + void listPipelineJobHistorysAsync(const Model::ListPipelineJobHistorysRequest& request, const ListPipelineJobHistorysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPipelineJobHistorysOutcomeCallable listPipelineJobHistorysCallable(const Model::ListPipelineJobHistorysRequest& request) const; + ListPipelineJobsOutcome listPipelineJobs(const Model::ListPipelineJobsRequest &request)const; + void listPipelineJobsAsync(const Model::ListPipelineJobsRequest& request, const ListPipelineJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPipelineJobsOutcomeCallable listPipelineJobsCallable(const Model::ListPipelineJobsRequest& request) const; + ListPipelineRelationsOutcome listPipelineRelations(const Model::ListPipelineRelationsRequest &request)const; + void listPipelineRelationsAsync(const Model::ListPipelineRelationsRequest& request, const ListPipelineRelationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPipelineRelationsOutcomeCallable listPipelineRelationsCallable(const Model::ListPipelineRelationsRequest& request) const; + ListPipelineRunsOutcome listPipelineRuns(const Model::ListPipelineRunsRequest &request)const; + void listPipelineRunsAsync(const Model::ListPipelineRunsRequest& request, const ListPipelineRunsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPipelineRunsOutcomeCallable listPipelineRunsCallable(const Model::ListPipelineRunsRequest& request) const; + ListPipelinesOutcome listPipelines(const Model::ListPipelinesRequest &request)const; + void listPipelinesAsync(const Model::ListPipelinesRequest& request, const ListPipelinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPipelinesOutcomeCallable listPipelinesCallable(const Model::ListPipelinesRequest& request) const; + ListProjectLabelsOutcome listProjectLabels(const Model::ListProjectLabelsRequest &request)const; + void listProjectLabelsAsync(const Model::ListProjectLabelsRequest& request, const ListProjectLabelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectLabelsOutcomeCallable listProjectLabelsCallable(const Model::ListProjectLabelsRequest& request) const; + ListProjectMembersOutcome listProjectMembers(const Model::ListProjectMembersRequest &request)const; + void listProjectMembersAsync(const Model::ListProjectMembersRequest& request, const ListProjectMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectMembersOutcomeCallable listProjectMembersCallable(const Model::ListProjectMembersRequest& request) const; + ListProjectTemplatesOutcome listProjectTemplates(const Model::ListProjectTemplatesRequest &request)const; + void listProjectTemplatesAsync(const Model::ListProjectTemplatesRequest& request, const ListProjectTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectTemplatesOutcomeCallable listProjectTemplatesCallable(const Model::ListProjectTemplatesRequest& request) const; + ListProjectWorkitemTypesOutcome listProjectWorkitemTypes(const Model::ListProjectWorkitemTypesRequest &request)const; + void listProjectWorkitemTypesAsync(const Model::ListProjectWorkitemTypesRequest& request, const ListProjectWorkitemTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectWorkitemTypesOutcomeCallable listProjectWorkitemTypesCallable(const Model::ListProjectWorkitemTypesRequest& request) const; + ListProjectsOutcome listProjects(const Model::ListProjectsRequest &request)const; + void listProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectsOutcomeCallable listProjectsCallable(const Model::ListProjectsRequest& request) const; + ListProtectedBranchesOutcome listProtectedBranches(const Model::ListProtectedBranchesRequest &request)const; + void listProtectedBranchesAsync(const Model::ListProtectedBranchesRequest& request, const ListProtectedBranchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProtectedBranchesOutcomeCallable listProtectedBranchesCallable(const Model::ListProtectedBranchesRequest& request) const; + ListPushRulesOutcome listPushRules(const Model::ListPushRulesRequest &request)const; + void listPushRulesAsync(const Model::ListPushRulesRequest& request, const ListPushRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPushRulesOutcomeCallable listPushRulesCallable(const Model::ListPushRulesRequest& request) const; + ListRepositoriesOutcome listRepositories(const Model::ListRepositoriesRequest &request)const; + void listRepositoriesAsync(const Model::ListRepositoriesRequest& request, const ListRepositoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRepositoriesOutcomeCallable listRepositoriesCallable(const Model::ListRepositoriesRequest& request) const; + ListRepositoryBranchesOutcome listRepositoryBranches(const Model::ListRepositoryBranchesRequest &request)const; + void listRepositoryBranchesAsync(const Model::ListRepositoryBranchesRequest& request, const ListRepositoryBranchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRepositoryBranchesOutcomeCallable listRepositoryBranchesCallable(const Model::ListRepositoryBranchesRequest& request) const; + ListRepositoryCommitDiffOutcome listRepositoryCommitDiff(const Model::ListRepositoryCommitDiffRequest &request)const; + void listRepositoryCommitDiffAsync(const Model::ListRepositoryCommitDiffRequest& request, const ListRepositoryCommitDiffAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRepositoryCommitDiffOutcomeCallable listRepositoryCommitDiffCallable(const Model::ListRepositoryCommitDiffRequest& request) const; + ListRepositoryCommitsOutcome listRepositoryCommits(const Model::ListRepositoryCommitsRequest &request)const; + void listRepositoryCommitsAsync(const Model::ListRepositoryCommitsRequest& request, const ListRepositoryCommitsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRepositoryCommitsOutcomeCallable listRepositoryCommitsCallable(const Model::ListRepositoryCommitsRequest& request) const; + ListRepositoryGroupsOutcome listRepositoryGroups(const Model::ListRepositoryGroupsRequest &request)const; + void listRepositoryGroupsAsync(const Model::ListRepositoryGroupsRequest& request, const ListRepositoryGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRepositoryGroupsOutcomeCallable listRepositoryGroupsCallable(const Model::ListRepositoryGroupsRequest& request) const; + ListRepositoryMemberWithInheritedOutcome listRepositoryMemberWithInherited(const Model::ListRepositoryMemberWithInheritedRequest &request)const; + void listRepositoryMemberWithInheritedAsync(const Model::ListRepositoryMemberWithInheritedRequest& request, const ListRepositoryMemberWithInheritedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRepositoryMemberWithInheritedOutcomeCallable listRepositoryMemberWithInheritedCallable(const Model::ListRepositoryMemberWithInheritedRequest& request) const; + ListRepositoryTagsOutcome listRepositoryTags(const Model::ListRepositoryTagsRequest &request)const; + void listRepositoryTagsAsync(const Model::ListRepositoryTagsRequest& request, const ListRepositoryTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRepositoryTagsOutcomeCallable listRepositoryTagsCallable(const Model::ListRepositoryTagsRequest& request) const; + ListRepositoryTreeOutcome listRepositoryTree(const Model::ListRepositoryTreeRequest &request)const; + void listRepositoryTreeAsync(const Model::ListRepositoryTreeRequest& request, const ListRepositoryTreeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRepositoryTreeOutcomeCallable listRepositoryTreeCallable(const Model::ListRepositoryTreeRequest& request) const; + ListRepositoryWebhookOutcome listRepositoryWebhook(const Model::ListRepositoryWebhookRequest &request)const; + void listRepositoryWebhookAsync(const Model::ListRepositoryWebhookRequest& request, const ListRepositoryWebhookAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRepositoryWebhookOutcomeCallable listRepositoryWebhookCallable(const Model::ListRepositoryWebhookRequest& request) const; + ListResourceMembersOutcome listResourceMembers(const Model::ListResourceMembersRequest &request)const; + void listResourceMembersAsync(const Model::ListResourceMembersRequest& request, const ListResourceMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourceMembersOutcomeCallable listResourceMembersCallable(const Model::ListResourceMembersRequest& request) const; + ListSearchCommitOutcome listSearchCommit(const Model::ListSearchCommitRequest &request)const; + void listSearchCommitAsync(const Model::ListSearchCommitRequest& request, const ListSearchCommitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSearchCommitOutcomeCallable listSearchCommitCallable(const Model::ListSearchCommitRequest& request) const; + ListSearchRepositoryOutcome listSearchRepository(const Model::ListSearchRepositoryRequest &request)const; + void listSearchRepositoryAsync(const Model::ListSearchRepositoryRequest& request, const ListSearchRepositoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSearchRepositoryOutcomeCallable listSearchRepositoryCallable(const Model::ListSearchRepositoryRequest& request) const; + ListSearchSourceCodeOutcome listSearchSourceCode(const Model::ListSearchSourceCodeRequest &request)const; + void listSearchSourceCodeAsync(const Model::ListSearchSourceCodeRequest& request, const ListSearchSourceCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSearchSourceCodeOutcomeCallable listSearchSourceCodeCallable(const Model::ListSearchSourceCodeRequest& request) const; + ListServiceAuthsOutcome listServiceAuths(const Model::ListServiceAuthsRequest &request)const; + void listServiceAuthsAsync(const Model::ListServiceAuthsRequest& request, const ListServiceAuthsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServiceAuthsOutcomeCallable listServiceAuthsCallable(const Model::ListServiceAuthsRequest& request) const; + ListServiceConnectionsOutcome listServiceConnections(const Model::ListServiceConnectionsRequest &request)const; + void listServiceConnectionsAsync(const Model::ListServiceConnectionsRequest& request, const ListServiceConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServiceConnectionsOutcomeCallable listServiceConnectionsCallable(const Model::ListServiceConnectionsRequest& request) const; + ListServiceCredentialsOutcome listServiceCredentials(const Model::ListServiceCredentialsRequest &request)const; + void listServiceCredentialsAsync(const Model::ListServiceCredentialsRequest& request, const ListServiceCredentialsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServiceCredentialsOutcomeCallable listServiceCredentialsCallable(const Model::ListServiceCredentialsRequest& request) const; + ListSprintsOutcome listSprints(const Model::ListSprintsRequest &request)const; + void listSprintsAsync(const Model::ListSprintsRequest& request, const ListSprintsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSprintsOutcomeCallable listSprintsCallable(const Model::ListSprintsRequest& request) const; + ListTestCaseFieldsOutcome listTestCaseFields(const Model::ListTestCaseFieldsRequest &request)const; + void listTestCaseFieldsAsync(const Model::ListTestCaseFieldsRequest& request, const ListTestCaseFieldsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTestCaseFieldsOutcomeCallable listTestCaseFieldsCallable(const Model::ListTestCaseFieldsRequest& request) const; + ListUserDrawRecordByPkOutcome listUserDrawRecordByPk(const Model::ListUserDrawRecordByPkRequest &request)const; + void listUserDrawRecordByPkAsync(const Model::ListUserDrawRecordByPkRequest& request, const ListUserDrawRecordByPkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserDrawRecordByPkOutcomeCallable listUserDrawRecordByPkCallable(const Model::ListUserDrawRecordByPkRequest& request) const; + ListUserKeysOutcome listUserKeys(const Model::ListUserKeysRequest &request)const; + void listUserKeysAsync(const Model::ListUserKeysRequest& request, const ListUserKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserKeysOutcomeCallable listUserKeysCallable(const Model::ListUserKeysRequest& request) const; + ListUserResourcesOutcome listUserResources(const Model::ListUserResourcesRequest &request)const; + void listUserResourcesAsync(const Model::ListUserResourcesRequest& request, const ListUserResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserResourcesOutcomeCallable listUserResourcesCallable(const Model::ListUserResourcesRequest& request) const; + ListVariableGroupsOutcome listVariableGroups(const Model::ListVariableGroupsRequest &request)const; + void listVariableGroupsAsync(const Model::ListVariableGroupsRequest& request, const ListVariableGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVariableGroupsOutcomeCallable listVariableGroupsCallable(const Model::ListVariableGroupsRequest& request) const; + ListWorkItemAllFieldsOutcome listWorkItemAllFields(const Model::ListWorkItemAllFieldsRequest &request)const; + void listWorkItemAllFieldsAsync(const Model::ListWorkItemAllFieldsRequest& request, const ListWorkItemAllFieldsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkItemAllFieldsOutcomeCallable listWorkItemAllFieldsCallable(const Model::ListWorkItemAllFieldsRequest& request) const; + ListWorkItemWorkFlowStatusOutcome listWorkItemWorkFlowStatus(const Model::ListWorkItemWorkFlowStatusRequest &request)const; + void listWorkItemWorkFlowStatusAsync(const Model::ListWorkItemWorkFlowStatusRequest& request, const ListWorkItemWorkFlowStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkItemWorkFlowStatusOutcomeCallable listWorkItemWorkFlowStatusCallable(const Model::ListWorkItemWorkFlowStatusRequest& request) const; + ListWorkitemAttachmentsOutcome listWorkitemAttachments(const Model::ListWorkitemAttachmentsRequest &request)const; + void listWorkitemAttachmentsAsync(const Model::ListWorkitemAttachmentsRequest& request, const ListWorkitemAttachmentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkitemAttachmentsOutcomeCallable listWorkitemAttachmentsCallable(const Model::ListWorkitemAttachmentsRequest& request) const; + ListWorkitemEstimateOutcome listWorkitemEstimate(const Model::ListWorkitemEstimateRequest &request)const; + void listWorkitemEstimateAsync(const Model::ListWorkitemEstimateRequest& request, const ListWorkitemEstimateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkitemEstimateOutcomeCallable listWorkitemEstimateCallable(const Model::ListWorkitemEstimateRequest& request) const; + ListWorkitemTimeOutcome listWorkitemTime(const Model::ListWorkitemTimeRequest &request)const; + void listWorkitemTimeAsync(const Model::ListWorkitemTimeRequest& request, const ListWorkitemTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkitemTimeOutcomeCallable listWorkitemTimeCallable(const Model::ListWorkitemTimeRequest& request) const; + ListWorkitemsOutcome listWorkitems(const Model::ListWorkitemsRequest &request)const; + void listWorkitemsAsync(const Model::ListWorkitemsRequest& request, const ListWorkitemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkitemsOutcomeCallable listWorkitemsCallable(const Model::ListWorkitemsRequest& request) const; + ListWorkspacesOutcome listWorkspaces(const Model::ListWorkspacesRequest &request)const; + void listWorkspacesAsync(const Model::ListWorkspacesRequest& request, const ListWorkspacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListWorkspacesOutcomeCallable listWorkspacesCallable(const Model::ListWorkspacesRequest& request) const; + LogPipelineJobRunOutcome logPipelineJobRun(const Model::LogPipelineJobRunRequest &request)const; + void logPipelineJobRunAsync(const Model::LogPipelineJobRunRequest& request, const LogPipelineJobRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LogPipelineJobRunOutcomeCallable logPipelineJobRunCallable(const Model::LogPipelineJobRunRequest& request) const; + LogVMDeployMachineOutcome logVMDeployMachine(const Model::LogVMDeployMachineRequest &request)const; + void logVMDeployMachineAsync(const Model::LogVMDeployMachineRequest& request, const LogVMDeployMachineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LogVMDeployMachineOutcomeCallable logVMDeployMachineCallable(const Model::LogVMDeployMachineRequest& request) const; + MergeMergeRequestOutcome mergeMergeRequest(const Model::MergeMergeRequestRequest &request)const; + void mergeMergeRequestAsync(const Model::MergeMergeRequestRequest& request, const MergeMergeRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MergeMergeRequestOutcomeCallable mergeMergeRequestCallable(const Model::MergeMergeRequestRequest& request) const; + PassPipelineValidateOutcome passPipelineValidate(const Model::PassPipelineValidateRequest &request)const; + void passPipelineValidateAsync(const Model::PassPipelineValidateRequest& request, const PassPipelineValidateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PassPipelineValidateOutcomeCallable passPipelineValidateCallable(const Model::PassPipelineValidateRequest& request) const; + RefusePipelineValidateOutcome refusePipelineValidate(const Model::RefusePipelineValidateRequest &request)const; + void refusePipelineValidateAsync(const Model::RefusePipelineValidateRequest& request, const RefusePipelineValidateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefusePipelineValidateOutcomeCallable refusePipelineValidateCallable(const Model::RefusePipelineValidateRequest& request) const; + ReleaseWorkspaceOutcome releaseWorkspace(const Model::ReleaseWorkspaceRequest &request)const; + void releaseWorkspaceAsync(const Model::ReleaseWorkspaceRequest& request, const ReleaseWorkspaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseWorkspaceOutcomeCallable releaseWorkspaceCallable(const Model::ReleaseWorkspaceRequest& request) const; + ReopenMergeRequestOutcome reopenMergeRequest(const Model::ReopenMergeRequestRequest &request)const; + void reopenMergeRequestAsync(const Model::ReopenMergeRequestRequest& request, const ReopenMergeRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReopenMergeRequestOutcomeCallable reopenMergeRequestCallable(const Model::ReopenMergeRequestRequest& request) const; + ResetSshKeyOutcome resetSshKey(const Model::ResetSshKeyRequest &request)const; + void resetSshKeyAsync(const Model::ResetSshKeyRequest& request, const ResetSshKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetSshKeyOutcomeCallable resetSshKeyCallable(const Model::ResetSshKeyRequest& request) const; + ResumeVMDeployOrderOutcome resumeVMDeployOrder(const Model::ResumeVMDeployOrderRequest &request)const; + void resumeVMDeployOrderAsync(const Model::ResumeVMDeployOrderRequest& request, const ResumeVMDeployOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeVMDeployOrderOutcomeCallable resumeVMDeployOrderCallable(const Model::ResumeVMDeployOrderRequest& request) const; + RetryPipelineJobRunOutcome retryPipelineJobRun(const Model::RetryPipelineJobRunRequest &request)const; + void retryPipelineJobRunAsync(const Model::RetryPipelineJobRunRequest& request, const RetryPipelineJobRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetryPipelineJobRunOutcomeCallable retryPipelineJobRunCallable(const Model::RetryPipelineJobRunRequest& request) const; + RetryVMDeployMachineOutcome retryVMDeployMachine(const Model::RetryVMDeployMachineRequest &request)const; + void retryVMDeployMachineAsync(const Model::RetryVMDeployMachineRequest& request, const RetryVMDeployMachineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetryVMDeployMachineOutcomeCallable retryVMDeployMachineCallable(const Model::RetryVMDeployMachineRequest& request) const; + ReviewMergeRequestOutcome reviewMergeRequest(const Model::ReviewMergeRequestRequest &request)const; + void reviewMergeRequestAsync(const Model::ReviewMergeRequestRequest& request, const ReviewMergeRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReviewMergeRequestOutcomeCallable reviewMergeRequestCallable(const Model::ReviewMergeRequestRequest& request) const; + SkipPipelineJobRunOutcome skipPipelineJobRun(const Model::SkipPipelineJobRunRequest &request)const; + void skipPipelineJobRunAsync(const Model::SkipPipelineJobRunRequest& request, const SkipPipelineJobRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SkipPipelineJobRunOutcomeCallable skipPipelineJobRunCallable(const Model::SkipPipelineJobRunRequest& request) const; + SkipVMDeployMachineOutcome skipVMDeployMachine(const Model::SkipVMDeployMachineRequest &request)const; + void skipVMDeployMachineAsync(const Model::SkipVMDeployMachineRequest& request, const SkipVMDeployMachineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SkipVMDeployMachineOutcomeCallable skipVMDeployMachineCallable(const Model::SkipVMDeployMachineRequest& request) const; + StartPipelineRunOutcome startPipelineRun(const Model::StartPipelineRunRequest &request)const; + void startPipelineRunAsync(const Model::StartPipelineRunRequest& request, const StartPipelineRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartPipelineRunOutcomeCallable startPipelineRunCallable(const Model::StartPipelineRunRequest& request) const; + StopPipelineJobRunOutcome stopPipelineJobRun(const Model::StopPipelineJobRunRequest &request)const; + void stopPipelineJobRunAsync(const Model::StopPipelineJobRunRequest& request, const StopPipelineJobRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopPipelineJobRunOutcomeCallable stopPipelineJobRunCallable(const Model::StopPipelineJobRunRequest& request) const; + StopPipelineRunOutcome stopPipelineRun(const Model::StopPipelineRunRequest &request)const; + void stopPipelineRunAsync(const Model::StopPipelineRunRequest& request, const StopPipelineRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopPipelineRunOutcomeCallable stopPipelineRunCallable(const Model::StopPipelineRunRequest& request) const; + StopVMDeployOrderOutcome stopVMDeployOrder(const Model::StopVMDeployOrderRequest &request)const; + void stopVMDeployOrderAsync(const Model::StopVMDeployOrderRequest& request, const StopVMDeployOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopVMDeployOrderOutcomeCallable stopVMDeployOrderCallable(const Model::StopVMDeployOrderRequest& request) const; + TransferRepositoryOutcome transferRepository(const Model::TransferRepositoryRequest &request)const; + void transferRepositoryAsync(const Model::TransferRepositoryRequest& request, const TransferRepositoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TransferRepositoryOutcomeCallable transferRepositoryCallable(const Model::TransferRepositoryRequest& request) const; + TriggerRepositoryMirrorSyncOutcome triggerRepositoryMirrorSync(const Model::TriggerRepositoryMirrorSyncRequest &request)const; + void triggerRepositoryMirrorSyncAsync(const Model::TriggerRepositoryMirrorSyncRequest& request, const TriggerRepositoryMirrorSyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TriggerRepositoryMirrorSyncOutcomeCallable triggerRepositoryMirrorSyncCallable(const Model::TriggerRepositoryMirrorSyncRequest& request) const; + UpdateAppMemberOutcome updateAppMember(const Model::UpdateAppMemberRequest &request)const; + void updateAppMemberAsync(const Model::UpdateAppMemberRequest& request, const UpdateAppMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAppMemberOutcomeCallable updateAppMemberCallable(const Model::UpdateAppMemberRequest& request) const; + UpdateApplicationOutcome updateApplication(const Model::UpdateApplicationRequest &request)const; + void updateApplicationAsync(const Model::UpdateApplicationRequest& request, const UpdateApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateApplicationOutcomeCallable updateApplicationCallable(const Model::UpdateApplicationRequest& request) const; + UpdateCheckRunOutcome updateCheckRun(const Model::UpdateCheckRunRequest &request)const; + void updateCheckRunAsync(const Model::UpdateCheckRunRequest& request, const UpdateCheckRunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCheckRunOutcomeCallable updateCheckRunCallable(const Model::UpdateCheckRunRequest& request) const; + UpdateFileOutcome updateFile(const Model::UpdateFileRequest &request)const; + void updateFileAsync(const Model::UpdateFileRequest& request, const UpdateFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFileOutcomeCallable updateFileCallable(const Model::UpdateFileRequest& request) const; + UpdateFlowTagOutcome updateFlowTag(const Model::UpdateFlowTagRequest &request)const; + void updateFlowTagAsync(const Model::UpdateFlowTagRequest& request, const UpdateFlowTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFlowTagOutcomeCallable updateFlowTagCallable(const Model::UpdateFlowTagRequest& request) const; + UpdateFlowTagGroupOutcome updateFlowTagGroup(const Model::UpdateFlowTagGroupRequest &request)const; + void updateFlowTagGroupAsync(const Model::UpdateFlowTagGroupRequest& request, const UpdateFlowTagGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFlowTagGroupOutcomeCallable updateFlowTagGroupCallable(const Model::UpdateFlowTagGroupRequest& request) const; + UpdateGroupOutcome updateGroup(const Model::UpdateGroupRequest &request)const; + void updateGroupAsync(const Model::UpdateGroupRequest& request, const UpdateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGroupOutcomeCallable updateGroupCallable(const Model::UpdateGroupRequest& request) const; + UpdateGroupMemberOutcome updateGroupMember(const Model::UpdateGroupMemberRequest &request)const; + void updateGroupMemberAsync(const Model::UpdateGroupMemberRequest& request, const UpdateGroupMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateGroupMemberOutcomeCallable updateGroupMemberCallable(const Model::UpdateGroupMemberRequest& request) const; + UpdateHostGroupOutcome updateHostGroup(const Model::UpdateHostGroupRequest &request)const; + void updateHostGroupAsync(const Model::UpdateHostGroupRequest& request, const UpdateHostGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateHostGroupOutcomeCallable updateHostGroupCallable(const Model::UpdateHostGroupRequest& request) const; + UpdateMergeRequestOutcome updateMergeRequest(const Model::UpdateMergeRequestRequest &request)const; + void updateMergeRequestAsync(const Model::UpdateMergeRequestRequest& request, const UpdateMergeRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateMergeRequestOutcomeCallable updateMergeRequestCallable(const Model::UpdateMergeRequestRequest& request) const; + UpdateMergeRequestPersonnelOutcome updateMergeRequestPersonnel(const Model::UpdateMergeRequestPersonnelRequest &request)const; + void updateMergeRequestPersonnelAsync(const Model::UpdateMergeRequestPersonnelRequest& request, const UpdateMergeRequestPersonnelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateMergeRequestPersonnelOutcomeCallable updateMergeRequestPersonnelCallable(const Model::UpdateMergeRequestPersonnelRequest& request) const; + UpdatePipelineOutcome updatePipeline(const Model::UpdatePipelineRequest &request)const; + void updatePipelineAsync(const Model::UpdatePipelineRequest& request, const UpdatePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePipelineOutcomeCallable updatePipelineCallable(const Model::UpdatePipelineRequest& request) const; + UpdatePipelineBaseInfoOutcome updatePipelineBaseInfo(const Model::UpdatePipelineBaseInfoRequest &request)const; + void updatePipelineBaseInfoAsync(const Model::UpdatePipelineBaseInfoRequest& request, const UpdatePipelineBaseInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePipelineBaseInfoOutcomeCallable updatePipelineBaseInfoCallable(const Model::UpdatePipelineBaseInfoRequest& request) const; + UpdatePipelineGroupOutcome updatePipelineGroup(const Model::UpdatePipelineGroupRequest &request)const; + void updatePipelineGroupAsync(const Model::UpdatePipelineGroupRequest& request, const UpdatePipelineGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePipelineGroupOutcomeCallable updatePipelineGroupCallable(const Model::UpdatePipelineGroupRequest& request) const; + UpdateProjectFieldOutcome updateProjectField(const Model::UpdateProjectFieldRequest &request)const; + void updateProjectFieldAsync(const Model::UpdateProjectFieldRequest& request, const UpdateProjectFieldAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectFieldOutcomeCallable updateProjectFieldCallable(const Model::UpdateProjectFieldRequest& request) const; + UpdateProjectLabelOutcome updateProjectLabel(const Model::UpdateProjectLabelRequest &request)const; + void updateProjectLabelAsync(const Model::UpdateProjectLabelRequest& request, const UpdateProjectLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectLabelOutcomeCallable updateProjectLabelCallable(const Model::UpdateProjectLabelRequest& request) const; + UpdateProjectMemberOutcome updateProjectMember(const Model::UpdateProjectMemberRequest &request)const; + void updateProjectMemberAsync(const Model::UpdateProjectMemberRequest& request, const UpdateProjectMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectMemberOutcomeCallable updateProjectMemberCallable(const Model::UpdateProjectMemberRequest& request) const; + UpdateProtectedBranchesOutcome updateProtectedBranches(const Model::UpdateProtectedBranchesRequest &request)const; + void updateProtectedBranchesAsync(const Model::UpdateProtectedBranchesRequest& request, const UpdateProtectedBranchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProtectedBranchesOutcomeCallable updateProtectedBranchesCallable(const Model::UpdateProtectedBranchesRequest& request) const; + UpdatePushReviewOnOffOutcome updatePushReviewOnOff(const Model::UpdatePushReviewOnOffRequest &request)const; + void updatePushReviewOnOffAsync(const Model::UpdatePushReviewOnOffRequest& request, const UpdatePushReviewOnOffAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePushReviewOnOffOutcomeCallable updatePushReviewOnOffCallable(const Model::UpdatePushReviewOnOffRequest& request) const; + UpdatePushRuleOutcome updatePushRule(const Model::UpdatePushRuleRequest &request)const; + void updatePushRuleAsync(const Model::UpdatePushRuleRequest& request, const UpdatePushRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdatePushRuleOutcomeCallable updatePushRuleCallable(const Model::UpdatePushRuleRequest& request) const; + UpdateRepositoryOutcome updateRepository(const Model::UpdateRepositoryRequest &request)const; + void updateRepositoryAsync(const Model::UpdateRepositoryRequest& request, const UpdateRepositoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRepositoryOutcomeCallable updateRepositoryCallable(const Model::UpdateRepositoryRequest& request) const; + UpdateRepositoryMemberOutcome updateRepositoryMember(const Model::UpdateRepositoryMemberRequest &request)const; + void updateRepositoryMemberAsync(const Model::UpdateRepositoryMemberRequest& request, const UpdateRepositoryMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateRepositoryMemberOutcomeCallable updateRepositoryMemberCallable(const Model::UpdateRepositoryMemberRequest& request) const; + UpdateResourceMemberOutcome updateResourceMember(const Model::UpdateResourceMemberRequest &request)const; + void updateResourceMemberAsync(const Model::UpdateResourceMemberRequest& request, const UpdateResourceMemberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateResourceMemberOutcomeCallable updateResourceMemberCallable(const Model::UpdateResourceMemberRequest& request) const; + UpdateTestCaseOutcome updateTestCase(const Model::UpdateTestCaseRequest &request)const; + void updateTestCaseAsync(const Model::UpdateTestCaseRequest& request, const UpdateTestCaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTestCaseOutcomeCallable updateTestCaseCallable(const Model::UpdateTestCaseRequest& request) const; + UpdateTestResultOutcome updateTestResult(const Model::UpdateTestResultRequest &request)const; + void updateTestResultAsync(const Model::UpdateTestResultRequest& request, const UpdateTestResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateTestResultOutcomeCallable updateTestResultCallable(const Model::UpdateTestResultRequest& request) const; + UpdateVariableGroupOutcome updateVariableGroup(const Model::UpdateVariableGroupRequest &request)const; + void updateVariableGroupAsync(const Model::UpdateVariableGroupRequest& request, const UpdateVariableGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateVariableGroupOutcomeCallable updateVariableGroupCallable(const Model::UpdateVariableGroupRequest& request) const; + UpdateWorkItemOutcome updateWorkItem(const Model::UpdateWorkItemRequest &request)const; + void updateWorkItemAsync(const Model::UpdateWorkItemRequest& request, const UpdateWorkItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateWorkItemOutcomeCallable updateWorkItemCallable(const Model::UpdateWorkItemRequest& request) const; + UpdateWorkitemCommentOutcome updateWorkitemComment(const Model::UpdateWorkitemCommentRequest &request)const; + void updateWorkitemCommentAsync(const Model::UpdateWorkitemCommentRequest& request, const UpdateWorkitemCommentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateWorkitemCommentOutcomeCallable updateWorkitemCommentCallable(const Model::UpdateWorkitemCommentRequest& request) const; + UpdateWorkitemFieldOutcome updateWorkitemField(const Model::UpdateWorkitemFieldRequest &request)const; + void updateWorkitemFieldAsync(const Model::UpdateWorkitemFieldRequest& request, const UpdateWorkitemFieldAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateWorkitemFieldOutcomeCallable updateWorkitemFieldCallable(const Model::UpdateWorkitemFieldRequest& request) const; + WorkitemAttachmentCreateOutcome workitemAttachmentCreate(const Model::WorkitemAttachmentCreateRequest &request)const; + void workitemAttachmentCreateAsync(const Model::WorkitemAttachmentCreateRequest& request, const WorkitemAttachmentCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + WorkitemAttachmentCreateOutcomeCallable workitemAttachmentCreateCallable(const Model::WorkitemAttachmentCreateRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_DEVOPS_DEVOPSCLIENT_H_ diff --git a/devops/include/alibabacloud/devops/DevopsExport.h b/devops/include/alibabacloud/devops/DevopsExport.h new file mode 100644 index 000000000..2a57c460d --- /dev/null +++ b/devops/include/alibabacloud/devops/DevopsExport.h @@ -0,0 +1,32 @@ +/* + * 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_DEVOPS_DEVOPSEXPORT_H_ +#define ALIBABACLOUD_DEVOPS_DEVOPSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_DEVOPS_LIBRARY) +# define ALIBABACLOUD_DEVOPS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_DEVOPS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_DEVOPS_EXPORT +#endif + +#endif // !ALIBABACLOUD_DEVOPS_DEVOPSEXPORT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/AddGroupMemberRequest.h b/devops/include/alibabacloud/devops/model/AddGroupMemberRequest.h new file mode 100644 index 000000000..813bdb5ff --- /dev/null +++ b/devops/include/alibabacloud/devops/model/AddGroupMemberRequest.h @@ -0,0 +1,55 @@ +/* + * 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_DEVOPS_MODEL_ADDGROUPMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ADDGROUPMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT AddGroupMemberRequest : public RoaServiceRequest { +public: + struct Body { + int accessLevel; + std::string aliyunPks; + }; + AddGroupMemberRequest(); + ~AddGroupMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getGroupId() const; + void setGroupId(long groupId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long groupId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ADDGROUPMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/AddGroupMemberResult.h b/devops/include/alibabacloud/devops/model/AddGroupMemberResult.h new file mode 100644 index 000000000..576c1a752 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/AddGroupMemberResult.h @@ -0,0 +1,71 @@ +/* + * 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_DEVOPS_MODEL_ADDGROUPMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ADDGROUPMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT AddGroupMemberResult : public ServiceResult + { + public: + struct ResultItem + { + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string state; + long sourceId; + long id; + int accessLevel; + std::string name; + }; + + + AddGroupMemberResult(); + explicit AddGroupMemberResult(const std::string &payload); + ~AddGroupMemberResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ADDGROUPMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/AddPipelineRelationsRequest.h b/devops/include/alibabacloud/devops/model/AddPipelineRelationsRequest.h new file mode 100644 index 000000000..8aa2e0b53 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/AddPipelineRelationsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_ADDPIPELINERELATIONSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ADDPIPELINERELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT AddPipelineRelationsRequest : public RoaServiceRequest { +public: + AddPipelineRelationsRequest(); + ~AddPipelineRelationsRequest(); + std::string getRelObjectType() const; + void setRelObjectType(const std::string &relObjectType); + std::string getRelObjectIds() const; + void setRelObjectIds(const std::string &relObjectIds); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string relObjectType_; + std::string relObjectIds_; + long pipelineId_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ADDPIPELINERELATIONSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/AddPipelineRelationsResult.h b/devops/include/alibabacloud/devops/model/AddPipelineRelationsResult.h new file mode 100644 index 000000000..f742fb38f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/AddPipelineRelationsResult.h @@ -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_DEVOPS_MODEL_ADDPIPELINERELATIONSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ADDPIPELINERELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT AddPipelineRelationsResult : public ServiceResult + { + public: + + + AddPipelineRelationsResult(); + explicit AddPipelineRelationsResult(const std::string &payload); + ~AddPipelineRelationsResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ADDPIPELINERELATIONSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/AddRepositoryMemberRequest.h b/devops/include/alibabacloud/devops/model/AddRepositoryMemberRequest.h new file mode 100644 index 000000000..a9f0a26ed --- /dev/null +++ b/devops/include/alibabacloud/devops/model/AddRepositoryMemberRequest.h @@ -0,0 +1,55 @@ +/* + * 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_DEVOPS_MODEL_ADDREPOSITORYMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ADDREPOSITORYMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT AddRepositoryMemberRequest : public RoaServiceRequest { +public: + struct Body { + int accessLevel; + std::string aliyunPks; + }; + AddRepositoryMemberRequest(); + ~AddRepositoryMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ADDREPOSITORYMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/AddRepositoryMemberResult.h b/devops/include/alibabacloud/devops/model/AddRepositoryMemberResult.h new file mode 100644 index 000000000..d781266fb --- /dev/null +++ b/devops/include/alibabacloud/devops/model/AddRepositoryMemberResult.h @@ -0,0 +1,68 @@ +/* + * 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_DEVOPS_MODEL_ADDREPOSITORYMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ADDREPOSITORYMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT AddRepositoryMemberResult : public ServiceResult + { + public: + struct ResultItem + { + std::string email; + std::string avatarUrl; + std::string state; + std::string externUserId; + long id; + int accessLevel; + }; + + + AddRepositoryMemberResult(); + explicit AddRepositoryMemberResult(const std::string &payload); + ~AddRepositoryMemberResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ADDREPOSITORYMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/AddWebhookRequest.h b/devops/include/alibabacloud/devops/model/AddWebhookRequest.h new file mode 100644 index 000000000..bc1fe962a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/AddWebhookRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_ADDWEBHOOKREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ADDWEBHOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT AddWebhookRequest : public RoaServiceRequest { +public: + AddWebhookRequest(); + ~AddWebhookRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + std::string body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ADDWEBHOOKREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/AddWebhookResult.h b/devops/include/alibabacloud/devops/model/AddWebhookResult.h new file mode 100644 index 000000000..eeab14f90 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/AddWebhookResult.h @@ -0,0 +1,74 @@ +/* + * 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_DEVOPS_MODEL_ADDWEBHOOKRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ADDWEBHOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT AddWebhookResult : public ServiceResult + { + public: + struct Result + { + std::string description; + std::string lastTestResult; + bool pushEvents; + std::string createdAt; + bool tagPushEvents; + long id; + bool enableSslVerification; + bool noteEvents; + long repositoryId; + bool mergeRequestsEvents; + std::string url; + std::string secretToken; + }; + + + AddWebhookResult(); + explicit AddWebhookResult(const std::string &payload); + ~AddWebhookResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ADDWEBHOOKRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CloseMergeRequestRequest.h b/devops/include/alibabacloud/devops/model/CloseMergeRequestRequest.h new file mode 100644 index 000000000..0247c7730 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CloseMergeRequestRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_CLOSEMERGEREQUESTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CLOSEMERGEREQUESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CloseMergeRequestRequest : public RoaServiceRequest { +public: + CloseMergeRequestRequest(); + ~CloseMergeRequestRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CLOSEMERGEREQUESTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CloseMergeRequestResult.h b/devops/include/alibabacloud/devops/model/CloseMergeRequestResult.h new file mode 100644 index 000000000..07be938b8 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CloseMergeRequestResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_CLOSEMERGEREQUESTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CLOSEMERGEREQUESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CloseMergeRequestResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + CloseMergeRequestResult(); + explicit CloseMergeRequestResult(const std::string &payload); + ~CloseMergeRequestResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CLOSEMERGEREQUESTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateAppMembersRequest.h b/devops/include/alibabacloud/devops/model/CreateAppMembersRequest.h new file mode 100644 index 000000000..d84b62c76 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateAppMembersRequest.h @@ -0,0 +1,58 @@ +/* + * 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_DEVOPS_MODEL_CREATEAPPMEMBERSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEAPPMEMBERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateAppMembersRequest : public RoaServiceRequest { +public: + struct Body { + std::string string; + std::vector roleNames; + struct PlayerListItem { + std::string id; + std::string type; + }; + playerListItem playerListItem; + std::vector playerList; + }; + CreateAppMembersRequest(); + ~CreateAppMembersRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAppName() const; + void setAppName(const std::string &appName); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string appName_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEAPPMEMBERSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateAppMembersResult.h b/devops/include/alibabacloud/devops/model/CreateAppMembersResult.h new file mode 100644 index 000000000..c913d2dde --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateAppMembersResult.h @@ -0,0 +1,49 @@ +/* + * 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_DEVOPS_MODEL_CREATEAPPMEMBERSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEAPPMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateAppMembersResult : public ServiceResult + { + public: + + + CreateAppMembersResult(); + explicit CreateAppMembersResult(const std::string &payload); + ~CreateAppMembersResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEAPPMEMBERSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateBranchRequest.h b/devops/include/alibabacloud/devops/model/CreateBranchRequest.h new file mode 100644 index 000000000..2e6f6521c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateBranchRequest.h @@ -0,0 +1,55 @@ +/* + * 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_DEVOPS_MODEL_CREATEBRANCHREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEBRANCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateBranchRequest : public RoaServiceRequest { +public: + struct Body { + std::string ref; + std::string branchName; + }; + CreateBranchRequest(); + ~CreateBranchRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryId() const; + void setRepositoryId(const std::string &repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEBRANCHREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateBranchResult.h b/devops/include/alibabacloud/devops/model/CreateBranchResult.h new file mode 100644 index 000000000..55212bba1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateBranchResult.h @@ -0,0 +1,80 @@ +/* + * 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_DEVOPS_MODEL_CREATEBRANCHRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEBRANCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateBranchResult : public ServiceResult + { + public: + struct Result + { + struct Commit + { + std::string authoredDate; + std::string authorName; + std::string message; + std::string committedDate; + std::string committerEmail; + std::vector parentIds; + std::string createdAt; + std::string shortId; + std::string title; + std::string id; + std::string authorEmail; + std::string committerName; + }; + bool _protected; + Commit commit; + std::string name; + }; + + + CreateBranchResult(); + explicit CreateBranchResult(const std::string &payload); + ~CreateBranchResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEBRANCHRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateCheckRunRequest.h b/devops/include/alibabacloud/devops/model/CreateCheckRunRequest.h new file mode 100644 index 000000000..1af922d3f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateCheckRunRequest.h @@ -0,0 +1,87 @@ +/* + * 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_DEVOPS_MODEL_CREATECHECKRUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATECHECKRUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateCheckRunRequest : public RoaServiceRequest { +public: + struct Body { + std::string conclusion; + struct Output { + std::string summary; + struct ImagesItem { + std::string imageUrl; + std::string alt; + std::string caption; + }; + imagesItem imagesItem; + std::vector images; + std::string text; + std::string title; + }; + output output; + std::string completedAt; + std::string detailsUrl; + std::string name; + std::string startedAt; + std::string externalId; + struct AnnotationsItem { + std::string path; + long endLine; + long startColumn; + std::string annotationLevel; + long startLine; + std::string message; + std::string title; + std::string rawDetails; + long endColumn; + }; + annotationsItem annotationsItem; + std::vector annotations; + std::string headSha; + std::string status; + }; + CreateCheckRunRequest(); + ~CreateCheckRunRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATECHECKRUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateCheckRunResult.h b/devops/include/alibabacloud/devops/model/CreateCheckRunResult.h new file mode 100644 index 000000000..ccf76b6fb --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateCheckRunResult.h @@ -0,0 +1,115 @@ +/* + * 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_DEVOPS_MODEL_CREATECHECKRUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATECHECKRUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateCheckRunResult : public ServiceResult + { + public: + struct Result + { + struct CheckSuite + { + long id; + }; + struct Writer + { + std::string type; + std::string logoUrl; + std::string id; + std::string slug; + std::string name; + }; + struct Output + { + struct Output_images + { + std::string alt; + std::string imageUrl; + std::string caption; + }; + std::vector images; + std::string title; + std::string summary; + std::string text; + }; + struct Check_run_annotations + { + std::string path; + long startLine; + std::string message; + std::string annotationLevel; + long endLine; + long endColumn; + std::string title; + long id; + std::string rawDetails; + long startColumn; + }; + std::string status; + std::string createdAt; + std::string externalId; + std::vector annotations; + std::string updatedAt; + std::string name; + std::string headSha; + CheckSuite checkSuite; + Output output; + std::string detailsUrl; + std::string completedAt; + long id; + std::string startedAt; + Writer writer; + std::string conclusion; + }; + + + CreateCheckRunResult(); + explicit CreateCheckRunResult(const std::string &payload); + ~CreateCheckRunResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATECHECKRUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateCommentRequest.h b/devops/include/alibabacloud/devops/model/CreateCommentRequest.h new file mode 100644 index 000000000..cc28873f9 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateCommentRequest.h @@ -0,0 +1,64 @@ +/* + * 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_DEVOPS_MODEL_CREATECOMMENTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateCommentRequest : public RoaServiceRequest { +public: + struct Body { + int lineNumber; + std::string filePath; + bool draft; + std::string patchSetBizId; + std::string commentType; + std::string parentCommentBizId; + std::string content; + bool resolved; + }; + CreateCommentRequest(); + ~CreateCommentRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + body body_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMENTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateCommentResult.h b/devops/include/alibabacloud/devops/model/CreateCommentResult.h new file mode 100644 index 000000000..4bb08f5ec --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateCommentResult.h @@ -0,0 +1,96 @@ +/* + * 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_DEVOPS_MODEL_CREATECOMMENTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateCommentResult : public ServiceResult + { + public: + struct Result + { + struct Author + { + std::string avatarUrl; + std::string email; + std::string aliyunPk; + std::string username; + std::string state; + long id; + std::string name; + }; + struct RelatedPatchSet + { + std::string patchSetNo; + std::string commitId; + std::string patchSetBizId; + std::string createdAt; + std::string shortId; + std::string relatedMergeItemType; + std::string patchSetName; + }; + RelatedPatchSet relatedPatchSet; + std::string filePath; + std::string parentCommentBizId; + std::string commentTime; + std::string lineNumber; + std::string rootCommentBizId; + std::string lastEditTime; + std::string commentType; + std::string commentBizId; + std::string state; + std::string content; + Author author; + bool resolved; + bool deleted; + }; + + + CreateCommentResult(); + explicit CreateCommentResult(const std::string &payload); + ~CreateCommentResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMENTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateCommitStatusRequest.h b/devops/include/alibabacloud/devops/model/CreateCommitStatusRequest.h new file mode 100644 index 000000000..47826ebd1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateCommitStatusRequest.h @@ -0,0 +1,60 @@ +/* + * 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_DEVOPS_MODEL_CREATECOMMITSTATUSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMITSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateCommitStatusRequest : public RoaServiceRequest { +public: + struct Body { + std::string context; + std::string description; + std::string state; + std::string targetUrl; + }; + CreateCommitStatusRequest(); + ~CreateCommitStatusRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + std::string getSha() const; + void setSha(const std::string &sha); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + body body_; + std::string sha_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMITSTATUSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateCommitStatusResult.h b/devops/include/alibabacloud/devops/model/CreateCommitStatusResult.h new file mode 100644 index 000000000..76fd36356 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateCommitStatusResult.h @@ -0,0 +1,76 @@ +/* + * 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_DEVOPS_MODEL_CREATECOMMITSTATUSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMITSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateCommitStatusResult : public ServiceResult + { + public: + struct Result + { + struct Creator + { + std::string type; + std::string avatarUrl; + long aliyunPk; + std::string login; + }; + std::string context; + std::string description; + std::string state; + Creator creator; + long id; + std::string targetUrl; + std::string sha; + }; + + + CreateCommitStatusResult(); + explicit CreateCommitStatusResult(const std::string &payload); + ~CreateCommitStatusResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMITSTATUSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateCommitWithMultipleFilesRequest.h b/devops/include/alibabacloud/devops/model/CreateCommitWithMultipleFilesRequest.h new file mode 100644 index 000000000..d687e8498 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateCommitWithMultipleFilesRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_CREATECOMMITWITHMULTIPLEFILESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMITWITHMULTIPLEFILESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateCommitWithMultipleFilesRequest : public RoaServiceRequest { +public: + struct Body { + std::string commitMessage; + std::string branch; + struct ActionsItem { + std::string filePath; + std::string action; + std::string content; + std::string previousPath; + }; + actionsItem actionsItem; + std::vector actions; + }; + CreateCommitWithMultipleFilesRequest(); + ~CreateCommitWithMultipleFilesRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMITWITHMULTIPLEFILESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateCommitWithMultipleFilesResult.h b/devops/include/alibabacloud/devops/model/CreateCommitWithMultipleFilesResult.h new file mode 100644 index 000000000..be2e8674e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateCommitWithMultipleFilesResult.h @@ -0,0 +1,98 @@ +/* + * 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_DEVOPS_MODEL_CREATECOMMITWITHMULTIPLEFILESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMITWITHMULTIPLEFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateCommitWithMultipleFilesResult : public ServiceResult + { + public: + struct Result + { + struct Author + { + std::string email; + std::string avatarUrl; + std::string aliyunPk; + std::string username; + std::string state; + std::string websiteUrl; + long id; + std::string name; + }; + struct Committer + { + std::string email; + std::string avatarUrl; + std::string aliyunPk; + std::string username; + std::string state; + std::string websiteUrl; + long id; + std::string name; + }; + std::string authoredDate; + std::string message; + std::string authorName; + std::string createdAt; + std::string title; + std::string authorEmail; + std::string committerEmail; + std::string committedDate; + std::vector parentIds; + Author author; + std::string shortId; + Committer committer; + std::string id; + std::string committerName; + }; + + + CreateCommitWithMultipleFilesResult(); + explicit CreateCommitWithMultipleFilesResult(const std::string &payload); + ~CreateCommitWithMultipleFilesResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATECOMMITWITHMULTIPLEFILESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateDeployKeyRequest.h b/devops/include/alibabacloud/devops/model/CreateDeployKeyRequest.h new file mode 100644 index 000000000..c765def1d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateDeployKeyRequest.h @@ -0,0 +1,55 @@ +/* + * 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_DEVOPS_MODEL_CREATEDEPLOYKEYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEDEPLOYKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateDeployKeyRequest : public RoaServiceRequest { +public: + struct Body { + std::string title; + std::string key; + }; + CreateDeployKeyRequest(); + ~CreateDeployKeyRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEDEPLOYKEYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateDeployKeyResult.h b/devops/include/alibabacloud/devops/model/CreateDeployKeyResult.h new file mode 100644 index 000000000..65c97ee2d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateDeployKeyResult.h @@ -0,0 +1,67 @@ +/* + * 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_DEVOPS_MODEL_CREATEDEPLOYKEYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEDEPLOYKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateDeployKeyResult : public ServiceResult + { + public: + struct Result + { + std::string fingerprint; + std::string createdAt; + std::string title; + long id; + std::string key; + }; + + + CreateDeployKeyResult(); + explicit CreateDeployKeyResult(const std::string &payload); + ~CreateDeployKeyResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEDEPLOYKEYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateFileRequest.h b/devops/include/alibabacloud/devops/model/CreateFileRequest.h new file mode 100644 index 000000000..ecc9c31d6 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateFileRequest.h @@ -0,0 +1,58 @@ +/* + * 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_DEVOPS_MODEL_CREATEFILEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateFileRequest : public RoaServiceRequest { +public: + struct Body { + std::string filePath; + std::string encoding; + std::string commitMessage; + std::string content; + std::string branchName; + }; + CreateFileRequest(); + ~CreateFileRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEFILEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateFileResult.h b/devops/include/alibabacloud/devops/model/CreateFileResult.h new file mode 100644 index 000000000..c9b7a4f96 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateFileResult.h @@ -0,0 +1,64 @@ +/* + * 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_DEVOPS_MODEL_CREATEFILERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateFileResult : public ServiceResult + { + public: + struct Result + { + std::string filePath; + std::string branchName; + }; + + + CreateFileResult(); + explicit CreateFileResult(const std::string &payload); + ~CreateFileResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEFILERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateFlowTagGroupRequest.h b/devops/include/alibabacloud/devops/model/CreateFlowTagGroupRequest.h new file mode 100644 index 000000000..098cc6142 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateFlowTagGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_CREATEFLOWTAGGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEFLOWTAGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateFlowTagGroupRequest : public RoaServiceRequest { +public: + CreateFlowTagGroupRequest(); + ~CreateFlowTagGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string organizationId_; + std::string name_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEFLOWTAGGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateFlowTagGroupResult.h b/devops/include/alibabacloud/devops/model/CreateFlowTagGroupResult.h new file mode 100644 index 000000000..ed6322ded --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateFlowTagGroupResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_CREATEFLOWTAGGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEFLOWTAGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateFlowTagGroupResult : public ServiceResult + { + public: + + + CreateFlowTagGroupResult(); + explicit CreateFlowTagGroupResult(const std::string &payload); + ~CreateFlowTagGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + long getId()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + long id_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEFLOWTAGGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateFlowTagRequest.h b/devops/include/alibabacloud/devops/model/CreateFlowTagRequest.h new file mode 100644 index 000000000..556598909 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateFlowTagRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_CREATEFLOWTAGREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEFLOWTAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateFlowTagRequest : public RoaServiceRequest { +public: + CreateFlowTagRequest(); + ~CreateFlowTagRequest(); + std::string getColor() const; + void setColor(const std::string &color); + long getFlowTagGroupId() const; + void setFlowTagGroupId(long flowTagGroupId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string color_; + long flowTagGroupId_; + std::string organizationId_; + std::string name_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEFLOWTAGREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateFlowTagResult.h b/devops/include/alibabacloud/devops/model/CreateFlowTagResult.h new file mode 100644 index 000000000..8ea823fad --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateFlowTagResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_CREATEFLOWTAGRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEFLOWTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateFlowTagResult : public ServiceResult + { + public: + + + CreateFlowTagResult(); + explicit CreateFlowTagResult(const std::string &payload); + ~CreateFlowTagResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + long getId()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + long id_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEFLOWTAGRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateHostGroupRequest.h b/devops/include/alibabacloud/devops/model/CreateHostGroupRequest.h new file mode 100644 index 000000000..2e3082c69 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateHostGroupRequest.h @@ -0,0 +1,72 @@ +/* + * 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_DEVOPS_MODEL_CREATEHOSTGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEHOSTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateHostGroupRequest : public RoaServiceRequest { +public: + CreateHostGroupRequest(); + ~CreateHostGroupRequest(); + long getServiceConnectionId() const; + void setServiceConnectionId(long serviceConnectionId); + std::string getMachineInfos() const; + void setMachineInfos(const std::string &machineInfos); + std::string getTagIds() const; + void setTagIds(const std::string &tagIds); + std::string getAliyunRegion() const; + void setAliyunRegion(const std::string &aliyunRegion); + std::string getEnvId() const; + void setEnvId(const std::string &envId); + std::string getType() const; + void setType(const std::string &type); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getEcsLabelKey() const; + void setEcsLabelKey(const std::string &ecsLabelKey); + std::string getName() const; + void setName(const std::string &name); + std::string getEcsLabelValue() const; + void setEcsLabelValue(const std::string &ecsLabelValue); + std::string getEcsType() const; + void setEcsType(const std::string &ecsType); + +private: + long serviceConnectionId_; + std::string machineInfos_; + std::string tagIds_; + std::string aliyunRegion_; + std::string envId_; + std::string type_; + std::string organizationId_; + std::string ecsLabelKey_; + std::string name_; + std::string ecsLabelValue_; + std::string ecsType_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEHOSTGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateHostGroupResult.h b/devops/include/alibabacloud/devops/model/CreateHostGroupResult.h new file mode 100644 index 000000000..a78bd903a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateHostGroupResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_CREATEHOSTGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEHOSTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateHostGroupResult : public ServiceResult + { + public: + + + CreateHostGroupResult(); + explicit CreateHostGroupResult(const std::string &payload); + ~CreateHostGroupResult(); + std::string getRequestId()const; + long getHostGroupId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + long hostGroupId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEHOSTGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateMergeRequestRequest.h b/devops/include/alibabacloud/devops/model/CreateMergeRequestRequest.h new file mode 100644 index 000000000..9fe527ad8 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateMergeRequestRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_CREATEMERGEREQUESTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEMERGEREQUESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateMergeRequestRequest : public RoaServiceRequest { +public: + struct Body { + long targetProjectId; + std::string string; + std::vector reviewerIds; + std::string createFrom; + long sourceProjectId; + std::string sourceBranch; + std::string workItemIds; + std::string description; + std::string title; + std::string targetBranch; + }; + CreateMergeRequestRequest(); + ~CreateMergeRequestRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEMERGEREQUESTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateMergeRequestResult.h b/devops/include/alibabacloud/devops/model/CreateMergeRequestResult.h new file mode 100644 index 000000000..30c5e1f44 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateMergeRequestResult.h @@ -0,0 +1,114 @@ +/* + * 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_DEVOPS_MODEL_CREATEMERGEREQUESTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEMERGEREQUESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateMergeRequestResult : public ServiceResult + { + public: + struct Result + { + struct Author + { + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + long id; + std::string name; + }; + struct ReviewersItem + { + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + long id; + bool hasReviewed; + std::string reviewOpinionStatus; + std::string name; + }; + struct SubscribersItem + { + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + long id; + std::string name; + }; + std::string status; + long localId; + std::string description; + int ahead; + int behind; + std::vector subscribers; + std::string createTime; + long projectId; + std::string title; + std::string detailUrl; + std::string webUrl; + bool allRequirementsPass; + long sourceProjectId; + std::string mrType; + bool supportMergeFastForwardOnly; + std::vector reviewers; + std::string createFrom; + std::string mrBizId; + std::string sourceBranch; + std::string updateTime; + Author author; + long targetProjectId; + std::string targetBranch; + }; + + + CreateMergeRequestResult(); + explicit CreateMergeRequestResult(const std::string &payload); + ~CreateMergeRequestResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEMERGEREQUESTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateOAuthTokenRequest.h b/devops/include/alibabacloud/devops/model/CreateOAuthTokenRequest.h new file mode 100644 index 000000000..d501d3ceb --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateOAuthTokenRequest.h @@ -0,0 +1,50 @@ +/* + * 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_DEVOPS_MODEL_CREATEOAUTHTOKENREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEOAUTHTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateOAuthTokenRequest : public RoaServiceRequest { +public: + struct Body { + std::string clientId; + std::string code; + std::string clientSecret; + std::string scope; + std::string login; + std::string grantType; + }; + CreateOAuthTokenRequest(); + ~CreateOAuthTokenRequest(); + body getBody() const; + void setBody(const body &body); + +private: + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEOAUTHTOKENREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateOAuthTokenResult.h b/devops/include/alibabacloud/devops/model/CreateOAuthTokenResult.h new file mode 100644 index 000000000..b167f3ad0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateOAuthTokenResult.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_CREATEOAUTHTOKENRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEOAUTHTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateOAuthTokenResult : public ServiceResult + { + public: + struct Result + { + std::string tokenType; + std::string scope; + std::string accessToken; + std::string id; + }; + + + CreateOAuthTokenResult(); + explicit CreateOAuthTokenResult(const std::string &payload); + ~CreateOAuthTokenResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + std::string success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEOAUTHTOKENRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreatePipelineGroupRequest.h b/devops/include/alibabacloud/devops/model/CreatePipelineGroupRequest.h new file mode 100644 index 000000000..079f0f58b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreatePipelineGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_CREATEPIPELINEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPIPELINEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreatePipelineGroupRequest : public RoaServiceRequest { +public: + CreatePipelineGroupRequest(); + ~CreatePipelineGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string organizationId_; + std::string name_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPIPELINEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreatePipelineGroupResult.h b/devops/include/alibabacloud/devops/model/CreatePipelineGroupResult.h new file mode 100644 index 000000000..552de717b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreatePipelineGroupResult.h @@ -0,0 +1,64 @@ +/* + * 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_DEVOPS_MODEL_CREATEPIPELINEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPIPELINEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreatePipelineGroupResult : public ServiceResult + { + public: + struct PipelineGroup + { + long id; + std::string name; + }; + + + CreatePipelineGroupResult(); + explicit CreatePipelineGroupResult(const std::string &payload); + ~CreatePipelineGroupResult(); + std::string getRequestId()const; + PipelineGroup getPipelineGroup()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + PipelineGroup pipelineGroup_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPIPELINEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreatePipelineRequest.h b/devops/include/alibabacloud/devops/model/CreatePipelineRequest.h new file mode 100644 index 000000000..7ce9c9f51 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreatePipelineRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_CREATEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreatePipelineRequest : public RoaServiceRequest { +public: + CreatePipelineRequest(); + ~CreatePipelineRequest(); + std::string getContent() const; + void setContent(const std::string &content); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string content_; + std::string organizationId_; + std::string name_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPIPELINEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreatePipelineResult.h b/devops/include/alibabacloud/devops/model/CreatePipelineResult.h new file mode 100644 index 000000000..fa042e6a1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreatePipelineResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_CREATEPIPELINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPIPELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreatePipelineResult : public ServiceResult + { + public: + + + CreatePipelineResult(); + explicit CreatePipelineResult(const std::string &payload); + ~CreatePipelineResult(); + std::string getRequestId()const; + long getPipelinId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + long pipelinId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPIPELINERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateProjectLabelRequest.h b/devops/include/alibabacloud/devops/model/CreateProjectLabelRequest.h new file mode 100644 index 000000000..e1c3e32e9 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateProjectLabelRequest.h @@ -0,0 +1,56 @@ +/* + * 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_DEVOPS_MODEL_CREATEPROJECTLABELREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPROJECTLABELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateProjectLabelRequest : public RoaServiceRequest { +public: + struct Body { + std::string color; + std::string name; + std::string description; + }; + CreateProjectLabelRequest(); + ~CreateProjectLabelRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPROJECTLABELREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateProjectLabelResult.h b/devops/include/alibabacloud/devops/model/CreateProjectLabelResult.h new file mode 100644 index 000000000..966901724 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateProjectLabelResult.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_CREATEPROJECTLABELRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPROJECTLABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateProjectLabelResult : public ServiceResult + { + public: + struct Result + { + std::string description; + std::string color; + std::string id; + std::string name; + }; + + + CreateProjectLabelResult(); + explicit CreateProjectLabelResult(const std::string &payload); + ~CreateProjectLabelResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPROJECTLABELRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateProjectRequest.h b/devops/include/alibabacloud/devops/model/CreateProjectRequest.h new file mode 100644 index 000000000..29972e976 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateProjectRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_CREATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPROJECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateProjectRequest : public RoaServiceRequest { +public: + struct Body { + std::string templateIdentifier; + std::string scope; + std::string name; + std::string customCode; + }; + CreateProjectRequest(); + ~CreateProjectRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPROJECTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateProjectResult.h b/devops/include/alibabacloud/devops/model/CreateProjectResult.h new file mode 100644 index 000000000..72029dfd7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateProjectResult.h @@ -0,0 +1,78 @@ +/* + * 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_DEVOPS_MODEL_CREATEPROJECTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateProjectResult : public ServiceResult + { + public: + struct Project + { + std::string typeIdentifier; + std::string description; + std::string statusStageIdentifier; + std::string categoryIdentifier; + long gmtModified; + std::string creator; + std::string name; + std::string organizationIdentifier; + long gmtCreate; + std::string identifier; + std::string scope; + std::string logicalStatus; + std::string icon; + std::string customCode; + std::string modifier; + std::string statusIdentifier; + }; + + + CreateProjectResult(); + explicit CreateProjectResult(const std::string &payload); + ~CreateProjectResult(); + Project getProject()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Project project_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateProtectdBranchRequest.h b/devops/include/alibabacloud/devops/model/CreateProtectdBranchRequest.h new file mode 100644 index 000000000..bf94691a2 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateProtectdBranchRequest.h @@ -0,0 +1,107 @@ +/* + * 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_DEVOPS_MODEL_CREATEPROTECTDBRANCHREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPROTECTDBRANCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateProtectdBranchRequest : public RoaServiceRequest { +public: + struct Body { + int integer; + std::vector allowPushRoles; + struct TestSettingDTO { + struct SensitiveInfoDetection { + std::string message; + bool enabled; + }; + sensitiveInfoDetection sensitiveInfoDetection; + bool isRequired; + struct CheckTaskQualityConfig { + std::string bizNo; + std::string taskName; + std::string message; + bool enabled; + }; + checkTaskQualityConfig checkTaskQualityConfig; + struct CodeGuidelinesDetection { + std::string message; + bool enabled; + }; + codeGuidelinesDetection codeGuidelinesDetection; + struct CheckConfig { + struct CheckItemsItem { + bool isRequired; + std::string name; + }; + checkItemsItem checkItemsItem; + std::vector checkItems; + }; + checkConfig checkConfig; + }; + testSettingDTO testSettingDTO; + std::string string; + std::vector allowPushUserIds; + std::string string; + std::vector allowMergeUserIds; + struct MergeRequestSetting { + std::string mrMode; + std::string string; + std::vector defaultAssignees; + int minimumApproval; + bool isRequired; + bool isRequireDiscussionProcessed; + int integer; + std::vector allowMergeRequestRoles; + std::string whiteList; + bool isResetApprovalWhenNewPush; + bool isAllowSelfApproval; + }; + mergeRequestSetting mergeRequestSetting; + long id; + std::string branch; + int integer; + std::vector allowMergeRoles; + }; + CreateProtectdBranchRequest(); + ~CreateProtectdBranchRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPROTECTDBRANCHREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateProtectdBranchResult.h b/devops/include/alibabacloud/devops/model/CreateProtectdBranchResult.h new file mode 100644 index 000000000..d74219e83 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateProtectdBranchResult.h @@ -0,0 +1,116 @@ +/* + * 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_DEVOPS_MODEL_CREATEPROTECTDBRANCHRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPROTECTDBRANCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateProtectdBranchResult : public ServiceResult + { + public: + struct Result + { + struct MergeRequestSetting + { + bool isAllowSelfApproval; + bool isRequired; + int minimumApproval; + std::vector defaultAssignees; + std::vector allowMergeRequestRoles; + std::string mrMode; + bool isResetApprovalWhenNewPush; + std::string whiteList; + bool isRequireDiscussionProcessed; + }; + struct TestSettingDTO + { + struct CodeGuidelinesDetection + { + std::string message; + bool enabled; + }; + struct SensitiveInfoDetection + { + std::string message; + bool enabled; + }; + struct CheckTaskQualityConfig + { + std::string message; + std::string taskName; + std::string bizNo; + bool enabled; + }; + struct CheckConfig + { + struct Check_items + { + bool isRequired; + std::string name; + }; + std::vector checkItems; + }; + SensitiveInfoDetection sensitiveInfoDetection; + bool isRequired; + CheckTaskQualityConfig checkTaskQualityConfig; + CodeGuidelinesDetection codeGuidelinesDetection; + CheckConfig checkConfig; + }; + std::vector allowMergeUserIds; + std::vector allowPushRoles; + std::string branch; + std::vector allowPushUserIds; + TestSettingDTO testSettingDTO; + long id; + std::vector allowMergeRoles; + MergeRequestSetting mergeRequestSetting; + }; + + + CreateProtectdBranchResult(); + explicit CreateProtectdBranchResult(const std::string &payload); + ~CreateProtectdBranchResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPROTECTDBRANCHRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreatePushRuleRequest.h b/devops/include/alibabacloud/devops/model/CreatePushRuleRequest.h new file mode 100644 index 000000000..841d9a598 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreatePushRuleRequest.h @@ -0,0 +1,62 @@ +/* + * 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_DEVOPS_MODEL_CREATEPUSHRULEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPUSHRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreatePushRuleRequest : public RoaServiceRequest { +public: + struct Body { + struct RuleInfosItem { + std::string extraMessage; + std::string checkerType; + std::string string; + std::vector fileRuleRegexes; + std::string checkerName; + }; + ruleInfosItem ruleInfosItem; + std::vector ruleInfos; + }; + CreatePushRuleRequest(); + ~CreatePushRuleRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPUSHRULEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreatePushRuleResult.h b/devops/include/alibabacloud/devops/model/CreatePushRuleResult.h new file mode 100644 index 000000000..5cd883222 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreatePushRuleResult.h @@ -0,0 +1,73 @@ +/* + * 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_DEVOPS_MODEL_CREATEPUSHRULERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEPUSHRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreatePushRuleResult : public ServiceResult + { + public: + struct Result + { + struct Rule_infos + { + std::vector fileRuleRegexes; + std::string checkerName; + std::string checkerType; + std::string extraMessage; + }; + std::string gmtCreate; + std::string gmtModified; + long id; + std::vector ruleInfos; + }; + + + CreatePushRuleResult(); + explicit CreatePushRuleResult(const std::string &payload); + ~CreatePushRuleResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEPUSHRULERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateRepositoryGroupRequest.h b/devops/include/alibabacloud/devops/model/CreateRepositoryGroupRequest.h new file mode 100644 index 000000000..84777a930 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateRepositoryGroupRequest.h @@ -0,0 +1,56 @@ +/* + * 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_DEVOPS_MODEL_CREATEREPOSITORYGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEREPOSITORYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateRepositoryGroupRequest : public RoaServiceRequest { +public: + struct Body { + std::string path; + std::string avatarUrl; + std::string name; + std::string description; + int visibilityLevel; + long parentId; + }; + CreateRepositoryGroupRequest(); + ~CreateRepositoryGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEREPOSITORYGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateRepositoryGroupResult.h b/devops/include/alibabacloud/devops/model/CreateRepositoryGroupResult.h new file mode 100644 index 000000000..3c40dc0bc --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateRepositoryGroupResult.h @@ -0,0 +1,74 @@ +/* + * 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_DEVOPS_MODEL_CREATEREPOSITORYGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEREPOSITORYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateRepositoryGroupResult : public ServiceResult + { + public: + struct Result + { + std::string path; + std::string pathWithNamespace; + long parentId; + std::string type; + std::string description; + std::string avatarUrl; + long ownerId; + std::string webUrl; + std::string nameWithNamespace; + int visibilityLevel; + long id; + std::string name; + }; + + + CreateRepositoryGroupResult(); + explicit CreateRepositoryGroupResult(const std::string &payload); + ~CreateRepositoryGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEREPOSITORYGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateRepositoryRequest.h b/devops/include/alibabacloud/devops/model/CreateRepositoryRequest.h new file mode 100644 index 000000000..d41a7e92d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateRepositoryRequest.h @@ -0,0 +1,73 @@ +/* + * 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_DEVOPS_MODEL_CREATEREPOSITORYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEREPOSITORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateRepositoryRequest : public RoaServiceRequest { +public: + struct Body { + std::string importToken; + std::string importTokenEncrypted; + bool isCryptoEnabled; + std::string avatarUrl; + std::string description; + std::string path; + std::string readmeType; + std::string importAccount; + bool initStandardService; + long namespaceId; + std::string localImportUrl; + std::string importRepoType; + std::string name; + std::string importUrl; + int visibilityLevel; + bool importDemoProject; + std::string gitignoreType; + }; + CreateRepositoryRequest(); + ~CreateRepositoryRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + bool getSync() const; + void setSync(bool sync); + bool getCreateParentPath() const; + void setCreateParentPath(bool createParentPath); + +private: + std::string organizationId_; + std::string accessToken_; + body body_; + bool sync_; + bool createParentPath_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEREPOSITORYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateRepositoryResult.h b/devops/include/alibabacloud/devops/model/CreateRepositoryResult.h new file mode 100644 index 000000000..8e43e6676 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateRepositoryResult.h @@ -0,0 +1,94 @@ +/* + * 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_DEVOPS_MODEL_CREATEREPOSITORYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEREPOSITORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateRepositoryResult : public ServiceResult + { + public: + struct Result + { + struct _Namespace + { + std::string path; + std::string description; + long ownerId; + std::string createdAt; + bool _public; + std::string visibilityLevel; + long id; + std::string updatedAt; + std::string avatar; + std::string name; + }; + std::string defaultBranch; + std::string path; + std::string pathWithNamespace; + std::string lastActivityAt; + std::string httpUrlToRepo; + bool import_from_svn; + std::string description; + long creatorId; + std::string avatar_url; + std::string createdAt; + std::string webUrl; + std::string nameWithNamespace; + _Namespace _namespace; + std::string visibilityLevel; + std::string name; + bool archived; + std::string sshUrlToRepo; + bool demoProject; + long id; + }; + + + CreateRepositoryResult(); + explicit CreateRepositoryResult(const std::string &payload); + ~CreateRepositoryResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEREPOSITORYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateResourceMemberRequest.h b/devops/include/alibabacloud/devops/model/CreateResourceMemberRequest.h new file mode 100644 index 000000000..7283eea36 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateResourceMemberRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_CREATERESOURCEMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATERESOURCEMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateResourceMemberRequest : public RoaServiceRequest { +public: + CreateResourceMemberRequest(); + ~CreateResourceMemberRequest(); + long getResourceId() const; + void setResourceId(long resourceId); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + +private: + long resourceId_; + std::string roleName_; + std::string resourceType_; + std::string organizationId_; + std::string accountId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATERESOURCEMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateResourceMemberResult.h b/devops/include/alibabacloud/devops/model/CreateResourceMemberResult.h new file mode 100644 index 000000000..170edd408 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateResourceMemberResult.h @@ -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_DEVOPS_MODEL_CREATERESOURCEMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATERESOURCEMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateResourceMemberResult : public ServiceResult + { + public: + + + CreateResourceMemberResult(); + explicit CreateResourceMemberResult(const std::string &payload); + ~CreateResourceMemberResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATERESOURCEMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateServiceAuthRequest.h b/devops/include/alibabacloud/devops/model/CreateServiceAuthRequest.h new file mode 100644 index 000000000..1c3bdfa70 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateServiceAuthRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_CREATESERVICEAUTHREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICEAUTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateServiceAuthRequest : public RoaServiceRequest { +public: + CreateServiceAuthRequest(); + ~CreateServiceAuthRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getServiceAuthType() const; + void setServiceAuthType(const std::string &serviceAuthType); + +private: + std::string organizationId_; + std::string serviceAuthType_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICEAUTHREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateServiceAuthResult.h b/devops/include/alibabacloud/devops/model/CreateServiceAuthResult.h new file mode 100644 index 000000000..d0cf1be0e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateServiceAuthResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_CREATESERVICEAUTHRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICEAUTHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateServiceAuthResult : public ServiceResult + { + public: + + + CreateServiceAuthResult(); + explicit CreateServiceAuthResult(const std::string &payload); + ~CreateServiceAuthResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getId()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string id_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICEAUTHRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateServiceConnectionRequest.h b/devops/include/alibabacloud/devops/model/CreateServiceConnectionRequest.h new file mode 100644 index 000000000..74ec28d94 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateServiceConnectionRequest.h @@ -0,0 +1,52 @@ +/* + * 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_DEVOPS_MODEL_CREATESERVICECONNECTIONREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICECONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateServiceConnectionRequest : public RoaServiceRequest { +public: + struct Body { + long serviceAuthId; + std::string scope; + std::string connectionName; + std::string connectionType; + std::string authType; + }; + CreateServiceConnectionRequest(); + ~CreateServiceConnectionRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICECONNECTIONREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateServiceConnectionResult.h b/devops/include/alibabacloud/devops/model/CreateServiceConnectionResult.h new file mode 100644 index 000000000..d3d1e0e93 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateServiceConnectionResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_CREATESERVICECONNECTIONRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICECONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateServiceConnectionResult : public ServiceResult + { + public: + + + CreateServiceConnectionResult(); + explicit CreateServiceConnectionResult(const std::string &payload); + ~CreateServiceConnectionResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + long getId()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + long id_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICECONNECTIONRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateServiceCredentialRequest.h b/devops/include/alibabacloud/devops/model/CreateServiceCredentialRequest.h new file mode 100644 index 000000000..6d1b8e58f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateServiceCredentialRequest.h @@ -0,0 +1,52 @@ +/* + * 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_DEVOPS_MODEL_CREATESERVICECREDENTIALREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICECREDENTIALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateServiceCredentialRequest : public RoaServiceRequest { +public: + struct Body { + std::string password; + std::string scope; + std::string name; + std::string type; + std::string username; + }; + CreateServiceCredentialRequest(); + ~CreateServiceCredentialRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICECREDENTIALREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateServiceCredentialResult.h b/devops/include/alibabacloud/devops/model/CreateServiceCredentialResult.h new file mode 100644 index 000000000..6bf7b99d4 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateServiceCredentialResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_CREATESERVICECREDENTIALRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICECREDENTIALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateServiceCredentialResult : public ServiceResult + { + public: + + + CreateServiceCredentialResult(); + explicit CreateServiceCredentialResult(const std::string &payload); + ~CreateServiceCredentialResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + long getId()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + long id_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESERVICECREDENTIALRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateSprintRequest.h b/devops/include/alibabacloud/devops/model/CreateSprintRequest.h new file mode 100644 index 000000000..2994f4236 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateSprintRequest.h @@ -0,0 +1,53 @@ +/* + * 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_DEVOPS_MODEL_CREATESPRINTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESPRINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateSprintRequest : public RoaServiceRequest { +public: + struct Body { + std::string endDate; + std::string string; + std::vector staffIds; + std::string name; + std::string spaceIdentifier; + std::string startDate; + }; + CreateSprintRequest(); + ~CreateSprintRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESPRINTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateSprintResult.h b/devops/include/alibabacloud/devops/model/CreateSprintResult.h new file mode 100644 index 000000000..b9e6a8220 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateSprintResult.h @@ -0,0 +1,74 @@ +/* + * 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_DEVOPS_MODEL_CREATESPRINTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESPRINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateSprintResult : public ServiceResult + { + public: + struct Sprint + { + long startDate; + std::string status; + long gmtCreate; + std::string description; + std::string identifier; + std::string scope; + std::string spaceIdentifier; + long gmtModified; + std::string creator; + long endDate; + std::string modifier; + std::string name; + }; + + + CreateSprintResult(); + explicit CreateSprintResult(const std::string &payload); + ~CreateSprintResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + Sprint getSprint()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + Sprint sprint_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESPRINTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateSshKeyRequest.h b/devops/include/alibabacloud/devops/model/CreateSshKeyRequest.h new file mode 100644 index 000000000..1e20461a0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateSshKeyRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DEVOPS_MODEL_CREATESSHKEYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESSHKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateSshKeyRequest : public RoaServiceRequest { +public: + CreateSshKeyRequest(); + ~CreateSshKeyRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESSHKEYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateSshKeyResult.h b/devops/include/alibabacloud/devops/model/CreateSshKeyResult.h new file mode 100644 index 000000000..8938ed203 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateSshKeyResult.h @@ -0,0 +1,64 @@ +/* + * 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_DEVOPS_MODEL_CREATESSHKEYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATESSHKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateSshKeyResult : public ServiceResult + { + public: + struct SshKey + { + std::string publicKey; + long id; + }; + + + CreateSshKeyResult(); + explicit CreateSshKeyResult(const std::string &payload); + ~CreateSshKeyResult(); + SshKey getSshKey()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + SshKey sshKey_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATESSHKEYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateTagRequest.h b/devops/include/alibabacloud/devops/model/CreateTagRequest.h new file mode 100644 index 000000000..593952ed8 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateTagRequest.h @@ -0,0 +1,56 @@ +/* + * 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_DEVOPS_MODEL_CREATETAGREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATETAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateTagRequest : public RoaServiceRequest { +public: + struct Body { + std::string tagName; + std::string ref; + std::string message; + }; + CreateTagRequest(); + ~CreateTagRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATETAGREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateTagResult.h b/devops/include/alibabacloud/devops/model/CreateTagResult.h new file mode 100644 index 000000000..8a8b9d9b2 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateTagResult.h @@ -0,0 +1,81 @@ +/* + * 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_DEVOPS_MODEL_CREATETAGRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATETAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateTagResult : public ServiceResult + { + public: + struct Result + { + struct Commit + { + std::string authoredDate; + std::string message; + std::string authorName; + std::string committerEmail; + std::string committedDate; + std::vector parentIds; + std::string createdAt; + std::string shortId; + std::string title; + std::string id; + std::string authorEmail; + std::string committerName; + }; + Commit commit; + std::string message; + std::string id; + std::string name; + }; + + + CreateTagResult(); + explicit CreateTagResult(const std::string &payload); + ~CreateTagResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATETAGRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateTestCaseRequest.h b/devops/include/alibabacloud/devops/model/CreateTestCaseRequest.h new file mode 100644 index 000000000..dc1bdd162 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateTestCaseRequest.h @@ -0,0 +1,71 @@ +/* + * 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_DEVOPS_MODEL_CREATETESTCASEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATETESTCASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateTestCaseRequest : public RoaServiceRequest { +public: + struct Body { + struct FieldValueListItem { + std::string fieldIdentifier; + std::string value; + }; + fieldValueListItem fieldValueListItem; + std::vector fieldValueList; + std::string subject; + struct TestcaseStepContentInfo { + std::string stepType; + std::string precondition; + struct StepResultListItem { + std::string expected; + std::string step; + }; + stepResultListItem stepResultListItem; + std::vector stepResultList; + }; + testcaseStepContentInfo testcaseStepContentInfo; + std::string spaceIdentifier; + std::string priority; + std::string directoryIdentifier; + std::string assignedTo; + std::string string; + std::vector tags; + }; + CreateTestCaseRequest(); + ~CreateTestCaseRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATETESTCASEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateTestCaseResult.h b/devops/include/alibabacloud/devops/model/CreateTestCaseResult.h new file mode 100644 index 000000000..e736a7601 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateTestCaseResult.h @@ -0,0 +1,120 @@ +/* + * 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_DEVOPS_MODEL_CREATETESTCASERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATETESTCASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateTestCaseResult : public ServiceResult + { + public: + struct Testcase + { + struct AssignedTo + { + std::string assignIdentifier; + std::string tbRoleId; + std::string name; + }; + struct Creator + { + std::string createIdentifier; + std::string name; + }; + struct Modifier + { + std::string modifyIdentifier; + std::string name; + }; + struct Directory + { + std::string childIdentifier; + std::string directoryIdentifier; + std::vector pathName; + std::string name; + }; + struct DetailInfo + { + struct Precondition + { + std::string preContent; + std::string preContentType; + std::string preIdentifier; + }; + struct StepContent + { + std::string stepIdentifier; + std::string stepContentType; + std::string stepContent; + }; + struct ExpectedResult + { + std::string expectIdentifier; + std::string expectContentType; + std::string expectContent; + }; + ExpectedResult expectedResult; + Precondition precondition; + std::string stepType; + StepContent stepContent; + }; + AssignedTo assignedTo; + std::string identifier; + std::string spaceIdentifier; + DetailInfo detailInfo; + std::string spaceType; + std::string categoryIdentifier; + Creator creator; + Modifier modifier; + std::string subject; + Directory directory; + }; + + + CreateTestCaseResult(); + explicit CreateTestCaseResult(const std::string &payload); + ~CreateTestCaseResult(); + Testcase getTestcase()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Testcase testcase_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATETESTCASERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateUserKeyRequest.h b/devops/include/alibabacloud/devops/model/CreateUserKeyRequest.h new file mode 100644 index 000000000..fe3b48b87 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateUserKeyRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_CREATEUSERKEYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEUSERKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateUserKeyRequest : public RoaServiceRequest { +public: + struct Body { + std::string expireTime; + std::string keyScope; + std::string publicKey; + std::string title; + }; + CreateUserKeyRequest(); + ~CreateUserKeyRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEUSERKEYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateUserKeyResult.h b/devops/include/alibabacloud/devops/model/CreateUserKeyResult.h new file mode 100644 index 000000000..8181a08ea --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateUserKeyResult.h @@ -0,0 +1,70 @@ +/* + * 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_DEVOPS_MODEL_CREATEUSERKEYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEUSERKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateUserKeyResult : public ServiceResult + { + public: + struct Result + { + std::string publicKey; + std::string fingerPrint; + std::string createdAt; + std::string lastUsedTime; + std::string title; + long id; + std::string expireTime; + std::string keyScope; + }; + + + CreateUserKeyResult(); + explicit CreateUserKeyResult(const std::string &payload); + ~CreateUserKeyResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEUSERKEYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateVariableGroupRequest.h b/devops/include/alibabacloud/devops/model/CreateVariableGroupRequest.h new file mode 100644 index 000000000..bfe120848 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateVariableGroupRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_CREATEVARIABLEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEVARIABLEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateVariableGroupRequest : public RoaServiceRequest { +public: + CreateVariableGroupRequest(); + ~CreateVariableGroupRequest(); + std::string getVariables() const; + void setVariables(const std::string &variables); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string variables_; + std::string description_; + std::string organizationId_; + std::string name_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEVARIABLEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateVariableGroupResult.h b/devops/include/alibabacloud/devops/model/CreateVariableGroupResult.h new file mode 100644 index 000000000..485904b30 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateVariableGroupResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_CREATEVARIABLEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEVARIABLEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateVariableGroupResult : public ServiceResult + { + public: + + + CreateVariableGroupResult(); + explicit CreateVariableGroupResult(const std::string &payload); + ~CreateVariableGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + long getVariableGroupId()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + long variableGroupId_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEVARIABLEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemCommentRequest.h b/devops/include/alibabacloud/devops/model/CreateWorkitemCommentRequest.h new file mode 100644 index 000000000..5461fd90b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemCommentRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKITEMCOMMENTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMCOMMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemCommentRequest : public RoaServiceRequest { +public: + struct Body { + std::string workitemIdentifier; + std::string formatType; + std::string content; + std::string parentId; + }; + CreateWorkitemCommentRequest(); + ~CreateWorkitemCommentRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMCOMMENTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemCommentResult.h b/devops/include/alibabacloud/devops/model/CreateWorkitemCommentResult.h new file mode 100644 index 000000000..59b7e960c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemCommentResult.h @@ -0,0 +1,83 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKITEMCOMMENTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMCOMMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemCommentResult : public ServiceResult + { + public: + struct Comment + { + struct User + { + std::string account; + std::string identifier; + std::string displayName; + std::string targetType; + std::string realName; + std::string nickName; + std::string avatar; + }; + long parentId; + bool isTop; + User user; + long modifiedTime; + long topTime; + std::string content; + std::string targetIdentifier; + long createTime; + std::string targetType; + long id; + std::string formatType; + }; + + + CreateWorkitemCommentResult(); + explicit CreateWorkitemCommentResult(const std::string &payload); + ~CreateWorkitemCommentResult(); + Comment getComment()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Comment comment_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMCOMMENTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemEstimateRequest.h b/devops/include/alibabacloud/devops/model/CreateWorkitemEstimateRequest.h new file mode 100644 index 000000000..0befedd2e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemEstimateRequest.h @@ -0,0 +1,52 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKITEMESTIMATEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMESTIMATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemEstimateRequest : public RoaServiceRequest { +public: + struct Body { + std::string recordUserIdentifier; + std::string description; + std::string workitemIdentifier; + std::string type; + std::string spentTime; + }; + CreateWorkitemEstimateRequest(); + ~CreateWorkitemEstimateRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMESTIMATEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemEstimateResult.h b/devops/include/alibabacloud/devops/model/CreateWorkitemEstimateResult.h new file mode 100644 index 000000000..76ff3ded5 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemEstimateResult.h @@ -0,0 +1,89 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKITEMESTIMATERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMESTIMATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemEstimateResult : public ServiceResult + { + public: + struct WorkitemTimeEstimate + { + struct RecordUser + { + std::string account; + std::string email; + std::string stamp; + std::string displayRealName; + bool isDisabled; + std::string nickNamePinyin; + std::string gender; + std::string nickName; + std::string mobile; + std::string avatar; + std::string displayNickName; + std::string dingTalkId; + std::string identifier; + std::string nameEn; + std::string realNamePinyin; + std::string displayName; + std::string realName; + std::string tbRoleId; + }; + std::string workitemIdentifier; + std::string type; + std::string identifier; + long spentTime; + std::string description; + RecordUser recordUser; + }; + + + CreateWorkitemEstimateResult(); + explicit CreateWorkitemEstimateResult(const std::string &payload); + ~CreateWorkitemEstimateResult(); + WorkitemTimeEstimate getWorkitemTimeEstimate()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + WorkitemTimeEstimate workitemTimeEstimate_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMESTIMATERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemRecordRequest.h b/devops/include/alibabacloud/devops/model/CreateWorkitemRecordRequest.h new file mode 100644 index 000000000..1c0f4dd76 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemRecordRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKITEMRECORDREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMRECORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemRecordRequest : public RoaServiceRequest { +public: + struct Body { + std::string recordUserIdentifier; + std::string actualTime; + std::string gmtEnd; + std::string description; + std::string gmtStart; + std::string workitemIdentifier; + std::string type; + }; + CreateWorkitemRecordRequest(); + ~CreateWorkitemRecordRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMRECORDREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemRecordResult.h b/devops/include/alibabacloud/devops/model/CreateWorkitemRecordResult.h new file mode 100644 index 000000000..4edcf900a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemRecordResult.h @@ -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_DEVOPS_MODEL_CREATEWORKITEMRECORDRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMRECORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemRecordResult : public ServiceResult + { + public: + struct WorkitemTime + { + struct RecordUser + { + std::string account; + std::string email; + std::string stamp; + std::string displayRealName; + bool isDisabled; + std::string nickNamePinyin; + std::string gender; + std::string nickName; + std::string mobile; + std::string avatar; + std::string displayNickName; + std::string dingTalkId; + std::string identifier; + std::string nameEn; + std::string realNamePinyin; + std::string displayName; + std::string realName; + std::string tbRoleId; + }; + long gmtStart; + long gmtEnd; + std::string workitemIdentifier; + std::string type; + std::string identifier; + std::string description; + long actualTime; + RecordUser recordUser; + }; + + + CreateWorkitemRecordResult(); + explicit CreateWorkitemRecordResult(const std::string &payload); + ~CreateWorkitemRecordResult(); + std::string getRequestId()const; + WorkitemTime getWorkitemTime()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + WorkitemTime workitemTime_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMRECORDRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemRequest.h b/devops/include/alibabacloud/devops/model/CreateWorkitemRequest.h new file mode 100644 index 000000000..8b189d1fa --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemRequest.h @@ -0,0 +1,72 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKITEMREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemRequest : public RoaServiceRequest { +public: + struct Body { + std::string parent; + std::string subject; + std::string string; + std::vector sprint; + std::string description; + std::string assignedTo; + std::string space; + std::string string; + std::vector participant; + struct FieldValueListItem { + std::string fieldIdentifier; + std::string workitemIdentifier; + std::string value; + }; + fieldValueListItem fieldValueListItem; + std::vector fieldValueList; + std::string spaceType; + std::string workitemType; + std::string string; + std::vector verifier; + std::string string; + std::vector tracker; + std::string descriptionFormat; + std::string spaceIdentifier; + std::string category; + }; + CreateWorkitemRequest(); + ~CreateWorkitemRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemResult.h b/devops/include/alibabacloud/devops/model/CreateWorkitemResult.h new file mode 100644 index 000000000..518deb003 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemResult.h @@ -0,0 +1,83 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKITEMRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemResult : public ServiceResult + { + public: + struct Workitem + { + std::string status; + std::string statusStageIdentifier; + std::string spaceName; + std::string categoryIdentifier; + long gmtModified; + std::string creator; + std::string document; + std::string parentIdentifier; + std::string subject; + std::string assignedTo; + long updateStatusAt; + std::string workitemTypeIdentifier; + long gmtCreate; + std::string identifier; + std::string serialNumber; + std::string spaceIdentifier; + std::string spaceType; + std::string logicalStatus; + std::string sprintIdentifier; + std::string modifier; + std::string statusIdentifier; + }; + + + CreateWorkitemResult(); + explicit CreateWorkitemResult(const std::string &payload); + ~CreateWorkitemResult(); + Workitem getWorkitem()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Workitem workitem_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemV2Request.h b/devops/include/alibabacloud/devops/model/CreateWorkitemV2Request.h new file mode 100644 index 000000000..7eccf9c91 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemV2Request.h @@ -0,0 +1,70 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKITEMV2REQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMV2REQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemV2Request : public RoaServiceRequest { +public: + struct Body { + std::string string; + std::vector trackers; + std::string subject; + std::string sprintIdentifier; + std::string description; + std::string assignedTo; + std::string string; + std::vector tags; + struct FieldValueListItem { + std::string fieldIdentifier; + std::string value; + }; + fieldValueListItem fieldValueListItem; + std::vector fieldValueList; + std::string workitemTypeIdentifier; + std::string string; + std::vector versions; + std::string verifier; + std::string spaceIdentifier; + std::string parentIdentifier; + std::string category; + std::string string; + std::vector participants; + }; + CreateWorkitemV2Request(); + ~CreateWorkitemV2Request(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMV2REQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateWorkitemV2Result.h b/devops/include/alibabacloud/devops/model/CreateWorkitemV2Result.h new file mode 100644 index 000000000..2bdc10266 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkitemV2Result.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKITEMV2RESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMV2RESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkitemV2Result : public ServiceResult + { + public: + + + CreateWorkitemV2Result(); + explicit CreateWorkitemV2Result(const std::string &payload); + ~CreateWorkitemV2Result(); + std::string getWorkitemIdentifier()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string workitemIdentifier_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKITEMV2RESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/CreateWorkspaceRequest.h b/devops/include/alibabacloud/devops/model/CreateWorkspaceRequest.h new file mode 100644 index 000000000..d3953eee2 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkspaceRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKSPACEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKSPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkspaceRequest : public RoaServiceRequest { +public: + CreateWorkspaceRequest(); + ~CreateWorkspaceRequest(); + std::string getCodeUrl() const; + void setCodeUrl(const std::string &codeUrl); + bool getReuse() const; + void setReuse(bool reuse); + std::string getResourceIdentifier() const; + void setResourceIdentifier(const std::string &resourceIdentifier); + std::string getRequestFrom() const; + void setRequestFrom(const std::string &requestFrom); + std::string getWorkspaceTemplate() const; + void setWorkspaceTemplate(const std::string &workspaceTemplate); + std::string getFilePath() const; + void setFilePath(const std::string &filePath); + std::string getName() const; + void setName(const std::string &name); + std::string getCodeVersion() const; + void setCodeVersion(const std::string &codeVersion); + +private: + std::string codeUrl_; + bool reuse_; + std::string resourceIdentifier_; + std::string requestFrom_; + std::string workspaceTemplate_; + std::string filePath_; + std::string name_; + std::string codeVersion_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKSPACEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/CreateWorkspaceResult.h b/devops/include/alibabacloud/devops/model/CreateWorkspaceResult.h new file mode 100644 index 000000000..294951219 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/CreateWorkspaceResult.h @@ -0,0 +1,68 @@ +/* + * 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_DEVOPS_MODEL_CREATEWORKSPACERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKSPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT CreateWorkspaceResult : public ServiceResult + { + public: + struct Workspace + { + std::string status; + std::string _template; + std::string createTime; + std::string id; + std::string creator; + std::string name; + }; + + + CreateWorkspaceResult(); + explicit CreateWorkspaceResult(const std::string &payload); + ~CreateWorkspaceResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Workspace getWorkspace()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Workspace workspace_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_CREATEWORKSPACERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteAppMemberRequest.h b/devops/include/alibabacloud/devops/model/DeleteAppMemberRequest.h new file mode 100644 index 000000000..b5bbf381c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteAppMemberRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_DELETEAPPMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEAPPMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteAppMemberRequest : public RoaServiceRequest { +public: + DeleteAppMemberRequest(); + ~DeleteAppMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAppName() const; + void setAppName(const std::string &appName); + std::string getSubjectType() const; + void setSubjectType(const std::string &subjectType); + std::string getSubjectId() const; + void setSubjectId(const std::string &subjectId); + +private: + std::string organizationId_; + std::string appName_; + std::string subjectType_; + std::string subjectId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEAPPMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteAppMemberResult.h b/devops/include/alibabacloud/devops/model/DeleteAppMemberResult.h new file mode 100644 index 000000000..45dcb3f81 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteAppMemberResult.h @@ -0,0 +1,49 @@ +/* + * 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_DEVOPS_MODEL_DELETEAPPMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEAPPMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteAppMemberResult : public ServiceResult + { + public: + + + DeleteAppMemberResult(); + explicit DeleteAppMemberResult(const std::string &payload); + ~DeleteAppMemberResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEAPPMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteBranchRequest.h b/devops/include/alibabacloud/devops/model/DeleteBranchRequest.h new file mode 100644 index 000000000..b6549762c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteBranchRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_DELETEBRANCHREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEBRANCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteBranchRequest : public RoaServiceRequest { +public: + DeleteBranchRequest(); + ~DeleteBranchRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getBranchName() const; + void setBranchName(const std::string &branchName); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + std::string branchName_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEBRANCHREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteBranchResult.h b/devops/include/alibabacloud/devops/model/DeleteBranchResult.h new file mode 100644 index 000000000..1e7e9c747 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteBranchResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_DELETEBRANCHRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEBRANCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteBranchResult : public ServiceResult + { + public: + struct Result + { + std::string branchName; + }; + + + DeleteBranchResult(); + explicit DeleteBranchResult(const std::string &payload); + ~DeleteBranchResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + std::string success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEBRANCHRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteFileRequest.h b/devops/include/alibabacloud/devops/model/DeleteFileRequest.h new file mode 100644 index 000000000..04e5cd198 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteFileRequest.h @@ -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_DEVOPS_MODEL_DELETEFILEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteFileRequest : public RoaServiceRequest { +public: + DeleteFileRequest(); + ~DeleteFileRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getFilePath() const; + void setFilePath(const std::string &filePath); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getCommitMessage() const; + void setCommitMessage(const std::string &commitMessage); + std::string getBranchName() const; + void setBranchName(const std::string &branchName); + +private: + std::string organizationId_; + std::string filePath_; + long repositoryId_; + std::string accessToken_; + std::string commitMessage_; + std::string branchName_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEFILEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteFileResult.h b/devops/include/alibabacloud/devops/model/DeleteFileResult.h new file mode 100644 index 000000000..eb9a8929b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteFileResult.h @@ -0,0 +1,64 @@ +/* + * 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_DEVOPS_MODEL_DELETEFILERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteFileResult : public ServiceResult + { + public: + struct Result + { + std::string filePath; + std::string branchName; + }; + + + DeleteFileResult(); + explicit DeleteFileResult(const std::string &payload); + ~DeleteFileResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEFILERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteFlowTagGroupRequest.h b/devops/include/alibabacloud/devops/model/DeleteFlowTagGroupRequest.h new file mode 100644 index 000000000..8f7b616ef --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteFlowTagGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEFLOWTAGGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEFLOWTAGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteFlowTagGroupRequest : public RoaServiceRequest { +public: + DeleteFlowTagGroupRequest(); + ~DeleteFlowTagGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getId() const; + void setId(const std::string &id); + +private: + std::string organizationId_; + std::string id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEFLOWTAGGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteFlowTagGroupResult.h b/devops/include/alibabacloud/devops/model/DeleteFlowTagGroupResult.h new file mode 100644 index 000000000..6411e1452 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteFlowTagGroupResult.h @@ -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_DEVOPS_MODEL_DELETEFLOWTAGGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEFLOWTAGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteFlowTagGroupResult : public ServiceResult + { + public: + + + DeleteFlowTagGroupResult(); + explicit DeleteFlowTagGroupResult(const std::string &payload); + ~DeleteFlowTagGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEFLOWTAGGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteFlowTagRequest.h b/devops/include/alibabacloud/devops/model/DeleteFlowTagRequest.h new file mode 100644 index 000000000..253a97edd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteFlowTagRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEFLOWTAGREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEFLOWTAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteFlowTagRequest : public RoaServiceRequest { +public: + DeleteFlowTagRequest(); + ~DeleteFlowTagRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getId() const; + void setId(const std::string &id); + +private: + std::string organizationId_; + std::string id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEFLOWTAGREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteFlowTagResult.h b/devops/include/alibabacloud/devops/model/DeleteFlowTagResult.h new file mode 100644 index 000000000..4b80287b3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteFlowTagResult.h @@ -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_DEVOPS_MODEL_DELETEFLOWTAGRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEFLOWTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteFlowTagResult : public ServiceResult + { + public: + + + DeleteFlowTagResult(); + explicit DeleteFlowTagResult(const std::string &payload); + ~DeleteFlowTagResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEFLOWTAGRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteGroupMemberRequest.h b/devops/include/alibabacloud/devops/model/DeleteGroupMemberRequest.h new file mode 100644 index 000000000..13d71fc51 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteGroupMemberRequest.h @@ -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_DEVOPS_MODEL_DELETEGROUPMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEGROUPMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteGroupMemberRequest : public RoaServiceRequest { +public: + struct Body { + std::string memberType; + }; + DeleteGroupMemberRequest(); + ~DeleteGroupMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAliyunPk() const; + void setAliyunPk(const std::string &aliyunPk); + long getGroupId() const; + void setGroupId(long groupId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string aliyunPk_; + long groupId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEGROUPMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteGroupMemberResult.h b/devops/include/alibabacloud/devops/model/DeleteGroupMemberResult.h new file mode 100644 index 000000000..82a038ecb --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteGroupMemberResult.h @@ -0,0 +1,71 @@ +/* + * 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_DEVOPS_MODEL_DELETEGROUPMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEGROUPMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteGroupMemberResult : public ServiceResult + { + public: + struct Result + { + std::string avatarUrl; + std::string username; + std::string externUid; + std::string memberType; + std::string state; + long sourceId; + long id; + int accessLevel; + std::string name; + }; + + + DeleteGroupMemberResult(); + explicit DeleteGroupMemberResult(const std::string &payload); + ~DeleteGroupMemberResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEGROUPMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteHostGroupRequest.h b/devops/include/alibabacloud/devops/model/DeleteHostGroupRequest.h new file mode 100644 index 000000000..9dd64d4b2 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteHostGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEHOSTGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEHOSTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteHostGroupRequest : public RoaServiceRequest { +public: + DeleteHostGroupRequest(); + ~DeleteHostGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getId() const; + void setId(long id); + +private: + std::string organizationId_; + long id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEHOSTGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteHostGroupResult.h b/devops/include/alibabacloud/devops/model/DeleteHostGroupResult.h new file mode 100644 index 000000000..e22029c74 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteHostGroupResult.h @@ -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_DEVOPS_MODEL_DELETEHOSTGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEHOSTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteHostGroupResult : public ServiceResult + { + public: + + + DeleteHostGroupResult(); + explicit DeleteHostGroupResult(const std::string &payload); + ~DeleteHostGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEHOSTGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeletePipelineGroupRequest.h b/devops/include/alibabacloud/devops/model/DeletePipelineGroupRequest.h new file mode 100644 index 000000000..55f7e176b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeletePipelineGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEPIPELINEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeletePipelineGroupRequest : public RoaServiceRequest { +public: + DeletePipelineGroupRequest(); + ~DeletePipelineGroupRequest(); + long getGroupId() const; + void setGroupId(long groupId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + long groupId_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeletePipelineGroupResult.h b/devops/include/alibabacloud/devops/model/DeletePipelineGroupResult.h new file mode 100644 index 000000000..d05a2d64a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeletePipelineGroupResult.h @@ -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_DEVOPS_MODEL_DELETEPIPELINEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeletePipelineGroupResult : public ServiceResult + { + public: + + + DeletePipelineGroupResult(); + explicit DeletePipelineGroupResult(const std::string &payload); + ~DeletePipelineGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeletePipelineRelationsRequest.h b/devops/include/alibabacloud/devops/model/DeletePipelineRelationsRequest.h new file mode 100644 index 000000000..6cccc0bda --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeletePipelineRelationsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_DELETEPIPELINERELATIONSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINERELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeletePipelineRelationsRequest : public RoaServiceRequest { +public: + DeletePipelineRelationsRequest(); + ~DeletePipelineRelationsRequest(); + std::string getRelObjectType() const; + void setRelObjectType(const std::string &relObjectType); + std::string getRelObjectId() const; + void setRelObjectId(const std::string &relObjectId); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string relObjectType_; + std::string relObjectId_; + long pipelineId_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINERELATIONSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeletePipelineRelationsResult.h b/devops/include/alibabacloud/devops/model/DeletePipelineRelationsResult.h new file mode 100644 index 000000000..101cf0edf --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeletePipelineRelationsResult.h @@ -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_DEVOPS_MODEL_DELETEPIPELINERELATIONSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINERELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeletePipelineRelationsResult : public ServiceResult + { + public: + + + DeletePipelineRelationsResult(); + explicit DeletePipelineRelationsResult(const std::string &payload); + ~DeletePipelineRelationsResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINERELATIONSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeletePipelineRequest.h b/devops/include/alibabacloud/devops/model/DeletePipelineRequest.h new file mode 100644 index 000000000..15165f9ea --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeletePipelineRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeletePipelineRequest : public RoaServiceRequest { +public: + DeletePipelineRequest(); + ~DeletePipelineRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + long pipelineId_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeletePipelineResult.h b/devops/include/alibabacloud/devops/model/DeletePipelineResult.h new file mode 100644 index 000000000..ba43addb3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeletePipelineResult.h @@ -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_DEVOPS_MODEL_DELETEPIPELINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeletePipelineResult : public ServiceResult + { + public: + + + DeletePipelineResult(); + explicit DeletePipelineResult(const std::string &payload); + ~DeletePipelineResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPIPELINERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteProjectLabelRequest.h b/devops/include/alibabacloud/devops/model/DeleteProjectLabelRequest.h new file mode 100644 index 000000000..38e45de86 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteProjectLabelRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_DELETEPROJECTLABELREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPROJECTLABELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteProjectLabelRequest : public RoaServiceRequest { +public: + DeleteProjectLabelRequest(); + ~DeleteProjectLabelRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getLabelId() const; + void setLabelId(const std::string &labelId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + std::string labelId_; + std::string repositoryIdentity_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPROJECTLABELREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteProjectLabelResult.h b/devops/include/alibabacloud/devops/model/DeleteProjectLabelResult.h new file mode 100644 index 000000000..02b4d5760 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteProjectLabelResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_DELETEPROJECTLABELRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPROJECTLABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteProjectLabelResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + DeleteProjectLabelResult(); + explicit DeleteProjectLabelResult(const std::string &payload); + ~DeleteProjectLabelResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPROJECTLABELRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteProjectRequest.h b/devops/include/alibabacloud/devops/model/DeleteProjectRequest.h new file mode 100644 index 000000000..9e3be46ed --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteProjectRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEPROJECTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPROJECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteProjectRequest : public RoaServiceRequest { +public: + DeleteProjectRequest(); + ~DeleteProjectRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string identifier_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPROJECTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteProjectResult.h b/devops/include/alibabacloud/devops/model/DeleteProjectResult.h new file mode 100644 index 000000000..2d9f68b47 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteProjectResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_DELETEPROJECTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteProjectResult : public ServiceResult + { + public: + + + DeleteProjectResult(); + explicit DeleteProjectResult(const std::string &payload); + ~DeleteProjectResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPROJECTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteProtectedBranchRequest.h b/devops/include/alibabacloud/devops/model/DeleteProtectedBranchRequest.h new file mode 100644 index 000000000..d83d57e91 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteProtectedBranchRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_DELETEPROTECTEDBRANCHREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPROTECTEDBRANCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteProtectedBranchRequest : public RoaServiceRequest { +public: + DeleteProtectedBranchRequest(); + ~DeleteProtectedBranchRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getProtectedBranchId() const; + void setProtectedBranchId(long protectedBranchId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + long protectedBranchId_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPROTECTEDBRANCHREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteProtectedBranchResult.h b/devops/include/alibabacloud/devops/model/DeleteProtectedBranchResult.h new file mode 100644 index 000000000..6afa3449f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteProtectedBranchResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_DELETEPROTECTEDBRANCHRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPROTECTEDBRANCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteProtectedBranchResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + DeleteProtectedBranchResult(); + explicit DeleteProtectedBranchResult(const std::string &payload); + ~DeleteProtectedBranchResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPROTECTEDBRANCHRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeletePushRuleRequest.h b/devops/include/alibabacloud/devops/model/DeletePushRuleRequest.h new file mode 100644 index 000000000..339fbecae --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeletePushRuleRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_DELETEPUSHRULEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPUSHRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeletePushRuleRequest : public RoaServiceRequest { +public: + DeletePushRuleRequest(); + ~DeletePushRuleRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPushRuleId() const; + void setPushRuleId(long pushRuleId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + long pushRuleId_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPUSHRULEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeletePushRuleResult.h b/devops/include/alibabacloud/devops/model/DeletePushRuleResult.h new file mode 100644 index 000000000..a5f3f7494 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeletePushRuleResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_DELETEPUSHRULERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEPUSHRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeletePushRuleResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + DeletePushRuleResult(); + explicit DeletePushRuleResult(const std::string &payload); + ~DeletePushRuleResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + std::string success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEPUSHRULERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteRepositoryGroupRequest.h b/devops/include/alibabacloud/devops/model/DeleteRepositoryGroupRequest.h new file mode 100644 index 000000000..33c35cc0a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteRepositoryGroupRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_DELETEREPOSITORYGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteRepositoryGroupRequest : public RoaServiceRequest { +public: + struct Body { + std::string reason; + }; + DeleteRepositoryGroupRequest(); + ~DeleteRepositoryGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getGroupId() const; + void setGroupId(long groupId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long groupId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteRepositoryGroupResult.h b/devops/include/alibabacloud/devops/model/DeleteRepositoryGroupResult.h new file mode 100644 index 000000000..fced0a486 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteRepositoryGroupResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_DELETEREPOSITORYGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteRepositoryGroupResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + DeleteRepositoryGroupResult(); + explicit DeleteRepositoryGroupResult(const std::string &payload); + ~DeleteRepositoryGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteRepositoryMemberRequest.h b/devops/include/alibabacloud/devops/model/DeleteRepositoryMemberRequest.h new file mode 100644 index 000000000..10038aad8 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteRepositoryMemberRequest.h @@ -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_DEVOPS_MODEL_DELETEREPOSITORYMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteRepositoryMemberRequest : public RoaServiceRequest { +public: + struct Body { + std::string memberType; + }; + DeleteRepositoryMemberRequest(); + ~DeleteRepositoryMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAliyunPk() const; + void setAliyunPk(const std::string &aliyunPk); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string aliyunPk_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteRepositoryMemberResult.h b/devops/include/alibabacloud/devops/model/DeleteRepositoryMemberResult.h new file mode 100644 index 000000000..2562b8616 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteRepositoryMemberResult.h @@ -0,0 +1,70 @@ +/* + * 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_DEVOPS_MODEL_DELETEREPOSITORYMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteRepositoryMemberResult : public ServiceResult + { + public: + struct Result + { + std::string updateAt; + std::string createAt; + std::string externUid; + long userId; + long sourceId; + std::string sourceType; + long id; + int accessLevel; + }; + + + DeleteRepositoryMemberResult(); + explicit DeleteRepositoryMemberResult(const std::string &payload); + ~DeleteRepositoryMemberResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteRepositoryRequest.h b/devops/include/alibabacloud/devops/model/DeleteRepositoryRequest.h new file mode 100644 index 000000000..ecf6eee3d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteRepositoryRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_DELETEREPOSITORYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteRepositoryRequest : public RoaServiceRequest { +public: + struct Body { + std::string reason; + }; + DeleteRepositoryRequest(); + ~DeleteRepositoryRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteRepositoryResult.h b/devops/include/alibabacloud/devops/model/DeleteRepositoryResult.h new file mode 100644 index 000000000..64b78e240 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteRepositoryResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_DELETEREPOSITORYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteRepositoryResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + DeleteRepositoryResult(); + explicit DeleteRepositoryResult(const std::string &payload); + ~DeleteRepositoryResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteRepositoryWebhookRequest.h b/devops/include/alibabacloud/devops/model/DeleteRepositoryWebhookRequest.h new file mode 100644 index 000000000..89a484d61 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteRepositoryWebhookRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_DELETEREPOSITORYWEBHOOKREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYWEBHOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteRepositoryWebhookRequest : public RoaServiceRequest { +public: + DeleteRepositoryWebhookRequest(); + ~DeleteRepositoryWebhookRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getHookId() const; + void setHookId(long hookId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + long hookId_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYWEBHOOKREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteRepositoryWebhookResult.h b/devops/include/alibabacloud/devops/model/DeleteRepositoryWebhookResult.h new file mode 100644 index 000000000..ba544c05c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteRepositoryWebhookResult.h @@ -0,0 +1,77 @@ +/* + * 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_DEVOPS_MODEL_DELETEREPOSITORYWEBHOOKRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYWEBHOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteRepositoryWebhookResult : public ServiceResult + { + public: + struct Result + { + std::string description; + bool pushEvents; + std::string createdAt; + long projectId; + bool issuesEvents; + bool tagPushEvents; + bool mergeRequestsEvents; + std::string url; + std::string type; + bool buildEvents; + std::string lastTestResult; + long id; + bool enableSslVerification; + bool noteEvents; + std::string secretToken; + }; + + + DeleteRepositoryWebhookResult(); + explicit DeleteRepositoryWebhookResult(const std::string &payload); + ~DeleteRepositoryWebhookResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEREPOSITORYWEBHOOKRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteResourceMemberRequest.h b/devops/include/alibabacloud/devops/model/DeleteResourceMemberRequest.h new file mode 100644 index 000000000..a83948c96 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteResourceMemberRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_DELETERESOURCEMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETERESOURCEMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteResourceMemberRequest : public RoaServiceRequest { +public: + DeleteResourceMemberRequest(); + ~DeleteResourceMemberRequest(); + long getResourceId() const; + void setResourceId(long resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + +private: + long resourceId_; + std::string resourceType_; + std::string organizationId_; + std::string accountId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETERESOURCEMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteResourceMemberResult.h b/devops/include/alibabacloud/devops/model/DeleteResourceMemberResult.h new file mode 100644 index 000000000..5d3508ffe --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteResourceMemberResult.h @@ -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_DEVOPS_MODEL_DELETERESOURCEMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETERESOURCEMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteResourceMemberResult : public ServiceResult + { + public: + + + DeleteResourceMemberResult(); + explicit DeleteResourceMemberResult(const std::string &payload); + ~DeleteResourceMemberResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETERESOURCEMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteTagRequest.h b/devops/include/alibabacloud/devops/model/DeleteTagRequest.h new file mode 100644 index 000000000..d2e0abad7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteTagRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_DELETETAGREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETETAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteTagRequest : public RoaServiceRequest { +public: + DeleteTagRequest(); + ~DeleteTagRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getTagName() const; + void setTagName(const std::string &tagName); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + std::string tagName_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETETAGREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteTagResult.h b/devops/include/alibabacloud/devops/model/DeleteTagResult.h new file mode 100644 index 000000000..c3e3dd676 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteTagResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_DELETETAGRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETETAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteTagResult : public ServiceResult + { + public: + struct Result + { + std::string tagName; + }; + + + DeleteTagResult(); + explicit DeleteTagResult(const std::string &payload); + ~DeleteTagResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETETAGRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteUserKeyRequest.h b/devops/include/alibabacloud/devops/model/DeleteUserKeyRequest.h new file mode 100644 index 000000000..da50ad79d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteUserKeyRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_DELETEUSERKEYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEUSERKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteUserKeyRequest : public RoaServiceRequest { +public: + DeleteUserKeyRequest(); + ~DeleteUserKeyRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getKeyId() const; + void setKeyId(long keyId); + +private: + std::string organizationId_; + std::string accessToken_; + long keyId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEUSERKEYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteUserKeyResult.h b/devops/include/alibabacloud/devops/model/DeleteUserKeyResult.h new file mode 100644 index 000000000..32b272f3c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteUserKeyResult.h @@ -0,0 +1,73 @@ +/* + * 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_DEVOPS_MODEL_DELETEUSERKEYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEUSERKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteUserKeyResult : public ServiceResult + { + public: + struct Result + { + std::string context; + std::string publicKey; + std::string createdAt; + std::string fingerPrint; + std::string lastUsedTime; + std::string title; + long id; + std::string expireTime; + std::string updatedAt; + std::string shaContext; + std::string keyScope; + }; + + + DeleteUserKeyResult(); + explicit DeleteUserKeyResult(const std::string &payload); + ~DeleteUserKeyResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEUSERKEYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteVariableGroupRequest.h b/devops/include/alibabacloud/devops/model/DeleteVariableGroupRequest.h new file mode 100644 index 000000000..de0dc896f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteVariableGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEVARIABLEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEVARIABLEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteVariableGroupRequest : public RoaServiceRequest { +public: + DeleteVariableGroupRequest(); + ~DeleteVariableGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getId() const; + void setId(long id); + +private: + std::string organizationId_; + long id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEVARIABLEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteVariableGroupResult.h b/devops/include/alibabacloud/devops/model/DeleteVariableGroupResult.h new file mode 100644 index 000000000..0d01702eb --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteVariableGroupResult.h @@ -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_DEVOPS_MODEL_DELETEVARIABLEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEVARIABLEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteVariableGroupResult : public ServiceResult + { + public: + + + DeleteVariableGroupResult(); + explicit DeleteVariableGroupResult(const std::string &payload); + ~DeleteVariableGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEVARIABLEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteWorkitemAllCommentRequest.h b/devops/include/alibabacloud/devops/model/DeleteWorkitemAllCommentRequest.h new file mode 100644 index 000000000..fbadb479c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteWorkitemAllCommentRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEWORKITEMALLCOMMENTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMALLCOMMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteWorkitemAllCommentRequest : public RoaServiceRequest { +public: + DeleteWorkitemAllCommentRequest(); + ~DeleteWorkitemAllCommentRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string identifier_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMALLCOMMENTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteWorkitemAllCommentResult.h b/devops/include/alibabacloud/devops/model/DeleteWorkitemAllCommentResult.h new file mode 100644 index 000000000..d2f63cb92 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteWorkitemAllCommentResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_DELETEWORKITEMALLCOMMENTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMALLCOMMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteWorkitemAllCommentResult : public ServiceResult + { + public: + + + DeleteWorkitemAllCommentResult(); + explicit DeleteWorkitemAllCommentResult(const std::string &payload); + ~DeleteWorkitemAllCommentResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::string getSuccess()const; + bool getDeleteFlag()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + std::string success_; + bool deleteFlag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMALLCOMMENTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteWorkitemCommentRequest.h b/devops/include/alibabacloud/devops/model/DeleteWorkitemCommentRequest.h new file mode 100644 index 000000000..f5922fa80 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteWorkitemCommentRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEWORKITEMCOMMENTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMCOMMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteWorkitemCommentRequest : public RoaServiceRequest { +public: + DeleteWorkitemCommentRequest(); + ~DeleteWorkitemCommentRequest(); + std::string getBody() const; + void setBody(const std::string &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMCOMMENTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteWorkitemCommentResult.h b/devops/include/alibabacloud/devops/model/DeleteWorkitemCommentResult.h new file mode 100644 index 000000000..79f706df1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteWorkitemCommentResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_DELETEWORKITEMCOMMENTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMCOMMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteWorkitemCommentResult : public ServiceResult + { + public: + + + DeleteWorkitemCommentResult(); + explicit DeleteWorkitemCommentResult(const std::string &payload); + ~DeleteWorkitemCommentResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::string getSuccess()const; + bool getDeleteFlag()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + std::string success_; + bool deleteFlag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMCOMMENTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/DeleteWorkitemRequest.h b/devops/include/alibabacloud/devops/model/DeleteWorkitemRequest.h new file mode 100644 index 000000000..982ceb971 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteWorkitemRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_DELETEWORKITEMREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT DeleteWorkitemRequest : public RoaServiceRequest { +public: + DeleteWorkitemRequest(); + ~DeleteWorkitemRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string identifier_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/DeleteWorkitemResult.h b/devops/include/alibabacloud/devops/model/DeleteWorkitemResult.h new file mode 100644 index 000000000..26bc0665a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/DeleteWorkitemResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_DELETEWORKITEMRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT DeleteWorkitemResult : public ServiceResult + { + public: + + + DeleteWorkitemResult(); + explicit DeleteWorkitemResult(const std::string &payload); + ~DeleteWorkitemResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + bool getDeleteFlag()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + bool deleteFlag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_DELETEWORKITEMRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/EnableDeployKeyRequest.h b/devops/include/alibabacloud/devops/model/EnableDeployKeyRequest.h new file mode 100644 index 000000000..3f7c8bf2b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/EnableDeployKeyRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_ENABLEDEPLOYKEYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ENABLEDEPLOYKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT EnableDeployKeyRequest : public RoaServiceRequest { +public: + EnableDeployKeyRequest(); + ~EnableDeployKeyRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getKeyId() const; + void setKeyId(long keyId); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + long keyId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ENABLEDEPLOYKEYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/EnableDeployKeyResult.h b/devops/include/alibabacloud/devops/model/EnableDeployKeyResult.h new file mode 100644 index 000000000..b6f45e64f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/EnableDeployKeyResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_ENABLEDEPLOYKEYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_ENABLEDEPLOYKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT EnableDeployKeyResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + EnableDeployKeyResult(); + explicit EnableDeployKeyResult(const std::string &payload); + ~EnableDeployKeyResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_ENABLEDEPLOYKEYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/FrozenWorkspaceRequest.h b/devops/include/alibabacloud/devops/model/FrozenWorkspaceRequest.h new file mode 100644 index 000000000..2ca2514ea --- /dev/null +++ b/devops/include/alibabacloud/devops/model/FrozenWorkspaceRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DEVOPS_MODEL_FROZENWORKSPACEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_FROZENWORKSPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT FrozenWorkspaceRequest : public RoaServiceRequest { +public: + FrozenWorkspaceRequest(); + ~FrozenWorkspaceRequest(); + std::string getWorkspaceId() const; + void setWorkspaceId(const std::string &workspaceId); + +private: + std::string workspaceId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_FROZENWORKSPACEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/FrozenWorkspaceResult.h b/devops/include/alibabacloud/devops/model/FrozenWorkspaceResult.h new file mode 100644 index 000000000..62abd05f9 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/FrozenWorkspaceResult.h @@ -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_DEVOPS_MODEL_FROZENWORKSPACERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_FROZENWORKSPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT FrozenWorkspaceResult : public ServiceResult + { + public: + + + FrozenWorkspaceResult(); + explicit FrozenWorkspaceResult(const std::string &payload); + ~FrozenWorkspaceResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_FROZENWORKSPACERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetApplicationRequest.h b/devops/include/alibabacloud/devops/model/GetApplicationRequest.h new file mode 100644 index 000000000..f6bad8f5f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetApplicationRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetApplicationRequest : public RoaServiceRequest { +public: + GetApplicationRequest(); + ~GetApplicationRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAppName() const; + void setAppName(const std::string &appName); + +private: + std::string organizationId_; + std::string appName_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETAPPLICATIONREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetApplicationResult.h b/devops/include/alibabacloud/devops/model/GetApplicationResult.h new file mode 100644 index 000000000..fd1d33899 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetApplicationResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_GETAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetApplicationResult : public ServiceResult + { + public: + + + GetApplicationResult(); + explicit GetApplicationResult(const std::string &payload); + ~GetApplicationResult(); + std::string getGmtCreate()const; + std::string getDescription()const; + std::string getRequestId()const; + std::string getCreatorAccountId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string gmtCreate_; + std::string description_; + std::string requestId_; + std::string creatorAccountId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetBranchInfoRequest.h b/devops/include/alibabacloud/devops/model/GetBranchInfoRequest.h new file mode 100644 index 000000000..3057b73ce --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetBranchInfoRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_GETBRANCHINFOREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETBRANCHINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetBranchInfoRequest : public RoaServiceRequest { +public: + GetBranchInfoRequest(); + ~GetBranchInfoRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getBranchName() const; + void setBranchName(const std::string &branchName); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + std::string branchName_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETBRANCHINFOREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetBranchInfoResult.h b/devops/include/alibabacloud/devops/model/GetBranchInfoResult.h new file mode 100644 index 000000000..0d1f01ff0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetBranchInfoResult.h @@ -0,0 +1,111 @@ +/* + * 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_DEVOPS_MODEL_GETBRANCHINFORESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETBRANCHINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetBranchInfoResult : public ServiceResult + { + public: + struct Result + { + struct Commit + { + struct Author + { + std::string tbUserId; + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string state; + long id; + std::string name; + }; + struct Committer + { + std::string tbUserId; + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string state; + long id; + std::string name; + }; + struct Signature + { + 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 parentIds; + Signature signature; + long commentsCount; + Author author; + std::string shortId; + Committer committer; + std::string id; + std::string committerName; + }; + std::string _protected; + Commit commit; + std::string name; + }; + + + GetBranchInfoResult(); + explicit GetBranchInfoResult(const std::string &payload); + ~GetBranchInfoResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETBRANCHINFORESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetCheckRunRequest.h b/devops/include/alibabacloud/devops/model/GetCheckRunRequest.h new file mode 100644 index 000000000..09410d347 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetCheckRunRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_GETCHECKRUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETCHECKRUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetCheckRunRequest : public RoaServiceRequest { +public: + GetCheckRunRequest(); + ~GetCheckRunRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getCheckRunId() const; + void setCheckRunId(long checkRunId); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + long checkRunId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETCHECKRUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetCheckRunResult.h b/devops/include/alibabacloud/devops/model/GetCheckRunResult.h new file mode 100644 index 000000000..4881b58a9 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetCheckRunResult.h @@ -0,0 +1,115 @@ +/* + * 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_DEVOPS_MODEL_GETCHECKRUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETCHECKRUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetCheckRunResult : public ServiceResult + { + public: + struct Result + { + struct CheckSuite + { + long id; + }; + struct Writer + { + std::string type; + std::string logoUrl; + std::string id; + std::string slug; + std::string name; + }; + struct Output + { + struct Output_images + { + std::string alt; + std::string imageUrl; + std::string caption; + }; + std::vector images; + std::string title; + std::string summary; + std::string text; + }; + struct Check_run_annotations + { + std::string path; + long startLine; + std::string message; + std::string annotationLevel; + long endLine; + long endColumn; + std::string title; + long id; + std::string rawDetails; + long startColumn; + }; + std::string status; + std::string createdAt; + std::string externalId; + std::vector annotations; + std::string updatedAt; + std::string name; + std::string headSha; + CheckSuite checkSuite; + Output output; + std::string detailsUrl; + std::string completedAt; + long id; + std::string startedAt; + Writer writer; + std::string conclusion; + }; + + + GetCheckRunResult(); + explicit GetCheckRunResult(const std::string &payload); + ~GetCheckRunResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETCHECKRUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetCodeupOrganizationRequest.h b/devops/include/alibabacloud/devops/model/GetCodeupOrganizationRequest.h new file mode 100644 index 000000000..a8c1ecb66 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetCodeupOrganizationRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETCODEUPORGANIZATIONREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETCODEUPORGANIZATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetCodeupOrganizationRequest : public RoaServiceRequest { +public: + GetCodeupOrganizationRequest(); + ~GetCodeupOrganizationRequest(); + std::string getIdentity() const; + void setIdentity(const std::string &identity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string identity_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETCODEUPORGANIZATIONREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetCodeupOrganizationResult.h b/devops/include/alibabacloud/devops/model/GetCodeupOrganizationResult.h new file mode 100644 index 000000000..f5da8dc71 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetCodeupOrganizationResult.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_GETCODEUPORGANIZATIONRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETCODEUPORGANIZATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetCodeupOrganizationResult : public ServiceResult + { + public: + struct Result + { + std::string path; + std::string userRole; + std::string createdAt; + long namespaceId; + long id; + std::string organizationId; + std::string updatedAt; + }; + + + GetCodeupOrganizationResult(); + explicit GetCodeupOrganizationResult(const std::string &payload); + ~GetCodeupOrganizationResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETCODEUPORGANIZATIONRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetCompareDetailRequest.h b/devops/include/alibabacloud/devops/model/GetCompareDetailRequest.h new file mode 100644 index 000000000..a675c1514 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetCompareDetailRequest.h @@ -0,0 +1,60 @@ +/* + * 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_DEVOPS_MODEL_GETCOMPAREDETAILREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETCOMPAREDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetCompareDetailRequest : public RoaServiceRequest { +public: + GetCompareDetailRequest(); + ~GetCompareDetailRequest(); + int getMaxDiffFile() const; + void setMaxDiffFile(int maxDiffFile); + bool getMergeBase() const; + void setMergeBase(bool mergeBase); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + int getMaxDiffByte() const; + void setMaxDiffByte(int maxDiffByte); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getFrom() const; + void setFrom(const std::string &from); + std::string getTo() const; + void setTo(const std::string &to); + +private: + int maxDiffFile_; + bool mergeBase_; + std::string organizationId_; + int maxDiffByte_; + long repositoryId_; + std::string from_; + std::string to_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETCOMPAREDETAILREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetCompareDetailResult.h b/devops/include/alibabacloud/devops/model/GetCompareDetailResult.h new file mode 100644 index 000000000..0b0b9c3dd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetCompareDetailResult.h @@ -0,0 +1,121 @@ +/* + * 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_DEVOPS_MODEL_GETCOMPAREDETAILRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETCOMPAREDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetCompareDetailResult : public ServiceResult + { + public: + struct Result + { + struct CommitsItem + { + struct Author + { + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string state; + std::string websiteUrl; + long id; + std::string name; + }; + struct Committer + { + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string state; + std::string websiteUrl; + long id; + std::string name; + }; + std::string authoredDate; + std::string message; + std::string authorName; + std::string createdAt; + std::string title; + std::string authorEmail; + std::string committerEmail; + std::string committedDate; + std::vector parentIds; + long commentsCount; + Author author; + std::string shortId; + Committer committer; + std::string id; + std::string committerName; + }; + struct DiffsItem + { + std::string newId; + bool isNewLfs; + std::string bMode; + std::string diff; + bool deletedFile; + std::string oldId; + bool isOldLfs; + bool newFile; + std::string oldPath; + bool renamedFile; + bool isBinary; + std::string newPath; + std::string aMode; + }; + std::vector messages; + std::vector commits; + std::vector diffs; + }; + + + GetCompareDetailResult(); + explicit GetCompareDetailResult(const std::string &payload); + ~GetCompareDetailResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETCOMPAREDETAILRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetCustomFieldOptionRequest.h b/devops/include/alibabacloud/devops/model/GetCustomFieldOptionRequest.h new file mode 100644 index 000000000..47fdd63cb --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetCustomFieldOptionRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_GETCUSTOMFIELDOPTIONREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETCUSTOMFIELDOPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetCustomFieldOptionRequest : public RoaServiceRequest { +public: + GetCustomFieldOptionRequest(); + ~GetCustomFieldOptionRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSpaceType() const; + void setSpaceType(const std::string &spaceType); + std::string getWorkitemTypeIdentifier() const; + void setWorkitemTypeIdentifier(const std::string &workitemTypeIdentifier); + std::string getSpaceIdentifier() const; + void setSpaceIdentifier(const std::string &spaceIdentifier); + std::string getFieldId() const; + void setFieldId(const std::string &fieldId); + +private: + std::string organizationId_; + std::string spaceType_; + std::string workitemTypeIdentifier_; + std::string spaceIdentifier_; + std::string fieldId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETCUSTOMFIELDOPTIONREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetCustomFieldOptionResult.h b/devops/include/alibabacloud/devops/model/GetCustomFieldOptionResult.h new file mode 100644 index 000000000..b80207d4a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetCustomFieldOptionResult.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_GETCUSTOMFIELDOPTIONRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETCUSTOMFIELDOPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetCustomFieldOptionResult : public ServiceResult + { + public: + struct Field + { + std::string identifier; + std::string displayValue; + long position; + std::string value; + std::string fieldIdentifier; + long level; + std::string valueEn; + }; + + + GetCustomFieldOptionResult(); + explicit GetCustomFieldOptionResult(const std::string &payload); + ~GetCustomFieldOptionResult(); + std::vector getfileds()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector fileds_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETCUSTOMFIELDOPTIONRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetFileBlobsRequest.h b/devops/include/alibabacloud/devops/model/GetFileBlobsRequest.h new file mode 100644 index 000000000..c410d22d6 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetFileBlobsRequest.h @@ -0,0 +1,60 @@ +/* + * 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_DEVOPS_MODEL_GETFILEBLOBSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETFILEBLOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetFileBlobsRequest : public RoaServiceRequest { +public: + GetFileBlobsRequest(); + ~GetFileBlobsRequest(); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRef() const; + void setRef(const std::string &ref); + std::string getFilePath() const; + void setFilePath(const std::string &filePath); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + long getFrom() const; + void setFrom(long from); + long getTo() const; + void setTo(long to); + +private: + std::string accessToken_; + std::string organizationId_; + std::string ref_; + std::string filePath_; + long repositoryId_; + long from_; + long to_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETFILEBLOBSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetFileBlobsResult.h b/devops/include/alibabacloud/devops/model/GetFileBlobsResult.h new file mode 100644 index 000000000..72f3ba07e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetFileBlobsResult.h @@ -0,0 +1,65 @@ +/* + * 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_DEVOPS_MODEL_GETFILEBLOBSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETFILEBLOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetFileBlobsResult : public ServiceResult + { + public: + struct Result + { + std::string content; + long size; + int totalLines; + }; + + + GetFileBlobsResult(); + explicit GetFileBlobsResult(const std::string &payload); + ~GetFileBlobsResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETFILEBLOBSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetFileLastCommitRequest.h b/devops/include/alibabacloud/devops/model/GetFileLastCommitRequest.h new file mode 100644 index 000000000..322e017fa --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetFileLastCommitRequest.h @@ -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_DEVOPS_MODEL_GETFILELASTCOMMITREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETFILELASTCOMMITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetFileLastCommitRequest : public RoaServiceRequest { +public: + GetFileLastCommitRequest(); + ~GetFileLastCommitRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getFilePath() const; + void setFilePath(const std::string &filePath); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + bool getShowSignature() const; + void setShowSignature(bool showSignature); + std::string getSha() const; + void setSha(const std::string &sha); + +private: + std::string organizationId_; + std::string filePath_; + long repositoryId_; + std::string accessToken_; + bool showSignature_; + std::string sha_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETFILELASTCOMMITREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetFileLastCommitResult.h b/devops/include/alibabacloud/devops/model/GetFileLastCommitResult.h new file mode 100644 index 000000000..c18c5114e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetFileLastCommitResult.h @@ -0,0 +1,80 @@ +/* + * 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_DEVOPS_MODEL_GETFILELASTCOMMITRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETFILELASTCOMMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetFileLastCommitResult : public ServiceResult + { + public: + struct Result + { + struct Signature + { + std::string verificationStatus; + std::string gpgKeyId; + }; + std::string authorName; + std::string message; + std::string createdAt; + std::string title; + std::string authorEmail; + std::string authorDate; + std::string committerEmail; + std::string committedDate; + std::vector parentIds; + Signature signature; + std::string shortId; + std::string id; + std::string committerName; + }; + + + GetFileLastCommitResult(); + explicit GetFileLastCommitResult(const std::string &payload); + ~GetFileLastCommitResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETFILELASTCOMMITRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetFlowTagGroupRequest.h b/devops/include/alibabacloud/devops/model/GetFlowTagGroupRequest.h new file mode 100644 index 000000000..5c1c1bfaf --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetFlowTagGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETFLOWTAGGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETFLOWTAGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetFlowTagGroupRequest : public RoaServiceRequest { +public: + GetFlowTagGroupRequest(); + ~GetFlowTagGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getId() const; + void setId(const std::string &id); + +private: + std::string organizationId_; + std::string id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETFLOWTAGGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetFlowTagGroupResult.h b/devops/include/alibabacloud/devops/model/GetFlowTagGroupResult.h new file mode 100644 index 000000000..3330b4306 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetFlowTagGroupResult.h @@ -0,0 +1,75 @@ +/* + * 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_DEVOPS_MODEL_GETFLOWTAGGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETFLOWTAGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetFlowTagGroupResult : public ServiceResult + { + public: + struct FlowTagGroup + { + struct FlowTag + { + std::string color; + std::string modiferAccountId; + long id; + std::string creatorAccountId; + std::string name; + }; + std::string modiferAccountId; + long id; + std::string creatorAccountId; + std::vector flowTagList; + std::string name; + }; + + + GetFlowTagGroupResult(); + explicit GetFlowTagGroupResult(const std::string &payload); + ~GetFlowTagGroupResult(); + std::string getRequestId()const; + FlowTagGroup getFlowTagGroup()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + FlowTagGroup flowTagGroup_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETFLOWTAGGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetGroupByPathRequest.h b/devops/include/alibabacloud/devops/model/GetGroupByPathRequest.h new file mode 100644 index 000000000..532ebb9f4 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetGroupByPathRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETGROUPBYPATHREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETGROUPBYPATHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetGroupByPathRequest : public RoaServiceRequest { +public: + GetGroupByPathRequest(); + ~GetGroupByPathRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getIdentity() const; + void setIdentity(const std::string &identity); + +private: + std::string organizationId_; + std::string identity_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETGROUPBYPATHREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetGroupByPathResult.h b/devops/include/alibabacloud/devops/model/GetGroupByPathResult.h new file mode 100644 index 000000000..71bd4ed07 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetGroupByPathResult.h @@ -0,0 +1,73 @@ +/* + * 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_DEVOPS_MODEL_GETGROUPBYPATHRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETGROUPBYPATHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetGroupByPathResult : public ServiceResult + { + public: + struct Result + { + std::string path; + std::string pathWithNamespace; + std::string parentId; + std::string description; + std::string avatarUrl; + std::string ownerId; + std::string nameWithNamespace; + std::string webUrl; + int visibilityLevel; + long id; + std::string name; + }; + + + GetGroupByPathResult(); + explicit GetGroupByPathResult(const std::string &payload); + ~GetGroupByPathResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETGROUPBYPATHRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetGroupDetailRequest.h b/devops/include/alibabacloud/devops/model/GetGroupDetailRequest.h new file mode 100644 index 000000000..219766a1f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetGroupDetailRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_GETGROUPDETAILREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETGROUPDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetGroupDetailRequest : public RoaServiceRequest { +public: + GetGroupDetailRequest(); + ~GetGroupDetailRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getGroupId() const; + void setGroupId(long groupId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + long groupId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETGROUPDETAILREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetGroupDetailResult.h b/devops/include/alibabacloud/devops/model/GetGroupDetailResult.h new file mode 100644 index 000000000..aa5f65702 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetGroupDetailResult.h @@ -0,0 +1,74 @@ +/* + * 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_DEVOPS_MODEL_GETGROUPDETAILRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETGROUPDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetGroupDetailResult : public ServiceResult + { + public: + struct Result + { + std::string path; + std::string pathWithNamespace; + long parentId; + std::string type; + std::string description; + std::string avatarUrl; + long ownerId; + std::string webUrl; + std::string nameWithNamespace; + int visibilityLevel; + long id; + std::string name; + }; + + + GetGroupDetailResult(); + explicit GetGroupDetailResult(const std::string &payload); + ~GetGroupDetailResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETGROUPDETAILRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetHostGroupRequest.h b/devops/include/alibabacloud/devops/model/GetHostGroupRequest.h new file mode 100644 index 000000000..928fbc5be --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetHostGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETHOSTGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETHOSTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetHostGroupRequest : public RoaServiceRequest { +public: + GetHostGroupRequest(); + ~GetHostGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getId() const; + void setId(long id); + +private: + std::string organizationId_; + long id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETHOSTGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetHostGroupResult.h b/devops/include/alibabacloud/devops/model/GetHostGroupResult.h new file mode 100644 index 000000000..2b69334fe --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetHostGroupResult.h @@ -0,0 +1,89 @@ +/* + * 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_DEVOPS_MODEL_GETHOSTGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETHOSTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetHostGroupResult : public ServiceResult + { + public: + struct HostGroup + { + struct HostInfo + { + std::string instanceName; + std::string modifierAccountId; + std::string objectType; + std::string machineSn; + std::string ip; + long createTime; + long updateTime; + std::string aliyunRegionId; + std::string creatorAccountId; + }; + std::string modifierAccountId; + std::string description; + long serviceConnectionId; + long upateTIme; + long createTime; + long hostNum; + std::string ecsLabelValue; + std::string creatorAccountId; + std::string name; + std::string type; + std::string ecsType; + std::string aliyunRegion; + std::vector hostInfos; + std::string ecsLabelKey; + long id; + }; + + + GetHostGroupResult(); + explicit GetHostGroupResult(const std::string &payload); + ~GetHostGroupResult(); + std::string getRequestId()const; + HostGroup getHostGroup()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + HostGroup hostGroup_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETHOSTGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetMergeRequestChangeTreeRequest.h b/devops/include/alibabacloud/devops/model/GetMergeRequestChangeTreeRequest.h new file mode 100644 index 000000000..6ff4d5c76 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetMergeRequestChangeTreeRequest.h @@ -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_DEVOPS_MODEL_GETMERGEREQUESTCHANGETREEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETMERGEREQUESTCHANGETREEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetMergeRequestChangeTreeRequest : public RoaServiceRequest { +public: + GetMergeRequestChangeTreeRequest(); + ~GetMergeRequestChangeTreeRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getToPatchSetBizId() const; + void setToPatchSetBizId(const std::string &toPatchSetBizId); + std::string getFromPatchSetBizId() const; + void setFromPatchSetBizId(const std::string &fromPatchSetBizId); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + std::string toPatchSetBizId_; + std::string fromPatchSetBizId_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETMERGEREQUESTCHANGETREEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetMergeRequestChangeTreeResult.h b/devops/include/alibabacloud/devops/model/GetMergeRequestChangeTreeResult.h new file mode 100644 index 000000000..fdd423c05 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetMergeRequestChangeTreeResult.h @@ -0,0 +1,77 @@ +/* + * 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_DEVOPS_MODEL_GETMERGEREQUESTCHANGETREERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETMERGEREQUESTCHANGETREERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetMergeRequestChangeTreeResult : public ServiceResult + { + public: + struct Result + { + struct ChangesetDTOS + { + bool newFile; + std::string oldPath; + bool renamedFile; + long delLines; + std::string newPath; + bool deletedFile; + bool binaryFile; + long addLines; + }; + long totalDelLines; + std::vector changedFilesInfos; + long changedFilesCount; + long totalAddLines; + }; + + + GetMergeRequestChangeTreeResult(); + explicit GetMergeRequestChangeTreeResult(const std::string &payload); + ~GetMergeRequestChangeTreeResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETMERGEREQUESTCHANGETREERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetMergeRequestRequest.h b/devops/include/alibabacloud/devops/model/GetMergeRequestRequest.h new file mode 100644 index 000000000..8ee326287 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetMergeRequestRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_GETMERGEREQUESTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETMERGEREQUESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetMergeRequestRequest : public RoaServiceRequest { +public: + GetMergeRequestRequest(); + ~GetMergeRequestRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETMERGEREQUESTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetMergeRequestResult.h b/devops/include/alibabacloud/devops/model/GetMergeRequestResult.h new file mode 100644 index 000000000..31561134e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetMergeRequestResult.h @@ -0,0 +1,129 @@ +/* + * 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_DEVOPS_MODEL_GETMERGEREQUESTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETMERGEREQUESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetMergeRequestResult : public ServiceResult + { + public: + struct Result + { + struct Author + { + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + long id; + std::string name; + }; + struct TodoList + { + struct Requirement_rule_items + { + bool pass; + std::string itemType; + }; + std::vector requirementCheckItems; + }; + struct ReviewersItem + { + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + bool hasCommented; + std::string reviewTime; + long id; + bool hasReviewed; + std::string reviewOpinionStatus; + std::string name; + }; + struct SubscribersItem + { + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + long id; + std::string name; + }; + std::string description; + std::string targetProjectNameWithNamespace; + int behind; + std::string targetProjectPathWithNamespace; + long sourceProjectId; + std::string mrType; + std::string mergedRevision; + std::string createFrom; + std::string mrBizId; + long targetProjectId; + std::string targetBranch; + std::string status; + long localId; + int ahead; + std::vector subscribers; + std::string createTime; + long projectId; + std::string title; + bool allRequirementsPass; + std::string detailUrl; + std::string webUrl; + bool supportMergeFastForwardOnly; + std::vector reviewers; + std::string sourceBranch; + std::string updateTime; + Author author; + TodoList todoList; + }; + + + GetMergeRequestResult(); + explicit GetMergeRequestResult(const std::string &payload); + ~GetMergeRequestResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETMERGEREQUESTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetOrganizationMemberRequest.h b/devops/include/alibabacloud/devops/model/GetOrganizationMemberRequest.h new file mode 100644 index 000000000..22f1f95c4 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetOrganizationMemberRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETORGANIZATIONMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETORGANIZATIONMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetOrganizationMemberRequest : public RoaServiceRequest { +public: + GetOrganizationMemberRequest(); + ~GetOrganizationMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + +private: + std::string organizationId_; + std::string accountId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETORGANIZATIONMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetOrganizationMemberResult.h b/devops/include/alibabacloud/devops/model/GetOrganizationMemberResult.h new file mode 100644 index 000000000..5a4598dd9 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetOrganizationMemberResult.h @@ -0,0 +1,81 @@ +/* + * 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_DEVOPS_MODEL_GETORGANIZATIONMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETORGANIZATIONMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetOrganizationMemberResult : public ServiceResult + { + public: + struct Member + { + struct Identities + { + std::string externUid; + std::string provider; + }; + std::vector deptLists; + long hiredDate; + std::string accountId; + std::string email; + long birthday; + std::string mobile; + std::string jobNumber; + std::string organizationMemberName; + std::string organizationRoleName; + std::string state; + long lastVisitTime; + std::string organizationRoleId; + long joinTime; + Identities identities; + }; + + + GetOrganizationMemberResult(); + explicit GetOrganizationMemberResult(const std::string &payload); + ~GetOrganizationMemberResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + Member getMember()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + Member member_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETORGANIZATIONMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetPipelineArtifactUrlRequest.h b/devops/include/alibabacloud/devops/model/GetPipelineArtifactUrlRequest.h new file mode 100644 index 000000000..6dfae21f0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineArtifactUrlRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINEARTIFACTURLREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEARTIFACTURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineArtifactUrlRequest : public RoaServiceRequest { +public: + GetPipelineArtifactUrlRequest(); + ~GetPipelineArtifactUrlRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getFileName() const; + void setFileName(const std::string &fileName); + std::string getFilePath() const; + void setFilePath(const std::string &filePath); + +private: + std::string organizationId_; + std::string fileName_; + std::string filePath_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEARTIFACTURLREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetPipelineArtifactUrlResult.h b/devops/include/alibabacloud/devops/model/GetPipelineArtifactUrlResult.h new file mode 100644 index 000000000..b65eb142e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineArtifactUrlResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINEARTIFACTURLRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEARTIFACTURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineArtifactUrlResult : public ServiceResult + { + public: + + + GetPipelineArtifactUrlResult(); + explicit GetPipelineArtifactUrlResult(const std::string &payload); + ~GetPipelineArtifactUrlResult(); + std::string getFileUrl()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string fileUrl_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEARTIFACTURLRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetPipelineEmasArtifactUrlRequest.h b/devops/include/alibabacloud/devops/model/GetPipelineEmasArtifactUrlRequest.h new file mode 100644 index 000000000..17c04f7cf --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineEmasArtifactUrlRequest.h @@ -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_DEVOPS_MODEL_GETPIPELINEEMASARTIFACTURLREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEEMASARTIFACTURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineEmasArtifactUrlRequest : public RoaServiceRequest { +public: + GetPipelineEmasArtifactUrlRequest(); + ~GetPipelineEmasArtifactUrlRequest(); + long getServiceConnectionId() const; + void setServiceConnectionId(long serviceConnectionId); + std::string getEmasJobInstanceId() const; + void setEmasJobInstanceId(const std::string &emasJobInstanceId); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPipelineRunId() const; + void setPipelineRunId(long pipelineRunId); + std::string getMd5() const; + void setMd5(const std::string &md5); + +private: + long serviceConnectionId_; + std::string emasJobInstanceId_; + long pipelineId_; + std::string organizationId_; + long pipelineRunId_; + std::string md5_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEEMASARTIFACTURLREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetPipelineEmasArtifactUrlResult.h b/devops/include/alibabacloud/devops/model/GetPipelineEmasArtifactUrlResult.h new file mode 100644 index 000000000..6e9c0abb9 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineEmasArtifactUrlResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINEEMASARTIFACTURLRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEEMASARTIFACTURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineEmasArtifactUrlResult : public ServiceResult + { + public: + + + GetPipelineEmasArtifactUrlResult(); + explicit GetPipelineEmasArtifactUrlResult(const std::string &payload); + ~GetPipelineEmasArtifactUrlResult(); + std::string getFileUrl()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string fileUrl_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEEMASARTIFACTURLRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetPipelineGroupRequest.h b/devops/include/alibabacloud/devops/model/GetPipelineGroupRequest.h new file mode 100644 index 000000000..144c6f26a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineGroupRequest : public RoaServiceRequest { +public: + GetPipelineGroupRequest(); + ~GetPipelineGroupRequest(); + long getGroupId() const; + void setGroupId(long groupId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + long groupId_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetPipelineGroupResult.h b/devops/include/alibabacloud/devops/model/GetPipelineGroupResult.h new file mode 100644 index 000000000..995a129e0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineGroupResult.h @@ -0,0 +1,65 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineGroupResult : public ServiceResult + { + public: + struct PipelineGroup + { + long createTime; + long id; + std::string name; + }; + + + GetPipelineGroupResult(); + explicit GetPipelineGroupResult(const std::string &payload); + ~GetPipelineGroupResult(); + std::string getRequestId()const; + PipelineGroup getPipelineGroup()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + PipelineGroup pipelineGroup_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetPipelineRequest.h b/devops/include/alibabacloud/devops/model/GetPipelineRequest.h new file mode 100644 index 000000000..8b7fc3eb4 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineRequest : public RoaServiceRequest { +public: + GetPipelineRequest(); + ~GetPipelineRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + long pipelineId_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetPipelineResult.h b/devops/include/alibabacloud/devops/model/GetPipelineResult.h new file mode 100644 index 000000000..5497caab0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineResult.h @@ -0,0 +1,108 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineResult : public ServiceResult + { + public: + struct Pipeline + { + struct PipelineConfig + { + struct Source + { + struct Data + { + long serviceConnectionId; + bool isCloneDepth; + long credentialId; + std::string label; + long cloneDepth; + std::string _namespace; + std::string credentialLabel; + std::string repo; + bool isBranchMode; + std::vector events; + std::string branch; + std::string triggerFilter; + bool isTrigger; + std::string credentialType; + std::string webhook; + bool isSubmodule; + }; + std::string type; + Data data; + std::string sign; + }; + std::vector sources; + std::string settings; + std::string flow; + }; + struct Tag + { + long id; + std::string name; + }; + std::vector tagList; + std::string modifierAccountId; + PipelineConfig pipelineConfig; + long createTime; + int envId; + long updateTime; + std::string creatorAccountId; + std::string envName; + long groupId; + std::string name; + }; + + + GetPipelineResult(); + explicit GetPipelineResult(const std::string &payload); + ~GetPipelineResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Pipeline getPipeline()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Pipeline pipeline_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetPipelineRunRequest.h b/devops/include/alibabacloud/devops/model/GetPipelineRunRequest.h new file mode 100644 index 000000000..d02649706 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineRunRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINERUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINERUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineRunRequest : public RoaServiceRequest { +public: + GetPipelineRunRequest(); + ~GetPipelineRunRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPipelineRunId() const; + void setPipelineRunId(long pipelineRunId); + +private: + long pipelineId_; + std::string organizationId_; + long pipelineRunId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINERUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetPipelineRunResult.h b/devops/include/alibabacloud/devops/model/GetPipelineRunResult.h new file mode 100644 index 000000000..52ef484df --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineRunResult.h @@ -0,0 +1,49 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINERUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINERUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineRunResult : public ServiceResult + { + public: + + + GetPipelineRunResult(); + explicit GetPipelineRunResult(const std::string &payload); + ~GetPipelineRunResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINERUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetPipelineScanReportUrlRequest.h b/devops/include/alibabacloud/devops/model/GetPipelineScanReportUrlRequest.h new file mode 100644 index 000000000..fe8c0f22c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineScanReportUrlRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINESCANREPORTURLREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINESCANREPORTURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineScanReportUrlRequest : public RoaServiceRequest { +public: + GetPipelineScanReportUrlRequest(); + ~GetPipelineScanReportUrlRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getReportPath() const; + void setReportPath(const std::string &reportPath); + +private: + std::string organizationId_; + std::string reportPath_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINESCANREPORTURLREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetPipelineScanReportUrlResult.h b/devops/include/alibabacloud/devops/model/GetPipelineScanReportUrlResult.h new file mode 100644 index 000000000..541daf8fa --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPipelineScanReportUrlResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_GETPIPELINESCANREPORTURLRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINESCANREPORTURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetPipelineScanReportUrlResult : public ServiceResult + { + public: + + + GetPipelineScanReportUrlResult(); + explicit GetPipelineScanReportUrlResult(const std::string &payload); + ~GetPipelineScanReportUrlResult(); + std::string getRequestId()const; + std::string getReportUrl()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string reportUrl_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPIPELINESCANREPORTURLRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetProjectInfoRequest.h b/devops/include/alibabacloud/devops/model/GetProjectInfoRequest.h new file mode 100644 index 000000000..431fdbef2 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetProjectInfoRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETPROJECTINFOREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPROJECTINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetProjectInfoRequest : public RoaServiceRequest { +public: + GetProjectInfoRequest(); + ~GetProjectInfoRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getProjectId() const; + void setProjectId(const std::string &projectId); + +private: + std::string organizationId_; + std::string projectId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPROJECTINFOREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetProjectInfoResult.h b/devops/include/alibabacloud/devops/model/GetProjectInfoResult.h new file mode 100644 index 000000000..caa972af8 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetProjectInfoResult.h @@ -0,0 +1,86 @@ +/* + * 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_DEVOPS_MODEL_GETPROJECTINFORESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPROJECTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetProjectInfoResult : public ServiceResult + { + public: + struct Project + { + std::string iconBig; + std::string identifierPath; + std::string typeIdentifier; + std::string category; + std::string description; + std::string statusStageIdentifier; + std::string subType; + std::string categoryIdentifier; + long gmtModified; + std::string creator; + std::string iconSmall; + std::string parentIdentifier; + std::string name; + std::string organizationIdentifier; + long gmtCreate; + std::string identifier; + std::string scope; + std::string logicalStatus; + std::string iconGroup; + std::string icon; + std::string id; + std::string customCode; + std::string modifier; + std::string statusIdentifier; + }; + + + GetProjectInfoResult(); + explicit GetProjectInfoResult(const std::string &payload); + ~GetProjectInfoResult(); + Project getProject()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Project project_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPROJECTINFORESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetProjectMemberRequest.h b/devops/include/alibabacloud/devops/model/GetProjectMemberRequest.h new file mode 100644 index 000000000..413463609 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetProjectMemberRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_GETPROJECTMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPROJECTMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetProjectMemberRequest : public RoaServiceRequest { +public: + GetProjectMemberRequest(); + ~GetProjectMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAliyunPk() const; + void setAliyunPk(const std::string &aliyunPk); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + std::string aliyunPk_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPROJECTMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetProjectMemberResult.h b/devops/include/alibabacloud/devops/model/GetProjectMemberResult.h new file mode 100644 index 000000000..91c98e467 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetProjectMemberResult.h @@ -0,0 +1,68 @@ +/* + * 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_DEVOPS_MODEL_GETPROJECTMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPROJECTMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetProjectMemberResult : public ServiceResult + { + public: + struct Result + { + std::string avatarUrl; + std::string email; + std::string externUserId; + long id; + int accessLevel; + std::string name; + }; + + + GetProjectMemberResult(); + explicit GetProjectMemberResult(const std::string &payload); + ~GetProjectMemberResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPROJECTMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetPushRuleRequest.h b/devops/include/alibabacloud/devops/model/GetPushRuleRequest.h new file mode 100644 index 000000000..ee4c22eed --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPushRuleRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_GETPUSHRULEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPUSHRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetPushRuleRequest : public RoaServiceRequest { +public: + GetPushRuleRequest(); + ~GetPushRuleRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPushRuleId() const; + void setPushRuleId(long pushRuleId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + long pushRuleId_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPUSHRULEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetPushRuleResult.h b/devops/include/alibabacloud/devops/model/GetPushRuleResult.h new file mode 100644 index 000000000..ead5fb90e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetPushRuleResult.h @@ -0,0 +1,73 @@ +/* + * 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_DEVOPS_MODEL_GETPUSHRULERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETPUSHRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetPushRuleResult : public ServiceResult + { + public: + struct Result + { + struct Rule_infos + { + std::vector fileRuleRegexes; + std::string checkerName; + std::string checkerType; + std::string extraMessage; + }; + std::string gmtCreate; + std::string gmtModified; + long id; + std::vector ruleInfos; + }; + + + GetPushRuleResult(); + explicit GetPushRuleResult(const std::string &payload); + ~GetPushRuleResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETPUSHRULERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetRepositoryCommitRequest.h b/devops/include/alibabacloud/devops/model/GetRepositoryCommitRequest.h new file mode 100644 index 000000000..393d17b28 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetRepositoryCommitRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_GETREPOSITORYCOMMITREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYCOMMITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetRepositoryCommitRequest : public RoaServiceRequest { +public: + GetRepositoryCommitRequest(); + ~GetRepositoryCommitRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + bool getShowSignature() const; + void setShowSignature(bool showSignature); + std::string getSha() const; + void setSha(const std::string &sha); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + bool showSignature_; + std::string sha_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYCOMMITREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetRepositoryCommitResult.h b/devops/include/alibabacloud/devops/model/GetRepositoryCommitResult.h new file mode 100644 index 000000000..200bc76f0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetRepositoryCommitResult.h @@ -0,0 +1,107 @@ +/* + * 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_DEVOPS_MODEL_GETREPOSITORYCOMMITRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYCOMMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetRepositoryCommitResult : public ServiceResult + { + public: + struct Result + { + struct Author + { + std::string tbUserId; + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string state; + std::string websiteUrl; + long id; + std::string name; + }; + struct Committer + { + std::string tbUserId; + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string state; + std::string websiteUrl; + long id; + std::string name; + }; + struct Signature + { + 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 parentIds; + Signature signature; + long commentsCount; + Author author; + std::string shortId; + Committer committer; + std::string id; + std::string committerName; + }; + + + GetRepositoryCommitResult(); + explicit GetRepositoryCommitResult(const std::string &payload); + ~GetRepositoryCommitResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYCOMMITRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetRepositoryRequest.h b/devops/include/alibabacloud/devops/model/GetRepositoryRequest.h new file mode 100644 index 000000000..c4ade3807 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetRepositoryRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_GETREPOSITORYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetRepositoryRequest : public RoaServiceRequest { +public: + GetRepositoryRequest(); + ~GetRepositoryRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getIdentity() const; + void setIdentity(const std::string &identity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + std::string identity_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetRepositoryResult.h b/devops/include/alibabacloud/devops/model/GetRepositoryResult.h new file mode 100644 index 000000000..cf1f7e123 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetRepositoryResult.h @@ -0,0 +1,92 @@ +/* + * 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_DEVOPS_MODEL_GETREPOSITORYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetRepositoryResult : public ServiceResult + { + public: + struct Repository + { + struct _Namespace + { + std::string path; + std::string description; + long ownerId; + std::string createdAt; + int visibilityLevel; + long id; + std::string updatedAt; + std::string avatar; + std::string name; + }; + std::string defaultBranch; + std::string lastActivityAt; + std::string path; + std::string pathWithNamespace; + std::string sshUrlToRepository; + bool archive; + std::string description; + long creatorId; + std::string createdAt; + std::string nameWithNamespace; + std::string webUrl; + _Namespace _namespace; + int visibilityLevel; + std::string httpUrlToRepository; + std::string name; + std::string avatarUrl; + bool demoProjectStatus; + long id; + }; + + + GetRepositoryResult(); + explicit GetRepositoryResult(const std::string &payload); + ~GetRepositoryResult(); + Repository getRepository()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Repository repository_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetRepositoryTagRequest.h b/devops/include/alibabacloud/devops/model/GetRepositoryTagRequest.h new file mode 100644 index 000000000..ea2cd7204 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetRepositoryTagRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_GETREPOSITORYTAGREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYTAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetRepositoryTagRequest : public RoaServiceRequest { +public: + GetRepositoryTagRequest(); + ~GetRepositoryTagRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getTagName() const; + void setTagName(const std::string &tagName); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + std::string tagName_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYTAGREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetRepositoryTagResult.h b/devops/include/alibabacloud/devops/model/GetRepositoryTagResult.h new file mode 100644 index 000000000..40de2bf0c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetRepositoryTagResult.h @@ -0,0 +1,87 @@ +/* + * 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_DEVOPS_MODEL_GETREPOSITORYTAGRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetRepositoryTagResult : public ServiceResult + { + public: + struct Result + { + struct Commit + { + struct Signature + { + std::string verificationStatus; + std::string gpgKeyId; + }; + std::string authoredDate; + std::string message; + std::string authorName; + std::string createdAt; + std::string title; + std::string authorEmail; + std::string committerEmail; + std::string committedDate; + std::vector parentIds; + Signature signature; + std::string shortId; + std::string id; + std::string committerName; + }; + Commit commit; + std::string message; + std::string id; + std::string name; + }; + + + GetRepositoryTagResult(); + explicit GetRepositoryTagResult(const std::string &payload); + ~GetRepositoryTagResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETREPOSITORYTAGRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetSearchCodePreviewRequest.h b/devops/include/alibabacloud/devops/model/GetSearchCodePreviewRequest.h new file mode 100644 index 000000000..d3ce84c03 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetSearchCodePreviewRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_GETSEARCHCODEPREVIEWREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETSEARCHCODEPREVIEWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetSearchCodePreviewRequest : public RoaServiceRequest { +public: + GetSearchCodePreviewRequest(); + ~GetSearchCodePreviewRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getDocId() const; + void setDocId(const std::string &docId); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + bool getIsDsl() const; + void setIsDsl(bool isDsl); + +private: + std::string organizationId_; + std::string docId_; + std::string keyword_; + bool isDsl_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETSEARCHCODEPREVIEWREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetSearchCodePreviewResult.h b/devops/include/alibabacloud/devops/model/GetSearchCodePreviewResult.h new file mode 100644 index 000000000..fb850ccff --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetSearchCodePreviewResult.h @@ -0,0 +1,81 @@ +/* + * 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_DEVOPS_MODEL_GETSEARCHCODEPREVIEWRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETSEARCHCODEPREVIEWRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetSearchCodePreviewResult : public ServiceResult + { + public: + struct Result + { + struct HighlightTextMap + { + std::string fileName; + std::string organizationId; + std::string clob; + }; + struct Source + { + std::string filePath; + std::string repoPath; + std::string checkinDate; + std::string language; + std::string branch; + std::string fileName; + std::string organizationId; + }; + std::string docId; + HighlightTextMap highlightTextMap; + Source source; + }; + + + GetSearchCodePreviewResult(); + explicit GetSearchCodePreviewResult(const std::string &payload); + ~GetSearchCodePreviewResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETSEARCHCODEPREVIEWRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetSprintInfoRequest.h b/devops/include/alibabacloud/devops/model/GetSprintInfoRequest.h new file mode 100644 index 000000000..a8ec419b6 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetSprintInfoRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETSPRINTINFOREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETSPRINTINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetSprintInfoRequest : public RoaServiceRequest { +public: + GetSprintInfoRequest(); + ~GetSprintInfoRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSprintId() const; + void setSprintId(const std::string &sprintId); + +private: + std::string organizationId_; + std::string sprintId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETSPRINTINFOREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetSprintInfoResult.h b/devops/include/alibabacloud/devops/model/GetSprintInfoResult.h new file mode 100644 index 000000000..2be353538 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetSprintInfoResult.h @@ -0,0 +1,75 @@ +/* + * 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_DEVOPS_MODEL_GETSPRINTINFORESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETSPRINTINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetSprintInfoResult : public ServiceResult + { + public: + struct Sprint + { + std::string status; + std::string description; + long gmtModified; + std::string creator; + long endDate; + std::string name; + std::vector owners; + long startDate; + long gmtCreate; + std::string identifier; + std::string scope; + std::string spaceIdentifier; + std::string modifier; + }; + + + GetSprintInfoResult(); + explicit GetSprintInfoResult(const std::string &payload); + ~GetSprintInfoResult(); + std::string getRequestId()const; + Sprint getSprint()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Sprint sprint_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETSPRINTINFORESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetTestResultListRequest.h b/devops/include/alibabacloud/devops/model/GetTestResultListRequest.h new file mode 100644 index 000000000..ba39419e4 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetTestResultListRequest.h @@ -0,0 +1,52 @@ +/* + * 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_DEVOPS_MODEL_GETTESTRESULTLISTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETTESTRESULTLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetTestResultListRequest : public RoaServiceRequest { +public: + struct Body { + std::string conditions; + std::string directoryIdentifier; + }; + GetTestResultListRequest(); + ~GetTestResultListRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getTestPlanIdentifier() const; + void setTestPlanIdentifier(const std::string &testPlanIdentifier); + +private: + body body_; + std::string organizationId_; + std::string testPlanIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETTESTRESULTLISTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetTestResultListResult.h b/devops/include/alibabacloud/devops/model/GetTestResultListResult.h new file mode 100644 index 000000000..8256163fb --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetTestResultListResult.h @@ -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_DEVOPS_MODEL_GETTESTRESULTLISTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETTESTRESULTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetTestResultListResult : public ServiceResult + { + public: + struct TestcaseTestResultSummary + { + struct TestResultExecutor + { + std::string executorIdentifier; + std::string name; + }; + struct AssignedTo + { + std::string assignedToIdenttifier; + std::string name; + }; + struct FieldValueVO + { + std::string fieldClassName; + std::string value; + std::string fieldIdentifier; + std::string fieldFormat; + }; + AssignedTo assignedTo; + TestResultExecutor testResultExecutor; + long gmtCreate; + long bugCount; + std::vector customFields; + std::string testResultIdentifier; + long testResultGmtCreate; + std::string spaceIdentifier; + std::string categoryIdentifier; + std::string testResultStatus; + std::string testcaseIdentifier; + std::string subject; + }; + + + GetTestResultListResult(); + explicit GetTestResultListResult(const std::string &payload); + ~GetTestResultListResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::vector gettestResult()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + std::vector testResult_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETTESTRESULTLISTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetTestcaseListRequest.h b/devops/include/alibabacloud/devops/model/GetTestcaseListRequest.h new file mode 100644 index 000000000..6ece67c6f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetTestcaseListRequest.h @@ -0,0 +1,52 @@ +/* + * 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_DEVOPS_MODEL_GETTESTCASELISTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETTESTCASELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetTestcaseListRequest : public RoaServiceRequest { +public: + struct Body { + std::string nextToken; + std::string spaceIdentifier; + std::string conditions; + std::string directoryIdentifier; + std::string maxResult; + }; + GetTestcaseListRequest(); + ~GetTestcaseListRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETTESTCASELISTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetTestcaseListResult.h b/devops/include/alibabacloud/devops/model/GetTestcaseListResult.h new file mode 100644 index 000000000..222c9d8d7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetTestcaseListResult.h @@ -0,0 +1,98 @@ +/* + * 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_DEVOPS_MODEL_GETTESTCASELISTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETTESTCASELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetTestcaseListResult : public ServiceResult + { + public: + struct Workitem + { + struct AssignedTo + { + std::string assignedToIdenttifier; + std::string name; + }; + struct Space + { + std::string type; + std::string spaceIdentifier; + }; + struct CustomFieldsItem + { + std::string fieldClassName; + std::string value; + std::string fieldIdentifier; + std::string fieldFormat; + }; + struct Tag + { + std::string tagIdentifier; + std::string name; + }; + AssignedTo assignedTo; + Space space; + long gmtCreate; + std::string identifier; + std::vector customFields; + std::string categoryIdentifier; + std::string subject; + std::vector tags; + }; + + + GetTestcaseListResult(); + explicit GetTestcaseListResult(const std::string &payload); + ~GetTestcaseListResult(); + long getTotalCount()const; + std::string getNextToken()const; + std::string getRequestId()const; + long getMaxResults()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::vector gettestcase()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string nextToken_; + std::string requestId_; + long maxResults_; + std::string errorMsg_; + std::string errorCode_; + std::vector testcase_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETTESTCASELISTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetUserInfoRequest.h b/devops/include/alibabacloud/devops/model/GetUserInfoRequest.h new file mode 100644 index 000000000..e2c25b6ec --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetUserInfoRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DEVOPS_MODEL_GETUSERINFOREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETUSERINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetUserInfoRequest : public RoaServiceRequest { +public: + GetUserInfoRequest(); + ~GetUserInfoRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETUSERINFOREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetUserInfoResult.h b/devops/include/alibabacloud/devops/model/GetUserInfoResult.h new file mode 100644 index 000000000..ad4c79480 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetUserInfoResult.h @@ -0,0 +1,68 @@ +/* + * 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_DEVOPS_MODEL_GETUSERINFORESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETUSERINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetUserInfoResult : public ServiceResult + { + public: + struct Result + { + std::string email; + std::string avatarUrl; + std::string username; + std::string externUid; + long id; + std::string name; + }; + + + GetUserInfoResult(); + explicit GetUserInfoResult(const std::string &payload); + ~GetUserInfoResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETUSERINFORESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetVMDeployOrderRequest.h b/devops/include/alibabacloud/devops/model/GetVMDeployOrderRequest.h new file mode 100644 index 000000000..d22639465 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetVMDeployOrderRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_GETVMDEPLOYORDERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETVMDEPLOYORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetVMDeployOrderRequest : public RoaServiceRequest { +public: + GetVMDeployOrderRequest(); + ~GetVMDeployOrderRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getDeployOrderId() const; + void setDeployOrderId(long deployOrderId); + +private: + long pipelineId_; + std::string organizationId_; + long deployOrderId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETVMDEPLOYORDERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetVMDeployOrderResult.h b/devops/include/alibabacloud/devops/model/GetVMDeployOrderResult.h new file mode 100644 index 000000000..92b553ec0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetVMDeployOrderResult.h @@ -0,0 +1,101 @@ +/* + * 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_DEVOPS_MODEL_GETVMDEPLOYORDERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETVMDEPLOYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetVMDeployOrderResult : public ServiceResult + { + public: + struct DeployOrder + { + struct DeployMachineInfo + { + struct DeployMachine + { + struct Action2 + { + std::string type; + ObjectOfAny params; + bool disable; + }; + std::string status; + std::string machineSn; + std::string clientStatus; + int batchNum; + long createTime; + std::string ip; + long updateTime; + std::vector actions1; + }; + int batchNum; + long hostGroupId; + std::vector deployMachines; + }; + struct Action + { + std::string type; + ObjectOfAny params; + bool disable; + }; + std::string status; + int totalBatch; + long createTime; + DeployMachineInfo deployMachineInfo; + long updateTime; + int currentBatch; + std::string creator; + std::string exceptionCode; + std::vector actions; + std::string deployOrderId; + }; + + + GetVMDeployOrderResult(); + explicit GetVMDeployOrderResult(const std::string &payload); + ~GetVMDeployOrderResult(); + DeployOrder getDeployOrder()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + DeployOrder deployOrder_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETVMDEPLOYORDERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetVariableGroupRequest.h b/devops/include/alibabacloud/devops/model/GetVariableGroupRequest.h new file mode 100644 index 000000000..c1d7f801d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetVariableGroupRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETVARIABLEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETVARIABLEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetVariableGroupRequest : public RoaServiceRequest { +public: + GetVariableGroupRequest(); + ~GetVariableGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getId() const; + void setId(long id); + +private: + std::string organizationId_; + long id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETVARIABLEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetVariableGroupResult.h b/devops/include/alibabacloud/devops/model/GetVariableGroupResult.h new file mode 100644 index 000000000..d42a4d9a3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetVariableGroupResult.h @@ -0,0 +1,82 @@ +/* + * 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_DEVOPS_MODEL_GETVARIABLEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETVARIABLEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetVariableGroupResult : public ServiceResult + { + public: + struct VariableGroup + { + struct RelatedPipeline + { + long id; + std::string name; + }; + struct Variable + { + std::string value; + bool isEncrypted; + std::string name; + }; + std::string modifierAccountId; + std::vector variables; + std::string description; + long createTime; + long updateTime; + long id; + std::vector relatedPipelines; + std::string ccreatorAccountId; + std::string name; + }; + + + GetVariableGroupResult(); + explicit GetVariableGroupResult(const std::string &payload); + ~GetVariableGroupResult(); + std::string getRequestId()const; + VariableGroup getVariableGroup()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + VariableGroup variableGroup_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETVARIABLEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetWorkItemActivityRequest.h b/devops/include/alibabacloud/devops/model/GetWorkItemActivityRequest.h new file mode 100644 index 000000000..25676650a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkItemActivityRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMACTIVITYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMACTIVITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetWorkItemActivityRequest : public RoaServiceRequest { +public: + GetWorkItemActivityRequest(); + ~GetWorkItemActivityRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getWorkitemId() const; + void setWorkitemId(const std::string &workitemId); + +private: + std::string organizationId_; + std::string workitemId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMACTIVITYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetWorkItemActivityResult.h b/devops/include/alibabacloud/devops/model/GetWorkItemActivityResult.h new file mode 100644 index 000000000..37aa1d774 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkItemActivityResult.h @@ -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_DEVOPS_MODEL_GETWORKITEMACTIVITYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMACTIVITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetWorkItemActivityResult : public ServiceResult + { + public: + struct Activity + { + struct Property + { + std::string propertyName; + std::string displayName; + std::string propertyIdentifier; + std::string propertyType; + }; + struct OldValueItem + { + std::string displayValue; + std::string plainValue; + std::string resourceType; + }; + struct NewValueItem + { + std::string displayValue; + std::string plainValue; + std::string resourceType; + }; + std::vector newValue; + std::string resourceIdentifier; + std::string actionType; + long parentEventId; + std::string eventType; + long eventTime; + long eventId; + std::string _operator; + std::vector oldValue; + Property property; + }; + + + GetWorkItemActivityResult(); + explicit GetWorkItemActivityResult(const std::string &payload); + ~GetWorkItemActivityResult(); + std::string getRequestId()const; + std::vector getactivities()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector activities_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMACTIVITYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetWorkItemInfoRequest.h b/devops/include/alibabacloud/devops/model/GetWorkItemInfoRequest.h new file mode 100644 index 000000000..87bdb2409 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkItemInfoRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMINFOREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetWorkItemInfoRequest : public RoaServiceRequest { +public: + GetWorkItemInfoRequest(); + ~GetWorkItemInfoRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getWorkitemId() const; + void setWorkitemId(const std::string &workitemId); + +private: + std::string organizationId_; + std::string workitemId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMINFOREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetWorkItemInfoResult.h b/devops/include/alibabacloud/devops/model/GetWorkItemInfoResult.h new file mode 100644 index 000000000..52c8acf2d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkItemInfoResult.h @@ -0,0 +1,116 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMINFORESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetWorkItemInfoResult : public ServiceResult + { + public: + struct Workitem + { + struct CustomField + { + struct Value + { + std::string identifier; + std::string displayValue; + std::string value; + long level; + std::string valueEn; + }; + std::string workitemIdentifier; + std::string objectValue; + long position; + std::string fieldClassName; + std::vector valueList; + std::string value; + std::string fieldIdentifier; + std::string fieldFormat; + long level; + }; + struct TagDetailsItem + { + std::string identifier; + std::string color; + std::string name; + }; + std::vector tracker; + std::string statusStageIdentifier; + std::string spaceName; + std::vector customFields; + long gmtModified; + std::string creator; + std::string document; + std::vector verifier; + std::string identifier; + long finishTime; + std::vector tagDetails; + std::string spaceType; + std::string logicalStatus; + std::string modifier; + std::string status; + std::string categoryIdentifier; + std::string parentIdentifier; + std::string subject; + std::string assignedTo; + long updateStatusAt; + std::string workitemTypeIdentifier; + long gmtCreate; + std::string serialNumber; + std::vector participant; + std::string spaceIdentifier; + std::vector sprint; + std::vector tag; + std::string statusIdentifier; + }; + + + GetWorkItemInfoResult(); + explicit GetWorkItemInfoResult(const std::string &payload); + ~GetWorkItemInfoResult(); + Workitem getWorkitem()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Workitem workitem_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMINFORESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetWorkItemWorkFlowInfoRequest.h b/devops/include/alibabacloud/devops/model/GetWorkItemWorkFlowInfoRequest.h new file mode 100644 index 000000000..61302944c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkItemWorkFlowInfoRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMWORKFLOWINFOREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMWORKFLOWINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetWorkItemWorkFlowInfoRequest : public RoaServiceRequest { +public: + GetWorkItemWorkFlowInfoRequest(); + ~GetWorkItemWorkFlowInfoRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getWorkitemId() const; + void setWorkitemId(const std::string &workitemId); + std::string getConfigurationId() const; + void setConfigurationId(const std::string &configurationId); + +private: + std::string organizationId_; + std::string workitemId_; + std::string configurationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMWORKFLOWINFOREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetWorkItemWorkFlowInfoResult.h b/devops/include/alibabacloud/devops/model/GetWorkItemWorkFlowInfoResult.h new file mode 100644 index 000000000..3a3ab0ed1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkItemWorkFlowInfoResult.h @@ -0,0 +1,99 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMWORKFLOWINFORESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMWORKFLOWINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetWorkItemWorkFlowInfoResult : public ServiceResult + { + public: + struct Workflow + { + struct WorkflowAction + { + std::string nextWorkflowStatusIdentifier; + std::string workflowIdentifier; + std::string workflowStatusIdentifier; + long id; + std::string name; + }; + struct Statuse + { + long gmtCreate; + std::string identifier; + std::string description; + long gmtModified; + std::string resourceType; + std::string workflowStageName; + std::string workflowStageIdentifier; + std::string creator; + std::string modifier; + std::string source; + std::string name; + }; + std::string defaultStatusIdentifier; + std::string description; + long gmtModified; + std::string resourceType; + std::string creator; + std::string source; + std::string name; + long gmtCreate; + std::vector workflowActions; + std::string identifier; + std::string statusOrder; + std::vector statuses; + std::string ownerSpaceType; + std::string ownerSpaceIdentifier; + std::string modifier; + }; + + + GetWorkItemWorkFlowInfoResult(); + explicit GetWorkItemWorkFlowInfoResult(const std::string &payload); + ~GetWorkItemWorkFlowInfoResult(); + std::string getRequestId()const; + Workflow getWorkflow()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Workflow workflow_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMWORKFLOWINFORESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemAttachmentCreatemetaRequest.h b/devops/include/alibabacloud/devops/model/GetWorkitemAttachmentCreatemetaRequest.h new file mode 100644 index 000000000..3369d3609 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemAttachmentCreatemetaRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMATTACHMENTCREATEMETAREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMATTACHMENTCREATEMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemAttachmentCreatemetaRequest : public RoaServiceRequest { +public: + GetWorkitemAttachmentCreatemetaRequest(); + ~GetWorkitemAttachmentCreatemetaRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getFileName() const; + void setFileName(const std::string &fileName); + std::string getWorkitemIdentifier() const; + void setWorkitemIdentifier(const std::string &workitemIdentifier); + +private: + std::string organizationId_; + std::string fileName_; + std::string workitemIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMATTACHMENTCREATEMETAREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemAttachmentCreatemetaResult.h b/devops/include/alibabacloud/devops/model/GetWorkitemAttachmentCreatemetaResult.h new file mode 100644 index 000000000..f5cb4d7f2 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemAttachmentCreatemetaResult.h @@ -0,0 +1,67 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMATTACHMENTCREATEMETARESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMATTACHMENTCREATEMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemAttachmentCreatemetaResult : public ServiceResult + { + public: + struct UploadInfo + { + std::string policy; + std::string accessid; + std::string signature; + std::string host; + std::string dir; + }; + + + GetWorkitemAttachmentCreatemetaResult(); + explicit GetWorkitemAttachmentCreatemetaResult(const std::string &payload); + ~GetWorkitemAttachmentCreatemetaResult(); + UploadInfo getUploadInfo()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + UploadInfo uploadInfo_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMATTACHMENTCREATEMETARESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemCommentListRequest.h b/devops/include/alibabacloud/devops/model/GetWorkitemCommentListRequest.h new file mode 100644 index 000000000..26b1e4ad4 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemCommentListRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMCOMMENTLISTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMCOMMENTLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemCommentListRequest : public RoaServiceRequest { +public: + GetWorkitemCommentListRequest(); + ~GetWorkitemCommentListRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getWorkitemId() const; + void setWorkitemId(const std::string &workitemId); + +private: + std::string organizationId_; + std::string workitemId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMCOMMENTLISTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemCommentListResult.h b/devops/include/alibabacloud/devops/model/GetWorkitemCommentListResult.h new file mode 100644 index 000000000..35ef3fcf7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemCommentListResult.h @@ -0,0 +1,81 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMCOMMENTLISTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMCOMMENTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemCommentListResult : public ServiceResult + { + public: + struct Result + { + struct User + { + std::string account; + std::string identifier; + std::string realName; + std::string nickName; + std::string avatar; + }; + long parentId; + bool isTop; + User user; + long modifiedTime; + long topTime; + std::string content; + std::string targetIdentifier; + long createTime; + std::string targetType; + long id; + std::string formatType; + }; + + + GetWorkitemCommentListResult(); + explicit GetWorkitemCommentListResult(const std::string &payload); + ~GetWorkitemCommentListResult(); + std::vector getcommentList()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector commentList_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMCOMMENTLISTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemFileRequest.h b/devops/include/alibabacloud/devops/model/GetWorkitemFileRequest.h new file mode 100644 index 000000000..9992a0713 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemFileRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMFILEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemFileRequest : public RoaServiceRequest { +public: + GetWorkitemFileRequest(); + ~GetWorkitemFileRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getFileIdentifier() const; + void setFileIdentifier(const std::string &fileIdentifier); + std::string getWorkitemIdentifier() const; + void setWorkitemIdentifier(const std::string &workitemIdentifier); + +private: + std::string organizationId_; + std::string fileIdentifier_; + std::string workitemIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMFILEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemFileResult.h b/devops/include/alibabacloud/devops/model/GetWorkitemFileResult.h new file mode 100644 index 000000000..523546aeb --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemFileResult.h @@ -0,0 +1,67 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMFILERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemFileResult : public ServiceResult + { + public: + struct WorkitemFile + { + std::string suffix; + int size; + std::string id; + std::string url; + std::string name; + }; + + + GetWorkitemFileResult(); + explicit GetWorkitemFileResult(const std::string &payload); + ~GetWorkitemFileResult(); + WorkitemFile getWorkitemFile()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + WorkitemFile workitemFile_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMFILERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemRelationsRequest.h b/devops/include/alibabacloud/devops/model/GetWorkitemRelationsRequest.h new file mode 100644 index 000000000..260062f4b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemRelationsRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMRELATIONSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMRELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemRelationsRequest : public RoaServiceRequest { +public: + GetWorkitemRelationsRequest(); + ~GetWorkitemRelationsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getWorkitemId() const; + void setWorkitemId(const std::string &workitemId); + std::string getRelationType() const; + void setRelationType(const std::string &relationType); + +private: + std::string organizationId_; + std::string workitemId_; + std::string relationType_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMRELATIONSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemRelationsResult.h b/devops/include/alibabacloud/devops/model/GetWorkitemRelationsResult.h new file mode 100644 index 000000000..ee657d317 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemRelationsResult.h @@ -0,0 +1,70 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMRELATIONSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMRELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemRelationsResult : public ServiceResult + { + public: + struct RelationListItem + { + std::string assignedTo; + std::string workitemTypeIdentifier; + std::string gmtCreate; + std::string identifier; + std::string spaceIdentifier; + std::string categoryIdentifier; + std::string gmtModified; + std::string subject; + }; + + + GetWorkitemRelationsResult(); + explicit GetWorkitemRelationsResult(const std::string &payload); + ~GetWorkitemRelationsResult(); + std::string getRequestId()const; + std::vector getrelationList()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector relationList_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMRELATIONSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemTimeTypeListRequest.h b/devops/include/alibabacloud/devops/model/GetWorkitemTimeTypeListRequest.h new file mode 100644 index 000000000..cf2d99692 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemTimeTypeListRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMTIMETYPELISTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMTIMETYPELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemTimeTypeListRequest : public RoaServiceRequest { +public: + GetWorkitemTimeTypeListRequest(); + ~GetWorkitemTimeTypeListRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMTIMETYPELISTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetWorkitemTimeTypeListResult.h b/devops/include/alibabacloud/devops/model/GetWorkitemTimeTypeListResult.h new file mode 100644 index 000000000..2ee10c030 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkitemTimeTypeListResult.h @@ -0,0 +1,67 @@ +/* + * 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_DEVOPS_MODEL_GETWORKITEMTIMETYPELISTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMTIMETYPELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetWorkitemTimeTypeListResult : public ServiceResult + { + public: + struct Result + { + std::string identifier; + std::string description; + long position; + std::string displayName; + std::string name; + }; + + + GetWorkitemTimeTypeListResult(); + explicit GetWorkitemTimeTypeListResult(const std::string &payload); + ~GetWorkitemTimeTypeListResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::vector gettimeType()const; + std::string getErrorCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::vector timeType_; + std::string errorCode_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKITEMTIMETYPELISTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/GetWorkspaceRequest.h b/devops/include/alibabacloud/devops/model/GetWorkspaceRequest.h new file mode 100644 index 000000000..ea1c412d0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkspaceRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DEVOPS_MODEL_GETWORKSPACEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKSPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT GetWorkspaceRequest : public RoaServiceRequest { +public: + GetWorkspaceRequest(); + ~GetWorkspaceRequest(); + std::string getWorkspaceId() const; + void setWorkspaceId(const std::string &workspaceId); + +private: + std::string workspaceId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKSPACEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/GetWorkspaceResult.h b/devops/include/alibabacloud/devops/model/GetWorkspaceResult.h new file mode 100644 index 000000000..2fc39e33b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/GetWorkspaceResult.h @@ -0,0 +1,71 @@ +/* + * 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_DEVOPS_MODEL_GETWORKSPACERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_GETWORKSPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT GetWorkspaceResult : public ServiceResult + { + public: + struct Workspace + { + std::string status; + std::string _template; + std::string userId; + std::string createTime; + std::string codeVersion; + std::string codeUrl; + std::string id; + std::string spec; + std::string name; + }; + + + GetWorkspaceResult(); + explicit GetWorkspaceResult(const std::string &payload); + ~GetWorkspaceResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Workspace getWorkspace()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Workspace workspace_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_GETWORKSPACERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/JoinPipelineGroupRequest.h b/devops/include/alibabacloud/devops/model/JoinPipelineGroupRequest.h new file mode 100644 index 000000000..4b111f412 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/JoinPipelineGroupRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_JOINPIPELINEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_JOINPIPELINEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT JoinPipelineGroupRequest : public RoaServiceRequest { +public: + JoinPipelineGroupRequest(); + ~JoinPipelineGroupRequest(); + long getGroupId() const; + void setGroupId(long groupId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getPipelineIds() const; + void setPipelineIds(const std::string &pipelineIds); + +private: + long groupId_; + std::string organizationId_; + std::string pipelineIds_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_JOINPIPELINEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/JoinPipelineGroupResult.h b/devops/include/alibabacloud/devops/model/JoinPipelineGroupResult.h new file mode 100644 index 000000000..7eb2895b6 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/JoinPipelineGroupResult.h @@ -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_DEVOPS_MODEL_JOINPIPELINEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_JOINPIPELINEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT JoinPipelineGroupResult : public ServiceResult + { + public: + + + JoinPipelineGroupResult(); + explicit JoinPipelineGroupResult(const std::string &payload); + ~JoinPipelineGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_JOINPIPELINEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/LinkMergeRequestLabelRequest.h b/devops/include/alibabacloud/devops/model/LinkMergeRequestLabelRequest.h new file mode 100644 index 000000000..9717e38a0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/LinkMergeRequestLabelRequest.h @@ -0,0 +1,58 @@ +/* + * 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_DEVOPS_MODEL_LINKMERGEREQUESTLABELREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LINKMERGEREQUESTLABELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT LinkMergeRequestLabelRequest : public RoaServiceRequest { +public: + struct Body { + std::string string; + std::vector labelIds; + }; + LinkMergeRequestLabelRequest(); + ~LinkMergeRequestLabelRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + body body_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LINKMERGEREQUESTLABELREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/LinkMergeRequestLabelResult.h b/devops/include/alibabacloud/devops/model/LinkMergeRequestLabelResult.h new file mode 100644 index 000000000..f282864f5 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/LinkMergeRequestLabelResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_LINKMERGEREQUESTLABELRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LINKMERGEREQUESTLABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT LinkMergeRequestLabelResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + LinkMergeRequestLabelResult(); + explicit LinkMergeRequestLabelResult(const std::string &payload); + ~LinkMergeRequestLabelResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LINKMERGEREQUESTLABELRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListApplicationMembersRequest.h b/devops/include/alibabacloud/devops/model/ListApplicationMembersRequest.h new file mode 100644 index 000000000..21671ba71 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListApplicationMembersRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTAPPLICATIONMEMBERSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTAPPLICATIONMEMBERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListApplicationMembersRequest : public RoaServiceRequest { +public: + ListApplicationMembersRequest(); + ~ListApplicationMembersRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAppName() const; + void setAppName(const std::string &appName); + +private: + std::string organizationId_; + std::string appName_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTAPPLICATIONMEMBERSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListApplicationMembersResult.h b/devops/include/alibabacloud/devops/model/ListApplicationMembersResult.h new file mode 100644 index 000000000..706ef6409 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListApplicationMembersResult.h @@ -0,0 +1,75 @@ +/* + * 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_DEVOPS_MODEL_LISTAPPLICATIONMEMBERSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTAPPLICATIONMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListApplicationMembersResult : public ServiceResult + { + public: + struct RecordsItem + { + struct RoleListItem + { + std::string displayName; + std::string name; + }; + std::string type; + std::string description; + std::string displayName; + std::string id; + std::vector roleList; + std::string avatar; + }; + + + ListApplicationMembersResult(); + explicit ListApplicationMembersResult(const std::string &payload); + ~ListApplicationMembersResult(); + long getPages()const; + long getPageSize()const; + std::string getRequestId()const; + std::vector getrecords()const; + long getTotal()const; + long getCurrent()const; + + protected: + void parse(const std::string &payload); + private: + long pages_; + long pageSize_; + std::string requestId_; + std::vector records_; + long total_; + long current_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTAPPLICATIONMEMBERSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListApplicationsRequest.h b/devops/include/alibabacloud/devops/model/ListApplicationsRequest.h new file mode 100644 index 000000000..687c87451 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListApplicationsRequest.h @@ -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_DEVOPS_MODEL_LISTAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListApplicationsRequest : public RoaServiceRequest { +public: + ListApplicationsRequest(); + ~ListApplicationsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + int getPerPage() const; + void setPerPage(int perPage); + std::string getPagination() const; + void setPagination(const std::string &pagination); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getSort() const; + void setSort(const std::string &sort); + +private: + std::string organizationId_; + int perPage_; + std::string pagination_; + std::string nextToken_; + std::string orderBy_; + std::string sort_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTAPPLICATIONSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListApplicationsResult.h b/devops/include/alibabacloud/devops/model/ListApplicationsResult.h new file mode 100644 index 000000000..04dca9da7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListApplicationsResult.h @@ -0,0 +1,62 @@ +/* + * 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_DEVOPS_MODEL_LISTAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListApplicationsResult : public ServiceResult + { + public: + struct DataItem + { + std::string gmtCreate; + std::string description; + std::string creatorAccountId; + std::string name; + }; + + + ListApplicationsResult(); + explicit ListApplicationsResult(const std::string &payload); + ~ListApplicationsResult(); + std::vector getdata()const; + std::string getNextToken()const; + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string nextToken_; + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListCheckRunsRequest.h b/devops/include/alibabacloud/devops/model/ListCheckRunsRequest.h new file mode 100644 index 000000000..8d98e04ac --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListCheckRunsRequest.h @@ -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_DEVOPS_MODEL_LISTCHECKRUNSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTCHECKRUNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListCheckRunsRequest : public RoaServiceRequest { +public: + ListCheckRunsRequest(); + ~ListCheckRunsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRef() const; + void setRef(const std::string &ref); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getPage() const; + void setPage(long page); + +private: + std::string organizationId_; + std::string ref_; + std::string repositoryIdentity_; + long pageSize_; + std::string accessToken_; + long page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTCHECKRUNSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListCheckRunsResult.h b/devops/include/alibabacloud/devops/model/ListCheckRunsResult.h new file mode 100644 index 000000000..27c811a9d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListCheckRunsResult.h @@ -0,0 +1,115 @@ +/* + * 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_DEVOPS_MODEL_LISTCHECKRUNSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTCHECKRUNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListCheckRunsResult : public ServiceResult + { + public: + struct ResultItem + { + struct CheckSuite + { + long id; + }; + struct Writer + { + std::string type; + std::string logoUrl; + std::string id; + std::string slug; + std::string name; + }; + struct Output + { + struct ImagesItem + { + std::string alt; + std::string imageUrl; + std::string caption; + }; + std::vector images; + std::string title; + std::string summary; + std::string text; + }; + struct AnnotationsItem + { + std::string path; + long startLine; + std::string message; + std::string annotationLevel; + long endLine; + long endColumn; + std::string title; + long id; + std::string rawDetails; + long startColumn; + }; + std::string status; + std::string createdAt; + std::string externalId; + std::vector annotations; + std::string updatedAt; + std::string name; + std::string headSha; + CheckSuite checkSuite; + Output output; + std::string detailsUrl; + std::string completedAt; + long id; + std::string startedAt; + Writer writer; + std::string conclusion; + }; + + + ListCheckRunsResult(); + explicit ListCheckRunsResult(const std::string &payload); + ~ListCheckRunsResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTCHECKRUNSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListCommitStatusesRequest.h b/devops/include/alibabacloud/devops/model/ListCommitStatusesRequest.h new file mode 100644 index 000000000..5587766b3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListCommitStatusesRequest.h @@ -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_DEVOPS_MODEL_LISTCOMMITSTATUSESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTCOMMITSTATUSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListCommitStatusesRequest : public RoaServiceRequest { +public: + ListCommitStatusesRequest(); + ~ListCommitStatusesRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getPage() const; + void setPage(long page); + std::string getSha() const; + void setSha(const std::string &sha); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + long pageSize_; + std::string accessToken_; + long page_; + std::string sha_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTCOMMITSTATUSESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListCommitStatusesResult.h b/devops/include/alibabacloud/devops/model/ListCommitStatusesResult.h new file mode 100644 index 000000000..5d7d3c65a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListCommitStatusesResult.h @@ -0,0 +1,78 @@ +/* + * 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_DEVOPS_MODEL_LISTCOMMITSTATUSESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTCOMMITSTATUSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListCommitStatusesResult : public ServiceResult + { + public: + struct ResultItem + { + struct Creator + { + std::string type; + std::string avatarUrl; + std::string aliyunPk; + std::string login; + }; + std::string context; + std::string description; + std::string state; + Creator creator; + long id; + std::string targetUrl; + std::string sha; + }; + + + ListCommitStatusesResult(); + explicit ListCommitStatusesResult(const std::string &payload); + ~ListCommitStatusesResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTCOMMITSTATUSESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListFlowTagGroupsRequest.h b/devops/include/alibabacloud/devops/model/ListFlowTagGroupsRequest.h new file mode 100644 index 000000000..0c0cdac42 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListFlowTagGroupsRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DEVOPS_MODEL_LISTFLOWTAGGROUPSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTFLOWTAGGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListFlowTagGroupsRequest : public RoaServiceRequest { +public: + ListFlowTagGroupsRequest(); + ~ListFlowTagGroupsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTFLOWTAGGROUPSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListFlowTagGroupsResult.h b/devops/include/alibabacloud/devops/model/ListFlowTagGroupsResult.h new file mode 100644 index 000000000..c1b26071c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListFlowTagGroupsResult.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_LISTFLOWTAGGROUPSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTFLOWTAGGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListFlowTagGroupsResult : public ServiceResult + { + public: + struct FlowTagGroup + { + std::string modiferAccountId; + long id; + std::string creatorAccountId; + std::string name; + }; + + + ListFlowTagGroupsResult(); + explicit ListFlowTagGroupsResult(const std::string &payload); + ~ListFlowTagGroupsResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::vector getflowTagGroups()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + std::vector flowTagGroups_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTFLOWTAGGROUPSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListGroupMemberRequest.h b/devops/include/alibabacloud/devops/model/ListGroupMemberRequest.h new file mode 100644 index 000000000..0d5baad03 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListGroupMemberRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTGROUPMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTGROUPMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListGroupMemberRequest : public RoaServiceRequest { +public: + ListGroupMemberRequest(); + ~ListGroupMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getGroupId() const; + void setGroupId(long groupId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + long groupId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTGROUPMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListGroupMemberResult.h b/devops/include/alibabacloud/devops/model/ListGroupMemberResult.h new file mode 100644 index 000000000..83f1ddcec --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListGroupMemberResult.h @@ -0,0 +1,72 @@ +/* + * 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_DEVOPS_MODEL_LISTGROUPMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTGROUPMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListGroupMemberResult : public ServiceResult + { + public: + struct ResultItem + { + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string memberType; + std::string state; + long sourceId; + long id; + int accessLevel; + std::string name; + }; + + + ListGroupMemberResult(); + explicit ListGroupMemberResult(const std::string &payload); + ~ListGroupMemberResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTGROUPMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListGroupRepositoriesRequest.h b/devops/include/alibabacloud/devops/model/ListGroupRepositoriesRequest.h new file mode 100644 index 000000000..6e293a5c7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListGroupRepositoriesRequest.h @@ -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_DEVOPS_MODEL_LISTGROUPREPOSITORIESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTGROUPREPOSITORIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListGroupRepositoriesRequest : public RoaServiceRequest { +public: + ListGroupRepositoriesRequest(); + ~ListGroupRepositoriesRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSearch() const; + void setSearch(const std::string &search); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getPage() const; + void setPage(long page); + +private: + std::string organizationId_; + std::string search_; + std::string groupId_; + long pageSize_; + std::string accessToken_; + long page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTGROUPREPOSITORIESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListGroupRepositoriesResult.h b/devops/include/alibabacloud/devops/model/ListGroupRepositoriesResult.h new file mode 100644 index 000000000..b0f8e01f3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListGroupRepositoriesResult.h @@ -0,0 +1,89 @@ +/* + * 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_DEVOPS_MODEL_LISTGROUPREPOSITORIESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTGROUPREPOSITORIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListGroupRepositoriesResult : public ServiceResult + { + public: + struct ResultItem + { + std::string sshUrl; + std::string description; + long commitCount; + std::string createdAt; + bool wikiEnabled; + bool privateFlag; + int visibilityLevel; + bool isStared; + std::string name; + bool archived; + bool snippetsEnabled; + int starCount; + bool mergeRequestsEnabled; + std::string path; + std::string pathWithNamespace; + std::string lastActivityAt; + bool issuesEnabled; + long creatorId; + std::string nameWithNamespace; + std::string webUrl; + std::string updatedAt; + std::string httpUrl; + std::string importUrl; + long id; + bool namespaceId; + }; + + + ListGroupRepositoriesResult(); + explicit ListGroupRepositoriesResult(const std::string &payload); + ~ListGroupRepositoriesResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTGROUPREPOSITORIESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListHostGroupsRequest.h b/devops/include/alibabacloud/devops/model/ListHostGroupsRequest.h new file mode 100644 index 000000000..1e4623b7b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListHostGroupsRequest.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_LISTHOSTGROUPSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTHOSTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListHostGroupsRequest : public RoaServiceRequest { +public: + ListHostGroupsRequest(); + ~ListHostGroupsRequest(); + std::string getPageSort() const; + void setPageSort(const std::string &pageSort); + std::string getCreatorAccountIds() const; + void setCreatorAccountIds(const std::string &creatorAccountIds); + long getCreateStartTime() const; + void setCreateStartTime(long createStartTime); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getPageOrder() const; + void setPageOrder(const std::string &pageOrder); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getName() const; + void setName(const std::string &name); + std::string getIds() const; + void setIds(const std::string &ids); + long getMaxResults() const; + void setMaxResults(long maxResults); + long getCreateEndTime() const; + void setCreateEndTime(long createEndTime); + +private: + std::string pageSort_; + std::string creatorAccountIds_; + long createStartTime_; + std::string organizationId_; + std::string pageOrder_; + std::string nextToken_; + std::string name_; + std::string ids_; + long maxResults_; + long createEndTime_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTHOSTGROUPSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListHostGroupsResult.h b/devops/include/alibabacloud/devops/model/ListHostGroupsResult.h new file mode 100644 index 000000000..c8873e73b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListHostGroupsResult.h @@ -0,0 +1,80 @@ +/* + * 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_DEVOPS_MODEL_LISTHOSTGROUPSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTHOSTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListHostGroupsResult : public ServiceResult + { + public: + struct HostGroup + { + std::string modifierAccountId; + std::string description; + long serviceConnectionId; + long createTime; + long hostNum; + std::string ecsLabelValue; + std::string creatorAccountId; + std::string name; + std::string type; + std::string ecsType; + long updateTime; + std::string aliyunRegion; + std::string ecsLabelKey; + long id; + }; + + + ListHostGroupsResult(); + explicit ListHostGroupsResult(const std::string &payload); + ~ListHostGroupsResult(); + std::vector gethostGroups()const; + long getTotalCount()const; + std::string getRequestId()const; + std::string getNextToken()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector hostGroups_; + long totalCount_; + std::string requestId_; + std::string nextToken_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTHOSTGROUPSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListJoinedOrganizationsRequest.h b/devops/include/alibabacloud/devops/model/ListJoinedOrganizationsRequest.h new file mode 100644 index 000000000..3f896a489 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListJoinedOrganizationsRequest.h @@ -0,0 +1,39 @@ +/* + * 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_DEVOPS_MODEL_LISTJOINEDORGANIZATIONSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTJOINEDORGANIZATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListJoinedOrganizationsRequest : public RoaServiceRequest { +public: + ListJoinedOrganizationsRequest(); + ~ListJoinedOrganizationsRequest(); + +private: +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTJOINEDORGANIZATIONSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListJoinedOrganizationsResult.h b/devops/include/alibabacloud/devops/model/ListJoinedOrganizationsResult.h new file mode 100644 index 000000000..5687697a3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListJoinedOrganizationsResult.h @@ -0,0 +1,64 @@ +/* + * 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_DEVOPS_MODEL_LISTJOINEDORGANIZATIONSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTJOINEDORGANIZATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListJoinedOrganizationsResult : public ServiceResult + { + public: + struct Result + { + std::string id; + std::string name; + }; + + + ListJoinedOrganizationsResult(); + explicit ListJoinedOrganizationsResult(const std::string &payload); + ~ListJoinedOrganizationsResult(); + std::string getRequestId()const; + std::vector getorganizations()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector organizations_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTJOINEDORGANIZATIONSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestCommentsRequest.h b/devops/include/alibabacloud/devops/model/ListMergeRequestCommentsRequest.h new file mode 100644 index 000000000..51ad14a76 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestCommentsRequest.h @@ -0,0 +1,62 @@ +/* + * 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_DEVOPS_MODEL_LISTMERGEREQUESTCOMMENTSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTCOMMENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestCommentsRequest : public RoaServiceRequest { +public: + struct Body { + std::string filePath; + std::string string; + std::vector patchSetBizIds; + std::string commentType; + std::string state; + bool resolved; + }; + ListMergeRequestCommentsRequest(); + ~ListMergeRequestCommentsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + body body_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTCOMMENTSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestCommentsResult.h b/devops/include/alibabacloud/devops/model/ListMergeRequestCommentsResult.h new file mode 100644 index 000000000..1c4b24ca5 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestCommentsResult.h @@ -0,0 +1,172 @@ +/* + * 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_DEVOPS_MODEL_LISTMERGEREQUESTCOMMENTSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTCOMMENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestCommentsResult : public ServiceResult + { + public: + struct ResultItem + { + struct Author + { + std::string avatarUrl; + std::string email; + std::string aliyunPk; + std::string username; + std::string state; + long id; + std::string name; + }; + struct RelatedPatchSet + { + std::string patchSetNo; + std::string commitId; + std::string patchSetBizId; + std::string createdAt; + std::string shortId; + std::string relatedMergeItemType; + std::string patchSetName; + }; + struct Child_comments_list + { + struct Author1 + { + std::string avatarUrl; + std::string email; + std::string aliyunPk; + std::string username; + std::string state; + long id; + std::string name; + }; + struct RelatedPatchSet2 + { + std::string patchSetNo; + std::string commitId; + std::string patchSetBizId; + std::string createdAt; + std::string shortId; + std::string relatedMergeItemType; + std::string patchSetName; + }; + struct Child_comments_list_child + { + struct Author3 + { + std::string avatarUrl; + std::string email; + std::string aliyunPk; + std::string username; + std::string state; + long id; + std::string name; + }; + struct RelatedPatchSet4 + { + std::string patchSetNo; + std::string commitId; + std::string patchSetBizId; + std::string createdAt; + std::string shortId; + std::string relatedMergeItemType; + std::string patchSetName; + }; + std::string filePath; + std::string parentCommentBizId; + Author3 author3; + std::string commentTime; + RelatedPatchSet4 relatedPatchSet4; + std::string lineNumber; + std::string rootCommentBizId; + std::string lastEditTime; + std::string commentType; + std::string commentBizId; + std::string state; + std::string content; + bool resolved; + bool deleted; + }; + std::vector finalChildComments; + std::string filePath; + std::string parentCommentBizId; + std::string commentTime; + Author1 author1; + std::string lineNumber; + std::string rootCommentBizId; + RelatedPatchSet2 relatedPatchSet2; + std::string lastEditTime; + std::string commentType; + std::string commentBizId; + std::string state; + std::string content; + bool resolved; + bool deleted; + }; + RelatedPatchSet relatedPatchSet; + std::string filePath; + std::string parentCommentBizId; + std::string commentTime; + std::string lineNumber; + std::string rootCommentBizId; + std::string lastEditTime; + std::string commentType; + std::string commentBizId; + std::string state; + std::string content; + Author author; + bool resolved; + bool deleted; + std::vector childComments; + }; + + + ListMergeRequestCommentsResult(); + explicit ListMergeRequestCommentsResult(const std::string &payload); + ~ListMergeRequestCommentsResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTCOMMENTSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestFilesReadsRequest.h b/devops/include/alibabacloud/devops/model/ListMergeRequestFilesReadsRequest.h new file mode 100644 index 000000000..87d41d714 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestFilesReadsRequest.h @@ -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_DEVOPS_MODEL_LISTMERGEREQUESTFILESREADSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTFILESREADSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestFilesReadsRequest : public RoaServiceRequest { +public: + ListMergeRequestFilesReadsRequest(); + ~ListMergeRequestFilesReadsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getToPatchSetBizId() const; + void setToPatchSetBizId(const std::string &toPatchSetBizId); + std::string getFromPatchSetBizId() const; + void setFromPatchSetBizId(const std::string &fromPatchSetBizId); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + std::string toPatchSetBizId_; + std::string fromPatchSetBizId_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTFILESREADSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestFilesReadsResult.h b/devops/include/alibabacloud/devops/model/ListMergeRequestFilesReadsResult.h new file mode 100644 index 000000000..a31679291 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestFilesReadsResult.h @@ -0,0 +1,77 @@ +/* + * 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_DEVOPS_MODEL_LISTMERGEREQUESTFILESREADSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTFILESREADSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestFilesReadsResult : public ServiceResult + { + public: + struct ResultItem + { + struct Read_users + { + std::string avatarUrl; + std::string email; + std::string aliyunPk; + std::string username; + std::string state; + std::string name; + }; + bool newFile; + std::string oldFilePath; + std::string renamedFile; + std::vector readUsers; + std::string deletedFile; + std::string newFilePath; + }; + + + ListMergeRequestFilesReadsResult(); + explicit ListMergeRequestFilesReadsResult(const std::string &payload); + ~ListMergeRequestFilesReadsResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTFILESREADSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestLabelsRequest.h b/devops/include/alibabacloud/devops/model/ListMergeRequestLabelsRequest.h new file mode 100644 index 000000000..33b27547f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestLabelsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_LISTMERGEREQUESTLABELSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTLABELSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestLabelsRequest : public RoaServiceRequest { +public: + ListMergeRequestLabelsRequest(); + ~ListMergeRequestLabelsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTLABELSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestLabelsResult.h b/devops/include/alibabacloud/devops/model/ListMergeRequestLabelsResult.h new file mode 100644 index 000000000..934752e64 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestLabelsResult.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_LISTMERGEREQUESTLABELSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTLABELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestLabelsResult : public ServiceResult + { + public: + struct Cr_labels + { + std::string description; + std::string color; + std::string id; + std::string name; + }; + + + ListMergeRequestLabelsResult(); + explicit ListMergeRequestLabelsResult(const std::string &payload); + ~ListMergeRequestLabelsResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTLABELSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestPatchSetsRequest.h b/devops/include/alibabacloud/devops/model/ListMergeRequestPatchSetsRequest.h new file mode 100644 index 000000000..87718f941 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestPatchSetsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_LISTMERGEREQUESTPATCHSETSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTPATCHSETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestPatchSetsRequest : public RoaServiceRequest { +public: + ListMergeRequestPatchSetsRequest(); + ~ListMergeRequestPatchSetsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTPATCHSETSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestPatchSetsResult.h b/devops/include/alibabacloud/devops/model/ListMergeRequestPatchSetsResult.h new file mode 100644 index 000000000..3cc7ae5d0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestPatchSetsResult.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_LISTMERGEREQUESTPATCHSETSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTPATCHSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestPatchSetsResult : public ServiceResult + { + public: + struct ResultItem + { + long patchSetNo; + std::string shortCommitId; + std::string commitId; + std::string patchSetBizId; + std::string createdAt; + std::string relatedMergeItemType; + std::string patchSetName; + }; + + + ListMergeRequestPatchSetsResult(); + explicit ListMergeRequestPatchSetsResult(const std::string &payload); + ~ListMergeRequestPatchSetsResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTPATCHSETSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestsRequest.h b/devops/include/alibabacloud/devops/model/ListMergeRequestsRequest.h new file mode 100644 index 000000000..979103329 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestsRequest.h @@ -0,0 +1,87 @@ +/* + * 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_DEVOPS_MODEL_LISTMERGEREQUESTSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestsRequest : public RoaServiceRequest { +public: + ListMergeRequestsRequest(); + ~ListMergeRequestsRequest(); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getProjectIds() const; + void setProjectIds(const std::string &projectIds); + std::string getSort() const; + void setSort(const std::string &sort); + std::string getCreatedAfter() const; + void setCreatedAfter(const std::string &createdAfter); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getFilter() const; + void setFilter(const std::string &filter); + std::string getCreatedBefore() const; + void setCreatedBefore(const std::string &createdBefore); + std::string getReviewerIds() const; + void setReviewerIds(const std::string &reviewerIds); + std::string getSearch() const; + void setSearch(const std::string &search); + std::string getGroupIds() const; + void setGroupIds(const std::string &groupIds); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getAuthorIds() const; + void setAuthorIds(const std::string &authorIds); + long getPage() const; + void setPage(long page); + std::string getState() const; + void setState(const std::string &state); + std::string getLabelIds() const; + void setLabelIds(const std::string &labelIds); + +private: + std::string accessToken_; + std::string orderBy_; + std::string projectIds_; + std::string sort_; + std::string createdAfter_; + std::string organizationId_; + std::string filter_; + std::string createdBefore_; + std::string reviewerIds_; + std::string search_; + std::string groupIds_; + long pageSize_; + std::string authorIds_; + long page_; + std::string state_; + std::string labelIds_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListMergeRequestsResult.h b/devops/include/alibabacloud/devops/model/ListMergeRequestsResult.h new file mode 100644 index 000000000..e3e5d238e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListMergeRequestsResult.h @@ -0,0 +1,133 @@ +/* + * 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_DEVOPS_MODEL_LISTMERGEREQUESTSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListMergeRequestsResult : public ServiceResult + { + public: + struct ResultItem + { + struct Author + { + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + long id; + std::string name; + }; + struct Assignees + { + std::string status; + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + bool hasCommented; + std::string reviewTime; + long id; + bool hasReviewed; + std::string reviewOpinionStatus; + std::string name; + }; + struct SubscribersItem + { + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + long id; + std::string name; + }; + struct Node_labels + { + std::string description; + std::string color; + std::string id; + std::string name; + }; + std::string sshUrl; + std::string description; + std::string createdAt; + std::string sourceType; + bool supportMergeFFOnly; + long sourceProjectId; + std::string mergedRevision; + std::string mrBizId; + std::string targetType; + long targetProjectId; + std::string targetBranch; + long localId; + long iid; + std::vector subscribers; + long projectId; + bool newMergeRequestIdentifier; + std::string title; + std::string detailUrl; + std::string webUrl; + std::string nameWithNamespace; + bool workInProgress; + std::vector reviewers; + std::string updatedAt; + std::vector labels; + std::string newVersionState; + std::string state; + std::string creationMethod; + std::string sourceBranch; + Author author; + long id; + }; + + + ListMergeRequestsResult(); + explicit ListMergeRequestsResult(const std::string &payload); + ~ListMergeRequestsResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTMERGEREQUESTSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListOrganizationMembersRequest.h b/devops/include/alibabacloud/devops/model/ListOrganizationMembersRequest.h new file mode 100644 index 000000000..151fb172e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListOrganizationMembersRequest.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_LISTORGANIZATIONMEMBERSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTORGANIZATIONMEMBERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListOrganizationMembersRequest : public RoaServiceRequest { +public: + ListOrganizationMembersRequest(); + ~ListOrganizationMembersRequest(); + std::string getExternUid() const; + void setExternUid(const std::string &externUid); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getOrganizationMemberName() const; + void setOrganizationMemberName(const std::string &organizationMemberName); + long getJoinTimeFrom() const; + void setJoinTimeFrom(long joinTimeFrom); + std::string getProvider() const; + void setProvider(const std::string &provider); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getJoinTimeTo() const; + void setJoinTimeTo(long joinTimeTo); + long getMaxResults() const; + void setMaxResults(long maxResults); + std::string getState() const; + void setState(const std::string &state); + bool getContainsExternInfo() const; + void setContainsExternInfo(bool containsExternInfo); + +private: + std::string externUid_; + std::string organizationId_; + std::string organizationMemberName_; + long joinTimeFrom_; + std::string provider_; + std::string nextToken_; + long joinTimeTo_; + long maxResults_; + std::string state_; + bool containsExternInfo_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTORGANIZATIONMEMBERSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListOrganizationMembersResult.h b/devops/include/alibabacloud/devops/model/ListOrganizationMembersResult.h new file mode 100644 index 000000000..a122be9ac --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListOrganizationMembersResult.h @@ -0,0 +1,85 @@ +/* + * 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_DEVOPS_MODEL_LISTORGANIZATIONMEMBERSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTORGANIZATIONMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListOrganizationMembersResult : public ServiceResult + { + public: + struct Member + { + struct Identities + { + std::string externUid; + std::string provider; + }; + std::vector deptLists; + long hiredDate; + std::string accountId; + std::string email; + long birthday; + std::string mobile; + std::string jobNumber; + std::string organizationMemberName; + std::string organizationRoleName; + std::string state; + long lastVisitTime; + std::string organizationRoleId; + long joinTime; + Identities identities; + }; + + + ListOrganizationMembersResult(); + explicit ListOrganizationMembersResult(const std::string &payload); + ~ListOrganizationMembersResult(); + long getTotalCount()const; + std::string getRequestId()const; + std::string getNextToken()const; + std::vector getmembers()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string requestId_; + std::string nextToken_; + std::vector members_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTORGANIZATIONMEMBERSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListOrganizationsRequest.h b/devops/include/alibabacloud/devops/model/ListOrganizationsRequest.h new file mode 100644 index 000000000..9bf22ffbf --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListOrganizationsRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTORGANIZATIONSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTORGANIZATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListOrganizationsRequest : public RoaServiceRequest { +public: + ListOrganizationsRequest(); + ~ListOrganizationsRequest(); + int getAccessLevel() const; + void setAccessLevel(int accessLevel); + int getMinAccessLevel() const; + void setMinAccessLevel(int minAccessLevel); + +private: + int accessLevel_; + int minAccessLevel_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTORGANIZATIONSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListOrganizationsResult.h b/devops/include/alibabacloud/devops/model/ListOrganizationsResult.h new file mode 100644 index 000000000..6b97dc2fe --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListOrganizationsResult.h @@ -0,0 +1,71 @@ +/* + * 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_DEVOPS_MODEL_LISTORGANIZATIONSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTORGANIZATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListOrganizationsResult : public ServiceResult + { + public: + struct ResultItem + { + std::string organizationName; + std::string organizationAlias; + std::string organizationRole; + long id; + std::string organizationId; + std::string namespaceId; + int accessLevel; + }; + + + ListOrganizationsResult(); + explicit ListOrganizationsResult(const std::string &payload); + ~ListOrganizationsResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTORGANIZATIONSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListPipelineGroupPipelinesRequest.h b/devops/include/alibabacloud/devops/model/ListPipelineGroupPipelinesRequest.h new file mode 100644 index 000000000..1bfcd6314 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineGroupPipelinesRequest.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINEGROUPPIPELINESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEGROUPPIPELINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineGroupPipelinesRequest : public RoaServiceRequest { +public: + ListPipelineGroupPipelinesRequest(); + ~ListPipelineGroupPipelinesRequest(); + std::string getPipelineName() const; + void setPipelineName(const std::string &pipelineName); + std::string getResultStatusList() const; + void setResultStatusList(const std::string &resultStatusList); + long getGroupId() const; + void setGroupId(long groupId); + long getExecuteEndTime() const; + void setExecuteEndTime(long executeEndTime); + long getCreateStartTime() const; + void setCreateStartTime(long createStartTime); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getMaxResults() const; + void setMaxResults(long maxResults); + long getExecuteStartTime() const; + void setExecuteStartTime(long executeStartTime); + long getCreateEndTime() const; + void setCreateEndTime(long createEndTime); + +private: + std::string pipelineName_; + std::string resultStatusList_; + long groupId_; + long executeEndTime_; + long createStartTime_; + std::string organizationId_; + std::string nextToken_; + long maxResults_; + long executeStartTime_; + long createEndTime_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEGROUPPIPELINESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListPipelineGroupPipelinesResult.h b/devops/include/alibabacloud/devops/model/ListPipelineGroupPipelinesResult.h new file mode 100644 index 000000000..8bf4326c7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineGroupPipelinesResult.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINEGROUPPIPELINESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEGROUPPIPELINESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineGroupPipelinesResult : public ServiceResult + { + public: + struct Pipeline + { + std::string pipelineName; + long createTime; + long pipelineId; + }; + + + ListPipelineGroupPipelinesResult(); + explicit ListPipelineGroupPipelinesResult(const std::string &payload); + ~ListPipelineGroupPipelinesResult(); + int getTotalCount()const; + std::vector getpipelines()const; + std::string getRequestId()const; + std::string getNextToken()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::vector pipelines_; + std::string requestId_; + std::string nextToken_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEGROUPPIPELINESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListPipelineGroupsRequest.h b/devops/include/alibabacloud/devops/model/ListPipelineGroupsRequest.h new file mode 100644 index 000000000..86556336b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineGroupsRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINEGROUPSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineGroupsRequest : public RoaServiceRequest { +public: + ListPipelineGroupsRequest(); + ~ListPipelineGroupsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + std::string organizationId_; + std::string nextToken_; + long maxResults_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEGROUPSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListPipelineGroupsResult.h b/devops/include/alibabacloud/devops/model/ListPipelineGroupsResult.h new file mode 100644 index 000000000..b3e25b180 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineGroupsResult.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINEGROUPSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineGroupsResult : public ServiceResult + { + public: + struct PieplineGroup + { + long createTime; + long id; + std::string name; + }; + + + ListPipelineGroupsResult(); + explicit ListPipelineGroupsResult(const std::string &payload); + ~ListPipelineGroupsResult(); + int getTotalCount()const; + std::string getRequestId()const; + std::string getNextToken()const; + std::vector getpipelineGroups()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string requestId_; + std::string nextToken_; + std::vector pipelineGroups_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEGROUPSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListPipelineJobHistorysRequest.h b/devops/include/alibabacloud/devops/model/ListPipelineJobHistorysRequest.h new file mode 100644 index 000000000..12ad22686 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineJobHistorysRequest.h @@ -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_DEVOPS_MODEL_LISTPIPELINEJOBHISTORYSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEJOBHISTORYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineJobHistorysRequest : public RoaServiceRequest { +public: + ListPipelineJobHistorysRequest(); + ~ListPipelineJobHistorysRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getMaxResults() const; + void setMaxResults(long maxResults); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string identifier_; + std::string pipelineId_; + std::string organizationId_; + std::string nextToken_; + long maxResults_; + std::string category_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEJOBHISTORYSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListPipelineJobHistorysResult.h b/devops/include/alibabacloud/devops/model/ListPipelineJobHistorysResult.h new file mode 100644 index 000000000..e8981483e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineJobHistorysResult.h @@ -0,0 +1,75 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINEJOBHISTORYSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEJOBHISTORYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineJobHistorysResult : public ServiceResult + { + public: + struct Job + { + std::string status; + std::string identifier; + long pipelineRunId; + int executeNumber; + std::string jobName; + long pipelineId; + std::string operatorAccountId; + std::string sources; + long jobId; + }; + + + ListPipelineJobHistorysResult(); + explicit ListPipelineJobHistorysResult(const std::string &payload); + ~ListPipelineJobHistorysResult(); + int getTotalCount()const; + std::string getRequestId()const; + std::string getNextToken()const; + std::vector getjobs()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string requestId_; + std::string nextToken_; + std::vector jobs_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEJOBHISTORYSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListPipelineJobsRequest.h b/devops/include/alibabacloud/devops/model/ListPipelineJobsRequest.h new file mode 100644 index 000000000..b060cc2b3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineJobsRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINEJOBSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineJobsRequest : public RoaServiceRequest { +public: + ListPipelineJobsRequest(); + ~ListPipelineJobsRequest(); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string pipelineId_; + std::string organizationId_; + std::string category_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEJOBSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListPipelineJobsResult.h b/devops/include/alibabacloud/devops/model/ListPipelineJobsResult.h new file mode 100644 index 000000000..747c43d41 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineJobsResult.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINEJOBSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineJobsResult : public ServiceResult + { + public: + struct Job + { + std::string identifier; + std::string jobName; + long lastJobId; + std::string lastJobParams; + }; + + + ListPipelineJobsResult(); + explicit ListPipelineJobsResult(const std::string &payload); + ~ListPipelineJobsResult(); + std::string getRequestId()const; + std::vector getjobs()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector jobs_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINEJOBSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListPipelineRelationsRequest.h b/devops/include/alibabacloud/devops/model/ListPipelineRelationsRequest.h new file mode 100644 index 000000000..cfd7adc6f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineRelationsRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINERELATIONSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINERELATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineRelationsRequest : public RoaServiceRequest { +public: + ListPipelineRelationsRequest(); + ~ListPipelineRelationsRequest(); + std::string getRelObjectType() const; + void setRelObjectType(const std::string &relObjectType); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string relObjectType_; + long pipelineId_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINERELATIONSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListPipelineRelationsResult.h b/devops/include/alibabacloud/devops/model/ListPipelineRelationsResult.h new file mode 100644 index 000000000..1943d884f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineRelationsResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINERELATIONSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINERELATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineRelationsResult : public ServiceResult + { + public: + struct PipelineRelation + { + long refObjectId; + }; + + + ListPipelineRelationsResult(); + explicit ListPipelineRelationsResult(const std::string &payload); + ~ListPipelineRelationsResult(); + std::string getRequestId()const; + std::vector getpipelineRelations()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector pipelineRelations_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINERELATIONSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListPipelineRunsRequest.h b/devops/include/alibabacloud/devops/model/ListPipelineRunsRequest.h new file mode 100644 index 000000000..61da5a428 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineRunsRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINERUNSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINERUNSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineRunsRequest : public RoaServiceRequest { +public: + ListPipelineRunsRequest(); + ~ListPipelineRunsRequest(); + long getEndTime() const; + void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); + long getPipelineId() const; + void setPipelineId(long pipelineId); + int getTriggerMode() const; + void setTriggerMode(int triggerMode); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getMaxResults() const; + void setMaxResults(long maxResults); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long endTime_; + long startTime_; + long pipelineId_; + int triggerMode_; + std::string organizationId_; + std::string nextToken_; + long maxResults_; + std::string status_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINERUNSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListPipelineRunsResult.h b/devops/include/alibabacloud/devops/model/ListPipelineRunsResult.h new file mode 100644 index 000000000..23d0af0cd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelineRunsResult.h @@ -0,0 +1,73 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINERUNSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINERUNSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListPipelineRunsResult : public ServiceResult + { + public: + struct PipelineRun + { + std::string status; + long endTime; + long pipelineRunId; + long startTime; + long pipelineId; + long triggerMode; + std::string creatorAccountId; + }; + + + ListPipelineRunsResult(); + explicit ListPipelineRunsResult(const std::string &payload); + ~ListPipelineRunsResult(); + long getTotalCount()const; + std::string getRequestId()const; + std::string getNextToken()const; + std::vector getpipelineRuns()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string requestId_; + std::string nextToken_; + std::vector pipelineRuns_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINERUNSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListPipelinesRequest.h b/devops/include/alibabacloud/devops/model/ListPipelinesRequest.h new file mode 100644 index 000000000..d69b5dff6 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelinesRequest.h @@ -0,0 +1,72 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListPipelinesRequest : public RoaServiceRequest { +public: + ListPipelinesRequest(); + ~ListPipelinesRequest(); + std::string getPipelineName() const; + void setPipelineName(const std::string &pipelineName); + std::string getStatusList() const; + void setStatusList(const std::string &statusList); + std::string getCreatorAccountIds() const; + void setCreatorAccountIds(const std::string &creatorAccountIds); + long getExecuteEndTime() const; + void setExecuteEndTime(long executeEndTime); + long getCreateStartTime() const; + void setCreateStartTime(long createStartTime); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getExecuteAccountIds() const; + void setExecuteAccountIds(const std::string &executeAccountIds); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getMaxResults() const; + void setMaxResults(long maxResults); + long getExecuteStartTime() const; + void setExecuteStartTime(long executeStartTime); + long getCreateEndTime() const; + void setCreateEndTime(long createEndTime); + +private: + std::string pipelineName_; + std::string statusList_; + std::string creatorAccountIds_; + long executeEndTime_; + long createStartTime_; + std::string organizationId_; + std::string executeAccountIds_; + std::string nextToken_; + long maxResults_; + long executeStartTime_; + long createEndTime_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListPipelinesResult.h b/devops/include/alibabacloud/devops/model/ListPipelinesResult.h new file mode 100644 index 000000000..8cfa17995 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPipelinesResult.h @@ -0,0 +1,71 @@ +/* + * 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_DEVOPS_MODEL_LISTPIPELINESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListPipelinesResult : public ServiceResult + { + public: + struct Pipeline + { + std::string pipelineName; + long createTime; + long pipelineId; + std::string creatorAccountId; + long groupId; + }; + + + ListPipelinesResult(); + explicit ListPipelinesResult(const std::string &payload); + ~ListPipelinesResult(); + long getTotalCount()const; + std::vector getpipelines()const; + std::string getRequestId()const; + std::string getNextToken()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector pipelines_; + std::string requestId_; + std::string nextToken_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPIPELINESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListProjectLabelsRequest.h b/devops/include/alibabacloud/devops/model/ListProjectLabelsRequest.h new file mode 100644 index 000000000..975db8e4d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectLabelsRequest.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTLABELSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTLABELSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListProjectLabelsRequest : public RoaServiceRequest { +public: + ListProjectLabelsRequest(); + ~ListProjectLabelsRequest(); + bool getWithCounts() const; + void setWithCounts(bool withCounts); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getSort() const; + void setSort(const std::string &sort); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSearch() const; + void setSearch(const std::string &search); + long getPageSize() const; + void setPageSize(long pageSize); + int getPage() const; + void setPage(int page); + +private: + bool withCounts_; + std::string repositoryIdentity_; + std::string accessToken_; + std::string orderBy_; + std::string sort_; + std::string organizationId_; + std::string search_; + long pageSize_; + int page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTLABELSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListProjectLabelsResult.h b/devops/include/alibabacloud/devops/model/ListProjectLabelsResult.h new file mode 100644 index 000000000..cf8f26dcd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectLabelsResult.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTLABELSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTLABELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListProjectLabelsResult : public ServiceResult + { + public: + struct Project_labels + { + long openMergeRequestsCount; + std::string description; + std::string color; + std::string id; + std::string name; + }; + + + ListProjectLabelsResult(); + explicit ListProjectLabelsResult(const std::string &payload); + ~ListProjectLabelsResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTLABELSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListProjectMembersRequest.h b/devops/include/alibabacloud/devops/model/ListProjectMembersRequest.h new file mode 100644 index 000000000..f921a1142 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectMembersRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTMEMBERSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTMEMBERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListProjectMembersRequest : public RoaServiceRequest { +public: + ListProjectMembersRequest(); + ~ListProjectMembersRequest(); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getProjectId() const; + void setProjectId(const std::string &projectId); + +private: + std::string targetType_; + std::string organizationId_; + std::string projectId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTMEMBERSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListProjectMembersResult.h b/devops/include/alibabacloud/devops/model/ListProjectMembersResult.h new file mode 100644 index 000000000..9faf5aa59 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectMembersResult.h @@ -0,0 +1,90 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTMEMBERSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListProjectMembersResult : public ServiceResult + { + public: + struct Member + { + struct Division + { + std::string identifier; + }; + struct OrganizationUserInfo + { + std::string organizationIdentifier; + }; + std::string account; + std::string email; + std::string stamp; + std::string displayRealName; + std::string nickNamePinyin; + std::string gender; + std::string nickName; + std::string mobile; + OrganizationUserInfo organizationUserInfo; + std::string avatar; + std::string displayNickName; + std::string dingTalkId; + std::string roleName; + std::string identifier; + std::string nameEn; + std::string displayName; + std::string realNamePinyin; + Division division; + std::string realName; + std::string tbRoleId; + }; + + + ListProjectMembersResult(); + explicit ListProjectMembersResult(const std::string &payload); + ~ListProjectMembersResult(); + std::string getRequestId()const; + std::vector getmembers()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector members_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTMEMBERSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListProjectTemplatesRequest.h b/devops/include/alibabacloud/devops/model/ListProjectTemplatesRequest.h new file mode 100644 index 000000000..2d27275ee --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectTemplatesRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListProjectTemplatesRequest : public RoaServiceRequest { +public: + ListProjectTemplatesRequest(); + ~ListProjectTemplatesRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string organizationId_; + std::string category_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTTEMPLATESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListProjectTemplatesResult.h b/devops/include/alibabacloud/devops/model/ListProjectTemplatesResult.h new file mode 100644 index 000000000..9ee906a63 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectTemplatesResult.h @@ -0,0 +1,77 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTTEMPLATESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListProjectTemplatesResult : public ServiceResult + { + public: + struct _Template + { + std::string description; + long gmtModified; + std::string resourceType; + std::string creator; + std::string resourceCategory; + std::string name; + long gmtCreate; + long type; + std::string identifier; + std::string copyFrom; + std::string spaceIdentifier; + std::string nameEn; + std::string spaceType; + std::string icon; + std::string modifier; + }; + + + ListProjectTemplatesResult(); + explicit ListProjectTemplatesResult(const std::string &payload); + ~ListProjectTemplatesResult(); + std::string getRequestId()const; + std::vector<_Template> gettemplates()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector<_Template> templates_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListProjectWorkitemTypesRequest.h b/devops/include/alibabacloud/devops/model/ListProjectWorkitemTypesRequest.h new file mode 100644 index 000000000..f75fbc0f1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectWorkitemTypesRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTWORKITEMTYPESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTWORKITEMTYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListProjectWorkitemTypesRequest : public RoaServiceRequest { +public: + ListProjectWorkitemTypesRequest(); + ~ListProjectWorkitemTypesRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSpaceType() const; + void setSpaceType(const std::string &spaceType); + std::string getCategory() const; + void setCategory(const std::string &category); + std::string getProjectId() const; + void setProjectId(const std::string &projectId); + +private: + std::string organizationId_; + std::string spaceType_; + std::string category_; + std::string projectId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTWORKITEMTYPESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListProjectWorkitemTypesResult.h b/devops/include/alibabacloud/devops/model/ListProjectWorkitemTypesResult.h new file mode 100644 index 000000000..a8a74630d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectWorkitemTypesResult.h @@ -0,0 +1,74 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTWORKITEMTYPESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTWORKITEMTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListProjectWorkitemTypesResult : public ServiceResult + { + public: + struct WorkitemType + { + bool systemDefault; + long gmtCreate; + std::string identifier; + std::string description; + bool defaultType; + std::string nameEn; + std::string categoryIdentifier; + bool enable; + std::string creator; + long gmtAdd; + std::string name; + std::string addUser; + }; + + + ListProjectWorkitemTypesResult(); + explicit ListProjectWorkitemTypesResult(const std::string &payload); + ~ListProjectWorkitemTypesResult(); + std::string getRequestId()const; + std::vector getworkitemTypes()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector workitemTypes_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTWORKITEMTYPESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListProjectsRequest.h b/devops/include/alibabacloud/devops/model/ListProjectsRequest.h new file mode 100644 index 000000000..f64e73ee7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectsRequest.h @@ -0,0 +1,60 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListProjectsRequest : public RoaServiceRequest { +public: + ListProjectsRequest(); + ~ListProjectsRequest(); + std::string getExtraConditions() const; + void setExtraConditions(const std::string &extraConditions); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getScope() const; + void setScope(const std::string &scope); + long getMaxResults() const; + void setMaxResults(long maxResults); + std::string getConditions() const; + void setConditions(const std::string &conditions); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string extraConditions_; + std::string organizationId_; + std::string nextToken_; + std::string scope_; + long maxResults_; + std::string conditions_; + std::string category_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListProjectsResult.h b/devops/include/alibabacloud/devops/model/ListProjectsResult.h new file mode 100644 index 000000000..8a4cfe5af --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProjectsResult.h @@ -0,0 +1,81 @@ +/* + * 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_DEVOPS_MODEL_LISTPROJECTSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListProjectsResult : public ServiceResult + { + public: + struct Project + { + std::string typeIdentifier; + std::string description; + std::string statusStageIdentifier; + long deleteTime; + std::string categoryIdentifier; + std::string creator; + std::string name; + long gmtCreate; + std::string identifier; + std::string scope; + std::string logicalStatus; + std::string icon; + std::string customCode; + }; + + + ListProjectsResult(); + explicit ListProjectsResult(const std::string &payload); + ~ListProjectsResult(); + long getTotalCount()const; + std::vector getprojects()const; + std::string getNextToken()const; + std::string getRequestId()const; + long getMaxResults()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector projects_; + std::string nextToken_; + std::string requestId_; + long maxResults_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROJECTSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListProtectedBranchesRequest.h b/devops/include/alibabacloud/devops/model/ListProtectedBranchesRequest.h new file mode 100644 index 000000000..10a1e3139 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProtectedBranchesRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTPROTECTEDBRANCHESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROTECTEDBRANCHESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListProtectedBranchesRequest : public RoaServiceRequest { +public: + ListProtectedBranchesRequest(); + ~ListProtectedBranchesRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROTECTEDBRANCHESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListProtectedBranchesResult.h b/devops/include/alibabacloud/devops/model/ListProtectedBranchesResult.h new file mode 100644 index 000000000..304698b92 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListProtectedBranchesResult.h @@ -0,0 +1,148 @@ +/* + * 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_DEVOPS_MODEL_LISTPROTECTEDBRANCHESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPROTECTEDBRANCHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListProtectedBranchesResult : public ServiceResult + { + public: + struct ResultItem + { + struct MergeRequestSetting + { + struct Default_assignees + { + std::string tbUserId; + std::string email; + std::string username; + long id; + std::string avatar; + std::string name; + }; + std::vector defaultAssignees; + bool isAllowSelfApproval; + bool isRequired; + int minimumApproval; + std::vector allowMergeRequestRoles; + std::string mrMode; + bool isResetApprovalWhenNewPush; + std::string whiteList; + bool isRequireDiscussionProcessed; + }; + struct TestSettingDTO + { + struct CodeGuidelinesDetection + { + std::string message; + bool enabled; + }; + struct SensitiveInfoDetection + { + std::string message; + bool enabled; + }; + struct CheckTaskQualityConfig + { + std::string message; + std::string taskName; + std::string bizNo; + bool enabled; + }; + struct CheckConfig + { + struct Check_items + { + bool isRequired; + std::string name; + }; + std::vector checkItems; + }; + SensitiveInfoDetection sensitiveInfoDetection; + bool isRequired; + CheckTaskQualityConfig checkTaskQualityConfig; + CodeGuidelinesDetection codeGuidelinesDetection; + CheckConfig checkConfig; + }; + struct Allow_push_users + { + std::string tbUserId; + std::string email; + std::string username; + long id; + std::string avatar; + std::string name; + }; + struct Allow_merge_users + { + std::string tbUserId; + std::string email; + std::string username; + long id; + std::string avatar; + std::string name; + }; + std::vector allowMergeUserIds; + std::vector allowPushRoles; + std::vector matches; + std::vector allowPushUsers; + std::string createdAt; + std::vector allowPushUserIds; + std::string updatedAt; + MergeRequestSetting mergeRequestSetting; + std::vector allowMergeUsers; + std::string branch; + TestSettingDTO testSettingDTO; + long id; + std::vector allowMergeRoles; + }; + + + ListProtectedBranchesResult(); + explicit ListProtectedBranchesResult(const std::string &payload); + ~ListProtectedBranchesResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPROTECTEDBRANCHESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListPushRulesRequest.h b/devops/include/alibabacloud/devops/model/ListPushRulesRequest.h new file mode 100644 index 000000000..60b1a778f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPushRulesRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTPUSHRULESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPUSHRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListPushRulesRequest : public RoaServiceRequest { +public: + ListPushRulesRequest(); + ~ListPushRulesRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPUSHRULESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListPushRulesResult.h b/devops/include/alibabacloud/devops/model/ListPushRulesResult.h new file mode 100644 index 000000000..fa7f06457 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListPushRulesResult.h @@ -0,0 +1,75 @@ +/* + * 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_DEVOPS_MODEL_LISTPUSHRULESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTPUSHRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListPushRulesResult : public ServiceResult + { + public: + struct ResultItem + { + struct Rule_infos + { + std::vector fileRuleRegexes; + std::string checkerName; + std::string checkerType; + std::string extraMessage; + }; + std::string gmtCreate; + std::string gmtModified; + long id; + std::vector ruleInfos; + }; + + + ListPushRulesResult(); + explicit ListPushRulesResult(const std::string &payload); + ~ListPushRulesResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTPUSHRULESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListRepositoriesRequest.h b/devops/include/alibabacloud/devops/model/ListRepositoriesRequest.h new file mode 100644 index 000000000..886448884 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoriesRequest.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORIESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoriesRequest : public RoaServiceRequest { +public: + ListRepositoriesRequest(); + ~ListRepositoriesRequest(); + long getPerPage() const; + void setPerPage(long perPage); + int getMinAccessLevel() const; + void setMinAccessLevel(int minAccessLevel); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getSort() const; + void setSort(const std::string &sort); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + bool getArchived() const; + void setArchived(bool archived); + std::string getSearch() const; + void setSearch(const std::string &search); + long getPage() const; + void setPage(long page); + +private: + long perPage_; + int minAccessLevel_; + std::string accessToken_; + std::string orderBy_; + std::string sort_; + std::string organizationId_; + bool archived_; + std::string search_; + long page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORIESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListRepositoriesResult.h b/devops/include/alibabacloud/devops/model/ListRepositoriesResult.h new file mode 100644 index 000000000..fbbd62ff3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoriesResult.h @@ -0,0 +1,82 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORIESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoriesResult : public ServiceResult + { + public: + struct ResultItem + { + std::string lastActivityAt; + std::string pathWithNamespace; + std::string path; + bool archive; + std::string description; + std::string createdAt; + std::string webUrl; + std::string nameWithNamespace; + std::string visibilityLevel; + std::string updatedAt; + int accessLevel; + std::string name; + std::string avatarUrl; + bool star; + std::string importStatus; + long namespaceId; + long id; + long starCount; + }; + + + ListRepositoriesResult(); + explicit ListRepositoriesResult(const std::string &payload); + ~ListRepositoriesResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + int getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + int errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORIESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryBranchesRequest.h b/devops/include/alibabacloud/devops/model/ListRepositoryBranchesRequest.h new file mode 100644 index 000000000..f7abbfe28 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryBranchesRequest.h @@ -0,0 +1,60 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYBRANCHESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYBRANCHESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryBranchesRequest : public RoaServiceRequest { +public: + ListRepositoryBranchesRequest(); + ~ListRepositoryBranchesRequest(); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getSort() const; + void setSort(const std::string &sort); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSearch() const; + void setSearch(const std::string &search); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + long getPageSize() const; + void setPageSize(long pageSize); + long getPage() const; + void setPage(long page); + +private: + std::string accessToken_; + std::string sort_; + std::string organizationId_; + std::string search_; + long repositoryId_; + long pageSize_; + long page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYBRANCHESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryBranchesResult.h b/devops/include/alibabacloud/devops/model/ListRepositoryBranchesResult.h new file mode 100644 index 000000000..8d654d110 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryBranchesResult.h @@ -0,0 +1,82 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYBRANCHESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYBRANCHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryBranchesResult : public ServiceResult + { + public: + struct ResultItem + { + struct Commit + { + std::string authoredDate; + std::string authorName; + std::string message; + std::string committedDate; + std::string committerEmail; + std::vector parentIds; + std::string createdAt; + std::string shortId; + std::string title; + std::string id; + std::string authorEmail; + std::string committerName; + }; + std::string _protected; + Commit commit; + std::string name; + }; + + + ListRepositoryBranchesResult(); + explicit ListRepositoryBranchesResult(const std::string &payload); + ~ListRepositoryBranchesResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYBRANCHESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryCommitDiffRequest.h b/devops/include/alibabacloud/devops/model/ListRepositoryCommitDiffRequest.h new file mode 100644 index 000000000..b39005396 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryCommitDiffRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYCOMMITDIFFREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYCOMMITDIFFREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryCommitDiffRequest : public RoaServiceRequest { +public: + ListRepositoryCommitDiffRequest(); + ~ListRepositoryCommitDiffRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + int getContextLine() const; + void setContextLine(int contextLine); + std::string getSha() const; + void setSha(const std::string &sha); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + int contextLine_; + std::string sha_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYCOMMITDIFFREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryCommitDiffResult.h b/devops/include/alibabacloud/devops/model/ListRepositoryCommitDiffResult.h new file mode 100644 index 000000000..a74271414 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryCommitDiffResult.h @@ -0,0 +1,75 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYCOMMITDIFFRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYCOMMITDIFFRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryCommitDiffResult : public ServiceResult + { + public: + struct ResultItem + { + std::string newId; + bool isNewLfs; + std::string bMode; + std::string diff; + bool deletedFile; + std::string oldId; + bool isOldLfs; + bool newFile; + std::string oldPath; + bool renamedFile; + bool isBinary; + std::string newPath; + std::string aMode; + }; + + + ListRepositoryCommitDiffResult(); + explicit ListRepositoryCommitDiffResult(const std::string &payload); + ~ListRepositoryCommitDiffResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYCOMMITDIFFRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryCommitsRequest.h b/devops/include/alibabacloud/devops/model/ListRepositoryCommitsRequest.h new file mode 100644 index 000000000..eb32e15bd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryCommitsRequest.h @@ -0,0 +1,75 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYCOMMITSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYCOMMITSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryCommitsRequest : public RoaServiceRequest { +public: + ListRepositoryCommitsRequest(); + ~ListRepositoryCommitsRequest(); + bool getShowCommentsCount() const; + void setShowCommentsCount(bool showCommentsCount); + std::string getStart() const; + void setStart(const std::string &start); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + bool getShowSignature() const; + void setShowSignature(bool showSignature); + std::string getRefName() const; + void setRefName(const std::string &refName); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getPath() const; + void setPath(const std::string &path); + std::string getSearch() const; + void setSearch(const std::string &search); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getEnd() const; + void setEnd(const std::string &end); + long getPage() const; + void setPage(long page); + +private: + bool showCommentsCount_; + std::string start_; + std::string accessToken_; + bool showSignature_; + std::string refName_; + std::string organizationId_; + std::string path_; + std::string search_; + long repositoryId_; + long pageSize_; + std::string end_; + long page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYCOMMITSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryCommitsResult.h b/devops/include/alibabacloud/devops/model/ListRepositoryCommitsResult.h new file mode 100644 index 000000000..edd0ef2ee --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryCommitsResult.h @@ -0,0 +1,109 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYCOMMITSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYCOMMITSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryCommitsResult : public ServiceResult + { + public: + struct ResultItem + { + struct Author + { + std::string tbUserId; + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string state; + std::string websiteUrl; + long id; + std::string name; + }; + struct Committer + { + std::string tbUserId; + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string state; + std::string websiteUrl; + long id; + std::string name; + }; + struct Signature + { + 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 parentIds; + Signature signature; + long commentsCount; + Author author; + std::string shortId; + Committer committer; + std::string id; + std::string committerName; + }; + + + ListRepositoryCommitsResult(); + explicit ListRepositoryCommitsResult(const std::string &payload); + ~ListRepositoryCommitsResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYCOMMITSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryGroupsRequest.h b/devops/include/alibabacloud/devops/model/ListRepositoryGroupsRequest.h new file mode 100644 index 000000000..46eb44dbd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryGroupsRequest.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYGROUPSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryGroupsRequest : public RoaServiceRequest { +public: + ListRepositoryGroupsRequest(); + ~ListRepositoryGroupsRequest(); + bool getIncludePersonal() const; + void setIncludePersonal(bool includePersonal); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getSort() const; + void setSort(const std::string &sort); + long getParentId() const; + void setParentId(long parentId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSearch() const; + void setSearch(const std::string &search); + long getPageSize() const; + void setPageSize(long pageSize); + long getPage() const; + void setPage(long page); + +private: + bool includePersonal_; + std::string accessToken_; + std::string orderBy_; + std::string sort_; + long parentId_; + std::string organizationId_; + std::string search_; + long pageSize_; + long page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYGROUPSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryGroupsResult.h b/devops/include/alibabacloud/devops/model/ListRepositoryGroupsResult.h new file mode 100644 index 000000000..affeacfc0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryGroupsResult.h @@ -0,0 +1,81 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYGROUPSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryGroupsResult : public ServiceResult + { + public: + struct ResultItem + { + std::string path; + std::string pathWithNamespace; + long parentId; + std::string description; + long groupCount; + std::string createdAt; + std::string nameWithNamespace; + std::string webUrl; + long projectCount; + int visibilityLevel; + std::string updatedAt; + int accessLevel; + std::string name; + std::string type; + std::string avatarUrl; + long ownerId; + long id; + }; + + + ListRepositoryGroupsResult(); + explicit ListRepositoryGroupsResult(const std::string &payload); + ~ListRepositoryGroupsResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYGROUPSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryMemberWithInheritedRequest.h b/devops/include/alibabacloud/devops/model/ListRepositoryMemberWithInheritedRequest.h new file mode 100644 index 000000000..379e63c35 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryMemberWithInheritedRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYMEMBERWITHINHERITEDREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYMEMBERWITHINHERITEDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryMemberWithInheritedRequest : public RoaServiceRequest { +public: + ListRepositoryMemberWithInheritedRequest(); + ~ListRepositoryMemberWithInheritedRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYMEMBERWITHINHERITEDREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryMemberWithInheritedResult.h b/devops/include/alibabacloud/devops/model/ListRepositoryMemberWithInheritedResult.h new file mode 100644 index 000000000..17f0ac149 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryMemberWithInheritedResult.h @@ -0,0 +1,81 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYMEMBERWITHINHERITEDRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYMEMBERWITHINHERITEDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryMemberWithInheritedResult : public ServiceResult + { + public: + struct ResultItem + { + struct Inherited + { + std::string pathWithNamespace; + std::string path; + std::string type; + std::string nameWithNamespace; + std::string visibilityLevel; + long id; + std::string name; + }; + std::string email; + std::string avatarUrl; + Inherited inherited; + std::string username; + std::string state; + std::string externUserId; + long id; + int accessLevel; + std::string name; + }; + + + ListRepositoryMemberWithInheritedResult(); + explicit ListRepositoryMemberWithInheritedResult(const std::string &payload); + ~ListRepositoryMemberWithInheritedResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYMEMBERWITHINHERITEDRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryTagsRequest.h b/devops/include/alibabacloud/devops/model/ListRepositoryTagsRequest.h new file mode 100644 index 000000000..4451c6854 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryTagsRequest.h @@ -0,0 +1,60 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYTAGSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryTagsRequest : public RoaServiceRequest { +public: + ListRepositoryTagsRequest(); + ~ListRepositoryTagsRequest(); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getSort() const; + void setSort(const std::string &sort); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSearch() const; + void setSearch(const std::string &search); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + long getPageSize() const; + void setPageSize(long pageSize); + long getPage() const; + void setPage(long page); + +private: + std::string accessToken_; + std::string sort_; + std::string organizationId_; + std::string search_; + long repositoryId_; + long pageSize_; + long page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYTAGSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryTagsResult.h b/devops/include/alibabacloud/devops/model/ListRepositoryTagsResult.h new file mode 100644 index 000000000..4f1d1a9da --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryTagsResult.h @@ -0,0 +1,89 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYTAGSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryTagsResult : public ServiceResult + { + public: + struct ResultItem + { + struct Commit + { + struct Signature + { + std::string verificationStatus; + std::string gpgKeyId; + }; + std::string authoredDate; + std::string message; + std::string authorName; + std::string createdAt; + std::string title; + std::string authorEmail; + std::string committerEmail; + std::string committedDate; + std::vector parentIds; + Signature signature; + std::string shortId; + std::string id; + std::string committerName; + }; + Commit commit; + std::string message; + std::string id; + std::string name; + }; + + + ListRepositoryTagsResult(); + explicit ListRepositoryTagsResult(const std::string &payload); + ~ListRepositoryTagsResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYTAGSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryTreeRequest.h b/devops/include/alibabacloud/devops/model/ListRepositoryTreeRequest.h new file mode 100644 index 000000000..9da131c94 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryTreeRequest.h @@ -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_DEVOPS_MODEL_LISTREPOSITORYTREEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYTREEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryTreeRequest : public RoaServiceRequest { +public: + ListRepositoryTreeRequest(); + ~ListRepositoryTreeRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getPath() const; + void setPath(const std::string &path); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getType() const; + void setType(const std::string &type); + std::string getRefName() const; + void setRefName(const std::string &refName); + +private: + std::string organizationId_; + std::string path_; + long repositoryId_; + std::string accessToken_; + std::string type_; + std::string refName_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYTREEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryTreeResult.h b/devops/include/alibabacloud/devops/model/ListRepositoryTreeResult.h new file mode 100644 index 000000000..990859944 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryTreeResult.h @@ -0,0 +1,68 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYTREERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYTREERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryTreeResult : public ServiceResult + { + public: + struct ResultItem + { + std::string path; + std::string type; + bool isLFS; + std::string mode; + std::string id; + std::string name; + }; + + + ListRepositoryTreeResult(); + explicit ListRepositoryTreeResult(const std::string &payload); + ~ListRepositoryTreeResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYTREERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryWebhookRequest.h b/devops/include/alibabacloud/devops/model/ListRepositoryWebhookRequest.h new file mode 100644 index 000000000..98fce7277 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryWebhookRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYWEBHOOKREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYWEBHOOKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryWebhookRequest : public RoaServiceRequest { +public: + ListRepositoryWebhookRequest(); + ~ListRepositoryWebhookRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getPage() const; + void setPage(long page); + +private: + std::string organizationId_; + long repositoryId_; + long pageSize_; + std::string accessToken_; + long page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYWEBHOOKREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListRepositoryWebhookResult.h b/devops/include/alibabacloud/devops/model/ListRepositoryWebhookResult.h new file mode 100644 index 000000000..16d5eb5a5 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListRepositoryWebhookResult.h @@ -0,0 +1,76 @@ +/* + * 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_DEVOPS_MODEL_LISTREPOSITORYWEBHOOKRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYWEBHOOKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListRepositoryWebhookResult : public ServiceResult + { + public: + struct ResultItem + { + std::string description; + std::string lastTestResult; + bool pushEvents; + std::string createdAt; + long projectId; + bool tagPushEvents; + long id; + bool enableSslVerification; + bool noteEvents; + bool mergeRequestsEvents; + std::string url; + std::string secretToken; + }; + + + ListRepositoryWebhookResult(); + explicit ListRepositoryWebhookResult(const std::string &payload); + ~ListRepositoryWebhookResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTREPOSITORYWEBHOOKRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListResourceMembersRequest.h b/devops/include/alibabacloud/devops/model/ListResourceMembersRequest.h new file mode 100644 index 000000000..8d00a177d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListResourceMembersRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTRESOURCEMEMBERSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTRESOURCEMEMBERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListResourceMembersRequest : public RoaServiceRequest { +public: + ListResourceMembersRequest(); + ~ListResourceMembersRequest(); + long getResourceId() const; + void setResourceId(long resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + long resourceId_; + std::string resourceType_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTRESOURCEMEMBERSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListResourceMembersResult.h b/devops/include/alibabacloud/devops/model/ListResourceMembersResult.h new file mode 100644 index 000000000..b9be5ea5c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListResourceMembersResult.h @@ -0,0 +1,65 @@ +/* + * 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_DEVOPS_MODEL_LISTRESOURCEMEMBERSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTRESOURCEMEMBERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListResourceMembersResult : public ServiceResult + { + public: + struct ResourceMember + { + std::string roleName; + std::string accountId; + std::string username; + }; + + + ListResourceMembersResult(); + explicit ListResourceMembersResult(const std::string &payload); + ~ListResourceMembersResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::vector getresourceMembers()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::vector resourceMembers_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTRESOURCEMEMBERSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListSearchCommitRequest.h b/devops/include/alibabacloud/devops/model/ListSearchCommitRequest.h new file mode 100644 index 000000000..d8ffdce88 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListSearchCommitRequest.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_LISTSEARCHCOMMITREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHCOMMITREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListSearchCommitRequest : public RoaServiceRequest { +public: + struct Body { + std::string scope; + int pageSize; + int page; + std::string sort; + std::string keyword; + struct RepoPath { + std::string matchType; + std::string value; + std::string operatorType; + }; + repoPath repoPath; + std::string order; + }; + ListSearchCommitRequest(); + ~ListSearchCommitRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHCOMMITREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListSearchCommitResult.h b/devops/include/alibabacloud/devops/model/ListSearchCommitResult.h new file mode 100644 index 000000000..9bcdeae38 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListSearchCommitResult.h @@ -0,0 +1,89 @@ +/* + * 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_DEVOPS_MODEL_LISTSEARCHCOMMITRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHCOMMITRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListSearchCommitResult : public ServiceResult + { + public: + struct ResultItem + { + struct HighlightTextMap + { + std::string commitMessage; + std::string commitId; + std::string title; + std::string organizationId; + }; + struct Source + { + struct Author + { + std::string email; + std::string name; + }; + std::string repoPath; + std::string commitMessage; + std::string commitId; + Author author; + std::string title; + std::string organizationId; + std::string authorTime; + }; + std::string docId; + HighlightTextMap highlightTextMap; + Source source; + }; + + + ListSearchCommitResult(); + explicit ListSearchCommitResult(const std::string &payload); + ~ListSearchCommitResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHCOMMITRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListSearchRepositoryRequest.h b/devops/include/alibabacloud/devops/model/ListSearchRepositoryRequest.h new file mode 100644 index 000000000..a1ad1f5f4 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListSearchRepositoryRequest.h @@ -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_DEVOPS_MODEL_LISTSEARCHREPOSITORYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHREPOSITORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListSearchRepositoryRequest : public RoaServiceRequest { +public: + struct Body { + std::string aliyunPk; + std::string scope; + int pageSize; + int visibilityLevel; + int page; + std::string sort; + std::string keyword; + struct RepoPath { + std::string matchType; + std::string value; + std::string operatorType; + }; + repoPath repoPath; + std::string order; + }; + ListSearchRepositoryRequest(); + ~ListSearchRepositoryRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHREPOSITORYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListSearchRepositoryResult.h b/devops/include/alibabacloud/devops/model/ListSearchRepositoryResult.h new file mode 100644 index 000000000..20e19f0eb --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListSearchRepositoryResult.h @@ -0,0 +1,87 @@ +/* + * 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_DEVOPS_MODEL_LISTSEARCHREPOSITORYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHREPOSITORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListSearchRepositoryResult : public ServiceResult + { + public: + struct ResultItem + { + struct HighlightTextMap + { + std::string repoPath; + std::string description; + std::string readMe; + std::string organizationId; + std::string creatorUserId; + std::string repoNameWithNamespace; + }; + struct Source + { + std::string lastActivityTime; + std::string repoPath; + std::string description; + std::string readMe; + std::string createTime; + std::string repoName; + int visibilityLevel; + std::string organizationId; + }; + std::string docId; + HighlightTextMap highlightTextMap; + Source source; + }; + + + ListSearchRepositoryResult(); + explicit ListSearchRepositoryResult(const std::string &payload); + ~ListSearchRepositoryResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHREPOSITORYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListSearchSourceCodeRequest.h b/devops/include/alibabacloud/devops/model/ListSearchSourceCodeRequest.h new file mode 100644 index 000000000..61870ba10 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListSearchSourceCodeRequest.h @@ -0,0 +1,67 @@ +/* + * 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_DEVOPS_MODEL_LISTSEARCHSOURCECODEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHSOURCECODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListSearchSourceCodeRequest : public RoaServiceRequest { +public: + struct Body { + bool isCodeBlock; + struct FilePath { + std::string matchType; + std::string value; + std::string operatorType; + }; + filePath filePath; + std::string scope; + int pageSize; + std::string language; + int page; + std::string sort; + std::string keyword; + struct RepoPath { + std::string matchType; + std::string value; + std::string operatorType; + }; + repoPath repoPath; + std::string order; + }; + ListSearchSourceCodeRequest(); + ~ListSearchSourceCodeRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHSOURCECODEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListSearchSourceCodeResult.h b/devops/include/alibabacloud/devops/model/ListSearchSourceCodeResult.h new file mode 100644 index 000000000..9e616b077 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListSearchSourceCodeResult.h @@ -0,0 +1,84 @@ +/* + * 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_DEVOPS_MODEL_LISTSEARCHSOURCECODERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHSOURCECODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListSearchSourceCodeResult : public ServiceResult + { + public: + struct ResultItem + { + struct HighlightTextMap + { + std::string language; + std::string fileName; + std::string organizationId; + std::string clob; + }; + struct Source + { + std::string filePath; + std::string repoPath; + std::string checkinDate; + std::string language; + std::string branch; + std::string fileName; + std::string organizationId; + }; + std::string docId; + HighlightTextMap highlightTextMap; + Source source; + }; + + + ListSearchSourceCodeResult(); + explicit ListSearchSourceCodeResult(const std::string &payload); + ~ListSearchSourceCodeResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSEARCHSOURCECODERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListServiceAuthsRequest.h b/devops/include/alibabacloud/devops/model/ListServiceAuthsRequest.h new file mode 100644 index 000000000..cecd9e24c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListServiceAuthsRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTSERVICEAUTHSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICEAUTHSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListServiceAuthsRequest : public RoaServiceRequest { +public: + ListServiceAuthsRequest(); + ~ListServiceAuthsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getServiceAuthType() const; + void setServiceAuthType(const std::string &serviceAuthType); + +private: + std::string organizationId_; + std::string serviceAuthType_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICEAUTHSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListServiceAuthsResult.h b/devops/include/alibabacloud/devops/model/ListServiceAuthsResult.h new file mode 100644 index 000000000..a959f68ca --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListServiceAuthsResult.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_LISTSERVICEAUTHSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICEAUTHSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListServiceAuthsResult : public ServiceResult + { + public: + struct ServiceAuth + { + std::string ownerName; + std::string type; + long id; + std::string ownerStaffId; + }; + + + ListServiceAuthsResult(); + explicit ListServiceAuthsResult(const std::string &payload); + ~ListServiceAuthsResult(); + std::string getRequestId()const; + std::vector getserviceAuths()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector serviceAuths_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICEAUTHSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListServiceConnectionsRequest.h b/devops/include/alibabacloud/devops/model/ListServiceConnectionsRequest.h new file mode 100644 index 000000000..de77bc026 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListServiceConnectionsRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTSERVICECONNECTIONSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICECONNECTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListServiceConnectionsRequest : public RoaServiceRequest { +public: + ListServiceConnectionsRequest(); + ~ListServiceConnectionsRequest(); + std::string getSericeConnectionType() const; + void setSericeConnectionType(const std::string &sericeConnectionType); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string sericeConnectionType_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICECONNECTIONSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListServiceConnectionsResult.h b/devops/include/alibabacloud/devops/model/ListServiceConnectionsResult.h new file mode 100644 index 000000000..96cfba1ac --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListServiceConnectionsResult.h @@ -0,0 +1,68 @@ +/* + * 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_DEVOPS_MODEL_LISTSERVICECONNECTIONSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICECONNECTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListServiceConnectionsResult : public ServiceResult + { + public: + struct ServiceConnection + { + std::string type; + std::string uuid; + long createTime; + long id; + long ownerAccountId; + std::string name; + }; + + + ListServiceConnectionsResult(); + explicit ListServiceConnectionsResult(const std::string &payload); + ~ListServiceConnectionsResult(); + std::vector getserviceConnections()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector serviceConnections_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICECONNECTIONSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListServiceCredentialsRequest.h b/devops/include/alibabacloud/devops/model/ListServiceCredentialsRequest.h new file mode 100644 index 000000000..e4af7bfd7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListServiceCredentialsRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTSERVICECREDENTIALSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICECREDENTIALSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListServiceCredentialsRequest : public RoaServiceRequest { +public: + ListServiceCredentialsRequest(); + ~ListServiceCredentialsRequest(); + std::string getServiceCredentialType() const; + void setServiceCredentialType(const std::string &serviceCredentialType); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string serviceCredentialType_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICECREDENTIALSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListServiceCredentialsResult.h b/devops/include/alibabacloud/devops/model/ListServiceCredentialsResult.h new file mode 100644 index 000000000..31f08cc37 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListServiceCredentialsResult.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_LISTSERVICECREDENTIALSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICECREDENTIALSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListServiceCredentialsResult : public ServiceResult + { + public: + struct ServiceCredential + { + std::string ownerName; + std::string type; + long id; + std::string ownerStaffId; + }; + + + ListServiceCredentialsResult(); + explicit ListServiceCredentialsResult(const std::string &payload); + ~ListServiceCredentialsResult(); + std::string getRequestId()const; + std::vector getserviceCredentials()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector serviceCredentials_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSERVICECREDENTIALSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListSprintsRequest.h b/devops/include/alibabacloud/devops/model/ListSprintsRequest.h new file mode 100644 index 000000000..1d7ad4590 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListSprintsRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_LISTSPRINTSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSPRINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListSprintsRequest : public RoaServiceRequest { +public: + ListSprintsRequest(); + ~ListSprintsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSpaceType() const; + void setSpaceType(const std::string &spaceType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getMaxResults() const; + void setMaxResults(long maxResults); + std::string getSpaceIdentifier() const; + void setSpaceIdentifier(const std::string &spaceIdentifier); + +private: + std::string organizationId_; + std::string spaceType_; + std::string nextToken_; + long maxResults_; + std::string spaceIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSPRINTSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListSprintsResult.h b/devops/include/alibabacloud/devops/model/ListSprintsResult.h new file mode 100644 index 000000000..0a506e5fd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListSprintsResult.h @@ -0,0 +1,80 @@ +/* + * 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_DEVOPS_MODEL_LISTSPRINTSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTSPRINTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListSprintsResult : public ServiceResult + { + public: + struct Sprint + { + long startDate; + std::string status; + long gmtCreate; + std::string description; + std::string identifier; + std::string scope; + std::string spaceIdentifier; + long gmtModified; + std::string creator; + long endDate; + std::string modifier; + std::string name; + }; + + + ListSprintsResult(); + explicit ListSprintsResult(const std::string &payload); + ~ListSprintsResult(); + long getTotalCount()const; + std::string getNextToken()const; + std::string getRequestId()const; + long getMaxResults()const; + std::string getErrorMsg()const; + std::vector getsprints()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string nextToken_; + std::string requestId_; + long maxResults_; + std::string errorMsg_; + std::vector sprints_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTSPRINTSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListTestCaseFieldsRequest.h b/devops/include/alibabacloud/devops/model/ListTestCaseFieldsRequest.h new file mode 100644 index 000000000..eeb76a41a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListTestCaseFieldsRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTTESTCASEFIELDSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTTESTCASEFIELDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListTestCaseFieldsRequest : public RoaServiceRequest { +public: + ListTestCaseFieldsRequest(); + ~ListTestCaseFieldsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSpaceIdentifier() const; + void setSpaceIdentifier(const std::string &spaceIdentifier); + +private: + std::string organizationId_; + std::string spaceIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTTESTCASEFIELDSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListTestCaseFieldsResult.h b/devops/include/alibabacloud/devops/model/ListTestCaseFieldsResult.h new file mode 100644 index 000000000..d3a758198 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListTestCaseFieldsResult.h @@ -0,0 +1,89 @@ +/* + * 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_DEVOPS_MODEL_LISTTESTCASEFIELDSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTTESTCASEFIELDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListTestCaseFieldsResult : public ServiceResult + { + public: + struct Field + { + struct Option + { + std::string identifier; + std::string displayValue; + long position; + std::string value; + std::string fieldIdentifier; + long level; + std::string valueEn; + }; + std::string description; + long gmtModified; + std::string resourceType; + std::string creator; + std::string linkWithService; + bool isSystemRequired; + bool isShowWhenCreate; + std::string name; + std::string defaultValue; + long gmtCreate; + std::string type; + std::string identifier; + std::string format; + bool isRequired; + std::vector options; + std::string className; + std::string modifier; + }; + + + ListTestCaseFieldsResult(); + explicit ListTestCaseFieldsResult(const std::string &payload); + ~ListTestCaseFieldsResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::vector getfields()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + std::vector fields_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTTESTCASEFIELDSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListUserDrawRecordByPkRequest.h b/devops/include/alibabacloud/devops/model/ListUserDrawRecordByPkRequest.h new file mode 100644 index 000000000..3514df3e3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListUserDrawRecordByPkRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_LISTUSERDRAWRECORDBYPKREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTUSERDRAWRECORDBYPKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListUserDrawRecordByPkRequest : public RoaServiceRequest { +public: + ListUserDrawRecordByPkRequest(); + ~ListUserDrawRecordByPkRequest(); + std::string getAliyunPk() const; + void setAliyunPk(const std::string &aliyunPk); + std::string getDrawGroup() const; + void setDrawGroup(const std::string &drawGroup); + std::string getDrawPoolName() const; + void setDrawPoolName(const std::string &drawPoolName); + +private: + std::string aliyunPk_; + std::string drawGroup_; + std::string drawPoolName_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTUSERDRAWRECORDBYPKREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListUserDrawRecordByPkResult.h b/devops/include/alibabacloud/devops/model/ListUserDrawRecordByPkResult.h new file mode 100644 index 000000000..321b8df25 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListUserDrawRecordByPkResult.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_LISTUSERDRAWRECORDBYPKRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTUSERDRAWRECORDBYPKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListUserDrawRecordByPkResult : public ServiceResult + { + public: + struct Lingmadata + { + std::string gmtCreate; + std::string drawResult; + std::string drawGroup; + std::string taskGroupId; + std::string aliyunPk; + std::string drawPoolName; + std::string uccId; + }; + + + ListUserDrawRecordByPkResult(); + explicit ListUserDrawRecordByPkResult(const std::string &payload); + ~ListUserDrawRecordByPkResult(); + std::vector getdata()const; + std::string getRequestId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + std::string requestId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTUSERDRAWRECORDBYPKRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListUserKeysRequest.h b/devops/include/alibabacloud/devops/model/ListUserKeysRequest.h new file mode 100644 index 000000000..97bf795c1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListUserKeysRequest.h @@ -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_DEVOPS_MODEL_LISTUSERKEYSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTUSERKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListUserKeysRequest : public RoaServiceRequest { +public: + ListUserKeysRequest(); + ~ListUserKeysRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + long getPage() const; + void setPage(long page); + std::string getSort() const; + void setSort(const std::string &sort); + +private: + std::string organizationId_; + long pageSize_; + std::string accessToken_; + std::string orderBy_; + long page_; + std::string sort_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTUSERKEYSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListUserKeysResult.h b/devops/include/alibabacloud/devops/model/ListUserKeysResult.h new file mode 100644 index 000000000..d1b776804 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListUserKeysResult.h @@ -0,0 +1,71 @@ +/* + * 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_DEVOPS_MODEL_LISTUSERKEYSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTUSERKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListUserKeysResult : public ServiceResult + { + public: + struct List_keys_result + { + std::string publicKey; + std::string fingerPrint; + std::string createdAt; + std::string lastUsedTime; + std::string title; + long id; + std::string tittle; + std::string expireTime; + std::string keyScope; + }; + + + ListUserKeysResult(); + explicit ListUserKeysResult(const std::string &payload); + ~ListUserKeysResult(); + std::vector getresult()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTUSERKEYSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListUserResourcesRequest.h b/devops/include/alibabacloud/devops/model/ListUserResourcesRequest.h new file mode 100644 index 000000000..032605e9e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListUserResourcesRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_LISTUSERRESOURCESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTUSERRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListUserResourcesRequest : public RoaServiceRequest { +public: + ListUserResourcesRequest(); + ~ListUserResourcesRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getUserIds() const; + void setUserIds(const std::string &userIds); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getPage() const; + void setPage(long page); + +private: + std::string organizationId_; + std::string userIds_; + long pageSize_; + std::string accessToken_; + long page_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTUSERRESOURCESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListUserResourcesResult.h b/devops/include/alibabacloud/devops/model/ListUserResourcesResult.h new file mode 100644 index 000000000..c82b73547 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListUserResourcesResult.h @@ -0,0 +1,134 @@ +/* + * 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_DEVOPS_MODEL_LISTUSERRESOURCESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTUSERRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListUserResourcesResult : public ServiceResult + { + public: + struct ResultItem + { + struct UserInfo + { + std::string avatarUrl; + std::string email; + std::string username; + std::string state; + long id; + std::string name; + }; + struct Group_infos + { + struct GroupInfo + { + std::string path; + std::string pathWithNamespace; + long parentId; + std::string description; + long ownerId; + std::string createdAt; + std::string nameWithNamespace; + int visibilityLevel; + long id; + std::string updatedAt; + std::string name; + }; + struct GroupRole + { + long sourceId; + std::string sourceType; + std::string enRoleName; + int accessLevel; + std::string cnRoleName; + }; + GroupInfo groupInfo; + GroupRole groupRole; + }; + struct Repository_infos + { + struct RepositoryInfo + { + std::string path; + std::string pathWithNamespace; + std::string lastActivityAt; + std::string description; + long creatorId; + bool encrypted; + std::string createdAt; + std::string nameWithNamespace; + int visibilityLevel; + std::string updatedAt; + int accessLevel; + std::string name; + bool archived; + long id; + long namespaceId; + }; + struct RepositoryRole + { + long sourceId; + std::string sourceType; + std::string enRoleName; + int accessLevel; + std::string cnRoleName; + }; + RepositoryRole repositoryRole; + RepositoryInfo repositoryInfo; + }; + std::vector repositoryInfos; + UserInfo userInfo; + std::vector groupInfos; + }; + + + ListUserResourcesResult(); + explicit ListUserResourcesResult(const std::string &payload); + ~ListUserResourcesResult(); + std::vector getresult()const; + std::string getRequestId()const; + long getTotal()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + std::string requestId_; + long total_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTUSERRESOURCESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListVariableGroupsRequest.h b/devops/include/alibabacloud/devops/model/ListVariableGroupsRequest.h new file mode 100644 index 000000000..a96994df7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListVariableGroupsRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_LISTVARIABLEGROUPSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTVARIABLEGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListVariableGroupsRequest : public RoaServiceRequest { +public: + ListVariableGroupsRequest(); + ~ListVariableGroupsRequest(); + std::string getPageSort() const; + void setPageSort(const std::string &pageSort); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getPageOrder() const; + void setPageOrder(const std::string &pageOrder); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string pageSort_; + std::string organizationId_; + std::string pageOrder_; + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTVARIABLEGROUPSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListVariableGroupsResult.h b/devops/include/alibabacloud/devops/model/ListVariableGroupsResult.h new file mode 100644 index 000000000..adb078a7b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListVariableGroupsResult.h @@ -0,0 +1,86 @@ +/* + * 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_DEVOPS_MODEL_LISTVARIABLEGROUPSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTVARIABLEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListVariableGroupsResult : public ServiceResult + { + public: + struct VariableGroup + { + struct RelatedPipeline + { + long id; + std::string name; + }; + struct Variable + { + std::string value; + bool isEncrypted; + std::string name; + }; + std::string modifierAccountId; + std::vector variables; + std::string description; + long createTime; + long updateTime; + long id; + std::vector relatedPipelines; + std::string creatorAccountId; + std::string name; + }; + + + ListVariableGroupsResult(); + explicit ListVariableGroupsResult(const std::string &payload); + ~ListVariableGroupsResult(); + long getTotalCount()const; + std::string getRequestId()const; + std::string getNextToken()const; + std::vector getvariableGroups()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string requestId_; + std::string nextToken_; + std::vector variableGroups_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTVARIABLEGROUPSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListWorkItemAllFieldsRequest.h b/devops/include/alibabacloud/devops/model/ListWorkItemAllFieldsRequest.h new file mode 100644 index 000000000..f229544d7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkItemAllFieldsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMALLFIELDSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMALLFIELDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListWorkItemAllFieldsRequest : public RoaServiceRequest { +public: + ListWorkItemAllFieldsRequest(); + ~ListWorkItemAllFieldsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSpaceType() const; + void setSpaceType(const std::string &spaceType); + std::string getWorkitemTypeIdentifier() const; + void setWorkitemTypeIdentifier(const std::string &workitemTypeIdentifier); + std::string getSpaceIdentifier() const; + void setSpaceIdentifier(const std::string &spaceIdentifier); + +private: + std::string organizationId_; + std::string spaceType_; + std::string workitemTypeIdentifier_; + std::string spaceIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMALLFIELDSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListWorkItemAllFieldsResult.h b/devops/include/alibabacloud/devops/model/ListWorkItemAllFieldsResult.h new file mode 100644 index 000000000..34d45a23b --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkItemAllFieldsResult.h @@ -0,0 +1,89 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMALLFIELDSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMALLFIELDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListWorkItemAllFieldsResult : public ServiceResult + { + public: + struct Field + { + struct Option + { + std::string identifier; + std::string displayValue; + long position; + std::string value; + std::string fieldIdentifier; + long level; + std::string valueEn; + }; + std::string description; + long gmtModified; + std::string resourceType; + std::string creator; + std::string linkWithService; + bool isSystemRequired; + bool isShowWhenCreate; + std::string name; + std::string defaultValue; + long gmtCreate; + std::string type; + std::string identifier; + std::string format; + bool isRequired; + std::vector options; + std::string className; + std::string modifier; + }; + + + ListWorkItemAllFieldsResult(); + explicit ListWorkItemAllFieldsResult(const std::string &payload); + ~ListWorkItemAllFieldsResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::vector getfields()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + std::vector fields_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMALLFIELDSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListWorkItemWorkFlowStatusRequest.h b/devops/include/alibabacloud/devops/model/ListWorkItemWorkFlowStatusRequest.h new file mode 100644 index 000000000..b2966983a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkItemWorkFlowStatusRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMWORKFLOWSTATUSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMWORKFLOWSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListWorkItemWorkFlowStatusRequest : public RoaServiceRequest { +public: + ListWorkItemWorkFlowStatusRequest(); + ~ListWorkItemWorkFlowStatusRequest(); + std::string getWorkitemCategoryIdentifier() const; + void setWorkitemCategoryIdentifier(const std::string &workitemCategoryIdentifier); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getSpaceType() const; + void setSpaceType(const std::string &spaceType); + std::string getWorkitemTypeIdentifier() const; + void setWorkitemTypeIdentifier(const std::string &workitemTypeIdentifier); + std::string getSpaceIdentifier() const; + void setSpaceIdentifier(const std::string &spaceIdentifier); + +private: + std::string workitemCategoryIdentifier_; + std::string organizationId_; + std::string spaceType_; + std::string workitemTypeIdentifier_; + std::string spaceIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMWORKFLOWSTATUSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListWorkItemWorkFlowStatusResult.h b/devops/include/alibabacloud/devops/model/ListWorkItemWorkFlowStatusResult.h new file mode 100644 index 000000000..7b1115878 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkItemWorkFlowStatusResult.h @@ -0,0 +1,73 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMWORKFLOWSTATUSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMWORKFLOWSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListWorkItemWorkFlowStatusResult : public ServiceResult + { + public: + struct Status + { + long gmtCreate; + std::string identifier; + std::string description; + long gmtModified; + std::string resourceType; + std::string workflowStageName; + std::string workflowStageIdentifier; + std::string creator; + std::string modifier; + std::string source; + std::string name; + }; + + + ListWorkItemWorkFlowStatusResult(); + explicit ListWorkItemWorkFlowStatusResult(const std::string &payload); + ~ListWorkItemWorkFlowStatusResult(); + std::string getRequestId()const; + std::vector getstatuses()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::vector statuses_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMWORKFLOWSTATUSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListWorkitemAttachmentsRequest.h b/devops/include/alibabacloud/devops/model/ListWorkitemAttachmentsRequest.h new file mode 100644 index 000000000..4d7cf11c0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkitemAttachmentsRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMATTACHMENTSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMATTACHMENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListWorkitemAttachmentsRequest : public RoaServiceRequest { +public: + ListWorkitemAttachmentsRequest(); + ~ListWorkitemAttachmentsRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getWorkitemIdentifier() const; + void setWorkitemIdentifier(const std::string &workitemIdentifier); + +private: + std::string organizationId_; + std::string workitemIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMATTACHMENTSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListWorkitemAttachmentsResult.h b/devops/include/alibabacloud/devops/model/ListWorkitemAttachmentsResult.h new file mode 100644 index 000000000..c05a47575 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkitemAttachmentsResult.h @@ -0,0 +1,69 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMATTACHMENTSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMATTACHMENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListWorkitemAttachmentsResult : public ServiceResult + { + public: + struct Attachment + { + std::string fileSuffix; + long gmtCreate; + std::string size; + std::string fileName; + std::string creator; + std::string fileIdentifier; + std::string url; + }; + + + ListWorkitemAttachmentsResult(); + explicit ListWorkitemAttachmentsResult(const std::string &payload); + ~ListWorkitemAttachmentsResult(); + std::vector getattachments()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector attachments_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMATTACHMENTSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListWorkitemEstimateRequest.h b/devops/include/alibabacloud/devops/model/ListWorkitemEstimateRequest.h new file mode 100644 index 000000000..1c42c7c33 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkitemEstimateRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMESTIMATEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMESTIMATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListWorkitemEstimateRequest : public RoaServiceRequest { +public: + ListWorkitemEstimateRequest(); + ~ListWorkitemEstimateRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getWorkitemId() const; + void setWorkitemId(const std::string &workitemId); + +private: + std::string organizationId_; + std::string workitemId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMESTIMATEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListWorkitemEstimateResult.h b/devops/include/alibabacloud/devops/model/ListWorkitemEstimateResult.h new file mode 100644 index 000000000..f4a68819e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkitemEstimateResult.h @@ -0,0 +1,79 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMESTIMATERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMESTIMATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListWorkitemEstimateResult : public ServiceResult + { + public: + struct WorkitemTimeEstimateItem + { + struct RecordUser + { + std::string identifier; + std::string name; + }; + long gmtStart; + long gmtEnd; + std::string workitemIdentifier; + std::string type; + long gmtCreate; + std::string identifier; + float spentTime; + std::string description; + long gmtModified; + RecordUser recordUser; + }; + + + ListWorkitemEstimateResult(); + explicit ListWorkitemEstimateResult(const std::string &payload); + ~ListWorkitemEstimateResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::vector getworkitemTimeEstimate()const; + std::string getErrorCode()const; + long getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::vector workitemTimeEstimate_; + std::string errorCode_; + long code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMESTIMATERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListWorkitemTimeRequest.h b/devops/include/alibabacloud/devops/model/ListWorkitemTimeRequest.h new file mode 100644 index 000000000..172406d61 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkitemTimeRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMTIMEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMTIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListWorkitemTimeRequest : public RoaServiceRequest { +public: + ListWorkitemTimeRequest(); + ~ListWorkitemTimeRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getWorkitemId() const; + void setWorkitemId(const std::string &workitemId); + +private: + std::string organizationId_; + std::string workitemId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMTIMEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListWorkitemTimeResult.h b/devops/include/alibabacloud/devops/model/ListWorkitemTimeResult.h new file mode 100644 index 000000000..3ba04d908 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkitemTimeResult.h @@ -0,0 +1,74 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMTIMERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListWorkitemTimeResult : public ServiceResult + { + public: + struct WorkitemTimeItem + { + long gmtStart; + long gmtEnd; + std::string workitemIdentifier; + std::string type; + long gmtCreate; + std::string identifier; + std::string description; + float actualTime; + long gmtModified; + std::string recordUser; + }; + + + ListWorkitemTimeResult(); + explicit ListWorkitemTimeResult(const std::string &payload); + ~ListWorkitemTimeResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::vector getworkitemTime()const; + std::string getErrorCode()const; + long getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::vector workitemTime_; + std::string errorCode_; + long code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMTIMERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListWorkitemsRequest.h b/devops/include/alibabacloud/devops/model/ListWorkitemsRequest.h new file mode 100644 index 000000000..38f473513 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkitemsRequest.h @@ -0,0 +1,72 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMSREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListWorkitemsRequest : public RoaServiceRequest { +public: + ListWorkitemsRequest(); + ~ListWorkitemsRequest(); + std::string getExtraConditions() const; + void setExtraConditions(const std::string &extraConditions); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getGroupCondition() const; + void setGroupCondition(const std::string &groupCondition); + std::string getSpaceType() const; + void setSpaceType(const std::string &spaceType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getSearchType() const; + void setSearchType(const std::string &searchType); + std::string getMaxResults() const; + void setMaxResults(const std::string &maxResults); + std::string getSpaceIdentifier() const; + void setSpaceIdentifier(const std::string &spaceIdentifier); + std::string getCategory() const; + void setCategory(const std::string &category); + std::string getConditions() const; + void setConditions(const std::string &conditions); + +private: + std::string extraConditions_; + std::string orderBy_; + std::string organizationId_; + std::string groupCondition_; + std::string spaceType_; + std::string nextToken_; + std::string searchType_; + std::string maxResults_; + std::string spaceIdentifier_; + std::string category_; + std::string conditions_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMSREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListWorkitemsResult.h b/devops/include/alibabacloud/devops/model/ListWorkitemsResult.h new file mode 100644 index 000000000..22c238949 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkitemsResult.h @@ -0,0 +1,90 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKITEMSRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListWorkitemsResult : public ServiceResult + { + public: + struct Workitem + { + std::string status; + std::string statusStageIdentifier; + std::string spaceName; + std::string categoryIdentifier; + long gmtModified; + std::string creator; + std::string document; + std::string parentIdentifier; + std::string subject; + std::string assignedTo; + long updateStatusAt; + std::string workitemTypeIdentifier; + long gmtCreate; + std::string identifier; + std::string serialNumber; + long finishTime; + std::string spaceIdentifier; + std::string spaceType; + std::string logicalStatus; + std::string sprintIdentifier; + std::string modifier; + std::string statusIdentifier; + }; + + + ListWorkitemsResult(); + explicit ListWorkitemsResult(const std::string &payload); + ~ListWorkitemsResult(); + long getTotalCount()const; + std::vector getworkitems()const; + std::string getNextToken()const; + std::string getRequestId()const; + long getMaxResults()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector workitems_; + std::string nextToken_; + std::string requestId_; + long maxResults_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKITEMSRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ListWorkspacesRequest.h b/devops/include/alibabacloud/devops/model/ListWorkspacesRequest.h new file mode 100644 index 000000000..f4ce727c1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkspacesRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKSPACESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKSPACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ListWorkspacesRequest : public RoaServiceRequest { +public: + ListWorkspacesRequest(); + ~ListWorkspacesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKSPACESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ListWorkspacesResult.h b/devops/include/alibabacloud/devops/model/ListWorkspacesResult.h new file mode 100644 index 000000000..7c8951f23 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ListWorkspacesResult.h @@ -0,0 +1,77 @@ +/* + * 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_DEVOPS_MODEL_LISTWORKSPACESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LISTWORKSPACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ListWorkspacesResult : public ServiceResult + { + public: + struct WorkspaceDTO + { + std::string status; + std::string _template; + std::string userId; + std::string createTime; + std::string codeVersion; + std::string codeUrl; + std::string id; + std::string spec; + std::string name; + }; + + + ListWorkspacesResult(); + explicit ListWorkspacesResult(const std::string &payload); + ~ListWorkspacesResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::string getRequestId()const; + int getMaxResults()const; + std::vector getworkspaces()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::string requestId_; + int maxResults_; + std::vector workspaces_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LISTWORKSPACESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/LogPipelineJobRunRequest.h b/devops/include/alibabacloud/devops/model/LogPipelineJobRunRequest.h new file mode 100644 index 000000000..473d51774 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/LogPipelineJobRunRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_LOGPIPELINEJOBRUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LOGPIPELINEJOBRUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT LogPipelineJobRunRequest : public RoaServiceRequest { +public: + LogPipelineJobRunRequest(); + ~LogPipelineJobRunRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getJobId() const; + void setJobId(long jobId); + long getPipelineRunId() const; + void setPipelineRunId(long pipelineRunId); + +private: + long pipelineId_; + std::string organizationId_; + long jobId_; + long pipelineRunId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LOGPIPELINEJOBRUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/LogPipelineJobRunResult.h b/devops/include/alibabacloud/devops/model/LogPipelineJobRunResult.h new file mode 100644 index 000000000..f63819f2f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/LogPipelineJobRunResult.h @@ -0,0 +1,64 @@ +/* + * 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_DEVOPS_MODEL_LOGPIPELINEJOBRUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LOGPIPELINEJOBRUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT LogPipelineJobRunResult : public ServiceResult + { + public: + struct Log + { + bool more; + std::string content; + }; + + + LogPipelineJobRunResult(); + explicit LogPipelineJobRunResult(const std::string &payload); + ~LogPipelineJobRunResult(); + std::string getRequestId()const; + Log getLog()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + Log log_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LOGPIPELINEJOBRUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/LogVMDeployMachineRequest.h b/devops/include/alibabacloud/devops/model/LogVMDeployMachineRequest.h new file mode 100644 index 000000000..bb7b43503 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/LogVMDeployMachineRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_LOGVMDEPLOYMACHINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LOGVMDEPLOYMACHINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT LogVMDeployMachineRequest : public RoaServiceRequest { +public: + LogVMDeployMachineRequest(); + ~LogVMDeployMachineRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getMachineSn() const; + void setMachineSn(const std::string &machineSn); + long getDeployOrderId() const; + void setDeployOrderId(long deployOrderId); + +private: + long pipelineId_; + std::string organizationId_; + std::string machineSn_; + long deployOrderId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LOGVMDEPLOYMACHINEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/LogVMDeployMachineResult.h b/devops/include/alibabacloud/devops/model/LogVMDeployMachineResult.h new file mode 100644 index 000000000..156859373 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/LogVMDeployMachineResult.h @@ -0,0 +1,67 @@ +/* + * 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_DEVOPS_MODEL_LOGVMDEPLOYMACHINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_LOGVMDEPLOYMACHINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT LogVMDeployMachineResult : public ServiceResult + { + public: + struct DeployMachineLog + { + std::string deployLog; + long deployBeginTime; + long deployEndTime; + std::string aliyunRegion; + std::string deployLogPath; + }; + + + LogVMDeployMachineResult(); + explicit LogVMDeployMachineResult(const std::string &payload); + ~LogVMDeployMachineResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + DeployMachineLog getDeployMachineLog()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + DeployMachineLog deployMachineLog_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_LOGVMDEPLOYMACHINERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/MergeMergeRequestRequest.h b/devops/include/alibabacloud/devops/model/MergeMergeRequestRequest.h new file mode 100644 index 000000000..f7331c1be --- /dev/null +++ b/devops/include/alibabacloud/devops/model/MergeMergeRequestRequest.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_MERGEMERGEREQUESTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_MERGEMERGEREQUESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT MergeMergeRequestRequest : public RoaServiceRequest { +public: + struct Body { + bool removeSourceBranch; + std::string mergeMessage; + std::string mergeType; + }; + MergeMergeRequestRequest(); + ~MergeMergeRequestRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_MERGEMERGEREQUESTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/MergeMergeRequestResult.h b/devops/include/alibabacloud/devops/model/MergeMergeRequestResult.h new file mode 100644 index 000000000..65ee37cd7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/MergeMergeRequestResult.h @@ -0,0 +1,67 @@ +/* + * 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_DEVOPS_MODEL_MERGEMERGEREQUESTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_MERGEMERGEREQUESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT MergeMergeRequestResult : public ServiceResult + { + public: + struct Result + { + long localId; + long projectId; + std::string mergedRevision; + std::string bizId; + bool result; + }; + + + MergeMergeRequestResult(); + explicit MergeMergeRequestResult(const std::string &payload); + ~MergeMergeRequestResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_MERGEMERGEREQUESTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/PassPipelineValidateRequest.h b/devops/include/alibabacloud/devops/model/PassPipelineValidateRequest.h new file mode 100644 index 000000000..272160400 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/PassPipelineValidateRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_PASSPIPELINEVALIDATEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_PASSPIPELINEVALIDATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT PassPipelineValidateRequest : public RoaServiceRequest { +public: + PassPipelineValidateRequest(); + ~PassPipelineValidateRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPipelineRunId() const; + void setPipelineRunId(long pipelineRunId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + long pipelineId_; + std::string organizationId_; + long pipelineRunId_; + std::string jobId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_PASSPIPELINEVALIDATEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/PassPipelineValidateResult.h b/devops/include/alibabacloud/devops/model/PassPipelineValidateResult.h new file mode 100644 index 000000000..071603856 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/PassPipelineValidateResult.h @@ -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_DEVOPS_MODEL_PASSPIPELINEVALIDATERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_PASSPIPELINEVALIDATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT PassPipelineValidateResult : public ServiceResult + { + public: + + + PassPipelineValidateResult(); + explicit PassPipelineValidateResult(const std::string &payload); + ~PassPipelineValidateResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_PASSPIPELINEVALIDATERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/RefusePipelineValidateRequest.h b/devops/include/alibabacloud/devops/model/RefusePipelineValidateRequest.h new file mode 100644 index 000000000..af5c14d29 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/RefusePipelineValidateRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_REFUSEPIPELINEVALIDATEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_REFUSEPIPELINEVALIDATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT RefusePipelineValidateRequest : public RoaServiceRequest { +public: + RefusePipelineValidateRequest(); + ~RefusePipelineValidateRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPipelineRunId() const; + void setPipelineRunId(long pipelineRunId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + long pipelineId_; + std::string organizationId_; + long pipelineRunId_; + std::string jobId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_REFUSEPIPELINEVALIDATEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/RefusePipelineValidateResult.h b/devops/include/alibabacloud/devops/model/RefusePipelineValidateResult.h new file mode 100644 index 000000000..03d7f8071 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/RefusePipelineValidateResult.h @@ -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_DEVOPS_MODEL_REFUSEPIPELINEVALIDATERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_REFUSEPIPELINEVALIDATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT RefusePipelineValidateResult : public ServiceResult + { + public: + + + RefusePipelineValidateResult(); + explicit RefusePipelineValidateResult(const std::string &payload); + ~RefusePipelineValidateResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_REFUSEPIPELINEVALIDATERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ReleaseWorkspaceRequest.h b/devops/include/alibabacloud/devops/model/ReleaseWorkspaceRequest.h new file mode 100644 index 000000000..7057fa398 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ReleaseWorkspaceRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DEVOPS_MODEL_RELEASEWORKSPACEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RELEASEWORKSPACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ReleaseWorkspaceRequest : public RoaServiceRequest { +public: + ReleaseWorkspaceRequest(); + ~ReleaseWorkspaceRequest(); + std::string getWorkspaceId() const; + void setWorkspaceId(const std::string &workspaceId); + +private: + std::string workspaceId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RELEASEWORKSPACEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ReleaseWorkspaceResult.h b/devops/include/alibabacloud/devops/model/ReleaseWorkspaceResult.h new file mode 100644 index 000000000..0e3ff6e0a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ReleaseWorkspaceResult.h @@ -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_DEVOPS_MODEL_RELEASEWORKSPACERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RELEASEWORKSPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ReleaseWorkspaceResult : public ServiceResult + { + public: + + + ReleaseWorkspaceResult(); + explicit ReleaseWorkspaceResult(const std::string &payload); + ~ReleaseWorkspaceResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RELEASEWORKSPACERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ReopenMergeRequestRequest.h b/devops/include/alibabacloud/devops/model/ReopenMergeRequestRequest.h new file mode 100644 index 000000000..79cf70a6d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ReopenMergeRequestRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_REOPENMERGEREQUESTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_REOPENMERGEREQUESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ReopenMergeRequestRequest : public RoaServiceRequest { +public: + ReopenMergeRequestRequest(); + ~ReopenMergeRequestRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_REOPENMERGEREQUESTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ReopenMergeRequestResult.h b/devops/include/alibabacloud/devops/model/ReopenMergeRequestResult.h new file mode 100644 index 000000000..106e18023 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ReopenMergeRequestResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_REOPENMERGEREQUESTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_REOPENMERGEREQUESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ReopenMergeRequestResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + ReopenMergeRequestResult(); + explicit ReopenMergeRequestResult(const std::string &payload); + ~ReopenMergeRequestResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_REOPENMERGEREQUESTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ResetSshKeyRequest.h b/devops/include/alibabacloud/devops/model/ResetSshKeyRequest.h new file mode 100644 index 000000000..da71557bd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ResetSshKeyRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DEVOPS_MODEL_RESETSSHKEYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RESETSSHKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ResetSshKeyRequest : public RoaServiceRequest { +public: + ResetSshKeyRequest(); + ~ResetSshKeyRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RESETSSHKEYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ResetSshKeyResult.h b/devops/include/alibabacloud/devops/model/ResetSshKeyResult.h new file mode 100644 index 000000000..89697bebd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ResetSshKeyResult.h @@ -0,0 +1,64 @@ +/* + * 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_DEVOPS_MODEL_RESETSSHKEYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RESETSSHKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ResetSshKeyResult : public ServiceResult + { + public: + struct SshKey + { + std::string publicKey; + long id; + }; + + + ResetSshKeyResult(); + explicit ResetSshKeyResult(const std::string &payload); + ~ResetSshKeyResult(); + SshKey getSshKey()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + SshKey sshKey_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RESETSSHKEYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ResumeVMDeployOrderRequest.h b/devops/include/alibabacloud/devops/model/ResumeVMDeployOrderRequest.h new file mode 100644 index 000000000..0b590acd8 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ResumeVMDeployOrderRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_RESUMEVMDEPLOYORDERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RESUMEVMDEPLOYORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ResumeVMDeployOrderRequest : public RoaServiceRequest { +public: + ResumeVMDeployOrderRequest(); + ~ResumeVMDeployOrderRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getDeployOrderId() const; + void setDeployOrderId(long deployOrderId); + +private: + long pipelineId_; + std::string organizationId_; + long deployOrderId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RESUMEVMDEPLOYORDERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ResumeVMDeployOrderResult.h b/devops/include/alibabacloud/devops/model/ResumeVMDeployOrderResult.h new file mode 100644 index 000000000..3373435ce --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ResumeVMDeployOrderResult.h @@ -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_DEVOPS_MODEL_RESUMEVMDEPLOYORDERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RESUMEVMDEPLOYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ResumeVMDeployOrderResult : public ServiceResult + { + public: + + + ResumeVMDeployOrderResult(); + explicit ResumeVMDeployOrderResult(const std::string &payload); + ~ResumeVMDeployOrderResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RESUMEVMDEPLOYORDERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/RetryPipelineJobRunRequest.h b/devops/include/alibabacloud/devops/model/RetryPipelineJobRunRequest.h new file mode 100644 index 000000000..3c6335ef2 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/RetryPipelineJobRunRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_RETRYPIPELINEJOBRUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RETRYPIPELINEJOBRUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT RetryPipelineJobRunRequest : public RoaServiceRequest { +public: + RetryPipelineJobRunRequest(); + ~RetryPipelineJobRunRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPipelineRunId() const; + void setPipelineRunId(long pipelineRunId); + long getJobId() const; + void setJobId(long jobId); + +private: + long pipelineId_; + std::string organizationId_; + long pipelineRunId_; + long jobId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RETRYPIPELINEJOBRUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/RetryPipelineJobRunResult.h b/devops/include/alibabacloud/devops/model/RetryPipelineJobRunResult.h new file mode 100644 index 000000000..614a3ffb8 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/RetryPipelineJobRunResult.h @@ -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_DEVOPS_MODEL_RETRYPIPELINEJOBRUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RETRYPIPELINEJOBRUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT RetryPipelineJobRunResult : public ServiceResult + { + public: + + + RetryPipelineJobRunResult(); + explicit RetryPipelineJobRunResult(const std::string &payload); + ~RetryPipelineJobRunResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RETRYPIPELINEJOBRUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/RetryVMDeployMachineRequest.h b/devops/include/alibabacloud/devops/model/RetryVMDeployMachineRequest.h new file mode 100644 index 000000000..43c3bda55 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/RetryVMDeployMachineRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_RETRYVMDEPLOYMACHINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RETRYVMDEPLOYMACHINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT RetryVMDeployMachineRequest : public RoaServiceRequest { +public: + RetryVMDeployMachineRequest(); + ~RetryVMDeployMachineRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getMachineSn() const; + void setMachineSn(const std::string &machineSn); + long getDeployOrderId() const; + void setDeployOrderId(long deployOrderId); + +private: + long pipelineId_; + std::string organizationId_; + std::string machineSn_; + long deployOrderId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RETRYVMDEPLOYMACHINEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/RetryVMDeployMachineResult.h b/devops/include/alibabacloud/devops/model/RetryVMDeployMachineResult.h new file mode 100644 index 000000000..36162359a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/RetryVMDeployMachineResult.h @@ -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_DEVOPS_MODEL_RETRYVMDEPLOYMACHINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_RETRYVMDEPLOYMACHINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT RetryVMDeployMachineResult : public ServiceResult + { + public: + + + RetryVMDeployMachineResult(); + explicit RetryVMDeployMachineResult(const std::string &payload); + ~RetryVMDeployMachineResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_RETRYVMDEPLOYMACHINERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/ReviewMergeRequestRequest.h b/devops/include/alibabacloud/devops/model/ReviewMergeRequestRequest.h new file mode 100644 index 000000000..1a5605f73 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ReviewMergeRequestRequest.h @@ -0,0 +1,60 @@ +/* + * 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_DEVOPS_MODEL_REVIEWMERGEREQUESTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_REVIEWMERGEREQUESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT ReviewMergeRequestRequest : public RoaServiceRequest { +public: + struct Body { + std::string string; + std::vector draftCommentIds; + std::string reviewOpinion; + std::string reviewComment; + }; + ReviewMergeRequestRequest(); + ~ReviewMergeRequestRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_REVIEWMERGEREQUESTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/ReviewMergeRequestResult.h b/devops/include/alibabacloud/devops/model/ReviewMergeRequestResult.h new file mode 100644 index 000000000..4e4907446 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/ReviewMergeRequestResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_REVIEWMERGEREQUESTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_REVIEWMERGEREQUESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT ReviewMergeRequestResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + ReviewMergeRequestResult(); + explicit ReviewMergeRequestResult(const std::string &payload); + ~ReviewMergeRequestResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_REVIEWMERGEREQUESTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/SkipPipelineJobRunRequest.h b/devops/include/alibabacloud/devops/model/SkipPipelineJobRunRequest.h new file mode 100644 index 000000000..af2536ecf --- /dev/null +++ b/devops/include/alibabacloud/devops/model/SkipPipelineJobRunRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_SKIPPIPELINEJOBRUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_SKIPPIPELINEJOBRUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT SkipPipelineJobRunRequest : public RoaServiceRequest { +public: + SkipPipelineJobRunRequest(); + ~SkipPipelineJobRunRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPipelineRunId() const; + void setPipelineRunId(long pipelineRunId); + long getJobId() const; + void setJobId(long jobId); + +private: + long pipelineId_; + std::string organizationId_; + long pipelineRunId_; + long jobId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_SKIPPIPELINEJOBRUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/SkipPipelineJobRunResult.h b/devops/include/alibabacloud/devops/model/SkipPipelineJobRunResult.h new file mode 100644 index 000000000..60cdad4ce --- /dev/null +++ b/devops/include/alibabacloud/devops/model/SkipPipelineJobRunResult.h @@ -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_DEVOPS_MODEL_SKIPPIPELINEJOBRUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_SKIPPIPELINEJOBRUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT SkipPipelineJobRunResult : public ServiceResult + { + public: + + + SkipPipelineJobRunResult(); + explicit SkipPipelineJobRunResult(const std::string &payload); + ~SkipPipelineJobRunResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_SKIPPIPELINEJOBRUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/SkipVMDeployMachineRequest.h b/devops/include/alibabacloud/devops/model/SkipVMDeployMachineRequest.h new file mode 100644 index 000000000..98b4ba1f0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/SkipVMDeployMachineRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_SKIPVMDEPLOYMACHINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_SKIPVMDEPLOYMACHINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT SkipVMDeployMachineRequest : public RoaServiceRequest { +public: + SkipVMDeployMachineRequest(); + ~SkipVMDeployMachineRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getMachineSn() const; + void setMachineSn(const std::string &machineSn); + long getDeployOrderId() const; + void setDeployOrderId(long deployOrderId); + +private: + long pipelineId_; + std::string organizationId_; + std::string machineSn_; + long deployOrderId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_SKIPVMDEPLOYMACHINEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/SkipVMDeployMachineResult.h b/devops/include/alibabacloud/devops/model/SkipVMDeployMachineResult.h new file mode 100644 index 000000000..b151d9c10 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/SkipVMDeployMachineResult.h @@ -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_DEVOPS_MODEL_SKIPVMDEPLOYMACHINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_SKIPVMDEPLOYMACHINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT SkipVMDeployMachineResult : public ServiceResult + { + public: + + + SkipVMDeployMachineResult(); + explicit SkipVMDeployMachineResult(const std::string &payload); + ~SkipVMDeployMachineResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_SKIPVMDEPLOYMACHINERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/StartPipelineRunRequest.h b/devops/include/alibabacloud/devops/model/StartPipelineRunRequest.h new file mode 100644 index 000000000..9643e3d70 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/StartPipelineRunRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_STARTPIPELINERUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_STARTPIPELINERUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT StartPipelineRunRequest : public RoaServiceRequest { +public: + StartPipelineRunRequest(); + ~StartPipelineRunRequest(); + std::string getParams() const; + void setParams(const std::string ¶ms); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string params_; + long pipelineId_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_STARTPIPELINERUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/StartPipelineRunResult.h b/devops/include/alibabacloud/devops/model/StartPipelineRunResult.h new file mode 100644 index 000000000..3849b1899 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/StartPipelineRunResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_STARTPIPELINERUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_STARTPIPELINERUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT StartPipelineRunResult : public ServiceResult + { + public: + + + StartPipelineRunResult(); + explicit StartPipelineRunResult(const std::string &payload); + ~StartPipelineRunResult(); + std::string getRequestId()const; + long getPipelineRunId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + long pipelineRunId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_STARTPIPELINERUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/StopPipelineJobRunRequest.h b/devops/include/alibabacloud/devops/model/StopPipelineJobRunRequest.h new file mode 100644 index 000000000..24fd53468 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/StopPipelineJobRunRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_STOPPIPELINEJOBRUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_STOPPIPELINEJOBRUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT StopPipelineJobRunRequest : public RoaServiceRequest { +public: + StopPipelineJobRunRequest(); + ~StopPipelineJobRunRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPipelineRunId() const; + void setPipelineRunId(long pipelineRunId); + long getJobId() const; + void setJobId(long jobId); + +private: + long pipelineId_; + std::string organizationId_; + long pipelineRunId_; + long jobId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_STOPPIPELINEJOBRUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/StopPipelineJobRunResult.h b/devops/include/alibabacloud/devops/model/StopPipelineJobRunResult.h new file mode 100644 index 000000000..b2629d1e6 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/StopPipelineJobRunResult.h @@ -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_DEVOPS_MODEL_STOPPIPELINEJOBRUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_STOPPIPELINEJOBRUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT StopPipelineJobRunResult : public ServiceResult + { + public: + + + StopPipelineJobRunResult(); + explicit StopPipelineJobRunResult(const std::string &payload); + ~StopPipelineJobRunResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_STOPPIPELINEJOBRUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/StopPipelineRunRequest.h b/devops/include/alibabacloud/devops/model/StopPipelineRunRequest.h new file mode 100644 index 000000000..c05fca6cd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/StopPipelineRunRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_STOPPIPELINERUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_STOPPIPELINERUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT StopPipelineRunRequest : public RoaServiceRequest { +public: + StopPipelineRunRequest(); + ~StopPipelineRunRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPipelineRunId() const; + void setPipelineRunId(long pipelineRunId); + +private: + long pipelineId_; + std::string organizationId_; + long pipelineRunId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_STOPPIPELINERUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/StopPipelineRunResult.h b/devops/include/alibabacloud/devops/model/StopPipelineRunResult.h new file mode 100644 index 000000000..5cc624a80 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/StopPipelineRunResult.h @@ -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_DEVOPS_MODEL_STOPPIPELINERUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_STOPPIPELINERUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT StopPipelineRunResult : public ServiceResult + { + public: + + + StopPipelineRunResult(); + explicit StopPipelineRunResult(const std::string &payload); + ~StopPipelineRunResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_STOPPIPELINERUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/StopVMDeployOrderRequest.h b/devops/include/alibabacloud/devops/model/StopVMDeployOrderRequest.h new file mode 100644 index 000000000..fb6cf2be9 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/StopVMDeployOrderRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_STOPVMDEPLOYORDERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_STOPVMDEPLOYORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT StopVMDeployOrderRequest : public RoaServiceRequest { +public: + StopVMDeployOrderRequest(); + ~StopVMDeployOrderRequest(); + long getPipelineId() const; + void setPipelineId(long pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getDeployOrderId() const; + void setDeployOrderId(long deployOrderId); + +private: + long pipelineId_; + std::string organizationId_; + long deployOrderId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_STOPVMDEPLOYORDERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/StopVMDeployOrderResult.h b/devops/include/alibabacloud/devops/model/StopVMDeployOrderResult.h new file mode 100644 index 000000000..c37ea0b44 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/StopVMDeployOrderResult.h @@ -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_DEVOPS_MODEL_STOPVMDEPLOYORDERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_STOPVMDEPLOYORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT StopVMDeployOrderResult : public ServiceResult + { + public: + + + StopVMDeployOrderResult(); + explicit StopVMDeployOrderResult(const std::string &payload); + ~StopVMDeployOrderResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_STOPVMDEPLOYORDERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/TransferRepositoryRequest.h b/devops/include/alibabacloud/devops/model/TransferRepositoryRequest.h new file mode 100644 index 000000000..3493e49b0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/TransferRepositoryRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_TRANSFERREPOSITORYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_TRANSFERREPOSITORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT TransferRepositoryRequest : public RoaServiceRequest { +public: + TransferRepositoryRequest(); + ~TransferRepositoryRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getRepositoryId() const; + void setRepositoryId(const std::string &repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + +private: + std::string organizationId_; + std::string groupId_; + std::string repositoryId_; + std::string accessToken_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_TRANSFERREPOSITORYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/TransferRepositoryResult.h b/devops/include/alibabacloud/devops/model/TransferRepositoryResult.h new file mode 100644 index 000000000..d0571b3df --- /dev/null +++ b/devops/include/alibabacloud/devops/model/TransferRepositoryResult.h @@ -0,0 +1,81 @@ +/* + * 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_DEVOPS_MODEL_TRANSFERREPOSITORYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_TRANSFERREPOSITORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT TransferRepositoryResult : public ServiceResult + { + public: + struct Result + { + std::string path; + std::string pathWithNamespace; + std::string lastActivityAt; + std::string description; + long creatorId; + bool encrypted; + std::string createdAt; + std::string nameWithNamespace; + std::string webUrl; + int visibilityLevel; + std::string updatedAt; + int accessLevel; + std::string name; + bool archived; + bool demoProject; + long id; + long namespaceId; + long starCount; + bool starred; + }; + + + TransferRepositoryResult(); + explicit TransferRepositoryResult(const std::string &payload); + ~TransferRepositoryResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_TRANSFERREPOSITORYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/TriggerRepositoryMirrorSyncRequest.h b/devops/include/alibabacloud/devops/model/TriggerRepositoryMirrorSyncRequest.h new file mode 100644 index 000000000..55de1dc15 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/TriggerRepositoryMirrorSyncRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_TRIGGERREPOSITORYMIRRORSYNCREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_TRIGGERREPOSITORYMIRRORSYNCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT TriggerRepositoryMirrorSyncRequest : public RoaServiceRequest { +public: + TriggerRepositoryMirrorSyncRequest(); + ~TriggerRepositoryMirrorSyncRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getAccount() const; + void setAccount(const std::string &account); + std::string getToken() const; + void setToken(const std::string &token); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + std::string account_; + std::string token_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_TRIGGERREPOSITORYMIRRORSYNCREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/TriggerRepositoryMirrorSyncResult.h b/devops/include/alibabacloud/devops/model/TriggerRepositoryMirrorSyncResult.h new file mode 100644 index 000000000..847f80597 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/TriggerRepositoryMirrorSyncResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_TRIGGERREPOSITORYMIRRORSYNCRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_TRIGGERREPOSITORYMIRRORSYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT TriggerRepositoryMirrorSyncResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + TriggerRepositoryMirrorSyncResult(); + explicit TriggerRepositoryMirrorSyncResult(const std::string &payload); + ~TriggerRepositoryMirrorSyncResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_TRIGGERREPOSITORYMIRRORSYNCRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateAppMemberRequest.h b/devops/include/alibabacloud/devops/model/UpdateAppMemberRequest.h new file mode 100644 index 000000000..bbaeb2c8c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateAppMemberRequest.h @@ -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_DEVOPS_MODEL_UPDATEAPPMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEAPPMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateAppMemberRequest : public RoaServiceRequest { +public: + struct Body { + std::string string; + std::vector roleNames; + struct Player { + std::string id; + std::string type; + }; + player player; + }; + UpdateAppMemberRequest(); + ~UpdateAppMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAppName() const; + void setAppName(const std::string &appName); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string appName_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEAPPMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateAppMemberResult.h b/devops/include/alibabacloud/devops/model/UpdateAppMemberResult.h new file mode 100644 index 000000000..dc98275b1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateAppMemberResult.h @@ -0,0 +1,49 @@ +/* + * 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_DEVOPS_MODEL_UPDATEAPPMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEAPPMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateAppMemberResult : public ServiceResult + { + public: + + + UpdateAppMemberResult(); + explicit UpdateAppMemberResult(const std::string &payload); + ~UpdateAppMemberResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEAPPMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateApplicationRequest.h b/devops/include/alibabacloud/devops/model/UpdateApplicationRequest.h new file mode 100644 index 000000000..9a17f6453 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateApplicationRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_UPDATEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateApplicationRequest : public RoaServiceRequest { +public: + struct Body { + std::string ownerAccountId; + }; + UpdateApplicationRequest(); + ~UpdateApplicationRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAppName() const; + void setAppName(const std::string &appName); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string appName_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEAPPLICATIONREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateApplicationResult.h b/devops/include/alibabacloud/devops/model/UpdateApplicationResult.h new file mode 100644 index 000000000..8f867097c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateApplicationResult.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_UPDATEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateApplicationResult : public ServiceResult + { + public: + + + UpdateApplicationResult(); + explicit UpdateApplicationResult(const std::string &payload); + ~UpdateApplicationResult(); + std::string getGmtCreate()const; + std::string getDescription()const; + std::string getRequestId()const; + std::string getCreatorAccountId()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string gmtCreate_; + std::string description_; + std::string requestId_; + std::string creatorAccountId_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateCheckRunRequest.h b/devops/include/alibabacloud/devops/model/UpdateCheckRunRequest.h new file mode 100644 index 000000000..29899c9c7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateCheckRunRequest.h @@ -0,0 +1,89 @@ +/* + * 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_DEVOPS_MODEL_UPDATECHECKRUNREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATECHECKRUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateCheckRunRequest : public RoaServiceRequest { +public: + struct Body { + std::string conclusion; + struct Output { + std::string summary; + struct ImagesItem { + std::string imageUrl; + std::string alt; + std::string caption; + }; + imagesItem imagesItem; + std::vector images; + std::string text; + std::string title; + }; + output output; + std::string completedAt; + std::string detailsUrl; + std::string name; + std::string startedAt; + std::string externalId; + struct AnnotationsItem { + std::string path; + long endLine; + long startColumn; + std::string annotationLevel; + long startLine; + std::string message; + std::string title; + std::string rawDetails; + long endColumn; + }; + annotationsItem annotationsItem; + std::vector annotations; + std::string status; + }; + UpdateCheckRunRequest(); + ~UpdateCheckRunRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getCheckRunId() const; + void setCheckRunId(long checkRunId); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string repositoryIdentity_; + std::string accessToken_; + long checkRunId_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATECHECKRUNREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateCheckRunResult.h b/devops/include/alibabacloud/devops/model/UpdateCheckRunResult.h new file mode 100644 index 000000000..4f464da9f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateCheckRunResult.h @@ -0,0 +1,115 @@ +/* + * 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_DEVOPS_MODEL_UPDATECHECKRUNRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATECHECKRUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateCheckRunResult : public ServiceResult + { + public: + struct Result + { + struct CheckSuite + { + long id; + }; + struct Writer + { + std::string type; + std::string logoUrl; + std::string id; + std::string slug; + std::string name; + }; + struct Output + { + struct Output_images + { + std::string alt; + std::string imageUrl; + std::string caption; + }; + std::vector images; + std::string title; + std::string summary; + std::string text; + }; + struct Check_run_annotations + { + std::string path; + long startLine; + std::string message; + std::string annotationLevel; + long endLine; + long endColumn; + std::string title; + long id; + std::string rawDetails; + long startColumn; + }; + std::string status; + std::string createdAt; + std::string externalId; + std::vector annotations; + std::string updatedAt; + std::string name; + std::string headSha; + CheckSuite checkSuite; + Output output; + std::string detailsUrl; + std::string completedAt; + long id; + std::string startedAt; + Writer writer; + std::string conclusion; + }; + + + UpdateCheckRunResult(); + explicit UpdateCheckRunResult(const std::string &payload); + ~UpdateCheckRunResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATECHECKRUNRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateFileRequest.h b/devops/include/alibabacloud/devops/model/UpdateFileRequest.h new file mode 100644 index 000000000..16b58efec --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateFileRequest.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_UPDATEFILEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateFileRequest : public RoaServiceRequest { +public: + struct Body { + std::string oldPath; + std::string encoding; + std::string commitMessage; + std::string newPath; + std::string content; + std::string branchName; + }; + UpdateFileRequest(); + ~UpdateFileRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getRepositoryId() const; + void setRepositoryId(const std::string &repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEFILEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateFileResult.h b/devops/include/alibabacloud/devops/model/UpdateFileResult.h new file mode 100644 index 000000000..8acb8b030 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateFileResult.h @@ -0,0 +1,64 @@ +/* + * 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_DEVOPS_MODEL_UPDATEFILERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateFileResult : public ServiceResult + { + public: + struct Result + { + std::string filePath; + std::string branchName; + }; + + + UpdateFileResult(); + explicit UpdateFileResult(const std::string &payload); + ~UpdateFileResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEFILERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateFlowTagGroupRequest.h b/devops/include/alibabacloud/devops/model/UpdateFlowTagGroupRequest.h new file mode 100644 index 000000000..b9fbe86ea --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateFlowTagGroupRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_UPDATEFLOWTAGGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEFLOWTAGGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateFlowTagGroupRequest : public RoaServiceRequest { +public: + UpdateFlowTagGroupRequest(); + ~UpdateFlowTagGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + std::string getId() const; + void setId(const std::string &id); + +private: + std::string organizationId_; + std::string name_; + std::string id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEFLOWTAGGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateFlowTagGroupResult.h b/devops/include/alibabacloud/devops/model/UpdateFlowTagGroupResult.h new file mode 100644 index 000000000..5bcdba5d4 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateFlowTagGroupResult.h @@ -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_DEVOPS_MODEL_UPDATEFLOWTAGGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEFLOWTAGGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateFlowTagGroupResult : public ServiceResult + { + public: + + + UpdateFlowTagGroupResult(); + explicit UpdateFlowTagGroupResult(const std::string &payload); + ~UpdateFlowTagGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEFLOWTAGGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateFlowTagRequest.h b/devops/include/alibabacloud/devops/model/UpdateFlowTagRequest.h new file mode 100644 index 000000000..29b23a25a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateFlowTagRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_UPDATEFLOWTAGREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEFLOWTAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateFlowTagRequest : public RoaServiceRequest { +public: + UpdateFlowTagRequest(); + ~UpdateFlowTagRequest(); + std::string getColor() const; + void setColor(const std::string &color); + long getFlowTagGroupId() const; + void setFlowTagGroupId(long flowTagGroupId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + long getId() const; + void setId(long id); + +private: + std::string color_; + long flowTagGroupId_; + std::string organizationId_; + std::string name_; + long id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEFLOWTAGREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateFlowTagResult.h b/devops/include/alibabacloud/devops/model/UpdateFlowTagResult.h new file mode 100644 index 000000000..d2032d91c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateFlowTagResult.h @@ -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_DEVOPS_MODEL_UPDATEFLOWTAGRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEFLOWTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateFlowTagResult : public ServiceResult + { + public: + + + UpdateFlowTagResult(); + explicit UpdateFlowTagResult(const std::string &payload); + ~UpdateFlowTagResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEFLOWTAGRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateGroupMemberRequest.h b/devops/include/alibabacloud/devops/model/UpdateGroupMemberRequest.h new file mode 100644 index 000000000..ae89b8fe3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateGroupMemberRequest.h @@ -0,0 +1,58 @@ +/* + * 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_DEVOPS_MODEL_UPDATEGROUPMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEGROUPMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateGroupMemberRequest : public RoaServiceRequest { +public: + struct Body { + int accessLevel; + std::string memberType; + }; + UpdateGroupMemberRequest(); + ~UpdateGroupMemberRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAliyunPk() const; + void setAliyunPk(const std::string &aliyunPk); + long getGroupId() const; + void setGroupId(long groupId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string aliyunPk_; + long groupId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEGROUPMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateGroupMemberResult.h b/devops/include/alibabacloud/devops/model/UpdateGroupMemberResult.h new file mode 100644 index 000000000..182b35e4d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateGroupMemberResult.h @@ -0,0 +1,72 @@ +/* + * 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_DEVOPS_MODEL_UPDATEGROUPMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEGROUPMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateGroupMemberResult : public ServiceResult + { + public: + struct Result + { + std::string avatarUrl; + std::string email; + std::string username; + std::string externUid; + std::string memberType; + std::string state; + long sourceId; + long id; + int accessLevel; + std::string name; + }; + + + UpdateGroupMemberResult(); + explicit UpdateGroupMemberResult(const std::string &payload); + ~UpdateGroupMemberResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEGROUPMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateGroupRequest.h b/devops/include/alibabacloud/devops/model/UpdateGroupRequest.h new file mode 100644 index 000000000..1a284bba7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateGroupRequest.h @@ -0,0 +1,56 @@ +/* + * 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_DEVOPS_MODEL_UPDATEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateGroupRequest : public RoaServiceRequest { +public: + struct Body { + std::string path; + std::string avatarUrl; + std::string name; + std::string description; + int visibilityLevel; + std::string pathWithNamespace; + }; + UpdateGroupRequest(); + ~UpdateGroupRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateGroupResult.h b/devops/include/alibabacloud/devops/model/UpdateGroupResult.h new file mode 100644 index 000000000..213da8212 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateGroupResult.h @@ -0,0 +1,74 @@ +/* + * 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_DEVOPS_MODEL_UPDATEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateGroupResult : public ServiceResult + { + public: + struct Result + { + std::string pathWithNamespace; + std::string path; + long parentId; + std::string type; + std::string description; + std::string avatarUrl; + long ownerId; + std::string nameWithNamespace; + std::string webUrl; + int visibilityLevel; + long id; + std::string name; + }; + + + UpdateGroupResult(); + explicit UpdateGroupResult(const std::string &payload); + ~UpdateGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateHostGroupRequest.h b/devops/include/alibabacloud/devops/model/UpdateHostGroupRequest.h new file mode 100644 index 000000000..a19580162 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateHostGroupRequest.h @@ -0,0 +1,75 @@ +/* + * 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_DEVOPS_MODEL_UPDATEHOSTGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEHOSTGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateHostGroupRequest : public RoaServiceRequest { +public: + UpdateHostGroupRequest(); + ~UpdateHostGroupRequest(); + long getServiceConnectionId() const; + void setServiceConnectionId(long serviceConnectionId); + std::string getMachineInfos() const; + void setMachineInfos(const std::string &machineInfos); + std::string getTagIds() const; + void setTagIds(const std::string &tagIds); + std::string getAliyunRegion() const; + void setAliyunRegion(const std::string &aliyunRegion); + std::string getEnvId() const; + void setEnvId(const std::string &envId); + std::string getType() const; + void setType(const std::string &type); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getEcsLabelKey() const; + void setEcsLabelKey(const std::string &ecsLabelKey); + std::string getName() const; + void setName(const std::string &name); + std::string getEcsLabelValue() const; + void setEcsLabelValue(const std::string &ecsLabelValue); + long getId() const; + void setId(long id); + std::string getEcsType() const; + void setEcsType(const std::string &ecsType); + +private: + long serviceConnectionId_; + std::string machineInfos_; + std::string tagIds_; + std::string aliyunRegion_; + std::string envId_; + std::string type_; + std::string organizationId_; + std::string ecsLabelKey_; + std::string name_; + std::string ecsLabelValue_; + long id_; + std::string ecsType_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEHOSTGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateHostGroupResult.h b/devops/include/alibabacloud/devops/model/UpdateHostGroupResult.h new file mode 100644 index 000000000..62de54601 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateHostGroupResult.h @@ -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_DEVOPS_MODEL_UPDATEHOSTGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEHOSTGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateHostGroupResult : public ServiceResult + { + public: + + + UpdateHostGroupResult(); + explicit UpdateHostGroupResult(const std::string &payload); + ~UpdateHostGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEHOSTGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateMergeRequestPersonnelRequest.h b/devops/include/alibabacloud/devops/model/UpdateMergeRequestPersonnelRequest.h new file mode 100644 index 000000000..482c1ce05 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateMergeRequestPersonnelRequest.h @@ -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_DEVOPS_MODEL_UPDATEMERGEREQUESTPERSONNELREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEMERGEREQUESTPERSONNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateMergeRequestPersonnelRequest : public RoaServiceRequest { +public: + struct Body { + std::string string; + std::vector newUserIdList; + }; + UpdateMergeRequestPersonnelRequest(); + ~UpdateMergeRequestPersonnelRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + long getLocalId() const; + void setLocalId(long localId); + std::string getPersonType() const; + void setPersonType(const std::string &personType); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; + long localId_; + std::string personType_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEMERGEREQUESTPERSONNELREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateMergeRequestPersonnelResult.h b/devops/include/alibabacloud/devops/model/UpdateMergeRequestPersonnelResult.h new file mode 100644 index 000000000..be5b5c2b0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateMergeRequestPersonnelResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_UPDATEMERGEREQUESTPERSONNELRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEMERGEREQUESTPERSONNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateMergeRequestPersonnelResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + UpdateMergeRequestPersonnelResult(); + explicit UpdateMergeRequestPersonnelResult(const std::string &payload); + ~UpdateMergeRequestPersonnelResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEMERGEREQUESTPERSONNELRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateMergeRequestRequest.h b/devops/include/alibabacloud/devops/model/UpdateMergeRequestRequest.h new file mode 100644 index 000000000..81fafb094 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateMergeRequestRequest.h @@ -0,0 +1,58 @@ +/* + * 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_DEVOPS_MODEL_UPDATEMERGEREQUESTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEMERGEREQUESTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateMergeRequestRequest : public RoaServiceRequest { +public: + struct Body { + std::string description; + std::string title; + }; + UpdateMergeRequestRequest(); + ~UpdateMergeRequestRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + long getLocalId() const; + void setLocalId(long localId); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; + long localId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEMERGEREQUESTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateMergeRequestResult.h b/devops/include/alibabacloud/devops/model/UpdateMergeRequestResult.h new file mode 100644 index 000000000..b9ffee9f7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateMergeRequestResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_UPDATEMERGEREQUESTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEMERGEREQUESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateMergeRequestResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + UpdateMergeRequestResult(); + explicit UpdateMergeRequestResult(const std::string &payload); + ~UpdateMergeRequestResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEMERGEREQUESTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdatePipelineBaseInfoRequest.h b/devops/include/alibabacloud/devops/model/UpdatePipelineBaseInfoRequest.h new file mode 100644 index 000000000..c2fd51fd7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePipelineBaseInfoRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPIPELINEBASEINFOREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEBASEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdatePipelineBaseInfoRequest : public RoaServiceRequest { +public: + UpdatePipelineBaseInfoRequest(); + ~UpdatePipelineBaseInfoRequest(); + std::string getPipelineName() const; + void setPipelineName(const std::string &pipelineName); + long getEnvId() const; + void setEnvId(long envId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getTagList() const; + void setTagList(const std::string &tagList); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string pipelineName_; + long envId_; + std::string pipelineId_; + std::string tagList_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEBASEINFOREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdatePipelineBaseInfoResult.h b/devops/include/alibabacloud/devops/model/UpdatePipelineBaseInfoResult.h new file mode 100644 index 000000000..4b6af1f9d --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePipelineBaseInfoResult.h @@ -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_DEVOPS_MODEL_UPDATEPIPELINEBASEINFORESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEBASEINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdatePipelineBaseInfoResult : public ServiceResult + { + public: + + + UpdatePipelineBaseInfoResult(); + explicit UpdatePipelineBaseInfoResult(const std::string &payload); + ~UpdatePipelineBaseInfoResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEBASEINFORESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdatePipelineGroupRequest.h b/devops/include/alibabacloud/devops/model/UpdatePipelineGroupRequest.h new file mode 100644 index 000000000..777007d30 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePipelineGroupRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPIPELINEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdatePipelineGroupRequest : public RoaServiceRequest { +public: + UpdatePipelineGroupRequest(); + ~UpdatePipelineGroupRequest(); + long getGroupId() const; + void setGroupId(long groupId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + +private: + long groupId_; + std::string organizationId_; + std::string name_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdatePipelineGroupResult.h b/devops/include/alibabacloud/devops/model/UpdatePipelineGroupResult.h new file mode 100644 index 000000000..fd05f5edf --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePipelineGroupResult.h @@ -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_DEVOPS_MODEL_UPDATEPIPELINEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdatePipelineGroupResult : public ServiceResult + { + public: + + + UpdatePipelineGroupResult(); + explicit UpdatePipelineGroupResult(const std::string &payload); + ~UpdatePipelineGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdatePipelineRequest.h b/devops/include/alibabacloud/devops/model/UpdatePipelineRequest.h new file mode 100644 index 000000000..5a3d68565 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePipelineRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdatePipelineRequest : public RoaServiceRequest { +public: + UpdatePipelineRequest(); + ~UpdatePipelineRequest(); + std::string getContent() const; + void setContent(const std::string &content); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string content_; + std::string pipelineId_; + std::string organizationId_; + std::string name_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdatePipelineResult.h b/devops/include/alibabacloud/devops/model/UpdatePipelineResult.h new file mode 100644 index 000000000..56ac3e899 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePipelineResult.h @@ -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_DEVOPS_MODEL_UPDATEPIPELINERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdatePipelineResult : public ServiceResult + { + public: + + + UpdatePipelineResult(); + explicit UpdatePipelineResult(const std::string &payload); + ~UpdatePipelineResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPIPELINERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateProjectFieldRequest.h b/devops/include/alibabacloud/devops/model/UpdateProjectFieldRequest.h new file mode 100644 index 000000000..7e1c435ea --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateProjectFieldRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPROJECTFIELDREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTFIELDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateProjectFieldRequest : public RoaServiceRequest { +public: + struct Body { + struct UpdateBasicFieldRequestListItem { + std::string propertyKey; + std::string propertyValue; + }; + updateBasicFieldRequestListItem updateBasicFieldRequestListItem; + std::vector updateBasicFieldRequestList; + std::string statusIdentifier; + struct UpdateForOpenApiListItem { + std::string fieldIdentifier; + std::string value; + }; + updateForOpenApiListItem updateForOpenApiListItem; + std::vector updateForOpenApiList; + }; + UpdateProjectFieldRequest(); + ~UpdateProjectFieldRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string identifier_; + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTFIELDREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateProjectFieldResult.h b/devops/include/alibabacloud/devops/model/UpdateProjectFieldResult.h new file mode 100644 index 000000000..72fc54edd --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateProjectFieldResult.h @@ -0,0 +1,95 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPROJECTFIELDRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTFIELDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateProjectFieldResult : public ServiceResult + { + public: + struct Project + { + struct FieldListItem + { + std::string identifier; + std::string valueType; + std::string displayName; + std::string value; + }; + std::string iconBig; + std::string identifierPath; + std::string category; + std::string description; + std::string statusStageIdentifier; + long gmtModified; + std::string creator; + std::string iconSmall; + std::string name; + std::string identifier; + std::string logicalStatus; + std::string iconGroup; + std::vector fieldList; + std::string customCode; + std::string modifier; + std::string typeIdentifier; + std::string subType; + std::string categoryIdentifier; + std::string statusName; + std::string parentIdentifier; + std::string organizationIdentifier; + long gmtCreate; + std::string scope; + std::string icon; + std::string id; + std::string statusIdentifier; + }; + + + UpdateProjectFieldResult(); + explicit UpdateProjectFieldResult(const std::string &payload); + ~UpdateProjectFieldResult(); + Project getProject()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Project project_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTFIELDRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateProjectLabelRequest.h b/devops/include/alibabacloud/devops/model/UpdateProjectLabelRequest.h new file mode 100644 index 000000000..cf5b75198 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateProjectLabelRequest.h @@ -0,0 +1,59 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPROJECTLABELREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTLABELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateProjectLabelRequest : public RoaServiceRequest { +public: + struct Body { + std::string color; + std::string name; + std::string description; + }; + UpdateProjectLabelRequest(); + ~UpdateProjectLabelRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getLabelId() const; + void setLabelId(const std::string &labelId); + std::string getRepositoryIdentity() const; + void setRepositoryIdentity(const std::string &repositoryIdentity); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + std::string labelId_; + std::string repositoryIdentity_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTLABELREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateProjectLabelResult.h b/devops/include/alibabacloud/devops/model/UpdateProjectLabelResult.h new file mode 100644 index 000000000..ef2581ec4 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateProjectLabelResult.h @@ -0,0 +1,66 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPROJECTLABELRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTLABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateProjectLabelResult : public ServiceResult + { + public: + struct Result + { + std::string description; + std::string color; + std::string id; + std::string name; + }; + + + UpdateProjectLabelResult(); + explicit UpdateProjectLabelResult(const std::string &payload); + ~UpdateProjectLabelResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTLABELRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateProjectMemberRequest.h b/devops/include/alibabacloud/devops/model/UpdateProjectMemberRequest.h new file mode 100644 index 000000000..1244abf60 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateProjectMemberRequest.h @@ -0,0 +1,55 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPROJECTMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateProjectMemberRequest : public RoaServiceRequest { +public: + struct Body { + std::string targetType; + std::string roleIdentifier; + std::string userType; + std::string userIdentifier; + std::string targetIdentifier; + }; + UpdateProjectMemberRequest(); + ~UpdateProjectMemberRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getProjectId() const; + void setProjectId(const std::string &projectId); + +private: + body body_; + std::string organizationId_; + std::string projectId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateProjectMemberResult.h b/devops/include/alibabacloud/devops/model/UpdateProjectMemberResult.h new file mode 100644 index 000000000..fdbb6978c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateProjectMemberResult.h @@ -0,0 +1,70 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPROJECTMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateProjectMemberResult : public ServiceResult + { + public: + struct Member + { + long gmtCreate; + std::string targetIdentifier; + std::string targetType; + long gmtModified; + std::string id; + std::string userIdentifier; + std::string userType; + std::string roleIdentifier; + }; + + + UpdateProjectMemberResult(); + explicit UpdateProjectMemberResult(const std::string &payload); + ~UpdateProjectMemberResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + Member getMember()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + Member member_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROJECTMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateProtectedBranchesRequest.h b/devops/include/alibabacloud/devops/model/UpdateProtectedBranchesRequest.h new file mode 100644 index 000000000..01d202c07 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateProtectedBranchesRequest.h @@ -0,0 +1,110 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPROTECTEDBRANCHESREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROTECTEDBRANCHESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateProtectedBranchesRequest : public RoaServiceRequest { +public: + struct Body { + int integer; + std::vector allowPushRoles; + struct TestSettingDTO { + struct SensitiveInfoDetection { + std::string message; + bool enabled; + }; + sensitiveInfoDetection sensitiveInfoDetection; + bool isRequired; + struct CheckTaskQualityConfig { + std::string bizNo; + std::string taskName; + std::string message; + bool enabled; + }; + checkTaskQualityConfig checkTaskQualityConfig; + struct CodeGuidelinesDetection { + std::string message; + bool enabled; + }; + codeGuidelinesDetection codeGuidelinesDetection; + struct CheckConfig { + struct CheckItemsItem { + bool isRequired; + std::string name; + }; + checkItemsItem checkItemsItem; + std::vector checkItems; + }; + checkConfig checkConfig; + }; + testSettingDTO testSettingDTO; + std::string string; + std::vector allowPushUserIds; + std::string string; + std::vector allowMergeUserIds; + struct MergeRequestSetting { + std::string mrMode; + std::string string; + std::vector defaultAssignees; + int minimumApproval; + bool isRequired; + bool isRequireDiscussionProcessed; + int integer; + std::vector allowMergeRequestRoles; + std::string whiteList; + bool isResetApprovalWhenNewPush; + bool isAllowSelfApproval; + }; + mergeRequestSetting mergeRequestSetting; + long id; + std::string branch; + int integer; + std::vector allowMergeRoles; + }; + UpdateProtectedBranchesRequest(); + ~UpdateProtectedBranchesRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + long getId() const; + void setId(long id); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + long id_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROTECTEDBRANCHESREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateProtectedBranchesResult.h b/devops/include/alibabacloud/devops/model/UpdateProtectedBranchesResult.h new file mode 100644 index 000000000..b5718f763 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateProtectedBranchesResult.h @@ -0,0 +1,116 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPROTECTEDBRANCHESRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROTECTEDBRANCHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateProtectedBranchesResult : public ServiceResult + { + public: + struct Result + { + struct MergeRequestSetting + { + bool isAllowSelfApproval; + bool isRequired; + int minimumApproval; + std::vector defaultAssignees; + std::vector allowMergeRequestRoles; + std::string mrMode; + bool isResetApprovalWhenNewPush; + std::string whiteList; + bool isRequireDiscussionProcessed; + }; + struct TestSettingDTO + { + struct CodeGuidelinesDetection + { + std::string message; + bool enabled; + }; + struct SensitiveInfoDetection + { + std::string message; + bool enabled; + }; + struct CheckTaskQualityConfig + { + std::string message; + std::string taskName; + std::string bizNo; + bool enabled; + }; + struct CheckConfig + { + struct Check_items + { + bool isRequired; + std::string name; + }; + std::vector checkItems; + }; + SensitiveInfoDetection sensitiveInfoDetection; + bool isRequired; + CheckTaskQualityConfig checkTaskQualityConfig; + CodeGuidelinesDetection codeGuidelinesDetection; + CheckConfig checkConfig; + }; + std::vector allowMergeUserIds; + std::vector allowPushRoles; + std::string branch; + std::vector allowPushUserIds; + TestSettingDTO testSettingDTO; + long id; + std::vector allowMergeRoles; + MergeRequestSetting mergeRequestSetting; + }; + + + UpdateProtectedBranchesResult(); + explicit UpdateProtectedBranchesResult(const std::string &payload); + ~UpdateProtectedBranchesResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPROTECTEDBRANCHESRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdatePushReviewOnOffRequest.h b/devops/include/alibabacloud/devops/model/UpdatePushReviewOnOffRequest.h new file mode 100644 index 000000000..cd396e4df --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePushReviewOnOffRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPUSHREVIEWONOFFREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPUSHREVIEWONOFFREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdatePushReviewOnOffRequest : public RoaServiceRequest { +public: + UpdatePushReviewOnOffRequest(); + ~UpdatePushReviewOnOffRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + bool getTrunkMode() const; + void setTrunkMode(bool trunkMode); + +private: + std::string organizationId_; + long repositoryId_; + bool trunkMode_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPUSHREVIEWONOFFREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdatePushReviewOnOffResult.h b/devops/include/alibabacloud/devops/model/UpdatePushReviewOnOffResult.h new file mode 100644 index 000000000..9d0c3aa25 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePushReviewOnOffResult.h @@ -0,0 +1,63 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPUSHREVIEWONOFFRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPUSHREVIEWONOFFRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdatePushReviewOnOffResult : public ServiceResult + { + public: + struct Result + { + bool result; + }; + + + UpdatePushReviewOnOffResult(); + explicit UpdatePushReviewOnOffResult(const std::string &payload); + ~UpdatePushReviewOnOffResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPUSHREVIEWONOFFRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdatePushRuleRequest.h b/devops/include/alibabacloud/devops/model/UpdatePushRuleRequest.h new file mode 100644 index 000000000..c8fe3e335 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePushRuleRequest.h @@ -0,0 +1,65 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPUSHRULEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPUSHRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdatePushRuleRequest : public RoaServiceRequest { +public: + struct Body { + struct RuleInfosItem { + std::string extraMessage; + std::string checkerType; + std::string string; + std::vector fileRuleRegexes; + std::string checkerName; + }; + ruleInfosItem ruleInfosItem; + std::vector ruleInfos; + }; + UpdatePushRuleRequest(); + ~UpdatePushRuleRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getPushRuleId() const; + void setPushRuleId(long pushRuleId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long pushRuleId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPUSHRULEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdatePushRuleResult.h b/devops/include/alibabacloud/devops/model/UpdatePushRuleResult.h new file mode 100644 index 000000000..6ad0adad7 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdatePushRuleResult.h @@ -0,0 +1,73 @@ +/* + * 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_DEVOPS_MODEL_UPDATEPUSHRULERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEPUSHRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdatePushRuleResult : public ServiceResult + { + public: + struct Result + { + struct Rule_infos + { + std::vector fileRuleRegexes; + std::string checkerName; + std::string checkerType; + std::string extraMessage; + }; + std::string gmtCreate; + std::string gmtModified; + long id; + std::vector ruleInfos; + }; + + + UpdatePushRuleResult(); + explicit UpdatePushRuleResult(const std::string &payload); + ~UpdatePushRuleResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEPUSHRULERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateRepositoryMemberRequest.h b/devops/include/alibabacloud/devops/model/UpdateRepositoryMemberRequest.h new file mode 100644 index 000000000..58336e8db --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateRepositoryMemberRequest.h @@ -0,0 +1,67 @@ +/* + * 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_DEVOPS_MODEL_UPDATEREPOSITORYMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEREPOSITORYMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateRepositoryMemberRequest : public RoaServiceRequest { +public: + struct Body { + int accessLevel; + struct RelatedInfosItem { + long sourceId; + std::string sourceType; + std::string relatedId; + }; + relatedInfosItem relatedInfosItem; + std::vector relatedInfos; + std::string memberType; + std::string expireAt; + std::string relatedId; + }; + UpdateRepositoryMemberRequest(); + ~UpdateRepositoryMemberRequest(); + std::string getAliyunPk() const; + void setAliyunPk(const std::string &aliyunPk); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string aliyunPk_; + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEREPOSITORYMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateRepositoryMemberResult.h b/devops/include/alibabacloud/devops/model/UpdateRepositoryMemberResult.h new file mode 100644 index 000000000..ddf1b6829 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateRepositoryMemberResult.h @@ -0,0 +1,77 @@ +/* + * 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_DEVOPS_MODEL_UPDATEREPOSITORYMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEREPOSITORYMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateRepositoryMemberResult : public ServiceResult + { + public: + struct Result + { + std::string tbUserId; + std::string email; + long sourceId; + std::string sourceType; + std::string webUrl; + std::string expireAt; + int accessLevel; + std::string name; + std::string avatarUrl; + std::string externUid; + std::string memberType; + std::string username; + std::string state; + long id; + std::string memberName; + }; + + + UpdateRepositoryMemberResult(); + explicit UpdateRepositoryMemberResult(const std::string &payload); + ~UpdateRepositoryMemberResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEREPOSITORYMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateRepositoryRequest.h b/devops/include/alibabacloud/devops/model/UpdateRepositoryRequest.h new file mode 100644 index 000000000..c1e30488e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateRepositoryRequest.h @@ -0,0 +1,80 @@ +/* + * 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_DEVOPS_MODEL_UPDATEREPOSITORYREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEREPOSITORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateRepositoryRequest : public RoaServiceRequest { +public: + struct Body { + bool wikiEnabled; + struct ProjectCloneDownloadRoleListItem { + int roleCode; + bool allowed; + }; + projectCloneDownloadRoleListItem projectCloneDownloadRoleListItem; + std::vector projectCloneDownloadRoleList; + std::string adminSettingLanguage; + bool buildsEnabled; + std::string description; + bool issuesEnabled; + std::string avatar; + bool openCloneDownloadControl; + bool mergeRequestsEnabled; + std::string path; + std::string name; + bool checkEmail; + struct ProjectCloneDownloadMethodListItem { + std::string permissionCode; + bool allowed; + }; + projectCloneDownloadMethodListItem projectCloneDownloadMethodListItem; + std::vector projectCloneDownloadMethodList; + int visibilityLevel; + long id; + std::string defaultBranch; + bool snippetsEnabled; + }; + UpdateRepositoryRequest(); + ~UpdateRepositoryRequest(); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + long getRepositoryId() const; + void setRepositoryId(long repositoryId); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + body getBody() const; + void setBody(const body &body); + +private: + std::string organizationId_; + long repositoryId_; + std::string accessToken_; + body body_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEREPOSITORYREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateRepositoryResult.h b/devops/include/alibabacloud/devops/model/UpdateRepositoryResult.h new file mode 100644 index 000000000..ecfe5a78e --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateRepositoryResult.h @@ -0,0 +1,96 @@ +/* + * 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_DEVOPS_MODEL_UPDATEREPOSITORYRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEREPOSITORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateRepositoryResult : public ServiceResult + { + public: + struct Result + { + struct _Namespace + { + std::string path; + std::string description; + long ownerId; + std::string createdAt; + int visibilityLevel; + long id; + std::string updatedAt; + std::string avatar; + std::string name; + }; + std::string path; + std::string pathWithNamespace; + std::string defaultBranch; + std::string lastActivityAt; + std::string httpUrlToRepo; + bool issuesEnabled; + std::string description; + long creatorId; + bool wikiEnabled; + std::string createdAt; + std::string nameWithNamespace; + std::string webUrl; + _Namespace _namespace; + int visibilityLevel; + std::string name; + bool archived; + std::string sshUrlToRepo; + std::string avatarUrl; + bool snippetsEnabled; + bool buildsEnabled; + long id; + bool mergeRequestsEnabled; + }; + + + UpdateRepositoryResult(); + explicit UpdateRepositoryResult(const std::string &payload); + ~UpdateRepositoryResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEREPOSITORYRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateResourceMemberRequest.h b/devops/include/alibabacloud/devops/model/UpdateResourceMemberRequest.h new file mode 100644 index 000000000..ad21958a5 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateResourceMemberRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_UPDATERESOURCEMEMBERREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATERESOURCEMEMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateResourceMemberRequest : public RoaServiceRequest { +public: + UpdateResourceMemberRequest(); + ~UpdateResourceMemberRequest(); + long getResourceId() const; + void setResourceId(long resourceId); + std::string getRoleName() const; + void setRoleName(const std::string &roleName); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + +private: + long resourceId_; + std::string roleName_; + std::string resourceType_; + std::string organizationId_; + std::string accountId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATERESOURCEMEMBERREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateResourceMemberResult.h b/devops/include/alibabacloud/devops/model/UpdateResourceMemberResult.h new file mode 100644 index 000000000..119d38501 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateResourceMemberResult.h @@ -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_DEVOPS_MODEL_UPDATERESOURCEMEMBERRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATERESOURCEMEMBERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateResourceMemberResult : public ServiceResult + { + public: + + + UpdateResourceMemberResult(); + explicit UpdateResourceMemberResult(const std::string &payload); + ~UpdateResourceMemberResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATERESOURCEMEMBERRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateTestCaseRequest.h b/devops/include/alibabacloud/devops/model/UpdateTestCaseRequest.h new file mode 100644 index 000000000..583d2e6d0 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateTestCaseRequest.h @@ -0,0 +1,56 @@ +/* + * 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_DEVOPS_MODEL_UPDATETESTCASEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATETESTCASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateTestCaseRequest : public RoaServiceRequest { +public: + struct Body { + struct UpdateWorkitemPropertyRequestItem { + std::string fieldIdentifier; + std::string fieldValue; + }; + updateWorkitemPropertyRequestItem updateWorkitemPropertyRequestItem; + std::vector updateWorkitemPropertyRequest; + }; + UpdateTestCaseRequest(); + ~UpdateTestCaseRequest(); + std::string getTestcaseIdentifier() const; + void setTestcaseIdentifier(const std::string &testcaseIdentifier); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + std::string testcaseIdentifier_; + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATETESTCASEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateTestCaseResult.h b/devops/include/alibabacloud/devops/model/UpdateTestCaseResult.h new file mode 100644 index 000000000..5f0d86576 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateTestCaseResult.h @@ -0,0 +1,120 @@ +/* + * 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_DEVOPS_MODEL_UPDATETESTCASERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATETESTCASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateTestCaseResult : public ServiceResult + { + public: + struct Testcase + { + struct AssignedTo + { + std::string assignIdentifier; + std::string tbRoleId; + std::string name; + }; + struct Creator + { + std::string createIdentifier; + std::string name; + }; + struct Modifier + { + std::string modifyIdentifier; + std::string name; + }; + struct Directory + { + std::string childIdentifier; + std::string directoryIdentifier; + std::vector pathName; + std::string name; + }; + struct DetailInfo + { + struct Precondition + { + std::string preContent; + std::string preContentType; + std::string preIdentifier; + }; + struct StepContent + { + std::string stepIdentifier; + std::string stepContentType; + std::string stepContent; + }; + struct ExpectedResult + { + std::string expectIdentifier; + std::string expectContentType; + std::string expectContent; + }; + ExpectedResult expectedResult; + Precondition precondition; + std::string stepType; + StepContent stepContent; + }; + AssignedTo assignedTo; + std::string identifier; + std::string spaceIdentifier; + DetailInfo detailInfo; + std::string spaceType; + std::string categoryIdentifier; + Creator creator; + Modifier modifier; + std::string subject; + Directory directory; + }; + + + UpdateTestCaseResult(); + explicit UpdateTestCaseResult(const std::string &payload); + ~UpdateTestCaseResult(); + Testcase getTestcase()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Testcase testcase_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATETESTCASERESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateTestResultRequest.h b/devops/include/alibabacloud/devops/model/UpdateTestResultRequest.h new file mode 100644 index 000000000..80f573f1c --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateTestResultRequest.h @@ -0,0 +1,55 @@ +/* + * 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_DEVOPS_MODEL_UPDATETESTRESULTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATETESTRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateTestResultRequest : public RoaServiceRequest { +public: + struct Body { + std::string executor; + std::string status; + }; + UpdateTestResultRequest(); + ~UpdateTestResultRequest(); + std::string getTestcaseIdentifier() const; + void setTestcaseIdentifier(const std::string &testcaseIdentifier); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getTestPlanIdentifier() const; + void setTestPlanIdentifier(const std::string &testPlanIdentifier); + +private: + std::string testcaseIdentifier_; + body body_; + std::string organizationId_; + std::string testPlanIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATETESTRESULTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateTestResultResult.h b/devops/include/alibabacloud/devops/model/UpdateTestResultResult.h new file mode 100644 index 000000000..d2bf8ec6f --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateTestResultResult.h @@ -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_DEVOPS_MODEL_UPDATETESTRESULTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATETESTRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateTestResultResult : public ServiceResult + { + public: + + + UpdateTestResultResult(); + explicit UpdateTestResultResult(const std::string &payload); + ~UpdateTestResultResult(); + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATETESTRESULTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateVariableGroupRequest.h b/devops/include/alibabacloud/devops/model/UpdateVariableGroupRequest.h new file mode 100644 index 000000000..1762f52a2 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateVariableGroupRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_UPDATEVARIABLEGROUPREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEVARIABLEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateVariableGroupRequest : public RoaServiceRequest { +public: + UpdateVariableGroupRequest(); + ~UpdateVariableGroupRequest(); + std::string getVariables() const; + void setVariables(const std::string &variables); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getName() const; + void setName(const std::string &name); + long getId() const; + void setId(long id); + +private: + std::string variables_; + std::string description_; + std::string organizationId_; + std::string name_; + long id_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEVARIABLEGROUPREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateVariableGroupResult.h b/devops/include/alibabacloud/devops/model/UpdateVariableGroupResult.h new file mode 100644 index 000000000..14a8cd775 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateVariableGroupResult.h @@ -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_DEVOPS_MODEL_UPDATEVARIABLEGROUPRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEVARIABLEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateVariableGroupResult : public ServiceResult + { + public: + + + UpdateVariableGroupResult(); + explicit UpdateVariableGroupResult(const std::string &payload); + ~UpdateVariableGroupResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEVARIABLEGROUPRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateWorkItemRequest.h b/devops/include/alibabacloud/devops/model/UpdateWorkItemRequest.h new file mode 100644 index 000000000..a03d89b53 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateWorkItemRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_UPDATEWORKITEMREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateWorkItemRequest : public RoaServiceRequest { +public: + struct Body { + std::string propertyKey; + std::string identifier; + std::string propertyValue; + std::string fieldType; + }; + UpdateWorkItemRequest(); + ~UpdateWorkItemRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateWorkItemResult.h b/devops/include/alibabacloud/devops/model/UpdateWorkItemResult.h new file mode 100644 index 000000000..b17da5673 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateWorkItemResult.h @@ -0,0 +1,83 @@ +/* + * 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_DEVOPS_MODEL_UPDATEWORKITEMRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateWorkItemResult : public ServiceResult + { + public: + struct Workitem + { + std::string status; + std::string statusStageIdentifier; + std::string spaceName; + std::string categoryIdentifier; + long gmtModified; + std::string creator; + std::string document; + std::string parentIdentifier; + std::string subject; + std::string assignedTo; + long updateStatusAt; + std::string workitemTypeIdentifier; + long gmtCreate; + std::string identifier; + std::string serialNumber; + std::string spaceIdentifier; + std::string spaceType; + std::string logicalStatus; + std::string sprintIdentifier; + std::string modifier; + std::string statusIdentifier; + }; + + + UpdateWorkItemResult(); + explicit UpdateWorkItemResult(const std::string &payload); + ~UpdateWorkItemResult(); + Workitem getWorkitem()const; + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Workitem workitem_; + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateWorkitemCommentRequest.h b/devops/include/alibabacloud/devops/model/UpdateWorkitemCommentRequest.h new file mode 100644 index 000000000..149c030d1 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateWorkitemCommentRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DEVOPS_MODEL_UPDATEWORKITEMCOMMENTREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMCOMMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateWorkitemCommentRequest : public RoaServiceRequest { +public: + struct Body { + long commentId; + std::string formatType; + std::string workitemIdentifier; + std::string content; + }; + UpdateWorkitemCommentRequest(); + ~UpdateWorkitemCommentRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMCOMMENTREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateWorkitemCommentResult.h b/devops/include/alibabacloud/devops/model/UpdateWorkitemCommentResult.h new file mode 100644 index 000000000..5c814f33a --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateWorkitemCommentResult.h @@ -0,0 +1,82 @@ +/* + * 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_DEVOPS_MODEL_UPDATEWORKITEMCOMMENTRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMCOMMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateWorkitemCommentResult : public ServiceResult + { + public: + struct Comment + { + struct User + { + std::string account; + std::string identifier; + std::string displayName; + std::string realName; + std::string nickName; + std::string avatar; + }; + long parentId; + bool isTop; + User user; + long modifiedTime; + long topTime; + std::string content; + std::string targetIdentifier; + long createTime; + std::string targetType; + std::string id; + std::string formatType; + }; + + + UpdateWorkitemCommentResult(); + explicit UpdateWorkitemCommentResult(const std::string &payload); + ~UpdateWorkitemCommentResult(); + Comment getComment()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Comment comment_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMCOMMENTRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/UpdateWorkitemFieldRequest.h b/devops/include/alibabacloud/devops/model/UpdateWorkitemFieldRequest.h new file mode 100644 index 000000000..5a1befd80 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateWorkitemFieldRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DEVOPS_MODEL_UPDATEWORKITEMFIELDREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMFIELDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT UpdateWorkitemFieldRequest : public RoaServiceRequest { +public: + struct Body { + struct UpdateWorkitemPropertyRequestItem { + std::string fieldIdentifier; + std::string fieldValue; + }; + updateWorkitemPropertyRequestItem updateWorkitemPropertyRequestItem; + std::vector updateWorkitemPropertyRequest; + std::string workitemIdentifier; + }; + UpdateWorkitemFieldRequest(); + ~UpdateWorkitemFieldRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + +private: + body body_; + std::string organizationId_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMFIELDREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/UpdateWorkitemFieldResult.h b/devops/include/alibabacloud/devops/model/UpdateWorkitemFieldResult.h new file mode 100644 index 000000000..bad12fa26 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/UpdateWorkitemFieldResult.h @@ -0,0 +1,83 @@ +/* + * 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_DEVOPS_MODEL_UPDATEWORKITEMFIELDRESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMFIELDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT UpdateWorkitemFieldResult : public ServiceResult + { + public: + struct Workitem + { + std::string status; + std::string statusStageIdentifier; + std::string spaceName; + std::string categoryIdentifier; + long gmtModified; + std::string creator; + std::string document; + std::string parentIdentifier; + std::string subject; + std::string assignedTo; + long updateStatusAt; + std::string workitemTypeIdentifier; + long gmtCreate; + std::string identifier; + std::string serialNumber; + std::string spaceIdentifier; + std::string spaceType; + std::string logicalStatus; + std::string sprintIdentifier; + std::string modifier; + std::string statusIdentifier; + }; + + + UpdateWorkitemFieldResult(); + explicit UpdateWorkitemFieldResult(const std::string &payload); + ~UpdateWorkitemFieldResult(); + Workitem getWorkitem()const; + std::string getRequestId()const; + std::string getErrorMsg()const; + std::string getErrorCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Workitem workitem_; + std::string requestId_; + std::string errorMsg_; + std::string errorCode_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_UPDATEWORKITEMFIELDRESULT_H_ \ No newline at end of file diff --git a/devops/include/alibabacloud/devops/model/WorkitemAttachmentCreateRequest.h b/devops/include/alibabacloud/devops/model/WorkitemAttachmentCreateRequest.h new file mode 100644 index 000000000..0b977e8d3 --- /dev/null +++ b/devops/include/alibabacloud/devops/model/WorkitemAttachmentCreateRequest.h @@ -0,0 +1,52 @@ +/* + * 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_DEVOPS_MODEL_WORKITEMATTACHMENTCREATEREQUEST_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_WORKITEMATTACHMENTCREATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Devops { +namespace Model { +class ALIBABACLOUD_DEVOPS_EXPORT WorkitemAttachmentCreateRequest : public RoaServiceRequest { +public: + struct Body { + std::string originalFilename; + std::string fileKey; + }; + WorkitemAttachmentCreateRequest(); + ~WorkitemAttachmentCreateRequest(); + body getBody() const; + void setBody(const body &body); + std::string getOrganizationId() const; + void setOrganizationId(const std::string &organizationId); + std::string getWorkitemIdentifier() const; + void setWorkitemIdentifier(const std::string &workitemIdentifier); + +private: + body body_; + std::string organizationId_; + std::string workitemIdentifier_; +}; +} // namespace Model +} // namespace Devops +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DEVOPS_MODEL_WORKITEMATTACHMENTCREATEREQUEST_H_ diff --git a/devops/include/alibabacloud/devops/model/WorkitemAttachmentCreateResult.h b/devops/include/alibabacloud/devops/model/WorkitemAttachmentCreateResult.h new file mode 100644 index 000000000..4ba1524ba --- /dev/null +++ b/devops/include/alibabacloud/devops/model/WorkitemAttachmentCreateResult.h @@ -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_DEVOPS_MODEL_WORKITEMATTACHMENTCREATERESULT_H_ +#define ALIBABACLOUD_DEVOPS_MODEL_WORKITEMATTACHMENTCREATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Devops + { + namespace Model + { + class ALIBABACLOUD_DEVOPS_EXPORT WorkitemAttachmentCreateResult : public ServiceResult + { + public: + + + WorkitemAttachmentCreateResult(); + explicit WorkitemAttachmentCreateResult(const std::string &payload); + ~WorkitemAttachmentCreateResult(); + std::string getRequestId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + std::string errorCode_; + std::string errorMessage_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DEVOPS_MODEL_WORKITEMATTACHMENTCREATERESULT_H_ \ No newline at end of file diff --git a/devops/src/DevopsClient.cc b/devops/src/DevopsClient.cc new file mode 100644 index 000000000..9454d753c --- /dev/null +++ b/devops/src/DevopsClient.cc @@ -0,0 +1,8081 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +namespace +{ + const std::string SERVICE_NAME = "devops"; +} + +DevopsClient::DevopsClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +DevopsClient::DevopsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +DevopsClient::DevopsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +DevopsClient::~DevopsClient() +{} + +DevopsClient::AddGroupMemberOutcome DevopsClient::addGroupMember(const AddGroupMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddGroupMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddGroupMemberOutcome(AddGroupMemberResult(outcome.result())); + else + return AddGroupMemberOutcome(outcome.error()); +} + +void DevopsClient::addGroupMemberAsync(const AddGroupMemberRequest& request, const AddGroupMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addGroupMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::AddGroupMemberOutcomeCallable DevopsClient::addGroupMemberCallable(const AddGroupMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addGroupMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::AddPipelineRelationsOutcome DevopsClient::addPipelineRelations(const AddPipelineRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddPipelineRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddPipelineRelationsOutcome(AddPipelineRelationsResult(outcome.result())); + else + return AddPipelineRelationsOutcome(outcome.error()); +} + +void DevopsClient::addPipelineRelationsAsync(const AddPipelineRelationsRequest& request, const AddPipelineRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addPipelineRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::AddPipelineRelationsOutcomeCallable DevopsClient::addPipelineRelationsCallable(const AddPipelineRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addPipelineRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::AddRepositoryMemberOutcome DevopsClient::addRepositoryMember(const AddRepositoryMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddRepositoryMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddRepositoryMemberOutcome(AddRepositoryMemberResult(outcome.result())); + else + return AddRepositoryMemberOutcome(outcome.error()); +} + +void DevopsClient::addRepositoryMemberAsync(const AddRepositoryMemberRequest& request, const AddRepositoryMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addRepositoryMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::AddRepositoryMemberOutcomeCallable DevopsClient::addRepositoryMemberCallable(const AddRepositoryMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addRepositoryMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::AddWebhookOutcome DevopsClient::addWebhook(const AddWebhookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddWebhookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddWebhookOutcome(AddWebhookResult(outcome.result())); + else + return AddWebhookOutcome(outcome.error()); +} + +void DevopsClient::addWebhookAsync(const AddWebhookRequest& request, const AddWebhookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addWebhook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::AddWebhookOutcomeCallable DevopsClient::addWebhookCallable(const AddWebhookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addWebhook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CloseMergeRequestOutcome DevopsClient::closeMergeRequest(const CloseMergeRequestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloseMergeRequestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloseMergeRequestOutcome(CloseMergeRequestResult(outcome.result())); + else + return CloseMergeRequestOutcome(outcome.error()); +} + +void DevopsClient::closeMergeRequestAsync(const CloseMergeRequestRequest& request, const CloseMergeRequestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, closeMergeRequest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CloseMergeRequestOutcomeCallable DevopsClient::closeMergeRequestCallable(const CloseMergeRequestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->closeMergeRequest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateAppMembersOutcome DevopsClient::createAppMembers(const CreateAppMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAppMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAppMembersOutcome(CreateAppMembersResult(outcome.result())); + else + return CreateAppMembersOutcome(outcome.error()); +} + +void DevopsClient::createAppMembersAsync(const CreateAppMembersRequest& request, const CreateAppMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAppMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateAppMembersOutcomeCallable DevopsClient::createAppMembersCallable(const CreateAppMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAppMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateBranchOutcome DevopsClient::createBranch(const CreateBranchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBranchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBranchOutcome(CreateBranchResult(outcome.result())); + else + return CreateBranchOutcome(outcome.error()); +} + +void DevopsClient::createBranchAsync(const CreateBranchRequest& request, const CreateBranchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBranch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateBranchOutcomeCallable DevopsClient::createBranchCallable(const CreateBranchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBranch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateCheckRunOutcome DevopsClient::createCheckRun(const CreateCheckRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCheckRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCheckRunOutcome(CreateCheckRunResult(outcome.result())); + else + return CreateCheckRunOutcome(outcome.error()); +} + +void DevopsClient::createCheckRunAsync(const CreateCheckRunRequest& request, const CreateCheckRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCheckRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateCheckRunOutcomeCallable DevopsClient::createCheckRunCallable(const CreateCheckRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCheckRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateCommentOutcome DevopsClient::createComment(const CreateCommentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCommentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCommentOutcome(CreateCommentResult(outcome.result())); + else + return CreateCommentOutcome(outcome.error()); +} + +void DevopsClient::createCommentAsync(const CreateCommentRequest& request, const CreateCommentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createComment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateCommentOutcomeCallable DevopsClient::createCommentCallable(const CreateCommentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createComment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateCommitStatusOutcome DevopsClient::createCommitStatus(const CreateCommitStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCommitStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCommitStatusOutcome(CreateCommitStatusResult(outcome.result())); + else + return CreateCommitStatusOutcome(outcome.error()); +} + +void DevopsClient::createCommitStatusAsync(const CreateCommitStatusRequest& request, const CreateCommitStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCommitStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateCommitStatusOutcomeCallable DevopsClient::createCommitStatusCallable(const CreateCommitStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCommitStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateCommitWithMultipleFilesOutcome DevopsClient::createCommitWithMultipleFiles(const CreateCommitWithMultipleFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCommitWithMultipleFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCommitWithMultipleFilesOutcome(CreateCommitWithMultipleFilesResult(outcome.result())); + else + return CreateCommitWithMultipleFilesOutcome(outcome.error()); +} + +void DevopsClient::createCommitWithMultipleFilesAsync(const CreateCommitWithMultipleFilesRequest& request, const CreateCommitWithMultipleFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCommitWithMultipleFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateCommitWithMultipleFilesOutcomeCallable DevopsClient::createCommitWithMultipleFilesCallable(const CreateCommitWithMultipleFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCommitWithMultipleFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateDeployKeyOutcome DevopsClient::createDeployKey(const CreateDeployKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDeployKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDeployKeyOutcome(CreateDeployKeyResult(outcome.result())); + else + return CreateDeployKeyOutcome(outcome.error()); +} + +void DevopsClient::createDeployKeyAsync(const CreateDeployKeyRequest& request, const CreateDeployKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDeployKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateDeployKeyOutcomeCallable DevopsClient::createDeployKeyCallable(const CreateDeployKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDeployKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateFileOutcome DevopsClient::createFile(const CreateFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFileOutcome(CreateFileResult(outcome.result())); + else + return CreateFileOutcome(outcome.error()); +} + +void DevopsClient::createFileAsync(const CreateFileRequest& request, const CreateFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateFileOutcomeCallable DevopsClient::createFileCallable(const CreateFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateFlowTagOutcome DevopsClient::createFlowTag(const CreateFlowTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFlowTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFlowTagOutcome(CreateFlowTagResult(outcome.result())); + else + return CreateFlowTagOutcome(outcome.error()); +} + +void DevopsClient::createFlowTagAsync(const CreateFlowTagRequest& request, const CreateFlowTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFlowTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateFlowTagOutcomeCallable DevopsClient::createFlowTagCallable(const CreateFlowTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFlowTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateFlowTagGroupOutcome DevopsClient::createFlowTagGroup(const CreateFlowTagGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFlowTagGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFlowTagGroupOutcome(CreateFlowTagGroupResult(outcome.result())); + else + return CreateFlowTagGroupOutcome(outcome.error()); +} + +void DevopsClient::createFlowTagGroupAsync(const CreateFlowTagGroupRequest& request, const CreateFlowTagGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFlowTagGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateFlowTagGroupOutcomeCallable DevopsClient::createFlowTagGroupCallable(const CreateFlowTagGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFlowTagGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateHostGroupOutcome DevopsClient::createHostGroup(const CreateHostGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateHostGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateHostGroupOutcome(CreateHostGroupResult(outcome.result())); + else + return CreateHostGroupOutcome(outcome.error()); +} + +void DevopsClient::createHostGroupAsync(const CreateHostGroupRequest& request, const CreateHostGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createHostGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateHostGroupOutcomeCallable DevopsClient::createHostGroupCallable(const CreateHostGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createHostGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateMergeRequestOutcome DevopsClient::createMergeRequest(const CreateMergeRequestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMergeRequestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMergeRequestOutcome(CreateMergeRequestResult(outcome.result())); + else + return CreateMergeRequestOutcome(outcome.error()); +} + +void DevopsClient::createMergeRequestAsync(const CreateMergeRequestRequest& request, const CreateMergeRequestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMergeRequest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateMergeRequestOutcomeCallable DevopsClient::createMergeRequestCallable(const CreateMergeRequestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMergeRequest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateOAuthTokenOutcome DevopsClient::createOAuthToken(const CreateOAuthTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOAuthTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOAuthTokenOutcome(CreateOAuthTokenResult(outcome.result())); + else + return CreateOAuthTokenOutcome(outcome.error()); +} + +void DevopsClient::createOAuthTokenAsync(const CreateOAuthTokenRequest& request, const CreateOAuthTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOAuthToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateOAuthTokenOutcomeCallable DevopsClient::createOAuthTokenCallable(const CreateOAuthTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOAuthToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreatePipelineOutcome DevopsClient::createPipeline(const CreatePipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePipelineOutcome(CreatePipelineResult(outcome.result())); + else + return CreatePipelineOutcome(outcome.error()); +} + +void DevopsClient::createPipelineAsync(const CreatePipelineRequest& request, const CreatePipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreatePipelineOutcomeCallable DevopsClient::createPipelineCallable(const CreatePipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreatePipelineGroupOutcome DevopsClient::createPipelineGroup(const CreatePipelineGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePipelineGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePipelineGroupOutcome(CreatePipelineGroupResult(outcome.result())); + else + return CreatePipelineGroupOutcome(outcome.error()); +} + +void DevopsClient::createPipelineGroupAsync(const CreatePipelineGroupRequest& request, const CreatePipelineGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPipelineGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreatePipelineGroupOutcomeCallable DevopsClient::createPipelineGroupCallable(const CreatePipelineGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPipelineGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateProjectOutcome DevopsClient::createProject(const CreateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProjectOutcome(CreateProjectResult(outcome.result())); + else + return CreateProjectOutcome(outcome.error()); +} + +void DevopsClient::createProjectAsync(const CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateProjectOutcomeCallable DevopsClient::createProjectCallable(const CreateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateProjectLabelOutcome DevopsClient::createProjectLabel(const CreateProjectLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProjectLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProjectLabelOutcome(CreateProjectLabelResult(outcome.result())); + else + return CreateProjectLabelOutcome(outcome.error()); +} + +void DevopsClient::createProjectLabelAsync(const CreateProjectLabelRequest& request, const CreateProjectLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProjectLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateProjectLabelOutcomeCallable DevopsClient::createProjectLabelCallable(const CreateProjectLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProjectLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateProtectdBranchOutcome DevopsClient::createProtectdBranch(const CreateProtectdBranchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProtectdBranchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProtectdBranchOutcome(CreateProtectdBranchResult(outcome.result())); + else + return CreateProtectdBranchOutcome(outcome.error()); +} + +void DevopsClient::createProtectdBranchAsync(const CreateProtectdBranchRequest& request, const CreateProtectdBranchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProtectdBranch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateProtectdBranchOutcomeCallable DevopsClient::createProtectdBranchCallable(const CreateProtectdBranchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProtectdBranch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreatePushRuleOutcome DevopsClient::createPushRule(const CreatePushRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePushRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePushRuleOutcome(CreatePushRuleResult(outcome.result())); + else + return CreatePushRuleOutcome(outcome.error()); +} + +void DevopsClient::createPushRuleAsync(const CreatePushRuleRequest& request, const CreatePushRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPushRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreatePushRuleOutcomeCallable DevopsClient::createPushRuleCallable(const CreatePushRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPushRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateRepositoryOutcome DevopsClient::createRepository(const CreateRepositoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRepositoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRepositoryOutcome(CreateRepositoryResult(outcome.result())); + else + return CreateRepositoryOutcome(outcome.error()); +} + +void DevopsClient::createRepositoryAsync(const CreateRepositoryRequest& request, const CreateRepositoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRepository(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateRepositoryOutcomeCallable DevopsClient::createRepositoryCallable(const CreateRepositoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRepository(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateRepositoryGroupOutcome DevopsClient::createRepositoryGroup(const CreateRepositoryGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRepositoryGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRepositoryGroupOutcome(CreateRepositoryGroupResult(outcome.result())); + else + return CreateRepositoryGroupOutcome(outcome.error()); +} + +void DevopsClient::createRepositoryGroupAsync(const CreateRepositoryGroupRequest& request, const CreateRepositoryGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRepositoryGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateRepositoryGroupOutcomeCallable DevopsClient::createRepositoryGroupCallable(const CreateRepositoryGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRepositoryGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateResourceMemberOutcome DevopsClient::createResourceMember(const CreateResourceMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateResourceMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateResourceMemberOutcome(CreateResourceMemberResult(outcome.result())); + else + return CreateResourceMemberOutcome(outcome.error()); +} + +void DevopsClient::createResourceMemberAsync(const CreateResourceMemberRequest& request, const CreateResourceMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createResourceMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateResourceMemberOutcomeCallable DevopsClient::createResourceMemberCallable(const CreateResourceMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createResourceMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateServiceAuthOutcome DevopsClient::createServiceAuth(const CreateServiceAuthRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceAuthOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceAuthOutcome(CreateServiceAuthResult(outcome.result())); + else + return CreateServiceAuthOutcome(outcome.error()); +} + +void DevopsClient::createServiceAuthAsync(const CreateServiceAuthRequest& request, const CreateServiceAuthAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServiceAuth(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateServiceAuthOutcomeCallable DevopsClient::createServiceAuthCallable(const CreateServiceAuthRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServiceAuth(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateServiceConnectionOutcome DevopsClient::createServiceConnection(const CreateServiceConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceConnectionOutcome(CreateServiceConnectionResult(outcome.result())); + else + return CreateServiceConnectionOutcome(outcome.error()); +} + +void DevopsClient::createServiceConnectionAsync(const CreateServiceConnectionRequest& request, const CreateServiceConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServiceConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateServiceConnectionOutcomeCallable DevopsClient::createServiceConnectionCallable(const CreateServiceConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServiceConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateServiceCredentialOutcome DevopsClient::createServiceCredential(const CreateServiceCredentialRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateServiceCredentialOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateServiceCredentialOutcome(CreateServiceCredentialResult(outcome.result())); + else + return CreateServiceCredentialOutcome(outcome.error()); +} + +void DevopsClient::createServiceCredentialAsync(const CreateServiceCredentialRequest& request, const CreateServiceCredentialAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createServiceCredential(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateServiceCredentialOutcomeCallable DevopsClient::createServiceCredentialCallable(const CreateServiceCredentialRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createServiceCredential(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateSprintOutcome DevopsClient::createSprint(const CreateSprintRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSprintOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSprintOutcome(CreateSprintResult(outcome.result())); + else + return CreateSprintOutcome(outcome.error()); +} + +void DevopsClient::createSprintAsync(const CreateSprintRequest& request, const CreateSprintAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSprint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateSprintOutcomeCallable DevopsClient::createSprintCallable(const CreateSprintRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSprint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateSshKeyOutcome DevopsClient::createSshKey(const CreateSshKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSshKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSshKeyOutcome(CreateSshKeyResult(outcome.result())); + else + return CreateSshKeyOutcome(outcome.error()); +} + +void DevopsClient::createSshKeyAsync(const CreateSshKeyRequest& request, const CreateSshKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSshKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateSshKeyOutcomeCallable DevopsClient::createSshKeyCallable(const CreateSshKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSshKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateTagOutcome DevopsClient::createTag(const CreateTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTagOutcome(CreateTagResult(outcome.result())); + else + return CreateTagOutcome(outcome.error()); +} + +void DevopsClient::createTagAsync(const CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateTagOutcomeCallable DevopsClient::createTagCallable(const CreateTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateTestCaseOutcome DevopsClient::createTestCase(const CreateTestCaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTestCaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTestCaseOutcome(CreateTestCaseResult(outcome.result())); + else + return CreateTestCaseOutcome(outcome.error()); +} + +void DevopsClient::createTestCaseAsync(const CreateTestCaseRequest& request, const CreateTestCaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTestCase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateTestCaseOutcomeCallable DevopsClient::createTestCaseCallable(const CreateTestCaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTestCase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateUserKeyOutcome DevopsClient::createUserKey(const CreateUserKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateUserKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateUserKeyOutcome(CreateUserKeyResult(outcome.result())); + else + return CreateUserKeyOutcome(outcome.error()); +} + +void DevopsClient::createUserKeyAsync(const CreateUserKeyRequest& request, const CreateUserKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createUserKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateUserKeyOutcomeCallable DevopsClient::createUserKeyCallable(const CreateUserKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createUserKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateVariableGroupOutcome DevopsClient::createVariableGroup(const CreateVariableGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVariableGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVariableGroupOutcome(CreateVariableGroupResult(outcome.result())); + else + return CreateVariableGroupOutcome(outcome.error()); +} + +void DevopsClient::createVariableGroupAsync(const CreateVariableGroupRequest& request, const CreateVariableGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVariableGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateVariableGroupOutcomeCallable DevopsClient::createVariableGroupCallable(const CreateVariableGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVariableGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateWorkitemOutcome DevopsClient::createWorkitem(const CreateWorkitemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateWorkitemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateWorkitemOutcome(CreateWorkitemResult(outcome.result())); + else + return CreateWorkitemOutcome(outcome.error()); +} + +void DevopsClient::createWorkitemAsync(const CreateWorkitemRequest& request, const CreateWorkitemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createWorkitem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateWorkitemOutcomeCallable DevopsClient::createWorkitemCallable(const CreateWorkitemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createWorkitem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateWorkitemCommentOutcome DevopsClient::createWorkitemComment(const CreateWorkitemCommentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateWorkitemCommentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateWorkitemCommentOutcome(CreateWorkitemCommentResult(outcome.result())); + else + return CreateWorkitemCommentOutcome(outcome.error()); +} + +void DevopsClient::createWorkitemCommentAsync(const CreateWorkitemCommentRequest& request, const CreateWorkitemCommentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createWorkitemComment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateWorkitemCommentOutcomeCallable DevopsClient::createWorkitemCommentCallable(const CreateWorkitemCommentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createWorkitemComment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateWorkitemEstimateOutcome DevopsClient::createWorkitemEstimate(const CreateWorkitemEstimateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateWorkitemEstimateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateWorkitemEstimateOutcome(CreateWorkitemEstimateResult(outcome.result())); + else + return CreateWorkitemEstimateOutcome(outcome.error()); +} + +void DevopsClient::createWorkitemEstimateAsync(const CreateWorkitemEstimateRequest& request, const CreateWorkitemEstimateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createWorkitemEstimate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateWorkitemEstimateOutcomeCallable DevopsClient::createWorkitemEstimateCallable(const CreateWorkitemEstimateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createWorkitemEstimate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateWorkitemRecordOutcome DevopsClient::createWorkitemRecord(const CreateWorkitemRecordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateWorkitemRecordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateWorkitemRecordOutcome(CreateWorkitemRecordResult(outcome.result())); + else + return CreateWorkitemRecordOutcome(outcome.error()); +} + +void DevopsClient::createWorkitemRecordAsync(const CreateWorkitemRecordRequest& request, const CreateWorkitemRecordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createWorkitemRecord(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateWorkitemRecordOutcomeCallable DevopsClient::createWorkitemRecordCallable(const CreateWorkitemRecordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createWorkitemRecord(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateWorkitemV2Outcome DevopsClient::createWorkitemV2(const CreateWorkitemV2Request &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateWorkitemV2Outcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateWorkitemV2Outcome(CreateWorkitemV2Result(outcome.result())); + else + return CreateWorkitemV2Outcome(outcome.error()); +} + +void DevopsClient::createWorkitemV2Async(const CreateWorkitemV2Request& request, const CreateWorkitemV2AsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createWorkitemV2(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateWorkitemV2OutcomeCallable DevopsClient::createWorkitemV2Callable(const CreateWorkitemV2Request &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createWorkitemV2(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::CreateWorkspaceOutcome DevopsClient::createWorkspace(const CreateWorkspaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateWorkspaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateWorkspaceOutcome(CreateWorkspaceResult(outcome.result())); + else + return CreateWorkspaceOutcome(outcome.error()); +} + +void DevopsClient::createWorkspaceAsync(const CreateWorkspaceRequest& request, const CreateWorkspaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createWorkspace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::CreateWorkspaceOutcomeCallable DevopsClient::createWorkspaceCallable(const CreateWorkspaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createWorkspace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteAppMemberOutcome DevopsClient::deleteAppMember(const DeleteAppMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAppMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAppMemberOutcome(DeleteAppMemberResult(outcome.result())); + else + return DeleteAppMemberOutcome(outcome.error()); +} + +void DevopsClient::deleteAppMemberAsync(const DeleteAppMemberRequest& request, const DeleteAppMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAppMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteAppMemberOutcomeCallable DevopsClient::deleteAppMemberCallable(const DeleteAppMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAppMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteBranchOutcome DevopsClient::deleteBranch(const DeleteBranchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteBranchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteBranchOutcome(DeleteBranchResult(outcome.result())); + else + return DeleteBranchOutcome(outcome.error()); +} + +void DevopsClient::deleteBranchAsync(const DeleteBranchRequest& request, const DeleteBranchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteBranch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteBranchOutcomeCallable DevopsClient::deleteBranchCallable(const DeleteBranchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteBranch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteFileOutcome DevopsClient::deleteFile(const DeleteFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFileOutcome(DeleteFileResult(outcome.result())); + else + return DeleteFileOutcome(outcome.error()); +} + +void DevopsClient::deleteFileAsync(const DeleteFileRequest& request, const DeleteFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteFileOutcomeCallable DevopsClient::deleteFileCallable(const DeleteFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteFlowTagOutcome DevopsClient::deleteFlowTag(const DeleteFlowTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowTagOutcome(DeleteFlowTagResult(outcome.result())); + else + return DeleteFlowTagOutcome(outcome.error()); +} + +void DevopsClient::deleteFlowTagAsync(const DeleteFlowTagRequest& request, const DeleteFlowTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlowTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteFlowTagOutcomeCallable DevopsClient::deleteFlowTagCallable(const DeleteFlowTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlowTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteFlowTagGroupOutcome DevopsClient::deleteFlowTagGroup(const DeleteFlowTagGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFlowTagGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFlowTagGroupOutcome(DeleteFlowTagGroupResult(outcome.result())); + else + return DeleteFlowTagGroupOutcome(outcome.error()); +} + +void DevopsClient::deleteFlowTagGroupAsync(const DeleteFlowTagGroupRequest& request, const DeleteFlowTagGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFlowTagGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteFlowTagGroupOutcomeCallable DevopsClient::deleteFlowTagGroupCallable(const DeleteFlowTagGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFlowTagGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteGroupMemberOutcome DevopsClient::deleteGroupMember(const DeleteGroupMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGroupMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGroupMemberOutcome(DeleteGroupMemberResult(outcome.result())); + else + return DeleteGroupMemberOutcome(outcome.error()); +} + +void DevopsClient::deleteGroupMemberAsync(const DeleteGroupMemberRequest& request, const DeleteGroupMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGroupMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteGroupMemberOutcomeCallable DevopsClient::deleteGroupMemberCallable(const DeleteGroupMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGroupMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteHostGroupOutcome DevopsClient::deleteHostGroup(const DeleteHostGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteHostGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteHostGroupOutcome(DeleteHostGroupResult(outcome.result())); + else + return DeleteHostGroupOutcome(outcome.error()); +} + +void DevopsClient::deleteHostGroupAsync(const DeleteHostGroupRequest& request, const DeleteHostGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteHostGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteHostGroupOutcomeCallable DevopsClient::deleteHostGroupCallable(const DeleteHostGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteHostGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeletePipelineOutcome DevopsClient::deletePipeline(const DeletePipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePipelineOutcome(DeletePipelineResult(outcome.result())); + else + return DeletePipelineOutcome(outcome.error()); +} + +void DevopsClient::deletePipelineAsync(const DeletePipelineRequest& request, const DeletePipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeletePipelineOutcomeCallable DevopsClient::deletePipelineCallable(const DeletePipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeletePipelineGroupOutcome DevopsClient::deletePipelineGroup(const DeletePipelineGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePipelineGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePipelineGroupOutcome(DeletePipelineGroupResult(outcome.result())); + else + return DeletePipelineGroupOutcome(outcome.error()); +} + +void DevopsClient::deletePipelineGroupAsync(const DeletePipelineGroupRequest& request, const DeletePipelineGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePipelineGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeletePipelineGroupOutcomeCallable DevopsClient::deletePipelineGroupCallable(const DeletePipelineGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePipelineGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeletePipelineRelationsOutcome DevopsClient::deletePipelineRelations(const DeletePipelineRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePipelineRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePipelineRelationsOutcome(DeletePipelineRelationsResult(outcome.result())); + else + return DeletePipelineRelationsOutcome(outcome.error()); +} + +void DevopsClient::deletePipelineRelationsAsync(const DeletePipelineRelationsRequest& request, const DeletePipelineRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePipelineRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeletePipelineRelationsOutcomeCallable DevopsClient::deletePipelineRelationsCallable(const DeletePipelineRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePipelineRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteProjectOutcome DevopsClient::deleteProject(const DeleteProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectOutcome(DeleteProjectResult(outcome.result())); + else + return DeleteProjectOutcome(outcome.error()); +} + +void DevopsClient::deleteProjectAsync(const DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteProjectOutcomeCallable DevopsClient::deleteProjectCallable(const DeleteProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteProjectLabelOutcome DevopsClient::deleteProjectLabel(const DeleteProjectLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectLabelOutcome(DeleteProjectLabelResult(outcome.result())); + else + return DeleteProjectLabelOutcome(outcome.error()); +} + +void DevopsClient::deleteProjectLabelAsync(const DeleteProjectLabelRequest& request, const DeleteProjectLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProjectLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteProjectLabelOutcomeCallable DevopsClient::deleteProjectLabelCallable(const DeleteProjectLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProjectLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteProtectedBranchOutcome DevopsClient::deleteProtectedBranch(const DeleteProtectedBranchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProtectedBranchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProtectedBranchOutcome(DeleteProtectedBranchResult(outcome.result())); + else + return DeleteProtectedBranchOutcome(outcome.error()); +} + +void DevopsClient::deleteProtectedBranchAsync(const DeleteProtectedBranchRequest& request, const DeleteProtectedBranchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProtectedBranch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteProtectedBranchOutcomeCallable DevopsClient::deleteProtectedBranchCallable(const DeleteProtectedBranchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProtectedBranch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeletePushRuleOutcome DevopsClient::deletePushRule(const DeletePushRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePushRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePushRuleOutcome(DeletePushRuleResult(outcome.result())); + else + return DeletePushRuleOutcome(outcome.error()); +} + +void DevopsClient::deletePushRuleAsync(const DeletePushRuleRequest& request, const DeletePushRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePushRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeletePushRuleOutcomeCallable DevopsClient::deletePushRuleCallable(const DeletePushRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePushRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteRepositoryOutcome DevopsClient::deleteRepository(const DeleteRepositoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRepositoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRepositoryOutcome(DeleteRepositoryResult(outcome.result())); + else + return DeleteRepositoryOutcome(outcome.error()); +} + +void DevopsClient::deleteRepositoryAsync(const DeleteRepositoryRequest& request, const DeleteRepositoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRepository(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteRepositoryOutcomeCallable DevopsClient::deleteRepositoryCallable(const DeleteRepositoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRepository(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteRepositoryGroupOutcome DevopsClient::deleteRepositoryGroup(const DeleteRepositoryGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRepositoryGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRepositoryGroupOutcome(DeleteRepositoryGroupResult(outcome.result())); + else + return DeleteRepositoryGroupOutcome(outcome.error()); +} + +void DevopsClient::deleteRepositoryGroupAsync(const DeleteRepositoryGroupRequest& request, const DeleteRepositoryGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRepositoryGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteRepositoryGroupOutcomeCallable DevopsClient::deleteRepositoryGroupCallable(const DeleteRepositoryGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRepositoryGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteRepositoryMemberOutcome DevopsClient::deleteRepositoryMember(const DeleteRepositoryMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRepositoryMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRepositoryMemberOutcome(DeleteRepositoryMemberResult(outcome.result())); + else + return DeleteRepositoryMemberOutcome(outcome.error()); +} + +void DevopsClient::deleteRepositoryMemberAsync(const DeleteRepositoryMemberRequest& request, const DeleteRepositoryMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRepositoryMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteRepositoryMemberOutcomeCallable DevopsClient::deleteRepositoryMemberCallable(const DeleteRepositoryMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRepositoryMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteRepositoryWebhookOutcome DevopsClient::deleteRepositoryWebhook(const DeleteRepositoryWebhookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRepositoryWebhookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRepositoryWebhookOutcome(DeleteRepositoryWebhookResult(outcome.result())); + else + return DeleteRepositoryWebhookOutcome(outcome.error()); +} + +void DevopsClient::deleteRepositoryWebhookAsync(const DeleteRepositoryWebhookRequest& request, const DeleteRepositoryWebhookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRepositoryWebhook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteRepositoryWebhookOutcomeCallable DevopsClient::deleteRepositoryWebhookCallable(const DeleteRepositoryWebhookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRepositoryWebhook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteResourceMemberOutcome DevopsClient::deleteResourceMember(const DeleteResourceMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteResourceMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteResourceMemberOutcome(DeleteResourceMemberResult(outcome.result())); + else + return DeleteResourceMemberOutcome(outcome.error()); +} + +void DevopsClient::deleteResourceMemberAsync(const DeleteResourceMemberRequest& request, const DeleteResourceMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteResourceMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteResourceMemberOutcomeCallable DevopsClient::deleteResourceMemberCallable(const DeleteResourceMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteResourceMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteTagOutcome DevopsClient::deleteTag(const DeleteTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagOutcome(DeleteTagResult(outcome.result())); + else + return DeleteTagOutcome(outcome.error()); +} + +void DevopsClient::deleteTagAsync(const DeleteTagRequest& request, const DeleteTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteTagOutcomeCallable DevopsClient::deleteTagCallable(const DeleteTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteUserKeyOutcome DevopsClient::deleteUserKey(const DeleteUserKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteUserKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteUserKeyOutcome(DeleteUserKeyResult(outcome.result())); + else + return DeleteUserKeyOutcome(outcome.error()); +} + +void DevopsClient::deleteUserKeyAsync(const DeleteUserKeyRequest& request, const DeleteUserKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteUserKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteUserKeyOutcomeCallable DevopsClient::deleteUserKeyCallable(const DeleteUserKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteUserKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteVariableGroupOutcome DevopsClient::deleteVariableGroup(const DeleteVariableGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVariableGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVariableGroupOutcome(DeleteVariableGroupResult(outcome.result())); + else + return DeleteVariableGroupOutcome(outcome.error()); +} + +void DevopsClient::deleteVariableGroupAsync(const DeleteVariableGroupRequest& request, const DeleteVariableGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVariableGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteVariableGroupOutcomeCallable DevopsClient::deleteVariableGroupCallable(const DeleteVariableGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVariableGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteWorkitemOutcome DevopsClient::deleteWorkitem(const DeleteWorkitemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteWorkitemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteWorkitemOutcome(DeleteWorkitemResult(outcome.result())); + else + return DeleteWorkitemOutcome(outcome.error()); +} + +void DevopsClient::deleteWorkitemAsync(const DeleteWorkitemRequest& request, const DeleteWorkitemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteWorkitem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteWorkitemOutcomeCallable DevopsClient::deleteWorkitemCallable(const DeleteWorkitemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteWorkitem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteWorkitemAllCommentOutcome DevopsClient::deleteWorkitemAllComment(const DeleteWorkitemAllCommentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteWorkitemAllCommentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteWorkitemAllCommentOutcome(DeleteWorkitemAllCommentResult(outcome.result())); + else + return DeleteWorkitemAllCommentOutcome(outcome.error()); +} + +void DevopsClient::deleteWorkitemAllCommentAsync(const DeleteWorkitemAllCommentRequest& request, const DeleteWorkitemAllCommentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteWorkitemAllComment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteWorkitemAllCommentOutcomeCallable DevopsClient::deleteWorkitemAllCommentCallable(const DeleteWorkitemAllCommentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteWorkitemAllComment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::DeleteWorkitemCommentOutcome DevopsClient::deleteWorkitemComment(const DeleteWorkitemCommentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteWorkitemCommentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteWorkitemCommentOutcome(DeleteWorkitemCommentResult(outcome.result())); + else + return DeleteWorkitemCommentOutcome(outcome.error()); +} + +void DevopsClient::deleteWorkitemCommentAsync(const DeleteWorkitemCommentRequest& request, const DeleteWorkitemCommentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteWorkitemComment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::DeleteWorkitemCommentOutcomeCallable DevopsClient::deleteWorkitemCommentCallable(const DeleteWorkitemCommentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteWorkitemComment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::EnableDeployKeyOutcome DevopsClient::enableDeployKey(const EnableDeployKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableDeployKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableDeployKeyOutcome(EnableDeployKeyResult(outcome.result())); + else + return EnableDeployKeyOutcome(outcome.error()); +} + +void DevopsClient::enableDeployKeyAsync(const EnableDeployKeyRequest& request, const EnableDeployKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableDeployKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::EnableDeployKeyOutcomeCallable DevopsClient::enableDeployKeyCallable(const EnableDeployKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableDeployKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::FrozenWorkspaceOutcome DevopsClient::frozenWorkspace(const FrozenWorkspaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FrozenWorkspaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FrozenWorkspaceOutcome(FrozenWorkspaceResult(outcome.result())); + else + return FrozenWorkspaceOutcome(outcome.error()); +} + +void DevopsClient::frozenWorkspaceAsync(const FrozenWorkspaceRequest& request, const FrozenWorkspaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, frozenWorkspace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::FrozenWorkspaceOutcomeCallable DevopsClient::frozenWorkspaceCallable(const FrozenWorkspaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->frozenWorkspace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetApplicationOutcome DevopsClient::getApplication(const GetApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetApplicationOutcome(GetApplicationResult(outcome.result())); + else + return GetApplicationOutcome(outcome.error()); +} + +void DevopsClient::getApplicationAsync(const GetApplicationRequest& request, const GetApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetApplicationOutcomeCallable DevopsClient::getApplicationCallable(const GetApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetBranchInfoOutcome DevopsClient::getBranchInfo(const GetBranchInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBranchInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBranchInfoOutcome(GetBranchInfoResult(outcome.result())); + else + return GetBranchInfoOutcome(outcome.error()); +} + +void DevopsClient::getBranchInfoAsync(const GetBranchInfoRequest& request, const GetBranchInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBranchInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetBranchInfoOutcomeCallable DevopsClient::getBranchInfoCallable(const GetBranchInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBranchInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetCheckRunOutcome DevopsClient::getCheckRun(const GetCheckRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCheckRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCheckRunOutcome(GetCheckRunResult(outcome.result())); + else + return GetCheckRunOutcome(outcome.error()); +} + +void DevopsClient::getCheckRunAsync(const GetCheckRunRequest& request, const GetCheckRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCheckRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetCheckRunOutcomeCallable DevopsClient::getCheckRunCallable(const GetCheckRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCheckRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetCodeupOrganizationOutcome DevopsClient::getCodeupOrganization(const GetCodeupOrganizationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCodeupOrganizationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCodeupOrganizationOutcome(GetCodeupOrganizationResult(outcome.result())); + else + return GetCodeupOrganizationOutcome(outcome.error()); +} + +void DevopsClient::getCodeupOrganizationAsync(const GetCodeupOrganizationRequest& request, const GetCodeupOrganizationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCodeupOrganization(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetCodeupOrganizationOutcomeCallable DevopsClient::getCodeupOrganizationCallable(const GetCodeupOrganizationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCodeupOrganization(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetCompareDetailOutcome DevopsClient::getCompareDetail(const GetCompareDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCompareDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCompareDetailOutcome(GetCompareDetailResult(outcome.result())); + else + return GetCompareDetailOutcome(outcome.error()); +} + +void DevopsClient::getCompareDetailAsync(const GetCompareDetailRequest& request, const GetCompareDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCompareDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetCompareDetailOutcomeCallable DevopsClient::getCompareDetailCallable(const GetCompareDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCompareDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetCustomFieldOptionOutcome DevopsClient::getCustomFieldOption(const GetCustomFieldOptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCustomFieldOptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCustomFieldOptionOutcome(GetCustomFieldOptionResult(outcome.result())); + else + return GetCustomFieldOptionOutcome(outcome.error()); +} + +void DevopsClient::getCustomFieldOptionAsync(const GetCustomFieldOptionRequest& request, const GetCustomFieldOptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCustomFieldOption(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetCustomFieldOptionOutcomeCallable DevopsClient::getCustomFieldOptionCallable(const GetCustomFieldOptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCustomFieldOption(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetFileBlobsOutcome DevopsClient::getFileBlobs(const GetFileBlobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFileBlobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFileBlobsOutcome(GetFileBlobsResult(outcome.result())); + else + return GetFileBlobsOutcome(outcome.error()); +} + +void DevopsClient::getFileBlobsAsync(const GetFileBlobsRequest& request, const GetFileBlobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFileBlobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetFileBlobsOutcomeCallable DevopsClient::getFileBlobsCallable(const GetFileBlobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFileBlobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetFileLastCommitOutcome DevopsClient::getFileLastCommit(const GetFileLastCommitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFileLastCommitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFileLastCommitOutcome(GetFileLastCommitResult(outcome.result())); + else + return GetFileLastCommitOutcome(outcome.error()); +} + +void DevopsClient::getFileLastCommitAsync(const GetFileLastCommitRequest& request, const GetFileLastCommitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFileLastCommit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetFileLastCommitOutcomeCallable DevopsClient::getFileLastCommitCallable(const GetFileLastCommitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFileLastCommit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetFlowTagGroupOutcome DevopsClient::getFlowTagGroup(const GetFlowTagGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFlowTagGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFlowTagGroupOutcome(GetFlowTagGroupResult(outcome.result())); + else + return GetFlowTagGroupOutcome(outcome.error()); +} + +void DevopsClient::getFlowTagGroupAsync(const GetFlowTagGroupRequest& request, const GetFlowTagGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFlowTagGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetFlowTagGroupOutcomeCallable DevopsClient::getFlowTagGroupCallable(const GetFlowTagGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFlowTagGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetGroupByPathOutcome DevopsClient::getGroupByPath(const GetGroupByPathRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGroupByPathOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGroupByPathOutcome(GetGroupByPathResult(outcome.result())); + else + return GetGroupByPathOutcome(outcome.error()); +} + +void DevopsClient::getGroupByPathAsync(const GetGroupByPathRequest& request, const GetGroupByPathAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGroupByPath(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetGroupByPathOutcomeCallable DevopsClient::getGroupByPathCallable(const GetGroupByPathRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGroupByPath(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetGroupDetailOutcome DevopsClient::getGroupDetail(const GetGroupDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGroupDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGroupDetailOutcome(GetGroupDetailResult(outcome.result())); + else + return GetGroupDetailOutcome(outcome.error()); +} + +void DevopsClient::getGroupDetailAsync(const GetGroupDetailRequest& request, const GetGroupDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGroupDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetGroupDetailOutcomeCallable DevopsClient::getGroupDetailCallable(const GetGroupDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGroupDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetHostGroupOutcome DevopsClient::getHostGroup(const GetHostGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHostGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHostGroupOutcome(GetHostGroupResult(outcome.result())); + else + return GetHostGroupOutcome(outcome.error()); +} + +void DevopsClient::getHostGroupAsync(const GetHostGroupRequest& request, const GetHostGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHostGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetHostGroupOutcomeCallable DevopsClient::getHostGroupCallable(const GetHostGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHostGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetMergeRequestOutcome DevopsClient::getMergeRequest(const GetMergeRequestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMergeRequestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMergeRequestOutcome(GetMergeRequestResult(outcome.result())); + else + return GetMergeRequestOutcome(outcome.error()); +} + +void DevopsClient::getMergeRequestAsync(const GetMergeRequestRequest& request, const GetMergeRequestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMergeRequest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetMergeRequestOutcomeCallable DevopsClient::getMergeRequestCallable(const GetMergeRequestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMergeRequest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetMergeRequestChangeTreeOutcome DevopsClient::getMergeRequestChangeTree(const GetMergeRequestChangeTreeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMergeRequestChangeTreeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMergeRequestChangeTreeOutcome(GetMergeRequestChangeTreeResult(outcome.result())); + else + return GetMergeRequestChangeTreeOutcome(outcome.error()); +} + +void DevopsClient::getMergeRequestChangeTreeAsync(const GetMergeRequestChangeTreeRequest& request, const GetMergeRequestChangeTreeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMergeRequestChangeTree(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetMergeRequestChangeTreeOutcomeCallable DevopsClient::getMergeRequestChangeTreeCallable(const GetMergeRequestChangeTreeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMergeRequestChangeTree(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetOrganizationMemberOutcome DevopsClient::getOrganizationMember(const GetOrganizationMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOrganizationMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOrganizationMemberOutcome(GetOrganizationMemberResult(outcome.result())); + else + return GetOrganizationMemberOutcome(outcome.error()); +} + +void DevopsClient::getOrganizationMemberAsync(const GetOrganizationMemberRequest& request, const GetOrganizationMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOrganizationMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetOrganizationMemberOutcomeCallable DevopsClient::getOrganizationMemberCallable(const GetOrganizationMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOrganizationMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetPipelineOutcome DevopsClient::getPipeline(const GetPipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineOutcome(GetPipelineResult(outcome.result())); + else + return GetPipelineOutcome(outcome.error()); +} + +void DevopsClient::getPipelineAsync(const GetPipelineRequest& request, const GetPipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetPipelineOutcomeCallable DevopsClient::getPipelineCallable(const GetPipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetPipelineArtifactUrlOutcome DevopsClient::getPipelineArtifactUrl(const GetPipelineArtifactUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineArtifactUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineArtifactUrlOutcome(GetPipelineArtifactUrlResult(outcome.result())); + else + return GetPipelineArtifactUrlOutcome(outcome.error()); +} + +void DevopsClient::getPipelineArtifactUrlAsync(const GetPipelineArtifactUrlRequest& request, const GetPipelineArtifactUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineArtifactUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetPipelineArtifactUrlOutcomeCallable DevopsClient::getPipelineArtifactUrlCallable(const GetPipelineArtifactUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineArtifactUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetPipelineEmasArtifactUrlOutcome DevopsClient::getPipelineEmasArtifactUrl(const GetPipelineEmasArtifactUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineEmasArtifactUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineEmasArtifactUrlOutcome(GetPipelineEmasArtifactUrlResult(outcome.result())); + else + return GetPipelineEmasArtifactUrlOutcome(outcome.error()); +} + +void DevopsClient::getPipelineEmasArtifactUrlAsync(const GetPipelineEmasArtifactUrlRequest& request, const GetPipelineEmasArtifactUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineEmasArtifactUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetPipelineEmasArtifactUrlOutcomeCallable DevopsClient::getPipelineEmasArtifactUrlCallable(const GetPipelineEmasArtifactUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineEmasArtifactUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetPipelineGroupOutcome DevopsClient::getPipelineGroup(const GetPipelineGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineGroupOutcome(GetPipelineGroupResult(outcome.result())); + else + return GetPipelineGroupOutcome(outcome.error()); +} + +void DevopsClient::getPipelineGroupAsync(const GetPipelineGroupRequest& request, const GetPipelineGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetPipelineGroupOutcomeCallable DevopsClient::getPipelineGroupCallable(const GetPipelineGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetPipelineRunOutcome DevopsClient::getPipelineRun(const GetPipelineRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineRunOutcome(GetPipelineRunResult(outcome.result())); + else + return GetPipelineRunOutcome(outcome.error()); +} + +void DevopsClient::getPipelineRunAsync(const GetPipelineRunRequest& request, const GetPipelineRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetPipelineRunOutcomeCallable DevopsClient::getPipelineRunCallable(const GetPipelineRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetPipelineScanReportUrlOutcome DevopsClient::getPipelineScanReportUrl(const GetPipelineScanReportUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPipelineScanReportUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPipelineScanReportUrlOutcome(GetPipelineScanReportUrlResult(outcome.result())); + else + return GetPipelineScanReportUrlOutcome(outcome.error()); +} + +void DevopsClient::getPipelineScanReportUrlAsync(const GetPipelineScanReportUrlRequest& request, const GetPipelineScanReportUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPipelineScanReportUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetPipelineScanReportUrlOutcomeCallable DevopsClient::getPipelineScanReportUrlCallable(const GetPipelineScanReportUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPipelineScanReportUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetProjectInfoOutcome DevopsClient::getProjectInfo(const GetProjectInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProjectInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProjectInfoOutcome(GetProjectInfoResult(outcome.result())); + else + return GetProjectInfoOutcome(outcome.error()); +} + +void DevopsClient::getProjectInfoAsync(const GetProjectInfoRequest& request, const GetProjectInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProjectInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetProjectInfoOutcomeCallable DevopsClient::getProjectInfoCallable(const GetProjectInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProjectInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetProjectMemberOutcome DevopsClient::getProjectMember(const GetProjectMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProjectMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProjectMemberOutcome(GetProjectMemberResult(outcome.result())); + else + return GetProjectMemberOutcome(outcome.error()); +} + +void DevopsClient::getProjectMemberAsync(const GetProjectMemberRequest& request, const GetProjectMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProjectMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetProjectMemberOutcomeCallable DevopsClient::getProjectMemberCallable(const GetProjectMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProjectMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetPushRuleOutcome DevopsClient::getPushRule(const GetPushRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPushRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPushRuleOutcome(GetPushRuleResult(outcome.result())); + else + return GetPushRuleOutcome(outcome.error()); +} + +void DevopsClient::getPushRuleAsync(const GetPushRuleRequest& request, const GetPushRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPushRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetPushRuleOutcomeCallable DevopsClient::getPushRuleCallable(const GetPushRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPushRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetRepositoryOutcome DevopsClient::getRepository(const GetRepositoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRepositoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRepositoryOutcome(GetRepositoryResult(outcome.result())); + else + return GetRepositoryOutcome(outcome.error()); +} + +void DevopsClient::getRepositoryAsync(const GetRepositoryRequest& request, const GetRepositoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRepository(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetRepositoryOutcomeCallable DevopsClient::getRepositoryCallable(const GetRepositoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRepository(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetRepositoryCommitOutcome DevopsClient::getRepositoryCommit(const GetRepositoryCommitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRepositoryCommitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRepositoryCommitOutcome(GetRepositoryCommitResult(outcome.result())); + else + return GetRepositoryCommitOutcome(outcome.error()); +} + +void DevopsClient::getRepositoryCommitAsync(const GetRepositoryCommitRequest& request, const GetRepositoryCommitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRepositoryCommit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetRepositoryCommitOutcomeCallable DevopsClient::getRepositoryCommitCallable(const GetRepositoryCommitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRepositoryCommit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetRepositoryTagOutcome DevopsClient::getRepositoryTag(const GetRepositoryTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRepositoryTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRepositoryTagOutcome(GetRepositoryTagResult(outcome.result())); + else + return GetRepositoryTagOutcome(outcome.error()); +} + +void DevopsClient::getRepositoryTagAsync(const GetRepositoryTagRequest& request, const GetRepositoryTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getRepositoryTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetRepositoryTagOutcomeCallable DevopsClient::getRepositoryTagCallable(const GetRepositoryTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getRepositoryTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetSearchCodePreviewOutcome DevopsClient::getSearchCodePreview(const GetSearchCodePreviewRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSearchCodePreviewOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSearchCodePreviewOutcome(GetSearchCodePreviewResult(outcome.result())); + else + return GetSearchCodePreviewOutcome(outcome.error()); +} + +void DevopsClient::getSearchCodePreviewAsync(const GetSearchCodePreviewRequest& request, const GetSearchCodePreviewAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSearchCodePreview(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetSearchCodePreviewOutcomeCallable DevopsClient::getSearchCodePreviewCallable(const GetSearchCodePreviewRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSearchCodePreview(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetSprintInfoOutcome DevopsClient::getSprintInfo(const GetSprintInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSprintInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSprintInfoOutcome(GetSprintInfoResult(outcome.result())); + else + return GetSprintInfoOutcome(outcome.error()); +} + +void DevopsClient::getSprintInfoAsync(const GetSprintInfoRequest& request, const GetSprintInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSprintInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetSprintInfoOutcomeCallable DevopsClient::getSprintInfoCallable(const GetSprintInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSprintInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetTestResultListOutcome DevopsClient::getTestResultList(const GetTestResultListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTestResultListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTestResultListOutcome(GetTestResultListResult(outcome.result())); + else + return GetTestResultListOutcome(outcome.error()); +} + +void DevopsClient::getTestResultListAsync(const GetTestResultListRequest& request, const GetTestResultListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTestResultList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetTestResultListOutcomeCallable DevopsClient::getTestResultListCallable(const GetTestResultListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTestResultList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetTestcaseListOutcome DevopsClient::getTestcaseList(const GetTestcaseListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTestcaseListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTestcaseListOutcome(GetTestcaseListResult(outcome.result())); + else + return GetTestcaseListOutcome(outcome.error()); +} + +void DevopsClient::getTestcaseListAsync(const GetTestcaseListRequest& request, const GetTestcaseListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTestcaseList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetTestcaseListOutcomeCallable DevopsClient::getTestcaseListCallable(const GetTestcaseListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTestcaseList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetUserInfoOutcome DevopsClient::getUserInfo(const GetUserInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserInfoOutcome(GetUserInfoResult(outcome.result())); + else + return GetUserInfoOutcome(outcome.error()); +} + +void DevopsClient::getUserInfoAsync(const GetUserInfoRequest& request, const GetUserInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetUserInfoOutcomeCallable DevopsClient::getUserInfoCallable(const GetUserInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetVMDeployOrderOutcome DevopsClient::getVMDeployOrder(const GetVMDeployOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVMDeployOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVMDeployOrderOutcome(GetVMDeployOrderResult(outcome.result())); + else + return GetVMDeployOrderOutcome(outcome.error()); +} + +void DevopsClient::getVMDeployOrderAsync(const GetVMDeployOrderRequest& request, const GetVMDeployOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVMDeployOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetVMDeployOrderOutcomeCallable DevopsClient::getVMDeployOrderCallable(const GetVMDeployOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVMDeployOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetVariableGroupOutcome DevopsClient::getVariableGroup(const GetVariableGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVariableGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVariableGroupOutcome(GetVariableGroupResult(outcome.result())); + else + return GetVariableGroupOutcome(outcome.error()); +} + +void DevopsClient::getVariableGroupAsync(const GetVariableGroupRequest& request, const GetVariableGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVariableGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetVariableGroupOutcomeCallable DevopsClient::getVariableGroupCallable(const GetVariableGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVariableGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetWorkItemActivityOutcome DevopsClient::getWorkItemActivity(const GetWorkItemActivityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkItemActivityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkItemActivityOutcome(GetWorkItemActivityResult(outcome.result())); + else + return GetWorkItemActivityOutcome(outcome.error()); +} + +void DevopsClient::getWorkItemActivityAsync(const GetWorkItemActivityRequest& request, const GetWorkItemActivityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkItemActivity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetWorkItemActivityOutcomeCallable DevopsClient::getWorkItemActivityCallable(const GetWorkItemActivityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkItemActivity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetWorkItemInfoOutcome DevopsClient::getWorkItemInfo(const GetWorkItemInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkItemInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkItemInfoOutcome(GetWorkItemInfoResult(outcome.result())); + else + return GetWorkItemInfoOutcome(outcome.error()); +} + +void DevopsClient::getWorkItemInfoAsync(const GetWorkItemInfoRequest& request, const GetWorkItemInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkItemInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetWorkItemInfoOutcomeCallable DevopsClient::getWorkItemInfoCallable(const GetWorkItemInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkItemInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetWorkItemWorkFlowInfoOutcome DevopsClient::getWorkItemWorkFlowInfo(const GetWorkItemWorkFlowInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkItemWorkFlowInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkItemWorkFlowInfoOutcome(GetWorkItemWorkFlowInfoResult(outcome.result())); + else + return GetWorkItemWorkFlowInfoOutcome(outcome.error()); +} + +void DevopsClient::getWorkItemWorkFlowInfoAsync(const GetWorkItemWorkFlowInfoRequest& request, const GetWorkItemWorkFlowInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkItemWorkFlowInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetWorkItemWorkFlowInfoOutcomeCallable DevopsClient::getWorkItemWorkFlowInfoCallable(const GetWorkItemWorkFlowInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkItemWorkFlowInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetWorkitemAttachmentCreatemetaOutcome DevopsClient::getWorkitemAttachmentCreatemeta(const GetWorkitemAttachmentCreatemetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkitemAttachmentCreatemetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkitemAttachmentCreatemetaOutcome(GetWorkitemAttachmentCreatemetaResult(outcome.result())); + else + return GetWorkitemAttachmentCreatemetaOutcome(outcome.error()); +} + +void DevopsClient::getWorkitemAttachmentCreatemetaAsync(const GetWorkitemAttachmentCreatemetaRequest& request, const GetWorkitemAttachmentCreatemetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkitemAttachmentCreatemeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetWorkitemAttachmentCreatemetaOutcomeCallable DevopsClient::getWorkitemAttachmentCreatemetaCallable(const GetWorkitemAttachmentCreatemetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkitemAttachmentCreatemeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetWorkitemCommentListOutcome DevopsClient::getWorkitemCommentList(const GetWorkitemCommentListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkitemCommentListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkitemCommentListOutcome(GetWorkitemCommentListResult(outcome.result())); + else + return GetWorkitemCommentListOutcome(outcome.error()); +} + +void DevopsClient::getWorkitemCommentListAsync(const GetWorkitemCommentListRequest& request, const GetWorkitemCommentListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkitemCommentList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetWorkitemCommentListOutcomeCallable DevopsClient::getWorkitemCommentListCallable(const GetWorkitemCommentListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkitemCommentList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetWorkitemFileOutcome DevopsClient::getWorkitemFile(const GetWorkitemFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkitemFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkitemFileOutcome(GetWorkitemFileResult(outcome.result())); + else + return GetWorkitemFileOutcome(outcome.error()); +} + +void DevopsClient::getWorkitemFileAsync(const GetWorkitemFileRequest& request, const GetWorkitemFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkitemFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetWorkitemFileOutcomeCallable DevopsClient::getWorkitemFileCallable(const GetWorkitemFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkitemFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetWorkitemRelationsOutcome DevopsClient::getWorkitemRelations(const GetWorkitemRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkitemRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkitemRelationsOutcome(GetWorkitemRelationsResult(outcome.result())); + else + return GetWorkitemRelationsOutcome(outcome.error()); +} + +void DevopsClient::getWorkitemRelationsAsync(const GetWorkitemRelationsRequest& request, const GetWorkitemRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkitemRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetWorkitemRelationsOutcomeCallable DevopsClient::getWorkitemRelationsCallable(const GetWorkitemRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkitemRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetWorkitemTimeTypeListOutcome DevopsClient::getWorkitemTimeTypeList(const GetWorkitemTimeTypeListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkitemTimeTypeListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkitemTimeTypeListOutcome(GetWorkitemTimeTypeListResult(outcome.result())); + else + return GetWorkitemTimeTypeListOutcome(outcome.error()); +} + +void DevopsClient::getWorkitemTimeTypeListAsync(const GetWorkitemTimeTypeListRequest& request, const GetWorkitemTimeTypeListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkitemTimeTypeList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetWorkitemTimeTypeListOutcomeCallable DevopsClient::getWorkitemTimeTypeListCallable(const GetWorkitemTimeTypeListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkitemTimeTypeList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::GetWorkspaceOutcome DevopsClient::getWorkspace(const GetWorkspaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetWorkspaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetWorkspaceOutcome(GetWorkspaceResult(outcome.result())); + else + return GetWorkspaceOutcome(outcome.error()); +} + +void DevopsClient::getWorkspaceAsync(const GetWorkspaceRequest& request, const GetWorkspaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getWorkspace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::GetWorkspaceOutcomeCallable DevopsClient::getWorkspaceCallable(const GetWorkspaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getWorkspace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::JoinPipelineGroupOutcome DevopsClient::joinPipelineGroup(const JoinPipelineGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return JoinPipelineGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return JoinPipelineGroupOutcome(JoinPipelineGroupResult(outcome.result())); + else + return JoinPipelineGroupOutcome(outcome.error()); +} + +void DevopsClient::joinPipelineGroupAsync(const JoinPipelineGroupRequest& request, const JoinPipelineGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, joinPipelineGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::JoinPipelineGroupOutcomeCallable DevopsClient::joinPipelineGroupCallable(const JoinPipelineGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->joinPipelineGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::LinkMergeRequestLabelOutcome DevopsClient::linkMergeRequestLabel(const LinkMergeRequestLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LinkMergeRequestLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LinkMergeRequestLabelOutcome(LinkMergeRequestLabelResult(outcome.result())); + else + return LinkMergeRequestLabelOutcome(outcome.error()); +} + +void DevopsClient::linkMergeRequestLabelAsync(const LinkMergeRequestLabelRequest& request, const LinkMergeRequestLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, linkMergeRequestLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::LinkMergeRequestLabelOutcomeCallable DevopsClient::linkMergeRequestLabelCallable(const LinkMergeRequestLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->linkMergeRequestLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListApplicationMembersOutcome DevopsClient::listApplicationMembers(const ListApplicationMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApplicationMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApplicationMembersOutcome(ListApplicationMembersResult(outcome.result())); + else + return ListApplicationMembersOutcome(outcome.error()); +} + +void DevopsClient::listApplicationMembersAsync(const ListApplicationMembersRequest& request, const ListApplicationMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApplicationMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListApplicationMembersOutcomeCallable DevopsClient::listApplicationMembersCallable(const ListApplicationMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApplicationMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListApplicationsOutcome DevopsClient::listApplications(const ListApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListApplicationsOutcome(ListApplicationsResult(outcome.result())); + else + return ListApplicationsOutcome(outcome.error()); +} + +void DevopsClient::listApplicationsAsync(const ListApplicationsRequest& request, const ListApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListApplicationsOutcomeCallable DevopsClient::listApplicationsCallable(const ListApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListCheckRunsOutcome DevopsClient::listCheckRuns(const ListCheckRunsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCheckRunsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCheckRunsOutcome(ListCheckRunsResult(outcome.result())); + else + return ListCheckRunsOutcome(outcome.error()); +} + +void DevopsClient::listCheckRunsAsync(const ListCheckRunsRequest& request, const ListCheckRunsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCheckRuns(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListCheckRunsOutcomeCallable DevopsClient::listCheckRunsCallable(const ListCheckRunsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCheckRuns(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListCommitStatusesOutcome DevopsClient::listCommitStatuses(const ListCommitStatusesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCommitStatusesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCommitStatusesOutcome(ListCommitStatusesResult(outcome.result())); + else + return ListCommitStatusesOutcome(outcome.error()); +} + +void DevopsClient::listCommitStatusesAsync(const ListCommitStatusesRequest& request, const ListCommitStatusesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCommitStatuses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListCommitStatusesOutcomeCallable DevopsClient::listCommitStatusesCallable(const ListCommitStatusesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCommitStatuses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListFlowTagGroupsOutcome DevopsClient::listFlowTagGroups(const ListFlowTagGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFlowTagGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFlowTagGroupsOutcome(ListFlowTagGroupsResult(outcome.result())); + else + return ListFlowTagGroupsOutcome(outcome.error()); +} + +void DevopsClient::listFlowTagGroupsAsync(const ListFlowTagGroupsRequest& request, const ListFlowTagGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFlowTagGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListFlowTagGroupsOutcomeCallable DevopsClient::listFlowTagGroupsCallable(const ListFlowTagGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFlowTagGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListGroupMemberOutcome DevopsClient::listGroupMember(const ListGroupMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGroupMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGroupMemberOutcome(ListGroupMemberResult(outcome.result())); + else + return ListGroupMemberOutcome(outcome.error()); +} + +void DevopsClient::listGroupMemberAsync(const ListGroupMemberRequest& request, const ListGroupMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGroupMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListGroupMemberOutcomeCallable DevopsClient::listGroupMemberCallable(const ListGroupMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGroupMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListGroupRepositoriesOutcome DevopsClient::listGroupRepositories(const ListGroupRepositoriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGroupRepositoriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGroupRepositoriesOutcome(ListGroupRepositoriesResult(outcome.result())); + else + return ListGroupRepositoriesOutcome(outcome.error()); +} + +void DevopsClient::listGroupRepositoriesAsync(const ListGroupRepositoriesRequest& request, const ListGroupRepositoriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGroupRepositories(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListGroupRepositoriesOutcomeCallable DevopsClient::listGroupRepositoriesCallable(const ListGroupRepositoriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGroupRepositories(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListHostGroupsOutcome DevopsClient::listHostGroups(const ListHostGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListHostGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListHostGroupsOutcome(ListHostGroupsResult(outcome.result())); + else + return ListHostGroupsOutcome(outcome.error()); +} + +void DevopsClient::listHostGroupsAsync(const ListHostGroupsRequest& request, const ListHostGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listHostGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListHostGroupsOutcomeCallable DevopsClient::listHostGroupsCallable(const ListHostGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listHostGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListJoinedOrganizationsOutcome DevopsClient::listJoinedOrganizations(const ListJoinedOrganizationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJoinedOrganizationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJoinedOrganizationsOutcome(ListJoinedOrganizationsResult(outcome.result())); + else + return ListJoinedOrganizationsOutcome(outcome.error()); +} + +void DevopsClient::listJoinedOrganizationsAsync(const ListJoinedOrganizationsRequest& request, const ListJoinedOrganizationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJoinedOrganizations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListJoinedOrganizationsOutcomeCallable DevopsClient::listJoinedOrganizationsCallable(const ListJoinedOrganizationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJoinedOrganizations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListMergeRequestCommentsOutcome DevopsClient::listMergeRequestComments(const ListMergeRequestCommentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMergeRequestCommentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMergeRequestCommentsOutcome(ListMergeRequestCommentsResult(outcome.result())); + else + return ListMergeRequestCommentsOutcome(outcome.error()); +} + +void DevopsClient::listMergeRequestCommentsAsync(const ListMergeRequestCommentsRequest& request, const ListMergeRequestCommentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMergeRequestComments(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListMergeRequestCommentsOutcomeCallable DevopsClient::listMergeRequestCommentsCallable(const ListMergeRequestCommentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMergeRequestComments(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListMergeRequestFilesReadsOutcome DevopsClient::listMergeRequestFilesReads(const ListMergeRequestFilesReadsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMergeRequestFilesReadsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMergeRequestFilesReadsOutcome(ListMergeRequestFilesReadsResult(outcome.result())); + else + return ListMergeRequestFilesReadsOutcome(outcome.error()); +} + +void DevopsClient::listMergeRequestFilesReadsAsync(const ListMergeRequestFilesReadsRequest& request, const ListMergeRequestFilesReadsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMergeRequestFilesReads(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListMergeRequestFilesReadsOutcomeCallable DevopsClient::listMergeRequestFilesReadsCallable(const ListMergeRequestFilesReadsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMergeRequestFilesReads(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListMergeRequestLabelsOutcome DevopsClient::listMergeRequestLabels(const ListMergeRequestLabelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMergeRequestLabelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMergeRequestLabelsOutcome(ListMergeRequestLabelsResult(outcome.result())); + else + return ListMergeRequestLabelsOutcome(outcome.error()); +} + +void DevopsClient::listMergeRequestLabelsAsync(const ListMergeRequestLabelsRequest& request, const ListMergeRequestLabelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMergeRequestLabels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListMergeRequestLabelsOutcomeCallable DevopsClient::listMergeRequestLabelsCallable(const ListMergeRequestLabelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMergeRequestLabels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListMergeRequestPatchSetsOutcome DevopsClient::listMergeRequestPatchSets(const ListMergeRequestPatchSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMergeRequestPatchSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMergeRequestPatchSetsOutcome(ListMergeRequestPatchSetsResult(outcome.result())); + else + return ListMergeRequestPatchSetsOutcome(outcome.error()); +} + +void DevopsClient::listMergeRequestPatchSetsAsync(const ListMergeRequestPatchSetsRequest& request, const ListMergeRequestPatchSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMergeRequestPatchSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListMergeRequestPatchSetsOutcomeCallable DevopsClient::listMergeRequestPatchSetsCallable(const ListMergeRequestPatchSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMergeRequestPatchSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListMergeRequestsOutcome DevopsClient::listMergeRequests(const ListMergeRequestsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMergeRequestsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMergeRequestsOutcome(ListMergeRequestsResult(outcome.result())); + else + return ListMergeRequestsOutcome(outcome.error()); +} + +void DevopsClient::listMergeRequestsAsync(const ListMergeRequestsRequest& request, const ListMergeRequestsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMergeRequests(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListMergeRequestsOutcomeCallable DevopsClient::listMergeRequestsCallable(const ListMergeRequestsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMergeRequests(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListOrganizationMembersOutcome DevopsClient::listOrganizationMembers(const ListOrganizationMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOrganizationMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOrganizationMembersOutcome(ListOrganizationMembersResult(outcome.result())); + else + return ListOrganizationMembersOutcome(outcome.error()); +} + +void DevopsClient::listOrganizationMembersAsync(const ListOrganizationMembersRequest& request, const ListOrganizationMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOrganizationMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListOrganizationMembersOutcomeCallable DevopsClient::listOrganizationMembersCallable(const ListOrganizationMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOrganizationMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListOrganizationsOutcome DevopsClient::listOrganizations(const ListOrganizationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOrganizationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOrganizationsOutcome(ListOrganizationsResult(outcome.result())); + else + return ListOrganizationsOutcome(outcome.error()); +} + +void DevopsClient::listOrganizationsAsync(const ListOrganizationsRequest& request, const ListOrganizationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOrganizations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListOrganizationsOutcomeCallable DevopsClient::listOrganizationsCallable(const ListOrganizationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOrganizations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListPipelineGroupPipelinesOutcome DevopsClient::listPipelineGroupPipelines(const ListPipelineGroupPipelinesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPipelineGroupPipelinesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPipelineGroupPipelinesOutcome(ListPipelineGroupPipelinesResult(outcome.result())); + else + return ListPipelineGroupPipelinesOutcome(outcome.error()); +} + +void DevopsClient::listPipelineGroupPipelinesAsync(const ListPipelineGroupPipelinesRequest& request, const ListPipelineGroupPipelinesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPipelineGroupPipelines(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListPipelineGroupPipelinesOutcomeCallable DevopsClient::listPipelineGroupPipelinesCallable(const ListPipelineGroupPipelinesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPipelineGroupPipelines(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListPipelineGroupsOutcome DevopsClient::listPipelineGroups(const ListPipelineGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPipelineGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPipelineGroupsOutcome(ListPipelineGroupsResult(outcome.result())); + else + return ListPipelineGroupsOutcome(outcome.error()); +} + +void DevopsClient::listPipelineGroupsAsync(const ListPipelineGroupsRequest& request, const ListPipelineGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPipelineGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListPipelineGroupsOutcomeCallable DevopsClient::listPipelineGroupsCallable(const ListPipelineGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPipelineGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListPipelineJobHistorysOutcome DevopsClient::listPipelineJobHistorys(const ListPipelineJobHistorysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPipelineJobHistorysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPipelineJobHistorysOutcome(ListPipelineJobHistorysResult(outcome.result())); + else + return ListPipelineJobHistorysOutcome(outcome.error()); +} + +void DevopsClient::listPipelineJobHistorysAsync(const ListPipelineJobHistorysRequest& request, const ListPipelineJobHistorysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPipelineJobHistorys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListPipelineJobHistorysOutcomeCallable DevopsClient::listPipelineJobHistorysCallable(const ListPipelineJobHistorysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPipelineJobHistorys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListPipelineJobsOutcome DevopsClient::listPipelineJobs(const ListPipelineJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPipelineJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPipelineJobsOutcome(ListPipelineJobsResult(outcome.result())); + else + return ListPipelineJobsOutcome(outcome.error()); +} + +void DevopsClient::listPipelineJobsAsync(const ListPipelineJobsRequest& request, const ListPipelineJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPipelineJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListPipelineJobsOutcomeCallable DevopsClient::listPipelineJobsCallable(const ListPipelineJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPipelineJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListPipelineRelationsOutcome DevopsClient::listPipelineRelations(const ListPipelineRelationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPipelineRelationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPipelineRelationsOutcome(ListPipelineRelationsResult(outcome.result())); + else + return ListPipelineRelationsOutcome(outcome.error()); +} + +void DevopsClient::listPipelineRelationsAsync(const ListPipelineRelationsRequest& request, const ListPipelineRelationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPipelineRelations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListPipelineRelationsOutcomeCallable DevopsClient::listPipelineRelationsCallable(const ListPipelineRelationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPipelineRelations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListPipelineRunsOutcome DevopsClient::listPipelineRuns(const ListPipelineRunsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPipelineRunsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPipelineRunsOutcome(ListPipelineRunsResult(outcome.result())); + else + return ListPipelineRunsOutcome(outcome.error()); +} + +void DevopsClient::listPipelineRunsAsync(const ListPipelineRunsRequest& request, const ListPipelineRunsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPipelineRuns(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListPipelineRunsOutcomeCallable DevopsClient::listPipelineRunsCallable(const ListPipelineRunsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPipelineRuns(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListPipelinesOutcome DevopsClient::listPipelines(const ListPipelinesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPipelinesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPipelinesOutcome(ListPipelinesResult(outcome.result())); + else + return ListPipelinesOutcome(outcome.error()); +} + +void DevopsClient::listPipelinesAsync(const ListPipelinesRequest& request, const ListPipelinesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPipelines(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListPipelinesOutcomeCallable DevopsClient::listPipelinesCallable(const ListPipelinesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPipelines(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListProjectLabelsOutcome DevopsClient::listProjectLabels(const ListProjectLabelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectLabelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectLabelsOutcome(ListProjectLabelsResult(outcome.result())); + else + return ListProjectLabelsOutcome(outcome.error()); +} + +void DevopsClient::listProjectLabelsAsync(const ListProjectLabelsRequest& request, const ListProjectLabelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectLabels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListProjectLabelsOutcomeCallable DevopsClient::listProjectLabelsCallable(const ListProjectLabelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectLabels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListProjectMembersOutcome DevopsClient::listProjectMembers(const ListProjectMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectMembersOutcome(ListProjectMembersResult(outcome.result())); + else + return ListProjectMembersOutcome(outcome.error()); +} + +void DevopsClient::listProjectMembersAsync(const ListProjectMembersRequest& request, const ListProjectMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListProjectMembersOutcomeCallable DevopsClient::listProjectMembersCallable(const ListProjectMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListProjectTemplatesOutcome DevopsClient::listProjectTemplates(const ListProjectTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectTemplatesOutcome(ListProjectTemplatesResult(outcome.result())); + else + return ListProjectTemplatesOutcome(outcome.error()); +} + +void DevopsClient::listProjectTemplatesAsync(const ListProjectTemplatesRequest& request, const ListProjectTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListProjectTemplatesOutcomeCallable DevopsClient::listProjectTemplatesCallable(const ListProjectTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListProjectWorkitemTypesOutcome DevopsClient::listProjectWorkitemTypes(const ListProjectWorkitemTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectWorkitemTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectWorkitemTypesOutcome(ListProjectWorkitemTypesResult(outcome.result())); + else + return ListProjectWorkitemTypesOutcome(outcome.error()); +} + +void DevopsClient::listProjectWorkitemTypesAsync(const ListProjectWorkitemTypesRequest& request, const ListProjectWorkitemTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjectWorkitemTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListProjectWorkitemTypesOutcomeCallable DevopsClient::listProjectWorkitemTypesCallable(const ListProjectWorkitemTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjectWorkitemTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListProjectsOutcome DevopsClient::listProjects(const ListProjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectsOutcome(ListProjectsResult(outcome.result())); + else + return ListProjectsOutcome(outcome.error()); +} + +void DevopsClient::listProjectsAsync(const ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListProjectsOutcomeCallable DevopsClient::listProjectsCallable(const ListProjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListProtectedBranchesOutcome DevopsClient::listProtectedBranches(const ListProtectedBranchesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProtectedBranchesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProtectedBranchesOutcome(ListProtectedBranchesResult(outcome.result())); + else + return ListProtectedBranchesOutcome(outcome.error()); +} + +void DevopsClient::listProtectedBranchesAsync(const ListProtectedBranchesRequest& request, const ListProtectedBranchesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProtectedBranches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListProtectedBranchesOutcomeCallable DevopsClient::listProtectedBranchesCallable(const ListProtectedBranchesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProtectedBranches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListPushRulesOutcome DevopsClient::listPushRules(const ListPushRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPushRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPushRulesOutcome(ListPushRulesResult(outcome.result())); + else + return ListPushRulesOutcome(outcome.error()); +} + +void DevopsClient::listPushRulesAsync(const ListPushRulesRequest& request, const ListPushRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPushRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListPushRulesOutcomeCallable DevopsClient::listPushRulesCallable(const ListPushRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPushRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListRepositoriesOutcome DevopsClient::listRepositories(const ListRepositoriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRepositoriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRepositoriesOutcome(ListRepositoriesResult(outcome.result())); + else + return ListRepositoriesOutcome(outcome.error()); +} + +void DevopsClient::listRepositoriesAsync(const ListRepositoriesRequest& request, const ListRepositoriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRepositories(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListRepositoriesOutcomeCallable DevopsClient::listRepositoriesCallable(const ListRepositoriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRepositories(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListRepositoryBranchesOutcome DevopsClient::listRepositoryBranches(const ListRepositoryBranchesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRepositoryBranchesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRepositoryBranchesOutcome(ListRepositoryBranchesResult(outcome.result())); + else + return ListRepositoryBranchesOutcome(outcome.error()); +} + +void DevopsClient::listRepositoryBranchesAsync(const ListRepositoryBranchesRequest& request, const ListRepositoryBranchesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRepositoryBranches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListRepositoryBranchesOutcomeCallable DevopsClient::listRepositoryBranchesCallable(const ListRepositoryBranchesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRepositoryBranches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListRepositoryCommitDiffOutcome DevopsClient::listRepositoryCommitDiff(const ListRepositoryCommitDiffRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRepositoryCommitDiffOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRepositoryCommitDiffOutcome(ListRepositoryCommitDiffResult(outcome.result())); + else + return ListRepositoryCommitDiffOutcome(outcome.error()); +} + +void DevopsClient::listRepositoryCommitDiffAsync(const ListRepositoryCommitDiffRequest& request, const ListRepositoryCommitDiffAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRepositoryCommitDiff(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListRepositoryCommitDiffOutcomeCallable DevopsClient::listRepositoryCommitDiffCallable(const ListRepositoryCommitDiffRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRepositoryCommitDiff(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListRepositoryCommitsOutcome DevopsClient::listRepositoryCommits(const ListRepositoryCommitsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRepositoryCommitsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRepositoryCommitsOutcome(ListRepositoryCommitsResult(outcome.result())); + else + return ListRepositoryCommitsOutcome(outcome.error()); +} + +void DevopsClient::listRepositoryCommitsAsync(const ListRepositoryCommitsRequest& request, const ListRepositoryCommitsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRepositoryCommits(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListRepositoryCommitsOutcomeCallable DevopsClient::listRepositoryCommitsCallable(const ListRepositoryCommitsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRepositoryCommits(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListRepositoryGroupsOutcome DevopsClient::listRepositoryGroups(const ListRepositoryGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRepositoryGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRepositoryGroupsOutcome(ListRepositoryGroupsResult(outcome.result())); + else + return ListRepositoryGroupsOutcome(outcome.error()); +} + +void DevopsClient::listRepositoryGroupsAsync(const ListRepositoryGroupsRequest& request, const ListRepositoryGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRepositoryGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListRepositoryGroupsOutcomeCallable DevopsClient::listRepositoryGroupsCallable(const ListRepositoryGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRepositoryGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListRepositoryMemberWithInheritedOutcome DevopsClient::listRepositoryMemberWithInherited(const ListRepositoryMemberWithInheritedRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRepositoryMemberWithInheritedOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRepositoryMemberWithInheritedOutcome(ListRepositoryMemberWithInheritedResult(outcome.result())); + else + return ListRepositoryMemberWithInheritedOutcome(outcome.error()); +} + +void DevopsClient::listRepositoryMemberWithInheritedAsync(const ListRepositoryMemberWithInheritedRequest& request, const ListRepositoryMemberWithInheritedAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRepositoryMemberWithInherited(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListRepositoryMemberWithInheritedOutcomeCallable DevopsClient::listRepositoryMemberWithInheritedCallable(const ListRepositoryMemberWithInheritedRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRepositoryMemberWithInherited(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListRepositoryTagsOutcome DevopsClient::listRepositoryTags(const ListRepositoryTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRepositoryTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRepositoryTagsOutcome(ListRepositoryTagsResult(outcome.result())); + else + return ListRepositoryTagsOutcome(outcome.error()); +} + +void DevopsClient::listRepositoryTagsAsync(const ListRepositoryTagsRequest& request, const ListRepositoryTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRepositoryTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListRepositoryTagsOutcomeCallable DevopsClient::listRepositoryTagsCallable(const ListRepositoryTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRepositoryTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListRepositoryTreeOutcome DevopsClient::listRepositoryTree(const ListRepositoryTreeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRepositoryTreeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRepositoryTreeOutcome(ListRepositoryTreeResult(outcome.result())); + else + return ListRepositoryTreeOutcome(outcome.error()); +} + +void DevopsClient::listRepositoryTreeAsync(const ListRepositoryTreeRequest& request, const ListRepositoryTreeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRepositoryTree(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListRepositoryTreeOutcomeCallable DevopsClient::listRepositoryTreeCallable(const ListRepositoryTreeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRepositoryTree(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListRepositoryWebhookOutcome DevopsClient::listRepositoryWebhook(const ListRepositoryWebhookRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRepositoryWebhookOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRepositoryWebhookOutcome(ListRepositoryWebhookResult(outcome.result())); + else + return ListRepositoryWebhookOutcome(outcome.error()); +} + +void DevopsClient::listRepositoryWebhookAsync(const ListRepositoryWebhookRequest& request, const ListRepositoryWebhookAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRepositoryWebhook(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListRepositoryWebhookOutcomeCallable DevopsClient::listRepositoryWebhookCallable(const ListRepositoryWebhookRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRepositoryWebhook(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListResourceMembersOutcome DevopsClient::listResourceMembers(const ListResourceMembersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListResourceMembersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListResourceMembersOutcome(ListResourceMembersResult(outcome.result())); + else + return ListResourceMembersOutcome(outcome.error()); +} + +void DevopsClient::listResourceMembersAsync(const ListResourceMembersRequest& request, const ListResourceMembersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listResourceMembers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListResourceMembersOutcomeCallable DevopsClient::listResourceMembersCallable(const ListResourceMembersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listResourceMembers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListSearchCommitOutcome DevopsClient::listSearchCommit(const ListSearchCommitRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSearchCommitOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSearchCommitOutcome(ListSearchCommitResult(outcome.result())); + else + return ListSearchCommitOutcome(outcome.error()); +} + +void DevopsClient::listSearchCommitAsync(const ListSearchCommitRequest& request, const ListSearchCommitAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSearchCommit(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListSearchCommitOutcomeCallable DevopsClient::listSearchCommitCallable(const ListSearchCommitRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSearchCommit(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListSearchRepositoryOutcome DevopsClient::listSearchRepository(const ListSearchRepositoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSearchRepositoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSearchRepositoryOutcome(ListSearchRepositoryResult(outcome.result())); + else + return ListSearchRepositoryOutcome(outcome.error()); +} + +void DevopsClient::listSearchRepositoryAsync(const ListSearchRepositoryRequest& request, const ListSearchRepositoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSearchRepository(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListSearchRepositoryOutcomeCallable DevopsClient::listSearchRepositoryCallable(const ListSearchRepositoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSearchRepository(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListSearchSourceCodeOutcome DevopsClient::listSearchSourceCode(const ListSearchSourceCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSearchSourceCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSearchSourceCodeOutcome(ListSearchSourceCodeResult(outcome.result())); + else + return ListSearchSourceCodeOutcome(outcome.error()); +} + +void DevopsClient::listSearchSourceCodeAsync(const ListSearchSourceCodeRequest& request, const ListSearchSourceCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSearchSourceCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListSearchSourceCodeOutcomeCallable DevopsClient::listSearchSourceCodeCallable(const ListSearchSourceCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSearchSourceCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListServiceAuthsOutcome DevopsClient::listServiceAuths(const ListServiceAuthsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServiceAuthsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServiceAuthsOutcome(ListServiceAuthsResult(outcome.result())); + else + return ListServiceAuthsOutcome(outcome.error()); +} + +void DevopsClient::listServiceAuthsAsync(const ListServiceAuthsRequest& request, const ListServiceAuthsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServiceAuths(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListServiceAuthsOutcomeCallable DevopsClient::listServiceAuthsCallable(const ListServiceAuthsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServiceAuths(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListServiceConnectionsOutcome DevopsClient::listServiceConnections(const ListServiceConnectionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServiceConnectionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServiceConnectionsOutcome(ListServiceConnectionsResult(outcome.result())); + else + return ListServiceConnectionsOutcome(outcome.error()); +} + +void DevopsClient::listServiceConnectionsAsync(const ListServiceConnectionsRequest& request, const ListServiceConnectionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServiceConnections(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListServiceConnectionsOutcomeCallable DevopsClient::listServiceConnectionsCallable(const ListServiceConnectionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServiceConnections(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListServiceCredentialsOutcome DevopsClient::listServiceCredentials(const ListServiceCredentialsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServiceCredentialsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServiceCredentialsOutcome(ListServiceCredentialsResult(outcome.result())); + else + return ListServiceCredentialsOutcome(outcome.error()); +} + +void DevopsClient::listServiceCredentialsAsync(const ListServiceCredentialsRequest& request, const ListServiceCredentialsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServiceCredentials(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListServiceCredentialsOutcomeCallable DevopsClient::listServiceCredentialsCallable(const ListServiceCredentialsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServiceCredentials(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListSprintsOutcome DevopsClient::listSprints(const ListSprintsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSprintsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSprintsOutcome(ListSprintsResult(outcome.result())); + else + return ListSprintsOutcome(outcome.error()); +} + +void DevopsClient::listSprintsAsync(const ListSprintsRequest& request, const ListSprintsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSprints(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListSprintsOutcomeCallable DevopsClient::listSprintsCallable(const ListSprintsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSprints(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListTestCaseFieldsOutcome DevopsClient::listTestCaseFields(const ListTestCaseFieldsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTestCaseFieldsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTestCaseFieldsOutcome(ListTestCaseFieldsResult(outcome.result())); + else + return ListTestCaseFieldsOutcome(outcome.error()); +} + +void DevopsClient::listTestCaseFieldsAsync(const ListTestCaseFieldsRequest& request, const ListTestCaseFieldsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTestCaseFields(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListTestCaseFieldsOutcomeCallable DevopsClient::listTestCaseFieldsCallable(const ListTestCaseFieldsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTestCaseFields(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListUserDrawRecordByPkOutcome DevopsClient::listUserDrawRecordByPk(const ListUserDrawRecordByPkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserDrawRecordByPkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserDrawRecordByPkOutcome(ListUserDrawRecordByPkResult(outcome.result())); + else + return ListUserDrawRecordByPkOutcome(outcome.error()); +} + +void DevopsClient::listUserDrawRecordByPkAsync(const ListUserDrawRecordByPkRequest& request, const ListUserDrawRecordByPkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserDrawRecordByPk(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListUserDrawRecordByPkOutcomeCallable DevopsClient::listUserDrawRecordByPkCallable(const ListUserDrawRecordByPkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserDrawRecordByPk(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListUserKeysOutcome DevopsClient::listUserKeys(const ListUserKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserKeysOutcome(ListUserKeysResult(outcome.result())); + else + return ListUserKeysOutcome(outcome.error()); +} + +void DevopsClient::listUserKeysAsync(const ListUserKeysRequest& request, const ListUserKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListUserKeysOutcomeCallable DevopsClient::listUserKeysCallable(const ListUserKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListUserResourcesOutcome DevopsClient::listUserResources(const ListUserResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserResourcesOutcome(ListUserResourcesResult(outcome.result())); + else + return ListUserResourcesOutcome(outcome.error()); +} + +void DevopsClient::listUserResourcesAsync(const ListUserResourcesRequest& request, const ListUserResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListUserResourcesOutcomeCallable DevopsClient::listUserResourcesCallable(const ListUserResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListVariableGroupsOutcome DevopsClient::listVariableGroups(const ListVariableGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVariableGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVariableGroupsOutcome(ListVariableGroupsResult(outcome.result())); + else + return ListVariableGroupsOutcome(outcome.error()); +} + +void DevopsClient::listVariableGroupsAsync(const ListVariableGroupsRequest& request, const ListVariableGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVariableGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListVariableGroupsOutcomeCallable DevopsClient::listVariableGroupsCallable(const ListVariableGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVariableGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListWorkItemAllFieldsOutcome DevopsClient::listWorkItemAllFields(const ListWorkItemAllFieldsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkItemAllFieldsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkItemAllFieldsOutcome(ListWorkItemAllFieldsResult(outcome.result())); + else + return ListWorkItemAllFieldsOutcome(outcome.error()); +} + +void DevopsClient::listWorkItemAllFieldsAsync(const ListWorkItemAllFieldsRequest& request, const ListWorkItemAllFieldsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkItemAllFields(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListWorkItemAllFieldsOutcomeCallable DevopsClient::listWorkItemAllFieldsCallable(const ListWorkItemAllFieldsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkItemAllFields(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListWorkItemWorkFlowStatusOutcome DevopsClient::listWorkItemWorkFlowStatus(const ListWorkItemWorkFlowStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkItemWorkFlowStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkItemWorkFlowStatusOutcome(ListWorkItemWorkFlowStatusResult(outcome.result())); + else + return ListWorkItemWorkFlowStatusOutcome(outcome.error()); +} + +void DevopsClient::listWorkItemWorkFlowStatusAsync(const ListWorkItemWorkFlowStatusRequest& request, const ListWorkItemWorkFlowStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkItemWorkFlowStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListWorkItemWorkFlowStatusOutcomeCallable DevopsClient::listWorkItemWorkFlowStatusCallable(const ListWorkItemWorkFlowStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkItemWorkFlowStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListWorkitemAttachmentsOutcome DevopsClient::listWorkitemAttachments(const ListWorkitemAttachmentsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkitemAttachmentsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkitemAttachmentsOutcome(ListWorkitemAttachmentsResult(outcome.result())); + else + return ListWorkitemAttachmentsOutcome(outcome.error()); +} + +void DevopsClient::listWorkitemAttachmentsAsync(const ListWorkitemAttachmentsRequest& request, const ListWorkitemAttachmentsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkitemAttachments(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListWorkitemAttachmentsOutcomeCallable DevopsClient::listWorkitemAttachmentsCallable(const ListWorkitemAttachmentsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkitemAttachments(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListWorkitemEstimateOutcome DevopsClient::listWorkitemEstimate(const ListWorkitemEstimateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkitemEstimateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkitemEstimateOutcome(ListWorkitemEstimateResult(outcome.result())); + else + return ListWorkitemEstimateOutcome(outcome.error()); +} + +void DevopsClient::listWorkitemEstimateAsync(const ListWorkitemEstimateRequest& request, const ListWorkitemEstimateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkitemEstimate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListWorkitemEstimateOutcomeCallable DevopsClient::listWorkitemEstimateCallable(const ListWorkitemEstimateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkitemEstimate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListWorkitemTimeOutcome DevopsClient::listWorkitemTime(const ListWorkitemTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkitemTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkitemTimeOutcome(ListWorkitemTimeResult(outcome.result())); + else + return ListWorkitemTimeOutcome(outcome.error()); +} + +void DevopsClient::listWorkitemTimeAsync(const ListWorkitemTimeRequest& request, const ListWorkitemTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkitemTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListWorkitemTimeOutcomeCallable DevopsClient::listWorkitemTimeCallable(const ListWorkitemTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkitemTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListWorkitemsOutcome DevopsClient::listWorkitems(const ListWorkitemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkitemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkitemsOutcome(ListWorkitemsResult(outcome.result())); + else + return ListWorkitemsOutcome(outcome.error()); +} + +void DevopsClient::listWorkitemsAsync(const ListWorkitemsRequest& request, const ListWorkitemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkitems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListWorkitemsOutcomeCallable DevopsClient::listWorkitemsCallable(const ListWorkitemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkitems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ListWorkspacesOutcome DevopsClient::listWorkspaces(const ListWorkspacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListWorkspacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListWorkspacesOutcome(ListWorkspacesResult(outcome.result())); + else + return ListWorkspacesOutcome(outcome.error()); +} + +void DevopsClient::listWorkspacesAsync(const ListWorkspacesRequest& request, const ListWorkspacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listWorkspaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ListWorkspacesOutcomeCallable DevopsClient::listWorkspacesCallable(const ListWorkspacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listWorkspaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::LogPipelineJobRunOutcome DevopsClient::logPipelineJobRun(const LogPipelineJobRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LogPipelineJobRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LogPipelineJobRunOutcome(LogPipelineJobRunResult(outcome.result())); + else + return LogPipelineJobRunOutcome(outcome.error()); +} + +void DevopsClient::logPipelineJobRunAsync(const LogPipelineJobRunRequest& request, const LogPipelineJobRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, logPipelineJobRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::LogPipelineJobRunOutcomeCallable DevopsClient::logPipelineJobRunCallable(const LogPipelineJobRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->logPipelineJobRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::LogVMDeployMachineOutcome DevopsClient::logVMDeployMachine(const LogVMDeployMachineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return LogVMDeployMachineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return LogVMDeployMachineOutcome(LogVMDeployMachineResult(outcome.result())); + else + return LogVMDeployMachineOutcome(outcome.error()); +} + +void DevopsClient::logVMDeployMachineAsync(const LogVMDeployMachineRequest& request, const LogVMDeployMachineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, logVMDeployMachine(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::LogVMDeployMachineOutcomeCallable DevopsClient::logVMDeployMachineCallable(const LogVMDeployMachineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->logVMDeployMachine(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::MergeMergeRequestOutcome DevopsClient::mergeMergeRequest(const MergeMergeRequestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MergeMergeRequestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MergeMergeRequestOutcome(MergeMergeRequestResult(outcome.result())); + else + return MergeMergeRequestOutcome(outcome.error()); +} + +void DevopsClient::mergeMergeRequestAsync(const MergeMergeRequestRequest& request, const MergeMergeRequestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, mergeMergeRequest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::MergeMergeRequestOutcomeCallable DevopsClient::mergeMergeRequestCallable(const MergeMergeRequestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->mergeMergeRequest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::PassPipelineValidateOutcome DevopsClient::passPipelineValidate(const PassPipelineValidateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PassPipelineValidateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PassPipelineValidateOutcome(PassPipelineValidateResult(outcome.result())); + else + return PassPipelineValidateOutcome(outcome.error()); +} + +void DevopsClient::passPipelineValidateAsync(const PassPipelineValidateRequest& request, const PassPipelineValidateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, passPipelineValidate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::PassPipelineValidateOutcomeCallable DevopsClient::passPipelineValidateCallable(const PassPipelineValidateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->passPipelineValidate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::RefusePipelineValidateOutcome DevopsClient::refusePipelineValidate(const RefusePipelineValidateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefusePipelineValidateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefusePipelineValidateOutcome(RefusePipelineValidateResult(outcome.result())); + else + return RefusePipelineValidateOutcome(outcome.error()); +} + +void DevopsClient::refusePipelineValidateAsync(const RefusePipelineValidateRequest& request, const RefusePipelineValidateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refusePipelineValidate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::RefusePipelineValidateOutcomeCallable DevopsClient::refusePipelineValidateCallable(const RefusePipelineValidateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refusePipelineValidate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ReleaseWorkspaceOutcome DevopsClient::releaseWorkspace(const ReleaseWorkspaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseWorkspaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseWorkspaceOutcome(ReleaseWorkspaceResult(outcome.result())); + else + return ReleaseWorkspaceOutcome(outcome.error()); +} + +void DevopsClient::releaseWorkspaceAsync(const ReleaseWorkspaceRequest& request, const ReleaseWorkspaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseWorkspace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ReleaseWorkspaceOutcomeCallable DevopsClient::releaseWorkspaceCallable(const ReleaseWorkspaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseWorkspace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ReopenMergeRequestOutcome DevopsClient::reopenMergeRequest(const ReopenMergeRequestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReopenMergeRequestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReopenMergeRequestOutcome(ReopenMergeRequestResult(outcome.result())); + else + return ReopenMergeRequestOutcome(outcome.error()); +} + +void DevopsClient::reopenMergeRequestAsync(const ReopenMergeRequestRequest& request, const ReopenMergeRequestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reopenMergeRequest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ReopenMergeRequestOutcomeCallable DevopsClient::reopenMergeRequestCallable(const ReopenMergeRequestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reopenMergeRequest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ResetSshKeyOutcome DevopsClient::resetSshKey(const ResetSshKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetSshKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetSshKeyOutcome(ResetSshKeyResult(outcome.result())); + else + return ResetSshKeyOutcome(outcome.error()); +} + +void DevopsClient::resetSshKeyAsync(const ResetSshKeyRequest& request, const ResetSshKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetSshKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ResetSshKeyOutcomeCallable DevopsClient::resetSshKeyCallable(const ResetSshKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetSshKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ResumeVMDeployOrderOutcome DevopsClient::resumeVMDeployOrder(const ResumeVMDeployOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResumeVMDeployOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResumeVMDeployOrderOutcome(ResumeVMDeployOrderResult(outcome.result())); + else + return ResumeVMDeployOrderOutcome(outcome.error()); +} + +void DevopsClient::resumeVMDeployOrderAsync(const ResumeVMDeployOrderRequest& request, const ResumeVMDeployOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resumeVMDeployOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ResumeVMDeployOrderOutcomeCallable DevopsClient::resumeVMDeployOrderCallable(const ResumeVMDeployOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resumeVMDeployOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::RetryPipelineJobRunOutcome DevopsClient::retryPipelineJobRun(const RetryPipelineJobRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RetryPipelineJobRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RetryPipelineJobRunOutcome(RetryPipelineJobRunResult(outcome.result())); + else + return RetryPipelineJobRunOutcome(outcome.error()); +} + +void DevopsClient::retryPipelineJobRunAsync(const RetryPipelineJobRunRequest& request, const RetryPipelineJobRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, retryPipelineJobRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::RetryPipelineJobRunOutcomeCallable DevopsClient::retryPipelineJobRunCallable(const RetryPipelineJobRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->retryPipelineJobRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::RetryVMDeployMachineOutcome DevopsClient::retryVMDeployMachine(const RetryVMDeployMachineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RetryVMDeployMachineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RetryVMDeployMachineOutcome(RetryVMDeployMachineResult(outcome.result())); + else + return RetryVMDeployMachineOutcome(outcome.error()); +} + +void DevopsClient::retryVMDeployMachineAsync(const RetryVMDeployMachineRequest& request, const RetryVMDeployMachineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, retryVMDeployMachine(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::RetryVMDeployMachineOutcomeCallable DevopsClient::retryVMDeployMachineCallable(const RetryVMDeployMachineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->retryVMDeployMachine(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::ReviewMergeRequestOutcome DevopsClient::reviewMergeRequest(const ReviewMergeRequestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReviewMergeRequestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReviewMergeRequestOutcome(ReviewMergeRequestResult(outcome.result())); + else + return ReviewMergeRequestOutcome(outcome.error()); +} + +void DevopsClient::reviewMergeRequestAsync(const ReviewMergeRequestRequest& request, const ReviewMergeRequestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reviewMergeRequest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::ReviewMergeRequestOutcomeCallable DevopsClient::reviewMergeRequestCallable(const ReviewMergeRequestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reviewMergeRequest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::SkipPipelineJobRunOutcome DevopsClient::skipPipelineJobRun(const SkipPipelineJobRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SkipPipelineJobRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SkipPipelineJobRunOutcome(SkipPipelineJobRunResult(outcome.result())); + else + return SkipPipelineJobRunOutcome(outcome.error()); +} + +void DevopsClient::skipPipelineJobRunAsync(const SkipPipelineJobRunRequest& request, const SkipPipelineJobRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, skipPipelineJobRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::SkipPipelineJobRunOutcomeCallable DevopsClient::skipPipelineJobRunCallable(const SkipPipelineJobRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->skipPipelineJobRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::SkipVMDeployMachineOutcome DevopsClient::skipVMDeployMachine(const SkipVMDeployMachineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SkipVMDeployMachineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SkipVMDeployMachineOutcome(SkipVMDeployMachineResult(outcome.result())); + else + return SkipVMDeployMachineOutcome(outcome.error()); +} + +void DevopsClient::skipVMDeployMachineAsync(const SkipVMDeployMachineRequest& request, const SkipVMDeployMachineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, skipVMDeployMachine(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::SkipVMDeployMachineOutcomeCallable DevopsClient::skipVMDeployMachineCallable(const SkipVMDeployMachineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->skipVMDeployMachine(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::StartPipelineRunOutcome DevopsClient::startPipelineRun(const StartPipelineRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartPipelineRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartPipelineRunOutcome(StartPipelineRunResult(outcome.result())); + else + return StartPipelineRunOutcome(outcome.error()); +} + +void DevopsClient::startPipelineRunAsync(const StartPipelineRunRequest& request, const StartPipelineRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startPipelineRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::StartPipelineRunOutcomeCallable DevopsClient::startPipelineRunCallable(const StartPipelineRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startPipelineRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::StopPipelineJobRunOutcome DevopsClient::stopPipelineJobRun(const StopPipelineJobRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopPipelineJobRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopPipelineJobRunOutcome(StopPipelineJobRunResult(outcome.result())); + else + return StopPipelineJobRunOutcome(outcome.error()); +} + +void DevopsClient::stopPipelineJobRunAsync(const StopPipelineJobRunRequest& request, const StopPipelineJobRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopPipelineJobRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::StopPipelineJobRunOutcomeCallable DevopsClient::stopPipelineJobRunCallable(const StopPipelineJobRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopPipelineJobRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::StopPipelineRunOutcome DevopsClient::stopPipelineRun(const StopPipelineRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopPipelineRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopPipelineRunOutcome(StopPipelineRunResult(outcome.result())); + else + return StopPipelineRunOutcome(outcome.error()); +} + +void DevopsClient::stopPipelineRunAsync(const StopPipelineRunRequest& request, const StopPipelineRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopPipelineRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::StopPipelineRunOutcomeCallable DevopsClient::stopPipelineRunCallable(const StopPipelineRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopPipelineRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::StopVMDeployOrderOutcome DevopsClient::stopVMDeployOrder(const StopVMDeployOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopVMDeployOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopVMDeployOrderOutcome(StopVMDeployOrderResult(outcome.result())); + else + return StopVMDeployOrderOutcome(outcome.error()); +} + +void DevopsClient::stopVMDeployOrderAsync(const StopVMDeployOrderRequest& request, const StopVMDeployOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopVMDeployOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::StopVMDeployOrderOutcomeCallable DevopsClient::stopVMDeployOrderCallable(const StopVMDeployOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopVMDeployOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::TransferRepositoryOutcome DevopsClient::transferRepository(const TransferRepositoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TransferRepositoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TransferRepositoryOutcome(TransferRepositoryResult(outcome.result())); + else + return TransferRepositoryOutcome(outcome.error()); +} + +void DevopsClient::transferRepositoryAsync(const TransferRepositoryRequest& request, const TransferRepositoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, transferRepository(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::TransferRepositoryOutcomeCallable DevopsClient::transferRepositoryCallable(const TransferRepositoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->transferRepository(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::TriggerRepositoryMirrorSyncOutcome DevopsClient::triggerRepositoryMirrorSync(const TriggerRepositoryMirrorSyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TriggerRepositoryMirrorSyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TriggerRepositoryMirrorSyncOutcome(TriggerRepositoryMirrorSyncResult(outcome.result())); + else + return TriggerRepositoryMirrorSyncOutcome(outcome.error()); +} + +void DevopsClient::triggerRepositoryMirrorSyncAsync(const TriggerRepositoryMirrorSyncRequest& request, const TriggerRepositoryMirrorSyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, triggerRepositoryMirrorSync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::TriggerRepositoryMirrorSyncOutcomeCallable DevopsClient::triggerRepositoryMirrorSyncCallable(const TriggerRepositoryMirrorSyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->triggerRepositoryMirrorSync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateAppMemberOutcome DevopsClient::updateAppMember(const UpdateAppMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAppMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAppMemberOutcome(UpdateAppMemberResult(outcome.result())); + else + return UpdateAppMemberOutcome(outcome.error()); +} + +void DevopsClient::updateAppMemberAsync(const UpdateAppMemberRequest& request, const UpdateAppMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAppMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateAppMemberOutcomeCallable DevopsClient::updateAppMemberCallable(const UpdateAppMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAppMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateApplicationOutcome DevopsClient::updateApplication(const UpdateApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateApplicationOutcome(UpdateApplicationResult(outcome.result())); + else + return UpdateApplicationOutcome(outcome.error()); +} + +void DevopsClient::updateApplicationAsync(const UpdateApplicationRequest& request, const UpdateApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateApplicationOutcomeCallable DevopsClient::updateApplicationCallable(const UpdateApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateCheckRunOutcome DevopsClient::updateCheckRun(const UpdateCheckRunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateCheckRunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateCheckRunOutcome(UpdateCheckRunResult(outcome.result())); + else + return UpdateCheckRunOutcome(outcome.error()); +} + +void DevopsClient::updateCheckRunAsync(const UpdateCheckRunRequest& request, const UpdateCheckRunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateCheckRun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateCheckRunOutcomeCallable DevopsClient::updateCheckRunCallable(const UpdateCheckRunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateCheckRun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateFileOutcome DevopsClient::updateFile(const UpdateFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFileOutcome(UpdateFileResult(outcome.result())); + else + return UpdateFileOutcome(outcome.error()); +} + +void DevopsClient::updateFileAsync(const UpdateFileRequest& request, const UpdateFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateFileOutcomeCallable DevopsClient::updateFileCallable(const UpdateFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateFlowTagOutcome DevopsClient::updateFlowTag(const UpdateFlowTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFlowTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFlowTagOutcome(UpdateFlowTagResult(outcome.result())); + else + return UpdateFlowTagOutcome(outcome.error()); +} + +void DevopsClient::updateFlowTagAsync(const UpdateFlowTagRequest& request, const UpdateFlowTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFlowTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateFlowTagOutcomeCallable DevopsClient::updateFlowTagCallable(const UpdateFlowTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFlowTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateFlowTagGroupOutcome DevopsClient::updateFlowTagGroup(const UpdateFlowTagGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFlowTagGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFlowTagGroupOutcome(UpdateFlowTagGroupResult(outcome.result())); + else + return UpdateFlowTagGroupOutcome(outcome.error()); +} + +void DevopsClient::updateFlowTagGroupAsync(const UpdateFlowTagGroupRequest& request, const UpdateFlowTagGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFlowTagGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateFlowTagGroupOutcomeCallable DevopsClient::updateFlowTagGroupCallable(const UpdateFlowTagGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFlowTagGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateGroupOutcome DevopsClient::updateGroup(const UpdateGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGroupOutcome(UpdateGroupResult(outcome.result())); + else + return UpdateGroupOutcome(outcome.error()); +} + +void DevopsClient::updateGroupAsync(const UpdateGroupRequest& request, const UpdateGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateGroupOutcomeCallable DevopsClient::updateGroupCallable(const UpdateGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateGroupMemberOutcome DevopsClient::updateGroupMember(const UpdateGroupMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateGroupMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateGroupMemberOutcome(UpdateGroupMemberResult(outcome.result())); + else + return UpdateGroupMemberOutcome(outcome.error()); +} + +void DevopsClient::updateGroupMemberAsync(const UpdateGroupMemberRequest& request, const UpdateGroupMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateGroupMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateGroupMemberOutcomeCallable DevopsClient::updateGroupMemberCallable(const UpdateGroupMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateGroupMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateHostGroupOutcome DevopsClient::updateHostGroup(const UpdateHostGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateHostGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateHostGroupOutcome(UpdateHostGroupResult(outcome.result())); + else + return UpdateHostGroupOutcome(outcome.error()); +} + +void DevopsClient::updateHostGroupAsync(const UpdateHostGroupRequest& request, const UpdateHostGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateHostGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateHostGroupOutcomeCallable DevopsClient::updateHostGroupCallable(const UpdateHostGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateHostGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateMergeRequestOutcome DevopsClient::updateMergeRequest(const UpdateMergeRequestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateMergeRequestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateMergeRequestOutcome(UpdateMergeRequestResult(outcome.result())); + else + return UpdateMergeRequestOutcome(outcome.error()); +} + +void DevopsClient::updateMergeRequestAsync(const UpdateMergeRequestRequest& request, const UpdateMergeRequestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateMergeRequest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateMergeRequestOutcomeCallable DevopsClient::updateMergeRequestCallable(const UpdateMergeRequestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateMergeRequest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateMergeRequestPersonnelOutcome DevopsClient::updateMergeRequestPersonnel(const UpdateMergeRequestPersonnelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateMergeRequestPersonnelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateMergeRequestPersonnelOutcome(UpdateMergeRequestPersonnelResult(outcome.result())); + else + return UpdateMergeRequestPersonnelOutcome(outcome.error()); +} + +void DevopsClient::updateMergeRequestPersonnelAsync(const UpdateMergeRequestPersonnelRequest& request, const UpdateMergeRequestPersonnelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateMergeRequestPersonnel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateMergeRequestPersonnelOutcomeCallable DevopsClient::updateMergeRequestPersonnelCallable(const UpdateMergeRequestPersonnelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateMergeRequestPersonnel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdatePipelineOutcome DevopsClient::updatePipeline(const UpdatePipelineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePipelineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePipelineOutcome(UpdatePipelineResult(outcome.result())); + else + return UpdatePipelineOutcome(outcome.error()); +} + +void DevopsClient::updatePipelineAsync(const UpdatePipelineRequest& request, const UpdatePipelineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePipeline(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdatePipelineOutcomeCallable DevopsClient::updatePipelineCallable(const UpdatePipelineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePipeline(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdatePipelineBaseInfoOutcome DevopsClient::updatePipelineBaseInfo(const UpdatePipelineBaseInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePipelineBaseInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePipelineBaseInfoOutcome(UpdatePipelineBaseInfoResult(outcome.result())); + else + return UpdatePipelineBaseInfoOutcome(outcome.error()); +} + +void DevopsClient::updatePipelineBaseInfoAsync(const UpdatePipelineBaseInfoRequest& request, const UpdatePipelineBaseInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePipelineBaseInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdatePipelineBaseInfoOutcomeCallable DevopsClient::updatePipelineBaseInfoCallable(const UpdatePipelineBaseInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePipelineBaseInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdatePipelineGroupOutcome DevopsClient::updatePipelineGroup(const UpdatePipelineGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePipelineGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePipelineGroupOutcome(UpdatePipelineGroupResult(outcome.result())); + else + return UpdatePipelineGroupOutcome(outcome.error()); +} + +void DevopsClient::updatePipelineGroupAsync(const UpdatePipelineGroupRequest& request, const UpdatePipelineGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePipelineGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdatePipelineGroupOutcomeCallable DevopsClient::updatePipelineGroupCallable(const UpdatePipelineGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePipelineGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateProjectFieldOutcome DevopsClient::updateProjectField(const UpdateProjectFieldRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectFieldOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectFieldOutcome(UpdateProjectFieldResult(outcome.result())); + else + return UpdateProjectFieldOutcome(outcome.error()); +} + +void DevopsClient::updateProjectFieldAsync(const UpdateProjectFieldRequest& request, const UpdateProjectFieldAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProjectField(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateProjectFieldOutcomeCallable DevopsClient::updateProjectFieldCallable(const UpdateProjectFieldRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProjectField(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateProjectLabelOutcome DevopsClient::updateProjectLabel(const UpdateProjectLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectLabelOutcome(UpdateProjectLabelResult(outcome.result())); + else + return UpdateProjectLabelOutcome(outcome.error()); +} + +void DevopsClient::updateProjectLabelAsync(const UpdateProjectLabelRequest& request, const UpdateProjectLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProjectLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateProjectLabelOutcomeCallable DevopsClient::updateProjectLabelCallable(const UpdateProjectLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProjectLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateProjectMemberOutcome DevopsClient::updateProjectMember(const UpdateProjectMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectMemberOutcome(UpdateProjectMemberResult(outcome.result())); + else + return UpdateProjectMemberOutcome(outcome.error()); +} + +void DevopsClient::updateProjectMemberAsync(const UpdateProjectMemberRequest& request, const UpdateProjectMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProjectMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateProjectMemberOutcomeCallable DevopsClient::updateProjectMemberCallable(const UpdateProjectMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProjectMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateProtectedBranchesOutcome DevopsClient::updateProtectedBranches(const UpdateProtectedBranchesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProtectedBranchesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProtectedBranchesOutcome(UpdateProtectedBranchesResult(outcome.result())); + else + return UpdateProtectedBranchesOutcome(outcome.error()); +} + +void DevopsClient::updateProtectedBranchesAsync(const UpdateProtectedBranchesRequest& request, const UpdateProtectedBranchesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProtectedBranches(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateProtectedBranchesOutcomeCallable DevopsClient::updateProtectedBranchesCallable(const UpdateProtectedBranchesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProtectedBranches(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdatePushReviewOnOffOutcome DevopsClient::updatePushReviewOnOff(const UpdatePushReviewOnOffRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePushReviewOnOffOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePushReviewOnOffOutcome(UpdatePushReviewOnOffResult(outcome.result())); + else + return UpdatePushReviewOnOffOutcome(outcome.error()); +} + +void DevopsClient::updatePushReviewOnOffAsync(const UpdatePushReviewOnOffRequest& request, const UpdatePushReviewOnOffAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePushReviewOnOff(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdatePushReviewOnOffOutcomeCallable DevopsClient::updatePushReviewOnOffCallable(const UpdatePushReviewOnOffRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePushReviewOnOff(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdatePushRuleOutcome DevopsClient::updatePushRule(const UpdatePushRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdatePushRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdatePushRuleOutcome(UpdatePushRuleResult(outcome.result())); + else + return UpdatePushRuleOutcome(outcome.error()); +} + +void DevopsClient::updatePushRuleAsync(const UpdatePushRuleRequest& request, const UpdatePushRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updatePushRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdatePushRuleOutcomeCallable DevopsClient::updatePushRuleCallable(const UpdatePushRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updatePushRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateRepositoryOutcome DevopsClient::updateRepository(const UpdateRepositoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRepositoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRepositoryOutcome(UpdateRepositoryResult(outcome.result())); + else + return UpdateRepositoryOutcome(outcome.error()); +} + +void DevopsClient::updateRepositoryAsync(const UpdateRepositoryRequest& request, const UpdateRepositoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRepository(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateRepositoryOutcomeCallable DevopsClient::updateRepositoryCallable(const UpdateRepositoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRepository(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateRepositoryMemberOutcome DevopsClient::updateRepositoryMember(const UpdateRepositoryMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateRepositoryMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateRepositoryMemberOutcome(UpdateRepositoryMemberResult(outcome.result())); + else + return UpdateRepositoryMemberOutcome(outcome.error()); +} + +void DevopsClient::updateRepositoryMemberAsync(const UpdateRepositoryMemberRequest& request, const UpdateRepositoryMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateRepositoryMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateRepositoryMemberOutcomeCallable DevopsClient::updateRepositoryMemberCallable(const UpdateRepositoryMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateRepositoryMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateResourceMemberOutcome DevopsClient::updateResourceMember(const UpdateResourceMemberRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateResourceMemberOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateResourceMemberOutcome(UpdateResourceMemberResult(outcome.result())); + else + return UpdateResourceMemberOutcome(outcome.error()); +} + +void DevopsClient::updateResourceMemberAsync(const UpdateResourceMemberRequest& request, const UpdateResourceMemberAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateResourceMember(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateResourceMemberOutcomeCallable DevopsClient::updateResourceMemberCallable(const UpdateResourceMemberRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateResourceMember(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateTestCaseOutcome DevopsClient::updateTestCase(const UpdateTestCaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTestCaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTestCaseOutcome(UpdateTestCaseResult(outcome.result())); + else + return UpdateTestCaseOutcome(outcome.error()); +} + +void DevopsClient::updateTestCaseAsync(const UpdateTestCaseRequest& request, const UpdateTestCaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTestCase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateTestCaseOutcomeCallable DevopsClient::updateTestCaseCallable(const UpdateTestCaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTestCase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateTestResultOutcome DevopsClient::updateTestResult(const UpdateTestResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateTestResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateTestResultOutcome(UpdateTestResultResult(outcome.result())); + else + return UpdateTestResultOutcome(outcome.error()); +} + +void DevopsClient::updateTestResultAsync(const UpdateTestResultRequest& request, const UpdateTestResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateTestResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateTestResultOutcomeCallable DevopsClient::updateTestResultCallable(const UpdateTestResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateTestResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateVariableGroupOutcome DevopsClient::updateVariableGroup(const UpdateVariableGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateVariableGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateVariableGroupOutcome(UpdateVariableGroupResult(outcome.result())); + else + return UpdateVariableGroupOutcome(outcome.error()); +} + +void DevopsClient::updateVariableGroupAsync(const UpdateVariableGroupRequest& request, const UpdateVariableGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateVariableGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateVariableGroupOutcomeCallable DevopsClient::updateVariableGroupCallable(const UpdateVariableGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateVariableGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateWorkItemOutcome DevopsClient::updateWorkItem(const UpdateWorkItemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateWorkItemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateWorkItemOutcome(UpdateWorkItemResult(outcome.result())); + else + return UpdateWorkItemOutcome(outcome.error()); +} + +void DevopsClient::updateWorkItemAsync(const UpdateWorkItemRequest& request, const UpdateWorkItemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateWorkItem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateWorkItemOutcomeCallable DevopsClient::updateWorkItemCallable(const UpdateWorkItemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateWorkItem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateWorkitemCommentOutcome DevopsClient::updateWorkitemComment(const UpdateWorkitemCommentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateWorkitemCommentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateWorkitemCommentOutcome(UpdateWorkitemCommentResult(outcome.result())); + else + return UpdateWorkitemCommentOutcome(outcome.error()); +} + +void DevopsClient::updateWorkitemCommentAsync(const UpdateWorkitemCommentRequest& request, const UpdateWorkitemCommentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateWorkitemComment(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateWorkitemCommentOutcomeCallable DevopsClient::updateWorkitemCommentCallable(const UpdateWorkitemCommentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateWorkitemComment(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::UpdateWorkitemFieldOutcome DevopsClient::updateWorkitemField(const UpdateWorkitemFieldRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateWorkitemFieldOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateWorkitemFieldOutcome(UpdateWorkitemFieldResult(outcome.result())); + else + return UpdateWorkitemFieldOutcome(outcome.error()); +} + +void DevopsClient::updateWorkitemFieldAsync(const UpdateWorkitemFieldRequest& request, const UpdateWorkitemFieldAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateWorkitemField(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::UpdateWorkitemFieldOutcomeCallable DevopsClient::updateWorkitemFieldCallable(const UpdateWorkitemFieldRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateWorkitemField(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +DevopsClient::WorkitemAttachmentCreateOutcome DevopsClient::workitemAttachmentCreate(const WorkitemAttachmentCreateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return WorkitemAttachmentCreateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return WorkitemAttachmentCreateOutcome(WorkitemAttachmentCreateResult(outcome.result())); + else + return WorkitemAttachmentCreateOutcome(outcome.error()); +} + +void DevopsClient::workitemAttachmentCreateAsync(const WorkitemAttachmentCreateRequest& request, const WorkitemAttachmentCreateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, workitemAttachmentCreate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DevopsClient::WorkitemAttachmentCreateOutcomeCallable DevopsClient::workitemAttachmentCreateCallable(const WorkitemAttachmentCreateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->workitemAttachmentCreate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/devops/src/model/AddGroupMemberRequest.cc b/devops/src/model/AddGroupMemberRequest.cc new file mode 100644 index 000000000..4b9a51a27 --- /dev/null +++ b/devops/src/model/AddGroupMemberRequest.cc @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::AddGroupMemberRequest; + +AddGroupMemberRequest::AddGroupMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/groups/[groupId]/members/create"}; + setMethod(HttpRequest::Method::Post); +} + +AddGroupMemberRequest::~AddGroupMemberRequest() {} + +std::string AddGroupMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void AddGroupMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long AddGroupMemberRequest::getGroupId() const { + return groupId_; +} + +void AddGroupMemberRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string AddGroupMemberRequest::getAccessToken() const { + return accessToken_; +} + +void AddGroupMemberRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +AddGroupMemberRequest::body AddGroupMemberRequest::getBody() const { + return body_; +} + +void AddGroupMemberRequest::setBody(const AddGroupMemberRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".accessLevel", std::to_string(body.accessLevel)); + setBodyParameter(std::string("body") + ".aliyunPks", body.aliyunPks); +} + diff --git a/devops/src/model/AddGroupMemberResult.cc b/devops/src/model/AddGroupMemberResult.cc new file mode 100644 index 000000000..3632aea23 --- /dev/null +++ b/devops/src/model/AddGroupMemberResult.cc @@ -0,0 +1,101 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +AddGroupMemberResult::AddGroupMemberResult() : + ServiceResult() +{} + +AddGroupMemberResult::AddGroupMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddGroupMemberResult::~AddGroupMemberResult() +{} + +void AddGroupMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["username"].isNull()) + resultObject.username = valueresultresultItem["username"].asString(); + if(!valueresultresultItem["state"].isNull()) + resultObject.state = valueresultresultItem["state"].asString(); + if(!valueresultresultItem["avatarUrl"].isNull()) + resultObject.avatarUrl = valueresultresultItem["avatarUrl"].asString(); + if(!valueresultresultItem["email"].isNull()) + resultObject.email = valueresultresultItem["email"].asString(); + if(!valueresultresultItem["externUid"].isNull()) + resultObject.externUid = valueresultresultItem["externUid"].asString(); + if(!valueresultresultItem["accessLevel"].isNull()) + resultObject.accessLevel = std::stoi(valueresultresultItem["accessLevel"].asString()); + if(!valueresultresultItem["sourceId"].isNull()) + resultObject.sourceId = std::stol(valueresultresultItem["sourceId"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector AddGroupMemberResult::getresult()const +{ + return result_; +} + +std::string AddGroupMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string AddGroupMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddGroupMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool AddGroupMemberResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/AddPipelineRelationsRequest.cc b/devops/src/model/AddPipelineRelationsRequest.cc new file mode 100644 index 000000000..1cb50d570 --- /dev/null +++ b/devops/src/model/AddPipelineRelationsRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::AddPipelineRelationsRequest; + +AddPipelineRelationsRequest::AddPipelineRelationsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/[pipelineId]/pipelineRelations"}; + setMethod(HttpRequest::Method::Post); +} + +AddPipelineRelationsRequest::~AddPipelineRelationsRequest() {} + +std::string AddPipelineRelationsRequest::getRelObjectType() const { + return relObjectType_; +} + +void AddPipelineRelationsRequest::setRelObjectType(const std::string &relObjectType) { + relObjectType_ = relObjectType; + setParameter(std::string("relObjectType"), relObjectType); +} + +std::string AddPipelineRelationsRequest::getRelObjectIds() const { + return relObjectIds_; +} + +void AddPipelineRelationsRequest::setRelObjectIds(const std::string &relObjectIds) { + relObjectIds_ = relObjectIds; + setParameter(std::string("relObjectIds"), relObjectIds); +} + +long AddPipelineRelationsRequest::getPipelineId() const { + return pipelineId_; +} + +void AddPipelineRelationsRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string AddPipelineRelationsRequest::getOrganizationId() const { + return organizationId_; +} + +void AddPipelineRelationsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/AddPipelineRelationsResult.cc b/devops/src/model/AddPipelineRelationsResult.cc new file mode 100644 index 000000000..749d711ee --- /dev/null +++ b/devops/src/model/AddPipelineRelationsResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +AddPipelineRelationsResult::AddPipelineRelationsResult() : + ServiceResult() +{} + +AddPipelineRelationsResult::AddPipelineRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddPipelineRelationsResult::~AddPipelineRelationsResult() +{} + +void AddPipelineRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string AddPipelineRelationsResult::getRequestId()const +{ + return requestId_; +} + +std::string AddPipelineRelationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddPipelineRelationsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool AddPipelineRelationsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/AddRepositoryMemberRequest.cc b/devops/src/model/AddRepositoryMemberRequest.cc new file mode 100644 index 000000000..513d6048c --- /dev/null +++ b/devops/src/model/AddRepositoryMemberRequest.cc @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::AddRepositoryMemberRequest; + +AddRepositoryMemberRequest::AddRepositoryMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/members"}; + setMethod(HttpRequest::Method::Post); +} + +AddRepositoryMemberRequest::~AddRepositoryMemberRequest() {} + +std::string AddRepositoryMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void AddRepositoryMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long AddRepositoryMemberRequest::getRepositoryId() const { + return repositoryId_; +} + +void AddRepositoryMemberRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string AddRepositoryMemberRequest::getAccessToken() const { + return accessToken_; +} + +void AddRepositoryMemberRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +AddRepositoryMemberRequest::body AddRepositoryMemberRequest::getBody() const { + return body_; +} + +void AddRepositoryMemberRequest::setBody(const AddRepositoryMemberRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".accessLevel", std::to_string(body.accessLevel)); + setBodyParameter(std::string("body") + ".aliyunPks", body.aliyunPks); +} + diff --git a/devops/src/model/AddRepositoryMemberResult.cc b/devops/src/model/AddRepositoryMemberResult.cc new file mode 100644 index 000000000..bf0d65b7d --- /dev/null +++ b/devops/src/model/AddRepositoryMemberResult.cc @@ -0,0 +1,95 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +AddRepositoryMemberResult::AddRepositoryMemberResult() : + ServiceResult() +{} + +AddRepositoryMemberResult::AddRepositoryMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddRepositoryMemberResult::~AddRepositoryMemberResult() +{} + +void AddRepositoryMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["ResultItem"]; + for (auto valueresultResultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultResultItem["externUserId"].isNull()) + resultObject.externUserId = valueresultResultItem["externUserId"].asString(); + if(!valueresultResultItem["email"].isNull()) + resultObject.email = valueresultResultItem["email"].asString(); + if(!valueresultResultItem["avatarUrl"].isNull()) + resultObject.avatarUrl = valueresultResultItem["avatarUrl"].asString(); + if(!valueresultResultItem["state"].isNull()) + resultObject.state = valueresultResultItem["state"].asString(); + if(!valueresultResultItem["accessLevel"].isNull()) + resultObject.accessLevel = std::stoi(valueresultResultItem["accessLevel"].asString()); + if(!valueresultResultItem["id"].isNull()) + resultObject.id = std::stol(valueresultResultItem["id"].asString()); + result_.push_back(resultObject); + } + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector AddRepositoryMemberResult::getresult()const +{ + return result_; +} + +std::string AddRepositoryMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string AddRepositoryMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddRepositoryMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool AddRepositoryMemberResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/AddWebhookRequest.cc b/devops/src/model/AddWebhookRequest.cc new file mode 100644 index 000000000..f77ba9468 --- /dev/null +++ b/devops/src/model/AddWebhookRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::AddWebhookRequest; + +AddWebhookRequest::AddWebhookRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/webhooks/create"}; + setMethod(HttpRequest::Method::Post); +} + +AddWebhookRequest::~AddWebhookRequest() {} + +std::string AddWebhookRequest::getOrganizationId() const { + return organizationId_; +} + +void AddWebhookRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long AddWebhookRequest::getRepositoryId() const { + return repositoryId_; +} + +void AddWebhookRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string AddWebhookRequest::getAccessToken() const { + return accessToken_; +} + +void AddWebhookRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string AddWebhookRequest::getBody() const { + return body_; +} + +void AddWebhookRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/devops/src/model/AddWebhookResult.cc b/devops/src/model/AddWebhookResult.cc new file mode 100644 index 000000000..6c2ca9db6 --- /dev/null +++ b/devops/src/model/AddWebhookResult.cc @@ -0,0 +1,102 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +AddWebhookResult::AddWebhookResult() : + ServiceResult() +{} + +AddWebhookResult::AddWebhookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddWebhookResult::~AddWebhookResult() +{} + +void AddWebhookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["pushEvents"].isNull()) + result_.pushEvents = resultNode["pushEvents"].asString() == "true"; + if(!resultNode["repositoryId"].isNull()) + result_.repositoryId = std::stol(resultNode["repositoryId"].asString()); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["url"].isNull()) + result_.url = resultNode["url"].asString(); + if(!resultNode["tagPushEvents"].isNull()) + result_.tagPushEvents = resultNode["tagPushEvents"].asString() == "true"; + if(!resultNode["lastTestResult"].isNull()) + result_.lastTestResult = resultNode["lastTestResult"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["mergeRequestsEvents"].isNull()) + result_.mergeRequestsEvents = resultNode["mergeRequestsEvents"].asString() == "true"; + if(!resultNode["secretToken"].isNull()) + result_.secretToken = resultNode["secretToken"].asString(); + if(!resultNode["noteEvents"].isNull()) + result_.noteEvents = resultNode["noteEvents"].asString() == "true"; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["enableSslVerification"].isNull()) + result_.enableSslVerification = resultNode["enableSslVerification"].asString() == "true"; + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string AddWebhookResult::getRequestId()const +{ + return requestId_; +} + +std::string AddWebhookResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddWebhookResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool AddWebhookResult::getSuccess()const +{ + return success_; +} + +AddWebhookResult::Result AddWebhookResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CloseMergeRequestRequest.cc b/devops/src/model/CloseMergeRequestRequest.cc new file mode 100644 index 000000000..34865e6fa --- /dev/null +++ b/devops/src/model/CloseMergeRequestRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CloseMergeRequestRequest; + +CloseMergeRequestRequest::CloseMergeRequestRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/merge_requests/[localId]/close"}; + setMethod(HttpRequest::Method::Post); +} + +CloseMergeRequestRequest::~CloseMergeRequestRequest() {} + +std::string CloseMergeRequestRequest::getOrganizationId() const { + return organizationId_; +} + +void CloseMergeRequestRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long CloseMergeRequestRequest::getRepositoryId() const { + return repositoryId_; +} + +void CloseMergeRequestRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string CloseMergeRequestRequest::getAccessToken() const { + return accessToken_; +} + +void CloseMergeRequestRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long CloseMergeRequestRequest::getLocalId() const { + return localId_; +} + +void CloseMergeRequestRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/CloseMergeRequestResult.cc b/devops/src/model/CloseMergeRequestResult.cc new file mode 100644 index 000000000..1d295f4c0 --- /dev/null +++ b/devops/src/model/CloseMergeRequestResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CloseMergeRequestResult::CloseMergeRequestResult() : + ServiceResult() +{} + +CloseMergeRequestResult::CloseMergeRequestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloseMergeRequestResult::~CloseMergeRequestResult() +{} + +void CloseMergeRequestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CloseMergeRequestResult::getRequestId()const +{ + return requestId_; +} + +std::string CloseMergeRequestResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CloseMergeRequestResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CloseMergeRequestResult::getSuccess()const +{ + return success_; +} + +CloseMergeRequestResult::Result CloseMergeRequestResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateAppMembersRequest.cc b/devops/src/model/CreateAppMembersRequest.cc new file mode 100644 index 000000000..bcef67e12 --- /dev/null +++ b/devops/src/model/CreateAppMembersRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateAppMembersRequest; + +CreateAppMembersRequest::CreateAppMembersRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/appstack/apps/[appName]/members"}; + setMethod(HttpRequest::Method::Post); +} + +CreateAppMembersRequest::~CreateAppMembersRequest() {} + +std::string CreateAppMembersRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateAppMembersRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateAppMembersRequest::getAppName() const { + return appName_; +} + +void CreateAppMembersRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +CreateAppMembersRequest::body CreateAppMembersRequest::getBody() const { + return body_; +} + +void CreateAppMembersRequest::setBody(const CreateAppMembersRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.roleNames.size(); dep1++) { + setBodyParameter(std::string("body") + ".roleNames." + std::to_string(dep1 + 1), body.roleNames[dep1]); + } + for(int dep1 = 0; dep1 != body.playerList.size(); dep1++) { + setBodyParameter(std::string("body") + ".playerList." + std::to_string(dep1 + 1) + ".id", body.playerList[dep1].id); + setBodyParameter(std::string("body") + ".playerList." + std::to_string(dep1 + 1) + ".type", body.playerList[dep1].type); + } +} + diff --git a/devops/src/model/CreateAppMembersResult.cc b/devops/src/model/CreateAppMembersResult.cc new file mode 100644 index 000000000..75b73a706 --- /dev/null +++ b/devops/src/model/CreateAppMembersResult.cc @@ -0,0 +1,44 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateAppMembersResult::CreateAppMembersResult() : + ServiceResult() +{} + +CreateAppMembersResult::CreateAppMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAppMembersResult::~CreateAppMembersResult() +{} + +void CreateAppMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/devops/src/model/CreateBranchRequest.cc b/devops/src/model/CreateBranchRequest.cc new file mode 100644 index 000000000..fb52d1148 --- /dev/null +++ b/devops/src/model/CreateBranchRequest.cc @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateBranchRequest; + +CreateBranchRequest::CreateBranchRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/branches"}; + setMethod(HttpRequest::Method::Post); +} + +CreateBranchRequest::~CreateBranchRequest() {} + +std::string CreateBranchRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateBranchRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateBranchRequest::getRepositoryId() const { + return repositoryId_; +} + +void CreateBranchRequest::setRepositoryId(const std::string &repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), repositoryId); +} + +std::string CreateBranchRequest::getAccessToken() const { + return accessToken_; +} + +void CreateBranchRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateBranchRequest::body CreateBranchRequest::getBody() const { + return body_; +} + +void CreateBranchRequest::setBody(const CreateBranchRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".ref", body.ref); + setBodyParameter(std::string("body") + ".branchName", body.branchName); +} + diff --git a/devops/src/model/CreateBranchResult.cc b/devops/src/model/CreateBranchResult.cc new file mode 100644 index 000000000..07e43b8f3 --- /dev/null +++ b/devops/src/model/CreateBranchResult.cc @@ -0,0 +1,108 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateBranchResult::CreateBranchResult() : + ServiceResult() +{} + +CreateBranchResult::CreateBranchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBranchResult::~CreateBranchResult() +{} + +void CreateBranchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["protected"].isNull()) + result_._protected = resultNode["protected"].asString() == "true"; + auto commitNode = resultNode["commit"]; + if(!commitNode["id"].isNull()) + result_.commit.id = commitNode["id"].asString(); + if(!commitNode["shortId"].isNull()) + result_.commit.shortId = commitNode["shortId"].asString(); + if(!commitNode["title"].isNull()) + result_.commit.title = commitNode["title"].asString(); + if(!commitNode["authorName"].isNull()) + result_.commit.authorName = commitNode["authorName"].asString(); + if(!commitNode["authorEmail"].isNull()) + result_.commit.authorEmail = commitNode["authorEmail"].asString(); + if(!commitNode["createdAt"].isNull()) + result_.commit.createdAt = commitNode["createdAt"].asString(); + if(!commitNode["message"].isNull()) + result_.commit.message = commitNode["message"].asString(); + if(!commitNode["authoredDate"].isNull()) + result_.commit.authoredDate = commitNode["authoredDate"].asString(); + if(!commitNode["committedDate"].isNull()) + result_.commit.committedDate = commitNode["committedDate"].asString(); + if(!commitNode["committerEmail"].isNull()) + result_.commit.committerEmail = commitNode["committerEmail"].asString(); + if(!commitNode["committerName"].isNull()) + result_.commit.committerName = commitNode["committerName"].asString(); + auto allParentIds = commitNode["parentIds"]["parent_ids"]; + for (auto value : allParentIds) + result_.commit.parentIds.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateBranchResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateBranchResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateBranchResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateBranchResult::getSuccess()const +{ + return success_; +} + +CreateBranchResult::Result CreateBranchResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateCheckRunRequest.cc b/devops/src/model/CreateCheckRunRequest.cc new file mode 100644 index 000000000..734dc4861 --- /dev/null +++ b/devops/src/model/CreateCheckRunRequest.cc @@ -0,0 +1,90 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateCheckRunRequest; + +CreateCheckRunRequest::CreateCheckRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/check_runs/create_check_run"}; + setMethod(HttpRequest::Method::Post); +} + +CreateCheckRunRequest::~CreateCheckRunRequest() {} + +std::string CreateCheckRunRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateCheckRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateCheckRunRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void CreateCheckRunRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string CreateCheckRunRequest::getAccessToken() const { + return accessToken_; +} + +void CreateCheckRunRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateCheckRunRequest::body CreateCheckRunRequest::getBody() const { + return body_; +} + +void CreateCheckRunRequest::setBody(const CreateCheckRunRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".conclusion", body.conclusion); + setBodyParameter(std::string("body") + ".output.summary", body.output.summary); + for(int dep1 = 0; dep1 != body.output.images.size(); dep1++) { + setBodyParameter(std::string("body") + ".output.images." + std::to_string(dep1 + 1) + ".imageUrl", body.output.images[dep1].imageUrl); + setBodyParameter(std::string("body") + ".output.images." + std::to_string(dep1 + 1) + ".alt", body.output.images[dep1].alt); + setBodyParameter(std::string("body") + ".output.images." + std::to_string(dep1 + 1) + ".caption", body.output.images[dep1].caption); + } + setBodyParameter(std::string("body") + ".output.text", body.output.text); + setBodyParameter(std::string("body") + ".output.title", body.output.title); + setBodyParameter(std::string("body") + ".completedAt", body.completedAt); + setBodyParameter(std::string("body") + ".detailsUrl", body.detailsUrl); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".startedAt", body.startedAt); + setBodyParameter(std::string("body") + ".externalId", body.externalId); + for(int dep1 = 0; dep1 != body.annotations.size(); dep1++) { + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".path", body.annotations[dep1].path); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".endLine", std::to_string(body.annotations[dep1].endLine)); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".startColumn", std::to_string(body.annotations[dep1].startColumn)); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".annotationLevel", body.annotations[dep1].annotationLevel); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".startLine", std::to_string(body.annotations[dep1].startLine)); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".message", body.annotations[dep1].message); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".title", body.annotations[dep1].title); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".rawDetails", body.annotations[dep1].rawDetails); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".endColumn", std::to_string(body.annotations[dep1].endColumn)); + } + setBodyParameter(std::string("body") + ".headSha", body.headSha); + setBodyParameter(std::string("body") + ".status", body.status); +} + diff --git a/devops/src/model/CreateCheckRunResult.cc b/devops/src/model/CreateCheckRunResult.cc new file mode 100644 index 000000000..2d905b4c3 --- /dev/null +++ b/devops/src/model/CreateCheckRunResult.cc @@ -0,0 +1,159 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateCheckRunResult::CreateCheckRunResult() : + ServiceResult() +{} + +CreateCheckRunResult::CreateCheckRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCheckRunResult::~CreateCheckRunResult() +{} + +void CreateCheckRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["updatedAt"].isNull()) + result_.updatedAt = resultNode["updatedAt"].asString(); + if(!resultNode["startedAt"].isNull()) + result_.startedAt = resultNode["startedAt"].asString(); + if(!resultNode["completedAt"].isNull()) + result_.completedAt = resultNode["completedAt"].asString(); + if(!resultNode["externalId"].isNull()) + result_.externalId = resultNode["externalId"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["headSha"].isNull()) + result_.headSha = resultNode["headSha"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["conclusion"].isNull()) + result_.conclusion = resultNode["conclusion"].asString(); + if(!resultNode["detailsUrl"].isNull()) + result_.detailsUrl = resultNode["detailsUrl"].asString(); + auto allannotationsNode = resultNode["annotations"]["check_run_annotations"]; + for (auto resultNodeannotationscheck_run_annotations : allannotationsNode) + { + Result::Check_run_annotations check_run_annotationsObject; + if(!resultNodeannotationscheck_run_annotations["id"].isNull()) + check_run_annotationsObject.id = std::stol(resultNodeannotationscheck_run_annotations["id"].asString()); + if(!resultNodeannotationscheck_run_annotations["path"].isNull()) + check_run_annotationsObject.path = resultNodeannotationscheck_run_annotations["path"].asString(); + if(!resultNodeannotationscheck_run_annotations["startLine"].isNull()) + check_run_annotationsObject.startLine = std::stol(resultNodeannotationscheck_run_annotations["startLine"].asString()); + if(!resultNodeannotationscheck_run_annotations["endLine"].isNull()) + check_run_annotationsObject.endLine = std::stol(resultNodeannotationscheck_run_annotations["endLine"].asString()); + if(!resultNodeannotationscheck_run_annotations["startColumn"].isNull()) + check_run_annotationsObject.startColumn = std::stol(resultNodeannotationscheck_run_annotations["startColumn"].asString()); + if(!resultNodeannotationscheck_run_annotations["endColumn"].isNull()) + check_run_annotationsObject.endColumn = std::stol(resultNodeannotationscheck_run_annotations["endColumn"].asString()); + if(!resultNodeannotationscheck_run_annotations["annotationLevel"].isNull()) + check_run_annotationsObject.annotationLevel = resultNodeannotationscheck_run_annotations["annotationLevel"].asString(); + if(!resultNodeannotationscheck_run_annotations["message"].isNull()) + check_run_annotationsObject.message = resultNodeannotationscheck_run_annotations["message"].asString(); + if(!resultNodeannotationscheck_run_annotations["title"].isNull()) + check_run_annotationsObject.title = resultNodeannotationscheck_run_annotations["title"].asString(); + if(!resultNodeannotationscheck_run_annotations["rawDetails"].isNull()) + check_run_annotationsObject.rawDetails = resultNodeannotationscheck_run_annotations["rawDetails"].asString(); + result_.annotations.push_back(check_run_annotationsObject); + } + auto checkSuiteNode = resultNode["checkSuite"]; + if(!checkSuiteNode["id"].isNull()) + result_.checkSuite.id = std::stol(checkSuiteNode["id"].asString()); + auto writerNode = resultNode["writer"]; + if(!writerNode["id"].isNull()) + result_.writer.id = writerNode["id"].asString(); + if(!writerNode["type"].isNull()) + result_.writer.type = writerNode["type"].asString(); + if(!writerNode["name"].isNull()) + result_.writer.name = writerNode["name"].asString(); + if(!writerNode["slug"].isNull()) + result_.writer.slug = writerNode["slug"].asString(); + if(!writerNode["logoUrl"].isNull()) + result_.writer.logoUrl = writerNode["logoUrl"].asString(); + auto outputNode = resultNode["output"]; + if(!outputNode["title"].isNull()) + result_.output.title = outputNode["title"].asString(); + if(!outputNode["summary"].isNull()) + result_.output.summary = outputNode["summary"].asString(); + if(!outputNode["text"].isNull()) + result_.output.text = outputNode["text"].asString(); + auto allimagesNode = outputNode["images"]["output_images"]; + for (auto outputNodeimagesoutput_images : allimagesNode) + { + Result::Output::Output_images output_imagesObject; + if(!outputNodeimagesoutput_images["alt"].isNull()) + output_imagesObject.alt = outputNodeimagesoutput_images["alt"].asString(); + if(!outputNodeimagesoutput_images["imageUrl"].isNull()) + output_imagesObject.imageUrl = outputNodeimagesoutput_images["imageUrl"].asString(); + if(!outputNodeimagesoutput_images["caption"].isNull()) + output_imagesObject.caption = outputNodeimagesoutput_images["caption"].asString(); + result_.output.images.push_back(output_imagesObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string CreateCheckRunResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateCheckRunResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateCheckRunResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateCheckRunResult::getSuccess()const +{ + return success_; +} + +CreateCheckRunResult::Result CreateCheckRunResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateCommentRequest.cc b/devops/src/model/CreateCommentRequest.cc new file mode 100644 index 000000000..bee291d5e --- /dev/null +++ b/devops/src/model/CreateCommentRequest.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateCommentRequest; + +CreateCommentRequest::CreateCommentRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/code_reviews/comments/create_comment"}; + setMethod(HttpRequest::Method::Post); +} + +CreateCommentRequest::~CreateCommentRequest() {} + +std::string CreateCommentRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateCommentRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateCommentRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void CreateCommentRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string CreateCommentRequest::getAccessToken() const { + return accessToken_; +} + +void CreateCommentRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateCommentRequest::body CreateCommentRequest::getBody() const { + return body_; +} + +void CreateCommentRequest::setBody(const CreateCommentRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".lineNumber", std::to_string(body.lineNumber)); + setBodyParameter(std::string("body") + ".filePath", body.filePath); + setBodyParameter(std::string("body") + ".draft", body.draft ? "true" : "false"); + setBodyParameter(std::string("body") + ".patchSetBizId", body.patchSetBizId); + setBodyParameter(std::string("body") + ".commentType", body.commentType); + setBodyParameter(std::string("body") + ".parentCommentBizId", body.parentCommentBizId); + setBodyParameter(std::string("body") + ".content", body.content); + setBodyParameter(std::string("body") + ".resolved", body.resolved ? "true" : "false"); +} + +long CreateCommentRequest::getLocalId() const { + return localId_; +} + +void CreateCommentRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/CreateCommentResult.cc b/devops/src/model/CreateCommentResult.cc new file mode 100644 index 000000000..3c438167f --- /dev/null +++ b/devops/src/model/CreateCommentResult.cc @@ -0,0 +1,132 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateCommentResult::CreateCommentResult() : + ServiceResult() +{} + +CreateCommentResult::CreateCommentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCommentResult::~CreateCommentResult() +{} + +void CreateCommentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["commentBizId"].isNull()) + result_.commentBizId = resultNode["commentBizId"].asString(); + if(!resultNode["commentType"].isNull()) + result_.commentType = resultNode["commentType"].asString(); + if(!resultNode["state"].isNull()) + result_.state = resultNode["state"].asString(); + if(!resultNode["resolved"].isNull()) + result_.resolved = resultNode["resolved"].asString() == "true"; + if(!resultNode["deleted"].isNull()) + result_.deleted = resultNode["deleted"].asString() == "true"; + if(!resultNode["commentTime"].isNull()) + result_.commentTime = resultNode["commentTime"].asString(); + if(!resultNode["lastEditTime"].isNull()) + result_.lastEditTime = resultNode["lastEditTime"].asString(); + if(!resultNode["content"].isNull()) + result_.content = resultNode["content"].asString(); + if(!resultNode["lineNumber"].isNull()) + result_.lineNumber = resultNode["lineNumber"].asString(); + if(!resultNode["filePath"].isNull()) + result_.filePath = resultNode["filePath"].asString(); + if(!resultNode["parentCommentBizId"].isNull()) + result_.parentCommentBizId = resultNode["parentCommentBizId"].asString(); + if(!resultNode["rootCommentBizId"].isNull()) + result_.rootCommentBizId = resultNode["rootCommentBizId"].asString(); + auto authorNode = resultNode["author"]; + if(!authorNode["aliyunPk"].isNull()) + result_.author.aliyunPk = authorNode["aliyunPk"].asString(); + if(!authorNode["name"].isNull()) + result_.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + result_.author.username = authorNode["username"].asString(); + if(!authorNode["state"].isNull()) + result_.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + result_.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["email"].isNull()) + result_.author.email = authorNode["email"].asString(); + if(!authorNode["id"].isNull()) + result_.author.id = std::stol(authorNode["id"].asString()); + auto relatedPatchSetNode = resultNode["relatedPatchSet"]; + if(!relatedPatchSetNode["patchSetNo"].isNull()) + result_.relatedPatchSet.patchSetNo = relatedPatchSetNode["patchSetNo"].asString(); + if(!relatedPatchSetNode["patchSetBizId"].isNull()) + result_.relatedPatchSet.patchSetBizId = relatedPatchSetNode["patchSetBizId"].asString(); + if(!relatedPatchSetNode["patchSetName"].isNull()) + result_.relatedPatchSet.patchSetName = relatedPatchSetNode["patchSetName"].asString(); + if(!relatedPatchSetNode["commitId"].isNull()) + result_.relatedPatchSet.commitId = relatedPatchSetNode["commitId"].asString(); + if(!relatedPatchSetNode["shortId"].isNull()) + result_.relatedPatchSet.shortId = relatedPatchSetNode["shortId"].asString(); + if(!relatedPatchSetNode["relatedMergeItemType"].isNull()) + result_.relatedPatchSet.relatedMergeItemType = relatedPatchSetNode["relatedMergeItemType"].asString(); + if(!relatedPatchSetNode["createdAt"].isNull()) + result_.relatedPatchSet.createdAt = relatedPatchSetNode["createdAt"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string CreateCommentResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateCommentResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateCommentResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateCommentResult::getSuccess()const +{ + return success_; +} + +CreateCommentResult::Result CreateCommentResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateCommitStatusRequest.cc b/devops/src/model/CreateCommitStatusRequest.cc new file mode 100644 index 000000000..162c02d7a --- /dev/null +++ b/devops/src/model/CreateCommitStatusRequest.cc @@ -0,0 +1,76 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateCommitStatusRequest; + +CreateCommitStatusRequest::CreateCommitStatusRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/repository/commit_statuses/create_commit_status"}; + setMethod(HttpRequest::Method::Post); +} + +CreateCommitStatusRequest::~CreateCommitStatusRequest() {} + +std::string CreateCommitStatusRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateCommitStatusRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateCommitStatusRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void CreateCommitStatusRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string CreateCommitStatusRequest::getAccessToken() const { + return accessToken_; +} + +void CreateCommitStatusRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateCommitStatusRequest::body CreateCommitStatusRequest::getBody() const { + return body_; +} + +void CreateCommitStatusRequest::setBody(const CreateCommitStatusRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".context", body.context); + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".state", body.state); + setBodyParameter(std::string("body") + ".targetUrl", body.targetUrl); +} + +std::string CreateCommitStatusRequest::getSha() const { + return sha_; +} + +void CreateCommitStatusRequest::setSha(const std::string &sha) { + sha_ = sha; + setParameter(std::string("sha"), sha); +} + diff --git a/devops/src/model/CreateCommitStatusResult.cc b/devops/src/model/CreateCommitStatusResult.cc new file mode 100644 index 000000000..3495541e7 --- /dev/null +++ b/devops/src/model/CreateCommitStatusResult.cc @@ -0,0 +1,99 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateCommitStatusResult::CreateCommitStatusResult() : + ServiceResult() +{} + +CreateCommitStatusResult::CreateCommitStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCommitStatusResult::~CreateCommitStatusResult() +{} + +void CreateCommitStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["sha"].isNull()) + result_.sha = resultNode["sha"].asString(); + if(!resultNode["context"].isNull()) + result_.context = resultNode["context"].asString(); + if(!resultNode["state"].isNull()) + result_.state = resultNode["state"].asString(); + if(!resultNode["targetUrl"].isNull()) + result_.targetUrl = resultNode["targetUrl"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + auto creatorNode = resultNode["creator"]; + if(!creatorNode["aliyunPk"].isNull()) + result_.creator.aliyunPk = std::stol(creatorNode["aliyunPk"].asString()); + if(!creatorNode["login"].isNull()) + result_.creator.login = creatorNode["login"].asString(); + if(!creatorNode["avatarUrl"].isNull()) + result_.creator.avatarUrl = creatorNode["avatarUrl"].asString(); + if(!creatorNode["type"].isNull()) + result_.creator.type = creatorNode["type"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string CreateCommitStatusResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateCommitStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateCommitStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateCommitStatusResult::getSuccess()const +{ + return success_; +} + +CreateCommitStatusResult::Result CreateCommitStatusResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateCommitWithMultipleFilesRequest.cc b/devops/src/model/CreateCommitWithMultipleFilesRequest.cc new file mode 100644 index 000000000..0a6377db0 --- /dev/null +++ b/devops/src/model/CreateCommitWithMultipleFilesRequest.cc @@ -0,0 +1,71 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateCommitWithMultipleFilesRequest; + +CreateCommitWithMultipleFilesRequest::CreateCommitWithMultipleFilesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/repository/commits/files"}; + setMethod(HttpRequest::Method::Post); +} + +CreateCommitWithMultipleFilesRequest::~CreateCommitWithMultipleFilesRequest() {} + +std::string CreateCommitWithMultipleFilesRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateCommitWithMultipleFilesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateCommitWithMultipleFilesRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void CreateCommitWithMultipleFilesRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string CreateCommitWithMultipleFilesRequest::getAccessToken() const { + return accessToken_; +} + +void CreateCommitWithMultipleFilesRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateCommitWithMultipleFilesRequest::body CreateCommitWithMultipleFilesRequest::getBody() const { + return body_; +} + +void CreateCommitWithMultipleFilesRequest::setBody(const CreateCommitWithMultipleFilesRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".commitMessage", body.commitMessage); + setBodyParameter(std::string("body") + ".branch", body.branch); + for(int dep1 = 0; dep1 != body.actions.size(); dep1++) { + setBodyParameter(std::string("body") + ".actions." + std::to_string(dep1 + 1) + ".filePath", body.actions[dep1].filePath); + setBodyParameter(std::string("body") + ".actions." + std::to_string(dep1 + 1) + ".action", body.actions[dep1].action); + setBodyParameter(std::string("body") + ".actions." + std::to_string(dep1 + 1) + ".content", body.actions[dep1].content); + setBodyParameter(std::string("body") + ".actions." + std::to_string(dep1 + 1) + ".previousPath", body.actions[dep1].previousPath); + } +} + diff --git a/devops/src/model/CreateCommitWithMultipleFilesResult.cc b/devops/src/model/CreateCommitWithMultipleFilesResult.cc new file mode 100644 index 000000000..b30b47f89 --- /dev/null +++ b/devops/src/model/CreateCommitWithMultipleFilesResult.cc @@ -0,0 +1,137 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateCommitWithMultipleFilesResult::CreateCommitWithMultipleFilesResult() : + ServiceResult() +{} + +CreateCommitWithMultipleFilesResult::CreateCommitWithMultipleFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCommitWithMultipleFilesResult::~CreateCommitWithMultipleFilesResult() +{} + +void CreateCommitWithMultipleFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["shortId"].isNull()) + result_.shortId = resultNode["shortId"].asString(); + if(!resultNode["title"].isNull()) + result_.title = resultNode["title"].asString(); + if(!resultNode["message"].isNull()) + result_.message = resultNode["message"].asString(); + if(!resultNode["authorName"].isNull()) + result_.authorName = resultNode["authorName"].asString(); + if(!resultNode["authorEmail"].isNull()) + result_.authorEmail = resultNode["authorEmail"].asString(); + if(!resultNode["authoredDate"].isNull()) + result_.authoredDate = resultNode["authoredDate"].asString(); + if(!resultNode["committerName"].isNull()) + result_.committerName = resultNode["committerName"].asString(); + if(!resultNode["committerEmail"].isNull()) + result_.committerEmail = resultNode["committerEmail"].asString(); + if(!resultNode["committedDate"].isNull()) + result_.committedDate = resultNode["committedDate"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + auto authorNode = resultNode["author"]; + if(!authorNode["id"].isNull()) + result_.author.id = std::stol(authorNode["id"].asString()); + if(!authorNode["aliyunPk"].isNull()) + result_.author.aliyunPk = authorNode["aliyunPk"].asString(); + if(!authorNode["name"].isNull()) + result_.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + result_.author.username = authorNode["username"].asString(); + if(!authorNode["email"].isNull()) + result_.author.email = authorNode["email"].asString(); + if(!authorNode["state"].isNull()) + result_.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + result_.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["websiteUrl"].isNull()) + result_.author.websiteUrl = authorNode["websiteUrl"].asString(); + auto committerNode = resultNode["committer"]; + if(!committerNode["id"].isNull()) + result_.committer.id = std::stol(committerNode["id"].asString()); + if(!committerNode["aliyunPk"].isNull()) + result_.committer.aliyunPk = committerNode["aliyunPk"].asString(); + if(!committerNode["name"].isNull()) + result_.committer.name = committerNode["name"].asString(); + if(!committerNode["username"].isNull()) + result_.committer.username = committerNode["username"].asString(); + if(!committerNode["email"].isNull()) + result_.committer.email = committerNode["email"].asString(); + if(!committerNode["state"].isNull()) + result_.committer.state = committerNode["state"].asString(); + if(!committerNode["avatarUrl"].isNull()) + result_.committer.avatarUrl = committerNode["avatarUrl"].asString(); + if(!committerNode["websiteUrl"].isNull()) + result_.committer.websiteUrl = committerNode["websiteUrl"].asString(); + auto allParentIds = resultNode["parentIds"]["parent_ids_node"]; + for (auto value : allParentIds) + result_.parentIds.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + +} + +std::string CreateCommitWithMultipleFilesResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateCommitWithMultipleFilesResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string CreateCommitWithMultipleFilesResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateCommitWithMultipleFilesResult::getSuccess()const +{ + return success_; +} + +CreateCommitWithMultipleFilesResult::Result CreateCommitWithMultipleFilesResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateDeployKeyRequest.cc b/devops/src/model/CreateDeployKeyRequest.cc new file mode 100644 index 000000000..1cde9276a --- /dev/null +++ b/devops/src/model/CreateDeployKeyRequest.cc @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateDeployKeyRequest; + +CreateDeployKeyRequest::CreateDeployKeyRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/keys/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateDeployKeyRequest::~CreateDeployKeyRequest() {} + +std::string CreateDeployKeyRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateDeployKeyRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long CreateDeployKeyRequest::getRepositoryId() const { + return repositoryId_; +} + +void CreateDeployKeyRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string CreateDeployKeyRequest::getAccessToken() const { + return accessToken_; +} + +void CreateDeployKeyRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateDeployKeyRequest::body CreateDeployKeyRequest::getBody() const { + return body_; +} + +void CreateDeployKeyRequest::setBody(const CreateDeployKeyRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".title", body.title); + setBodyParameter(std::string("body") + ".key", body.key); +} + diff --git a/devops/src/model/CreateDeployKeyResult.cc b/devops/src/model/CreateDeployKeyResult.cc new file mode 100644 index 000000000..2810f6aed --- /dev/null +++ b/devops/src/model/CreateDeployKeyResult.cc @@ -0,0 +1,88 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateDeployKeyResult::CreateDeployKeyResult() : + ServiceResult() +{} + +CreateDeployKeyResult::CreateDeployKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDeployKeyResult::~CreateDeployKeyResult() +{} + +void CreateDeployKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["title"].isNull()) + result_.title = resultNode["title"].asString(); + if(!resultNode["key"].isNull()) + result_.key = resultNode["key"].asString(); + if(!resultNode["fingerprint"].isNull()) + result_.fingerprint = resultNode["fingerprint"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateDeployKeyResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateDeployKeyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateDeployKeyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateDeployKeyResult::getSuccess()const +{ + return success_; +} + +CreateDeployKeyResult::Result CreateDeployKeyResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateFileRequest.cc b/devops/src/model/CreateFileRequest.cc new file mode 100644 index 000000000..fd9635824 --- /dev/null +++ b/devops/src/model/CreateFileRequest.cc @@ -0,0 +1,68 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateFileRequest; + +CreateFileRequest::CreateFileRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/files"}; + setMethod(HttpRequest::Method::Post); +} + +CreateFileRequest::~CreateFileRequest() {} + +std::string CreateFileRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateFileRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long CreateFileRequest::getRepositoryId() const { + return repositoryId_; +} + +void CreateFileRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string CreateFileRequest::getAccessToken() const { + return accessToken_; +} + +void CreateFileRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateFileRequest::body CreateFileRequest::getBody() const { + return body_; +} + +void CreateFileRequest::setBody(const CreateFileRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".filePath", body.filePath); + setBodyParameter(std::string("body") + ".encoding", body.encoding); + setBodyParameter(std::string("body") + ".commitMessage", body.commitMessage); + setBodyParameter(std::string("body") + ".content", body.content); + setBodyParameter(std::string("body") + ".branchName", body.branchName); +} + diff --git a/devops/src/model/CreateFileResult.cc b/devops/src/model/CreateFileResult.cc new file mode 100644 index 000000000..5db8fac87 --- /dev/null +++ b/devops/src/model/CreateFileResult.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateFileResult::CreateFileResult() : + ServiceResult() +{} + +CreateFileResult::CreateFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFileResult::~CreateFileResult() +{} + +void CreateFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["filePath"].isNull()) + result_.filePath = resultNode["filePath"].asString(); + if(!resultNode["branchName"].isNull()) + result_.branchName = resultNode["branchName"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateFileResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateFileResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateFileResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateFileResult::getSuccess()const +{ + return success_; +} + +CreateFileResult::Result CreateFileResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateFlowTagGroupRequest.cc b/devops/src/model/CreateFlowTagGroupRequest.cc new file mode 100644 index 000000000..5f2e9cbde --- /dev/null +++ b/devops/src/model/CreateFlowTagGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateFlowTagGroupRequest; + +CreateFlowTagGroupRequest::CreateFlowTagGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/flow/tagGroups"}; + setMethod(HttpRequest::Method::Post); +} + +CreateFlowTagGroupRequest::~CreateFlowTagGroupRequest() {} + +std::string CreateFlowTagGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateFlowTagGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateFlowTagGroupRequest::getName() const { + return name_; +} + +void CreateFlowTagGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); +} + diff --git a/devops/src/model/CreateFlowTagGroupResult.cc b/devops/src/model/CreateFlowTagGroupResult.cc new file mode 100644 index 000000000..3b83d8a93 --- /dev/null +++ b/devops/src/model/CreateFlowTagGroupResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateFlowTagGroupResult::CreateFlowTagGroupResult() : + ServiceResult() +{} + +CreateFlowTagGroupResult::CreateFlowTagGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFlowTagGroupResult::~CreateFlowTagGroupResult() +{} + +void CreateFlowTagGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["id"].isNull()) + id_ = std::stol(value["id"].asString()); + +} + +std::string CreateFlowTagGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateFlowTagGroupResult::getErrorCode()const +{ + return errorCode_; +} + +long CreateFlowTagGroupResult::getId()const +{ + return id_; +} + +std::string CreateFlowTagGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateFlowTagGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateFlowTagRequest.cc b/devops/src/model/CreateFlowTagRequest.cc new file mode 100644 index 000000000..c81c5e468 --- /dev/null +++ b/devops/src/model/CreateFlowTagRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateFlowTagRequest; + +CreateFlowTagRequest::CreateFlowTagRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/flow/tags"}; + setMethod(HttpRequest::Method::Post); +} + +CreateFlowTagRequest::~CreateFlowTagRequest() {} + +std::string CreateFlowTagRequest::getColor() const { + return color_; +} + +void CreateFlowTagRequest::setColor(const std::string &color) { + color_ = color; + setParameter(std::string("color"), color); +} + +long CreateFlowTagRequest::getFlowTagGroupId() const { + return flowTagGroupId_; +} + +void CreateFlowTagRequest::setFlowTagGroupId(long flowTagGroupId) { + flowTagGroupId_ = flowTagGroupId; + setParameter(std::string("flowTagGroupId"), std::to_string(flowTagGroupId)); +} + +std::string CreateFlowTagRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateFlowTagRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateFlowTagRequest::getName() const { + return name_; +} + +void CreateFlowTagRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); +} + diff --git a/devops/src/model/CreateFlowTagResult.cc b/devops/src/model/CreateFlowTagResult.cc new file mode 100644 index 000000000..2ed622e5a --- /dev/null +++ b/devops/src/model/CreateFlowTagResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateFlowTagResult::CreateFlowTagResult() : + ServiceResult() +{} + +CreateFlowTagResult::CreateFlowTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFlowTagResult::~CreateFlowTagResult() +{} + +void CreateFlowTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["id"].isNull()) + id_ = std::stol(value["id"].asString()); + +} + +std::string CreateFlowTagResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateFlowTagResult::getErrorCode()const +{ + return errorCode_; +} + +long CreateFlowTagResult::getId()const +{ + return id_; +} + +std::string CreateFlowTagResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateFlowTagResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateHostGroupRequest.cc b/devops/src/model/CreateHostGroupRequest.cc new file mode 100644 index 000000000..8c26dc9c6 --- /dev/null +++ b/devops/src/model/CreateHostGroupRequest.cc @@ -0,0 +1,127 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateHostGroupRequest; + +CreateHostGroupRequest::CreateHostGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/hostGroups"}; + setMethod(HttpRequest::Method::Post); +} + +CreateHostGroupRequest::~CreateHostGroupRequest() {} + +long CreateHostGroupRequest::getServiceConnectionId() const { + return serviceConnectionId_; +} + +void CreateHostGroupRequest::setServiceConnectionId(long serviceConnectionId) { + serviceConnectionId_ = serviceConnectionId; + setBodyParameter(std::string("serviceConnectionId"), std::to_string(serviceConnectionId)); +} + +std::string CreateHostGroupRequest::getMachineInfos() const { + return machineInfos_; +} + +void CreateHostGroupRequest::setMachineInfos(const std::string &machineInfos) { + machineInfos_ = machineInfos; + setBodyParameter(std::string("machineInfos"), machineInfos); +} + +std::string CreateHostGroupRequest::getTagIds() const { + return tagIds_; +} + +void CreateHostGroupRequest::setTagIds(const std::string &tagIds) { + tagIds_ = tagIds; + setBodyParameter(std::string("tagIds"), tagIds); +} + +std::string CreateHostGroupRequest::getAliyunRegion() const { + return aliyunRegion_; +} + +void CreateHostGroupRequest::setAliyunRegion(const std::string &aliyunRegion) { + aliyunRegion_ = aliyunRegion; + setBodyParameter(std::string("aliyunRegion"), aliyunRegion); +} + +std::string CreateHostGroupRequest::getEnvId() const { + return envId_; +} + +void CreateHostGroupRequest::setEnvId(const std::string &envId) { + envId_ = envId; + setBodyParameter(std::string("envId"), envId); +} + +std::string CreateHostGroupRequest::getType() const { + return type_; +} + +void CreateHostGroupRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("type"), type); +} + +std::string CreateHostGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateHostGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateHostGroupRequest::getEcsLabelKey() const { + return ecsLabelKey_; +} + +void CreateHostGroupRequest::setEcsLabelKey(const std::string &ecsLabelKey) { + ecsLabelKey_ = ecsLabelKey; + setBodyParameter(std::string("ecsLabelKey"), ecsLabelKey); +} + +std::string CreateHostGroupRequest::getName() const { + return name_; +} + +void CreateHostGroupRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("name"), name); +} + +std::string CreateHostGroupRequest::getEcsLabelValue() const { + return ecsLabelValue_; +} + +void CreateHostGroupRequest::setEcsLabelValue(const std::string &ecsLabelValue) { + ecsLabelValue_ = ecsLabelValue; + setBodyParameter(std::string("ecsLabelValue"), ecsLabelValue); +} + +std::string CreateHostGroupRequest::getEcsType() const { + return ecsType_; +} + +void CreateHostGroupRequest::setEcsType(const std::string &ecsType) { + ecsType_ = ecsType; + setBodyParameter(std::string("ecsType"), ecsType); +} + diff --git a/devops/src/model/CreateHostGroupResult.cc b/devops/src/model/CreateHostGroupResult.cc new file mode 100644 index 000000000..13d68ea2a --- /dev/null +++ b/devops/src/model/CreateHostGroupResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateHostGroupResult::CreateHostGroupResult() : + ServiceResult() +{} + +CreateHostGroupResult::CreateHostGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHostGroupResult::~CreateHostGroupResult() +{} + +void CreateHostGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["hostGroupId"].isNull()) + hostGroupId_ = std::stol(value["hostGroupId"].asString()); + +} + +std::string CreateHostGroupResult::getRequestId()const +{ + return requestId_; +} + +long CreateHostGroupResult::getHostGroupId()const +{ + return hostGroupId_; +} + +std::string CreateHostGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateHostGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateHostGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateMergeRequestRequest.cc b/devops/src/model/CreateMergeRequestRequest.cc new file mode 100644 index 000000000..46a540e7f --- /dev/null +++ b/devops/src/model/CreateMergeRequestRequest.cc @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateMergeRequestRequest; + +CreateMergeRequestRequest::CreateMergeRequestRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/merge_requests"}; + setMethod(HttpRequest::Method::Post); +} + +CreateMergeRequestRequest::~CreateMergeRequestRequest() {} + +std::string CreateMergeRequestRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateMergeRequestRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long CreateMergeRequestRequest::getRepositoryId() const { + return repositoryId_; +} + +void CreateMergeRequestRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string CreateMergeRequestRequest::getAccessToken() const { + return accessToken_; +} + +void CreateMergeRequestRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateMergeRequestRequest::body CreateMergeRequestRequest::getBody() const { + return body_; +} + +void CreateMergeRequestRequest::setBody(const CreateMergeRequestRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".targetProjectId", std::to_string(body.targetProjectId)); + for(int dep1 = 0; dep1 != body.reviewerIds.size(); dep1++) { + setBodyParameter(std::string("body") + ".reviewerIds." + std::to_string(dep1 + 1), body.reviewerIds[dep1]); + } + setBodyParameter(std::string("body") + ".createFrom", body.createFrom); + setBodyParameter(std::string("body") + ".sourceProjectId", std::to_string(body.sourceProjectId)); + setBodyParameter(std::string("body") + ".sourceBranch", body.sourceBranch); + setBodyParameter(std::string("body") + ".workItemIds", body.workItemIds); + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".title", body.title); + setBodyParameter(std::string("body") + ".targetBranch", body.targetBranch); +} + diff --git a/devops/src/model/CreateMergeRequestResult.cc b/devops/src/model/CreateMergeRequestResult.cc new file mode 100644 index 000000000..cc042d085 --- /dev/null +++ b/devops/src/model/CreateMergeRequestResult.cc @@ -0,0 +1,171 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateMergeRequestResult::CreateMergeRequestResult() : + ServiceResult() +{} + +CreateMergeRequestResult::CreateMergeRequestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMergeRequestResult::~CreateMergeRequestResult() +{} + +void CreateMergeRequestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["mrBizId"].isNull()) + result_.mrBizId = resultNode["mrBizId"].asString(); + if(!resultNode["projectId"].isNull()) + result_.projectId = std::stol(resultNode["projectId"].asString()); + if(!resultNode["localId"].isNull()) + result_.localId = std::stol(resultNode["localId"].asString()); + if(!resultNode["createTime"].isNull()) + result_.createTime = resultNode["createTime"].asString(); + if(!resultNode["updateTime"].isNull()) + result_.updateTime = resultNode["updateTime"].asString(); + if(!resultNode["mrType"].isNull()) + result_.mrType = resultNode["mrType"].asString(); + if(!resultNode["sourceProjectId"].isNull()) + result_.sourceProjectId = std::stol(resultNode["sourceProjectId"].asString()); + if(!resultNode["sourceBranch"].isNull()) + result_.sourceBranch = resultNode["sourceBranch"].asString(); + if(!resultNode["targetProjectId"].isNull()) + result_.targetProjectId = std::stol(resultNode["targetProjectId"].asString()); + if(!resultNode["targetBranch"].isNull()) + result_.targetBranch = resultNode["targetBranch"].asString(); + if(!resultNode["title"].isNull()) + result_.title = resultNode["title"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["createFrom"].isNull()) + result_.createFrom = resultNode["createFrom"].asString(); + if(!resultNode["ahead"].isNull()) + result_.ahead = std::stoi(resultNode["ahead"].asString()); + if(!resultNode["behind"].isNull()) + result_.behind = std::stoi(resultNode["behind"].asString()); + if(!resultNode["detailUrl"].isNull()) + result_.detailUrl = resultNode["detailUrl"].asString(); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["allRequirementsPass"].isNull()) + result_.allRequirementsPass = resultNode["allRequirementsPass"].asString() == "true"; + if(!resultNode["supportMergeFastForwardOnly"].isNull()) + result_.supportMergeFastForwardOnly = resultNode["supportMergeFastForwardOnly"].asString() == "true"; + auto allreviewersNode = resultNode["reviewers"]["reviewersItem"]; + for (auto resultNodereviewersreviewersItem : allreviewersNode) + { + Result::ReviewersItem reviewersItemObject; + if(!resultNodereviewersreviewersItem["id"].isNull()) + reviewersItemObject.id = std::stol(resultNodereviewersreviewersItem["id"].asString()); + if(!resultNodereviewersreviewersItem["name"].isNull()) + reviewersItemObject.name = resultNodereviewersreviewersItem["name"].asString(); + if(!resultNodereviewersreviewersItem["username"].isNull()) + reviewersItemObject.username = resultNodereviewersreviewersItem["username"].asString(); + if(!resultNodereviewersreviewersItem["state"].isNull()) + reviewersItemObject.state = resultNodereviewersreviewersItem["state"].asString(); + if(!resultNodereviewersreviewersItem["avatarUrl"].isNull()) + reviewersItemObject.avatarUrl = resultNodereviewersreviewersItem["avatarUrl"].asString(); + if(!resultNodereviewersreviewersItem["email"].isNull()) + reviewersItemObject.email = resultNodereviewersreviewersItem["email"].asString(); + if(!resultNodereviewersreviewersItem["hasReviewed"].isNull()) + reviewersItemObject.hasReviewed = resultNodereviewersreviewersItem["hasReviewed"].asString() == "true"; + if(!resultNodereviewersreviewersItem["reviewOpinionStatus"].isNull()) + reviewersItemObject.reviewOpinionStatus = resultNodereviewersreviewersItem["reviewOpinionStatus"].asString(); + result_.reviewers.push_back(reviewersItemObject); + } + auto allsubscribersNode = resultNode["subscribers"]["subscribersItem"]; + for (auto resultNodesubscriberssubscribersItem : allsubscribersNode) + { + Result::SubscribersItem subscribersItemObject; + if(!resultNodesubscriberssubscribersItem["id"].isNull()) + subscribersItemObject.id = std::stol(resultNodesubscriberssubscribersItem["id"].asString()); + if(!resultNodesubscriberssubscribersItem["name"].isNull()) + subscribersItemObject.name = resultNodesubscriberssubscribersItem["name"].asString(); + if(!resultNodesubscriberssubscribersItem["username"].isNull()) + subscribersItemObject.username = resultNodesubscriberssubscribersItem["username"].asString(); + if(!resultNodesubscriberssubscribersItem["state"].isNull()) + subscribersItemObject.state = resultNodesubscriberssubscribersItem["state"].asString(); + if(!resultNodesubscriberssubscribersItem["avatarUrl"].isNull()) + subscribersItemObject.avatarUrl = resultNodesubscriberssubscribersItem["avatarUrl"].asString(); + if(!resultNodesubscriberssubscribersItem["email"].isNull()) + subscribersItemObject.email = resultNodesubscriberssubscribersItem["email"].asString(); + result_.subscribers.push_back(subscribersItemObject); + } + auto authorNode = resultNode["author"]; + if(!authorNode["id"].isNull()) + result_.author.id = std::stol(authorNode["id"].asString()); + if(!authorNode["name"].isNull()) + result_.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + result_.author.username = authorNode["username"].asString(); + if(!authorNode["state"].isNull()) + result_.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + result_.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["email"].isNull()) + result_.author.email = authorNode["email"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateMergeRequestResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateMergeRequestResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateMergeRequestResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateMergeRequestResult::getSuccess()const +{ + return success_; +} + +CreateMergeRequestResult::Result CreateMergeRequestResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateOAuthTokenRequest.cc b/devops/src/model/CreateOAuthTokenRequest.cc new file mode 100644 index 000000000..722355cc4 --- /dev/null +++ b/devops/src/model/CreateOAuthTokenRequest.cc @@ -0,0 +1,42 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateOAuthTokenRequest; + +CreateOAuthTokenRequest::CreateOAuthTokenRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/login/oauth/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateOAuthTokenRequest::~CreateOAuthTokenRequest() {} + +CreateOAuthTokenRequest::body CreateOAuthTokenRequest::getBody() const { + return body_; +} + +void CreateOAuthTokenRequest::setBody(const CreateOAuthTokenRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".clientId", body.clientId); + setBodyParameter(std::string("body") + ".code", body.code); + setBodyParameter(std::string("body") + ".clientSecret", body.clientSecret); + setBodyParameter(std::string("body") + ".scope", body.scope); + setBodyParameter(std::string("body") + ".login", body.login); + setBodyParameter(std::string("body") + ".grantType", body.grantType); +} + diff --git a/devops/src/model/CreateOAuthTokenResult.cc b/devops/src/model/CreateOAuthTokenResult.cc new file mode 100644 index 000000000..3ba184475 --- /dev/null +++ b/devops/src/model/CreateOAuthTokenResult.cc @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateOAuthTokenResult::CreateOAuthTokenResult() : + ServiceResult() +{} + +CreateOAuthTokenResult::CreateOAuthTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOAuthTokenResult::~CreateOAuthTokenResult() +{} + +void CreateOAuthTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["accessToken"].isNull()) + result_.accessToken = resultNode["accessToken"].asString(); + if(!resultNode["scope"].isNull()) + result_.scope = resultNode["scope"].asString(); + if(!resultNode["tokenType"].isNull()) + result_.tokenType = resultNode["tokenType"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +std::string CreateOAuthTokenResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateOAuthTokenResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateOAuthTokenResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateOAuthTokenResult::getSuccess()const +{ + return success_; +} + +CreateOAuthTokenResult::Result CreateOAuthTokenResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreatePipelineGroupRequest.cc b/devops/src/model/CreatePipelineGroupRequest.cc new file mode 100644 index 000000000..ecf0e0fad --- /dev/null +++ b/devops/src/model/CreatePipelineGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreatePipelineGroupRequest; + +CreatePipelineGroupRequest::CreatePipelineGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelineGroups"}; + setMethod(HttpRequest::Method::Post); +} + +CreatePipelineGroupRequest::~CreatePipelineGroupRequest() {} + +std::string CreatePipelineGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void CreatePipelineGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreatePipelineGroupRequest::getName() const { + return name_; +} + +void CreatePipelineGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); +} + diff --git a/devops/src/model/CreatePipelineGroupResult.cc b/devops/src/model/CreatePipelineGroupResult.cc new file mode 100644 index 000000000..eae65184d --- /dev/null +++ b/devops/src/model/CreatePipelineGroupResult.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreatePipelineGroupResult::CreatePipelineGroupResult() : + ServiceResult() +{} + +CreatePipelineGroupResult::CreatePipelineGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePipelineGroupResult::~CreatePipelineGroupResult() +{} + +void CreatePipelineGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto pipelineGroupNode = value["pipelineGroup"]; + if(!pipelineGroupNode["id"].isNull()) + pipelineGroup_.id = std::stol(pipelineGroupNode["id"].asString()); + if(!pipelineGroupNode["name"].isNull()) + pipelineGroup_.name = pipelineGroupNode["name"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string CreatePipelineGroupResult::getRequestId()const +{ + return requestId_; +} + +CreatePipelineGroupResult::PipelineGroup CreatePipelineGroupResult::getPipelineGroup()const +{ + return pipelineGroup_; +} + +std::string CreatePipelineGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreatePipelineGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreatePipelineGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreatePipelineRequest.cc b/devops/src/model/CreatePipelineRequest.cc new file mode 100644 index 000000000..dddff90ca --- /dev/null +++ b/devops/src/model/CreatePipelineRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreatePipelineRequest; + +CreatePipelineRequest::CreatePipelineRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines"}; + setMethod(HttpRequest::Method::Post); +} + +CreatePipelineRequest::~CreatePipelineRequest() {} + +std::string CreatePipelineRequest::getContent() const { + return content_; +} + +void CreatePipelineRequest::setContent(const std::string &content) { + content_ = content; + setBodyParameter(std::string("content"), content); +} + +std::string CreatePipelineRequest::getOrganizationId() const { + return organizationId_; +} + +void CreatePipelineRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreatePipelineRequest::getName() const { + return name_; +} + +void CreatePipelineRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("name"), name); +} + diff --git a/devops/src/model/CreatePipelineResult.cc b/devops/src/model/CreatePipelineResult.cc new file mode 100644 index 000000000..861effb03 --- /dev/null +++ b/devops/src/model/CreatePipelineResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreatePipelineResult::CreatePipelineResult() : + ServiceResult() +{} + +CreatePipelineResult::CreatePipelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePipelineResult::~CreatePipelineResult() +{} + +void CreatePipelineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["pipelinId"].isNull()) + pipelinId_ = std::stol(value["pipelinId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string CreatePipelineResult::getRequestId()const +{ + return requestId_; +} + +long CreatePipelineResult::getPipelinId()const +{ + return pipelinId_; +} + +std::string CreatePipelineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreatePipelineResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreatePipelineResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateProjectLabelRequest.cc b/devops/src/model/CreateProjectLabelRequest.cc new file mode 100644 index 000000000..acf33e5d0 --- /dev/null +++ b/devops/src/model/CreateProjectLabelRequest.cc @@ -0,0 +1,66 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateProjectLabelRequest; + +CreateProjectLabelRequest::CreateProjectLabelRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/labels"}; + setMethod(HttpRequest::Method::Post); +} + +CreateProjectLabelRequest::~CreateProjectLabelRequest() {} + +std::string CreateProjectLabelRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateProjectLabelRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateProjectLabelRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void CreateProjectLabelRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string CreateProjectLabelRequest::getAccessToken() const { + return accessToken_; +} + +void CreateProjectLabelRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateProjectLabelRequest::body CreateProjectLabelRequest::getBody() const { + return body_; +} + +void CreateProjectLabelRequest::setBody(const CreateProjectLabelRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".color", body.color); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".description", body.description); +} + diff --git a/devops/src/model/CreateProjectLabelResult.cc b/devops/src/model/CreateProjectLabelResult.cc new file mode 100644 index 000000000..35537317b --- /dev/null +++ b/devops/src/model/CreateProjectLabelResult.cc @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateProjectLabelResult::CreateProjectLabelResult() : + ServiceResult() +{} + +CreateProjectLabelResult::CreateProjectLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectLabelResult::~CreateProjectLabelResult() +{} + +void CreateProjectLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["color"].isNull()) + result_.color = resultNode["color"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string CreateProjectLabelResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateProjectLabelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateProjectLabelResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateProjectLabelResult::getSuccess()const +{ + return success_; +} + +CreateProjectLabelResult::Result CreateProjectLabelResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateProjectRequest.cc b/devops/src/model/CreateProjectRequest.cc new file mode 100644 index 000000000..4374ded38 --- /dev/null +++ b/devops/src/model/CreateProjectRequest.cc @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateProjectRequest; + +CreateProjectRequest::CreateProjectRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/projects/createProject"}; + setMethod(HttpRequest::Method::Post); +} + +CreateProjectRequest::~CreateProjectRequest() {} + +CreateProjectRequest::body CreateProjectRequest::getBody() const { + return body_; +} + +void CreateProjectRequest::setBody(const CreateProjectRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".templateIdentifier", body.templateIdentifier); + setBodyParameter(std::string("body") + ".scope", body.scope); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".customCode", body.customCode); +} + +std::string CreateProjectRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateProjectRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateProjectResult.cc b/devops/src/model/CreateProjectResult.cc new file mode 100644 index 000000000..39174cb23 --- /dev/null +++ b/devops/src/model/CreateProjectResult.cc @@ -0,0 +1,110 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateProjectResult::CreateProjectResult() : + ServiceResult() +{} + +CreateProjectResult::CreateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectResult::~CreateProjectResult() +{} + +void CreateProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto projectNode = value["project"]; + if(!projectNode["categoryIdentifier"].isNull()) + project_.categoryIdentifier = projectNode["categoryIdentifier"].asString(); + if(!projectNode["creator"].isNull()) + project_.creator = projectNode["creator"].asString(); + if(!projectNode["customCode"].isNull()) + project_.customCode = projectNode["customCode"].asString(); + if(!projectNode["description"].isNull()) + project_.description = projectNode["description"].asString(); + if(!projectNode["gmtCreate"].isNull()) + project_.gmtCreate = std::stol(projectNode["gmtCreate"].asString()); + if(!projectNode["gmtModified"].isNull()) + project_.gmtModified = std::stol(projectNode["gmtModified"].asString()); + if(!projectNode["icon"].isNull()) + project_.icon = projectNode["icon"].asString(); + if(!projectNode["identifier"].isNull()) + project_.identifier = projectNode["identifier"].asString(); + if(!projectNode["logicalStatus"].isNull()) + project_.logicalStatus = projectNode["logicalStatus"].asString(); + if(!projectNode["modifier"].isNull()) + project_.modifier = projectNode["modifier"].asString(); + if(!projectNode["name"].isNull()) + project_.name = projectNode["name"].asString(); + if(!projectNode["organizationIdentifier"].isNull()) + project_.organizationIdentifier = projectNode["organizationIdentifier"].asString(); + if(!projectNode["scope"].isNull()) + project_.scope = projectNode["scope"].asString(); + if(!projectNode["statusIdentifier"].isNull()) + project_.statusIdentifier = projectNode["statusIdentifier"].asString(); + if(!projectNode["statusStageIdentifier"].isNull()) + project_.statusStageIdentifier = projectNode["statusStageIdentifier"].asString(); + if(!projectNode["typeIdentifier"].isNull()) + project_.typeIdentifier = projectNode["typeIdentifier"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +CreateProjectResult::Project CreateProjectResult::getProject()const +{ + return project_; +} + +std::string CreateProjectResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateProjectResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string CreateProjectResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateProjectResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateProtectdBranchRequest.cc b/devops/src/model/CreateProtectdBranchRequest.cc new file mode 100644 index 000000000..ab54e9ccb --- /dev/null +++ b/devops/src/model/CreateProtectdBranchRequest.cc @@ -0,0 +1,103 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateProtectdBranchRequest; + +CreateProtectdBranchRequest::CreateProtectdBranchRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/protect_branches"}; + setMethod(HttpRequest::Method::Post); +} + +CreateProtectdBranchRequest::~CreateProtectdBranchRequest() {} + +std::string CreateProtectdBranchRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateProtectdBranchRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long CreateProtectdBranchRequest::getRepositoryId() const { + return repositoryId_; +} + +void CreateProtectdBranchRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string CreateProtectdBranchRequest::getAccessToken() const { + return accessToken_; +} + +void CreateProtectdBranchRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateProtectdBranchRequest::body CreateProtectdBranchRequest::getBody() const { + return body_; +} + +void CreateProtectdBranchRequest::setBody(const CreateProtectdBranchRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.allowPushRoles.size(); dep1++) { + setBodyParameter(std::string("body") + ".allowPushRoles." + std::to_string(dep1 + 1), std::to_string(body.allowPushRoles[dep1])); + } + setBodyParameter(std::string("body") + ".testSettingDTO.sensitiveInfoDetection.message", body.testSettingDTO.sensitiveInfoDetection.message); + setBodyParameter(std::string("body") + ".testSettingDTO.sensitiveInfoDetection.enabled", body.testSettingDTO.sensitiveInfoDetection.enabled ? "true" : "false"); + setBodyParameter(std::string("body") + ".testSettingDTO.isRequired", body.testSettingDTO.isRequired ? "true" : "false"); + setBodyParameter(std::string("body") + ".testSettingDTO.checkTaskQualityConfig.bizNo", body.testSettingDTO.checkTaskQualityConfig.bizNo); + setBodyParameter(std::string("body") + ".testSettingDTO.checkTaskQualityConfig.taskName", body.testSettingDTO.checkTaskQualityConfig.taskName); + setBodyParameter(std::string("body") + ".testSettingDTO.checkTaskQualityConfig.message", body.testSettingDTO.checkTaskQualityConfig.message); + setBodyParameter(std::string("body") + ".testSettingDTO.checkTaskQualityConfig.enabled", body.testSettingDTO.checkTaskQualityConfig.enabled ? "true" : "false"); + setBodyParameter(std::string("body") + ".testSettingDTO.codeGuidelinesDetection.message", body.testSettingDTO.codeGuidelinesDetection.message); + setBodyParameter(std::string("body") + ".testSettingDTO.codeGuidelinesDetection.enabled", body.testSettingDTO.codeGuidelinesDetection.enabled ? "true" : "false"); + for(int dep1 = 0; dep1 != body.testSettingDTO.checkConfig.checkItems.size(); dep1++) { + setBodyParameter(std::string("body") + ".testSettingDTO.checkConfig.checkItems." + std::to_string(dep1 + 1) + ".isRequired", body.testSettingDTO.checkConfig.checkItems[dep1].isRequired ? "true" : "false"); + setBodyParameter(std::string("body") + ".testSettingDTO.checkConfig.checkItems." + std::to_string(dep1 + 1) + ".name", body.testSettingDTO.checkConfig.checkItems[dep1].name); + } + for(int dep1 = 0; dep1 != body.allowPushUserIds.size(); dep1++) { + setBodyParameter(std::string("body") + ".allowPushUserIds." + std::to_string(dep1 + 1), body.allowPushUserIds[dep1]); + } + for(int dep1 = 0; dep1 != body.allowMergeUserIds.size(); dep1++) { + setBodyParameter(std::string("body") + ".allowMergeUserIds." + std::to_string(dep1 + 1), body.allowMergeUserIds[dep1]); + } + setBodyParameter(std::string("body") + ".mergeRequestSetting.mrMode", body.mergeRequestSetting.mrMode); + for(int dep1 = 0; dep1 != body.mergeRequestSetting.defaultAssignees.size(); dep1++) { + setBodyParameter(std::string("body") + ".mergeRequestSetting.defaultAssignees." + std::to_string(dep1 + 1), body.mergeRequestSetting.defaultAssignees[dep1]); + } + setBodyParameter(std::string("body") + ".mergeRequestSetting.minimumApproval", std::to_string(body.mergeRequestSetting.minimumApproval)); + setBodyParameter(std::string("body") + ".mergeRequestSetting.isRequired", body.mergeRequestSetting.isRequired ? "true" : "false"); + setBodyParameter(std::string("body") + ".mergeRequestSetting.isRequireDiscussionProcessed", body.mergeRequestSetting.isRequireDiscussionProcessed ? "true" : "false"); + for(int dep1 = 0; dep1 != body.mergeRequestSetting.allowMergeRequestRoles.size(); dep1++) { + setBodyParameter(std::string("body") + ".mergeRequestSetting.allowMergeRequestRoles." + std::to_string(dep1 + 1), std::to_string(body.mergeRequestSetting.allowMergeRequestRoles[dep1])); + } + setBodyParameter(std::string("body") + ".mergeRequestSetting.whiteList", body.mergeRequestSetting.whiteList); + setBodyParameter(std::string("body") + ".mergeRequestSetting.isResetApprovalWhenNewPush", body.mergeRequestSetting.isResetApprovalWhenNewPush ? "true" : "false"); + setBodyParameter(std::string("body") + ".mergeRequestSetting.isAllowSelfApproval", body.mergeRequestSetting.isAllowSelfApproval ? "true" : "false"); + setBodyParameter(std::string("body") + ".id", std::to_string(body.id)); + setBodyParameter(std::string("body") + ".branch", body.branch); + for(int dep1 = 0; dep1 != body.allowMergeRoles.size(); dep1++) { + setBodyParameter(std::string("body") + ".allowMergeRoles." + std::to_string(dep1 + 1), std::to_string(body.allowMergeRoles[dep1])); + } +} + diff --git a/devops/src/model/CreateProtectdBranchResult.cc b/devops/src/model/CreateProtectdBranchResult.cc new file mode 100644 index 000000000..f64eb9424 --- /dev/null +++ b/devops/src/model/CreateProtectdBranchResult.cc @@ -0,0 +1,148 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateProtectdBranchResult::CreateProtectdBranchResult() : + ServiceResult() +{} + +CreateProtectdBranchResult::CreateProtectdBranchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProtectdBranchResult::~CreateProtectdBranchResult() +{} + +void CreateProtectdBranchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["branch"].isNull()) + result_.branch = resultNode["branch"].asString(); + auto mergeRequestSettingNode = resultNode["mergeRequestSetting"]; + if(!mergeRequestSettingNode["isRequired"].isNull()) + result_.mergeRequestSetting.isRequired = mergeRequestSettingNode["isRequired"].asString() == "true"; + if(!mergeRequestSettingNode["mrMode"].isNull()) + result_.mergeRequestSetting.mrMode = mergeRequestSettingNode["mrMode"].asString(); + if(!mergeRequestSettingNode["isAllowSelfApproval"].isNull()) + result_.mergeRequestSetting.isAllowSelfApproval = mergeRequestSettingNode["isAllowSelfApproval"].asString() == "true"; + if(!mergeRequestSettingNode["isRequireDiscussionProcessed"].isNull()) + result_.mergeRequestSetting.isRequireDiscussionProcessed = mergeRequestSettingNode["isRequireDiscussionProcessed"].asString() == "true"; + if(!mergeRequestSettingNode["isResetApprovalWhenNewPush"].isNull()) + result_.mergeRequestSetting.isResetApprovalWhenNewPush = mergeRequestSettingNode["isResetApprovalWhenNewPush"].asString() == "true"; + if(!mergeRequestSettingNode["minimumApproval"].isNull()) + result_.mergeRequestSetting.minimumApproval = std::stoi(mergeRequestSettingNode["minimumApproval"].asString()); + if(!mergeRequestSettingNode["whiteList"].isNull()) + result_.mergeRequestSetting.whiteList = mergeRequestSettingNode["whiteList"].asString(); + auto allAllowMergeRequestRoles = mergeRequestSettingNode["allowMergeRequestRoles"]["allow_merge_request"]; + for (auto value : allAllowMergeRequestRoles) + result_.mergeRequestSetting.allowMergeRequestRoles.push_back(value.asString()); + auto allDefaultAssignees = mergeRequestSettingNode["defaultAssignees"]["default_assignees"]; + for (auto value : allDefaultAssignees) + result_.mergeRequestSetting.defaultAssignees.push_back(value.asString()); + auto testSettingDTONode = resultNode["testSettingDTO"]; + if(!testSettingDTONode["isRequired"].isNull()) + result_.testSettingDTO.isRequired = testSettingDTONode["isRequired"].asString() == "true"; + auto codeGuidelinesDetectionNode = testSettingDTONode["codeGuidelinesDetection"]; + if(!codeGuidelinesDetectionNode["enabled"].isNull()) + result_.testSettingDTO.codeGuidelinesDetection.enabled = codeGuidelinesDetectionNode["enabled"].asString() == "true"; + if(!codeGuidelinesDetectionNode["message"].isNull()) + result_.testSettingDTO.codeGuidelinesDetection.message = codeGuidelinesDetectionNode["message"].asString(); + auto sensitiveInfoDetectionNode = testSettingDTONode["sensitiveInfoDetection"]; + if(!sensitiveInfoDetectionNode["enabled"].isNull()) + result_.testSettingDTO.sensitiveInfoDetection.enabled = sensitiveInfoDetectionNode["enabled"].asString() == "true"; + if(!sensitiveInfoDetectionNode["message"].isNull()) + result_.testSettingDTO.sensitiveInfoDetection.message = sensitiveInfoDetectionNode["message"].asString(); + auto checkTaskQualityConfigNode = testSettingDTONode["checkTaskQualityConfig"]; + if(!checkTaskQualityConfigNode["enabled"].isNull()) + result_.testSettingDTO.checkTaskQualityConfig.enabled = checkTaskQualityConfigNode["enabled"].asString() == "true"; + if(!checkTaskQualityConfigNode["bizNo"].isNull()) + result_.testSettingDTO.checkTaskQualityConfig.bizNo = checkTaskQualityConfigNode["bizNo"].asString(); + if(!checkTaskQualityConfigNode["taskName"].isNull()) + result_.testSettingDTO.checkTaskQualityConfig.taskName = checkTaskQualityConfigNode["taskName"].asString(); + if(!checkTaskQualityConfigNode["message"].isNull()) + result_.testSettingDTO.checkTaskQualityConfig.message = checkTaskQualityConfigNode["message"].asString(); + auto checkConfigNode = testSettingDTONode["checkConfig"]; + auto allcheckItemsNode = checkConfigNode["checkItems"]["check_items"]; + for (auto checkConfigNodecheckItemscheck_items : allcheckItemsNode) + { + Result::TestSettingDTO::CheckConfig::Check_items check_itemsObject; + if(!checkConfigNodecheckItemscheck_items["name"].isNull()) + check_itemsObject.name = checkConfigNodecheckItemscheck_items["name"].asString(); + if(!checkConfigNodecheckItemscheck_items["isRequired"].isNull()) + check_itemsObject.isRequired = checkConfigNodecheckItemscheck_items["isRequired"].asString() == "true"; + result_.testSettingDTO.checkConfig.checkItems.push_back(check_itemsObject); + } + auto allAllowPushRoles = resultNode["allowPushRoles"]["allow_push"]; + for (auto value : allAllowPushRoles) + result_.allowPushRoles.push_back(value.asString()); + auto allAllowPushUserIds = resultNode["allowPushUserIds"]["allow_push_user_ids"]; + for (auto value : allAllowPushUserIds) + result_.allowPushUserIds.push_back(value.asString()); + auto allAllowMergeRoles = resultNode["allowMergeRoles"]["allow_merge"]; + for (auto value : allAllowMergeRoles) + result_.allowMergeRoles.push_back(value.asString()); + auto allAllowMergeUserIds = resultNode["allowMergeUserIds"]["allow_merge_user_ids"]; + for (auto value : allAllowMergeUserIds) + result_.allowMergeUserIds.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateProtectdBranchResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateProtectdBranchResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateProtectdBranchResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateProtectdBranchResult::getSuccess()const +{ + return success_; +} + +CreateProtectdBranchResult::Result CreateProtectdBranchResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreatePushRuleRequest.cc b/devops/src/model/CreatePushRuleRequest.cc new file mode 100644 index 000000000..51a1ae581 --- /dev/null +++ b/devops/src/model/CreatePushRuleRequest.cc @@ -0,0 +1,71 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreatePushRuleRequest; + +CreatePushRuleRequest::CreatePushRuleRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/push_rule"}; + setMethod(HttpRequest::Method::Post); +} + +CreatePushRuleRequest::~CreatePushRuleRequest() {} + +std::string CreatePushRuleRequest::getOrganizationId() const { + return organizationId_; +} + +void CreatePushRuleRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long CreatePushRuleRequest::getRepositoryId() const { + return repositoryId_; +} + +void CreatePushRuleRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string CreatePushRuleRequest::getAccessToken() const { + return accessToken_; +} + +void CreatePushRuleRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreatePushRuleRequest::body CreatePushRuleRequest::getBody() const { + return body_; +} + +void CreatePushRuleRequest::setBody(const CreatePushRuleRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.ruleInfos.size(); dep1++) { + setBodyParameter(std::string("body") + ".ruleInfos." + std::to_string(dep1 + 1) + ".extraMessage", body.ruleInfos[dep1].extraMessage); + setBodyParameter(std::string("body") + ".ruleInfos." + std::to_string(dep1 + 1) + ".checkerType", body.ruleInfos[dep1].checkerType); + for(int dep2 = 0; dep2 != body.ruleInfos[dep1].fileRuleRegexes.size(); dep2++) { + setBodyParameter(std::string("body") + ".ruleInfos." + std::to_string(dep1 + 1) + ".fileRuleRegexes." + std::to_string(dep2 + 1), body.ruleInfos[dep1].fileRuleRegexes[dep2]); + } + setBodyParameter(std::string("body") + ".ruleInfos." + std::to_string(dep1 + 1) + ".checkerName", body.ruleInfos[dep1].checkerName); + } +} + diff --git a/devops/src/model/CreatePushRuleResult.cc b/devops/src/model/CreatePushRuleResult.cc new file mode 100644 index 000000000..e6a2459f4 --- /dev/null +++ b/devops/src/model/CreatePushRuleResult.cc @@ -0,0 +1,99 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreatePushRuleResult::CreatePushRuleResult() : + ServiceResult() +{} + +CreatePushRuleResult::CreatePushRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePushRuleResult::~CreatePushRuleResult() +{} + +void CreatePushRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["gmtCreate"].isNull()) + result_.gmtCreate = resultNode["gmtCreate"].asString(); + if(!resultNode["gmtModified"].isNull()) + result_.gmtModified = resultNode["gmtModified"].asString(); + auto allruleInfosNode = resultNode["ruleInfos"]["rule_infos"]; + for (auto resultNoderuleInfosrule_infos : allruleInfosNode) + { + Result::Rule_infos rule_infosObject; + if(!resultNoderuleInfosrule_infos["checkerName"].isNull()) + rule_infosObject.checkerName = resultNoderuleInfosrule_infos["checkerName"].asString(); + if(!resultNoderuleInfosrule_infos["checkerType"].isNull()) + rule_infosObject.checkerType = resultNoderuleInfosrule_infos["checkerType"].asString(); + if(!resultNoderuleInfosrule_infos["extraMessage"].isNull()) + rule_infosObject.extraMessage = resultNoderuleInfosrule_infos["extraMessage"].asString(); + auto allFileRuleRegexes = value["fileRuleRegexes"]["file_rule_regexes"]; + for (auto value : allFileRuleRegexes) + rule_infosObject.fileRuleRegexes.push_back(value.asString()); + result_.ruleInfos.push_back(rule_infosObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreatePushRuleResult::getRequestId()const +{ + return requestId_; +} + +std::string CreatePushRuleResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreatePushRuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreatePushRuleResult::getSuccess()const +{ + return success_; +} + +CreatePushRuleResult::Result CreatePushRuleResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateRepositoryGroupRequest.cc b/devops/src/model/CreateRepositoryGroupRequest.cc new file mode 100644 index 000000000..34a2280e5 --- /dev/null +++ b/devops/src/model/CreateRepositoryGroupRequest.cc @@ -0,0 +1,60 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateRepositoryGroupRequest; + +CreateRepositoryGroupRequest::CreateRepositoryGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/groups/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateRepositoryGroupRequest::~CreateRepositoryGroupRequest() {} + +std::string CreateRepositoryGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateRepositoryGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateRepositoryGroupRequest::getAccessToken() const { + return accessToken_; +} + +void CreateRepositoryGroupRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateRepositoryGroupRequest::body CreateRepositoryGroupRequest::getBody() const { + return body_; +} + +void CreateRepositoryGroupRequest::setBody(const CreateRepositoryGroupRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".path", body.path); + setBodyParameter(std::string("body") + ".avatarUrl", body.avatarUrl); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".visibilityLevel", std::to_string(body.visibilityLevel)); + setBodyParameter(std::string("body") + ".parentId", std::to_string(body.parentId)); +} + diff --git a/devops/src/model/CreateRepositoryGroupResult.cc b/devops/src/model/CreateRepositoryGroupResult.cc new file mode 100644 index 000000000..6b911853d --- /dev/null +++ b/devops/src/model/CreateRepositoryGroupResult.cc @@ -0,0 +1,102 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateRepositoryGroupResult::CreateRepositoryGroupResult() : + ServiceResult() +{} + +CreateRepositoryGroupResult::CreateRepositoryGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRepositoryGroupResult::~CreateRepositoryGroupResult() +{} + +void CreateRepositoryGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["path"].isNull()) + result_.path = resultNode["path"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["pathWithNamespace"].isNull()) + result_.pathWithNamespace = resultNode["pathWithNamespace"].asString(); + if(!resultNode["nameWithNamespace"].isNull()) + result_.nameWithNamespace = resultNode["nameWithNamespace"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["visibilityLevel"].isNull()) + result_.visibilityLevel = std::stoi(resultNode["visibilityLevel"].asString()); + if(!resultNode["parentId"].isNull()) + result_.parentId = std::stol(resultNode["parentId"].asString()); + if(!resultNode["ownerId"].isNull()) + result_.ownerId = std::stol(resultNode["ownerId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateRepositoryGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateRepositoryGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateRepositoryGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateRepositoryGroupResult::getSuccess()const +{ + return success_; +} + +CreateRepositoryGroupResult::Result CreateRepositoryGroupResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateRepositoryRequest.cc b/devops/src/model/CreateRepositoryRequest.cc new file mode 100644 index 000000000..02542218d --- /dev/null +++ b/devops/src/model/CreateRepositoryRequest.cc @@ -0,0 +1,89 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateRepositoryRequest; + +CreateRepositoryRequest::CreateRepositoryRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateRepositoryRequest::~CreateRepositoryRequest() {} + +std::string CreateRepositoryRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateRepositoryRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateRepositoryRequest::getAccessToken() const { + return accessToken_; +} + +void CreateRepositoryRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateRepositoryRequest::body CreateRepositoryRequest::getBody() const { + return body_; +} + +void CreateRepositoryRequest::setBody(const CreateRepositoryRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".importToken", body.importToken); + setBodyParameter(std::string("body") + ".importTokenEncrypted", body.importTokenEncrypted); + setBodyParameter(std::string("body") + ".isCryptoEnabled", body.isCryptoEnabled ? "true" : "false"); + setBodyParameter(std::string("body") + ".avatarUrl", body.avatarUrl); + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".path", body.path); + setBodyParameter(std::string("body") + ".readmeType", body.readmeType); + setBodyParameter(std::string("body") + ".importAccount", body.importAccount); + setBodyParameter(std::string("body") + ".initStandardService", body.initStandardService ? "true" : "false"); + setBodyParameter(std::string("body") + ".namespaceId", std::to_string(body.namespaceId)); + setBodyParameter(std::string("body") + ".localImportUrl", body.localImportUrl); + setBodyParameter(std::string("body") + ".importRepoType", body.importRepoType); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".importUrl", body.importUrl); + setBodyParameter(std::string("body") + ".visibilityLevel", std::to_string(body.visibilityLevel)); + setBodyParameter(std::string("body") + ".importDemoProject", body.importDemoProject ? "true" : "false"); + setBodyParameter(std::string("body") + ".gitignoreType", body.gitignoreType); +} + +bool CreateRepositoryRequest::getSync() const { + return sync_; +} + +void CreateRepositoryRequest::setSync(bool sync) { + sync_ = sync; + setParameter(std::string("sync"), sync ? "true" : "false"); +} + +bool CreateRepositoryRequest::getCreateParentPath() const { + return createParentPath_; +} + +void CreateRepositoryRequest::setCreateParentPath(bool createParentPath) { + createParentPath_ = createParentPath; + setParameter(std::string("createParentPath"), createParentPath ? "true" : "false"); +} + diff --git a/devops/src/model/CreateRepositoryResult.cc b/devops/src/model/CreateRepositoryResult.cc new file mode 100644 index 000000000..115364556 --- /dev/null +++ b/devops/src/model/CreateRepositoryResult.cc @@ -0,0 +1,135 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateRepositoryResult::CreateRepositoryResult() : + ServiceResult() +{} + +CreateRepositoryResult::CreateRepositoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRepositoryResult::~CreateRepositoryResult() +{} + +void CreateRepositoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["defaultBranch"].isNull()) + result_.defaultBranch = resultNode["defaultBranch"].asString(); + if(!resultNode["visibilityLevel"].isNull()) + result_.visibilityLevel = resultNode["visibilityLevel"].asString(); + if(!resultNode["sshUrlToRepo"].isNull()) + result_.sshUrlToRepo = resultNode["sshUrlToRepo"].asString(); + if(!resultNode["httpUrlToRepo"].isNull()) + result_.httpUrlToRepo = resultNode["httpUrlToRepo"].asString(); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["nameWithNamespace"].isNull()) + result_.nameWithNamespace = resultNode["nameWithNamespace"].asString(); + if(!resultNode["path"].isNull()) + result_.path = resultNode["path"].asString(); + if(!resultNode["pathWithNamespace"].isNull()) + result_.pathWithNamespace = resultNode["pathWithNamespace"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["lastActivityAt"].isNull()) + result_.lastActivityAt = resultNode["lastActivityAt"].asString(); + if(!resultNode["creatorId"].isNull()) + result_.creatorId = std::stol(resultNode["creatorId"].asString()); + if(!resultNode["archived"].isNull()) + result_.archived = resultNode["archived"].asString() == "true"; + if(!resultNode["avatar_url"].isNull()) + result_.avatar_url = resultNode["avatar_url"].asString(); + if(!resultNode["demoProject"].isNull()) + result_.demoProject = resultNode["demoProject"].asString() == "true"; + if(!resultNode["Import_from_svn"].isNull()) + result_.import_from_svn = resultNode["Import_from_svn"].asString() == "true"; + auto _namespaceNode = resultNode["namespace"]; + if(!_namespaceNode["id"].isNull()) + result_._namespace.id = std::stol(_namespaceNode["id"].asString()); + if(!_namespaceNode["name"].isNull()) + result_._namespace.name = _namespaceNode["name"].asString(); + if(!_namespaceNode["path"].isNull()) + result_._namespace.path = _namespaceNode["path"].asString(); + if(!_namespaceNode["ownerId"].isNull()) + result_._namespace.ownerId = std::stol(_namespaceNode["ownerId"].asString()); + if(!_namespaceNode["createdAt"].isNull()) + result_._namespace.createdAt = _namespaceNode["createdAt"].asString(); + if(!_namespaceNode["updatedAt"].isNull()) + result_._namespace.updatedAt = _namespaceNode["updatedAt"].asString(); + if(!_namespaceNode["description"].isNull()) + result_._namespace.description = _namespaceNode["description"].asString(); + if(!_namespaceNode["avatar"].isNull()) + result_._namespace.avatar = _namespaceNode["avatar"].asString(); + if(!_namespaceNode["public"].isNull()) + result_._namespace._public = _namespaceNode["public"].asString() == "true"; + if(!_namespaceNode["visibilityLevel"].isNull()) + result_._namespace.visibilityLevel = _namespaceNode["visibilityLevel"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateRepositoryResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateRepositoryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateRepositoryResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateRepositoryResult::getSuccess()const +{ + return success_; +} + +CreateRepositoryResult::Result CreateRepositoryResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateResourceMemberRequest.cc b/devops/src/model/CreateResourceMemberRequest.cc new file mode 100644 index 000000000..dec1d988a --- /dev/null +++ b/devops/src/model/CreateResourceMemberRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateResourceMemberRequest; + +CreateResourceMemberRequest::CreateResourceMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/[resourceType]/[resourceId]/members"}; + setMethod(HttpRequest::Method::Post); +} + +CreateResourceMemberRequest::~CreateResourceMemberRequest() {} + +long CreateResourceMemberRequest::getResourceId() const { + return resourceId_; +} + +void CreateResourceMemberRequest::setResourceId(long resourceId) { + resourceId_ = resourceId; + setParameter(std::string("resourceId"), std::to_string(resourceId)); +} + +std::string CreateResourceMemberRequest::getRoleName() const { + return roleName_; +} + +void CreateResourceMemberRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setBodyParameter(std::string("roleName"), roleName); +} + +std::string CreateResourceMemberRequest::getResourceType() const { + return resourceType_; +} + +void CreateResourceMemberRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("resourceType"), resourceType); +} + +std::string CreateResourceMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateResourceMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateResourceMemberRequest::getAccountId() const { + return accountId_; +} + +void CreateResourceMemberRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setBodyParameter(std::string("accountId"), accountId); +} + diff --git a/devops/src/model/CreateResourceMemberResult.cc b/devops/src/model/CreateResourceMemberResult.cc new file mode 100644 index 000000000..88275174d --- /dev/null +++ b/devops/src/model/CreateResourceMemberResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateResourceMemberResult::CreateResourceMemberResult() : + ServiceResult() +{} + +CreateResourceMemberResult::CreateResourceMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateResourceMemberResult::~CreateResourceMemberResult() +{} + +void CreateResourceMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateResourceMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateResourceMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateResourceMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateResourceMemberResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateServiceAuthRequest.cc b/devops/src/model/CreateServiceAuthRequest.cc new file mode 100644 index 000000000..a41f577e2 --- /dev/null +++ b/devops/src/model/CreateServiceAuthRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateServiceAuthRequest; + +CreateServiceAuthRequest::CreateServiceAuthRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/serviceAuths"}; + setMethod(HttpRequest::Method::Post); +} + +CreateServiceAuthRequest::~CreateServiceAuthRequest() {} + +std::string CreateServiceAuthRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateServiceAuthRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateServiceAuthRequest::getServiceAuthType() const { + return serviceAuthType_; +} + +void CreateServiceAuthRequest::setServiceAuthType(const std::string &serviceAuthType) { + serviceAuthType_ = serviceAuthType; + setParameter(std::string("serviceAuthType"), serviceAuthType); +} + diff --git a/devops/src/model/CreateServiceAuthResult.cc b/devops/src/model/CreateServiceAuthResult.cc new file mode 100644 index 000000000..a563d4d26 --- /dev/null +++ b/devops/src/model/CreateServiceAuthResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateServiceAuthResult::CreateServiceAuthResult() : + ServiceResult() +{} + +CreateServiceAuthResult::CreateServiceAuthResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceAuthResult::~CreateServiceAuthResult() +{} + +void CreateServiceAuthResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["id"].isNull()) + id_ = value["id"].asString(); + +} + +std::string CreateServiceAuthResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateServiceAuthResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateServiceAuthResult::getId()const +{ + return id_; +} + +std::string CreateServiceAuthResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateServiceAuthResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateServiceConnectionRequest.cc b/devops/src/model/CreateServiceConnectionRequest.cc new file mode 100644 index 000000000..5ed6c6c17 --- /dev/null +++ b/devops/src/model/CreateServiceConnectionRequest.cc @@ -0,0 +1,50 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateServiceConnectionRequest; + +CreateServiceConnectionRequest::CreateServiceConnectionRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/createServiceConnection"}; + setMethod(HttpRequest::Method::Post); +} + +CreateServiceConnectionRequest::~CreateServiceConnectionRequest() {} + +CreateServiceConnectionRequest::body CreateServiceConnectionRequest::getBody() const { + return body_; +} + +void CreateServiceConnectionRequest::setBody(const CreateServiceConnectionRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".serviceAuthId", std::to_string(body.serviceAuthId)); + setBodyParameter(std::string("body") + ".scope", body.scope); + setBodyParameter(std::string("body") + ".connectionName", body.connectionName); + setBodyParameter(std::string("body") + ".connectionType", body.connectionType); + setBodyParameter(std::string("body") + ".authType", body.authType); +} + +std::string CreateServiceConnectionRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateServiceConnectionRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateServiceConnectionResult.cc b/devops/src/model/CreateServiceConnectionResult.cc new file mode 100644 index 000000000..f54ab59bb --- /dev/null +++ b/devops/src/model/CreateServiceConnectionResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateServiceConnectionResult::CreateServiceConnectionResult() : + ServiceResult() +{} + +CreateServiceConnectionResult::CreateServiceConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceConnectionResult::~CreateServiceConnectionResult() +{} + +void CreateServiceConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["id"].isNull()) + id_ = std::stol(value["id"].asString()); + +} + +std::string CreateServiceConnectionResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateServiceConnectionResult::getErrorCode()const +{ + return errorCode_; +} + +long CreateServiceConnectionResult::getId()const +{ + return id_; +} + +std::string CreateServiceConnectionResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateServiceConnectionResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateServiceCredentialRequest.cc b/devops/src/model/CreateServiceCredentialRequest.cc new file mode 100644 index 000000000..94c6c047b --- /dev/null +++ b/devops/src/model/CreateServiceCredentialRequest.cc @@ -0,0 +1,50 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateServiceCredentialRequest; + +CreateServiceCredentialRequest::CreateServiceCredentialRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/serviceCredentials"}; + setMethod(HttpRequest::Method::Post); +} + +CreateServiceCredentialRequest::~CreateServiceCredentialRequest() {} + +CreateServiceCredentialRequest::body CreateServiceCredentialRequest::getBody() const { + return body_; +} + +void CreateServiceCredentialRequest::setBody(const CreateServiceCredentialRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".password", body.password); + setBodyParameter(std::string("body") + ".scope", body.scope); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".type", body.type); + setBodyParameter(std::string("body") + ".username", body.username); +} + +std::string CreateServiceCredentialRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateServiceCredentialRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateServiceCredentialResult.cc b/devops/src/model/CreateServiceCredentialResult.cc new file mode 100644 index 000000000..c597184f5 --- /dev/null +++ b/devops/src/model/CreateServiceCredentialResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateServiceCredentialResult::CreateServiceCredentialResult() : + ServiceResult() +{} + +CreateServiceCredentialResult::CreateServiceCredentialResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServiceCredentialResult::~CreateServiceCredentialResult() +{} + +void CreateServiceCredentialResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["id"].isNull()) + id_ = std::stol(value["id"].asString()); + +} + +std::string CreateServiceCredentialResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateServiceCredentialResult::getErrorCode()const +{ + return errorCode_; +} + +long CreateServiceCredentialResult::getId()const +{ + return id_; +} + +std::string CreateServiceCredentialResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateServiceCredentialResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateSprintRequest.cc b/devops/src/model/CreateSprintRequest.cc new file mode 100644 index 000000000..127398672 --- /dev/null +++ b/devops/src/model/CreateSprintRequest.cc @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateSprintRequest; + +CreateSprintRequest::CreateSprintRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/sprints/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateSprintRequest::~CreateSprintRequest() {} + +CreateSprintRequest::body CreateSprintRequest::getBody() const { + return body_; +} + +void CreateSprintRequest::setBody(const CreateSprintRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".endDate", body.endDate); + for(int dep1 = 0; dep1 != body.staffIds.size(); dep1++) { + setBodyParameter(std::string("body") + ".staffIds." + std::to_string(dep1 + 1), body.staffIds[dep1]); + } + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".spaceIdentifier", body.spaceIdentifier); + setBodyParameter(std::string("body") + ".startDate", body.startDate); +} + +std::string CreateSprintRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateSprintRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateSprintResult.cc b/devops/src/model/CreateSprintResult.cc new file mode 100644 index 000000000..7f9ef2a96 --- /dev/null +++ b/devops/src/model/CreateSprintResult.cc @@ -0,0 +1,102 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateSprintResult::CreateSprintResult() : + ServiceResult() +{} + +CreateSprintResult::CreateSprintResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSprintResult::~CreateSprintResult() +{} + +void CreateSprintResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto sprintNode = value["sprint"]; + if(!sprintNode["creator"].isNull()) + sprint_.creator = sprintNode["creator"].asString(); + if(!sprintNode["description"].isNull()) + sprint_.description = sprintNode["description"].asString(); + if(!sprintNode["gmtCreate"].isNull()) + sprint_.gmtCreate = std::stol(sprintNode["gmtCreate"].asString()); + if(!sprintNode["gmtModified"].isNull()) + sprint_.gmtModified = std::stol(sprintNode["gmtModified"].asString()); + if(!sprintNode["endDate"].isNull()) + sprint_.endDate = std::stol(sprintNode["endDate"].asString()); + if(!sprintNode["startDate"].isNull()) + sprint_.startDate = std::stol(sprintNode["startDate"].asString()); + if(!sprintNode["identifier"].isNull()) + sprint_.identifier = sprintNode["identifier"].asString(); + if(!sprintNode["modifier"].isNull()) + sprint_.modifier = sprintNode["modifier"].asString(); + if(!sprintNode["name"].isNull()) + sprint_.name = sprintNode["name"].asString(); + if(!sprintNode["spaceIdentifier"].isNull()) + sprint_.spaceIdentifier = sprintNode["spaceIdentifier"].asString(); + if(!sprintNode["scope"].isNull()) + sprint_.scope = sprintNode["scope"].asString(); + if(!sprintNode["status"].isNull()) + sprint_.status = sprintNode["status"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateSprintResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateSprintResult::getErrorMsg()const +{ + return errorMsg_; +} + +CreateSprintResult::Sprint CreateSprintResult::getSprint()const +{ + return sprint_; +} + +std::string CreateSprintResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateSprintResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateSshKeyRequest.cc b/devops/src/model/CreateSshKeyRequest.cc new file mode 100644 index 000000000..878c8bca4 --- /dev/null +++ b/devops/src/model/CreateSshKeyRequest.cc @@ -0,0 +1,37 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateSshKeyRequest; + +CreateSshKeyRequest::CreateSshKeyRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/sshKey"}; + setMethod(HttpRequest::Method::Post); +} + +CreateSshKeyRequest::~CreateSshKeyRequest() {} + +std::string CreateSshKeyRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateSshKeyRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateSshKeyResult.cc b/devops/src/model/CreateSshKeyResult.cc new file mode 100644 index 000000000..7881ced37 --- /dev/null +++ b/devops/src/model/CreateSshKeyResult.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateSshKeyResult::CreateSshKeyResult() : + ServiceResult() +{} + +CreateSshKeyResult::CreateSshKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSshKeyResult::~CreateSshKeyResult() +{} + +void CreateSshKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto sshKeyNode = value["sshKey"]; + if(!sshKeyNode["publicKey"].isNull()) + sshKey_.publicKey = sshKeyNode["publicKey"].asString(); + if(!sshKeyNode["id"].isNull()) + sshKey_.id = std::stol(sshKeyNode["id"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +CreateSshKeyResult::SshKey CreateSshKeyResult::getSshKey()const +{ + return sshKey_; +} + +std::string CreateSshKeyResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateSshKeyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateSshKeyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateSshKeyResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateTagRequest.cc b/devops/src/model/CreateTagRequest.cc new file mode 100644 index 000000000..2df7af50e --- /dev/null +++ b/devops/src/model/CreateTagRequest.cc @@ -0,0 +1,66 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateTagRequest; + +CreateTagRequest::CreateTagRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/tags/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateTagRequest::~CreateTagRequest() {} + +std::string CreateTagRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateTagRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long CreateTagRequest::getRepositoryId() const { + return repositoryId_; +} + +void CreateTagRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string CreateTagRequest::getAccessToken() const { + return accessToken_; +} + +void CreateTagRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateTagRequest::body CreateTagRequest::getBody() const { + return body_; +} + +void CreateTagRequest::setBody(const CreateTagRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".tagName", body.tagName); + setBodyParameter(std::string("body") + ".ref", body.ref); + setBodyParameter(std::string("body") + ".message", body.message); +} + diff --git a/devops/src/model/CreateTagResult.cc b/devops/src/model/CreateTagResult.cc new file mode 100644 index 000000000..3663efa5a --- /dev/null +++ b/devops/src/model/CreateTagResult.cc @@ -0,0 +1,110 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateTagResult::CreateTagResult() : + ServiceResult() +{} + +CreateTagResult::CreateTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTagResult::~CreateTagResult() +{} + +void CreateTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["message"].isNull()) + result_.message = resultNode["message"].asString(); + auto commitNode = resultNode["commit"]; + if(!commitNode["id"].isNull()) + result_.commit.id = commitNode["id"].asString(); + if(!commitNode["shortId"].isNull()) + result_.commit.shortId = commitNode["shortId"].asString(); + if(!commitNode["title"].isNull()) + result_.commit.title = commitNode["title"].asString(); + if(!commitNode["message"].isNull()) + result_.commit.message = commitNode["message"].asString(); + if(!commitNode["createdAt"].isNull()) + result_.commit.createdAt = commitNode["createdAt"].asString(); + if(!commitNode["authorName"].isNull()) + result_.commit.authorName = commitNode["authorName"].asString(); + if(!commitNode["authorEmail"].isNull()) + result_.commit.authorEmail = commitNode["authorEmail"].asString(); + if(!commitNode["authoredDate"].isNull()) + result_.commit.authoredDate = commitNode["authoredDate"].asString(); + if(!commitNode["committerName"].isNull()) + result_.commit.committerName = commitNode["committerName"].asString(); + if(!commitNode["committerEmail"].isNull()) + result_.commit.committerEmail = commitNode["committerEmail"].asString(); + if(!commitNode["committedDate"].isNull()) + result_.commit.committedDate = commitNode["committedDate"].asString(); + auto allParentIds = commitNode["parentIds"]["parent_ids"]; + for (auto value : allParentIds) + result_.commit.parentIds.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateTagResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateTagResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateTagResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateTagResult::getSuccess()const +{ + return success_; +} + +CreateTagResult::Result CreateTagResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateTestCaseRequest.cc b/devops/src/model/CreateTestCaseRequest.cc new file mode 100644 index 000000000..a391ea1db --- /dev/null +++ b/devops/src/model/CreateTestCaseRequest.cc @@ -0,0 +1,63 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateTestCaseRequest; + +CreateTestCaseRequest::CreateTestCaseRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/testhub/testcase"}; + setMethod(HttpRequest::Method::Post); +} + +CreateTestCaseRequest::~CreateTestCaseRequest() {} + +CreateTestCaseRequest::body CreateTestCaseRequest::getBody() const { + return body_; +} + +void CreateTestCaseRequest::setBody(const CreateTestCaseRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.fieldValueList.size(); dep1++) { + setBodyParameter(std::string("body") + ".fieldValueList." + std::to_string(dep1 + 1) + ".fieldIdentifier", body.fieldValueList[dep1].fieldIdentifier); + setBodyParameter(std::string("body") + ".fieldValueList." + std::to_string(dep1 + 1) + ".value", body.fieldValueList[dep1].value); + } + setBodyParameter(std::string("body") + ".subject", body.subject); + setBodyParameter(std::string("body") + ".testcaseStepContentInfo.stepType", body.testcaseStepContentInfo.stepType); + setBodyParameter(std::string("body") + ".testcaseStepContentInfo.precondition", body.testcaseStepContentInfo.precondition); + for(int dep1 = 0; dep1 != body.testcaseStepContentInfo.stepResultList.size(); dep1++) { + setBodyParameter(std::string("body") + ".testcaseStepContentInfo.stepResultList." + std::to_string(dep1 + 1) + ".expected", body.testcaseStepContentInfo.stepResultList[dep1].expected); + setBodyParameter(std::string("body") + ".testcaseStepContentInfo.stepResultList." + std::to_string(dep1 + 1) + ".step", body.testcaseStepContentInfo.stepResultList[dep1].step); + } + setBodyParameter(std::string("body") + ".spaceIdentifier", body.spaceIdentifier); + setBodyParameter(std::string("body") + ".priority", body.priority); + setBodyParameter(std::string("body") + ".directoryIdentifier", body.directoryIdentifier); + setBodyParameter(std::string("body") + ".assignedTo", body.assignedTo); + for(int dep1 = 0; dep1 != body.tags.size(); dep1++) { + setBodyParameter(std::string("body") + ".tags." + std::to_string(dep1 + 1), body.tags[dep1]); + } +} + +std::string CreateTestCaseRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateTestCaseRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateTestCaseResult.cc b/devops/src/model/CreateTestCaseResult.cc new file mode 100644 index 000000000..ab0c8b9a8 --- /dev/null +++ b/devops/src/model/CreateTestCaseResult.cc @@ -0,0 +1,139 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateTestCaseResult::CreateTestCaseResult() : + ServiceResult() +{} + +CreateTestCaseResult::CreateTestCaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTestCaseResult::~CreateTestCaseResult() +{} + +void CreateTestCaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto testcaseNode = value["testcase"]; + if(!testcaseNode["identifier"].isNull()) + testcase_.identifier = testcaseNode["identifier"].asString(); + if(!testcaseNode["subject"].isNull()) + testcase_.subject = testcaseNode["subject"].asString(); + if(!testcaseNode["spaceIdentifier"].isNull()) + testcase_.spaceIdentifier = testcaseNode["spaceIdentifier"].asString(); + if(!testcaseNode["spaceType"].isNull()) + testcase_.spaceType = testcaseNode["spaceType"].asString(); + if(!testcaseNode["categoryIdentifier"].isNull()) + testcase_.categoryIdentifier = testcaseNode["categoryIdentifier"].asString(); + auto assignedToNode = testcaseNode["assignedTo"]; + if(!assignedToNode["assignIdentifier"].isNull()) + testcase_.assignedTo.assignIdentifier = assignedToNode["assignIdentifier"].asString(); + if(!assignedToNode["name"].isNull()) + testcase_.assignedTo.name = assignedToNode["name"].asString(); + if(!assignedToNode["tbRoleId"].isNull()) + testcase_.assignedTo.tbRoleId = assignedToNode["tbRoleId"].asString(); + auto creatorNode = testcaseNode["creator"]; + if(!creatorNode["createIdentifier"].isNull()) + testcase_.creator.createIdentifier = creatorNode["createIdentifier"].asString(); + if(!creatorNode["name"].isNull()) + testcase_.creator.name = creatorNode["name"].asString(); + auto modifierNode = testcaseNode["modifier"]; + if(!modifierNode["modifyIdentifier"].isNull()) + testcase_.modifier.modifyIdentifier = modifierNode["modifyIdentifier"].asString(); + if(!modifierNode["name"].isNull()) + testcase_.modifier.name = modifierNode["name"].asString(); + auto directoryNode = testcaseNode["directory"]; + if(!directoryNode["directoryIdentifier"].isNull()) + testcase_.directory.directoryIdentifier = directoryNode["directoryIdentifier"].asString(); + if(!directoryNode["name"].isNull()) + testcase_.directory.name = directoryNode["name"].asString(); + if(!directoryNode["childIdentifier"].isNull()) + testcase_.directory.childIdentifier = directoryNode["childIdentifier"].asString(); + auto allPathName = directoryNode["pathName"]["idPathDisplayNames"]; + for (auto value : allPathName) + testcase_.directory.pathName.push_back(value.asString()); + auto detailInfoNode = testcaseNode["detailInfo"]; + if(!detailInfoNode["stepType"].isNull()) + testcase_.detailInfo.stepType = detailInfoNode["stepType"].asString(); + auto preconditionNode = detailInfoNode["precondition"]; + if(!preconditionNode["preIdentifier"].isNull()) + testcase_.detailInfo.precondition.preIdentifier = preconditionNode["preIdentifier"].asString(); + if(!preconditionNode["preContent"].isNull()) + testcase_.detailInfo.precondition.preContent = preconditionNode["preContent"].asString(); + if(!preconditionNode["preContentType"].isNull()) + testcase_.detailInfo.precondition.preContentType = preconditionNode["preContentType"].asString(); + auto stepContentNode = detailInfoNode["stepContent"]; + if(!stepContentNode["stepIdentifier"].isNull()) + testcase_.detailInfo.stepContent.stepIdentifier = stepContentNode["stepIdentifier"].asString(); + if(!stepContentNode["stepContent"].isNull()) + testcase_.detailInfo.stepContent.stepContent = stepContentNode["stepContent"].asString(); + if(!stepContentNode["stepContentType"].isNull()) + testcase_.detailInfo.stepContent.stepContentType = stepContentNode["stepContentType"].asString(); + auto expectedResultNode = detailInfoNode["expectedResult"]; + if(!expectedResultNode["expectIdentifier"].isNull()) + testcase_.detailInfo.expectedResult.expectIdentifier = expectedResultNode["expectIdentifier"].asString(); + if(!expectedResultNode["expectContent"].isNull()) + testcase_.detailInfo.expectedResult.expectContent = expectedResultNode["expectContent"].asString(); + if(!expectedResultNode["expectContentType"].isNull()) + testcase_.detailInfo.expectedResult.expectContentType = expectedResultNode["expectContentType"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +CreateTestCaseResult::Testcase CreateTestCaseResult::getTestcase()const +{ + return testcase_; +} + +std::string CreateTestCaseResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateTestCaseResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string CreateTestCaseResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateTestCaseResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateUserKeyRequest.cc b/devops/src/model/CreateUserKeyRequest.cc new file mode 100644 index 000000000..9fe15b71d --- /dev/null +++ b/devops/src/model/CreateUserKeyRequest.cc @@ -0,0 +1,58 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateUserKeyRequest; + +CreateUserKeyRequest::CreateUserKeyRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v3/user/keys/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateUserKeyRequest::~CreateUserKeyRequest() {} + +std::string CreateUserKeyRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateUserKeyRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateUserKeyRequest::getAccessToken() const { + return accessToken_; +} + +void CreateUserKeyRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +CreateUserKeyRequest::body CreateUserKeyRequest::getBody() const { + return body_; +} + +void CreateUserKeyRequest::setBody(const CreateUserKeyRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".expireTime", body.expireTime); + setBodyParameter(std::string("body") + ".keyScope", body.keyScope); + setBodyParameter(std::string("body") + ".publicKey", body.publicKey); + setBodyParameter(std::string("body") + ".title", body.title); +} + diff --git a/devops/src/model/CreateUserKeyResult.cc b/devops/src/model/CreateUserKeyResult.cc new file mode 100644 index 000000000..b063ee63c --- /dev/null +++ b/devops/src/model/CreateUserKeyResult.cc @@ -0,0 +1,94 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateUserKeyResult::CreateUserKeyResult() : + ServiceResult() +{} + +CreateUserKeyResult::CreateUserKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateUserKeyResult::~CreateUserKeyResult() +{} + +void CreateUserKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["title"].isNull()) + result_.title = resultNode["title"].asString(); + if(!resultNode["publicKey"].isNull()) + result_.publicKey = resultNode["publicKey"].asString(); + if(!resultNode["fingerPrint"].isNull()) + result_.fingerPrint = resultNode["fingerPrint"].asString(); + if(!resultNode["keyScope"].isNull()) + result_.keyScope = resultNode["keyScope"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["expireTime"].isNull()) + result_.expireTime = resultNode["expireTime"].asString(); + if(!resultNode["lastUsedTime"].isNull()) + result_.lastUsedTime = resultNode["lastUsedTime"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateUserKeyResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateUserKeyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateUserKeyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateUserKeyResult::getSuccess()const +{ + return success_; +} + +CreateUserKeyResult::Result CreateUserKeyResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/CreateVariableGroupRequest.cc b/devops/src/model/CreateVariableGroupRequest.cc new file mode 100644 index 000000000..5efa6f08a --- /dev/null +++ b/devops/src/model/CreateVariableGroupRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateVariableGroupRequest; + +CreateVariableGroupRequest::CreateVariableGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/variableGroups"}; + setMethod(HttpRequest::Method::Post); +} + +CreateVariableGroupRequest::~CreateVariableGroupRequest() {} + +std::string CreateVariableGroupRequest::getVariables() const { + return variables_; +} + +void CreateVariableGroupRequest::setVariables(const std::string &variables) { + variables_ = variables; + setBodyParameter(std::string("variables"), variables); +} + +std::string CreateVariableGroupRequest::getDescription() const { + return description_; +} + +void CreateVariableGroupRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("description"), description); +} + +std::string CreateVariableGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateVariableGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string CreateVariableGroupRequest::getName() const { + return name_; +} + +void CreateVariableGroupRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("name"), name); +} + diff --git a/devops/src/model/CreateVariableGroupResult.cc b/devops/src/model/CreateVariableGroupResult.cc new file mode 100644 index 000000000..ed9ca5f0e --- /dev/null +++ b/devops/src/model/CreateVariableGroupResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateVariableGroupResult::CreateVariableGroupResult() : + ServiceResult() +{} + +CreateVariableGroupResult::CreateVariableGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVariableGroupResult::~CreateVariableGroupResult() +{} + +void CreateVariableGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["variableGroupId"].isNull()) + variableGroupId_ = std::stol(value["variableGroupId"].asString()); + +} + +std::string CreateVariableGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateVariableGroupResult::getErrorCode()const +{ + return errorCode_; +} + +long CreateVariableGroupResult::getVariableGroupId()const +{ + return variableGroupId_; +} + +std::string CreateVariableGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateVariableGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateWorkitemCommentRequest.cc b/devops/src/model/CreateWorkitemCommentRequest.cc new file mode 100644 index 000000000..f7d94754f --- /dev/null +++ b/devops/src/model/CreateWorkitemCommentRequest.cc @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateWorkitemCommentRequest; + +CreateWorkitemCommentRequest::CreateWorkitemCommentRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/comment"}; + setMethod(HttpRequest::Method::Post); +} + +CreateWorkitemCommentRequest::~CreateWorkitemCommentRequest() {} + +CreateWorkitemCommentRequest::body CreateWorkitemCommentRequest::getBody() const { + return body_; +} + +void CreateWorkitemCommentRequest::setBody(const CreateWorkitemCommentRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".workitemIdentifier", body.workitemIdentifier); + setBodyParameter(std::string("body") + ".formatType", body.formatType); + setBodyParameter(std::string("body") + ".content", body.content); + setBodyParameter(std::string("body") + ".parentId", body.parentId); +} + +std::string CreateWorkitemCommentRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateWorkitemCommentRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateWorkitemCommentResult.cc b/devops/src/model/CreateWorkitemCommentResult.cc new file mode 100644 index 000000000..d62c1caf7 --- /dev/null +++ b/devops/src/model/CreateWorkitemCommentResult.cc @@ -0,0 +1,113 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateWorkitemCommentResult::CreateWorkitemCommentResult() : + ServiceResult() +{} + +CreateWorkitemCommentResult::CreateWorkitemCommentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateWorkitemCommentResult::~CreateWorkitemCommentResult() +{} + +void CreateWorkitemCommentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto commentNode = value["Comment"]; + if(!commentNode["Id"].isNull()) + comment_.id = std::stol(commentNode["Id"].asString()); + if(!commentNode["content"].isNull()) + comment_.content = commentNode["content"].asString(); + if(!commentNode["targetType"].isNull()) + comment_.targetType = commentNode["targetType"].asString(); + if(!commentNode["targetIdentifier"].isNull()) + comment_.targetIdentifier = commentNode["targetIdentifier"].asString(); + if(!commentNode["parentId"].isNull()) + comment_.parentId = std::stol(commentNode["parentId"].asString()); + if(!commentNode["createTime"].isNull()) + comment_.createTime = std::stol(commentNode["createTime"].asString()); + if(!commentNode["modifiedTime"].isNull()) + comment_.modifiedTime = std::stol(commentNode["modifiedTime"].asString()); + if(!commentNode["isTop"].isNull()) + comment_.isTop = commentNode["isTop"].asString() == "true"; + if(!commentNode["topTime"].isNull()) + comment_.topTime = std::stol(commentNode["topTime"].asString()); + if(!commentNode["formatType"].isNull()) + comment_.formatType = commentNode["formatType"].asString(); + auto userNode = commentNode["user"]; + if(!userNode["account"].isNull()) + comment_.user.account = userNode["account"].asString(); + if(!userNode["identifier"].isNull()) + comment_.user.identifier = userNode["identifier"].asString(); + if(!userNode["realName"].isNull()) + comment_.user.realName = userNode["realName"].asString(); + if(!userNode["nickName"].isNull()) + comment_.user.nickName = userNode["nickName"].asString(); + if(!userNode["avatar"].isNull()) + comment_.user.avatar = userNode["avatar"].asString(); + if(!userNode["displayName"].isNull()) + comment_.user.displayName = userNode["displayName"].asString(); + if(!userNode["targetType"].isNull()) + comment_.user.targetType = userNode["targetType"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +CreateWorkitemCommentResult::Comment CreateWorkitemCommentResult::getComment()const +{ + return comment_; +} + +std::string CreateWorkitemCommentResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateWorkitemCommentResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string CreateWorkitemCommentResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateWorkitemCommentResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateWorkitemEstimateRequest.cc b/devops/src/model/CreateWorkitemEstimateRequest.cc new file mode 100644 index 000000000..b26a3a1f5 --- /dev/null +++ b/devops/src/model/CreateWorkitemEstimateRequest.cc @@ -0,0 +1,50 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateWorkitemEstimateRequest; + +CreateWorkitemEstimateRequest::CreateWorkitemEstimateRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/estimate"}; + setMethod(HttpRequest::Method::Post); +} + +CreateWorkitemEstimateRequest::~CreateWorkitemEstimateRequest() {} + +CreateWorkitemEstimateRequest::body CreateWorkitemEstimateRequest::getBody() const { + return body_; +} + +void CreateWorkitemEstimateRequest::setBody(const CreateWorkitemEstimateRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".recordUserIdentifier", body.recordUserIdentifier); + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".workitemIdentifier", body.workitemIdentifier); + setBodyParameter(std::string("body") + ".type", body.type); + setBodyParameter(std::string("body") + ".spentTime", body.spentTime); +} + +std::string CreateWorkitemEstimateRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateWorkitemEstimateRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateWorkitemEstimateResult.cc b/devops/src/model/CreateWorkitemEstimateResult.cc new file mode 100644 index 000000000..02d07bc1e --- /dev/null +++ b/devops/src/model/CreateWorkitemEstimateResult.cc @@ -0,0 +1,125 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateWorkitemEstimateResult::CreateWorkitemEstimateResult() : + ServiceResult() +{} + +CreateWorkitemEstimateResult::CreateWorkitemEstimateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateWorkitemEstimateResult::~CreateWorkitemEstimateResult() +{} + +void CreateWorkitemEstimateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workitemTimeEstimateNode = value["WorkitemTimeEstimate"]; + if(!workitemTimeEstimateNode["identifier"].isNull()) + workitemTimeEstimate_.identifier = workitemTimeEstimateNode["identifier"].asString(); + if(!workitemTimeEstimateNode["workitemIdentifier"].isNull()) + workitemTimeEstimate_.workitemIdentifier = workitemTimeEstimateNode["workitemIdentifier"].asString(); + if(!workitemTimeEstimateNode["spentTime"].isNull()) + workitemTimeEstimate_.spentTime = std::stol(workitemTimeEstimateNode["spentTime"].asString()); + if(!workitemTimeEstimateNode["type"].isNull()) + workitemTimeEstimate_.type = workitemTimeEstimateNode["type"].asString(); + if(!workitemTimeEstimateNode["description"].isNull()) + workitemTimeEstimate_.description = workitemTimeEstimateNode["description"].asString(); + auto recordUserNode = workitemTimeEstimateNode["recordUser"]; + if(!recordUserNode["account"].isNull()) + workitemTimeEstimate_.recordUser.account = recordUserNode["account"].asString(); + if(!recordUserNode["identifier"].isNull()) + workitemTimeEstimate_.recordUser.identifier = recordUserNode["identifier"].asString(); + if(!recordUserNode["realName"].isNull()) + workitemTimeEstimate_.recordUser.realName = recordUserNode["realName"].asString(); + if(!recordUserNode["nickName"].isNull()) + workitemTimeEstimate_.recordUser.nickName = recordUserNode["nickName"].asString(); + if(!recordUserNode["avatar"].isNull()) + workitemTimeEstimate_.recordUser.avatar = recordUserNode["avatar"].asString(); + if(!recordUserNode["stamp"].isNull()) + workitemTimeEstimate_.recordUser.stamp = recordUserNode["stamp"].asString(); + if(!recordUserNode["nameEn"].isNull()) + workitemTimeEstimate_.recordUser.nameEn = recordUserNode["nameEn"].asString(); + if(!recordUserNode["gender"].isNull()) + workitemTimeEstimate_.recordUser.gender = recordUserNode["gender"].asString(); + if(!recordUserNode["mobile"].isNull()) + workitemTimeEstimate_.recordUser.mobile = recordUserNode["mobile"].asString(); + if(!recordUserNode["email"].isNull()) + workitemTimeEstimate_.recordUser.email = recordUserNode["email"].asString(); + if(!recordUserNode["nickNamePinyin"].isNull()) + workitemTimeEstimate_.recordUser.nickNamePinyin = recordUserNode["nickNamePinyin"].asString(); + if(!recordUserNode["realNamePinyin"].isNull()) + workitemTimeEstimate_.recordUser.realNamePinyin = recordUserNode["realNamePinyin"].asString(); + if(!recordUserNode["displayNickName"].isNull()) + workitemTimeEstimate_.recordUser.displayNickName = recordUserNode["displayNickName"].asString(); + if(!recordUserNode["displayRealName"].isNull()) + workitemTimeEstimate_.recordUser.displayRealName = recordUserNode["displayRealName"].asString(); + if(!recordUserNode["displayName"].isNull()) + workitemTimeEstimate_.recordUser.displayName = recordUserNode["displayName"].asString(); + if(!recordUserNode["dingTalkId"].isNull()) + workitemTimeEstimate_.recordUser.dingTalkId = recordUserNode["dingTalkId"].asString(); + if(!recordUserNode["tbRoleId"].isNull()) + workitemTimeEstimate_.recordUser.tbRoleId = recordUserNode["tbRoleId"].asString(); + if(!recordUserNode["isDisabled"].isNull()) + workitemTimeEstimate_.recordUser.isDisabled = recordUserNode["isDisabled"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +CreateWorkitemEstimateResult::WorkitemTimeEstimate CreateWorkitemEstimateResult::getWorkitemTimeEstimate()const +{ + return workitemTimeEstimate_; +} + +std::string CreateWorkitemEstimateResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateWorkitemEstimateResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string CreateWorkitemEstimateResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateWorkitemEstimateResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateWorkitemRecordRequest.cc b/devops/src/model/CreateWorkitemRecordRequest.cc new file mode 100644 index 000000000..fcf510afc --- /dev/null +++ b/devops/src/model/CreateWorkitemRecordRequest.cc @@ -0,0 +1,52 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateWorkitemRecordRequest; + +CreateWorkitemRecordRequest::CreateWorkitemRecordRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/record"}; + setMethod(HttpRequest::Method::Post); +} + +CreateWorkitemRecordRequest::~CreateWorkitemRecordRequest() {} + +CreateWorkitemRecordRequest::body CreateWorkitemRecordRequest::getBody() const { + return body_; +} + +void CreateWorkitemRecordRequest::setBody(const CreateWorkitemRecordRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".recordUserIdentifier", body.recordUserIdentifier); + setBodyParameter(std::string("body") + ".actualTime", body.actualTime); + setBodyParameter(std::string("body") + ".gmtEnd", body.gmtEnd); + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".gmtStart", body.gmtStart); + setBodyParameter(std::string("body") + ".workitemIdentifier", body.workitemIdentifier); + setBodyParameter(std::string("body") + ".type", body.type); +} + +std::string CreateWorkitemRecordRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateWorkitemRecordRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateWorkitemRecordResult.cc b/devops/src/model/CreateWorkitemRecordResult.cc new file mode 100644 index 000000000..180e1f9a8 --- /dev/null +++ b/devops/src/model/CreateWorkitemRecordResult.cc @@ -0,0 +1,129 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateWorkitemRecordResult::CreateWorkitemRecordResult() : + ServiceResult() +{} + +CreateWorkitemRecordResult::CreateWorkitemRecordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateWorkitemRecordResult::~CreateWorkitemRecordResult() +{} + +void CreateWorkitemRecordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workitemTimeNode = value["WorkitemTime"]; + if(!workitemTimeNode["identifier"].isNull()) + workitemTime_.identifier = workitemTimeNode["identifier"].asString(); + if(!workitemTimeNode["workitemIdentifier"].isNull()) + workitemTime_.workitemIdentifier = workitemTimeNode["workitemIdentifier"].asString(); + if(!workitemTimeNode["actualTime"].isNull()) + workitemTime_.actualTime = std::stol(workitemTimeNode["actualTime"].asString()); + if(!workitemTimeNode["type"].isNull()) + workitemTime_.type = workitemTimeNode["type"].asString(); + if(!workitemTimeNode["description"].isNull()) + workitemTime_.description = workitemTimeNode["description"].asString(); + if(!workitemTimeNode["gmtStart"].isNull()) + workitemTime_.gmtStart = std::stol(workitemTimeNode["gmtStart"].asString()); + if(!workitemTimeNode["gmtEnd"].isNull()) + workitemTime_.gmtEnd = std::stol(workitemTimeNode["gmtEnd"].asString()); + auto recordUserNode = workitemTimeNode["recordUser"]; + if(!recordUserNode["account"].isNull()) + workitemTime_.recordUser.account = recordUserNode["account"].asString(); + if(!recordUserNode["identifier"].isNull()) + workitemTime_.recordUser.identifier = recordUserNode["identifier"].asString(); + if(!recordUserNode["realName"].isNull()) + workitemTime_.recordUser.realName = recordUserNode["realName"].asString(); + if(!recordUserNode["nickName"].isNull()) + workitemTime_.recordUser.nickName = recordUserNode["nickName"].asString(); + if(!recordUserNode["avatar"].isNull()) + workitemTime_.recordUser.avatar = recordUserNode["avatar"].asString(); + if(!recordUserNode["stamp"].isNull()) + workitemTime_.recordUser.stamp = recordUserNode["stamp"].asString(); + if(!recordUserNode["nameEn"].isNull()) + workitemTime_.recordUser.nameEn = recordUserNode["nameEn"].asString(); + if(!recordUserNode["gender"].isNull()) + workitemTime_.recordUser.gender = recordUserNode["gender"].asString(); + if(!recordUserNode["mobile"].isNull()) + workitemTime_.recordUser.mobile = recordUserNode["mobile"].asString(); + if(!recordUserNode["email"].isNull()) + workitemTime_.recordUser.email = recordUserNode["email"].asString(); + if(!recordUserNode["nickNamePinyin"].isNull()) + workitemTime_.recordUser.nickNamePinyin = recordUserNode["nickNamePinyin"].asString(); + if(!recordUserNode["realNamePinyin"].isNull()) + workitemTime_.recordUser.realNamePinyin = recordUserNode["realNamePinyin"].asString(); + if(!recordUserNode["displayNickName"].isNull()) + workitemTime_.recordUser.displayNickName = recordUserNode["displayNickName"].asString(); + if(!recordUserNode["displayRealName"].isNull()) + workitemTime_.recordUser.displayRealName = recordUserNode["displayRealName"].asString(); + if(!recordUserNode["displayName"].isNull()) + workitemTime_.recordUser.displayName = recordUserNode["displayName"].asString(); + if(!recordUserNode["dingTalkId"].isNull()) + workitemTime_.recordUser.dingTalkId = recordUserNode["dingTalkId"].asString(); + if(!recordUserNode["tbRoleId"].isNull()) + workitemTime_.recordUser.tbRoleId = recordUserNode["tbRoleId"].asString(); + if(!recordUserNode["isDisabled"].isNull()) + workitemTime_.recordUser.isDisabled = recordUserNode["isDisabled"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string CreateWorkitemRecordResult::getRequestId()const +{ + return requestId_; +} + +CreateWorkitemRecordResult::WorkitemTime CreateWorkitemRecordResult::getWorkitemTime()const +{ + return workitemTime_; +} + +std::string CreateWorkitemRecordResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string CreateWorkitemRecordResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateWorkitemRecordResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateWorkitemRequest.cc b/devops/src/model/CreateWorkitemRequest.cc new file mode 100644 index 000000000..e7c1ad161 --- /dev/null +++ b/devops/src/model/CreateWorkitemRequest.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateWorkitemRequest; + +CreateWorkitemRequest::CreateWorkitemRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/create"}; + setMethod(HttpRequest::Method::Post); +} + +CreateWorkitemRequest::~CreateWorkitemRequest() {} + +CreateWorkitemRequest::body CreateWorkitemRequest::getBody() const { + return body_; +} + +void CreateWorkitemRequest::setBody(const CreateWorkitemRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".parent", body.parent); + setBodyParameter(std::string("body") + ".subject", body.subject); + for(int dep1 = 0; dep1 != body.sprint.size(); dep1++) { + setBodyParameter(std::string("body") + ".sprint." + std::to_string(dep1 + 1), body.sprint[dep1]); + } + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".assignedTo", body.assignedTo); + setBodyParameter(std::string("body") + ".space", body.space); + for(int dep1 = 0; dep1 != body.participant.size(); dep1++) { + setBodyParameter(std::string("body") + ".participant." + std::to_string(dep1 + 1), body.participant[dep1]); + } + for(int dep1 = 0; dep1 != body.fieldValueList.size(); dep1++) { + setBodyParameter(std::string("body") + ".fieldValueList." + std::to_string(dep1 + 1) + ".fieldIdentifier", body.fieldValueList[dep1].fieldIdentifier); + setBodyParameter(std::string("body") + ".fieldValueList." + std::to_string(dep1 + 1) + ".workitemIdentifier", body.fieldValueList[dep1].workitemIdentifier); + setBodyParameter(std::string("body") + ".fieldValueList." + std::to_string(dep1 + 1) + ".value", body.fieldValueList[dep1].value); + } + setBodyParameter(std::string("body") + ".spaceType", body.spaceType); + setBodyParameter(std::string("body") + ".workitemType", body.workitemType); + for(int dep1 = 0; dep1 != body.verifier.size(); dep1++) { + setBodyParameter(std::string("body") + ".verifier." + std::to_string(dep1 + 1), body.verifier[dep1]); + } + for(int dep1 = 0; dep1 != body.tracker.size(); dep1++) { + setBodyParameter(std::string("body") + ".tracker." + std::to_string(dep1 + 1), body.tracker[dep1]); + } + setBodyParameter(std::string("body") + ".descriptionFormat", body.descriptionFormat); + setBodyParameter(std::string("body") + ".spaceIdentifier", body.spaceIdentifier); + setBodyParameter(std::string("body") + ".category", body.category); +} + +std::string CreateWorkitemRequest::getOrganizationId() const { + return organizationId_; +} + +void CreateWorkitemRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateWorkitemResult.cc b/devops/src/model/CreateWorkitemResult.cc new file mode 100644 index 000000000..8229ea022 --- /dev/null +++ b/devops/src/model/CreateWorkitemResult.cc @@ -0,0 +1,120 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateWorkitemResult::CreateWorkitemResult() : + ServiceResult() +{} + +CreateWorkitemResult::CreateWorkitemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateWorkitemResult::~CreateWorkitemResult() +{} + +void CreateWorkitemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workitemNode = value["workitem"]; + if(!workitemNode["identifier"].isNull()) + workitem_.identifier = workitemNode["identifier"].asString(); + if(!workitemNode["subject"].isNull()) + workitem_.subject = workitemNode["subject"].asString(); + if(!workitemNode["document"].isNull()) + workitem_.document = workitemNode["document"].asString(); + if(!workitemNode["assignedTo"].isNull()) + workitem_.assignedTo = workitemNode["assignedTo"].asString(); + if(!workitemNode["status"].isNull()) + workitem_.status = workitemNode["status"].asString(); + if(!workitemNode["statusStageIdentifier"].isNull()) + workitem_.statusStageIdentifier = workitemNode["statusStageIdentifier"].asString(); + if(!workitemNode["spaceIdentifier"].isNull()) + workitem_.spaceIdentifier = workitemNode["spaceIdentifier"].asString(); + if(!workitemNode["spaceName"].isNull()) + workitem_.spaceName = workitemNode["spaceName"].asString(); + if(!workitemNode["spaceType"].isNull()) + workitem_.spaceType = workitemNode["spaceType"].asString(); + if(!workitemNode["logicalStatus"].isNull()) + workitem_.logicalStatus = workitemNode["logicalStatus"].asString(); + if(!workitemNode["categoryIdentifier"].isNull()) + workitem_.categoryIdentifier = workitemNode["categoryIdentifier"].asString(); + if(!workitemNode["parentIdentifier"].isNull()) + workitem_.parentIdentifier = workitemNode["parentIdentifier"].asString(); + if(!workitemNode["workitemTypeIdentifier"].isNull()) + workitem_.workitemTypeIdentifier = workitemNode["workitemTypeIdentifier"].asString(); + if(!workitemNode["updateStatusAt"].isNull()) + workitem_.updateStatusAt = std::stol(workitemNode["updateStatusAt"].asString()); + if(!workitemNode["serialNumber"].isNull()) + workitem_.serialNumber = workitemNode["serialNumber"].asString(); + if(!workitemNode["gmtCreate"].isNull()) + workitem_.gmtCreate = std::stol(workitemNode["gmtCreate"].asString()); + if(!workitemNode["gmtModified"].isNull()) + workitem_.gmtModified = std::stol(workitemNode["gmtModified"].asString()); + if(!workitemNode["creator"].isNull()) + workitem_.creator = workitemNode["creator"].asString(); + if(!workitemNode["modifier"].isNull()) + workitem_.modifier = workitemNode["modifier"].asString(); + if(!workitemNode["statusIdentifier"].isNull()) + workitem_.statusIdentifier = workitemNode["statusIdentifier"].asString(); + if(!workitemNode["sprintIdentifier"].isNull()) + workitem_.sprintIdentifier = workitemNode["sprintIdentifier"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +CreateWorkitemResult::Workitem CreateWorkitemResult::getWorkitem()const +{ + return workitem_; +} + +std::string CreateWorkitemResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateWorkitemResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string CreateWorkitemResult::getErrorCode()const +{ + return errorCode_; +} + +bool CreateWorkitemResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateWorkitemV2Request.cc b/devops/src/model/CreateWorkitemV2Request.cc new file mode 100644 index 000000000..799e37f4c --- /dev/null +++ b/devops/src/model/CreateWorkitemV2Request.cc @@ -0,0 +1,70 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateWorkitemV2Request; + +CreateWorkitemV2Request::CreateWorkitemV2Request() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitem"}; + setMethod(HttpRequest::Method::Post); +} + +CreateWorkitemV2Request::~CreateWorkitemV2Request() {} + +CreateWorkitemV2Request::body CreateWorkitemV2Request::getBody() const { + return body_; +} + +void CreateWorkitemV2Request::setBody(const CreateWorkitemV2Request::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.trackers.size(); dep1++) { + setBodyParameter(std::string("body") + ".trackers." + std::to_string(dep1 + 1), body.trackers[dep1]); + } + setBodyParameter(std::string("body") + ".subject", body.subject); + setBodyParameter(std::string("body") + ".sprintIdentifier", body.sprintIdentifier); + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".assignedTo", body.assignedTo); + for(int dep1 = 0; dep1 != body.tags.size(); dep1++) { + setBodyParameter(std::string("body") + ".tags." + std::to_string(dep1 + 1), body.tags[dep1]); + } + for(int dep1 = 0; dep1 != body.fieldValueList.size(); dep1++) { + setBodyParameter(std::string("body") + ".fieldValueList." + std::to_string(dep1 + 1) + ".fieldIdentifier", body.fieldValueList[dep1].fieldIdentifier); + setBodyParameter(std::string("body") + ".fieldValueList." + std::to_string(dep1 + 1) + ".value", body.fieldValueList[dep1].value); + } + setBodyParameter(std::string("body") + ".workitemTypeIdentifier", body.workitemTypeIdentifier); + for(int dep1 = 0; dep1 != body.versions.size(); dep1++) { + setBodyParameter(std::string("body") + ".versions." + std::to_string(dep1 + 1), body.versions[dep1]); + } + setBodyParameter(std::string("body") + ".verifier", body.verifier); + setBodyParameter(std::string("body") + ".spaceIdentifier", body.spaceIdentifier); + setBodyParameter(std::string("body") + ".parentIdentifier", body.parentIdentifier); + setBodyParameter(std::string("body") + ".category", body.category); + for(int dep1 = 0; dep1 != body.participants.size(); dep1++) { + setBodyParameter(std::string("body") + ".participants." + std::to_string(dep1 + 1), body.participants[dep1]); + } +} + +std::string CreateWorkitemV2Request::getOrganizationId() const { + return organizationId_; +} + +void CreateWorkitemV2Request::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/CreateWorkitemV2Result.cc b/devops/src/model/CreateWorkitemV2Result.cc new file mode 100644 index 000000000..8abdee87e --- /dev/null +++ b/devops/src/model/CreateWorkitemV2Result.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateWorkitemV2Result::CreateWorkitemV2Result() : + ServiceResult() +{} + +CreateWorkitemV2Result::CreateWorkitemV2Result(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateWorkitemV2Result::~CreateWorkitemV2Result() +{} + +void CreateWorkitemV2Result::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + if(!value["workitemIdentifier"].isNull()) + workitemIdentifier_ = value["workitemIdentifier"].asString(); + +} + +std::string CreateWorkitemV2Result::getWorkitemIdentifier()const +{ + return workitemIdentifier_; +} + +std::string CreateWorkitemV2Result::getRequestId()const +{ + return requestId_; +} + +std::string CreateWorkitemV2Result::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateWorkitemV2Result::getErrorMessage()const +{ + return errorMessage_; +} + +std::string CreateWorkitemV2Result::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/CreateWorkspaceRequest.cc b/devops/src/model/CreateWorkspaceRequest.cc new file mode 100644 index 000000000..1840f4691 --- /dev/null +++ b/devops/src/model/CreateWorkspaceRequest.cc @@ -0,0 +1,100 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::CreateWorkspaceRequest; + +CreateWorkspaceRequest::CreateWorkspaceRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/workspaces"}; + setMethod(HttpRequest::Method::Post); +} + +CreateWorkspaceRequest::~CreateWorkspaceRequest() {} + +std::string CreateWorkspaceRequest::getCodeUrl() const { + return codeUrl_; +} + +void CreateWorkspaceRequest::setCodeUrl(const std::string &codeUrl) { + codeUrl_ = codeUrl; + setBodyParameter(std::string("codeUrl"), codeUrl); +} + +bool CreateWorkspaceRequest::getReuse() const { + return reuse_; +} + +void CreateWorkspaceRequest::setReuse(bool reuse) { + reuse_ = reuse; + setBodyParameter(std::string("reuse"), reuse ? "true" : "false"); +} + +std::string CreateWorkspaceRequest::getResourceIdentifier() const { + return resourceIdentifier_; +} + +void CreateWorkspaceRequest::setResourceIdentifier(const std::string &resourceIdentifier) { + resourceIdentifier_ = resourceIdentifier; + setBodyParameter(std::string("resourceIdentifier"), resourceIdentifier); +} + +std::string CreateWorkspaceRequest::getRequestFrom() const { + return requestFrom_; +} + +void CreateWorkspaceRequest::setRequestFrom(const std::string &requestFrom) { + requestFrom_ = requestFrom; + setBodyParameter(std::string("requestFrom"), requestFrom); +} + +std::string CreateWorkspaceRequest::getWorkspaceTemplate() const { + return workspaceTemplate_; +} + +void CreateWorkspaceRequest::setWorkspaceTemplate(const std::string &workspaceTemplate) { + workspaceTemplate_ = workspaceTemplate; + setBodyParameter(std::string("workspaceTemplate"), workspaceTemplate); +} + +std::string CreateWorkspaceRequest::getFilePath() const { + return filePath_; +} + +void CreateWorkspaceRequest::setFilePath(const std::string &filePath) { + filePath_ = filePath; + setBodyParameter(std::string("filePath"), filePath); +} + +std::string CreateWorkspaceRequest::getName() const { + return name_; +} + +void CreateWorkspaceRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("name"), name); +} + +std::string CreateWorkspaceRequest::getCodeVersion() const { + return codeVersion_; +} + +void CreateWorkspaceRequest::setCodeVersion(const std::string &codeVersion) { + codeVersion_ = codeVersion; + setBodyParameter(std::string("codeVersion"), codeVersion); +} + diff --git a/devops/src/model/CreateWorkspaceResult.cc b/devops/src/model/CreateWorkspaceResult.cc new file mode 100644 index 000000000..bd79dcf02 --- /dev/null +++ b/devops/src/model/CreateWorkspaceResult.cc @@ -0,0 +1,90 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +CreateWorkspaceResult::CreateWorkspaceResult() : + ServiceResult() +{} + +CreateWorkspaceResult::CreateWorkspaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateWorkspaceResult::~CreateWorkspaceResult() +{} + +void CreateWorkspaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workspaceNode = value["workspace"]; + if(!workspaceNode["id"].isNull()) + workspace_.id = workspaceNode["id"].asString(); + if(!workspaceNode["name"].isNull()) + workspace_.name = workspaceNode["name"].asString(); + if(!workspaceNode["status"].isNull()) + workspace_.status = workspaceNode["status"].asString(); + if(!workspaceNode["template"].isNull()) + workspace_._template = workspaceNode["template"].asString(); + if(!workspaceNode["creator"].isNull()) + workspace_.creator = workspaceNode["creator"].asString(); + if(!workspaceNode["createTime"].isNull()) + workspace_.createTime = workspaceNode["createTime"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string CreateWorkspaceResult::getRequestId()const +{ + return requestId_; +} + +std::string CreateWorkspaceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateWorkspaceResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateWorkspaceResult::getSuccess()const +{ + return success_; +} + +CreateWorkspaceResult::Workspace CreateWorkspaceResult::getWorkspace()const +{ + return workspace_; +} + diff --git a/devops/src/model/DeleteAppMemberRequest.cc b/devops/src/model/DeleteAppMemberRequest.cc new file mode 100644 index 000000000..05b3f8507 --- /dev/null +++ b/devops/src/model/DeleteAppMemberRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteAppMemberRequest; + +DeleteAppMemberRequest::DeleteAppMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/appstack/apps/[appName]/members"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteAppMemberRequest::~DeleteAppMemberRequest() {} + +std::string DeleteAppMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteAppMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteAppMemberRequest::getAppName() const { + return appName_; +} + +void DeleteAppMemberRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +std::string DeleteAppMemberRequest::getSubjectType() const { + return subjectType_; +} + +void DeleteAppMemberRequest::setSubjectType(const std::string &subjectType) { + subjectType_ = subjectType; + setParameter(std::string("subjectType"), subjectType); +} + +std::string DeleteAppMemberRequest::getSubjectId() const { + return subjectId_; +} + +void DeleteAppMemberRequest::setSubjectId(const std::string &subjectId) { + subjectId_ = subjectId; + setParameter(std::string("subjectId"), subjectId); +} + diff --git a/devops/src/model/DeleteAppMemberResult.cc b/devops/src/model/DeleteAppMemberResult.cc new file mode 100644 index 000000000..d85136740 --- /dev/null +++ b/devops/src/model/DeleteAppMemberResult.cc @@ -0,0 +1,44 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteAppMemberResult::DeleteAppMemberResult() : + ServiceResult() +{} + +DeleteAppMemberResult::DeleteAppMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAppMemberResult::~DeleteAppMemberResult() +{} + +void DeleteAppMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/devops/src/model/DeleteBranchRequest.cc b/devops/src/model/DeleteBranchRequest.cc new file mode 100644 index 000000000..9f8cae416 --- /dev/null +++ b/devops/src/model/DeleteBranchRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteBranchRequest; + +DeleteBranchRequest::DeleteBranchRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/branches/delete"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteBranchRequest::~DeleteBranchRequest() {} + +std::string DeleteBranchRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteBranchRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long DeleteBranchRequest::getRepositoryId() const { + return repositoryId_; +} + +void DeleteBranchRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string DeleteBranchRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteBranchRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string DeleteBranchRequest::getBranchName() const { + return branchName_; +} + +void DeleteBranchRequest::setBranchName(const std::string &branchName) { + branchName_ = branchName; + setParameter(std::string("branchName"), branchName); +} + diff --git a/devops/src/model/DeleteBranchResult.cc b/devops/src/model/DeleteBranchResult.cc new file mode 100644 index 000000000..5020f77c6 --- /dev/null +++ b/devops/src/model/DeleteBranchResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteBranchResult::DeleteBranchResult() : + ServiceResult() +{} + +DeleteBranchResult::DeleteBranchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteBranchResult::~DeleteBranchResult() +{} + +void DeleteBranchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["branchName"].isNull()) + result_.branchName = resultNode["branchName"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +std::string DeleteBranchResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteBranchResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteBranchResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeleteBranchResult::getSuccess()const +{ + return success_; +} + +DeleteBranchResult::Result DeleteBranchResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteFileRequest.cc b/devops/src/model/DeleteFileRequest.cc new file mode 100644 index 000000000..22cc28e81 --- /dev/null +++ b/devops/src/model/DeleteFileRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteFileRequest; + +DeleteFileRequest::DeleteFileRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/files/delete"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteFileRequest::~DeleteFileRequest() {} + +std::string DeleteFileRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteFileRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteFileRequest::getFilePath() const { + return filePath_; +} + +void DeleteFileRequest::setFilePath(const std::string &filePath) { + filePath_ = filePath; + setParameter(std::string("filePath"), filePath); +} + +long DeleteFileRequest::getRepositoryId() const { + return repositoryId_; +} + +void DeleteFileRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string DeleteFileRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteFileRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string DeleteFileRequest::getCommitMessage() const { + return commitMessage_; +} + +void DeleteFileRequest::setCommitMessage(const std::string &commitMessage) { + commitMessage_ = commitMessage; + setParameter(std::string("commitMessage"), commitMessage); +} + +std::string DeleteFileRequest::getBranchName() const { + return branchName_; +} + +void DeleteFileRequest::setBranchName(const std::string &branchName) { + branchName_ = branchName; + setParameter(std::string("branchName"), branchName); +} + diff --git a/devops/src/model/DeleteFileResult.cc b/devops/src/model/DeleteFileResult.cc new file mode 100644 index 000000000..e6157bfa5 --- /dev/null +++ b/devops/src/model/DeleteFileResult.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteFileResult::DeleteFileResult() : + ServiceResult() +{} + +DeleteFileResult::DeleteFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFileResult::~DeleteFileResult() +{} + +void DeleteFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["filePath"].isNull()) + result_.filePath = resultNode["filePath"].asString(); + if(!resultNode["branchName"].isNull()) + result_.branchName = resultNode["branchName"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteFileResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteFileResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteFileResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteFileResult::getSuccess()const +{ + return success_; +} + +DeleteFileResult::Result DeleteFileResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteFlowTagGroupRequest.cc b/devops/src/model/DeleteFlowTagGroupRequest.cc new file mode 100644 index 000000000..5179b4e15 --- /dev/null +++ b/devops/src/model/DeleteFlowTagGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteFlowTagGroupRequest; + +DeleteFlowTagGroupRequest::DeleteFlowTagGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/flow/tagGroups/[id]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteFlowTagGroupRequest::~DeleteFlowTagGroupRequest() {} + +std::string DeleteFlowTagGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteFlowTagGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteFlowTagGroupRequest::getId() const { + return id_; +} + +void DeleteFlowTagGroupRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("id"), id); +} + diff --git a/devops/src/model/DeleteFlowTagGroupResult.cc b/devops/src/model/DeleteFlowTagGroupResult.cc new file mode 100644 index 000000000..53a86782a --- /dev/null +++ b/devops/src/model/DeleteFlowTagGroupResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteFlowTagGroupResult::DeleteFlowTagGroupResult() : + ServiceResult() +{} + +DeleteFlowTagGroupResult::DeleteFlowTagGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFlowTagGroupResult::~DeleteFlowTagGroupResult() +{} + +void DeleteFlowTagGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string DeleteFlowTagGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteFlowTagGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteFlowTagGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteFlowTagGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/DeleteFlowTagRequest.cc b/devops/src/model/DeleteFlowTagRequest.cc new file mode 100644 index 000000000..79abbb0be --- /dev/null +++ b/devops/src/model/DeleteFlowTagRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteFlowTagRequest; + +DeleteFlowTagRequest::DeleteFlowTagRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/flow/tags/[id]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteFlowTagRequest::~DeleteFlowTagRequest() {} + +std::string DeleteFlowTagRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteFlowTagRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteFlowTagRequest::getId() const { + return id_; +} + +void DeleteFlowTagRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("id"), id); +} + diff --git a/devops/src/model/DeleteFlowTagResult.cc b/devops/src/model/DeleteFlowTagResult.cc new file mode 100644 index 000000000..71af4205e --- /dev/null +++ b/devops/src/model/DeleteFlowTagResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteFlowTagResult::DeleteFlowTagResult() : + ServiceResult() +{} + +DeleteFlowTagResult::DeleteFlowTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFlowTagResult::~DeleteFlowTagResult() +{} + +void DeleteFlowTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string DeleteFlowTagResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteFlowTagResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteFlowTagResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteFlowTagResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/DeleteGroupMemberRequest.cc b/devops/src/model/DeleteGroupMemberRequest.cc new file mode 100644 index 000000000..89f654548 --- /dev/null +++ b/devops/src/model/DeleteGroupMemberRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteGroupMemberRequest; + +DeleteGroupMemberRequest::DeleteGroupMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/groups/[groupId]/members/remove/aliyun_pk"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteGroupMemberRequest::~DeleteGroupMemberRequest() {} + +std::string DeleteGroupMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteGroupMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteGroupMemberRequest::getAliyunPk() const { + return aliyunPk_; +} + +void DeleteGroupMemberRequest::setAliyunPk(const std::string &aliyunPk) { + aliyunPk_ = aliyunPk; + setParameter(std::string("aliyunPk"), aliyunPk); +} + +long DeleteGroupMemberRequest::getGroupId() const { + return groupId_; +} + +void DeleteGroupMemberRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string DeleteGroupMemberRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteGroupMemberRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +DeleteGroupMemberRequest::body DeleteGroupMemberRequest::getBody() const { + return body_; +} + +void DeleteGroupMemberRequest::setBody(const DeleteGroupMemberRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".memberType", body.memberType); +} + diff --git a/devops/src/model/DeleteGroupMemberResult.cc b/devops/src/model/DeleteGroupMemberResult.cc new file mode 100644 index 000000000..f09915ee9 --- /dev/null +++ b/devops/src/model/DeleteGroupMemberResult.cc @@ -0,0 +1,96 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteGroupMemberResult::DeleteGroupMemberResult() : + ServiceResult() +{} + +DeleteGroupMemberResult::DeleteGroupMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGroupMemberResult::~DeleteGroupMemberResult() +{} + +void DeleteGroupMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["username"].isNull()) + result_.username = resultNode["username"].asString(); + if(!resultNode["state"].isNull()) + result_.state = resultNode["state"].asString(); + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + if(!resultNode["externUid"].isNull()) + result_.externUid = resultNode["externUid"].asString(); + if(!resultNode["accessLevel"].isNull()) + result_.accessLevel = std::stoi(resultNode["accessLevel"].asString()); + if(!resultNode["memberType"].isNull()) + result_.memberType = resultNode["memberType"].asString(); + if(!resultNode["sourceId"].isNull()) + result_.sourceId = std::stol(resultNode["sourceId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteGroupMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteGroupMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteGroupMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteGroupMemberResult::getSuccess()const +{ + return success_; +} + +DeleteGroupMemberResult::Result DeleteGroupMemberResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteHostGroupRequest.cc b/devops/src/model/DeleteHostGroupRequest.cc new file mode 100644 index 000000000..9383db98e --- /dev/null +++ b/devops/src/model/DeleteHostGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteHostGroupRequest; + +DeleteHostGroupRequest::DeleteHostGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/hostGroups/[id]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteHostGroupRequest::~DeleteHostGroupRequest() {} + +std::string DeleteHostGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteHostGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long DeleteHostGroupRequest::getId() const { + return id_; +} + +void DeleteHostGroupRequest::setId(long id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/devops/src/model/DeleteHostGroupResult.cc b/devops/src/model/DeleteHostGroupResult.cc new file mode 100644 index 000000000..109ed89e1 --- /dev/null +++ b/devops/src/model/DeleteHostGroupResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteHostGroupResult::DeleteHostGroupResult() : + ServiceResult() +{} + +DeleteHostGroupResult::DeleteHostGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHostGroupResult::~DeleteHostGroupResult() +{} + +void DeleteHostGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteHostGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteHostGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteHostGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteHostGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/DeletePipelineGroupRequest.cc b/devops/src/model/DeletePipelineGroupRequest.cc new file mode 100644 index 000000000..424b6d21b --- /dev/null +++ b/devops/src/model/DeletePipelineGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeletePipelineGroupRequest; + +DeletePipelineGroupRequest::DeletePipelineGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelineGroups/[groupId]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeletePipelineGroupRequest::~DeletePipelineGroupRequest() {} + +long DeletePipelineGroupRequest::getGroupId() const { + return groupId_; +} + +void DeletePipelineGroupRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string DeletePipelineGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void DeletePipelineGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/DeletePipelineGroupResult.cc b/devops/src/model/DeletePipelineGroupResult.cc new file mode 100644 index 000000000..8b55ba3ac --- /dev/null +++ b/devops/src/model/DeletePipelineGroupResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeletePipelineGroupResult::DeletePipelineGroupResult() : + ServiceResult() +{} + +DeletePipelineGroupResult::DeletePipelineGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePipelineGroupResult::~DeletePipelineGroupResult() +{} + +void DeletePipelineGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string DeletePipelineGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string DeletePipelineGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeletePipelineGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeletePipelineGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/DeletePipelineRelationsRequest.cc b/devops/src/model/DeletePipelineRelationsRequest.cc new file mode 100644 index 000000000..a30b2bb87 --- /dev/null +++ b/devops/src/model/DeletePipelineRelationsRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeletePipelineRelationsRequest; + +DeletePipelineRelationsRequest::DeletePipelineRelationsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/[pipelineId]/pipelineRelations"}; + setMethod(HttpRequest::Method::Delete); +} + +DeletePipelineRelationsRequest::~DeletePipelineRelationsRequest() {} + +std::string DeletePipelineRelationsRequest::getRelObjectType() const { + return relObjectType_; +} + +void DeletePipelineRelationsRequest::setRelObjectType(const std::string &relObjectType) { + relObjectType_ = relObjectType; + setParameter(std::string("relObjectType"), relObjectType); +} + +std::string DeletePipelineRelationsRequest::getRelObjectId() const { + return relObjectId_; +} + +void DeletePipelineRelationsRequest::setRelObjectId(const std::string &relObjectId) { + relObjectId_ = relObjectId; + setParameter(std::string("relObjectId"), relObjectId); +} + +long DeletePipelineRelationsRequest::getPipelineId() const { + return pipelineId_; +} + +void DeletePipelineRelationsRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string DeletePipelineRelationsRequest::getOrganizationId() const { + return organizationId_; +} + +void DeletePipelineRelationsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/DeletePipelineRelationsResult.cc b/devops/src/model/DeletePipelineRelationsResult.cc new file mode 100644 index 000000000..9966b664c --- /dev/null +++ b/devops/src/model/DeletePipelineRelationsResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeletePipelineRelationsResult::DeletePipelineRelationsResult() : + ServiceResult() +{} + +DeletePipelineRelationsResult::DeletePipelineRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePipelineRelationsResult::~DeletePipelineRelationsResult() +{} + +void DeletePipelineRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeletePipelineRelationsResult::getRequestId()const +{ + return requestId_; +} + +std::string DeletePipelineRelationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeletePipelineRelationsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeletePipelineRelationsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/DeletePipelineRequest.cc b/devops/src/model/DeletePipelineRequest.cc new file mode 100644 index 000000000..83917d137 --- /dev/null +++ b/devops/src/model/DeletePipelineRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeletePipelineRequest; + +DeletePipelineRequest::DeletePipelineRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeletePipelineRequest::~DeletePipelineRequest() {} + +long DeletePipelineRequest::getPipelineId() const { + return pipelineId_; +} + +void DeletePipelineRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string DeletePipelineRequest::getOrganizationId() const { + return organizationId_; +} + +void DeletePipelineRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/DeletePipelineResult.cc b/devops/src/model/DeletePipelineResult.cc new file mode 100644 index 000000000..6c78177e8 --- /dev/null +++ b/devops/src/model/DeletePipelineResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeletePipelineResult::DeletePipelineResult() : + ServiceResult() +{} + +DeletePipelineResult::DeletePipelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePipelineResult::~DeletePipelineResult() +{} + +void DeletePipelineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeletePipelineResult::getRequestId()const +{ + return requestId_; +} + +std::string DeletePipelineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeletePipelineResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeletePipelineResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/DeleteProjectLabelRequest.cc b/devops/src/model/DeleteProjectLabelRequest.cc new file mode 100644 index 000000000..099e29ebf --- /dev/null +++ b/devops/src/model/DeleteProjectLabelRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteProjectLabelRequest; + +DeleteProjectLabelRequest::DeleteProjectLabelRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/labels/[labelId]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteProjectLabelRequest::~DeleteProjectLabelRequest() {} + +std::string DeleteProjectLabelRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteProjectLabelRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteProjectLabelRequest::getLabelId() const { + return labelId_; +} + +void DeleteProjectLabelRequest::setLabelId(const std::string &labelId) { + labelId_ = labelId; + setParameter(std::string("labelId"), labelId); +} + +std::string DeleteProjectLabelRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void DeleteProjectLabelRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string DeleteProjectLabelRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteProjectLabelRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/DeleteProjectLabelResult.cc b/devops/src/model/DeleteProjectLabelResult.cc new file mode 100644 index 000000000..1ca414a89 --- /dev/null +++ b/devops/src/model/DeleteProjectLabelResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteProjectLabelResult::DeleteProjectLabelResult() : + ServiceResult() +{} + +DeleteProjectLabelResult::DeleteProjectLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectLabelResult::~DeleteProjectLabelResult() +{} + +void DeleteProjectLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string DeleteProjectLabelResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteProjectLabelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteProjectLabelResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteProjectLabelResult::getSuccess()const +{ + return success_; +} + +DeleteProjectLabelResult::Result DeleteProjectLabelResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteProjectRequest.cc b/devops/src/model/DeleteProjectRequest.cc new file mode 100644 index 000000000..af79ada9d --- /dev/null +++ b/devops/src/model/DeleteProjectRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteProjectRequest; + +DeleteProjectRequest::DeleteProjectRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/projects/delete"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteProjectRequest::~DeleteProjectRequest() {} + +std::string DeleteProjectRequest::getIdentifier() const { + return identifier_; +} + +void DeleteProjectRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("identifier"), identifier); +} + +std::string DeleteProjectRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteProjectRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/DeleteProjectResult.cc b/devops/src/model/DeleteProjectResult.cc new file mode 100644 index 000000000..e50ab0830 --- /dev/null +++ b/devops/src/model/DeleteProjectResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteProjectResult::DeleteProjectResult() : + ServiceResult() +{} + +DeleteProjectResult::DeleteProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProjectResult::~DeleteProjectResult() +{} + +void DeleteProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["result"].isNull()) + result_ = value["result"].asString() == "true"; + +} + +std::string DeleteProjectResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteProjectResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string DeleteProjectResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteProjectResult::getSuccess()const +{ + return success_; +} + +bool DeleteProjectResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteProtectedBranchRequest.cc b/devops/src/model/DeleteProtectedBranchRequest.cc new file mode 100644 index 000000000..a25e3aa74 --- /dev/null +++ b/devops/src/model/DeleteProtectedBranchRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteProtectedBranchRequest; + +DeleteProtectedBranchRequest::DeleteProtectedBranchRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/protect_branches/[protectedBranchId]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteProtectedBranchRequest::~DeleteProtectedBranchRequest() {} + +std::string DeleteProtectedBranchRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteProtectedBranchRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long DeleteProtectedBranchRequest::getProtectedBranchId() const { + return protectedBranchId_; +} + +void DeleteProtectedBranchRequest::setProtectedBranchId(long protectedBranchId) { + protectedBranchId_ = protectedBranchId; + setParameter(std::string("protectedBranchId"), std::to_string(protectedBranchId)); +} + +long DeleteProtectedBranchRequest::getRepositoryId() const { + return repositoryId_; +} + +void DeleteProtectedBranchRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string DeleteProtectedBranchRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteProtectedBranchRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/DeleteProtectedBranchResult.cc b/devops/src/model/DeleteProtectedBranchResult.cc new file mode 100644 index 000000000..65bd65672 --- /dev/null +++ b/devops/src/model/DeleteProtectedBranchResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteProtectedBranchResult::DeleteProtectedBranchResult() : + ServiceResult() +{} + +DeleteProtectedBranchResult::DeleteProtectedBranchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProtectedBranchResult::~DeleteProtectedBranchResult() +{} + +void DeleteProtectedBranchResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteProtectedBranchResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteProtectedBranchResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteProtectedBranchResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteProtectedBranchResult::getSuccess()const +{ + return success_; +} + +DeleteProtectedBranchResult::Result DeleteProtectedBranchResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeletePushRuleRequest.cc b/devops/src/model/DeletePushRuleRequest.cc new file mode 100644 index 000000000..3b89a0bd1 --- /dev/null +++ b/devops/src/model/DeletePushRuleRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeletePushRuleRequest; + +DeletePushRuleRequest::DeletePushRuleRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/push_rule/[pushRuleId]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeletePushRuleRequest::~DeletePushRuleRequest() {} + +std::string DeletePushRuleRequest::getOrganizationId() const { + return organizationId_; +} + +void DeletePushRuleRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long DeletePushRuleRequest::getPushRuleId() const { + return pushRuleId_; +} + +void DeletePushRuleRequest::setPushRuleId(long pushRuleId) { + pushRuleId_ = pushRuleId; + setParameter(std::string("pushRuleId"), std::to_string(pushRuleId)); +} + +long DeletePushRuleRequest::getRepositoryId() const { + return repositoryId_; +} + +void DeletePushRuleRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string DeletePushRuleRequest::getAccessToken() const { + return accessToken_; +} + +void DeletePushRuleRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/DeletePushRuleResult.cc b/devops/src/model/DeletePushRuleResult.cc new file mode 100644 index 000000000..85089d01e --- /dev/null +++ b/devops/src/model/DeletePushRuleResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeletePushRuleResult::DeletePushRuleResult() : + ServiceResult() +{} + +DeletePushRuleResult::DeletePushRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePushRuleResult::~DeletePushRuleResult() +{} + +void DeletePushRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +std::string DeletePushRuleResult::getRequestId()const +{ + return requestId_; +} + +std::string DeletePushRuleResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeletePushRuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string DeletePushRuleResult::getSuccess()const +{ + return success_; +} + +DeletePushRuleResult::Result DeletePushRuleResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteRepositoryGroupRequest.cc b/devops/src/model/DeleteRepositoryGroupRequest.cc new file mode 100644 index 000000000..4f21e3b69 --- /dev/null +++ b/devops/src/model/DeleteRepositoryGroupRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteRepositoryGroupRequest; + +DeleteRepositoryGroupRequest::DeleteRepositoryGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/groups/[groupId]/remove"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteRepositoryGroupRequest::~DeleteRepositoryGroupRequest() {} + +std::string DeleteRepositoryGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteRepositoryGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long DeleteRepositoryGroupRequest::getGroupId() const { + return groupId_; +} + +void DeleteRepositoryGroupRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string DeleteRepositoryGroupRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteRepositoryGroupRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +DeleteRepositoryGroupRequest::body DeleteRepositoryGroupRequest::getBody() const { + return body_; +} + +void DeleteRepositoryGroupRequest::setBody(const DeleteRepositoryGroupRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".reason", body.reason); +} + diff --git a/devops/src/model/DeleteRepositoryGroupResult.cc b/devops/src/model/DeleteRepositoryGroupResult.cc new file mode 100644 index 000000000..a912ca73a --- /dev/null +++ b/devops/src/model/DeleteRepositoryGroupResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteRepositoryGroupResult::DeleteRepositoryGroupResult() : + ServiceResult() +{} + +DeleteRepositoryGroupResult::DeleteRepositoryGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRepositoryGroupResult::~DeleteRepositoryGroupResult() +{} + +void DeleteRepositoryGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteRepositoryGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteRepositoryGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteRepositoryGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteRepositoryGroupResult::getSuccess()const +{ + return success_; +} + +DeleteRepositoryGroupResult::Result DeleteRepositoryGroupResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteRepositoryMemberRequest.cc b/devops/src/model/DeleteRepositoryMemberRequest.cc new file mode 100644 index 000000000..745c4fea2 --- /dev/null +++ b/devops/src/model/DeleteRepositoryMemberRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteRepositoryMemberRequest; + +DeleteRepositoryMemberRequest::DeleteRepositoryMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/members/delete/[aliyunPk]"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteRepositoryMemberRequest::~DeleteRepositoryMemberRequest() {} + +std::string DeleteRepositoryMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteRepositoryMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteRepositoryMemberRequest::getAliyunPk() const { + return aliyunPk_; +} + +void DeleteRepositoryMemberRequest::setAliyunPk(const std::string &aliyunPk) { + aliyunPk_ = aliyunPk; + setParameter(std::string("aliyunPk"), aliyunPk); +} + +long DeleteRepositoryMemberRequest::getRepositoryId() const { + return repositoryId_; +} + +void DeleteRepositoryMemberRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string DeleteRepositoryMemberRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteRepositoryMemberRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +DeleteRepositoryMemberRequest::body DeleteRepositoryMemberRequest::getBody() const { + return body_; +} + +void DeleteRepositoryMemberRequest::setBody(const DeleteRepositoryMemberRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".memberType", body.memberType); +} + diff --git a/devops/src/model/DeleteRepositoryMemberResult.cc b/devops/src/model/DeleteRepositoryMemberResult.cc new file mode 100644 index 000000000..7940d61d8 --- /dev/null +++ b/devops/src/model/DeleteRepositoryMemberResult.cc @@ -0,0 +1,94 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteRepositoryMemberResult::DeleteRepositoryMemberResult() : + ServiceResult() +{} + +DeleteRepositoryMemberResult::DeleteRepositoryMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRepositoryMemberResult::~DeleteRepositoryMemberResult() +{} + +void DeleteRepositoryMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["createAt"].isNull()) + result_.createAt = resultNode["createAt"].asString(); + if(!resultNode["updateAt"].isNull()) + result_.updateAt = resultNode["updateAt"].asString(); + if(!resultNode["sourceId"].isNull()) + result_.sourceId = std::stol(resultNode["sourceId"].asString()); + if(!resultNode["sourceType"].isNull()) + result_.sourceType = resultNode["sourceType"].asString(); + if(!resultNode["userId"].isNull()) + result_.userId = std::stol(resultNode["userId"].asString()); + if(!resultNode["accessLevel"].isNull()) + result_.accessLevel = std::stoi(resultNode["accessLevel"].asString()); + if(!resultNode["externUid"].isNull()) + result_.externUid = resultNode["externUid"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteRepositoryMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteRepositoryMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteRepositoryMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteRepositoryMemberResult::getSuccess()const +{ + return success_; +} + +DeleteRepositoryMemberResult::Result DeleteRepositoryMemberResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteRepositoryRequest.cc b/devops/src/model/DeleteRepositoryRequest.cc new file mode 100644 index 000000000..8304b2e16 --- /dev/null +++ b/devops/src/model/DeleteRepositoryRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteRepositoryRequest; + +DeleteRepositoryRequest::DeleteRepositoryRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/remove"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteRepositoryRequest::~DeleteRepositoryRequest() {} + +std::string DeleteRepositoryRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteRepositoryRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long DeleteRepositoryRequest::getRepositoryId() const { + return repositoryId_; +} + +void DeleteRepositoryRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string DeleteRepositoryRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteRepositoryRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +DeleteRepositoryRequest::body DeleteRepositoryRequest::getBody() const { + return body_; +} + +void DeleteRepositoryRequest::setBody(const DeleteRepositoryRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".reason", body.reason); +} + diff --git a/devops/src/model/DeleteRepositoryResult.cc b/devops/src/model/DeleteRepositoryResult.cc new file mode 100644 index 000000000..4b3d477d7 --- /dev/null +++ b/devops/src/model/DeleteRepositoryResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteRepositoryResult::DeleteRepositoryResult() : + ServiceResult() +{} + +DeleteRepositoryResult::DeleteRepositoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRepositoryResult::~DeleteRepositoryResult() +{} + +void DeleteRepositoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteRepositoryResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteRepositoryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteRepositoryResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteRepositoryResult::getSuccess()const +{ + return success_; +} + +DeleteRepositoryResult::Result DeleteRepositoryResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteRepositoryWebhookRequest.cc b/devops/src/model/DeleteRepositoryWebhookRequest.cc new file mode 100644 index 000000000..b7ab0c788 --- /dev/null +++ b/devops/src/model/DeleteRepositoryWebhookRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteRepositoryWebhookRequest; + +DeleteRepositoryWebhookRequest::DeleteRepositoryWebhookRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/hooks/[hookId]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteRepositoryWebhookRequest::~DeleteRepositoryWebhookRequest() {} + +std::string DeleteRepositoryWebhookRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteRepositoryWebhookRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long DeleteRepositoryWebhookRequest::getHookId() const { + return hookId_; +} + +void DeleteRepositoryWebhookRequest::setHookId(long hookId) { + hookId_ = hookId; + setParameter(std::string("hookId"), std::to_string(hookId)); +} + +long DeleteRepositoryWebhookRequest::getRepositoryId() const { + return repositoryId_; +} + +void DeleteRepositoryWebhookRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string DeleteRepositoryWebhookRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteRepositoryWebhookRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/DeleteRepositoryWebhookResult.cc b/devops/src/model/DeleteRepositoryWebhookResult.cc new file mode 100644 index 000000000..b0bd6e89f --- /dev/null +++ b/devops/src/model/DeleteRepositoryWebhookResult.cc @@ -0,0 +1,108 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteRepositoryWebhookResult::DeleteRepositoryWebhookResult() : + ServiceResult() +{} + +DeleteRepositoryWebhookResult::DeleteRepositoryWebhookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRepositoryWebhookResult::~DeleteRepositoryWebhookResult() +{} + +void DeleteRepositoryWebhookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["url"].isNull()) + result_.url = resultNode["url"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["projectId"].isNull()) + result_.projectId = std::stol(resultNode["projectId"].asString()); + if(!resultNode["pushEvents"].isNull()) + result_.pushEvents = resultNode["pushEvents"].asString() == "true"; + if(!resultNode["issuesEvents"].isNull()) + result_.issuesEvents = resultNode["issuesEvents"].asString() == "true"; + if(!resultNode["mergeRequestsEvents"].isNull()) + result_.mergeRequestsEvents = resultNode["mergeRequestsEvents"].asString() == "true"; + if(!resultNode["tagPushEvents"].isNull()) + result_.tagPushEvents = resultNode["tagPushEvents"].asString() == "true"; + if(!resultNode["buildEvents"].isNull()) + result_.buildEvents = resultNode["buildEvents"].asString() == "true"; + if(!resultNode["noteEvents"].isNull()) + result_.noteEvents = resultNode["noteEvents"].asString() == "true"; + if(!resultNode["enableSslVerification"].isNull()) + result_.enableSslVerification = resultNode["enableSslVerification"].asString() == "true"; + if(!resultNode["lastTestResult"].isNull()) + result_.lastTestResult = resultNode["lastTestResult"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["secretToken"].isNull()) + result_.secretToken = resultNode["secretToken"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteRepositoryWebhookResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteRepositoryWebhookResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteRepositoryWebhookResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteRepositoryWebhookResult::getSuccess()const +{ + return success_; +} + +DeleteRepositoryWebhookResult::Result DeleteRepositoryWebhookResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteResourceMemberRequest.cc b/devops/src/model/DeleteResourceMemberRequest.cc new file mode 100644 index 000000000..83dcef4fe --- /dev/null +++ b/devops/src/model/DeleteResourceMemberRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteResourceMemberRequest; + +DeleteResourceMemberRequest::DeleteResourceMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/[resourceType]/[resourceId]/members/[accountId]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteResourceMemberRequest::~DeleteResourceMemberRequest() {} + +long DeleteResourceMemberRequest::getResourceId() const { + return resourceId_; +} + +void DeleteResourceMemberRequest::setResourceId(long resourceId) { + resourceId_ = resourceId; + setParameter(std::string("resourceId"), std::to_string(resourceId)); +} + +std::string DeleteResourceMemberRequest::getResourceType() const { + return resourceType_; +} + +void DeleteResourceMemberRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("resourceType"), resourceType); +} + +std::string DeleteResourceMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteResourceMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteResourceMemberRequest::getAccountId() const { + return accountId_; +} + +void DeleteResourceMemberRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setParameter(std::string("accountId"), accountId); +} + diff --git a/devops/src/model/DeleteResourceMemberResult.cc b/devops/src/model/DeleteResourceMemberResult.cc new file mode 100644 index 000000000..30ad8294d --- /dev/null +++ b/devops/src/model/DeleteResourceMemberResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteResourceMemberResult::DeleteResourceMemberResult() : + ServiceResult() +{} + +DeleteResourceMemberResult::DeleteResourceMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteResourceMemberResult::~DeleteResourceMemberResult() +{} + +void DeleteResourceMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteResourceMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteResourceMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteResourceMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteResourceMemberResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/DeleteTagRequest.cc b/devops/src/model/DeleteTagRequest.cc new file mode 100644 index 000000000..c608ab781 --- /dev/null +++ b/devops/src/model/DeleteTagRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteTagRequest; + +DeleteTagRequest::DeleteTagRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/tags/delete"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteTagRequest::~DeleteTagRequest() {} + +std::string DeleteTagRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteTagRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteTagRequest::getTagName() const { + return tagName_; +} + +void DeleteTagRequest::setTagName(const std::string &tagName) { + tagName_ = tagName; + setParameter(std::string("tagName"), tagName); +} + +long DeleteTagRequest::getRepositoryId() const { + return repositoryId_; +} + +void DeleteTagRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string DeleteTagRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteTagRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/DeleteTagResult.cc b/devops/src/model/DeleteTagResult.cc new file mode 100644 index 000000000..7be93d217 --- /dev/null +++ b/devops/src/model/DeleteTagResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteTagResult::DeleteTagResult() : + ServiceResult() +{} + +DeleteTagResult::DeleteTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTagResult::~DeleteTagResult() +{} + +void DeleteTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["tagName"].isNull()) + result_.tagName = resultNode["tagName"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteTagResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteTagResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteTagResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteTagResult::getSuccess()const +{ + return success_; +} + +DeleteTagResult::Result DeleteTagResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteUserKeyRequest.cc b/devops/src/model/DeleteUserKeyRequest.cc new file mode 100644 index 000000000..074f9c955 --- /dev/null +++ b/devops/src/model/DeleteUserKeyRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteUserKeyRequest; + +DeleteUserKeyRequest::DeleteUserKeyRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v3/user/keys/[keyId]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteUserKeyRequest::~DeleteUserKeyRequest() {} + +std::string DeleteUserKeyRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteUserKeyRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string DeleteUserKeyRequest::getAccessToken() const { + return accessToken_; +} + +void DeleteUserKeyRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long DeleteUserKeyRequest::getKeyId() const { + return keyId_; +} + +void DeleteUserKeyRequest::setKeyId(long keyId) { + keyId_ = keyId; + setParameter(std::string("keyId"), std::to_string(keyId)); +} + diff --git a/devops/src/model/DeleteUserKeyResult.cc b/devops/src/model/DeleteUserKeyResult.cc new file mode 100644 index 000000000..bc6b19203 --- /dev/null +++ b/devops/src/model/DeleteUserKeyResult.cc @@ -0,0 +1,100 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteUserKeyResult::DeleteUserKeyResult() : + ServiceResult() +{} + +DeleteUserKeyResult::DeleteUserKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteUserKeyResult::~DeleteUserKeyResult() +{} + +void DeleteUserKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["updatedAt"].isNull()) + result_.updatedAt = resultNode["updatedAt"].asString(); + if(!resultNode["title"].isNull()) + result_.title = resultNode["title"].asString(); + if(!resultNode["fingerPrint"].isNull()) + result_.fingerPrint = resultNode["fingerPrint"].asString(); + if(!resultNode["shaContext"].isNull()) + result_.shaContext = resultNode["shaContext"].asString(); + if(!resultNode["publicKey"].isNull()) + result_.publicKey = resultNode["publicKey"].asString(); + if(!resultNode["context"].isNull()) + result_.context = resultNode["context"].asString(); + if(!resultNode["expireTime"].isNull()) + result_.expireTime = resultNode["expireTime"].asString(); + if(!resultNode["lastUsedTime"].isNull()) + result_.lastUsedTime = resultNode["lastUsedTime"].asString(); + if(!resultNode["keyScope"].isNull()) + result_.keyScope = resultNode["keyScope"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteUserKeyResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteUserKeyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteUserKeyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteUserKeyResult::getSuccess()const +{ + return success_; +} + +DeleteUserKeyResult::Result DeleteUserKeyResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/DeleteVariableGroupRequest.cc b/devops/src/model/DeleteVariableGroupRequest.cc new file mode 100644 index 000000000..2db7b6e0a --- /dev/null +++ b/devops/src/model/DeleteVariableGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteVariableGroupRequest; + +DeleteVariableGroupRequest::DeleteVariableGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/variableGroups/[id]"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteVariableGroupRequest::~DeleteVariableGroupRequest() {} + +std::string DeleteVariableGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteVariableGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long DeleteVariableGroupRequest::getId() const { + return id_; +} + +void DeleteVariableGroupRequest::setId(long id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/devops/src/model/DeleteVariableGroupResult.cc b/devops/src/model/DeleteVariableGroupResult.cc new file mode 100644 index 000000000..ca495487e --- /dev/null +++ b/devops/src/model/DeleteVariableGroupResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteVariableGroupResult::DeleteVariableGroupResult() : + ServiceResult() +{} + +DeleteVariableGroupResult::DeleteVariableGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVariableGroupResult::~DeleteVariableGroupResult() +{} + +void DeleteVariableGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string DeleteVariableGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteVariableGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteVariableGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteVariableGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/DeleteWorkitemAllCommentRequest.cc b/devops/src/model/DeleteWorkitemAllCommentRequest.cc new file mode 100644 index 000000000..c98743260 --- /dev/null +++ b/devops/src/model/DeleteWorkitemAllCommentRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteWorkitemAllCommentRequest; + +DeleteWorkitemAllCommentRequest::DeleteWorkitemAllCommentRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/deleteAllComment"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteWorkitemAllCommentRequest::~DeleteWorkitemAllCommentRequest() {} + +std::string DeleteWorkitemAllCommentRequest::getIdentifier() const { + return identifier_; +} + +void DeleteWorkitemAllCommentRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("identifier"), identifier); +} + +std::string DeleteWorkitemAllCommentRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteWorkitemAllCommentRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/DeleteWorkitemAllCommentResult.cc b/devops/src/model/DeleteWorkitemAllCommentResult.cc new file mode 100644 index 000000000..ba72639b7 --- /dev/null +++ b/devops/src/model/DeleteWorkitemAllCommentResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteWorkitemAllCommentResult::DeleteWorkitemAllCommentResult() : + ServiceResult() +{} + +DeleteWorkitemAllCommentResult::DeleteWorkitemAllCommentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteWorkitemAllCommentResult::~DeleteWorkitemAllCommentResult() +{} + +void DeleteWorkitemAllCommentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + if(!value["deleteFlag"].isNull()) + deleteFlag_ = value["deleteFlag"].asString() == "true"; + +} + +std::string DeleteWorkitemAllCommentResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteWorkitemAllCommentResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string DeleteWorkitemAllCommentResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteWorkitemAllCommentResult::getSuccess()const +{ + return success_; +} + +bool DeleteWorkitemAllCommentResult::getDeleteFlag()const +{ + return deleteFlag_; +} + diff --git a/devops/src/model/DeleteWorkitemCommentRequest.cc b/devops/src/model/DeleteWorkitemCommentRequest.cc new file mode 100644 index 000000000..8abe87ee7 --- /dev/null +++ b/devops/src/model/DeleteWorkitemCommentRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteWorkitemCommentRequest; + +DeleteWorkitemCommentRequest::DeleteWorkitemCommentRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/deleteComent"}; + setMethod(HttpRequest::Method::Post); +} + +DeleteWorkitemCommentRequest::~DeleteWorkitemCommentRequest() {} + +std::string DeleteWorkitemCommentRequest::getBody() const { + return body_; +} + +void DeleteWorkitemCommentRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +std::string DeleteWorkitemCommentRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteWorkitemCommentRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/DeleteWorkitemCommentResult.cc b/devops/src/model/DeleteWorkitemCommentResult.cc new file mode 100644 index 000000000..8d43d4a08 --- /dev/null +++ b/devops/src/model/DeleteWorkitemCommentResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteWorkitemCommentResult::DeleteWorkitemCommentResult() : + ServiceResult() +{} + +DeleteWorkitemCommentResult::DeleteWorkitemCommentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteWorkitemCommentResult::~DeleteWorkitemCommentResult() +{} + +void DeleteWorkitemCommentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + if(!value["deleteFlag"].isNull()) + deleteFlag_ = value["deleteFlag"].asString() == "true"; + +} + +std::string DeleteWorkitemCommentResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteWorkitemCommentResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string DeleteWorkitemCommentResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteWorkitemCommentResult::getSuccess()const +{ + return success_; +} + +bool DeleteWorkitemCommentResult::getDeleteFlag()const +{ + return deleteFlag_; +} + diff --git a/devops/src/model/DeleteWorkitemRequest.cc b/devops/src/model/DeleteWorkitemRequest.cc new file mode 100644 index 000000000..8d3cc40eb --- /dev/null +++ b/devops/src/model/DeleteWorkitemRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::DeleteWorkitemRequest; + +DeleteWorkitemRequest::DeleteWorkitemRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitem/delete"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteWorkitemRequest::~DeleteWorkitemRequest() {} + +std::string DeleteWorkitemRequest::getIdentifier() const { + return identifier_; +} + +void DeleteWorkitemRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("identifier"), identifier); +} + +std::string DeleteWorkitemRequest::getOrganizationId() const { + return organizationId_; +} + +void DeleteWorkitemRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/DeleteWorkitemResult.cc b/devops/src/model/DeleteWorkitemResult.cc new file mode 100644 index 000000000..55f652c7a --- /dev/null +++ b/devops/src/model/DeleteWorkitemResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +DeleteWorkitemResult::DeleteWorkitemResult() : + ServiceResult() +{} + +DeleteWorkitemResult::DeleteWorkitemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteWorkitemResult::~DeleteWorkitemResult() +{} + +void DeleteWorkitemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["deleteFlag"].isNull()) + deleteFlag_ = value["deleteFlag"].asString() == "true"; + +} + +std::string DeleteWorkitemResult::getRequestId()const +{ + return requestId_; +} + +std::string DeleteWorkitemResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string DeleteWorkitemResult::getErrorCode()const +{ + return errorCode_; +} + +bool DeleteWorkitemResult::getSuccess()const +{ + return success_; +} + +bool DeleteWorkitemResult::getDeleteFlag()const +{ + return deleteFlag_; +} + diff --git a/devops/src/model/EnableDeployKeyRequest.cc b/devops/src/model/EnableDeployKeyRequest.cc new file mode 100644 index 000000000..5a4bf4961 --- /dev/null +++ b/devops/src/model/EnableDeployKeyRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::EnableDeployKeyRequest; + +EnableDeployKeyRequest::EnableDeployKeyRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/keys/[keyId]/enable"}; + setMethod(HttpRequest::Method::Post); +} + +EnableDeployKeyRequest::~EnableDeployKeyRequest() {} + +std::string EnableDeployKeyRequest::getOrganizationId() const { + return organizationId_; +} + +void EnableDeployKeyRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long EnableDeployKeyRequest::getRepositoryId() const { + return repositoryId_; +} + +void EnableDeployKeyRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string EnableDeployKeyRequest::getAccessToken() const { + return accessToken_; +} + +void EnableDeployKeyRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long EnableDeployKeyRequest::getKeyId() const { + return keyId_; +} + +void EnableDeployKeyRequest::setKeyId(long keyId) { + keyId_ = keyId; + setParameter(std::string("keyId"), std::to_string(keyId)); +} + diff --git a/devops/src/model/EnableDeployKeyResult.cc b/devops/src/model/EnableDeployKeyResult.cc new file mode 100644 index 000000000..afb71f55e --- /dev/null +++ b/devops/src/model/EnableDeployKeyResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +EnableDeployKeyResult::EnableDeployKeyResult() : + ServiceResult() +{} + +EnableDeployKeyResult::EnableDeployKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableDeployKeyResult::~EnableDeployKeyResult() +{} + +void EnableDeployKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string EnableDeployKeyResult::getRequestId()const +{ + return requestId_; +} + +std::string EnableDeployKeyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string EnableDeployKeyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool EnableDeployKeyResult::getSuccess()const +{ + return success_; +} + +EnableDeployKeyResult::Result EnableDeployKeyResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/FrozenWorkspaceRequest.cc b/devops/src/model/FrozenWorkspaceRequest.cc new file mode 100644 index 000000000..d8550095f --- /dev/null +++ b/devops/src/model/FrozenWorkspaceRequest.cc @@ -0,0 +1,37 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::FrozenWorkspaceRequest; + +FrozenWorkspaceRequest::FrozenWorkspaceRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/workspaces/[workspaceId]/frozen"}; + setMethod(HttpRequest::Method::Put); +} + +FrozenWorkspaceRequest::~FrozenWorkspaceRequest() {} + +std::string FrozenWorkspaceRequest::getWorkspaceId() const { + return workspaceId_; +} + +void FrozenWorkspaceRequest::setWorkspaceId(const std::string &workspaceId) { + workspaceId_ = workspaceId; + setParameter(std::string("workspaceId"), workspaceId); +} + diff --git a/devops/src/model/FrozenWorkspaceResult.cc b/devops/src/model/FrozenWorkspaceResult.cc new file mode 100644 index 000000000..d0bda5173 --- /dev/null +++ b/devops/src/model/FrozenWorkspaceResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +FrozenWorkspaceResult::FrozenWorkspaceResult() : + ServiceResult() +{} + +FrozenWorkspaceResult::FrozenWorkspaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FrozenWorkspaceResult::~FrozenWorkspaceResult() +{} + +void FrozenWorkspaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string FrozenWorkspaceResult::getRequestId()const +{ + return requestId_; +} + +std::string FrozenWorkspaceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string FrozenWorkspaceResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool FrozenWorkspaceResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetApplicationRequest.cc b/devops/src/model/GetApplicationRequest.cc new file mode 100644 index 000000000..364949dfd --- /dev/null +++ b/devops/src/model/GetApplicationRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetApplicationRequest; + +GetApplicationRequest::GetApplicationRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/appstack/apps/[appName]"}; + setMethod(HttpRequest::Method::Get); +} + +GetApplicationRequest::~GetApplicationRequest() {} + +std::string GetApplicationRequest::getOrganizationId() const { + return organizationId_; +} + +void GetApplicationRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetApplicationRequest::getAppName() const { + return appName_; +} + +void GetApplicationRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + diff --git a/devops/src/model/GetApplicationResult.cc b/devops/src/model/GetApplicationResult.cc new file mode 100644 index 000000000..e6d703c38 --- /dev/null +++ b/devops/src/model/GetApplicationResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetApplicationResult::GetApplicationResult() : + ServiceResult() +{} + +GetApplicationResult::GetApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetApplicationResult::~GetApplicationResult() +{} + +void GetApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["name"].isNull()) + name_ = value["name"].asString(); + if(!value["gmtCreate"].isNull()) + gmtCreate_ = value["gmtCreate"].asString(); + if(!value["creatorAccountId"].isNull()) + creatorAccountId_ = value["creatorAccountId"].asString(); + if(!value["description"].isNull()) + description_ = value["description"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetApplicationResult::getGmtCreate()const +{ + return gmtCreate_; +} + +std::string GetApplicationResult::getDescription()const +{ + return description_; +} + +std::string GetApplicationResult::getRequestId()const +{ + return requestId_; +} + +std::string GetApplicationResult::getCreatorAccountId()const +{ + return creatorAccountId_; +} + +std::string GetApplicationResult::getName()const +{ + return name_; +} + diff --git a/devops/src/model/GetBranchInfoRequest.cc b/devops/src/model/GetBranchInfoRequest.cc new file mode 100644 index 000000000..cf8ad0272 --- /dev/null +++ b/devops/src/model/GetBranchInfoRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetBranchInfoRequest; + +GetBranchInfoRequest::GetBranchInfoRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/branches/detail"}; + setMethod(HttpRequest::Method::Get); +} + +GetBranchInfoRequest::~GetBranchInfoRequest() {} + +std::string GetBranchInfoRequest::getOrganizationId() const { + return organizationId_; +} + +void GetBranchInfoRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetBranchInfoRequest::getRepositoryId() const { + return repositoryId_; +} + +void GetBranchInfoRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string GetBranchInfoRequest::getAccessToken() const { + return accessToken_; +} + +void GetBranchInfoRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string GetBranchInfoRequest::getBranchName() const { + return branchName_; +} + +void GetBranchInfoRequest::setBranchName(const std::string &branchName) { + branchName_ = branchName; + setParameter(std::string("branchName"), branchName); +} + diff --git a/devops/src/model/GetBranchInfoResult.cc b/devops/src/model/GetBranchInfoResult.cc new file mode 100644 index 000000000..a8ba6b793 --- /dev/null +++ b/devops/src/model/GetBranchInfoResult.cc @@ -0,0 +1,149 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetBranchInfoResult::GetBranchInfoResult() : + ServiceResult() +{} + +GetBranchInfoResult::GetBranchInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBranchInfoResult::~GetBranchInfoResult() +{} + +void GetBranchInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["protected"].isNull()) + result_._protected = resultNode["protected"].asString(); + auto commitNode = resultNode["commit"]; + if(!commitNode["id"].isNull()) + result_.commit.id = commitNode["id"].asString(); + if(!commitNode["shortId"].isNull()) + result_.commit.shortId = commitNode["shortId"].asString(); + if(!commitNode["title"].isNull()) + result_.commit.title = commitNode["title"].asString(); + if(!commitNode["authorName"].isNull()) + result_.commit.authorName = commitNode["authorName"].asString(); + if(!commitNode["authorEmail"].isNull()) + result_.commit.authorEmail = commitNode["authorEmail"].asString(); + if(!commitNode["createdAt"].isNull()) + result_.commit.createdAt = commitNode["createdAt"].asString(); + if(!commitNode["message"].isNull()) + result_.commit.message = commitNode["message"].asString(); + if(!commitNode["authoredDate"].isNull()) + result_.commit.authoredDate = commitNode["authoredDate"].asString(); + if(!commitNode["committedDate"].isNull()) + result_.commit.committedDate = commitNode["committedDate"].asString(); + if(!commitNode["committerEmail"].isNull()) + result_.commit.committerEmail = commitNode["committerEmail"].asString(); + if(!commitNode["committerName"].isNull()) + result_.commit.committerName = commitNode["committerName"].asString(); + if(!commitNode["commentsCount"].isNull()) + result_.commit.commentsCount = std::stol(commitNode["commentsCount"].asString()); + auto authorNode = commitNode["author"]; + if(!authorNode["id"].isNull()) + result_.commit.author.id = std::stol(authorNode["id"].asString()); + if(!authorNode["name"].isNull()) + result_.commit.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + result_.commit.author.username = authorNode["username"].asString(); + if(!authorNode["state"].isNull()) + result_.commit.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + result_.commit.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["externUid"].isNull()) + result_.commit.author.externUid = authorNode["externUid"].asString(); + if(!authorNode["email"].isNull()) + result_.commit.author.email = authorNode["email"].asString(); + if(!authorNode["tbUserId"].isNull()) + result_.commit.author.tbUserId = authorNode["tbUserId"].asString(); + auto committerNode = commitNode["committer"]; + if(!committerNode["id"].isNull()) + result_.commit.committer.id = std::stol(committerNode["id"].asString()); + if(!committerNode["name"].isNull()) + result_.commit.committer.name = committerNode["name"].asString(); + if(!committerNode["username"].isNull()) + result_.commit.committer.username = committerNode["username"].asString(); + if(!committerNode["state"].isNull()) + result_.commit.committer.state = committerNode["state"].asString(); + if(!committerNode["avatarUrl"].isNull()) + result_.commit.committer.avatarUrl = committerNode["avatarUrl"].asString(); + if(!committerNode["externUid"].isNull()) + result_.commit.committer.externUid = committerNode["externUid"].asString(); + if(!committerNode["email"].isNull()) + result_.commit.committer.email = committerNode["email"].asString(); + if(!committerNode["tbUserId"].isNull()) + result_.commit.committer.tbUserId = committerNode["tbUserId"].asString(); + auto signatureNode = commitNode["signature"]; + if(!signatureNode["gpgKeyId"].isNull()) + result_.commit.signature.gpgKeyId = signatureNode["gpgKeyId"].asString(); + if(!signatureNode["verificationStatus"].isNull()) + result_.commit.signature.verificationStatus = signatureNode["verificationStatus"].asString(); + auto allParentIds = commitNode["parentIds"]["parent_ids"]; + for (auto value : allParentIds) + result_.commit.parentIds.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetBranchInfoResult::getRequestId()const +{ + return requestId_; +} + +std::string GetBranchInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetBranchInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetBranchInfoResult::getSuccess()const +{ + return success_; +} + +GetBranchInfoResult::Result GetBranchInfoResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetCheckRunRequest.cc b/devops/src/model/GetCheckRunRequest.cc new file mode 100644 index 000000000..5596e8b7a --- /dev/null +++ b/devops/src/model/GetCheckRunRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetCheckRunRequest; + +GetCheckRunRequest::GetCheckRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/check_runs/get_check_run"}; + setMethod(HttpRequest::Method::Get); +} + +GetCheckRunRequest::~GetCheckRunRequest() {} + +std::string GetCheckRunRequest::getOrganizationId() const { + return organizationId_; +} + +void GetCheckRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetCheckRunRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void GetCheckRunRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string GetCheckRunRequest::getAccessToken() const { + return accessToken_; +} + +void GetCheckRunRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long GetCheckRunRequest::getCheckRunId() const { + return checkRunId_; +} + +void GetCheckRunRequest::setCheckRunId(long checkRunId) { + checkRunId_ = checkRunId; + setParameter(std::string("checkRunId"), std::to_string(checkRunId)); +} + diff --git a/devops/src/model/GetCheckRunResult.cc b/devops/src/model/GetCheckRunResult.cc new file mode 100644 index 000000000..dc88bc04b --- /dev/null +++ b/devops/src/model/GetCheckRunResult.cc @@ -0,0 +1,159 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetCheckRunResult::GetCheckRunResult() : + ServiceResult() +{} + +GetCheckRunResult::GetCheckRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCheckRunResult::~GetCheckRunResult() +{} + +void GetCheckRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["updatedAt"].isNull()) + result_.updatedAt = resultNode["updatedAt"].asString(); + if(!resultNode["startedAt"].isNull()) + result_.startedAt = resultNode["startedAt"].asString(); + if(!resultNode["completedAt"].isNull()) + result_.completedAt = resultNode["completedAt"].asString(); + if(!resultNode["externalId"].isNull()) + result_.externalId = resultNode["externalId"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["headSha"].isNull()) + result_.headSha = resultNode["headSha"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["conclusion"].isNull()) + result_.conclusion = resultNode["conclusion"].asString(); + if(!resultNode["detailsUrl"].isNull()) + result_.detailsUrl = resultNode["detailsUrl"].asString(); + auto allannotationsNode = resultNode["annotations"]["check_run_annotations"]; + for (auto resultNodeannotationscheck_run_annotations : allannotationsNode) + { + Result::Check_run_annotations check_run_annotationsObject; + if(!resultNodeannotationscheck_run_annotations["id"].isNull()) + check_run_annotationsObject.id = std::stol(resultNodeannotationscheck_run_annotations["id"].asString()); + if(!resultNodeannotationscheck_run_annotations["path"].isNull()) + check_run_annotationsObject.path = resultNodeannotationscheck_run_annotations["path"].asString(); + if(!resultNodeannotationscheck_run_annotations["startLine"].isNull()) + check_run_annotationsObject.startLine = std::stol(resultNodeannotationscheck_run_annotations["startLine"].asString()); + if(!resultNodeannotationscheck_run_annotations["endLine"].isNull()) + check_run_annotationsObject.endLine = std::stol(resultNodeannotationscheck_run_annotations["endLine"].asString()); + if(!resultNodeannotationscheck_run_annotations["startColumn"].isNull()) + check_run_annotationsObject.startColumn = std::stol(resultNodeannotationscheck_run_annotations["startColumn"].asString()); + if(!resultNodeannotationscheck_run_annotations["endColumn"].isNull()) + check_run_annotationsObject.endColumn = std::stol(resultNodeannotationscheck_run_annotations["endColumn"].asString()); + if(!resultNodeannotationscheck_run_annotations["annotationLevel"].isNull()) + check_run_annotationsObject.annotationLevel = resultNodeannotationscheck_run_annotations["annotationLevel"].asString(); + if(!resultNodeannotationscheck_run_annotations["message"].isNull()) + check_run_annotationsObject.message = resultNodeannotationscheck_run_annotations["message"].asString(); + if(!resultNodeannotationscheck_run_annotations["title"].isNull()) + check_run_annotationsObject.title = resultNodeannotationscheck_run_annotations["title"].asString(); + if(!resultNodeannotationscheck_run_annotations["rawDetails"].isNull()) + check_run_annotationsObject.rawDetails = resultNodeannotationscheck_run_annotations["rawDetails"].asString(); + result_.annotations.push_back(check_run_annotationsObject); + } + auto checkSuiteNode = resultNode["checkSuite"]; + if(!checkSuiteNode["id"].isNull()) + result_.checkSuite.id = std::stol(checkSuiteNode["id"].asString()); + auto writerNode = resultNode["writer"]; + if(!writerNode["id"].isNull()) + result_.writer.id = writerNode["id"].asString(); + if(!writerNode["type"].isNull()) + result_.writer.type = writerNode["type"].asString(); + if(!writerNode["name"].isNull()) + result_.writer.name = writerNode["name"].asString(); + if(!writerNode["slug"].isNull()) + result_.writer.slug = writerNode["slug"].asString(); + if(!writerNode["logoUrl"].isNull()) + result_.writer.logoUrl = writerNode["logoUrl"].asString(); + auto outputNode = resultNode["output"]; + if(!outputNode["title"].isNull()) + result_.output.title = outputNode["title"].asString(); + if(!outputNode["summary"].isNull()) + result_.output.summary = outputNode["summary"].asString(); + if(!outputNode["text"].isNull()) + result_.output.text = outputNode["text"].asString(); + auto allimagesNode = outputNode["images"]["output_images"]; + for (auto outputNodeimagesoutput_images : allimagesNode) + { + Result::Output::Output_images output_imagesObject; + if(!outputNodeimagesoutput_images["alt"].isNull()) + output_imagesObject.alt = outputNodeimagesoutput_images["alt"].asString(); + if(!outputNodeimagesoutput_images["imageUrl"].isNull()) + output_imagesObject.imageUrl = outputNodeimagesoutput_images["imageUrl"].asString(); + if(!outputNodeimagesoutput_images["caption"].isNull()) + output_imagesObject.caption = outputNodeimagesoutput_images["caption"].asString(); + result_.output.images.push_back(output_imagesObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string GetCheckRunResult::getRequestId()const +{ + return requestId_; +} + +std::string GetCheckRunResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetCheckRunResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetCheckRunResult::getSuccess()const +{ + return success_; +} + +GetCheckRunResult::Result GetCheckRunResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetCodeupOrganizationRequest.cc b/devops/src/model/GetCodeupOrganizationRequest.cc new file mode 100644 index 000000000..60b0930af --- /dev/null +++ b/devops/src/model/GetCodeupOrganizationRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetCodeupOrganizationRequest; + +GetCodeupOrganizationRequest::GetCodeupOrganizationRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/organization/[identity]"}; + setMethod(HttpRequest::Method::Get); +} + +GetCodeupOrganizationRequest::~GetCodeupOrganizationRequest() {} + +std::string GetCodeupOrganizationRequest::getIdentity() const { + return identity_; +} + +void GetCodeupOrganizationRequest::setIdentity(const std::string &identity) { + identity_ = identity; + setParameter(std::string("identity"), identity); +} + +std::string GetCodeupOrganizationRequest::getAccessToken() const { + return accessToken_; +} + +void GetCodeupOrganizationRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/GetCodeupOrganizationResult.cc b/devops/src/model/GetCodeupOrganizationResult.cc new file mode 100644 index 000000000..a31d748a0 --- /dev/null +++ b/devops/src/model/GetCodeupOrganizationResult.cc @@ -0,0 +1,92 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetCodeupOrganizationResult::GetCodeupOrganizationResult() : + ServiceResult() +{} + +GetCodeupOrganizationResult::GetCodeupOrganizationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCodeupOrganizationResult::~GetCodeupOrganizationResult() +{} + +void GetCodeupOrganizationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["namespaceId"].isNull()) + result_.namespaceId = std::stol(resultNode["namespaceId"].asString()); + if(!resultNode["userRole"].isNull()) + result_.userRole = resultNode["userRole"].asString(); + if(!resultNode["path"].isNull()) + result_.path = resultNode["path"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["updatedAt"].isNull()) + result_.updatedAt = resultNode["updatedAt"].asString(); + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["organizationId"].isNull()) + result_.organizationId = resultNode["organizationId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetCodeupOrganizationResult::getRequestId()const +{ + return requestId_; +} + +std::string GetCodeupOrganizationResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetCodeupOrganizationResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetCodeupOrganizationResult::getSuccess()const +{ + return success_; +} + +GetCodeupOrganizationResult::Result GetCodeupOrganizationResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetCompareDetailRequest.cc b/devops/src/model/GetCompareDetailRequest.cc new file mode 100644 index 000000000..ff43b742d --- /dev/null +++ b/devops/src/model/GetCompareDetailRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetCompareDetailRequest; + +GetCompareDetailRequest::GetCompareDetailRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/commits/compare/detail"}; + setMethod(HttpRequest::Method::Get); +} + +GetCompareDetailRequest::~GetCompareDetailRequest() {} + +int GetCompareDetailRequest::getMaxDiffFile() const { + return maxDiffFile_; +} + +void GetCompareDetailRequest::setMaxDiffFile(int maxDiffFile) { + maxDiffFile_ = maxDiffFile; + setParameter(std::string("maxDiffFile"), std::to_string(maxDiffFile)); +} + +bool GetCompareDetailRequest::getMergeBase() const { + return mergeBase_; +} + +void GetCompareDetailRequest::setMergeBase(bool mergeBase) { + mergeBase_ = mergeBase; + setParameter(std::string("mergeBase"), mergeBase ? "true" : "false"); +} + +std::string GetCompareDetailRequest::getOrganizationId() const { + return organizationId_; +} + +void GetCompareDetailRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +int GetCompareDetailRequest::getMaxDiffByte() const { + return maxDiffByte_; +} + +void GetCompareDetailRequest::setMaxDiffByte(int maxDiffByte) { + maxDiffByte_ = maxDiffByte; + setParameter(std::string("maxDiffByte"), std::to_string(maxDiffByte)); +} + +long GetCompareDetailRequest::getRepositoryId() const { + return repositoryId_; +} + +void GetCompareDetailRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string GetCompareDetailRequest::getFrom() const { + return from_; +} + +void GetCompareDetailRequest::setFrom(const std::string &from) { + from_ = from; + setParameter(std::string("from"), from); +} + +std::string GetCompareDetailRequest::getTo() const { + return to_; +} + +void GetCompareDetailRequest::setTo(const std::string &to) { + to_ = to; + setParameter(std::string("to"), to); +} + diff --git a/devops/src/model/GetCompareDetailResult.cc b/devops/src/model/GetCompareDetailResult.cc new file mode 100644 index 000000000..c1dab570c --- /dev/null +++ b/devops/src/model/GetCompareDetailResult.cc @@ -0,0 +1,180 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetCompareDetailResult::GetCompareDetailResult() : + ServiceResult() +{} + +GetCompareDetailResult::GetCompareDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCompareDetailResult::~GetCompareDetailResult() +{} + +void GetCompareDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + auto allcommitsNode = resultNode["commits"]["commitsItem"]; + for (auto resultNodecommitscommitsItem : allcommitsNode) + { + Result::CommitsItem commitsItemObject; + if(!resultNodecommitscommitsItem["id"].isNull()) + commitsItemObject.id = resultNodecommitscommitsItem["id"].asString(); + if(!resultNodecommitscommitsItem["shortId"].isNull()) + commitsItemObject.shortId = resultNodecommitscommitsItem["shortId"].asString(); + if(!resultNodecommitscommitsItem["title"].isNull()) + commitsItemObject.title = resultNodecommitscommitsItem["title"].asString(); + if(!resultNodecommitscommitsItem["message"].isNull()) + commitsItemObject.message = resultNodecommitscommitsItem["message"].asString(); + if(!resultNodecommitscommitsItem["authorName"].isNull()) + commitsItemObject.authorName = resultNodecommitscommitsItem["authorName"].asString(); + if(!resultNodecommitscommitsItem["authorEmail"].isNull()) + commitsItemObject.authorEmail = resultNodecommitscommitsItem["authorEmail"].asString(); + if(!resultNodecommitscommitsItem["authoredDate"].isNull()) + commitsItemObject.authoredDate = resultNodecommitscommitsItem["authoredDate"].asString(); + if(!resultNodecommitscommitsItem["createdAt"].isNull()) + commitsItemObject.createdAt = resultNodecommitscommitsItem["createdAt"].asString(); + if(!resultNodecommitscommitsItem["committerName"].isNull()) + commitsItemObject.committerName = resultNodecommitscommitsItem["committerName"].asString(); + if(!resultNodecommitscommitsItem["committerEmail"].isNull()) + commitsItemObject.committerEmail = resultNodecommitscommitsItem["committerEmail"].asString(); + if(!resultNodecommitscommitsItem["committedDate"].isNull()) + commitsItemObject.committedDate = resultNodecommitscommitsItem["committedDate"].asString(); + if(!resultNodecommitscommitsItem["commentsCount"].isNull()) + commitsItemObject.commentsCount = std::stol(resultNodecommitscommitsItem["commentsCount"].asString()); + auto authorNode = value["author"]; + if(!authorNode["id"].isNull()) + commitsItemObject.author.id = std::stol(authorNode["id"].asString()); + if(!authorNode["name"].isNull()) + commitsItemObject.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + commitsItemObject.author.username = authorNode["username"].asString(); + if(!authorNode["state"].isNull()) + commitsItemObject.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + commitsItemObject.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["externUid"].isNull()) + commitsItemObject.author.externUid = authorNode["externUid"].asString(); + if(!authorNode["email"].isNull()) + commitsItemObject.author.email = authorNode["email"].asString(); + if(!authorNode["websiteUrl"].isNull()) + commitsItemObject.author.websiteUrl = authorNode["websiteUrl"].asString(); + auto committerNode = value["committer"]; + if(!committerNode["id"].isNull()) + commitsItemObject.committer.id = std::stol(committerNode["id"].asString()); + if(!committerNode["name"].isNull()) + commitsItemObject.committer.name = committerNode["name"].asString(); + if(!committerNode["username"].isNull()) + commitsItemObject.committer.username = committerNode["username"].asString(); + if(!committerNode["state"].isNull()) + commitsItemObject.committer.state = committerNode["state"].asString(); + if(!committerNode["avatarUrl"].isNull()) + commitsItemObject.committer.avatarUrl = committerNode["avatarUrl"].asString(); + if(!committerNode["externUid"].isNull()) + commitsItemObject.committer.externUid = committerNode["externUid"].asString(); + if(!committerNode["email"].isNull()) + commitsItemObject.committer.email = committerNode["email"].asString(); + if(!committerNode["websiteUrl"].isNull()) + commitsItemObject.committer.websiteUrl = committerNode["websiteUrl"].asString(); + auto allParentIds = value["parentIds"]["parentIds"]; + for (auto value : allParentIds) + commitsItemObject.parentIds.push_back(value.asString()); + result_.commits.push_back(commitsItemObject); + } + auto alldiffsNode = resultNode["diffs"]["diffsItem"]; + for (auto resultNodediffsdiffsItem : alldiffsNode) + { + Result::DiffsItem diffsItemObject; + if(!resultNodediffsdiffsItem["diff"].isNull()) + diffsItemObject.diff = resultNodediffsdiffsItem["diff"].asString(); + if(!resultNodediffsdiffsItem["newPath"].isNull()) + diffsItemObject.newPath = resultNodediffsdiffsItem["newPath"].asString(); + if(!resultNodediffsdiffsItem["oldPath"].isNull()) + diffsItemObject.oldPath = resultNodediffsdiffsItem["oldPath"].asString(); + if(!resultNodediffsdiffsItem["aMode"].isNull()) + diffsItemObject.aMode = resultNodediffsdiffsItem["aMode"].asString(); + if(!resultNodediffsdiffsItem["bMode"].isNull()) + diffsItemObject.bMode = resultNodediffsdiffsItem["bMode"].asString(); + if(!resultNodediffsdiffsItem["newFile"].isNull()) + diffsItemObject.newFile = resultNodediffsdiffsItem["newFile"].asString() == "true"; + if(!resultNodediffsdiffsItem["renamedFile"].isNull()) + diffsItemObject.renamedFile = resultNodediffsdiffsItem["renamedFile"].asString() == "true"; + if(!resultNodediffsdiffsItem["deletedFile"].isNull()) + diffsItemObject.deletedFile = resultNodediffsdiffsItem["deletedFile"].asString() == "true"; + if(!resultNodediffsdiffsItem["isBinary"].isNull()) + diffsItemObject.isBinary = resultNodediffsdiffsItem["isBinary"].asString() == "true"; + if(!resultNodediffsdiffsItem["oldId"].isNull()) + diffsItemObject.oldId = resultNodediffsdiffsItem["oldId"].asString(); + if(!resultNodediffsdiffsItem["newId"].isNull()) + diffsItemObject.newId = resultNodediffsdiffsItem["newId"].asString(); + if(!resultNodediffsdiffsItem["isNewLfs"].isNull()) + diffsItemObject.isNewLfs = resultNodediffsdiffsItem["isNewLfs"].asString() == "true"; + if(!resultNodediffsdiffsItem["isOldLfs"].isNull()) + diffsItemObject.isOldLfs = resultNodediffsdiffsItem["isOldLfs"].asString() == "true"; + result_.diffs.push_back(diffsItemObject); + } + auto allMessages = resultNode["messages"]["messages"]; + for (auto value : allMessages) + result_.messages.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetCompareDetailResult::getRequestId()const +{ + return requestId_; +} + +std::string GetCompareDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetCompareDetailResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetCompareDetailResult::getSuccess()const +{ + return success_; +} + +GetCompareDetailResult::Result GetCompareDetailResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetCustomFieldOptionRequest.cc b/devops/src/model/GetCustomFieldOptionRequest.cc new file mode 100644 index 000000000..58f16e9b7 --- /dev/null +++ b/devops/src/model/GetCustomFieldOptionRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetCustomFieldOptionRequest; + +GetCustomFieldOptionRequest::GetCustomFieldOptionRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/fields/[fieldId]/getCustomOption"}; + setMethod(HttpRequest::Method::Get); +} + +GetCustomFieldOptionRequest::~GetCustomFieldOptionRequest() {} + +std::string GetCustomFieldOptionRequest::getOrganizationId() const { + return organizationId_; +} + +void GetCustomFieldOptionRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetCustomFieldOptionRequest::getSpaceType() const { + return spaceType_; +} + +void GetCustomFieldOptionRequest::setSpaceType(const std::string &spaceType) { + spaceType_ = spaceType; + setParameter(std::string("spaceType"), spaceType); +} + +std::string GetCustomFieldOptionRequest::getWorkitemTypeIdentifier() const { + return workitemTypeIdentifier_; +} + +void GetCustomFieldOptionRequest::setWorkitemTypeIdentifier(const std::string &workitemTypeIdentifier) { + workitemTypeIdentifier_ = workitemTypeIdentifier; + setParameter(std::string("workitemTypeIdentifier"), workitemTypeIdentifier); +} + +std::string GetCustomFieldOptionRequest::getSpaceIdentifier() const { + return spaceIdentifier_; +} + +void GetCustomFieldOptionRequest::setSpaceIdentifier(const std::string &spaceIdentifier) { + spaceIdentifier_ = spaceIdentifier; + setParameter(std::string("spaceIdentifier"), spaceIdentifier); +} + +std::string GetCustomFieldOptionRequest::getFieldId() const { + return fieldId_; +} + +void GetCustomFieldOptionRequest::setFieldId(const std::string &fieldId) { + fieldId_ = fieldId; + setParameter(std::string("fieldId"), fieldId); +} + diff --git a/devops/src/model/GetCustomFieldOptionResult.cc b/devops/src/model/GetCustomFieldOptionResult.cc new file mode 100644 index 000000000..e65ff08a7 --- /dev/null +++ b/devops/src/model/GetCustomFieldOptionResult.cc @@ -0,0 +1,97 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetCustomFieldOptionResult::GetCustomFieldOptionResult() : + ServiceResult() +{} + +GetCustomFieldOptionResult::GetCustomFieldOptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCustomFieldOptionResult::~GetCustomFieldOptionResult() +{} + +void GetCustomFieldOptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allfiledsNode = value["fileds"]["field"]; + for (auto valuefiledsfield : allfiledsNode) + { + Field filedsObject; + if(!valuefiledsfield["displayValue"].isNull()) + filedsObject.displayValue = valuefiledsfield["displayValue"].asString(); + if(!valuefiledsfield["fieldIdentifier"].isNull()) + filedsObject.fieldIdentifier = valuefiledsfield["fieldIdentifier"].asString(); + if(!valuefiledsfield["identifier"].isNull()) + filedsObject.identifier = valuefiledsfield["identifier"].asString(); + if(!valuefiledsfield["level"].isNull()) + filedsObject.level = std::stol(valuefiledsfield["level"].asString()); + if(!valuefiledsfield["position"].isNull()) + filedsObject.position = std::stol(valuefiledsfield["position"].asString()); + if(!valuefiledsfield["value"].isNull()) + filedsObject.value = valuefiledsfield["value"].asString(); + if(!valuefiledsfield["valueEn"].isNull()) + filedsObject.valueEn = valuefiledsfield["valueEn"].asString(); + fileds_.push_back(filedsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector GetCustomFieldOptionResult::getfileds()const +{ + return fileds_; +} + +std::string GetCustomFieldOptionResult::getRequestId()const +{ + return requestId_; +} + +std::string GetCustomFieldOptionResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string GetCustomFieldOptionResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetCustomFieldOptionResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetFileBlobsRequest.cc b/devops/src/model/GetFileBlobsRequest.cc new file mode 100644 index 000000000..22947b5ff --- /dev/null +++ b/devops/src/model/GetFileBlobsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetFileBlobsRequest; + +GetFileBlobsRequest::GetFileBlobsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/files/blobs"}; + setMethod(HttpRequest::Method::Get); +} + +GetFileBlobsRequest::~GetFileBlobsRequest() {} + +std::string GetFileBlobsRequest::getAccessToken() const { + return accessToken_; +} + +void GetFileBlobsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string GetFileBlobsRequest::getOrganizationId() const { + return organizationId_; +} + +void GetFileBlobsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetFileBlobsRequest::getRef() const { + return ref_; +} + +void GetFileBlobsRequest::setRef(const std::string &ref) { + ref_ = ref; + setParameter(std::string("ref"), ref); +} + +std::string GetFileBlobsRequest::getFilePath() const { + return filePath_; +} + +void GetFileBlobsRequest::setFilePath(const std::string &filePath) { + filePath_ = filePath; + setParameter(std::string("filePath"), filePath); +} + +long GetFileBlobsRequest::getRepositoryId() const { + return repositoryId_; +} + +void GetFileBlobsRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +long GetFileBlobsRequest::getFrom() const { + return from_; +} + +void GetFileBlobsRequest::setFrom(long from) { + from_ = from; + setParameter(std::string("from"), std::to_string(from)); +} + +long GetFileBlobsRequest::getTo() const { + return to_; +} + +void GetFileBlobsRequest::setTo(long to) { + to_ = to; + setParameter(std::string("to"), std::to_string(to)); +} + diff --git a/devops/src/model/GetFileBlobsResult.cc b/devops/src/model/GetFileBlobsResult.cc new file mode 100644 index 000000000..5792593bb --- /dev/null +++ b/devops/src/model/GetFileBlobsResult.cc @@ -0,0 +1,84 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetFileBlobsResult::GetFileBlobsResult() : + ServiceResult() +{} + +GetFileBlobsResult::GetFileBlobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFileBlobsResult::~GetFileBlobsResult() +{} + +void GetFileBlobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["content"].isNull()) + result_.content = resultNode["content"].asString(); + if(!resultNode["totalLines"].isNull()) + result_.totalLines = std::stoi(resultNode["totalLines"].asString()); + if(!resultNode["size"].isNull()) + result_.size = std::stol(resultNode["size"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetFileBlobsResult::getRequestId()const +{ + return requestId_; +} + +std::string GetFileBlobsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetFileBlobsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetFileBlobsResult::getSuccess()const +{ + return success_; +} + +GetFileBlobsResult::Result GetFileBlobsResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetFileLastCommitRequest.cc b/devops/src/model/GetFileLastCommitRequest.cc new file mode 100644 index 000000000..f4e92f878 --- /dev/null +++ b/devops/src/model/GetFileLastCommitRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetFileLastCommitRequest; + +GetFileLastCommitRequest::GetFileLastCommitRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/files/lastCommit"}; + setMethod(HttpRequest::Method::Get); +} + +GetFileLastCommitRequest::~GetFileLastCommitRequest() {} + +std::string GetFileLastCommitRequest::getOrganizationId() const { + return organizationId_; +} + +void GetFileLastCommitRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetFileLastCommitRequest::getFilePath() const { + return filePath_; +} + +void GetFileLastCommitRequest::setFilePath(const std::string &filePath) { + filePath_ = filePath; + setParameter(std::string("filePath"), filePath); +} + +long GetFileLastCommitRequest::getRepositoryId() const { + return repositoryId_; +} + +void GetFileLastCommitRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string GetFileLastCommitRequest::getAccessToken() const { + return accessToken_; +} + +void GetFileLastCommitRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +bool GetFileLastCommitRequest::getShowSignature() const { + return showSignature_; +} + +void GetFileLastCommitRequest::setShowSignature(bool showSignature) { + showSignature_ = showSignature; + setParameter(std::string("showSignature"), showSignature ? "true" : "false"); +} + +std::string GetFileLastCommitRequest::getSha() const { + return sha_; +} + +void GetFileLastCommitRequest::setSha(const std::string &sha) { + sha_ = sha; + setParameter(std::string("sha"), sha); +} + diff --git a/devops/src/model/GetFileLastCommitResult.cc b/devops/src/model/GetFileLastCommitResult.cc new file mode 100644 index 000000000..0f3415cd2 --- /dev/null +++ b/devops/src/model/GetFileLastCommitResult.cc @@ -0,0 +1,108 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetFileLastCommitResult::GetFileLastCommitResult() : + ServiceResult() +{} + +GetFileLastCommitResult::GetFileLastCommitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFileLastCommitResult::~GetFileLastCommitResult() +{} + +void GetFileLastCommitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["shortId"].isNull()) + result_.shortId = resultNode["shortId"].asString(); + if(!resultNode["authorName"].isNull()) + result_.authorName = resultNode["authorName"].asString(); + if(!resultNode["authorDate"].isNull()) + result_.authorDate = resultNode["authorDate"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["message"].isNull()) + result_.message = resultNode["message"].asString(); + if(!resultNode["title"].isNull()) + result_.title = resultNode["title"].asString(); + if(!resultNode["committerName"].isNull()) + result_.committerName = resultNode["committerName"].asString(); + if(!resultNode["authorEmail"].isNull()) + result_.authorEmail = resultNode["authorEmail"].asString(); + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["committerEmail"].isNull()) + result_.committerEmail = resultNode["committerEmail"].asString(); + if(!resultNode["committedDate"].isNull()) + result_.committedDate = resultNode["committedDate"].asString(); + auto signatureNode = resultNode["signature"]; + if(!signatureNode["verificationStatus"].isNull()) + result_.signature.verificationStatus = signatureNode["verificationStatus"].asString(); + if(!signatureNode["gpgKeyId"].isNull()) + result_.signature.gpgKeyId = signatureNode["gpgKeyId"].asString(); + auto allParentIds = resultNode["parentIds"]["parent_ids"]; + for (auto value : allParentIds) + result_.parentIds.push_back(value.asString()); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string GetFileLastCommitResult::getRequestId()const +{ + return requestId_; +} + +std::string GetFileLastCommitResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetFileLastCommitResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetFileLastCommitResult::getSuccess()const +{ + return success_; +} + +GetFileLastCommitResult::Result GetFileLastCommitResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetFlowTagGroupRequest.cc b/devops/src/model/GetFlowTagGroupRequest.cc new file mode 100644 index 000000000..fe80b0980 --- /dev/null +++ b/devops/src/model/GetFlowTagGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetFlowTagGroupRequest; + +GetFlowTagGroupRequest::GetFlowTagGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/flow/tagGroups/[id]"}; + setMethod(HttpRequest::Method::Get); +} + +GetFlowTagGroupRequest::~GetFlowTagGroupRequest() {} + +std::string GetFlowTagGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void GetFlowTagGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetFlowTagGroupRequest::getId() const { + return id_; +} + +void GetFlowTagGroupRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("id"), id); +} + diff --git a/devops/src/model/GetFlowTagGroupResult.cc b/devops/src/model/GetFlowTagGroupResult.cc new file mode 100644 index 000000000..4bcc73a9c --- /dev/null +++ b/devops/src/model/GetFlowTagGroupResult.cc @@ -0,0 +1,102 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetFlowTagGroupResult::GetFlowTagGroupResult() : + ServiceResult() +{} + +GetFlowTagGroupResult::GetFlowTagGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFlowTagGroupResult::~GetFlowTagGroupResult() +{} + +void GetFlowTagGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto flowTagGroupNode = value["flowTagGroup"]; + if(!flowTagGroupNode["id"].isNull()) + flowTagGroup_.id = std::stol(flowTagGroupNode["id"].asString()); + if(!flowTagGroupNode["name"].isNull()) + flowTagGroup_.name = flowTagGroupNode["name"].asString(); + if(!flowTagGroupNode["creatorAccountId"].isNull()) + flowTagGroup_.creatorAccountId = flowTagGroupNode["creatorAccountId"].asString(); + if(!flowTagGroupNode["modiferAccountId"].isNull()) + flowTagGroup_.modiferAccountId = flowTagGroupNode["modiferAccountId"].asString(); + auto allflowTagListNode = flowTagGroupNode["flowTagList"]["flowTag"]; + for (auto flowTagGroupNodeflowTagListflowTag : allflowTagListNode) + { + FlowTagGroup::FlowTag flowTagObject; + if(!flowTagGroupNodeflowTagListflowTag["id"].isNull()) + flowTagObject.id = std::stol(flowTagGroupNodeflowTagListflowTag["id"].asString()); + if(!flowTagGroupNodeflowTagListflowTag["name"].isNull()) + flowTagObject.name = flowTagGroupNodeflowTagListflowTag["name"].asString(); + if(!flowTagGroupNodeflowTagListflowTag["color"].isNull()) + flowTagObject.color = flowTagGroupNodeflowTagListflowTag["color"].asString(); + if(!flowTagGroupNodeflowTagListflowTag["creatorAccountId"].isNull()) + flowTagObject.creatorAccountId = flowTagGroupNodeflowTagListflowTag["creatorAccountId"].asString(); + if(!flowTagGroupNodeflowTagListflowTag["modiferAccountId"].isNull()) + flowTagObject.modiferAccountId = flowTagGroupNodeflowTagListflowTag["modiferAccountId"].asString(); + flowTagGroup_.flowTagList.push_back(flowTagObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string GetFlowTagGroupResult::getRequestId()const +{ + return requestId_; +} + +GetFlowTagGroupResult::FlowTagGroup GetFlowTagGroupResult::getFlowTagGroup()const +{ + return flowTagGroup_; +} + +std::string GetFlowTagGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetFlowTagGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetFlowTagGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetGroupByPathRequest.cc b/devops/src/model/GetGroupByPathRequest.cc new file mode 100644 index 000000000..ea1a8c4eb --- /dev/null +++ b/devops/src/model/GetGroupByPathRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetGroupByPathRequest; + +GetGroupByPathRequest::GetGroupByPathRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/4/groups/find_by_path"}; + setMethod(HttpRequest::Method::Get); +} + +GetGroupByPathRequest::~GetGroupByPathRequest() {} + +std::string GetGroupByPathRequest::getOrganizationId() const { + return organizationId_; +} + +void GetGroupByPathRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetGroupByPathRequest::getIdentity() const { + return identity_; +} + +void GetGroupByPathRequest::setIdentity(const std::string &identity) { + identity_ = identity; + setParameter(std::string("identity"), identity); +} + diff --git a/devops/src/model/GetGroupByPathResult.cc b/devops/src/model/GetGroupByPathResult.cc new file mode 100644 index 000000000..0fc895ce2 --- /dev/null +++ b/devops/src/model/GetGroupByPathResult.cc @@ -0,0 +1,100 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetGroupByPathResult::GetGroupByPathResult() : + ServiceResult() +{} + +GetGroupByPathResult::GetGroupByPathResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGroupByPathResult::~GetGroupByPathResult() +{} + +void GetGroupByPathResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["path"].isNull()) + result_.path = resultNode["path"].asString(); + if(!resultNode["pathWithNamespace"].isNull()) + result_.pathWithNamespace = resultNode["pathWithNamespace"].asString(); + if(!resultNode["nameWithNamespace"].isNull()) + result_.nameWithNamespace = resultNode["nameWithNamespace"].asString(); + if(!resultNode["visibilityLevel"].isNull()) + result_.visibilityLevel = std::stoi(resultNode["visibilityLevel"].asString()); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["parentId"].isNull()) + result_.parentId = resultNode["parentId"].asString(); + if(!resultNode["ownerId"].isNull()) + result_.ownerId = resultNode["ownerId"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string GetGroupByPathResult::getRequestId()const +{ + return requestId_; +} + +std::string GetGroupByPathResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetGroupByPathResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetGroupByPathResult::getSuccess()const +{ + return success_; +} + +GetGroupByPathResult::Result GetGroupByPathResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetGroupDetailRequest.cc b/devops/src/model/GetGroupDetailRequest.cc new file mode 100644 index 000000000..764b21f63 --- /dev/null +++ b/devops/src/model/GetGroupDetailRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetGroupDetailRequest; + +GetGroupDetailRequest::GetGroupDetailRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/groups/get_detail"}; + setMethod(HttpRequest::Method::Get); +} + +GetGroupDetailRequest::~GetGroupDetailRequest() {} + +std::string GetGroupDetailRequest::getOrganizationId() const { + return organizationId_; +} + +void GetGroupDetailRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetGroupDetailRequest::getGroupId() const { + return groupId_; +} + +void GetGroupDetailRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string GetGroupDetailRequest::getAccessToken() const { + return accessToken_; +} + +void GetGroupDetailRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/GetGroupDetailResult.cc b/devops/src/model/GetGroupDetailResult.cc new file mode 100644 index 000000000..fd9eb2aee --- /dev/null +++ b/devops/src/model/GetGroupDetailResult.cc @@ -0,0 +1,102 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetGroupDetailResult::GetGroupDetailResult() : + ServiceResult() +{} + +GetGroupDetailResult::GetGroupDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGroupDetailResult::~GetGroupDetailResult() +{} + +void GetGroupDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["path"].isNull()) + result_.path = resultNode["path"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["pathWithNamespace"].isNull()) + result_.pathWithNamespace = resultNode["pathWithNamespace"].asString(); + if(!resultNode["nameWithNamespace"].isNull()) + result_.nameWithNamespace = resultNode["nameWithNamespace"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["visibilityLevel"].isNull()) + result_.visibilityLevel = std::stoi(resultNode["visibilityLevel"].asString()); + if(!resultNode["parentId"].isNull()) + result_.parentId = std::stol(resultNode["parentId"].asString()); + if(!resultNode["ownerId"].isNull()) + result_.ownerId = std::stol(resultNode["ownerId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetGroupDetailResult::getRequestId()const +{ + return requestId_; +} + +std::string GetGroupDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetGroupDetailResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetGroupDetailResult::getSuccess()const +{ + return success_; +} + +GetGroupDetailResult::Result GetGroupDetailResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetHostGroupRequest.cc b/devops/src/model/GetHostGroupRequest.cc new file mode 100644 index 000000000..1cbd11f7e --- /dev/null +++ b/devops/src/model/GetHostGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetHostGroupRequest; + +GetHostGroupRequest::GetHostGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/hostGroups/[id]"}; + setMethod(HttpRequest::Method::Get); +} + +GetHostGroupRequest::~GetHostGroupRequest() {} + +std::string GetHostGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void GetHostGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetHostGroupRequest::getId() const { + return id_; +} + +void GetHostGroupRequest::setId(long id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/devops/src/model/GetHostGroupResult.cc b/devops/src/model/GetHostGroupResult.cc new file mode 100644 index 000000000..76946bbda --- /dev/null +++ b/devops/src/model/GetHostGroupResult.cc @@ -0,0 +1,130 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetHostGroupResult::GetHostGroupResult() : + ServiceResult() +{} + +GetHostGroupResult::GetHostGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHostGroupResult::~GetHostGroupResult() +{} + +void GetHostGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto hostGroupNode = value["hostGroup"]; + if(!hostGroupNode["creatorAccountId"].isNull()) + hostGroup_.creatorAccountId = hostGroupNode["creatorAccountId"].asString(); + if(!hostGroupNode["upateTIme"].isNull()) + hostGroup_.upateTIme = std::stol(hostGroupNode["upateTIme"].asString()); + if(!hostGroupNode["hostNum"].isNull()) + hostGroup_.hostNum = std::stol(hostGroupNode["hostNum"].asString()); + if(!hostGroupNode["modifierAccountId"].isNull()) + hostGroup_.modifierAccountId = hostGroupNode["modifierAccountId"].asString(); + if(!hostGroupNode["description"].isNull()) + hostGroup_.description = hostGroupNode["description"].asString(); + if(!hostGroupNode["type"].isNull()) + hostGroup_.type = hostGroupNode["type"].asString(); + if(!hostGroupNode["createTime"].isNull()) + hostGroup_.createTime = std::stol(hostGroupNode["createTime"].asString()); + if(!hostGroupNode["ecsType"].isNull()) + hostGroup_.ecsType = hostGroupNode["ecsType"].asString(); + if(!hostGroupNode["aliyunRegion"].isNull()) + hostGroup_.aliyunRegion = hostGroupNode["aliyunRegion"].asString(); + if(!hostGroupNode["ecsLabelKey"].isNull()) + hostGroup_.ecsLabelKey = hostGroupNode["ecsLabelKey"].asString(); + if(!hostGroupNode["id"].isNull()) + hostGroup_.id = std::stol(hostGroupNode["id"].asString()); + if(!hostGroupNode["name"].isNull()) + hostGroup_.name = hostGroupNode["name"].asString(); + if(!hostGroupNode["serviceConnectionId"].isNull()) + hostGroup_.serviceConnectionId = std::stol(hostGroupNode["serviceConnectionId"].asString()); + if(!hostGroupNode["ecsLabelValue"].isNull()) + hostGroup_.ecsLabelValue = hostGroupNode["ecsLabelValue"].asString(); + auto allhostInfosNode = hostGroupNode["hostInfos"]["HostInfo"]; + for (auto hostGroupNodehostInfosHostInfo : allhostInfosNode) + { + HostGroup::HostInfo hostInfoObject; + if(!hostGroupNodehostInfosHostInfo["updateTime"].isNull()) + hostInfoObject.updateTime = std::stol(hostGroupNodehostInfosHostInfo["updateTime"].asString()); + if(!hostGroupNodehostInfosHostInfo["creatorAccountId"].isNull()) + hostInfoObject.creatorAccountId = hostGroupNodehostInfosHostInfo["creatorAccountId"].asString(); + if(!hostGroupNodehostInfosHostInfo["instanceName"].isNull()) + hostInfoObject.instanceName = hostGroupNodehostInfosHostInfo["instanceName"].asString(); + if(!hostGroupNodehostInfosHostInfo["modifierAccountId"].isNull()) + hostInfoObject.modifierAccountId = hostGroupNodehostInfosHostInfo["modifierAccountId"].asString(); + if(!hostGroupNodehostInfosHostInfo["ip"].isNull()) + hostInfoObject.ip = hostGroupNodehostInfosHostInfo["ip"].asString(); + if(!hostGroupNodehostInfosHostInfo["createTime"].isNull()) + hostInfoObject.createTime = std::stol(hostGroupNodehostInfosHostInfo["createTime"].asString()); + if(!hostGroupNodehostInfosHostInfo["objectType"].isNull()) + hostInfoObject.objectType = hostGroupNodehostInfosHostInfo["objectType"].asString(); + if(!hostGroupNodehostInfosHostInfo["aliyunRegionId"].isNull()) + hostInfoObject.aliyunRegionId = hostGroupNodehostInfosHostInfo["aliyunRegionId"].asString(); + if(!hostGroupNodehostInfosHostInfo["machineSn"].isNull()) + hostInfoObject.machineSn = hostGroupNodehostInfosHostInfo["machineSn"].asString(); + hostGroup_.hostInfos.push_back(hostInfoObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetHostGroupResult::getRequestId()const +{ + return requestId_; +} + +GetHostGroupResult::HostGroup GetHostGroupResult::getHostGroup()const +{ + return hostGroup_; +} + +std::string GetHostGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetHostGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetHostGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetMergeRequestChangeTreeRequest.cc b/devops/src/model/GetMergeRequestChangeTreeRequest.cc new file mode 100644 index 000000000..54048c263 --- /dev/null +++ b/devops/src/model/GetMergeRequestChangeTreeRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetMergeRequestChangeTreeRequest; + +GetMergeRequestChangeTreeRequest::GetMergeRequestChangeTreeRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/merge_requests/diffs/change_tree"}; + setMethod(HttpRequest::Method::Get); +} + +GetMergeRequestChangeTreeRequest::~GetMergeRequestChangeTreeRequest() {} + +std::string GetMergeRequestChangeTreeRequest::getOrganizationId() const { + return organizationId_; +} + +void GetMergeRequestChangeTreeRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetMergeRequestChangeTreeRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void GetMergeRequestChangeTreeRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string GetMergeRequestChangeTreeRequest::getAccessToken() const { + return accessToken_; +} + +void GetMergeRequestChangeTreeRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string GetMergeRequestChangeTreeRequest::getToPatchSetBizId() const { + return toPatchSetBizId_; +} + +void GetMergeRequestChangeTreeRequest::setToPatchSetBizId(const std::string &toPatchSetBizId) { + toPatchSetBizId_ = toPatchSetBizId; + setParameter(std::string("toPatchSetBizId"), toPatchSetBizId); +} + +std::string GetMergeRequestChangeTreeRequest::getFromPatchSetBizId() const { + return fromPatchSetBizId_; +} + +void GetMergeRequestChangeTreeRequest::setFromPatchSetBizId(const std::string &fromPatchSetBizId) { + fromPatchSetBizId_ = fromPatchSetBizId; + setParameter(std::string("fromPatchSetBizId"), fromPatchSetBizId); +} + +long GetMergeRequestChangeTreeRequest::getLocalId() const { + return localId_; +} + +void GetMergeRequestChangeTreeRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/GetMergeRequestChangeTreeResult.cc b/devops/src/model/GetMergeRequestChangeTreeResult.cc new file mode 100644 index 000000000..2567c35f1 --- /dev/null +++ b/devops/src/model/GetMergeRequestChangeTreeResult.cc @@ -0,0 +1,106 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetMergeRequestChangeTreeResult::GetMergeRequestChangeTreeResult() : + ServiceResult() +{} + +GetMergeRequestChangeTreeResult::GetMergeRequestChangeTreeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMergeRequestChangeTreeResult::~GetMergeRequestChangeTreeResult() +{} + +void GetMergeRequestChangeTreeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["changedFilesCount"].isNull()) + result_.changedFilesCount = std::stol(resultNode["changedFilesCount"].asString()); + if(!resultNode["totalAddLines"].isNull()) + result_.totalAddLines = std::stol(resultNode["totalAddLines"].asString()); + if(!resultNode["totalDelLines"].isNull()) + result_.totalDelLines = std::stol(resultNode["totalDelLines"].asString()); + auto allchangedFilesInfosNode = resultNode["changedFilesInfos"]["changesetDTOS"]; + for (auto resultNodechangedFilesInfoschangesetDTOS : allchangedFilesInfosNode) + { + Result::ChangesetDTOS changesetDTOSObject; + if(!resultNodechangedFilesInfoschangesetDTOS["newPath"].isNull()) + changesetDTOSObject.newPath = resultNodechangedFilesInfoschangesetDTOS["newPath"].asString(); + if(!resultNodechangedFilesInfoschangesetDTOS["oldPath"].isNull()) + changesetDTOSObject.oldPath = resultNodechangedFilesInfoschangesetDTOS["oldPath"].asString(); + if(!resultNodechangedFilesInfoschangesetDTOS["newFile"].isNull()) + changesetDTOSObject.newFile = resultNodechangedFilesInfoschangesetDTOS["newFile"].asString() == "true"; + if(!resultNodechangedFilesInfoschangesetDTOS["renamedFile"].isNull()) + changesetDTOSObject.renamedFile = resultNodechangedFilesInfoschangesetDTOS["renamedFile"].asString() == "true"; + if(!resultNodechangedFilesInfoschangesetDTOS["deletedFile"].isNull()) + changesetDTOSObject.deletedFile = resultNodechangedFilesInfoschangesetDTOS["deletedFile"].asString() == "true"; + if(!resultNodechangedFilesInfoschangesetDTOS["binaryFile"].isNull()) + changesetDTOSObject.binaryFile = resultNodechangedFilesInfoschangesetDTOS["binaryFile"].asString() == "true"; + if(!resultNodechangedFilesInfoschangesetDTOS["addLines"].isNull()) + changesetDTOSObject.addLines = std::stol(resultNodechangedFilesInfoschangesetDTOS["addLines"].asString()); + if(!resultNodechangedFilesInfoschangesetDTOS["delLines"].isNull()) + changesetDTOSObject.delLines = std::stol(resultNodechangedFilesInfoschangesetDTOS["delLines"].asString()); + result_.changedFilesInfos.push_back(changesetDTOSObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string GetMergeRequestChangeTreeResult::getRequestId()const +{ + return requestId_; +} + +std::string GetMergeRequestChangeTreeResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMergeRequestChangeTreeResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetMergeRequestChangeTreeResult::getSuccess()const +{ + return success_; +} + +GetMergeRequestChangeTreeResult::Result GetMergeRequestChangeTreeResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetMergeRequestRequest.cc b/devops/src/model/GetMergeRequestRequest.cc new file mode 100644 index 000000000..ca3010bf4 --- /dev/null +++ b/devops/src/model/GetMergeRequestRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetMergeRequestRequest; + +GetMergeRequestRequest::GetMergeRequestRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/merge_requests/[localId]/detail"}; + setMethod(HttpRequest::Method::Get); +} + +GetMergeRequestRequest::~GetMergeRequestRequest() {} + +std::string GetMergeRequestRequest::getOrganizationId() const { + return organizationId_; +} + +void GetMergeRequestRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetMergeRequestRequest::getRepositoryId() const { + return repositoryId_; +} + +void GetMergeRequestRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string GetMergeRequestRequest::getAccessToken() const { + return accessToken_; +} + +void GetMergeRequestRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long GetMergeRequestRequest::getLocalId() const { + return localId_; +} + +void GetMergeRequestRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/GetMergeRequestResult.cc b/devops/src/model/GetMergeRequestResult.cc new file mode 100644 index 000000000..cb0e45818 --- /dev/null +++ b/devops/src/model/GetMergeRequestResult.cc @@ -0,0 +1,192 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetMergeRequestResult::GetMergeRequestResult() : + ServiceResult() +{} + +GetMergeRequestResult::GetMergeRequestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMergeRequestResult::~GetMergeRequestResult() +{} + +void GetMergeRequestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["mrBizId"].isNull()) + result_.mrBizId = resultNode["mrBizId"].asString(); + if(!resultNode["projectId"].isNull()) + result_.projectId = std::stol(resultNode["projectId"].asString()); + if(!resultNode["localId"].isNull()) + result_.localId = std::stol(resultNode["localId"].asString()); + if(!resultNode["createTime"].isNull()) + result_.createTime = resultNode["createTime"].asString(); + if(!resultNode["updateTime"].isNull()) + result_.updateTime = resultNode["updateTime"].asString(); + if(!resultNode["mrType"].isNull()) + result_.mrType = resultNode["mrType"].asString(); + if(!resultNode["sourceProjectId"].isNull()) + result_.sourceProjectId = std::stol(resultNode["sourceProjectId"].asString()); + if(!resultNode["sourceBranch"].isNull()) + result_.sourceBranch = resultNode["sourceBranch"].asString(); + if(!resultNode["targetProjectId"].isNull()) + result_.targetProjectId = std::stol(resultNode["targetProjectId"].asString()); + if(!resultNode["targetBranch"].isNull()) + result_.targetBranch = resultNode["targetBranch"].asString(); + if(!resultNode["title"].isNull()) + result_.title = resultNode["title"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["createFrom"].isNull()) + result_.createFrom = resultNode["createFrom"].asString(); + if(!resultNode["ahead"].isNull()) + result_.ahead = std::stoi(resultNode["ahead"].asString()); + if(!resultNode["behind"].isNull()) + result_.behind = std::stoi(resultNode["behind"].asString()); + if(!resultNode["allRequirementsPass"].isNull()) + result_.allRequirementsPass = resultNode["allRequirementsPass"].asString() == "true"; + if(!resultNode["supportMergeFastForwardOnly"].isNull()) + result_.supportMergeFastForwardOnly = resultNode["supportMergeFastForwardOnly"].asString() == "true"; + if(!resultNode["detailUrl"].isNull()) + result_.detailUrl = resultNode["detailUrl"].asString(); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["targetProjectNameWithNamespace"].isNull()) + result_.targetProjectNameWithNamespace = resultNode["targetProjectNameWithNamespace"].asString(); + if(!resultNode["targetProjectPathWithNamespace"].isNull()) + result_.targetProjectPathWithNamespace = resultNode["targetProjectPathWithNamespace"].asString(); + if(!resultNode["mergedRevision"].isNull()) + result_.mergedRevision = resultNode["mergedRevision"].asString(); + auto allreviewersNode = resultNode["reviewers"]["reviewersItem"]; + for (auto resultNodereviewersreviewersItem : allreviewersNode) + { + Result::ReviewersItem reviewersItemObject; + if(!resultNodereviewersreviewersItem["id"].isNull()) + reviewersItemObject.id = std::stol(resultNodereviewersreviewersItem["id"].asString()); + if(!resultNodereviewersreviewersItem["name"].isNull()) + reviewersItemObject.name = resultNodereviewersreviewersItem["name"].asString(); + if(!resultNodereviewersreviewersItem["username"].isNull()) + reviewersItemObject.username = resultNodereviewersreviewersItem["username"].asString(); + if(!resultNodereviewersreviewersItem["state"].isNull()) + reviewersItemObject.state = resultNodereviewersreviewersItem["state"].asString(); + if(!resultNodereviewersreviewersItem["avatarUrl"].isNull()) + reviewersItemObject.avatarUrl = resultNodereviewersreviewersItem["avatarUrl"].asString(); + if(!resultNodereviewersreviewersItem["email"].isNull()) + reviewersItemObject.email = resultNodereviewersreviewersItem["email"].asString(); + if(!resultNodereviewersreviewersItem["hasReviewed"].isNull()) + reviewersItemObject.hasReviewed = resultNodereviewersreviewersItem["hasReviewed"].asString() == "true"; + if(!resultNodereviewersreviewersItem["reviewOpinionStatus"].isNull()) + reviewersItemObject.reviewOpinionStatus = resultNodereviewersreviewersItem["reviewOpinionStatus"].asString(); + if(!resultNodereviewersreviewersItem["reviewTime"].isNull()) + reviewersItemObject.reviewTime = resultNodereviewersreviewersItem["reviewTime"].asString(); + if(!resultNodereviewersreviewersItem["hasCommented"].isNull()) + reviewersItemObject.hasCommented = resultNodereviewersreviewersItem["hasCommented"].asString() == "true"; + result_.reviewers.push_back(reviewersItemObject); + } + auto allsubscribersNode = resultNode["subscribers"]["subscribersItem"]; + for (auto resultNodesubscriberssubscribersItem : allsubscribersNode) + { + Result::SubscribersItem subscribersItemObject; + if(!resultNodesubscriberssubscribersItem["id"].isNull()) + subscribersItemObject.id = std::stol(resultNodesubscriberssubscribersItem["id"].asString()); + if(!resultNodesubscriberssubscribersItem["name"].isNull()) + subscribersItemObject.name = resultNodesubscriberssubscribersItem["name"].asString(); + if(!resultNodesubscriberssubscribersItem["username"].isNull()) + subscribersItemObject.username = resultNodesubscriberssubscribersItem["username"].asString(); + if(!resultNodesubscriberssubscribersItem["state"].isNull()) + subscribersItemObject.state = resultNodesubscriberssubscribersItem["state"].asString(); + if(!resultNodesubscriberssubscribersItem["avatarUrl"].isNull()) + subscribersItemObject.avatarUrl = resultNodesubscriberssubscribersItem["avatarUrl"].asString(); + if(!resultNodesubscriberssubscribersItem["email"].isNull()) + subscribersItemObject.email = resultNodesubscriberssubscribersItem["email"].asString(); + result_.subscribers.push_back(subscribersItemObject); + } + auto authorNode = resultNode["author"]; + if(!authorNode["id"].isNull()) + result_.author.id = std::stol(authorNode["id"].asString()); + if(!authorNode["name"].isNull()) + result_.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + result_.author.username = authorNode["username"].asString(); + if(!authorNode["state"].isNull()) + result_.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + result_.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["email"].isNull()) + result_.author.email = authorNode["email"].asString(); + auto todoListNode = resultNode["todoList"]; + auto allrequirementCheckItemsNode = todoListNode["requirementCheckItems"]["requirement_rule_items"]; + for (auto todoListNoderequirementCheckItemsrequirement_rule_items : allrequirementCheckItemsNode) + { + Result::TodoList::Requirement_rule_items requirement_rule_itemsObject; + if(!todoListNoderequirementCheckItemsrequirement_rule_items["itemType"].isNull()) + requirement_rule_itemsObject.itemType = todoListNoderequirementCheckItemsrequirement_rule_items["itemType"].asString(); + if(!todoListNoderequirementCheckItemsrequirement_rule_items["pass"].isNull()) + requirement_rule_itemsObject.pass = todoListNoderequirementCheckItemsrequirement_rule_items["pass"].asString() == "true"; + result_.todoList.requirementCheckItems.push_back(requirement_rule_itemsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetMergeRequestResult::getRequestId()const +{ + return requestId_; +} + +std::string GetMergeRequestResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetMergeRequestResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetMergeRequestResult::getSuccess()const +{ + return success_; +} + +GetMergeRequestResult::Result GetMergeRequestResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetOrganizationMemberRequest.cc b/devops/src/model/GetOrganizationMemberRequest.cc new file mode 100644 index 000000000..c3c302b57 --- /dev/null +++ b/devops/src/model/GetOrganizationMemberRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetOrganizationMemberRequest; + +GetOrganizationMemberRequest::GetOrganizationMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/members/[accountId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetOrganizationMemberRequest::~GetOrganizationMemberRequest() {} + +std::string GetOrganizationMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void GetOrganizationMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetOrganizationMemberRequest::getAccountId() const { + return accountId_; +} + +void GetOrganizationMemberRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setParameter(std::string("accountId"), accountId); +} + diff --git a/devops/src/model/GetOrganizationMemberResult.cc b/devops/src/model/GetOrganizationMemberResult.cc new file mode 100644 index 000000000..117a0e6cf --- /dev/null +++ b/devops/src/model/GetOrganizationMemberResult.cc @@ -0,0 +1,110 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetOrganizationMemberResult::GetOrganizationMemberResult() : + ServiceResult() +{} + +GetOrganizationMemberResult::GetOrganizationMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOrganizationMemberResult::~GetOrganizationMemberResult() +{} + +void GetOrganizationMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto memberNode = value["member"]; + if(!memberNode["accountId"].isNull()) + member_.accountId = memberNode["accountId"].asString(); + if(!memberNode["birthday"].isNull()) + member_.birthday = std::stol(memberNode["birthday"].asString()); + if(!memberNode["email"].isNull()) + member_.email = memberNode["email"].asString(); + if(!memberNode["hiredDate"].isNull()) + member_.hiredDate = std::stol(memberNode["hiredDate"].asString()); + if(!memberNode["joinTime"].isNull()) + member_.joinTime = std::stol(memberNode["joinTime"].asString()); + if(!memberNode["lastVisitTime"].isNull()) + member_.lastVisitTime = std::stol(memberNode["lastVisitTime"].asString()); + if(!memberNode["mobile"].isNull()) + member_.mobile = memberNode["mobile"].asString(); + if(!memberNode["organizationMemberName"].isNull()) + member_.organizationMemberName = memberNode["organizationMemberName"].asString(); + if(!memberNode["organizationRoleName"].isNull()) + member_.organizationRoleName = memberNode["organizationRoleName"].asString(); + if(!memberNode["jobNumber"].isNull()) + member_.jobNumber = memberNode["jobNumber"].asString(); + if(!memberNode["organizationRoleId"].isNull()) + member_.organizationRoleId = memberNode["organizationRoleId"].asString(); + if(!memberNode["state"].isNull()) + member_.state = memberNode["state"].asString(); + auto identitiesNode = memberNode["identities"]; + if(!identitiesNode["externUid"].isNull()) + member_.identities.externUid = identitiesNode["externUid"].asString(); + if(!identitiesNode["provider"].isNull()) + member_.identities.provider = identitiesNode["provider"].asString(); + auto allDeptLists = memberNode["deptLists"]["部门名称"]; + for (auto value : allDeptLists) + member_.deptLists.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetOrganizationMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string GetOrganizationMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetOrganizationMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +GetOrganizationMemberResult::Member GetOrganizationMemberResult::getMember()const +{ + return member_; +} + +bool GetOrganizationMemberResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetPipelineArtifactUrlRequest.cc b/devops/src/model/GetPipelineArtifactUrlRequest.cc new file mode 100644 index 000000000..0005f0115 --- /dev/null +++ b/devops/src/model/GetPipelineArtifactUrlRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetPipelineArtifactUrlRequest; + +GetPipelineArtifactUrlRequest::GetPipelineArtifactUrlRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipeline/getArtifactDownloadUrl"}; + setMethod(HttpRequest::Method::Post); +} + +GetPipelineArtifactUrlRequest::~GetPipelineArtifactUrlRequest() {} + +std::string GetPipelineArtifactUrlRequest::getOrganizationId() const { + return organizationId_; +} + +void GetPipelineArtifactUrlRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetPipelineArtifactUrlRequest::getFileName() const { + return fileName_; +} + +void GetPipelineArtifactUrlRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("fileName"), fileName); +} + +std::string GetPipelineArtifactUrlRequest::getFilePath() const { + return filePath_; +} + +void GetPipelineArtifactUrlRequest::setFilePath(const std::string &filePath) { + filePath_ = filePath; + setParameter(std::string("filePath"), filePath); +} + diff --git a/devops/src/model/GetPipelineArtifactUrlResult.cc b/devops/src/model/GetPipelineArtifactUrlResult.cc new file mode 100644 index 000000000..c2b8bd76e --- /dev/null +++ b/devops/src/model/GetPipelineArtifactUrlResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetPipelineArtifactUrlResult::GetPipelineArtifactUrlResult() : + ServiceResult() +{} + +GetPipelineArtifactUrlResult::GetPipelineArtifactUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineArtifactUrlResult::~GetPipelineArtifactUrlResult() +{} + +void GetPipelineArtifactUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["fileUrl"].isNull()) + fileUrl_ = value["fileUrl"].asString(); + +} + +std::string GetPipelineArtifactUrlResult::getFileUrl()const +{ + return fileUrl_; +} + +std::string GetPipelineArtifactUrlResult::getRequestId()const +{ + return requestId_; +} + +std::string GetPipelineArtifactUrlResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineArtifactUrlResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineArtifactUrlResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetPipelineEmasArtifactUrlRequest.cc b/devops/src/model/GetPipelineEmasArtifactUrlRequest.cc new file mode 100644 index 000000000..f13595744 --- /dev/null +++ b/devops/src/model/GetPipelineEmasArtifactUrlRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetPipelineEmasArtifactUrlRequest; + +GetPipelineEmasArtifactUrlRequest::GetPipelineEmasArtifactUrlRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipeline/[pipelineId]/pipelineRun/[pipelineRunId]/emas/artifact/[emasJobInstanceId]/[md5]"}; + setMethod(HttpRequest::Method::Post); +} + +GetPipelineEmasArtifactUrlRequest::~GetPipelineEmasArtifactUrlRequest() {} + +long GetPipelineEmasArtifactUrlRequest::getServiceConnectionId() const { + return serviceConnectionId_; +} + +void GetPipelineEmasArtifactUrlRequest::setServiceConnectionId(long serviceConnectionId) { + serviceConnectionId_ = serviceConnectionId; + setParameter(std::string("serviceConnectionId"), std::to_string(serviceConnectionId)); +} + +std::string GetPipelineEmasArtifactUrlRequest::getEmasJobInstanceId() const { + return emasJobInstanceId_; +} + +void GetPipelineEmasArtifactUrlRequest::setEmasJobInstanceId(const std::string &emasJobInstanceId) { + emasJobInstanceId_ = emasJobInstanceId; + setParameter(std::string("emasJobInstanceId"), emasJobInstanceId); +} + +long GetPipelineEmasArtifactUrlRequest::getPipelineId() const { + return pipelineId_; +} + +void GetPipelineEmasArtifactUrlRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string GetPipelineEmasArtifactUrlRequest::getOrganizationId() const { + return organizationId_; +} + +void GetPipelineEmasArtifactUrlRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetPipelineEmasArtifactUrlRequest::getPipelineRunId() const { + return pipelineRunId_; +} + +void GetPipelineEmasArtifactUrlRequest::setPipelineRunId(long pipelineRunId) { + pipelineRunId_ = pipelineRunId; + setParameter(std::string("pipelineRunId"), std::to_string(pipelineRunId)); +} + +std::string GetPipelineEmasArtifactUrlRequest::getMd5() const { + return md5_; +} + +void GetPipelineEmasArtifactUrlRequest::setMd5(const std::string &md5) { + md5_ = md5; + setParameter(std::string("md5"), md5); +} + diff --git a/devops/src/model/GetPipelineEmasArtifactUrlResult.cc b/devops/src/model/GetPipelineEmasArtifactUrlResult.cc new file mode 100644 index 000000000..a7988d6a2 --- /dev/null +++ b/devops/src/model/GetPipelineEmasArtifactUrlResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetPipelineEmasArtifactUrlResult::GetPipelineEmasArtifactUrlResult() : + ServiceResult() +{} + +GetPipelineEmasArtifactUrlResult::GetPipelineEmasArtifactUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineEmasArtifactUrlResult::~GetPipelineEmasArtifactUrlResult() +{} + +void GetPipelineEmasArtifactUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["fileUrl"].isNull()) + fileUrl_ = value["fileUrl"].asString(); + +} + +std::string GetPipelineEmasArtifactUrlResult::getFileUrl()const +{ + return fileUrl_; +} + +std::string GetPipelineEmasArtifactUrlResult::getRequestId()const +{ + return requestId_; +} + +std::string GetPipelineEmasArtifactUrlResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineEmasArtifactUrlResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineEmasArtifactUrlResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetPipelineGroupRequest.cc b/devops/src/model/GetPipelineGroupRequest.cc new file mode 100644 index 000000000..4bc5e7bed --- /dev/null +++ b/devops/src/model/GetPipelineGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetPipelineGroupRequest; + +GetPipelineGroupRequest::GetPipelineGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelineGroups/[groupId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetPipelineGroupRequest::~GetPipelineGroupRequest() {} + +long GetPipelineGroupRequest::getGroupId() const { + return groupId_; +} + +void GetPipelineGroupRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string GetPipelineGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void GetPipelineGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/GetPipelineGroupResult.cc b/devops/src/model/GetPipelineGroupResult.cc new file mode 100644 index 000000000..0cb60d8d0 --- /dev/null +++ b/devops/src/model/GetPipelineGroupResult.cc @@ -0,0 +1,84 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetPipelineGroupResult::GetPipelineGroupResult() : + ServiceResult() +{} + +GetPipelineGroupResult::GetPipelineGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineGroupResult::~GetPipelineGroupResult() +{} + +void GetPipelineGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto pipelineGroupNode = value["pipelineGroup"]; + if(!pipelineGroupNode["createTime"].isNull()) + pipelineGroup_.createTime = std::stol(pipelineGroupNode["createTime"].asString()); + if(!pipelineGroupNode["id"].isNull()) + pipelineGroup_.id = std::stol(pipelineGroupNode["id"].asString()); + if(!pipelineGroupNode["name"].isNull()) + pipelineGroup_.name = pipelineGroupNode["name"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string GetPipelineGroupResult::getRequestId()const +{ + return requestId_; +} + +GetPipelineGroupResult::PipelineGroup GetPipelineGroupResult::getPipelineGroup()const +{ + return pipelineGroup_; +} + +std::string GetPipelineGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetPipelineRequest.cc b/devops/src/model/GetPipelineRequest.cc new file mode 100644 index 000000000..72b4c61ba --- /dev/null +++ b/devops/src/model/GetPipelineRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetPipelineRequest; + +GetPipelineRequest::GetPipelineRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetPipelineRequest::~GetPipelineRequest() {} + +long GetPipelineRequest::getPipelineId() const { + return pipelineId_; +} + +void GetPipelineRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string GetPipelineRequest::getOrganizationId() const { + return organizationId_; +} + +void GetPipelineRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/GetPipelineResult.cc b/devops/src/model/GetPipelineResult.cc new file mode 100644 index 000000000..2ac9f3908 --- /dev/null +++ b/devops/src/model/GetPipelineResult.cc @@ -0,0 +1,153 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetPipelineResult::GetPipelineResult() : + ServiceResult() +{} + +GetPipelineResult::GetPipelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineResult::~GetPipelineResult() +{} + +void GetPipelineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto pipelineNode = value["pipeline"]; + if(!pipelineNode["creatorAccountId"].isNull()) + pipeline_.creatorAccountId = pipelineNode["creatorAccountId"].asString(); + if(!pipelineNode["envId"].isNull()) + pipeline_.envId = std::stoi(pipelineNode["envId"].asString()); + if(!pipelineNode["envName"].isNull()) + pipeline_.envName = pipelineNode["envName"].asString(); + if(!pipelineNode["createTime"].isNull()) + pipeline_.createTime = std::stol(pipelineNode["createTime"].asString()); + if(!pipelineNode["updateTime"].isNull()) + pipeline_.updateTime = std::stol(pipelineNode["updateTime"].asString()); + if(!pipelineNode["groupId"].isNull()) + pipeline_.groupId = std::stol(pipelineNode["groupId"].asString()); + if(!pipelineNode["modifierAccountId"].isNull()) + pipeline_.modifierAccountId = pipelineNode["modifierAccountId"].asString(); + if(!pipelineNode["name"].isNull()) + pipeline_.name = pipelineNode["name"].asString(); + auto alltagListNode = pipelineNode["tagList"]["Tag"]; + for (auto pipelineNodetagListTag : alltagListNode) + { + Pipeline::Tag tagObject; + if(!pipelineNodetagListTag["id"].isNull()) + tagObject.id = std::stol(pipelineNodetagListTag["id"].asString()); + if(!pipelineNodetagListTag["name"].isNull()) + tagObject.name = pipelineNodetagListTag["name"].asString(); + pipeline_.tagList.push_back(tagObject); + } + auto pipelineConfigNode = pipelineNode["pipelineConfig"]; + if(!pipelineConfigNode["flow"].isNull()) + pipeline_.pipelineConfig.flow = pipelineConfigNode["flow"].asString(); + if(!pipelineConfigNode["settings"].isNull()) + pipeline_.pipelineConfig.settings = pipelineConfigNode["settings"].asString(); + auto allsourcesNode = pipelineConfigNode["sources"]["Source"]; + for (auto pipelineConfigNodesourcesSource : allsourcesNode) + { + Pipeline::PipelineConfig::Source sourceObject; + if(!pipelineConfigNodesourcesSource["sign"].isNull()) + sourceObject.sign = pipelineConfigNodesourcesSource["sign"].asString(); + if(!pipelineConfigNodesourcesSource["type"].isNull()) + sourceObject.type = pipelineConfigNodesourcesSource["type"].asString(); + auto dataNode = value["data"]; + if(!dataNode["branch"].isNull()) + sourceObject.data.branch = dataNode["branch"].asString(); + if(!dataNode["serviceConnectionId"].isNull()) + sourceObject.data.serviceConnectionId = std::stol(dataNode["serviceConnectionId"].asString()); + if(!dataNode["label"].isNull()) + sourceObject.data.label = dataNode["label"].asString(); + if(!dataNode["isTrigger"].isNull()) + sourceObject.data.isTrigger = dataNode["isTrigger"].asString() == "true"; + if(!dataNode["repo"].isNull()) + sourceObject.data.repo = dataNode["repo"].asString(); + if(!dataNode["triggerFilter"].isNull()) + sourceObject.data.triggerFilter = dataNode["triggerFilter"].asString(); + if(!dataNode["webhook"].isNull()) + sourceObject.data.webhook = dataNode["webhook"].asString(); + if(!dataNode["isBranchMode"].isNull()) + sourceObject.data.isBranchMode = dataNode["isBranchMode"].asString() == "true"; + if(!dataNode["isSubmodule"].isNull()) + sourceObject.data.isSubmodule = dataNode["isSubmodule"].asString() == "true"; + if(!dataNode["isCloneDepth"].isNull()) + sourceObject.data.isCloneDepth = dataNode["isCloneDepth"].asString() == "true"; + if(!dataNode["cloneDepth"].isNull()) + sourceObject.data.cloneDepth = std::stol(dataNode["cloneDepth"].asString()); + if(!dataNode["credentialId"].isNull()) + sourceObject.data.credentialId = std::stol(dataNode["credentialId"].asString()); + if(!dataNode["credentialType"].isNull()) + sourceObject.data.credentialType = dataNode["credentialType"].asString(); + if(!dataNode["credentialLabel"].isNull()) + sourceObject.data.credentialLabel = dataNode["credentialLabel"].asString(); + if(!dataNode["namespace"].isNull()) + sourceObject.data._namespace = dataNode["namespace"].asString(); + auto allEvents = dataNode["events"]["Envent"]; + for (auto value : allEvents) + sourceObject.data.events.push_back(value.asString()); + pipeline_.pipelineConfig.sources.push_back(sourceObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string GetPipelineResult::getRequestId()const +{ + return requestId_; +} + +std::string GetPipelineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineResult::getSuccess()const +{ + return success_; +} + +GetPipelineResult::Pipeline GetPipelineResult::getPipeline()const +{ + return pipeline_; +} + diff --git a/devops/src/model/GetPipelineRunRequest.cc b/devops/src/model/GetPipelineRunRequest.cc new file mode 100644 index 000000000..15c123ec3 --- /dev/null +++ b/devops/src/model/GetPipelineRunRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetPipelineRunRequest; + +GetPipelineRunRequest::GetPipelineRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/pipelineRuns/[pipelineRunId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetPipelineRunRequest::~GetPipelineRunRequest() {} + +long GetPipelineRunRequest::getPipelineId() const { + return pipelineId_; +} + +void GetPipelineRunRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string GetPipelineRunRequest::getOrganizationId() const { + return organizationId_; +} + +void GetPipelineRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetPipelineRunRequest::getPipelineRunId() const { + return pipelineRunId_; +} + +void GetPipelineRunRequest::setPipelineRunId(long pipelineRunId) { + pipelineRunId_ = pipelineRunId; + setParameter(std::string("pipelineRunId"), std::to_string(pipelineRunId)); +} + diff --git a/devops/src/model/GetPipelineRunResult.cc b/devops/src/model/GetPipelineRunResult.cc new file mode 100644 index 000000000..4b661730c --- /dev/null +++ b/devops/src/model/GetPipelineRunResult.cc @@ -0,0 +1,44 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetPipelineRunResult::GetPipelineRunResult() : + ServiceResult() +{} + +GetPipelineRunResult::GetPipelineRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineRunResult::~GetPipelineRunResult() +{} + +void GetPipelineRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/devops/src/model/GetPipelineScanReportUrlRequest.cc b/devops/src/model/GetPipelineScanReportUrlRequest.cc new file mode 100644 index 000000000..b22cb50e6 --- /dev/null +++ b/devops/src/model/GetPipelineScanReportUrlRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetPipelineScanReportUrlRequest; + +GetPipelineScanReportUrlRequest::GetPipelineScanReportUrlRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipeline/getPipelineScanReportUrl"}; + setMethod(HttpRequest::Method::Post); +} + +GetPipelineScanReportUrlRequest::~GetPipelineScanReportUrlRequest() {} + +std::string GetPipelineScanReportUrlRequest::getOrganizationId() const { + return organizationId_; +} + +void GetPipelineScanReportUrlRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetPipelineScanReportUrlRequest::getReportPath() const { + return reportPath_; +} + +void GetPipelineScanReportUrlRequest::setReportPath(const std::string &reportPath) { + reportPath_ = reportPath; + setBodyParameter(std::string("reportPath"), reportPath); +} + diff --git a/devops/src/model/GetPipelineScanReportUrlResult.cc b/devops/src/model/GetPipelineScanReportUrlResult.cc new file mode 100644 index 000000000..77453d188 --- /dev/null +++ b/devops/src/model/GetPipelineScanReportUrlResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetPipelineScanReportUrlResult::GetPipelineScanReportUrlResult() : + ServiceResult() +{} + +GetPipelineScanReportUrlResult::GetPipelineScanReportUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPipelineScanReportUrlResult::~GetPipelineScanReportUrlResult() +{} + +void GetPipelineScanReportUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["reportUrl"].isNull()) + reportUrl_ = value["reportUrl"].asString(); + +} + +std::string GetPipelineScanReportUrlResult::getRequestId()const +{ + return requestId_; +} + +std::string GetPipelineScanReportUrlResult::getReportUrl()const +{ + return reportUrl_; +} + +std::string GetPipelineScanReportUrlResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPipelineScanReportUrlResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPipelineScanReportUrlResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetProjectInfoRequest.cc b/devops/src/model/GetProjectInfoRequest.cc new file mode 100644 index 000000000..4384f3bb1 --- /dev/null +++ b/devops/src/model/GetProjectInfoRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetProjectInfoRequest; + +GetProjectInfoRequest::GetProjectInfoRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/project/[projectId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetProjectInfoRequest::~GetProjectInfoRequest() {} + +std::string GetProjectInfoRequest::getOrganizationId() const { + return organizationId_; +} + +void GetProjectInfoRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetProjectInfoRequest::getProjectId() const { + return projectId_; +} + +void GetProjectInfoRequest::setProjectId(const std::string &projectId) { + projectId_ = projectId; + setParameter(std::string("projectId"), projectId); +} + diff --git a/devops/src/model/GetProjectInfoResult.cc b/devops/src/model/GetProjectInfoResult.cc new file mode 100644 index 000000000..db1292063 --- /dev/null +++ b/devops/src/model/GetProjectInfoResult.cc @@ -0,0 +1,126 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetProjectInfoResult::GetProjectInfoResult() : + ServiceResult() +{} + +GetProjectInfoResult::GetProjectInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProjectInfoResult::~GetProjectInfoResult() +{} + +void GetProjectInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto projectNode = value["project"]; + if(!projectNode["category"].isNull()) + project_.category = projectNode["category"].asString(); + if(!projectNode["categoryIdentifier"].isNull()) + project_.categoryIdentifier = projectNode["categoryIdentifier"].asString(); + if(!projectNode["creator"].isNull()) + project_.creator = projectNode["creator"].asString(); + if(!projectNode["customCode"].isNull()) + project_.customCode = projectNode["customCode"].asString(); + if(!projectNode["description"].isNull()) + project_.description = projectNode["description"].asString(); + if(!projectNode["gmtCreate"].isNull()) + project_.gmtCreate = std::stol(projectNode["gmtCreate"].asString()); + if(!projectNode["gmtModified"].isNull()) + project_.gmtModified = std::stol(projectNode["gmtModified"].asString()); + if(!projectNode["iconGroup"].isNull()) + project_.iconGroup = projectNode["iconGroup"].asString(); + if(!projectNode["icon"].isNull()) + project_.icon = projectNode["icon"].asString(); + if(!projectNode["iconBig"].isNull()) + project_.iconBig = projectNode["iconBig"].asString(); + if(!projectNode["iconSmall"].isNull()) + project_.iconSmall = projectNode["iconSmall"].asString(); + if(!projectNode["id"].isNull()) + project_.id = projectNode["id"].asString(); + if(!projectNode["identifier"].isNull()) + project_.identifier = projectNode["identifier"].asString(); + if(!projectNode["identifierPath"].isNull()) + project_.identifierPath = projectNode["identifierPath"].asString(); + if(!projectNode["logicalStatus"].isNull()) + project_.logicalStatus = projectNode["logicalStatus"].asString(); + if(!projectNode["modifier"].isNull()) + project_.modifier = projectNode["modifier"].asString(); + if(!projectNode["name"].isNull()) + project_.name = projectNode["name"].asString(); + if(!projectNode["organizationIdentifier"].isNull()) + project_.organizationIdentifier = projectNode["organizationIdentifier"].asString(); + if(!projectNode["parentIdentifier"].isNull()) + project_.parentIdentifier = projectNode["parentIdentifier"].asString(); + if(!projectNode["scope"].isNull()) + project_.scope = projectNode["scope"].asString(); + if(!projectNode["statusIdentifier"].isNull()) + project_.statusIdentifier = projectNode["statusIdentifier"].asString(); + if(!projectNode["statusStageIdentifier"].isNull()) + project_.statusStageIdentifier = projectNode["statusStageIdentifier"].asString(); + if(!projectNode["subType"].isNull()) + project_.subType = projectNode["subType"].asString(); + if(!projectNode["typeIdentifier"].isNull()) + project_.typeIdentifier = projectNode["typeIdentifier"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +GetProjectInfoResult::Project GetProjectInfoResult::getProject()const +{ + return project_; +} + +std::string GetProjectInfoResult::getRequestId()const +{ + return requestId_; +} + +std::string GetProjectInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetProjectInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetProjectInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetProjectMemberRequest.cc b/devops/src/model/GetProjectMemberRequest.cc new file mode 100644 index 000000000..1ec48e822 --- /dev/null +++ b/devops/src/model/GetProjectMemberRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetProjectMemberRequest; + +GetProjectMemberRequest::GetProjectMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/members/get/[aliyunPk]"}; + setMethod(HttpRequest::Method::Get); +} + +GetProjectMemberRequest::~GetProjectMemberRequest() {} + +std::string GetProjectMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void GetProjectMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetProjectMemberRequest::getAliyunPk() const { + return aliyunPk_; +} + +void GetProjectMemberRequest::setAliyunPk(const std::string &aliyunPk) { + aliyunPk_ = aliyunPk; + setParameter(std::string("aliyunPk"), aliyunPk); +} + +long GetProjectMemberRequest::getRepositoryId() const { + return repositoryId_; +} + +void GetProjectMemberRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string GetProjectMemberRequest::getAccessToken() const { + return accessToken_; +} + +void GetProjectMemberRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/GetProjectMemberResult.cc b/devops/src/model/GetProjectMemberResult.cc new file mode 100644 index 000000000..5ca8b183a --- /dev/null +++ b/devops/src/model/GetProjectMemberResult.cc @@ -0,0 +1,90 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetProjectMemberResult::GetProjectMemberResult() : + ServiceResult() +{} + +GetProjectMemberResult::GetProjectMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProjectMemberResult::~GetProjectMemberResult() +{} + +void GetProjectMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["accessLevel"].isNull()) + result_.accessLevel = std::stoi(resultNode["accessLevel"].asString()); + if(!resultNode["externUserId"].isNull()) + result_.externUserId = resultNode["externUserId"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["email"].isNull()) + result_.email = resultNode["email"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetProjectMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string GetProjectMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetProjectMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetProjectMemberResult::getSuccess()const +{ + return success_; +} + +GetProjectMemberResult::Result GetProjectMemberResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetPushRuleRequest.cc b/devops/src/model/GetPushRuleRequest.cc new file mode 100644 index 000000000..bb6c96342 --- /dev/null +++ b/devops/src/model/GetPushRuleRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetPushRuleRequest; + +GetPushRuleRequest::GetPushRuleRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/push_rule/[pushRuleId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetPushRuleRequest::~GetPushRuleRequest() {} + +std::string GetPushRuleRequest::getOrganizationId() const { + return organizationId_; +} + +void GetPushRuleRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetPushRuleRequest::getPushRuleId() const { + return pushRuleId_; +} + +void GetPushRuleRequest::setPushRuleId(long pushRuleId) { + pushRuleId_ = pushRuleId; + setParameter(std::string("pushRuleId"), std::to_string(pushRuleId)); +} + +long GetPushRuleRequest::getRepositoryId() const { + return repositoryId_; +} + +void GetPushRuleRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string GetPushRuleRequest::getAccessToken() const { + return accessToken_; +} + +void GetPushRuleRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/GetPushRuleResult.cc b/devops/src/model/GetPushRuleResult.cc new file mode 100644 index 000000000..4ecbfa514 --- /dev/null +++ b/devops/src/model/GetPushRuleResult.cc @@ -0,0 +1,99 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetPushRuleResult::GetPushRuleResult() : + ServiceResult() +{} + +GetPushRuleResult::GetPushRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPushRuleResult::~GetPushRuleResult() +{} + +void GetPushRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["gmtCreate"].isNull()) + result_.gmtCreate = resultNode["gmtCreate"].asString(); + if(!resultNode["gmtModified"].isNull()) + result_.gmtModified = resultNode["gmtModified"].asString(); + auto allruleInfosNode = resultNode["ruleInfos"]["rule_infos"]; + for (auto resultNoderuleInfosrule_infos : allruleInfosNode) + { + Result::Rule_infos rule_infosObject; + if(!resultNoderuleInfosrule_infos["checkerName"].isNull()) + rule_infosObject.checkerName = resultNoderuleInfosrule_infos["checkerName"].asString(); + if(!resultNoderuleInfosrule_infos["checkerType"].isNull()) + rule_infosObject.checkerType = resultNoderuleInfosrule_infos["checkerType"].asString(); + if(!resultNoderuleInfosrule_infos["extraMessage"].isNull()) + rule_infosObject.extraMessage = resultNoderuleInfosrule_infos["extraMessage"].asString(); + auto allFileRuleRegexes = value["fileRuleRegexes"]["file_rule_regexes"]; + for (auto value : allFileRuleRegexes) + rule_infosObject.fileRuleRegexes.push_back(value.asString()); + result_.ruleInfos.push_back(rule_infosObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetPushRuleResult::getRequestId()const +{ + return requestId_; +} + +std::string GetPushRuleResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetPushRuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetPushRuleResult::getSuccess()const +{ + return success_; +} + +GetPushRuleResult::Result GetPushRuleResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetRepositoryCommitRequest.cc b/devops/src/model/GetRepositoryCommitRequest.cc new file mode 100644 index 000000000..c5a5c66a7 --- /dev/null +++ b/devops/src/model/GetRepositoryCommitRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetRepositoryCommitRequest; + +GetRepositoryCommitRequest::GetRepositoryCommitRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/commits/[sha]"}; + setMethod(HttpRequest::Method::Get); +} + +GetRepositoryCommitRequest::~GetRepositoryCommitRequest() {} + +std::string GetRepositoryCommitRequest::getOrganizationId() const { + return organizationId_; +} + +void GetRepositoryCommitRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetRepositoryCommitRequest::getRepositoryId() const { + return repositoryId_; +} + +void GetRepositoryCommitRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string GetRepositoryCommitRequest::getAccessToken() const { + return accessToken_; +} + +void GetRepositoryCommitRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +bool GetRepositoryCommitRequest::getShowSignature() const { + return showSignature_; +} + +void GetRepositoryCommitRequest::setShowSignature(bool showSignature) { + showSignature_ = showSignature; + setParameter(std::string("showSignature"), showSignature ? "true" : "false"); +} + +std::string GetRepositoryCommitRequest::getSha() const { + return sha_; +} + +void GetRepositoryCommitRequest::setSha(const std::string &sha) { + sha_ = sha; + setParameter(std::string("sha"), sha); +} + diff --git a/devops/src/model/GetRepositoryCommitResult.cc b/devops/src/model/GetRepositoryCommitResult.cc new file mode 100644 index 000000000..a4a78474e --- /dev/null +++ b/devops/src/model/GetRepositoryCommitResult.cc @@ -0,0 +1,148 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetRepositoryCommitResult::GetRepositoryCommitResult() : + ServiceResult() +{} + +GetRepositoryCommitResult::GetRepositoryCommitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRepositoryCommitResult::~GetRepositoryCommitResult() +{} + +void GetRepositoryCommitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["shortId"].isNull()) + result_.shortId = resultNode["shortId"].asString(); + if(!resultNode["title"].isNull()) + result_.title = resultNode["title"].asString(); + if(!resultNode["authorName"].isNull()) + result_.authorName = resultNode["authorName"].asString(); + if(!resultNode["authorEmail"].isNull()) + result_.authorEmail = resultNode["authorEmail"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["message"].isNull()) + result_.message = resultNode["message"].asString(); + if(!resultNode["authoredDate"].isNull()) + result_.authoredDate = resultNode["authoredDate"].asString(); + if(!resultNode["committedDate"].isNull()) + result_.committedDate = resultNode["committedDate"].asString(); + if(!resultNode["committerEmail"].isNull()) + result_.committerEmail = resultNode["committerEmail"].asString(); + if(!resultNode["committerName"].isNull()) + result_.committerName = resultNode["committerName"].asString(); + if(!resultNode["commentsCount"].isNull()) + result_.commentsCount = std::stol(resultNode["commentsCount"].asString()); + auto authorNode = resultNode["author"]; + if(!authorNode["id"].isNull()) + result_.author.id = std::stol(authorNode["id"].asString()); + if(!authorNode["name"].isNull()) + result_.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + result_.author.username = authorNode["username"].asString(); + if(!authorNode["state"].isNull()) + result_.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + result_.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["externUid"].isNull()) + result_.author.externUid = authorNode["externUid"].asString(); + if(!authorNode["websiteUrl"].isNull()) + result_.author.websiteUrl = authorNode["websiteUrl"].asString(); + if(!authorNode["email"].isNull()) + result_.author.email = authorNode["email"].asString(); + if(!authorNode["tbUserId"].isNull()) + result_.author.tbUserId = authorNode["tbUserId"].asString(); + auto committerNode = resultNode["committer"]; + if(!committerNode["id"].isNull()) + result_.committer.id = std::stol(committerNode["id"].asString()); + if(!committerNode["name"].isNull()) + result_.committer.name = committerNode["name"].asString(); + if(!committerNode["username"].isNull()) + result_.committer.username = committerNode["username"].asString(); + if(!committerNode["state"].isNull()) + result_.committer.state = committerNode["state"].asString(); + if(!committerNode["avatarUrl"].isNull()) + result_.committer.avatarUrl = committerNode["avatarUrl"].asString(); + if(!committerNode["externUid"].isNull()) + result_.committer.externUid = committerNode["externUid"].asString(); + if(!committerNode["websiteUrl"].isNull()) + result_.committer.websiteUrl = committerNode["websiteUrl"].asString(); + if(!committerNode["email"].isNull()) + result_.committer.email = committerNode["email"].asString(); + if(!committerNode["tbUserId"].isNull()) + result_.committer.tbUserId = committerNode["tbUserId"].asString(); + auto signatureNode = resultNode["signature"]; + if(!signatureNode["gpgKeyId"].isNull()) + result_.signature.gpgKeyId = signatureNode["gpgKeyId"].asString(); + if(!signatureNode["verificationStatus"].isNull()) + result_.signature.verificationStatus = signatureNode["verificationStatus"].asString(); + auto allParentIds = resultNode["parentIds"]["parent_ids"]; + for (auto value : allParentIds) + result_.parentIds.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetRepositoryCommitResult::getRequestId()const +{ + return requestId_; +} + +std::string GetRepositoryCommitResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetRepositoryCommitResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetRepositoryCommitResult::getSuccess()const +{ + return success_; +} + +GetRepositoryCommitResult::Result GetRepositoryCommitResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetRepositoryRequest.cc b/devops/src/model/GetRepositoryRequest.cc new file mode 100644 index 000000000..685cd340d --- /dev/null +++ b/devops/src/model/GetRepositoryRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetRepositoryRequest; + +GetRepositoryRequest::GetRepositoryRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/get"}; + setMethod(HttpRequest::Method::Get); +} + +GetRepositoryRequest::~GetRepositoryRequest() {} + +std::string GetRepositoryRequest::getOrganizationId() const { + return organizationId_; +} + +void GetRepositoryRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetRepositoryRequest::getIdentity() const { + return identity_; +} + +void GetRepositoryRequest::setIdentity(const std::string &identity) { + identity_ = identity; + setParameter(std::string("identity"), identity); +} + +std::string GetRepositoryRequest::getAccessToken() const { + return accessToken_; +} + +void GetRepositoryRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/GetRepositoryResult.cc b/devops/src/model/GetRepositoryResult.cc new file mode 100644 index 000000000..e43635619 --- /dev/null +++ b/devops/src/model/GetRepositoryResult.cc @@ -0,0 +1,131 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetRepositoryResult::GetRepositoryResult() : + ServiceResult() +{} + +GetRepositoryResult::GetRepositoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRepositoryResult::~GetRepositoryResult() +{} + +void GetRepositoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto repositoryNode = value["repository"]; + if(!repositoryNode["archive"].isNull()) + repository_.archive = repositoryNode["archive"].asString() == "true"; + if(!repositoryNode["avatarUrl"].isNull()) + repository_.avatarUrl = repositoryNode["avatarUrl"].asString(); + if(!repositoryNode["createdAt"].isNull()) + repository_.createdAt = repositoryNode["createdAt"].asString(); + if(!repositoryNode["creatorId"].isNull()) + repository_.creatorId = std::stol(repositoryNode["creatorId"].asString()); + if(!repositoryNode["defaultBranch"].isNull()) + repository_.defaultBranch = repositoryNode["defaultBranch"].asString(); + if(!repositoryNode["demoProjectStatus"].isNull()) + repository_.demoProjectStatus = repositoryNode["demoProjectStatus"].asString() == "true"; + if(!repositoryNode["description"].isNull()) + repository_.description = repositoryNode["description"].asString(); + if(!repositoryNode["httpUrlToRepository"].isNull()) + repository_.httpUrlToRepository = repositoryNode["httpUrlToRepository"].asString(); + if(!repositoryNode["id"].isNull()) + repository_.id = std::stol(repositoryNode["id"].asString()); + if(!repositoryNode["lastActivityAt"].isNull()) + repository_.lastActivityAt = repositoryNode["lastActivityAt"].asString(); + if(!repositoryNode["name"].isNull()) + repository_.name = repositoryNode["name"].asString(); + if(!repositoryNode["nameWithNamespace"].isNull()) + repository_.nameWithNamespace = repositoryNode["nameWithNamespace"].asString(); + if(!repositoryNode["path"].isNull()) + repository_.path = repositoryNode["path"].asString(); + if(!repositoryNode["pathWithNamespace"].isNull()) + repository_.pathWithNamespace = repositoryNode["pathWithNamespace"].asString(); + if(!repositoryNode["sshUrlToRepository"].isNull()) + repository_.sshUrlToRepository = repositoryNode["sshUrlToRepository"].asString(); + if(!repositoryNode["visibilityLevel"].isNull()) + repository_.visibilityLevel = std::stoi(repositoryNode["visibilityLevel"].asString()); + if(!repositoryNode["webUrl"].isNull()) + repository_.webUrl = repositoryNode["webUrl"].asString(); + auto _namespaceNode = repositoryNode["namespace"]; + if(!_namespaceNode["id"].isNull()) + repository_._namespace.id = std::stol(_namespaceNode["id"].asString()); + if(!_namespaceNode["avatar"].isNull()) + repository_._namespace.avatar = _namespaceNode["avatar"].asString(); + if(!_namespaceNode["createdAt"].isNull()) + repository_._namespace.createdAt = _namespaceNode["createdAt"].asString(); + if(!_namespaceNode["description"].isNull()) + repository_._namespace.description = _namespaceNode["description"].asString(); + if(!_namespaceNode["name"].isNull()) + repository_._namespace.name = _namespaceNode["name"].asString(); + if(!_namespaceNode["ownerId"].isNull()) + repository_._namespace.ownerId = std::stol(_namespaceNode["ownerId"].asString()); + if(!_namespaceNode["path"].isNull()) + repository_._namespace.path = _namespaceNode["path"].asString(); + if(!_namespaceNode["updatedAt"].isNull()) + repository_._namespace.updatedAt = _namespaceNode["updatedAt"].asString(); + if(!_namespaceNode["visibilityLevel"].isNull()) + repository_._namespace.visibilityLevel = std::stoi(_namespaceNode["visibilityLevel"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +GetRepositoryResult::Repository GetRepositoryResult::getRepository()const +{ + return repository_; +} + +std::string GetRepositoryResult::getRequestId()const +{ + return requestId_; +} + +std::string GetRepositoryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetRepositoryResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetRepositoryResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetRepositoryTagRequest.cc b/devops/src/model/GetRepositoryTagRequest.cc new file mode 100644 index 000000000..45b46c223 --- /dev/null +++ b/devops/src/model/GetRepositoryTagRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetRepositoryTagRequest; + +GetRepositoryTagRequest::GetRepositoryTagRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/tag/info"}; + setMethod(HttpRequest::Method::Get); +} + +GetRepositoryTagRequest::~GetRepositoryTagRequest() {} + +std::string GetRepositoryTagRequest::getOrganizationId() const { + return organizationId_; +} + +void GetRepositoryTagRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetRepositoryTagRequest::getTagName() const { + return tagName_; +} + +void GetRepositoryTagRequest::setTagName(const std::string &tagName) { + tagName_ = tagName; + setParameter(std::string("tagName"), tagName); +} + +long GetRepositoryTagRequest::getRepositoryId() const { + return repositoryId_; +} + +void GetRepositoryTagRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string GetRepositoryTagRequest::getAccessToken() const { + return accessToken_; +} + +void GetRepositoryTagRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/GetRepositoryTagResult.cc b/devops/src/model/GetRepositoryTagResult.cc new file mode 100644 index 000000000..5dda9f3f9 --- /dev/null +++ b/devops/src/model/GetRepositoryTagResult.cc @@ -0,0 +1,115 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetRepositoryTagResult::GetRepositoryTagResult() : + ServiceResult() +{} + +GetRepositoryTagResult::GetRepositoryTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetRepositoryTagResult::~GetRepositoryTagResult() +{} + +void GetRepositoryTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["message"].isNull()) + result_.message = resultNode["message"].asString(); + auto commitNode = resultNode["commit"]; + if(!commitNode["id"].isNull()) + result_.commit.id = commitNode["id"].asString(); + if(!commitNode["shortId"].isNull()) + result_.commit.shortId = commitNode["shortId"].asString(); + if(!commitNode["title"].isNull()) + result_.commit.title = commitNode["title"].asString(); + if(!commitNode["message"].isNull()) + result_.commit.message = commitNode["message"].asString(); + if(!commitNode["createdAt"].isNull()) + result_.commit.createdAt = commitNode["createdAt"].asString(); + if(!commitNode["authorName"].isNull()) + result_.commit.authorName = commitNode["authorName"].asString(); + if(!commitNode["authorEmail"].isNull()) + result_.commit.authorEmail = commitNode["authorEmail"].asString(); + if(!commitNode["authoredDate"].isNull()) + result_.commit.authoredDate = commitNode["authoredDate"].asString(); + if(!commitNode["committerName"].isNull()) + result_.commit.committerName = commitNode["committerName"].asString(); + if(!commitNode["committerEmail"].isNull()) + result_.commit.committerEmail = commitNode["committerEmail"].asString(); + if(!commitNode["committedDate"].isNull()) + result_.commit.committedDate = commitNode["committedDate"].asString(); + auto signatureNode = commitNode["signature"]; + if(!signatureNode["gpgKeyId"].isNull()) + result_.commit.signature.gpgKeyId = signatureNode["gpgKeyId"].asString(); + if(!signatureNode["verificationStatus"].isNull()) + result_.commit.signature.verificationStatus = signatureNode["verificationStatus"].asString(); + auto allParentIds = commitNode["parentIds"]["parent_ids"]; + for (auto value : allParentIds) + result_.commit.parentIds.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetRepositoryTagResult::getRequestId()const +{ + return requestId_; +} + +std::string GetRepositoryTagResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetRepositoryTagResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetRepositoryTagResult::getSuccess()const +{ + return success_; +} + +GetRepositoryTagResult::Result GetRepositoryTagResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetSearchCodePreviewRequest.cc b/devops/src/model/GetSearchCodePreviewRequest.cc new file mode 100644 index 000000000..58a4087cd --- /dev/null +++ b/devops/src/model/GetSearchCodePreviewRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetSearchCodePreviewRequest; + +GetSearchCodePreviewRequest::GetSearchCodePreviewRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/search/code_preview"}; + setMethod(HttpRequest::Method::Get); +} + +GetSearchCodePreviewRequest::~GetSearchCodePreviewRequest() {} + +std::string GetSearchCodePreviewRequest::getOrganizationId() const { + return organizationId_; +} + +void GetSearchCodePreviewRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetSearchCodePreviewRequest::getDocId() const { + return docId_; +} + +void GetSearchCodePreviewRequest::setDocId(const std::string &docId) { + docId_ = docId; + setParameter(std::string("docId"), docId); +} + +std::string GetSearchCodePreviewRequest::getKeyword() const { + return keyword_; +} + +void GetSearchCodePreviewRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("keyword"), keyword); +} + +bool GetSearchCodePreviewRequest::getIsDsl() const { + return isDsl_; +} + +void GetSearchCodePreviewRequest::setIsDsl(bool isDsl) { + isDsl_ = isDsl; + setParameter(std::string("isDsl"), isDsl ? "true" : "false"); +} + diff --git a/devops/src/model/GetSearchCodePreviewResult.cc b/devops/src/model/GetSearchCodePreviewResult.cc new file mode 100644 index 000000000..1ce53196c --- /dev/null +++ b/devops/src/model/GetSearchCodePreviewResult.cc @@ -0,0 +1,102 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetSearchCodePreviewResult::GetSearchCodePreviewResult() : + ServiceResult() +{} + +GetSearchCodePreviewResult::GetSearchCodePreviewResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSearchCodePreviewResult::~GetSearchCodePreviewResult() +{} + +void GetSearchCodePreviewResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["docId"].isNull()) + result_.docId = resultNode["docId"].asString(); + auto highlightTextMapNode = resultNode["highlightTextMap"]; + if(!highlightTextMapNode["organizationId"].isNull()) + result_.highlightTextMap.organizationId = highlightTextMapNode["organizationId"].asString(); + if(!highlightTextMapNode["fileName"].isNull()) + result_.highlightTextMap.fileName = highlightTextMapNode["fileName"].asString(); + if(!highlightTextMapNode["clob"].isNull()) + result_.highlightTextMap.clob = highlightTextMapNode["clob"].asString(); + auto sourceNode = resultNode["source"]; + if(!sourceNode["repoPath"].isNull()) + result_.source.repoPath = sourceNode["repoPath"].asString(); + if(!sourceNode["fileName"].isNull()) + result_.source.fileName = sourceNode["fileName"].asString(); + if(!sourceNode["filePath"].isNull()) + result_.source.filePath = sourceNode["filePath"].asString(); + if(!sourceNode["language"].isNull()) + result_.source.language = sourceNode["language"].asString(); + if(!sourceNode["checkinDate"].isNull()) + result_.source.checkinDate = sourceNode["checkinDate"].asString(); + if(!sourceNode["branch"].isNull()) + result_.source.branch = sourceNode["branch"].asString(); + if(!sourceNode["organizationId"].isNull()) + result_.source.organizationId = sourceNode["organizationId"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetSearchCodePreviewResult::getRequestId()const +{ + return requestId_; +} + +std::string GetSearchCodePreviewResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSearchCodePreviewResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetSearchCodePreviewResult::getSuccess()const +{ + return success_; +} + +GetSearchCodePreviewResult::Result GetSearchCodePreviewResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetSprintInfoRequest.cc b/devops/src/model/GetSprintInfoRequest.cc new file mode 100644 index 000000000..b21b0bfb3 --- /dev/null +++ b/devops/src/model/GetSprintInfoRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetSprintInfoRequest; + +GetSprintInfoRequest::GetSprintInfoRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/sprints/[sprintId]/getSprintinfo"}; + setMethod(HttpRequest::Method::Get); +} + +GetSprintInfoRequest::~GetSprintInfoRequest() {} + +std::string GetSprintInfoRequest::getOrganizationId() const { + return organizationId_; +} + +void GetSprintInfoRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetSprintInfoRequest::getSprintId() const { + return sprintId_; +} + +void GetSprintInfoRequest::setSprintId(const std::string &sprintId) { + sprintId_ = sprintId; + setParameter(std::string("sprintId"), sprintId); +} + diff --git a/devops/src/model/GetSprintInfoResult.cc b/devops/src/model/GetSprintInfoResult.cc new file mode 100644 index 000000000..6963a9f16 --- /dev/null +++ b/devops/src/model/GetSprintInfoResult.cc @@ -0,0 +1,105 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetSprintInfoResult::GetSprintInfoResult() : + ServiceResult() +{} + +GetSprintInfoResult::GetSprintInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSprintInfoResult::~GetSprintInfoResult() +{} + +void GetSprintInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto sprintNode = value["sprint"]; + if(!sprintNode["creator"].isNull()) + sprint_.creator = sprintNode["creator"].asString(); + if(!sprintNode["description"].isNull()) + sprint_.description = sprintNode["description"].asString(); + if(!sprintNode["gmtCreate"].isNull()) + sprint_.gmtCreate = std::stol(sprintNode["gmtCreate"].asString()); + if(!sprintNode["gmtModified"].isNull()) + sprint_.gmtModified = std::stol(sprintNode["gmtModified"].asString()); + if(!sprintNode["endDate"].isNull()) + sprint_.endDate = std::stol(sprintNode["endDate"].asString()); + if(!sprintNode["startDate"].isNull()) + sprint_.startDate = std::stol(sprintNode["startDate"].asString()); + if(!sprintNode["identifier"].isNull()) + sprint_.identifier = sprintNode["identifier"].asString(); + if(!sprintNode["modifier"].isNull()) + sprint_.modifier = sprintNode["modifier"].asString(); + if(!sprintNode["name"].isNull()) + sprint_.name = sprintNode["name"].asString(); + if(!sprintNode["spaceIdentifier"].isNull()) + sprint_.spaceIdentifier = sprintNode["spaceIdentifier"].asString(); + if(!sprintNode["scope"].isNull()) + sprint_.scope = sprintNode["scope"].asString(); + if(!sprintNode["status"].isNull()) + sprint_.status = sprintNode["status"].asString(); + auto allOwners = sprintNode["owners"]["owners"]; + for (auto value : allOwners) + sprint_.owners.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetSprintInfoResult::getRequestId()const +{ + return requestId_; +} + +GetSprintInfoResult::Sprint GetSprintInfoResult::getSprint()const +{ + return sprint_; +} + +std::string GetSprintInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSprintInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetSprintInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetTestResultListRequest.cc b/devops/src/model/GetTestResultListRequest.cc new file mode 100644 index 000000000..1786c71e1 --- /dev/null +++ b/devops/src/model/GetTestResultListRequest.cc @@ -0,0 +1,56 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetTestResultListRequest; + +GetTestResultListRequest::GetTestResultListRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/testhub/testplan/[testPlanIdentifier]/testresults"}; + setMethod(HttpRequest::Method::Post); +} + +GetTestResultListRequest::~GetTestResultListRequest() {} + +GetTestResultListRequest::body GetTestResultListRequest::getBody() const { + return body_; +} + +void GetTestResultListRequest::setBody(const GetTestResultListRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".conditions", body.conditions); + setBodyParameter(std::string("body") + ".directoryIdentifier", body.directoryIdentifier); +} + +std::string GetTestResultListRequest::getOrganizationId() const { + return organizationId_; +} + +void GetTestResultListRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetTestResultListRequest::getTestPlanIdentifier() const { + return testPlanIdentifier_; +} + +void GetTestResultListRequest::setTestPlanIdentifier(const std::string &testPlanIdentifier) { + testPlanIdentifier_ = testPlanIdentifier; + setParameter(std::string("testPlanIdentifier"), testPlanIdentifier); +} + diff --git a/devops/src/model/GetTestResultListResult.cc b/devops/src/model/GetTestResultListResult.cc new file mode 100644 index 000000000..2d6532f8b --- /dev/null +++ b/devops/src/model/GetTestResultListResult.cc @@ -0,0 +1,125 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetTestResultListResult::GetTestResultListResult() : + ServiceResult() +{} + +GetTestResultListResult::GetTestResultListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTestResultListResult::~GetTestResultListResult() +{} + +void GetTestResultListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alltestResultNode = value["testResult"]["TestcaseTestResultSummary"]; + for (auto valuetestResultTestcaseTestResultSummary : alltestResultNode) + { + TestcaseTestResultSummary testResultObject; + if(!valuetestResultTestcaseTestResultSummary["testResultIdentifier"].isNull()) + testResultObject.testResultIdentifier = valuetestResultTestcaseTestResultSummary["testResultIdentifier"].asString(); + if(!valuetestResultTestcaseTestResultSummary["testResultStatus"].isNull()) + testResultObject.testResultStatus = valuetestResultTestcaseTestResultSummary["testResultStatus"].asString(); + if(!valuetestResultTestcaseTestResultSummary["testResultGmtCreate"].isNull()) + testResultObject.testResultGmtCreate = std::stol(valuetestResultTestcaseTestResultSummary["testResultGmtCreate"].asString()); + if(!valuetestResultTestcaseTestResultSummary["testcaseIdentifier"].isNull()) + testResultObject.testcaseIdentifier = valuetestResultTestcaseTestResultSummary["testcaseIdentifier"].asString(); + if(!valuetestResultTestcaseTestResultSummary["bugCount"].isNull()) + testResultObject.bugCount = std::stol(valuetestResultTestcaseTestResultSummary["bugCount"].asString()); + if(!valuetestResultTestcaseTestResultSummary["subject"].isNull()) + testResultObject.subject = valuetestResultTestcaseTestResultSummary["subject"].asString(); + if(!valuetestResultTestcaseTestResultSummary["spaceIdentifier"].isNull()) + testResultObject.spaceIdentifier = valuetestResultTestcaseTestResultSummary["spaceIdentifier"].asString(); + if(!valuetestResultTestcaseTestResultSummary["categoryIdentifier"].isNull()) + testResultObject.categoryIdentifier = valuetestResultTestcaseTestResultSummary["categoryIdentifier"].asString(); + if(!valuetestResultTestcaseTestResultSummary["gmtCreate"].isNull()) + testResultObject.gmtCreate = std::stol(valuetestResultTestcaseTestResultSummary["gmtCreate"].asString()); + auto allcustomFieldsNode = valuetestResultTestcaseTestResultSummary["customFields"]["FieldValueVO"]; + for (auto valuetestResultTestcaseTestResultSummarycustomFieldsFieldValueVO : allcustomFieldsNode) + { + TestcaseTestResultSummary::FieldValueVO customFieldsObject; + if(!valuetestResultTestcaseTestResultSummarycustomFieldsFieldValueVO["fieldIdentifier"].isNull()) + customFieldsObject.fieldIdentifier = valuetestResultTestcaseTestResultSummarycustomFieldsFieldValueVO["fieldIdentifier"].asString(); + if(!valuetestResultTestcaseTestResultSummarycustomFieldsFieldValueVO["value"].isNull()) + customFieldsObject.value = valuetestResultTestcaseTestResultSummarycustomFieldsFieldValueVO["value"].asString(); + if(!valuetestResultTestcaseTestResultSummarycustomFieldsFieldValueVO["fieldFormat"].isNull()) + customFieldsObject.fieldFormat = valuetestResultTestcaseTestResultSummarycustomFieldsFieldValueVO["fieldFormat"].asString(); + if(!valuetestResultTestcaseTestResultSummarycustomFieldsFieldValueVO["fieldClassName"].isNull()) + customFieldsObject.fieldClassName = valuetestResultTestcaseTestResultSummarycustomFieldsFieldValueVO["fieldClassName"].asString(); + testResultObject.customFields.push_back(customFieldsObject); + } + auto testResultExecutorNode = value["testResultExecutor"]; + if(!testResultExecutorNode["executorIdentifier"].isNull()) + testResultObject.testResultExecutor.executorIdentifier = testResultExecutorNode["executorIdentifier"].asString(); + if(!testResultExecutorNode["name"].isNull()) + testResultObject.testResultExecutor.name = testResultExecutorNode["name"].asString(); + auto assignedToNode = value["assignedTo"]; + if(!assignedToNode["assignedToIdenttifier"].isNull()) + testResultObject.assignedTo.assignedToIdenttifier = assignedToNode["assignedToIdenttifier"].asString(); + if(!assignedToNode["name"].isNull()) + testResultObject.assignedTo.name = assignedToNode["name"].asString(); + testResult_.push_back(testResultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetTestResultListResult::getRequestId()const +{ + return requestId_; +} + +std::string GetTestResultListResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string GetTestResultListResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector GetTestResultListResult::gettestResult()const +{ + return testResult_; +} + +bool GetTestResultListResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetTestcaseListRequest.cc b/devops/src/model/GetTestcaseListRequest.cc new file mode 100644 index 000000000..d11cee8f2 --- /dev/null +++ b/devops/src/model/GetTestcaseListRequest.cc @@ -0,0 +1,50 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetTestcaseListRequest; + +GetTestcaseListRequest::GetTestcaseListRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/testhub/testcases"}; + setMethod(HttpRequest::Method::Post); +} + +GetTestcaseListRequest::~GetTestcaseListRequest() {} + +GetTestcaseListRequest::body GetTestcaseListRequest::getBody() const { + return body_; +} + +void GetTestcaseListRequest::setBody(const GetTestcaseListRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".nextToken", body.nextToken); + setBodyParameter(std::string("body") + ".spaceIdentifier", body.spaceIdentifier); + setBodyParameter(std::string("body") + ".conditions", body.conditions); + setBodyParameter(std::string("body") + ".directoryIdentifier", body.directoryIdentifier); + setBodyParameter(std::string("body") + ".maxResult", body.maxResult); +} + +std::string GetTestcaseListRequest::getOrganizationId() const { + return organizationId_; +} + +void GetTestcaseListRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/GetTestcaseListResult.cc b/devops/src/model/GetTestcaseListResult.cc new file mode 100644 index 000000000..2289c31e5 --- /dev/null +++ b/devops/src/model/GetTestcaseListResult.cc @@ -0,0 +1,146 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetTestcaseListResult::GetTestcaseListResult() : + ServiceResult() +{} + +GetTestcaseListResult::GetTestcaseListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTestcaseListResult::~GetTestcaseListResult() +{} + +void GetTestcaseListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alltestcaseNode = value["testcase"]["workitem"]; + for (auto valuetestcaseworkitem : alltestcaseNode) + { + Workitem testcaseObject; + if(!valuetestcaseworkitem["identifier"].isNull()) + testcaseObject.identifier = valuetestcaseworkitem["identifier"].asString(); + if(!valuetestcaseworkitem["subject"].isNull()) + testcaseObject.subject = valuetestcaseworkitem["subject"].asString(); + if(!valuetestcaseworkitem["categoryIdentifier"].isNull()) + testcaseObject.categoryIdentifier = valuetestcaseworkitem["categoryIdentifier"].asString(); + if(!valuetestcaseworkitem["gmtCreate"].isNull()) + testcaseObject.gmtCreate = std::stol(valuetestcaseworkitem["gmtCreate"].asString()); + auto allcustomFieldsNode = valuetestcaseworkitem["customFields"]["customFieldsItem"]; + for (auto valuetestcaseworkitemcustomFieldscustomFieldsItem : allcustomFieldsNode) + { + Workitem::CustomFieldsItem customFieldsObject; + if(!valuetestcaseworkitemcustomFieldscustomFieldsItem["fieldIdentifier"].isNull()) + customFieldsObject.fieldIdentifier = valuetestcaseworkitemcustomFieldscustomFieldsItem["fieldIdentifier"].asString(); + if(!valuetestcaseworkitemcustomFieldscustomFieldsItem["value"].isNull()) + customFieldsObject.value = valuetestcaseworkitemcustomFieldscustomFieldsItem["value"].asString(); + if(!valuetestcaseworkitemcustomFieldscustomFieldsItem["fieldFormat"].isNull()) + customFieldsObject.fieldFormat = valuetestcaseworkitemcustomFieldscustomFieldsItem["fieldFormat"].asString(); + if(!valuetestcaseworkitemcustomFieldscustomFieldsItem["fieldClassName"].isNull()) + customFieldsObject.fieldClassName = valuetestcaseworkitemcustomFieldscustomFieldsItem["fieldClassName"].asString(); + testcaseObject.customFields.push_back(customFieldsObject); + } + auto alltagsNode = valuetestcaseworkitem["tags"]["tag"]; + for (auto valuetestcaseworkitemtagstag : alltagsNode) + { + Workitem::Tag tagsObject; + if(!valuetestcaseworkitemtagstag["tagIdentifier"].isNull()) + tagsObject.tagIdentifier = valuetestcaseworkitemtagstag["tagIdentifier"].asString(); + if(!valuetestcaseworkitemtagstag["name"].isNull()) + tagsObject.name = valuetestcaseworkitemtagstag["name"].asString(); + testcaseObject.tags.push_back(tagsObject); + } + auto assignedToNode = value["assignedTo"]; + if(!assignedToNode["assignedToIdenttifier"].isNull()) + testcaseObject.assignedTo.assignedToIdenttifier = assignedToNode["assignedToIdenttifier"].asString(); + if(!assignedToNode["name"].isNull()) + testcaseObject.assignedTo.name = assignedToNode["name"].asString(); + auto spaceNode = value["space"]; + if(!spaceNode["spaceIdentifier"].isNull()) + testcaseObject.space.spaceIdentifier = spaceNode["spaceIdentifier"].asString(); + if(!spaceNode["type"].isNull()) + testcaseObject.space.type = spaceNode["type"].asString(); + testcase_.push_back(testcaseObject); + } + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + if(!value["maxResults"].isNull()) + maxResults_ = std::stol(value["maxResults"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +long GetTestcaseListResult::getTotalCount()const +{ + return totalCount_; +} + +std::string GetTestcaseListResult::getNextToken()const +{ + return nextToken_; +} + +std::string GetTestcaseListResult::getRequestId()const +{ + return requestId_; +} + +long GetTestcaseListResult::getMaxResults()const +{ + return maxResults_; +} + +std::string GetTestcaseListResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string GetTestcaseListResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector GetTestcaseListResult::gettestcase()const +{ + return testcase_; +} + +bool GetTestcaseListResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetUserInfoRequest.cc b/devops/src/model/GetUserInfoRequest.cc new file mode 100644 index 000000000..ec6556de9 --- /dev/null +++ b/devops/src/model/GetUserInfoRequest.cc @@ -0,0 +1,37 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetUserInfoRequest; + +GetUserInfoRequest::GetUserInfoRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/users/current"}; + setMethod(HttpRequest::Method::Get); +} + +GetUserInfoRequest::~GetUserInfoRequest() {} + +std::string GetUserInfoRequest::getOrganizationId() const { + return organizationId_; +} + +void GetUserInfoRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/GetUserInfoResult.cc b/devops/src/model/GetUserInfoResult.cc new file mode 100644 index 000000000..66ecb3f67 --- /dev/null +++ b/devops/src/model/GetUserInfoResult.cc @@ -0,0 +1,90 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetUserInfoResult::GetUserInfoResult() : + ServiceResult() +{} + +GetUserInfoResult::GetUserInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserInfoResult::~GetUserInfoResult() +{} + +void GetUserInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["username"].isNull()) + result_.username = resultNode["username"].asString(); + if(!resultNode["email"].isNull()) + result_.email = resultNode["email"].asString(); + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + if(!resultNode["externUid"].isNull()) + result_.externUid = resultNode["externUid"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetUserInfoResult::getRequestId()const +{ + return requestId_; +} + +std::string GetUserInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetUserInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetUserInfoResult::getSuccess()const +{ + return success_; +} + +GetUserInfoResult::Result GetUserInfoResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/GetVMDeployOrderRequest.cc b/devops/src/model/GetVMDeployOrderRequest.cc new file mode 100644 index 000000000..a0b591363 --- /dev/null +++ b/devops/src/model/GetVMDeployOrderRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetVMDeployOrderRequest; + +GetVMDeployOrderRequest::GetVMDeployOrderRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/deploy/[deployOrderId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetVMDeployOrderRequest::~GetVMDeployOrderRequest() {} + +long GetVMDeployOrderRequest::getPipelineId() const { + return pipelineId_; +} + +void GetVMDeployOrderRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string GetVMDeployOrderRequest::getOrganizationId() const { + return organizationId_; +} + +void GetVMDeployOrderRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetVMDeployOrderRequest::getDeployOrderId() const { + return deployOrderId_; +} + +void GetVMDeployOrderRequest::setDeployOrderId(long deployOrderId) { + deployOrderId_ = deployOrderId; + setParameter(std::string("deployOrderId"), std::to_string(deployOrderId)); +} + diff --git a/devops/src/model/GetVMDeployOrderResult.cc b/devops/src/model/GetVMDeployOrderResult.cc new file mode 100644 index 000000000..cf9560bf4 --- /dev/null +++ b/devops/src/model/GetVMDeployOrderResult.cc @@ -0,0 +1,143 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetVMDeployOrderResult::GetVMDeployOrderResult() : + ServiceResult() +{} + +GetVMDeployOrderResult::GetVMDeployOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVMDeployOrderResult::~GetVMDeployOrderResult() +{} + +void GetVMDeployOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto deployOrderNode = value["deployOrder"]; + if(!deployOrderNode["deployOrderId"].isNull()) + deployOrder_.deployOrderId = deployOrderNode["deployOrderId"].asString(); + if(!deployOrderNode["createTime"].isNull()) + deployOrder_.createTime = std::stol(deployOrderNode["createTime"].asString()); + if(!deployOrderNode["updateTime"].isNull()) + deployOrder_.updateTime = std::stol(deployOrderNode["updateTime"].asString()); + if(!deployOrderNode["creator"].isNull()) + deployOrder_.creator = deployOrderNode["creator"].asString(); + if(!deployOrderNode["currentBatch"].isNull()) + deployOrder_.currentBatch = std::stoi(deployOrderNode["currentBatch"].asString()); + if(!deployOrderNode["totalBatch"].isNull()) + deployOrder_.totalBatch = std::stoi(deployOrderNode["totalBatch"].asString()); + if(!deployOrderNode["status"].isNull()) + deployOrder_.status = deployOrderNode["status"].asString(); + if(!deployOrderNode["exceptionCode"].isNull()) + deployOrder_.exceptionCode = deployOrderNode["exceptionCode"].asString(); + auto allactionsNode = deployOrderNode["actions"]["action"]; + for (auto deployOrderNodeactionsaction : allactionsNode) + { + DeployOrder::Action actionObject; + if(!deployOrderNodeactionsaction["type"].isNull()) + actionObject.type = deployOrderNodeactionsaction["type"].asString(); + if(!deployOrderNodeactionsaction["disable"].isNull()) + actionObject.disable = deployOrderNodeactionsaction["disable"].asString() == "true"; + if(!deployOrderNodeactionsaction["params"].isNull()) + actionObject.params = deployOrderNodeactionsaction["params"].asString(); + deployOrder_.actions.push_back(actionObject); + } + auto deployMachineInfoNode = deployOrderNode["deployMachineInfo"]; + if(!deployMachineInfoNode["hostGroupId"].isNull()) + deployOrder_.deployMachineInfo.hostGroupId = std::stol(deployMachineInfoNode["hostGroupId"].asString()); + if(!deployMachineInfoNode["batchNum"].isNull()) + deployOrder_.deployMachineInfo.batchNum = std::stoi(deployMachineInfoNode["batchNum"].asString()); + auto alldeployMachinesNode = deployMachineInfoNode["deployMachines"]["deployMachine"]; + for (auto deployMachineInfoNodedeployMachinesdeployMachine : alldeployMachinesNode) + { + DeployOrder::DeployMachineInfo::DeployMachine deployMachineObject; + if(!deployMachineInfoNodedeployMachinesdeployMachine["createTime"].isNull()) + deployMachineObject.createTime = std::stol(deployMachineInfoNodedeployMachinesdeployMachine["createTime"].asString()); + if(!deployMachineInfoNodedeployMachinesdeployMachine["updateTime"].isNull()) + deployMachineObject.updateTime = std::stol(deployMachineInfoNodedeployMachinesdeployMachine["updateTime"].asString()); + if(!deployMachineInfoNodedeployMachinesdeployMachine["status"].isNull()) + deployMachineObject.status = deployMachineInfoNodedeployMachinesdeployMachine["status"].asString(); + if(!deployMachineInfoNodedeployMachinesdeployMachine["machineSn"].isNull()) + deployMachineObject.machineSn = deployMachineInfoNodedeployMachinesdeployMachine["machineSn"].asString(); + if(!deployMachineInfoNodedeployMachinesdeployMachine["clientStatus"].isNull()) + deployMachineObject.clientStatus = deployMachineInfoNodedeployMachinesdeployMachine["clientStatus"].asString(); + if(!deployMachineInfoNodedeployMachinesdeployMachine["ip"].isNull()) + deployMachineObject.ip = deployMachineInfoNodedeployMachinesdeployMachine["ip"].asString(); + if(!deployMachineInfoNodedeployMachinesdeployMachine["batchNum"].isNull()) + deployMachineObject.batchNum = std::stoi(deployMachineInfoNodedeployMachinesdeployMachine["batchNum"].asString()); + auto allactions1Node = deployMachineInfoNodedeployMachinesdeployMachine["actions"]["action"]; + for (auto deployMachineInfoNodedeployMachinesdeployMachineactionsaction : allactions1Node) + { + DeployOrder::DeployMachineInfo::DeployMachine::Action2 actions1Object; + if(!deployMachineInfoNodedeployMachinesdeployMachineactionsaction["type"].isNull()) + actions1Object.type = deployMachineInfoNodedeployMachinesdeployMachineactionsaction["type"].asString(); + if(!deployMachineInfoNodedeployMachinesdeployMachineactionsaction["disable"].isNull()) + actions1Object.disable = deployMachineInfoNodedeployMachinesdeployMachineactionsaction["disable"].asString() == "true"; + if(!deployMachineInfoNodedeployMachinesdeployMachineactionsaction["params"].isNull()) + actions1Object.params = deployMachineInfoNodedeployMachinesdeployMachineactionsaction["params"].asString(); + deployMachineObject.actions1.push_back(actions1Object); + } + deployOrder_.deployMachineInfo.deployMachines.push_back(deployMachineObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +GetVMDeployOrderResult::DeployOrder GetVMDeployOrderResult::getDeployOrder()const +{ + return deployOrder_; +} + +std::string GetVMDeployOrderResult::getRequestId()const +{ + return requestId_; +} + +std::string GetVMDeployOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetVMDeployOrderResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetVMDeployOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetVariableGroupRequest.cc b/devops/src/model/GetVariableGroupRequest.cc new file mode 100644 index 000000000..262caf2db --- /dev/null +++ b/devops/src/model/GetVariableGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetVariableGroupRequest; + +GetVariableGroupRequest::GetVariableGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/variableGroups/[id]"}; + setMethod(HttpRequest::Method::Get); +} + +GetVariableGroupRequest::~GetVariableGroupRequest() {} + +std::string GetVariableGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void GetVariableGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long GetVariableGroupRequest::getId() const { + return id_; +} + +void GetVariableGroupRequest::setId(long id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/devops/src/model/GetVariableGroupResult.cc b/devops/src/model/GetVariableGroupResult.cc new file mode 100644 index 000000000..a8a586677 --- /dev/null +++ b/devops/src/model/GetVariableGroupResult.cc @@ -0,0 +1,114 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetVariableGroupResult::GetVariableGroupResult() : + ServiceResult() +{} + +GetVariableGroupResult::GetVariableGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVariableGroupResult::~GetVariableGroupResult() +{} + +void GetVariableGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto variableGroupNode = value["variableGroup"]; + if(!variableGroupNode["ccreatorAccountId"].isNull()) + variableGroup_.ccreatorAccountId = variableGroupNode["ccreatorAccountId"].asString(); + if(!variableGroupNode["description"].isNull()) + variableGroup_.description = variableGroupNode["description"].asString(); + if(!variableGroupNode["updateTime"].isNull()) + variableGroup_.updateTime = std::stol(variableGroupNode["updateTime"].asString()); + if(!variableGroupNode["id"].isNull()) + variableGroup_.id = std::stol(variableGroupNode["id"].asString()); + if(!variableGroupNode["modifierAccountId"].isNull()) + variableGroup_.modifierAccountId = variableGroupNode["modifierAccountId"].asString(); + if(!variableGroupNode["name"].isNull()) + variableGroup_.name = variableGroupNode["name"].asString(); + if(!variableGroupNode["createTime"].isNull()) + variableGroup_.createTime = std::stol(variableGroupNode["createTime"].asString()); + auto allrelatedPipelinesNode = variableGroupNode["relatedPipelines"]["RelatedPipeline"]; + for (auto variableGroupNoderelatedPipelinesRelatedPipeline : allrelatedPipelinesNode) + { + VariableGroup::RelatedPipeline relatedPipelineObject; + if(!variableGroupNoderelatedPipelinesRelatedPipeline["id"].isNull()) + relatedPipelineObject.id = std::stol(variableGroupNoderelatedPipelinesRelatedPipeline["id"].asString()); + if(!variableGroupNoderelatedPipelinesRelatedPipeline["name"].isNull()) + relatedPipelineObject.name = variableGroupNoderelatedPipelinesRelatedPipeline["name"].asString(); + variableGroup_.relatedPipelines.push_back(relatedPipelineObject); + } + auto allvariablesNode = variableGroupNode["variables"]["Variable"]; + for (auto variableGroupNodevariablesVariable : allvariablesNode) + { + VariableGroup::Variable variableObject; + if(!variableGroupNodevariablesVariable["value"].isNull()) + variableObject.value = variableGroupNodevariablesVariable["value"].asString(); + if(!variableGroupNodevariablesVariable["name"].isNull()) + variableObject.name = variableGroupNodevariablesVariable["name"].asString(); + if(!variableGroupNodevariablesVariable["isEncrypted"].isNull()) + variableObject.isEncrypted = variableGroupNodevariablesVariable["isEncrypted"].asString() == "true"; + variableGroup_.variables.push_back(variableObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetVariableGroupResult::getRequestId()const +{ + return requestId_; +} + +GetVariableGroupResult::VariableGroup GetVariableGroupResult::getVariableGroup()const +{ + return variableGroup_; +} + +std::string GetVariableGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetVariableGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetVariableGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetWorkItemActivityRequest.cc b/devops/src/model/GetWorkItemActivityRequest.cc new file mode 100644 index 000000000..40fc6eb8c --- /dev/null +++ b/devops/src/model/GetWorkItemActivityRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetWorkItemActivityRequest; + +GetWorkItemActivityRequest::GetWorkItemActivityRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/[workitemId]/getActivity"}; + setMethod(HttpRequest::Method::Get); +} + +GetWorkItemActivityRequest::~GetWorkItemActivityRequest() {} + +std::string GetWorkItemActivityRequest::getOrganizationId() const { + return organizationId_; +} + +void GetWorkItemActivityRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetWorkItemActivityRequest::getWorkitemId() const { + return workitemId_; +} + +void GetWorkItemActivityRequest::setWorkitemId(const std::string &workitemId) { + workitemId_ = workitemId; + setParameter(std::string("workitemId"), workitemId); +} + diff --git a/devops/src/model/GetWorkItemActivityResult.cc b/devops/src/model/GetWorkItemActivityResult.cc new file mode 100644 index 000000000..c1efc88e4 --- /dev/null +++ b/devops/src/model/GetWorkItemActivityResult.cc @@ -0,0 +1,130 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetWorkItemActivityResult::GetWorkItemActivityResult() : + ServiceResult() +{} + +GetWorkItemActivityResult::GetWorkItemActivityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkItemActivityResult::~GetWorkItemActivityResult() +{} + +void GetWorkItemActivityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allactivitiesNode = value["activities"]["activity"]; + for (auto valueactivitiesactivity : allactivitiesNode) + { + Activity activitiesObject; + if(!valueactivitiesactivity["eventType"].isNull()) + activitiesObject.eventType = valueactivitiesactivity["eventType"].asString(); + if(!valueactivitiesactivity["actionType"].isNull()) + activitiesObject.actionType = valueactivitiesactivity["actionType"].asString(); + if(!valueactivitiesactivity["eventTime"].isNull()) + activitiesObject.eventTime = std::stol(valueactivitiesactivity["eventTime"].asString()); + if(!valueactivitiesactivity["resourceIdentifier"].isNull()) + activitiesObject.resourceIdentifier = valueactivitiesactivity["resourceIdentifier"].asString(); + if(!valueactivitiesactivity["operator"].isNull()) + activitiesObject._operator = valueactivitiesactivity["operator"].asString(); + if(!valueactivitiesactivity["eventId"].isNull()) + activitiesObject.eventId = std::stol(valueactivitiesactivity["eventId"].asString()); + if(!valueactivitiesactivity["parentEventId"].isNull()) + activitiesObject.parentEventId = std::stol(valueactivitiesactivity["parentEventId"].asString()); + auto alloldValueNode = valueactivitiesactivity["oldValue"]["oldValueItem"]; + for (auto valueactivitiesactivityoldValueoldValueItem : alloldValueNode) + { + Activity::OldValueItem oldValueObject; + if(!valueactivitiesactivityoldValueoldValueItem["resourceType"].isNull()) + oldValueObject.resourceType = valueactivitiesactivityoldValueoldValueItem["resourceType"].asString(); + if(!valueactivitiesactivityoldValueoldValueItem["plainValue"].isNull()) + oldValueObject.plainValue = valueactivitiesactivityoldValueoldValueItem["plainValue"].asString(); + if(!valueactivitiesactivityoldValueoldValueItem["displayValue"].isNull()) + oldValueObject.displayValue = valueactivitiesactivityoldValueoldValueItem["displayValue"].asString(); + activitiesObject.oldValue.push_back(oldValueObject); + } + auto allnewValueNode = valueactivitiesactivity["newValue"]["newValueItem"]; + for (auto valueactivitiesactivitynewValuenewValueItem : allnewValueNode) + { + Activity::NewValueItem newValueObject; + if(!valueactivitiesactivitynewValuenewValueItem["resourceType"].isNull()) + newValueObject.resourceType = valueactivitiesactivitynewValuenewValueItem["resourceType"].asString(); + if(!valueactivitiesactivitynewValuenewValueItem["plainValue"].isNull()) + newValueObject.plainValue = valueactivitiesactivitynewValuenewValueItem["plainValue"].asString(); + if(!valueactivitiesactivitynewValuenewValueItem["displayValue"].isNull()) + newValueObject.displayValue = valueactivitiesactivitynewValuenewValueItem["displayValue"].asString(); + activitiesObject.newValue.push_back(newValueObject); + } + auto propertyNode = value["property"]; + if(!propertyNode["propertyName"].isNull()) + activitiesObject.property.propertyName = propertyNode["propertyName"].asString(); + if(!propertyNode["propertyType"].isNull()) + activitiesObject.property.propertyType = propertyNode["propertyType"].asString(); + if(!propertyNode["propertyIdentifier"].isNull()) + activitiesObject.property.propertyIdentifier = propertyNode["propertyIdentifier"].asString(); + if(!propertyNode["displayName"].isNull()) + activitiesObject.property.displayName = propertyNode["displayName"].asString(); + activities_.push_back(activitiesObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetWorkItemActivityResult::getRequestId()const +{ + return requestId_; +} + +std::vector GetWorkItemActivityResult::getactivities()const +{ + return activities_; +} + +std::string GetWorkItemActivityResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string GetWorkItemActivityResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetWorkItemActivityResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetWorkItemInfoRequest.cc b/devops/src/model/GetWorkItemInfoRequest.cc new file mode 100644 index 000000000..5c8130c5f --- /dev/null +++ b/devops/src/model/GetWorkItemInfoRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetWorkItemInfoRequest; + +GetWorkItemInfoRequest::GetWorkItemInfoRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/[workitemId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetWorkItemInfoRequest::~GetWorkItemInfoRequest() {} + +std::string GetWorkItemInfoRequest::getOrganizationId() const { + return organizationId_; +} + +void GetWorkItemInfoRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetWorkItemInfoRequest::getWorkitemId() const { + return workitemId_; +} + +void GetWorkItemInfoRequest::setWorkitemId(const std::string &workitemId) { + workitemId_ = workitemId; + setParameter(std::string("workitemId"), workitemId); +} + diff --git a/devops/src/model/GetWorkItemInfoResult.cc b/devops/src/model/GetWorkItemInfoResult.cc new file mode 100644 index 000000000..534c39ec8 --- /dev/null +++ b/devops/src/model/GetWorkItemInfoResult.cc @@ -0,0 +1,185 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetWorkItemInfoResult::GetWorkItemInfoResult() : + ServiceResult() +{} + +GetWorkItemInfoResult::GetWorkItemInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkItemInfoResult::~GetWorkItemInfoResult() +{} + +void GetWorkItemInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workitemNode = value["workitem"]; + if(!workitemNode["identifier"].isNull()) + workitem_.identifier = workitemNode["identifier"].asString(); + if(!workitemNode["subject"].isNull()) + workitem_.subject = workitemNode["subject"].asString(); + if(!workitemNode["document"].isNull()) + workitem_.document = workitemNode["document"].asString(); + if(!workitemNode["assignedTo"].isNull()) + workitem_.assignedTo = workitemNode["assignedTo"].asString(); + if(!workitemNode["status"].isNull()) + workitem_.status = workitemNode["status"].asString(); + if(!workitemNode["statusStageIdentifier"].isNull()) + workitem_.statusStageIdentifier = workitemNode["statusStageIdentifier"].asString(); + if(!workitemNode["spaceIdentifier"].isNull()) + workitem_.spaceIdentifier = workitemNode["spaceIdentifier"].asString(); + if(!workitemNode["spaceName"].isNull()) + workitem_.spaceName = workitemNode["spaceName"].asString(); + if(!workitemNode["spaceType"].isNull()) + workitem_.spaceType = workitemNode["spaceType"].asString(); + if(!workitemNode["logicalStatus"].isNull()) + workitem_.logicalStatus = workitemNode["logicalStatus"].asString(); + if(!workitemNode["categoryIdentifier"].isNull()) + workitem_.categoryIdentifier = workitemNode["categoryIdentifier"].asString(); + if(!workitemNode["parentIdentifier"].isNull()) + workitem_.parentIdentifier = workitemNode["parentIdentifier"].asString(); + if(!workitemNode["workitemTypeIdentifier"].isNull()) + workitem_.workitemTypeIdentifier = workitemNode["workitemTypeIdentifier"].asString(); + if(!workitemNode["updateStatusAt"].isNull()) + workitem_.updateStatusAt = std::stol(workitemNode["updateStatusAt"].asString()); + if(!workitemNode["serialNumber"].isNull()) + workitem_.serialNumber = workitemNode["serialNumber"].asString(); + if(!workitemNode["gmtCreate"].isNull()) + workitem_.gmtCreate = std::stol(workitemNode["gmtCreate"].asString()); + if(!workitemNode["gmtModified"].isNull()) + workitem_.gmtModified = std::stol(workitemNode["gmtModified"].asString()); + if(!workitemNode["creator"].isNull()) + workitem_.creator = workitemNode["creator"].asString(); + if(!workitemNode["modifier"].isNull()) + workitem_.modifier = workitemNode["modifier"].asString(); + if(!workitemNode["statusIdentifier"].isNull()) + workitem_.statusIdentifier = workitemNode["statusIdentifier"].asString(); + if(!workitemNode["finishTime"].isNull()) + workitem_.finishTime = std::stol(workitemNode["finishTime"].asString()); + auto allcustomFieldsNode = workitemNode["customFields"]["customField"]; + for (auto workitemNodecustomFieldscustomField : allcustomFieldsNode) + { + Workitem::CustomField customFieldObject; + if(!workitemNodecustomFieldscustomField["fieldIdentifier"].isNull()) + customFieldObject.fieldIdentifier = workitemNodecustomFieldscustomField["fieldIdentifier"].asString(); + if(!workitemNodecustomFieldscustomField["fieldFormat"].isNull()) + customFieldObject.fieldFormat = workitemNodecustomFieldscustomField["fieldFormat"].asString(); + if(!workitemNodecustomFieldscustomField["fieldClassName"].isNull()) + customFieldObject.fieldClassName = workitemNodecustomFieldscustomField["fieldClassName"].asString(); + if(!workitemNodecustomFieldscustomField["objectValue"].isNull()) + customFieldObject.objectValue = workitemNodecustomFieldscustomField["objectValue"].asString(); + if(!workitemNodecustomFieldscustomField["value"].isNull()) + customFieldObject.value = workitemNodecustomFieldscustomField["value"].asString(); + if(!workitemNodecustomFieldscustomField["workitemIdentifier"].isNull()) + customFieldObject.workitemIdentifier = workitemNodecustomFieldscustomField["workitemIdentifier"].asString(); + if(!workitemNodecustomFieldscustomField["position"].isNull()) + customFieldObject.position = std::stol(workitemNodecustomFieldscustomField["position"].asString()); + if(!workitemNodecustomFieldscustomField["level"].isNull()) + customFieldObject.level = std::stol(workitemNodecustomFieldscustomField["level"].asString()); + auto allvalueListNode = workitemNodecustomFieldscustomField["valueList"]["Value"]; + for (auto workitemNodecustomFieldscustomFieldvalueListValue : allvalueListNode) + { + Workitem::CustomField::Value valueListObject; + if(!workitemNodecustomFieldscustomFieldvalueListValue["value"].isNull()) + valueListObject.value = workitemNodecustomFieldscustomFieldvalueListValue["value"].asString(); + if(!workitemNodecustomFieldscustomFieldvalueListValue["valueEn"].isNull()) + valueListObject.valueEn = workitemNodecustomFieldscustomFieldvalueListValue["valueEn"].asString(); + if(!workitemNodecustomFieldscustomFieldvalueListValue["displayValue"].isNull()) + valueListObject.displayValue = workitemNodecustomFieldscustomFieldvalueListValue["displayValue"].asString(); + if(!workitemNodecustomFieldscustomFieldvalueListValue["identifier"].isNull()) + valueListObject.identifier = workitemNodecustomFieldscustomFieldvalueListValue["identifier"].asString(); + if(!workitemNodecustomFieldscustomFieldvalueListValue["level"].isNull()) + valueListObject.level = std::stol(workitemNodecustomFieldscustomFieldvalueListValue["level"].asString()); + customFieldObject.valueList.push_back(valueListObject); + } + workitem_.customFields.push_back(customFieldObject); + } + auto alltagDetailsNode = workitemNode["tagDetails"]["tagDetailsItem"]; + for (auto workitemNodetagDetailstagDetailsItem : alltagDetailsNode) + { + Workitem::TagDetailsItem tagDetailsItemObject; + if(!workitemNodetagDetailstagDetailsItem["identifier"].isNull()) + tagDetailsItemObject.identifier = workitemNodetagDetailstagDetailsItem["identifier"].asString(); + if(!workitemNodetagDetailstagDetailsItem["name"].isNull()) + tagDetailsItemObject.name = workitemNodetagDetailstagDetailsItem["name"].asString(); + if(!workitemNodetagDetailstagDetailsItem["color"].isNull()) + tagDetailsItemObject.color = workitemNodetagDetailstagDetailsItem["color"].asString(); + workitem_.tagDetails.push_back(tagDetailsItemObject); + } + auto allSprint = workitemNode["sprint"]["sprint"]; + for (auto value : allSprint) + workitem_.sprint.push_back(value.asString()); + auto allTag = workitemNode["tag"]["tag"]; + for (auto value : allTag) + workitem_.tag.push_back(value.asString()); + auto allParticipant = workitemNode["participant"]["participant"]; + for (auto value : allParticipant) + workitem_.participant.push_back(value.asString()); + auto allTracker = workitemNode["tracker"]["tracker"]; + for (auto value : allTracker) + workitem_.tracker.push_back(value.asString()); + auto allVerifier = workitemNode["verifier"]["verifier"]; + for (auto value : allVerifier) + workitem_.verifier.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +GetWorkItemInfoResult::Workitem GetWorkItemInfoResult::getWorkitem()const +{ + return workitem_; +} + +std::string GetWorkItemInfoResult::getRequestId()const +{ + return requestId_; +} + +std::string GetWorkItemInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetWorkItemInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetWorkItemInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetWorkItemWorkFlowInfoRequest.cc b/devops/src/model/GetWorkItemWorkFlowInfoRequest.cc new file mode 100644 index 000000000..729b7e75e --- /dev/null +++ b/devops/src/model/GetWorkItemWorkFlowInfoRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetWorkItemWorkFlowInfoRequest; + +GetWorkItemWorkFlowInfoRequest::GetWorkItemWorkFlowInfoRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/[workitemId]/getWorkflowInfo"}; + setMethod(HttpRequest::Method::Get); +} + +GetWorkItemWorkFlowInfoRequest::~GetWorkItemWorkFlowInfoRequest() {} + +std::string GetWorkItemWorkFlowInfoRequest::getOrganizationId() const { + return organizationId_; +} + +void GetWorkItemWorkFlowInfoRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetWorkItemWorkFlowInfoRequest::getWorkitemId() const { + return workitemId_; +} + +void GetWorkItemWorkFlowInfoRequest::setWorkitemId(const std::string &workitemId) { + workitemId_ = workitemId; + setParameter(std::string("workitemId"), workitemId); +} + +std::string GetWorkItemWorkFlowInfoRequest::getConfigurationId() const { + return configurationId_; +} + +void GetWorkItemWorkFlowInfoRequest::setConfigurationId(const std::string &configurationId) { + configurationId_ = configurationId; + setParameter(std::string("configurationId"), configurationId); +} + diff --git a/devops/src/model/GetWorkItemWorkFlowInfoResult.cc b/devops/src/model/GetWorkItemWorkFlowInfoResult.cc new file mode 100644 index 000000000..14ac29015 --- /dev/null +++ b/devops/src/model/GetWorkItemWorkFlowInfoResult.cc @@ -0,0 +1,148 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetWorkItemWorkFlowInfoResult::GetWorkItemWorkFlowInfoResult() : + ServiceResult() +{} + +GetWorkItemWorkFlowInfoResult::GetWorkItemWorkFlowInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkItemWorkFlowInfoResult::~GetWorkItemWorkFlowInfoResult() +{} + +void GetWorkItemWorkFlowInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workflowNode = value["workflow"]; + if(!workflowNode["identifier"].isNull()) + workflow_.identifier = workflowNode["identifier"].asString(); + if(!workflowNode["name"].isNull()) + workflow_.name = workflowNode["name"].asString(); + if(!workflowNode["description"].isNull()) + workflow_.description = workflowNode["description"].asString(); + if(!workflowNode["ownerSpaceIdentifier"].isNull()) + workflow_.ownerSpaceIdentifier = workflowNode["ownerSpaceIdentifier"].asString(); + if(!workflowNode["ownerSpaceType"].isNull()) + workflow_.ownerSpaceType = workflowNode["ownerSpaceType"].asString(); + if(!workflowNode["defaultStatusIdentifier"].isNull()) + workflow_.defaultStatusIdentifier = workflowNode["defaultStatusIdentifier"].asString(); + if(!workflowNode["statusOrder"].isNull()) + workflow_.statusOrder = workflowNode["statusOrder"].asString(); + if(!workflowNode["resourceType"].isNull()) + workflow_.resourceType = workflowNode["resourceType"].asString(); + if(!workflowNode["source"].isNull()) + workflow_.source = workflowNode["source"].asString(); + if(!workflowNode["gmtCreate"].isNull()) + workflow_.gmtCreate = std::stol(workflowNode["gmtCreate"].asString()); + if(!workflowNode["gmtModified"].isNull()) + workflow_.gmtModified = std::stol(workflowNode["gmtModified"].asString()); + if(!workflowNode["creator"].isNull()) + workflow_.creator = workflowNode["creator"].asString(); + if(!workflowNode["modifier"].isNull()) + workflow_.modifier = workflowNode["modifier"].asString(); + auto allworkflowActionsNode = workflowNode["workflowActions"]["workflowAction"]; + for (auto workflowNodeworkflowActionsworkflowAction : allworkflowActionsNode) + { + Workflow::WorkflowAction workflowActionObject; + if(!workflowNodeworkflowActionsworkflowAction["id"].isNull()) + workflowActionObject.id = std::stol(workflowNodeworkflowActionsworkflowAction["id"].asString()); + if(!workflowNodeworkflowActionsworkflowAction["name"].isNull()) + workflowActionObject.name = workflowNodeworkflowActionsworkflowAction["name"].asString(); + if(!workflowNodeworkflowActionsworkflowAction["workflowIdentifier"].isNull()) + workflowActionObject.workflowIdentifier = workflowNodeworkflowActionsworkflowAction["workflowIdentifier"].asString(); + if(!workflowNodeworkflowActionsworkflowAction["workflowStatusIdentifier"].isNull()) + workflowActionObject.workflowStatusIdentifier = workflowNodeworkflowActionsworkflowAction["workflowStatusIdentifier"].asString(); + if(!workflowNodeworkflowActionsworkflowAction["nextWorkflowStatusIdentifier"].isNull()) + workflowActionObject.nextWorkflowStatusIdentifier = workflowNodeworkflowActionsworkflowAction["nextWorkflowStatusIdentifier"].asString(); + workflow_.workflowActions.push_back(workflowActionObject); + } + auto allstatusesNode = workflowNode["statuses"]["statuse"]; + for (auto workflowNodestatusesstatuse : allstatusesNode) + { + Workflow::Statuse statuseObject; + if(!workflowNodestatusesstatuse["identifier"].isNull()) + statuseObject.identifier = workflowNodestatusesstatuse["identifier"].asString(); + if(!workflowNodestatusesstatuse["name"].isNull()) + statuseObject.name = workflowNodestatusesstatuse["name"].asString(); + if(!workflowNodestatusesstatuse["workflowStageName"].isNull()) + statuseObject.workflowStageName = workflowNodestatusesstatuse["workflowStageName"].asString(); + if(!workflowNodestatusesstatuse["workflowStageIdentifier"].isNull()) + statuseObject.workflowStageIdentifier = workflowNodestatusesstatuse["workflowStageIdentifier"].asString(); + if(!workflowNodestatusesstatuse["source"].isNull()) + statuseObject.source = workflowNodestatusesstatuse["source"].asString(); + if(!workflowNodestatusesstatuse["gmtCreate"].isNull()) + statuseObject.gmtCreate = std::stol(workflowNodestatusesstatuse["gmtCreate"].asString()); + if(!workflowNodestatusesstatuse["gmtModified"].isNull()) + statuseObject.gmtModified = std::stol(workflowNodestatusesstatuse["gmtModified"].asString()); + if(!workflowNodestatusesstatuse["creator"].isNull()) + statuseObject.creator = workflowNodestatusesstatuse["creator"].asString(); + if(!workflowNodestatusesstatuse["modifier"].isNull()) + statuseObject.modifier = workflowNodestatusesstatuse["modifier"].asString(); + if(!workflowNodestatusesstatuse["description"].isNull()) + statuseObject.description = workflowNodestatusesstatuse["description"].asString(); + if(!workflowNodestatusesstatuse["resourceType"].isNull()) + statuseObject.resourceType = workflowNodestatusesstatuse["resourceType"].asString(); + workflow_.statuses.push_back(statuseObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetWorkItemWorkFlowInfoResult::getRequestId()const +{ + return requestId_; +} + +GetWorkItemWorkFlowInfoResult::Workflow GetWorkItemWorkFlowInfoResult::getWorkflow()const +{ + return workflow_; +} + +std::string GetWorkItemWorkFlowInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetWorkItemWorkFlowInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetWorkItemWorkFlowInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetWorkitemAttachmentCreatemetaRequest.cc b/devops/src/model/GetWorkitemAttachmentCreatemetaRequest.cc new file mode 100644 index 000000000..2544f8b73 --- /dev/null +++ b/devops/src/model/GetWorkitemAttachmentCreatemetaRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetWorkitemAttachmentCreatemetaRequest; + +GetWorkitemAttachmentCreatemetaRequest::GetWorkitemAttachmentCreatemetaRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitem/[workitemIdentifier]/attachment/createmeta"}; + setMethod(HttpRequest::Method::Get); +} + +GetWorkitemAttachmentCreatemetaRequest::~GetWorkitemAttachmentCreatemetaRequest() {} + +std::string GetWorkitemAttachmentCreatemetaRequest::getOrganizationId() const { + return organizationId_; +} + +void GetWorkitemAttachmentCreatemetaRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetWorkitemAttachmentCreatemetaRequest::getFileName() const { + return fileName_; +} + +void GetWorkitemAttachmentCreatemetaRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("fileName"), fileName); +} + +std::string GetWorkitemAttachmentCreatemetaRequest::getWorkitemIdentifier() const { + return workitemIdentifier_; +} + +void GetWorkitemAttachmentCreatemetaRequest::setWorkitemIdentifier(const std::string &workitemIdentifier) { + workitemIdentifier_ = workitemIdentifier; + setParameter(std::string("workitemIdentifier"), workitemIdentifier); +} + diff --git a/devops/src/model/GetWorkitemAttachmentCreatemetaResult.cc b/devops/src/model/GetWorkitemAttachmentCreatemetaResult.cc new file mode 100644 index 000000000..394474164 --- /dev/null +++ b/devops/src/model/GetWorkitemAttachmentCreatemetaResult.cc @@ -0,0 +1,88 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetWorkitemAttachmentCreatemetaResult::GetWorkitemAttachmentCreatemetaResult() : + ServiceResult() +{} + +GetWorkitemAttachmentCreatemetaResult::GetWorkitemAttachmentCreatemetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkitemAttachmentCreatemetaResult::~GetWorkitemAttachmentCreatemetaResult() +{} + +void GetWorkitemAttachmentCreatemetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto uploadInfoNode = value["uploadInfo"]; + if(!uploadInfoNode["accessid"].isNull()) + uploadInfo_.accessid = uploadInfoNode["accessid"].asString(); + if(!uploadInfoNode["policy"].isNull()) + uploadInfo_.policy = uploadInfoNode["policy"].asString(); + if(!uploadInfoNode["signature"].isNull()) + uploadInfo_.signature = uploadInfoNode["signature"].asString(); + if(!uploadInfoNode["dir"].isNull()) + uploadInfo_.dir = uploadInfoNode["dir"].asString(); + if(!uploadInfoNode["host"].isNull()) + uploadInfo_.host = uploadInfoNode["host"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +GetWorkitemAttachmentCreatemetaResult::UploadInfo GetWorkitemAttachmentCreatemetaResult::getUploadInfo()const +{ + return uploadInfo_; +} + +std::string GetWorkitemAttachmentCreatemetaResult::getRequestId()const +{ + return requestId_; +} + +std::string GetWorkitemAttachmentCreatemetaResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetWorkitemAttachmentCreatemetaResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetWorkitemAttachmentCreatemetaResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetWorkitemCommentListRequest.cc b/devops/src/model/GetWorkitemCommentListRequest.cc new file mode 100644 index 000000000..8756dd9c3 --- /dev/null +++ b/devops/src/model/GetWorkitemCommentListRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetWorkitemCommentListRequest; + +GetWorkitemCommentListRequest::GetWorkitemCommentListRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/[workitemId]/commentList"}; + setMethod(HttpRequest::Method::Get); +} + +GetWorkitemCommentListRequest::~GetWorkitemCommentListRequest() {} + +std::string GetWorkitemCommentListRequest::getOrganizationId() const { + return organizationId_; +} + +void GetWorkitemCommentListRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetWorkitemCommentListRequest::getWorkitemId() const { + return workitemId_; +} + +void GetWorkitemCommentListRequest::setWorkitemId(const std::string &workitemId) { + workitemId_ = workitemId; + setParameter(std::string("workitemId"), workitemId); +} + diff --git a/devops/src/model/GetWorkitemCommentListResult.cc b/devops/src/model/GetWorkitemCommentListResult.cc new file mode 100644 index 000000000..e2c882927 --- /dev/null +++ b/devops/src/model/GetWorkitemCommentListResult.cc @@ -0,0 +1,114 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetWorkitemCommentListResult::GetWorkitemCommentListResult() : + ServiceResult() +{} + +GetWorkitemCommentListResult::GetWorkitemCommentListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkitemCommentListResult::~GetWorkitemCommentListResult() +{} + +void GetWorkitemCommentListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allcommentListNode = value["commentList"]["result"]; + for (auto valuecommentListresult : allcommentListNode) + { + Result commentListObject; + if(!valuecommentListresult["id"].isNull()) + commentListObject.id = std::stol(valuecommentListresult["id"].asString()); + if(!valuecommentListresult["content"].isNull()) + commentListObject.content = valuecommentListresult["content"].asString(); + if(!valuecommentListresult["targetType"].isNull()) + commentListObject.targetType = valuecommentListresult["targetType"].asString(); + if(!valuecommentListresult["targetIdentifier"].isNull()) + commentListObject.targetIdentifier = valuecommentListresult["targetIdentifier"].asString(); + if(!valuecommentListresult["parentId"].isNull()) + commentListObject.parentId = std::stol(valuecommentListresult["parentId"].asString()); + if(!valuecommentListresult["createTime"].isNull()) + commentListObject.createTime = std::stol(valuecommentListresult["createTime"].asString()); + if(!valuecommentListresult["modifiedTime"].isNull()) + commentListObject.modifiedTime = std::stol(valuecommentListresult["modifiedTime"].asString()); + if(!valuecommentListresult["isTop"].isNull()) + commentListObject.isTop = valuecommentListresult["isTop"].asString() == "true"; + if(!valuecommentListresult["topTime"].isNull()) + commentListObject.topTime = std::stol(valuecommentListresult["topTime"].asString()); + if(!valuecommentListresult["formatType"].isNull()) + commentListObject.formatType = valuecommentListresult["formatType"].asString(); + auto userNode = value["user"]; + if(!userNode["account"].isNull()) + commentListObject.user.account = userNode["account"].asString(); + if(!userNode["identifier"].isNull()) + commentListObject.user.identifier = userNode["identifier"].asString(); + if(!userNode["realName"].isNull()) + commentListObject.user.realName = userNode["realName"].asString(); + if(!userNode["nickName"].isNull()) + commentListObject.user.nickName = userNode["nickName"].asString(); + if(!userNode["avatar"].isNull()) + commentListObject.user.avatar = userNode["avatar"].asString(); + commentList_.push_back(commentListObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +std::vector GetWorkitemCommentListResult::getcommentList()const +{ + return commentList_; +} + +std::string GetWorkitemCommentListResult::getRequestId()const +{ + return requestId_; +} + +std::string GetWorkitemCommentListResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string GetWorkitemCommentListResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetWorkitemCommentListResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetWorkitemFileRequest.cc b/devops/src/model/GetWorkitemFileRequest.cc new file mode 100644 index 000000000..526aed730 --- /dev/null +++ b/devops/src/model/GetWorkitemFileRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetWorkitemFileRequest; + +GetWorkitemFileRequest::GetWorkitemFileRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitem/[workitemIdentifier]/files/[fileIdentifier]"}; + setMethod(HttpRequest::Method::Get); +} + +GetWorkitemFileRequest::~GetWorkitemFileRequest() {} + +std::string GetWorkitemFileRequest::getOrganizationId() const { + return organizationId_; +} + +void GetWorkitemFileRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetWorkitemFileRequest::getFileIdentifier() const { + return fileIdentifier_; +} + +void GetWorkitemFileRequest::setFileIdentifier(const std::string &fileIdentifier) { + fileIdentifier_ = fileIdentifier; + setParameter(std::string("fileIdentifier"), fileIdentifier); +} + +std::string GetWorkitemFileRequest::getWorkitemIdentifier() const { + return workitemIdentifier_; +} + +void GetWorkitemFileRequest::setWorkitemIdentifier(const std::string &workitemIdentifier) { + workitemIdentifier_ = workitemIdentifier; + setParameter(std::string("workitemIdentifier"), workitemIdentifier); +} + diff --git a/devops/src/model/GetWorkitemFileResult.cc b/devops/src/model/GetWorkitemFileResult.cc new file mode 100644 index 000000000..0db12b1e1 --- /dev/null +++ b/devops/src/model/GetWorkitemFileResult.cc @@ -0,0 +1,88 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetWorkitemFileResult::GetWorkitemFileResult() : + ServiceResult() +{} + +GetWorkitemFileResult::GetWorkitemFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkitemFileResult::~GetWorkitemFileResult() +{} + +void GetWorkitemFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workitemFileNode = value["workitemFile"]; + if(!workitemFileNode["id"].isNull()) + workitemFile_.id = workitemFileNode["id"].asString(); + if(!workitemFileNode["name"].isNull()) + workitemFile_.name = workitemFileNode["name"].asString(); + if(!workitemFileNode["suffix"].isNull()) + workitemFile_.suffix = workitemFileNode["suffix"].asString(); + if(!workitemFileNode["size"].isNull()) + workitemFile_.size = std::stoi(workitemFileNode["size"].asString()); + if(!workitemFileNode["url"].isNull()) + workitemFile_.url = workitemFileNode["url"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +GetWorkitemFileResult::WorkitemFile GetWorkitemFileResult::getWorkitemFile()const +{ + return workitemFile_; +} + +std::string GetWorkitemFileResult::getRequestId()const +{ + return requestId_; +} + +std::string GetWorkitemFileResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string GetWorkitemFileResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetWorkitemFileResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetWorkitemRelationsRequest.cc b/devops/src/model/GetWorkitemRelationsRequest.cc new file mode 100644 index 000000000..cca085c85 --- /dev/null +++ b/devops/src/model/GetWorkitemRelationsRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetWorkitemRelationsRequest; + +GetWorkitemRelationsRequest::GetWorkitemRelationsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/[workitemId]/getRelations"}; + setMethod(HttpRequest::Method::Get); +} + +GetWorkitemRelationsRequest::~GetWorkitemRelationsRequest() {} + +std::string GetWorkitemRelationsRequest::getOrganizationId() const { + return organizationId_; +} + +void GetWorkitemRelationsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string GetWorkitemRelationsRequest::getWorkitemId() const { + return workitemId_; +} + +void GetWorkitemRelationsRequest::setWorkitemId(const std::string &workitemId) { + workitemId_ = workitemId; + setParameter(std::string("workitemId"), workitemId); +} + +std::string GetWorkitemRelationsRequest::getRelationType() const { + return relationType_; +} + +void GetWorkitemRelationsRequest::setRelationType(const std::string &relationType) { + relationType_ = relationType; + setParameter(std::string("relationType"), relationType); +} + diff --git a/devops/src/model/GetWorkitemRelationsResult.cc b/devops/src/model/GetWorkitemRelationsResult.cc new file mode 100644 index 000000000..77e9e0f9f --- /dev/null +++ b/devops/src/model/GetWorkitemRelationsResult.cc @@ -0,0 +1,99 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetWorkitemRelationsResult::GetWorkitemRelationsResult() : + ServiceResult() +{} + +GetWorkitemRelationsResult::GetWorkitemRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkitemRelationsResult::~GetWorkitemRelationsResult() +{} + +void GetWorkitemRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allrelationListNode = value["relationList"]["relationListItem"]; + for (auto valuerelationListrelationListItem : allrelationListNode) + { + RelationListItem relationListObject; + if(!valuerelationListrelationListItem["identifier"].isNull()) + relationListObject.identifier = valuerelationListrelationListItem["identifier"].asString(); + if(!valuerelationListrelationListItem["subject"].isNull()) + relationListObject.subject = valuerelationListrelationListItem["subject"].asString(); + if(!valuerelationListrelationListItem["assignedTo"].isNull()) + relationListObject.assignedTo = valuerelationListrelationListItem["assignedTo"].asString(); + if(!valuerelationListrelationListItem["spaceIdentifier"].isNull()) + relationListObject.spaceIdentifier = valuerelationListrelationListItem["spaceIdentifier"].asString(); + if(!valuerelationListrelationListItem["categoryIdentifier"].isNull()) + relationListObject.categoryIdentifier = valuerelationListrelationListItem["categoryIdentifier"].asString(); + if(!valuerelationListrelationListItem["workitemTypeIdentifier"].isNull()) + relationListObject.workitemTypeIdentifier = valuerelationListrelationListItem["workitemTypeIdentifier"].asString(); + if(!valuerelationListrelationListItem["gmtCreate"].isNull()) + relationListObject.gmtCreate = valuerelationListrelationListItem["gmtCreate"].asString(); + if(!valuerelationListrelationListItem["gmtModified"].isNull()) + relationListObject.gmtModified = valuerelationListrelationListItem["gmtModified"].asString(); + relationList_.push_back(relationListObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string GetWorkitemRelationsResult::getRequestId()const +{ + return requestId_; +} + +std::vector GetWorkitemRelationsResult::getrelationList()const +{ + return relationList_; +} + +std::string GetWorkitemRelationsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string GetWorkitemRelationsResult::getErrorCode()const +{ + return errorCode_; +} + +bool GetWorkitemRelationsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetWorkitemTimeTypeListRequest.cc b/devops/src/model/GetWorkitemTimeTypeListRequest.cc new file mode 100644 index 000000000..78d84967f --- /dev/null +++ b/devops/src/model/GetWorkitemTimeTypeListRequest.cc @@ -0,0 +1,37 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetWorkitemTimeTypeListRequest; + +GetWorkitemTimeTypeListRequest::GetWorkitemTimeTypeListRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/type/list"}; + setMethod(HttpRequest::Method::Get); +} + +GetWorkitemTimeTypeListRequest::~GetWorkitemTimeTypeListRequest() {} + +std::string GetWorkitemTimeTypeListRequest::getOrganizationId() const { + return organizationId_; +} + +void GetWorkitemTimeTypeListRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/GetWorkitemTimeTypeListResult.cc b/devops/src/model/GetWorkitemTimeTypeListResult.cc new file mode 100644 index 000000000..4b2f9814a --- /dev/null +++ b/devops/src/model/GetWorkitemTimeTypeListResult.cc @@ -0,0 +1,93 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetWorkitemTimeTypeListResult::GetWorkitemTimeTypeListResult() : + ServiceResult() +{} + +GetWorkitemTimeTypeListResult::GetWorkitemTimeTypeListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkitemTimeTypeListResult::~GetWorkitemTimeTypeListResult() +{} + +void GetWorkitemTimeTypeListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alltimeTypeNode = value["timeType"]["result"]; + for (auto valuetimeTyperesult : alltimeTypeNode) + { + Result timeTypeObject; + if(!valuetimeTyperesult["identifier"].isNull()) + timeTypeObject.identifier = valuetimeTyperesult["identifier"].asString(); + if(!valuetimeTyperesult["name"].isNull()) + timeTypeObject.name = valuetimeTyperesult["name"].asString(); + if(!valuetimeTyperesult["displayName"].isNull()) + timeTypeObject.displayName = valuetimeTyperesult["displayName"].asString(); + if(!valuetimeTyperesult["description"].isNull()) + timeTypeObject.description = valuetimeTyperesult["description"].asString(); + if(!valuetimeTyperesult["position"].isNull()) + timeTypeObject.position = std::stol(valuetimeTyperesult["position"].asString()); + timeType_.push_back(timeTypeObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +std::string GetWorkitemTimeTypeListResult::getRequestId()const +{ + return requestId_; +} + +std::string GetWorkitemTimeTypeListResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector GetWorkitemTimeTypeListResult::gettimeType()const +{ + return timeType_; +} + +std::string GetWorkitemTimeTypeListResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetWorkitemTimeTypeListResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/GetWorkspaceRequest.cc b/devops/src/model/GetWorkspaceRequest.cc new file mode 100644 index 000000000..1ce527d7c --- /dev/null +++ b/devops/src/model/GetWorkspaceRequest.cc @@ -0,0 +1,37 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::GetWorkspaceRequest; + +GetWorkspaceRequest::GetWorkspaceRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/workspaces/[workspaceId]"}; + setMethod(HttpRequest::Method::Get); +} + +GetWorkspaceRequest::~GetWorkspaceRequest() {} + +std::string GetWorkspaceRequest::getWorkspaceId() const { + return workspaceId_; +} + +void GetWorkspaceRequest::setWorkspaceId(const std::string &workspaceId) { + workspaceId_ = workspaceId; + setParameter(std::string("workspaceId"), workspaceId); +} + diff --git a/devops/src/model/GetWorkspaceResult.cc b/devops/src/model/GetWorkspaceResult.cc new file mode 100644 index 000000000..6d9393b3c --- /dev/null +++ b/devops/src/model/GetWorkspaceResult.cc @@ -0,0 +1,96 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +GetWorkspaceResult::GetWorkspaceResult() : + ServiceResult() +{} + +GetWorkspaceResult::GetWorkspaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetWorkspaceResult::~GetWorkspaceResult() +{} + +void GetWorkspaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workspaceNode = value["workspace"]; + if(!workspaceNode["codeVersion"].isNull()) + workspace_.codeVersion = workspaceNode["codeVersion"].asString(); + if(!workspaceNode["codeUrl"].isNull()) + workspace_.codeUrl = workspaceNode["codeUrl"].asString(); + if(!workspaceNode["name"].isNull()) + workspace_.name = workspaceNode["name"].asString(); + if(!workspaceNode["spec"].isNull()) + workspace_.spec = workspaceNode["spec"].asString(); + if(!workspaceNode["status"].isNull()) + workspace_.status = workspaceNode["status"].asString(); + if(!workspaceNode["template"].isNull()) + workspace_._template = workspaceNode["template"].asString(); + if(!workspaceNode["id"].isNull()) + workspace_.id = workspaceNode["id"].asString(); + if(!workspaceNode["userId"].isNull()) + workspace_.userId = workspaceNode["userId"].asString(); + if(!workspaceNode["createTime"].isNull()) + workspace_.createTime = workspaceNode["createTime"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string GetWorkspaceResult::getRequestId()const +{ + return requestId_; +} + +std::string GetWorkspaceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetWorkspaceResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetWorkspaceResult::getSuccess()const +{ + return success_; +} + +GetWorkspaceResult::Workspace GetWorkspaceResult::getWorkspace()const +{ + return workspace_; +} + diff --git a/devops/src/model/JoinPipelineGroupRequest.cc b/devops/src/model/JoinPipelineGroupRequest.cc new file mode 100644 index 000000000..902885039 --- /dev/null +++ b/devops/src/model/JoinPipelineGroupRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::JoinPipelineGroupRequest; + +JoinPipelineGroupRequest::JoinPipelineGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelineGroups/join"}; + setMethod(HttpRequest::Method::Post); +} + +JoinPipelineGroupRequest::~JoinPipelineGroupRequest() {} + +long JoinPipelineGroupRequest::getGroupId() const { + return groupId_; +} + +void JoinPipelineGroupRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string JoinPipelineGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void JoinPipelineGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string JoinPipelineGroupRequest::getPipelineIds() const { + return pipelineIds_; +} + +void JoinPipelineGroupRequest::setPipelineIds(const std::string &pipelineIds) { + pipelineIds_ = pipelineIds; + setParameter(std::string("pipelineIds"), pipelineIds); +} + diff --git a/devops/src/model/JoinPipelineGroupResult.cc b/devops/src/model/JoinPipelineGroupResult.cc new file mode 100644 index 000000000..fc40df3c7 --- /dev/null +++ b/devops/src/model/JoinPipelineGroupResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +JoinPipelineGroupResult::JoinPipelineGroupResult() : + ServiceResult() +{} + +JoinPipelineGroupResult::JoinPipelineGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +JoinPipelineGroupResult::~JoinPipelineGroupResult() +{} + +void JoinPipelineGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string JoinPipelineGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string JoinPipelineGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string JoinPipelineGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool JoinPipelineGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/LinkMergeRequestLabelRequest.cc b/devops/src/model/LinkMergeRequestLabelRequest.cc new file mode 100644 index 000000000..03ea9a252 --- /dev/null +++ b/devops/src/model/LinkMergeRequestLabelRequest.cc @@ -0,0 +1,75 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::LinkMergeRequestLabelRequest; + +LinkMergeRequestLabelRequest::LinkMergeRequestLabelRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/merge_requests/link_labels"}; + setMethod(HttpRequest::Method::Post); +} + +LinkMergeRequestLabelRequest::~LinkMergeRequestLabelRequest() {} + +std::string LinkMergeRequestLabelRequest::getOrganizationId() const { + return organizationId_; +} + +void LinkMergeRequestLabelRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string LinkMergeRequestLabelRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void LinkMergeRequestLabelRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string LinkMergeRequestLabelRequest::getAccessToken() const { + return accessToken_; +} + +void LinkMergeRequestLabelRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +LinkMergeRequestLabelRequest::body LinkMergeRequestLabelRequest::getBody() const { + return body_; +} + +void LinkMergeRequestLabelRequest::setBody(const LinkMergeRequestLabelRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.labelIds.size(); dep1++) { + setBodyParameter(std::string("body") + ".labelIds." + std::to_string(dep1 + 1), body.labelIds[dep1]); + } +} + +long LinkMergeRequestLabelRequest::getLocalId() const { + return localId_; +} + +void LinkMergeRequestLabelRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/LinkMergeRequestLabelResult.cc b/devops/src/model/LinkMergeRequestLabelResult.cc new file mode 100644 index 000000000..ba384952f --- /dev/null +++ b/devops/src/model/LinkMergeRequestLabelResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +LinkMergeRequestLabelResult::LinkMergeRequestLabelResult() : + ServiceResult() +{} + +LinkMergeRequestLabelResult::LinkMergeRequestLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LinkMergeRequestLabelResult::~LinkMergeRequestLabelResult() +{} + +void LinkMergeRequestLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string LinkMergeRequestLabelResult::getRequestId()const +{ + return requestId_; +} + +std::string LinkMergeRequestLabelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string LinkMergeRequestLabelResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool LinkMergeRequestLabelResult::getSuccess()const +{ + return success_; +} + +LinkMergeRequestLabelResult::Result LinkMergeRequestLabelResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/ListApplicationMembersRequest.cc b/devops/src/model/ListApplicationMembersRequest.cc new file mode 100644 index 000000000..b7162ad75 --- /dev/null +++ b/devops/src/model/ListApplicationMembersRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListApplicationMembersRequest; + +ListApplicationMembersRequest::ListApplicationMembersRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/appstack/apps/[appName]/members"}; + setMethod(HttpRequest::Method::Get); +} + +ListApplicationMembersRequest::~ListApplicationMembersRequest() {} + +std::string ListApplicationMembersRequest::getOrganizationId() const { + return organizationId_; +} + +void ListApplicationMembersRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListApplicationMembersRequest::getAppName() const { + return appName_; +} + +void ListApplicationMembersRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + diff --git a/devops/src/model/ListApplicationMembersResult.cc b/devops/src/model/ListApplicationMembersResult.cc new file mode 100644 index 000000000..d528652de --- /dev/null +++ b/devops/src/model/ListApplicationMembersResult.cc @@ -0,0 +1,110 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListApplicationMembersResult::ListApplicationMembersResult() : + ServiceResult() +{} + +ListApplicationMembersResult::ListApplicationMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApplicationMembersResult::~ListApplicationMembersResult() +{} + +void ListApplicationMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allrecordsNode = value["records"]["recordsItem"]; + for (auto valuerecordsrecordsItem : allrecordsNode) + { + RecordsItem recordsObject; + if(!valuerecordsrecordsItem["id"].isNull()) + recordsObject.id = valuerecordsrecordsItem["id"].asString(); + if(!valuerecordsrecordsItem["type"].isNull()) + recordsObject.type = valuerecordsrecordsItem["type"].asString(); + if(!valuerecordsrecordsItem["displayName"].isNull()) + recordsObject.displayName = valuerecordsrecordsItem["displayName"].asString(); + if(!valuerecordsrecordsItem["description"].isNull()) + recordsObject.description = valuerecordsrecordsItem["description"].asString(); + if(!valuerecordsrecordsItem["avatar"].isNull()) + recordsObject.avatar = valuerecordsrecordsItem["avatar"].asString(); + auto allroleListNode = valuerecordsrecordsItem["roleList"]["roleListItem"]; + for (auto valuerecordsrecordsItemroleListroleListItem : allroleListNode) + { + RecordsItem::RoleListItem roleListObject; + if(!valuerecordsrecordsItemroleListroleListItem["name"].isNull()) + roleListObject.name = valuerecordsrecordsItemroleListroleListItem["name"].asString(); + if(!valuerecordsrecordsItemroleListroleListItem["displayName"].isNull()) + roleListObject.displayName = valuerecordsrecordsItemroleListroleListItem["displayName"].asString(); + recordsObject.roleList.push_back(roleListObject); + } + records_.push_back(recordsObject); + } + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + if(!value["current"].isNull()) + current_ = std::stol(value["current"].asString()); + if(!value["pageSize"].isNull()) + pageSize_ = std::stol(value["pageSize"].asString()); + if(!value["pages"].isNull()) + pages_ = std::stol(value["pages"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +long ListApplicationMembersResult::getPages()const +{ + return pages_; +} + +long ListApplicationMembersResult::getPageSize()const +{ + return pageSize_; +} + +std::string ListApplicationMembersResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListApplicationMembersResult::getrecords()const +{ + return records_; +} + +long ListApplicationMembersResult::getTotal()const +{ + return total_; +} + +long ListApplicationMembersResult::getCurrent()const +{ + return current_; +} + diff --git a/devops/src/model/ListApplicationsRequest.cc b/devops/src/model/ListApplicationsRequest.cc new file mode 100644 index 000000000..4ec41f33a --- /dev/null +++ b/devops/src/model/ListApplicationsRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListApplicationsRequest; + +ListApplicationsRequest::ListApplicationsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/appstack/apps:search"}; + setMethod(HttpRequest::Method::Get); +} + +ListApplicationsRequest::~ListApplicationsRequest() {} + +std::string ListApplicationsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListApplicationsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +int ListApplicationsRequest::getPerPage() const { + return perPage_; +} + +void ListApplicationsRequest::setPerPage(int perPage) { + perPage_ = perPage; + setParameter(std::string("perPage"), std::to_string(perPage)); +} + +std::string ListApplicationsRequest::getPagination() const { + return pagination_; +} + +void ListApplicationsRequest::setPagination(const std::string &pagination) { + pagination_ = pagination; + setParameter(std::string("pagination"), pagination); +} + +std::string ListApplicationsRequest::getNextToken() const { + return nextToken_; +} + +void ListApplicationsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +std::string ListApplicationsRequest::getOrderBy() const { + return orderBy_; +} + +void ListApplicationsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("orderBy"), orderBy); +} + +std::string ListApplicationsRequest::getSort() const { + return sort_; +} + +void ListApplicationsRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("sort"), sort); +} + diff --git a/devops/src/model/ListApplicationsResult.cc b/devops/src/model/ListApplicationsResult.cc new file mode 100644 index 000000000..c383e66b4 --- /dev/null +++ b/devops/src/model/ListApplicationsResult.cc @@ -0,0 +1,77 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListApplicationsResult::ListApplicationsResult() : + ServiceResult() +{} + +ListApplicationsResult::ListApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListApplicationsResult::~ListApplicationsResult() +{} + +void ListApplicationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alldataNode = value["data"]["dataItem"]; + for (auto valuedatadataItem : alldataNode) + { + DataItem dataObject; + if(!valuedatadataItem["creatorAccountId"].isNull()) + dataObject.creatorAccountId = valuedatadataItem["creatorAccountId"].asString(); + if(!valuedatadataItem["name"].isNull()) + dataObject.name = valuedatadataItem["name"].asString(); + if(!valuedatadataItem["gmtCreate"].isNull()) + dataObject.gmtCreate = valuedatadataItem["gmtCreate"].asString(); + if(!valuedatadataItem["description"].isNull()) + dataObject.description = valuedatadataItem["description"].asString(); + data_.push_back(dataObject); + } + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::vector ListApplicationsResult::getdata()const +{ + return data_; +} + +std::string ListApplicationsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListApplicationsResult::getRequestId()const +{ + return requestId_; +} + diff --git a/devops/src/model/ListCheckRunsRequest.cc b/devops/src/model/ListCheckRunsRequest.cc new file mode 100644 index 000000000..daa83be41 --- /dev/null +++ b/devops/src/model/ListCheckRunsRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListCheckRunsRequest; + +ListCheckRunsRequest::ListCheckRunsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/check_runs/list_check_runs"}; + setMethod(HttpRequest::Method::Get); +} + +ListCheckRunsRequest::~ListCheckRunsRequest() {} + +std::string ListCheckRunsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListCheckRunsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListCheckRunsRequest::getRef() const { + return ref_; +} + +void ListCheckRunsRequest::setRef(const std::string &ref) { + ref_ = ref; + setParameter(std::string("ref"), ref); +} + +std::string ListCheckRunsRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void ListCheckRunsRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +long ListCheckRunsRequest::getPageSize() const { + return pageSize_; +} + +void ListCheckRunsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListCheckRunsRequest::getAccessToken() const { + return accessToken_; +} + +void ListCheckRunsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long ListCheckRunsRequest::getPage() const { + return page_; +} + +void ListCheckRunsRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListCheckRunsResult.cc b/devops/src/model/ListCheckRunsResult.cc new file mode 100644 index 000000000..309ef4dcc --- /dev/null +++ b/devops/src/model/ListCheckRunsResult.cc @@ -0,0 +1,164 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListCheckRunsResult::ListCheckRunsResult() : + ServiceResult() +{} + +ListCheckRunsResult::ListCheckRunsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCheckRunsResult::~ListCheckRunsResult() +{} + +void ListCheckRunsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["createdAt"].isNull()) + resultObject.createdAt = valueresultresultItem["createdAt"].asString(); + if(!valueresultresultItem["updatedAt"].isNull()) + resultObject.updatedAt = valueresultresultItem["updatedAt"].asString(); + if(!valueresultresultItem["startedAt"].isNull()) + resultObject.startedAt = valueresultresultItem["startedAt"].asString(); + if(!valueresultresultItem["completedAt"].isNull()) + resultObject.completedAt = valueresultresultItem["completedAt"].asString(); + if(!valueresultresultItem["externalId"].isNull()) + resultObject.externalId = valueresultresultItem["externalId"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["headSha"].isNull()) + resultObject.headSha = valueresultresultItem["headSha"].asString(); + if(!valueresultresultItem["status"].isNull()) + resultObject.status = valueresultresultItem["status"].asString(); + if(!valueresultresultItem["conclusion"].isNull()) + resultObject.conclusion = valueresultresultItem["conclusion"].asString(); + if(!valueresultresultItem["detailsUrl"].isNull()) + resultObject.detailsUrl = valueresultresultItem["detailsUrl"].asString(); + auto allannotationsNode = valueresultresultItem["annotations"]["annotationsItem"]; + for (auto valueresultresultItemannotationsannotationsItem : allannotationsNode) + { + ResultItem::AnnotationsItem annotationsObject; + if(!valueresultresultItemannotationsannotationsItem["id"].isNull()) + annotationsObject.id = std::stol(valueresultresultItemannotationsannotationsItem["id"].asString()); + if(!valueresultresultItemannotationsannotationsItem["path"].isNull()) + annotationsObject.path = valueresultresultItemannotationsannotationsItem["path"].asString(); + if(!valueresultresultItemannotationsannotationsItem["startLine"].isNull()) + annotationsObject.startLine = std::stol(valueresultresultItemannotationsannotationsItem["startLine"].asString()); + if(!valueresultresultItemannotationsannotationsItem["endLine"].isNull()) + annotationsObject.endLine = std::stol(valueresultresultItemannotationsannotationsItem["endLine"].asString()); + if(!valueresultresultItemannotationsannotationsItem["startColumn"].isNull()) + annotationsObject.startColumn = std::stol(valueresultresultItemannotationsannotationsItem["startColumn"].asString()); + if(!valueresultresultItemannotationsannotationsItem["endColumn"].isNull()) + annotationsObject.endColumn = std::stol(valueresultresultItemannotationsannotationsItem["endColumn"].asString()); + if(!valueresultresultItemannotationsannotationsItem["annotationLevel"].isNull()) + annotationsObject.annotationLevel = valueresultresultItemannotationsannotationsItem["annotationLevel"].asString(); + if(!valueresultresultItemannotationsannotationsItem["message"].isNull()) + annotationsObject.message = valueresultresultItemannotationsannotationsItem["message"].asString(); + if(!valueresultresultItemannotationsannotationsItem["title"].isNull()) + annotationsObject.title = valueresultresultItemannotationsannotationsItem["title"].asString(); + if(!valueresultresultItemannotationsannotationsItem["rawDetails"].isNull()) + annotationsObject.rawDetails = valueresultresultItemannotationsannotationsItem["rawDetails"].asString(); + resultObject.annotations.push_back(annotationsObject); + } + auto checkSuiteNode = value["checkSuite"]; + if(!checkSuiteNode["id"].isNull()) + resultObject.checkSuite.id = std::stol(checkSuiteNode["id"].asString()); + auto writerNode = value["writer"]; + if(!writerNode["id"].isNull()) + resultObject.writer.id = writerNode["id"].asString(); + if(!writerNode["type"].isNull()) + resultObject.writer.type = writerNode["type"].asString(); + if(!writerNode["name"].isNull()) + resultObject.writer.name = writerNode["name"].asString(); + if(!writerNode["slug"].isNull()) + resultObject.writer.slug = writerNode["slug"].asString(); + if(!writerNode["logoUrl"].isNull()) + resultObject.writer.logoUrl = writerNode["logoUrl"].asString(); + auto outputNode = value["output"]; + if(!outputNode["title"].isNull()) + resultObject.output.title = outputNode["title"].asString(); + if(!outputNode["summary"].isNull()) + resultObject.output.summary = outputNode["summary"].asString(); + if(!outputNode["text"].isNull()) + resultObject.output.text = outputNode["text"].asString(); + auto allimagesNode = outputNode["images"]["imagesItem"]; + for (auto outputNodeimagesimagesItem : allimagesNode) + { + ResultItem::Output::ImagesItem imagesItemObject; + if(!outputNodeimagesimagesItem["alt"].isNull()) + imagesItemObject.alt = outputNodeimagesimagesItem["alt"].asString(); + if(!outputNodeimagesimagesItem["imageUrl"].isNull()) + imagesItemObject.imageUrl = outputNodeimagesimagesItem["imageUrl"].asString(); + if(!outputNodeimagesimagesItem["caption"].isNull()) + imagesItemObject.caption = outputNodeimagesimagesItem["caption"].asString(); + resultObject.output.images.push_back(imagesItemObject); + } + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::vector ListCheckRunsResult::getresult()const +{ + return result_; +} + +std::string ListCheckRunsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListCheckRunsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListCheckRunsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListCheckRunsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListCommitStatusesRequest.cc b/devops/src/model/ListCommitStatusesRequest.cc new file mode 100644 index 000000000..99c21f150 --- /dev/null +++ b/devops/src/model/ListCommitStatusesRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListCommitStatusesRequest; + +ListCommitStatusesRequest::ListCommitStatusesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/repository/commit_statuses/list_commit_statuses"}; + setMethod(HttpRequest::Method::Get); +} + +ListCommitStatusesRequest::~ListCommitStatusesRequest() {} + +std::string ListCommitStatusesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListCommitStatusesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListCommitStatusesRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void ListCommitStatusesRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +long ListCommitStatusesRequest::getPageSize() const { + return pageSize_; +} + +void ListCommitStatusesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListCommitStatusesRequest::getAccessToken() const { + return accessToken_; +} + +void ListCommitStatusesRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long ListCommitStatusesRequest::getPage() const { + return page_; +} + +void ListCommitStatusesRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + +std::string ListCommitStatusesRequest::getSha() const { + return sha_; +} + +void ListCommitStatusesRequest::setSha(const std::string &sha) { + sha_ = sha; + setParameter(std::string("sha"), sha); +} + diff --git a/devops/src/model/ListCommitStatusesResult.cc b/devops/src/model/ListCommitStatusesResult.cc new file mode 100644 index 000000000..7cfb5a259 --- /dev/null +++ b/devops/src/model/ListCommitStatusesResult.cc @@ -0,0 +1,111 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListCommitStatusesResult::ListCommitStatusesResult() : + ServiceResult() +{} + +ListCommitStatusesResult::ListCommitStatusesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCommitStatusesResult::~ListCommitStatusesResult() +{} + +void ListCommitStatusesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["sha"].isNull()) + resultObject.sha = valueresultresultItem["sha"].asString(); + if(!valueresultresultItem["context"].isNull()) + resultObject.context = valueresultresultItem["context"].asString(); + if(!valueresultresultItem["state"].isNull()) + resultObject.state = valueresultresultItem["state"].asString(); + if(!valueresultresultItem["targetUrl"].isNull()) + resultObject.targetUrl = valueresultresultItem["targetUrl"].asString(); + if(!valueresultresultItem["description"].isNull()) + resultObject.description = valueresultresultItem["description"].asString(); + auto creatorNode = value["creator"]; + if(!creatorNode["aliyunPk"].isNull()) + resultObject.creator.aliyunPk = creatorNode["aliyunPk"].asString(); + if(!creatorNode["login"].isNull()) + resultObject.creator.login = creatorNode["login"].asString(); + if(!creatorNode["avatarUrl"].isNull()) + resultObject.creator.avatarUrl = creatorNode["avatarUrl"].asString(); + if(!creatorNode["type"].isNull()) + resultObject.creator.type = creatorNode["type"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListCommitStatusesResult::getresult()const +{ + return result_; +} + +std::string ListCommitStatusesResult::getRequestId()const +{ + return requestId_; +} + +long ListCommitStatusesResult::getTotal()const +{ + return total_; +} + +std::string ListCommitStatusesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListCommitStatusesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListCommitStatusesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListFlowTagGroupsRequest.cc b/devops/src/model/ListFlowTagGroupsRequest.cc new file mode 100644 index 000000000..00579b69d --- /dev/null +++ b/devops/src/model/ListFlowTagGroupsRequest.cc @@ -0,0 +1,37 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListFlowTagGroupsRequest; + +ListFlowTagGroupsRequest::ListFlowTagGroupsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/flow/tagGroups"}; + setMethod(HttpRequest::Method::Get); +} + +ListFlowTagGroupsRequest::~ListFlowTagGroupsRequest() {} + +std::string ListFlowTagGroupsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListFlowTagGroupsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/ListFlowTagGroupsResult.cc b/devops/src/model/ListFlowTagGroupsResult.cc new file mode 100644 index 000000000..853826a88 --- /dev/null +++ b/devops/src/model/ListFlowTagGroupsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListFlowTagGroupsResult::ListFlowTagGroupsResult() : + ServiceResult() +{} + +ListFlowTagGroupsResult::ListFlowTagGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFlowTagGroupsResult::~ListFlowTagGroupsResult() +{} + +void ListFlowTagGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allflowTagGroupsNode = value["flowTagGroups"]["FlowTagGroup"]; + for (auto valueflowTagGroupsFlowTagGroup : allflowTagGroupsNode) + { + FlowTagGroup flowTagGroupsObject; + if(!valueflowTagGroupsFlowTagGroup["id"].isNull()) + flowTagGroupsObject.id = std::stol(valueflowTagGroupsFlowTagGroup["id"].asString()); + if(!valueflowTagGroupsFlowTagGroup["name"].isNull()) + flowTagGroupsObject.name = valueflowTagGroupsFlowTagGroup["name"].asString(); + if(!valueflowTagGroupsFlowTagGroup["creatorAccountId"].isNull()) + flowTagGroupsObject.creatorAccountId = valueflowTagGroupsFlowTagGroup["creatorAccountId"].asString(); + if(!valueflowTagGroupsFlowTagGroup["modiferAccountId"].isNull()) + flowTagGroupsObject.modiferAccountId = valueflowTagGroupsFlowTagGroup["modiferAccountId"].asString(); + flowTagGroups_.push_back(flowTagGroupsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string ListFlowTagGroupsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListFlowTagGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListFlowTagGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector ListFlowTagGroupsResult::getflowTagGroups()const +{ + return flowTagGroups_; +} + +bool ListFlowTagGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListGroupMemberRequest.cc b/devops/src/model/ListGroupMemberRequest.cc new file mode 100644 index 000000000..0d820c050 --- /dev/null +++ b/devops/src/model/ListGroupMemberRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListGroupMemberRequest; + +ListGroupMemberRequest::ListGroupMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/groups/[groupId]/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListGroupMemberRequest::~ListGroupMemberRequest() {} + +std::string ListGroupMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void ListGroupMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ListGroupMemberRequest::getGroupId() const { + return groupId_; +} + +void ListGroupMemberRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string ListGroupMemberRequest::getAccessToken() const { + return accessToken_; +} + +void ListGroupMemberRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/ListGroupMemberResult.cc b/devops/src/model/ListGroupMemberResult.cc new file mode 100644 index 000000000..2ae4528c0 --- /dev/null +++ b/devops/src/model/ListGroupMemberResult.cc @@ -0,0 +1,103 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListGroupMemberResult::ListGroupMemberResult() : + ServiceResult() +{} + +ListGroupMemberResult::ListGroupMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGroupMemberResult::~ListGroupMemberResult() +{} + +void ListGroupMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["username"].isNull()) + resultObject.username = valueresultresultItem["username"].asString(); + if(!valueresultresultItem["state"].isNull()) + resultObject.state = valueresultresultItem["state"].asString(); + if(!valueresultresultItem["avatarUrl"].isNull()) + resultObject.avatarUrl = valueresultresultItem["avatarUrl"].asString(); + if(!valueresultresultItem["email"].isNull()) + resultObject.email = valueresultresultItem["email"].asString(); + if(!valueresultresultItem["externUid"].isNull()) + resultObject.externUid = valueresultresultItem["externUid"].asString(); + if(!valueresultresultItem["accessLevel"].isNull()) + resultObject.accessLevel = std::stoi(valueresultresultItem["accessLevel"].asString()); + if(!valueresultresultItem["memberType"].isNull()) + resultObject.memberType = valueresultresultItem["memberType"].asString(); + if(!valueresultresultItem["sourceId"].isNull()) + resultObject.sourceId = std::stol(valueresultresultItem["sourceId"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector ListGroupMemberResult::getresult()const +{ + return result_; +} + +std::string ListGroupMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string ListGroupMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListGroupMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListGroupMemberResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListGroupRepositoriesRequest.cc b/devops/src/model/ListGroupRepositoriesRequest.cc new file mode 100644 index 000000000..60ce3389a --- /dev/null +++ b/devops/src/model/ListGroupRepositoriesRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListGroupRepositoriesRequest; + +ListGroupRepositoriesRequest::ListGroupRepositoriesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/groups/[groupId]/projects"}; + setMethod(HttpRequest::Method::Get); +} + +ListGroupRepositoriesRequest::~ListGroupRepositoriesRequest() {} + +std::string ListGroupRepositoriesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListGroupRepositoriesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListGroupRepositoriesRequest::getSearch() const { + return search_; +} + +void ListGroupRepositoriesRequest::setSearch(const std::string &search) { + search_ = search; + setParameter(std::string("search"), search); +} + +std::string ListGroupRepositoriesRequest::getGroupId() const { + return groupId_; +} + +void ListGroupRepositoriesRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), groupId); +} + +long ListGroupRepositoriesRequest::getPageSize() const { + return pageSize_; +} + +void ListGroupRepositoriesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListGroupRepositoriesRequest::getAccessToken() const { + return accessToken_; +} + +void ListGroupRepositoriesRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long ListGroupRepositoriesRequest::getPage() const { + return page_; +} + +void ListGroupRepositoriesRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListGroupRepositoriesResult.cc b/devops/src/model/ListGroupRepositoriesResult.cc new file mode 100644 index 000000000..b82eb0422 --- /dev/null +++ b/devops/src/model/ListGroupRepositoriesResult.cc @@ -0,0 +1,140 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListGroupRepositoriesResult::ListGroupRepositoriesResult() : + ServiceResult() +{} + +ListGroupRepositoriesResult::ListGroupRepositoriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGroupRepositoriesResult::~ListGroupRepositoriesResult() +{} + +void ListGroupRepositoriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["path"].isNull()) + resultObject.path = valueresultresultItem["path"].asString(); + if(!valueresultresultItem["nameWithNamespace"].isNull()) + resultObject.nameWithNamespace = valueresultresultItem["nameWithNamespace"].asString(); + if(!valueresultresultItem["pathWithNamespace"].isNull()) + resultObject.pathWithNamespace = valueresultresultItem["pathWithNamespace"].asString(); + if(!valueresultresultItem["lastActivityAt"].isNull()) + resultObject.lastActivityAt = valueresultresultItem["lastActivityAt"].asString(); + if(!valueresultresultItem["createdAt"].isNull()) + resultObject.createdAt = valueresultresultItem["createdAt"].asString(); + if(!valueresultresultItem["updatedAt"].isNull()) + resultObject.updatedAt = valueresultresultItem["updatedAt"].asString(); + if(!valueresultresultItem["visibilityLevel"].isNull()) + resultObject.visibilityLevel = std::stoi(valueresultresultItem["visibilityLevel"].asString()); + if(!valueresultresultItem["starCount"].isNull()) + resultObject.starCount = std::stoi(valueresultresultItem["starCount"].asString()); + if(!valueresultresultItem["webUrl"].isNull()) + resultObject.webUrl = valueresultresultItem["webUrl"].asString(); + if(!valueresultresultItem["sshUrl"].isNull()) + resultObject.sshUrl = valueresultresultItem["sshUrl"].asString(); + if(!valueresultresultItem["httpUrl"].isNull()) + resultObject.httpUrl = valueresultresultItem["httpUrl"].asString(); + if(!valueresultresultItem["description"].isNull()) + resultObject.description = valueresultresultItem["description"].asString(); + if(!valueresultresultItem["privateFlag"].isNull()) + resultObject.privateFlag = valueresultresultItem["privateFlag"].asString() == "true"; + if(!valueresultresultItem["creatorId"].isNull()) + resultObject.creatorId = std::stol(valueresultresultItem["creatorId"].asString()); + if(!valueresultresultItem["issuesEnabled"].isNull()) + resultObject.issuesEnabled = valueresultresultItem["issuesEnabled"].asString() == "true"; + if(!valueresultresultItem["mergeRequestsEnabled"].isNull()) + resultObject.mergeRequestsEnabled = valueresultresultItem["mergeRequestsEnabled"].asString() == "true"; + if(!valueresultresultItem["wikiEnabled"].isNull()) + resultObject.wikiEnabled = valueresultresultItem["wikiEnabled"].asString() == "true"; + if(!valueresultresultItem["namespaceId"].isNull()) + resultObject.namespaceId = valueresultresultItem["namespaceId"].asString() == "true"; + if(!valueresultresultItem["snippetsEnabled"].isNull()) + resultObject.snippetsEnabled = valueresultresultItem["snippetsEnabled"].asString() == "true"; + if(!valueresultresultItem["importUrl"].isNull()) + resultObject.importUrl = valueresultresultItem["importUrl"].asString(); + if(!valueresultresultItem["archived"].isNull()) + resultObject.archived = valueresultresultItem["archived"].asString() == "true"; + if(!valueresultresultItem["commitCount"].isNull()) + resultObject.commitCount = std::stol(valueresultresultItem["commitCount"].asString()); + if(!valueresultresultItem["isStared"].isNull()) + resultObject.isStared = valueresultresultItem["isStared"].asString() == "true"; + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListGroupRepositoriesResult::getresult()const +{ + return result_; +} + +std::string ListGroupRepositoriesResult::getRequestId()const +{ + return requestId_; +} + +long ListGroupRepositoriesResult::getTotal()const +{ + return total_; +} + +std::string ListGroupRepositoriesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListGroupRepositoriesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListGroupRepositoriesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListHostGroupsRequest.cc b/devops/src/model/ListHostGroupsRequest.cc new file mode 100644 index 000000000..b3310785a --- /dev/null +++ b/devops/src/model/ListHostGroupsRequest.cc @@ -0,0 +1,118 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListHostGroupsRequest; + +ListHostGroupsRequest::ListHostGroupsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/hostGroups"}; + setMethod(HttpRequest::Method::Get); +} + +ListHostGroupsRequest::~ListHostGroupsRequest() {} + +std::string ListHostGroupsRequest::getPageSort() const { + return pageSort_; +} + +void ListHostGroupsRequest::setPageSort(const std::string &pageSort) { + pageSort_ = pageSort; + setParameter(std::string("pageSort"), pageSort); +} + +std::string ListHostGroupsRequest::getCreatorAccountIds() const { + return creatorAccountIds_; +} + +void ListHostGroupsRequest::setCreatorAccountIds(const std::string &creatorAccountIds) { + creatorAccountIds_ = creatorAccountIds; + setParameter(std::string("creatorAccountIds"), creatorAccountIds); +} + +long ListHostGroupsRequest::getCreateStartTime() const { + return createStartTime_; +} + +void ListHostGroupsRequest::setCreateStartTime(long createStartTime) { + createStartTime_ = createStartTime; + setParameter(std::string("createStartTime"), std::to_string(createStartTime)); +} + +std::string ListHostGroupsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListHostGroupsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListHostGroupsRequest::getPageOrder() const { + return pageOrder_; +} + +void ListHostGroupsRequest::setPageOrder(const std::string &pageOrder) { + pageOrder_ = pageOrder; + setParameter(std::string("pageOrder"), pageOrder); +} + +std::string ListHostGroupsRequest::getNextToken() const { + return nextToken_; +} + +void ListHostGroupsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +std::string ListHostGroupsRequest::getName() const { + return name_; +} + +void ListHostGroupsRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); +} + +std::string ListHostGroupsRequest::getIds() const { + return ids_; +} + +void ListHostGroupsRequest::setIds(const std::string &ids) { + ids_ = ids; + setParameter(std::string("ids"), ids); +} + +long ListHostGroupsRequest::getMaxResults() const { + return maxResults_; +} + +void ListHostGroupsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + +long ListHostGroupsRequest::getCreateEndTime() const { + return createEndTime_; +} + +void ListHostGroupsRequest::setCreateEndTime(long createEndTime) { + createEndTime_ = createEndTime; + setParameter(std::string("createEndTime"), std::to_string(createEndTime)); +} + diff --git a/devops/src/model/ListHostGroupsResult.cc b/devops/src/model/ListHostGroupsResult.cc new file mode 100644 index 000000000..56ac00368 --- /dev/null +++ b/devops/src/model/ListHostGroupsResult.cc @@ -0,0 +1,125 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListHostGroupsResult::ListHostGroupsResult() : + ServiceResult() +{} + +ListHostGroupsResult::ListHostGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListHostGroupsResult::~ListHostGroupsResult() +{} + +void ListHostGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allhostGroupsNode = value["hostGroups"]["HostGroup"]; + for (auto valuehostGroupsHostGroup : allhostGroupsNode) + { + HostGroup hostGroupsObject; + if(!valuehostGroupsHostGroup["creatorAccountId"].isNull()) + hostGroupsObject.creatorAccountId = valuehostGroupsHostGroup["creatorAccountId"].asString(); + if(!valuehostGroupsHostGroup["updateTime"].isNull()) + hostGroupsObject.updateTime = std::stol(valuehostGroupsHostGroup["updateTime"].asString()); + if(!valuehostGroupsHostGroup["hostNum"].isNull()) + hostGroupsObject.hostNum = std::stol(valuehostGroupsHostGroup["hostNum"].asString()); + if(!valuehostGroupsHostGroup["modifierAccountId"].isNull()) + hostGroupsObject.modifierAccountId = valuehostGroupsHostGroup["modifierAccountId"].asString(); + if(!valuehostGroupsHostGroup["description"].isNull()) + hostGroupsObject.description = valuehostGroupsHostGroup["description"].asString(); + if(!valuehostGroupsHostGroup["type"].isNull()) + hostGroupsObject.type = valuehostGroupsHostGroup["type"].asString(); + if(!valuehostGroupsHostGroup["createTime"].isNull()) + hostGroupsObject.createTime = std::stol(valuehostGroupsHostGroup["createTime"].asString()); + if(!valuehostGroupsHostGroup["ecsType"].isNull()) + hostGroupsObject.ecsType = valuehostGroupsHostGroup["ecsType"].asString(); + if(!valuehostGroupsHostGroup["aliyunRegion"].isNull()) + hostGroupsObject.aliyunRegion = valuehostGroupsHostGroup["aliyunRegion"].asString(); + if(!valuehostGroupsHostGroup["ecsLabelKey"].isNull()) + hostGroupsObject.ecsLabelKey = valuehostGroupsHostGroup["ecsLabelKey"].asString(); + if(!valuehostGroupsHostGroup["name"].isNull()) + hostGroupsObject.name = valuehostGroupsHostGroup["name"].asString(); + if(!valuehostGroupsHostGroup["id"].isNull()) + hostGroupsObject.id = std::stol(valuehostGroupsHostGroup["id"].asString()); + if(!valuehostGroupsHostGroup["serviceConnectionId"].isNull()) + hostGroupsObject.serviceConnectionId = std::stol(valuehostGroupsHostGroup["serviceConnectionId"].asString()); + if(!valuehostGroupsHostGroup["ecsLabelValue"].isNull()) + hostGroupsObject.ecsLabelValue = valuehostGroupsHostGroup["ecsLabelValue"].asString(); + hostGroups_.push_back(hostGroupsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + +} + +std::vector ListHostGroupsResult::gethostGroups()const +{ + return hostGroups_; +} + +long ListHostGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListHostGroupsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListHostGroupsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListHostGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListHostGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListHostGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListJoinedOrganizationsRequest.cc b/devops/src/model/ListJoinedOrganizationsRequest.cc new file mode 100644 index 000000000..eb1001ff3 --- /dev/null +++ b/devops/src/model/ListJoinedOrganizationsRequest.cc @@ -0,0 +1,28 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListJoinedOrganizationsRequest; + +ListJoinedOrganizationsRequest::ListJoinedOrganizationsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/users/joinedOrgs"}; + setMethod(HttpRequest::Method::Get); +} + +ListJoinedOrganizationsRequest::~ListJoinedOrganizationsRequest() {} + diff --git a/devops/src/model/ListJoinedOrganizationsResult.cc b/devops/src/model/ListJoinedOrganizationsResult.cc new file mode 100644 index 000000000..0cfc5c547 --- /dev/null +++ b/devops/src/model/ListJoinedOrganizationsResult.cc @@ -0,0 +1,87 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListJoinedOrganizationsResult::ListJoinedOrganizationsResult() : + ServiceResult() +{} + +ListJoinedOrganizationsResult::ListJoinedOrganizationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJoinedOrganizationsResult::~ListJoinedOrganizationsResult() +{} + +void ListJoinedOrganizationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allorganizationsNode = value["organizations"]["result"]; + for (auto valueorganizationsresult : allorganizationsNode) + { + Result organizationsObject; + if(!valueorganizationsresult["id"].isNull()) + organizationsObject.id = valueorganizationsresult["id"].asString(); + if(!valueorganizationsresult["name"].isNull()) + organizationsObject.name = valueorganizationsresult["name"].asString(); + organizations_.push_back(organizationsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string ListJoinedOrganizationsResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListJoinedOrganizationsResult::getorganizations()const +{ + return organizations_; +} + +std::string ListJoinedOrganizationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListJoinedOrganizationsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListJoinedOrganizationsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListMergeRequestCommentsRequest.cc b/devops/src/model/ListMergeRequestCommentsRequest.cc new file mode 100644 index 000000000..5518f9e1a --- /dev/null +++ b/devops/src/model/ListMergeRequestCommentsRequest.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListMergeRequestCommentsRequest; + +ListMergeRequestCommentsRequest::ListMergeRequestCommentsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/merge_requests/comments/list_comments"}; + setMethod(HttpRequest::Method::Post); +} + +ListMergeRequestCommentsRequest::~ListMergeRequestCommentsRequest() {} + +std::string ListMergeRequestCommentsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListMergeRequestCommentsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListMergeRequestCommentsRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void ListMergeRequestCommentsRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string ListMergeRequestCommentsRequest::getAccessToken() const { + return accessToken_; +} + +void ListMergeRequestCommentsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +ListMergeRequestCommentsRequest::body ListMergeRequestCommentsRequest::getBody() const { + return body_; +} + +void ListMergeRequestCommentsRequest::setBody(const ListMergeRequestCommentsRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".filePath", body.filePath); + for(int dep1 = 0; dep1 != body.patchSetBizIds.size(); dep1++) { + setBodyParameter(std::string("body") + ".patchSetBizIds." + std::to_string(dep1 + 1), body.patchSetBizIds[dep1]); + } + setBodyParameter(std::string("body") + ".commentType", body.commentType); + setBodyParameter(std::string("body") + ".state", body.state); + setBodyParameter(std::string("body") + ".resolved", body.resolved ? "true" : "false"); +} + +long ListMergeRequestCommentsRequest::getLocalId() const { + return localId_; +} + +void ListMergeRequestCommentsRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/ListMergeRequestCommentsResult.cc b/devops/src/model/ListMergeRequestCommentsResult.cc new file mode 100644 index 000000000..af1c30907 --- /dev/null +++ b/devops/src/model/ListMergeRequestCommentsResult.cc @@ -0,0 +1,257 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListMergeRequestCommentsResult::ListMergeRequestCommentsResult() : + ServiceResult() +{} + +ListMergeRequestCommentsResult::ListMergeRequestCommentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMergeRequestCommentsResult::~ListMergeRequestCommentsResult() +{} + +void ListMergeRequestCommentsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["commentBizId"].isNull()) + resultObject.commentBizId = valueresultresultItem["commentBizId"].asString(); + if(!valueresultresultItem["commentType"].isNull()) + resultObject.commentType = valueresultresultItem["commentType"].asString(); + if(!valueresultresultItem["state"].isNull()) + resultObject.state = valueresultresultItem["state"].asString(); + if(!valueresultresultItem["resolved"].isNull()) + resultObject.resolved = valueresultresultItem["resolved"].asString() == "true"; + if(!valueresultresultItem["deleted"].isNull()) + resultObject.deleted = valueresultresultItem["deleted"].asString() == "true"; + if(!valueresultresultItem["commentTime"].isNull()) + resultObject.commentTime = valueresultresultItem["commentTime"].asString(); + if(!valueresultresultItem["lastEditTime"].isNull()) + resultObject.lastEditTime = valueresultresultItem["lastEditTime"].asString(); + if(!valueresultresultItem["content"].isNull()) + resultObject.content = valueresultresultItem["content"].asString(); + if(!valueresultresultItem["lineNumber"].isNull()) + resultObject.lineNumber = valueresultresultItem["lineNumber"].asString(); + if(!valueresultresultItem["filePath"].isNull()) + resultObject.filePath = valueresultresultItem["filePath"].asString(); + if(!valueresultresultItem["parentCommentBizId"].isNull()) + resultObject.parentCommentBizId = valueresultresultItem["parentCommentBizId"].asString(); + if(!valueresultresultItem["rootCommentBizId"].isNull()) + resultObject.rootCommentBizId = valueresultresultItem["rootCommentBizId"].asString(); + auto allchildCommentsNode = valueresultresultItem["childComments"]["child_comments_list"]; + for (auto valueresultresultItemchildCommentschild_comments_list : allchildCommentsNode) + { + ResultItem::Child_comments_list childCommentsObject; + if(!valueresultresultItemchildCommentschild_comments_list["commentBizId"].isNull()) + childCommentsObject.commentBizId = valueresultresultItemchildCommentschild_comments_list["commentBizId"].asString(); + if(!valueresultresultItemchildCommentschild_comments_list["commentType"].isNull()) + childCommentsObject.commentType = valueresultresultItemchildCommentschild_comments_list["commentType"].asString(); + if(!valueresultresultItemchildCommentschild_comments_list["state"].isNull()) + childCommentsObject.state = valueresultresultItemchildCommentschild_comments_list["state"].asString(); + if(!valueresultresultItemchildCommentschild_comments_list["resolved"].isNull()) + childCommentsObject.resolved = valueresultresultItemchildCommentschild_comments_list["resolved"].asString() == "true"; + if(!valueresultresultItemchildCommentschild_comments_list["deleted"].isNull()) + childCommentsObject.deleted = valueresultresultItemchildCommentschild_comments_list["deleted"].asString() == "true"; + if(!valueresultresultItemchildCommentschild_comments_list["commentTime"].isNull()) + childCommentsObject.commentTime = valueresultresultItemchildCommentschild_comments_list["commentTime"].asString(); + if(!valueresultresultItemchildCommentschild_comments_list["lastEditTime"].isNull()) + childCommentsObject.lastEditTime = valueresultresultItemchildCommentschild_comments_list["lastEditTime"].asString(); + if(!valueresultresultItemchildCommentschild_comments_list["content"].isNull()) + childCommentsObject.content = valueresultresultItemchildCommentschild_comments_list["content"].asString(); + if(!valueresultresultItemchildCommentschild_comments_list["lineNumber"].isNull()) + childCommentsObject.lineNumber = valueresultresultItemchildCommentschild_comments_list["lineNumber"].asString(); + if(!valueresultresultItemchildCommentschild_comments_list["filePath"].isNull()) + childCommentsObject.filePath = valueresultresultItemchildCommentschild_comments_list["filePath"].asString(); + if(!valueresultresultItemchildCommentschild_comments_list["parentCommentBizId"].isNull()) + childCommentsObject.parentCommentBizId = valueresultresultItemchildCommentschild_comments_list["parentCommentBizId"].asString(); + if(!valueresultresultItemchildCommentschild_comments_list["rootCommentBizId"].isNull()) + childCommentsObject.rootCommentBizId = valueresultresultItemchildCommentschild_comments_list["rootCommentBizId"].asString(); + auto allfinalChildCommentsNode = valueresultresultItemchildCommentschild_comments_list["finalChildComments"]["child_comments_list_child"]; + for (auto valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child : allfinalChildCommentsNode) + { + ResultItem::Child_comments_list::Child_comments_list_child finalChildCommentsObject; + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["commentBizId"].isNull()) + finalChildCommentsObject.commentBizId = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["commentBizId"].asString(); + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["commentType"].isNull()) + finalChildCommentsObject.commentType = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["commentType"].asString(); + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["state"].isNull()) + finalChildCommentsObject.state = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["state"].asString(); + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["resolved"].isNull()) + finalChildCommentsObject.resolved = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["resolved"].asString() == "true"; + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["deleted"].isNull()) + finalChildCommentsObject.deleted = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["deleted"].asString() == "true"; + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["commentTime"].isNull()) + finalChildCommentsObject.commentTime = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["commentTime"].asString(); + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["lastEditTime"].isNull()) + finalChildCommentsObject.lastEditTime = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["lastEditTime"].asString(); + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["content"].isNull()) + finalChildCommentsObject.content = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["content"].asString(); + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["lineNumber"].isNull()) + finalChildCommentsObject.lineNumber = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["lineNumber"].asString(); + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["filePath"].isNull()) + finalChildCommentsObject.filePath = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["filePath"].asString(); + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["parentCommentBizId"].isNull()) + finalChildCommentsObject.parentCommentBizId = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["parentCommentBizId"].asString(); + if(!valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["rootCommentBizId"].isNull()) + finalChildCommentsObject.rootCommentBizId = valueresultresultItemchildCommentschild_comments_listfinalChildCommentschild_comments_list_child["rootCommentBizId"].asString(); + auto author3Node = value["author"]; + if(!author3Node["aliyunPk"].isNull()) + finalChildCommentsObject.author3.aliyunPk = author3Node["aliyunPk"].asString(); + if(!author3Node["name"].isNull()) + finalChildCommentsObject.author3.name = author3Node["name"].asString(); + if(!author3Node["username"].isNull()) + finalChildCommentsObject.author3.username = author3Node["username"].asString(); + if(!author3Node["state"].isNull()) + finalChildCommentsObject.author3.state = author3Node["state"].asString(); + if(!author3Node["avatarUrl"].isNull()) + finalChildCommentsObject.author3.avatarUrl = author3Node["avatarUrl"].asString(); + if(!author3Node["email"].isNull()) + finalChildCommentsObject.author3.email = author3Node["email"].asString(); + if(!author3Node["id"].isNull()) + finalChildCommentsObject.author3.id = std::stol(author3Node["id"].asString()); + auto relatedPatchSet4Node = value["relatedPatchSet"]; + if(!relatedPatchSet4Node["patchSetNo"].isNull()) + finalChildCommentsObject.relatedPatchSet4.patchSetNo = relatedPatchSet4Node["patchSetNo"].asString(); + if(!relatedPatchSet4Node["patchSetBizId"].isNull()) + finalChildCommentsObject.relatedPatchSet4.patchSetBizId = relatedPatchSet4Node["patchSetBizId"].asString(); + if(!relatedPatchSet4Node["patchSetName"].isNull()) + finalChildCommentsObject.relatedPatchSet4.patchSetName = relatedPatchSet4Node["patchSetName"].asString(); + if(!relatedPatchSet4Node["commitId"].isNull()) + finalChildCommentsObject.relatedPatchSet4.commitId = relatedPatchSet4Node["commitId"].asString(); + if(!relatedPatchSet4Node["shortId"].isNull()) + finalChildCommentsObject.relatedPatchSet4.shortId = relatedPatchSet4Node["shortId"].asString(); + if(!relatedPatchSet4Node["relatedMergeItemType"].isNull()) + finalChildCommentsObject.relatedPatchSet4.relatedMergeItemType = relatedPatchSet4Node["relatedMergeItemType"].asString(); + if(!relatedPatchSet4Node["createdAt"].isNull()) + finalChildCommentsObject.relatedPatchSet4.createdAt = relatedPatchSet4Node["createdAt"].asString(); + childCommentsObject.finalChildComments.push_back(finalChildCommentsObject); + } + auto author1Node = value["author"]; + if(!author1Node["aliyunPk"].isNull()) + childCommentsObject.author1.aliyunPk = author1Node["aliyunPk"].asString(); + if(!author1Node["name"].isNull()) + childCommentsObject.author1.name = author1Node["name"].asString(); + if(!author1Node["username"].isNull()) + childCommentsObject.author1.username = author1Node["username"].asString(); + if(!author1Node["state"].isNull()) + childCommentsObject.author1.state = author1Node["state"].asString(); + if(!author1Node["avatarUrl"].isNull()) + childCommentsObject.author1.avatarUrl = author1Node["avatarUrl"].asString(); + if(!author1Node["email"].isNull()) + childCommentsObject.author1.email = author1Node["email"].asString(); + if(!author1Node["id"].isNull()) + childCommentsObject.author1.id = std::stol(author1Node["id"].asString()); + auto relatedPatchSet2Node = value["relatedPatchSet"]; + if(!relatedPatchSet2Node["patchSetNo"].isNull()) + childCommentsObject.relatedPatchSet2.patchSetNo = relatedPatchSet2Node["patchSetNo"].asString(); + if(!relatedPatchSet2Node["patchSetBizId"].isNull()) + childCommentsObject.relatedPatchSet2.patchSetBizId = relatedPatchSet2Node["patchSetBizId"].asString(); + if(!relatedPatchSet2Node["patchSetName"].isNull()) + childCommentsObject.relatedPatchSet2.patchSetName = relatedPatchSet2Node["patchSetName"].asString(); + if(!relatedPatchSet2Node["commitId"].isNull()) + childCommentsObject.relatedPatchSet2.commitId = relatedPatchSet2Node["commitId"].asString(); + if(!relatedPatchSet2Node["shortId"].isNull()) + childCommentsObject.relatedPatchSet2.shortId = relatedPatchSet2Node["shortId"].asString(); + if(!relatedPatchSet2Node["relatedMergeItemType"].isNull()) + childCommentsObject.relatedPatchSet2.relatedMergeItemType = relatedPatchSet2Node["relatedMergeItemType"].asString(); + if(!relatedPatchSet2Node["createdAt"].isNull()) + childCommentsObject.relatedPatchSet2.createdAt = relatedPatchSet2Node["createdAt"].asString(); + resultObject.childComments.push_back(childCommentsObject); + } + auto authorNode = value["author"]; + if(!authorNode["aliyunPk"].isNull()) + resultObject.author.aliyunPk = authorNode["aliyunPk"].asString(); + if(!authorNode["name"].isNull()) + resultObject.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + resultObject.author.username = authorNode["username"].asString(); + if(!authorNode["state"].isNull()) + resultObject.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + resultObject.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["email"].isNull()) + resultObject.author.email = authorNode["email"].asString(); + if(!authorNode["id"].isNull()) + resultObject.author.id = std::stol(authorNode["id"].asString()); + auto relatedPatchSetNode = value["relatedPatchSet"]; + if(!relatedPatchSetNode["patchSetNo"].isNull()) + resultObject.relatedPatchSet.patchSetNo = relatedPatchSetNode["patchSetNo"].asString(); + if(!relatedPatchSetNode["patchSetBizId"].isNull()) + resultObject.relatedPatchSet.patchSetBizId = relatedPatchSetNode["patchSetBizId"].asString(); + if(!relatedPatchSetNode["patchSetName"].isNull()) + resultObject.relatedPatchSet.patchSetName = relatedPatchSetNode["patchSetName"].asString(); + if(!relatedPatchSetNode["commitId"].isNull()) + resultObject.relatedPatchSet.commitId = relatedPatchSetNode["commitId"].asString(); + if(!relatedPatchSetNode["shortId"].isNull()) + resultObject.relatedPatchSet.shortId = relatedPatchSetNode["shortId"].asString(); + if(!relatedPatchSetNode["relatedMergeItemType"].isNull()) + resultObject.relatedPatchSet.relatedMergeItemType = relatedPatchSetNode["relatedMergeItemType"].asString(); + if(!relatedPatchSetNode["createdAt"].isNull()) + resultObject.relatedPatchSet.createdAt = relatedPatchSetNode["createdAt"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::vector ListMergeRequestCommentsResult::getresult()const +{ + return result_; +} + +std::string ListMergeRequestCommentsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListMergeRequestCommentsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMergeRequestCommentsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMergeRequestCommentsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListMergeRequestFilesReadsRequest.cc b/devops/src/model/ListMergeRequestFilesReadsRequest.cc new file mode 100644 index 000000000..27d62484a --- /dev/null +++ b/devops/src/model/ListMergeRequestFilesReadsRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListMergeRequestFilesReadsRequest; + +ListMergeRequestFilesReadsRequest::ListMergeRequestFilesReadsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/merge_requests/diffs/files_read_infos"}; + setMethod(HttpRequest::Method::Get); +} + +ListMergeRequestFilesReadsRequest::~ListMergeRequestFilesReadsRequest() {} + +std::string ListMergeRequestFilesReadsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListMergeRequestFilesReadsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListMergeRequestFilesReadsRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void ListMergeRequestFilesReadsRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string ListMergeRequestFilesReadsRequest::getAccessToken() const { + return accessToken_; +} + +void ListMergeRequestFilesReadsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string ListMergeRequestFilesReadsRequest::getToPatchSetBizId() const { + return toPatchSetBizId_; +} + +void ListMergeRequestFilesReadsRequest::setToPatchSetBizId(const std::string &toPatchSetBizId) { + toPatchSetBizId_ = toPatchSetBizId; + setParameter(std::string("toPatchSetBizId"), toPatchSetBizId); +} + +std::string ListMergeRequestFilesReadsRequest::getFromPatchSetBizId() const { + return fromPatchSetBizId_; +} + +void ListMergeRequestFilesReadsRequest::setFromPatchSetBizId(const std::string &fromPatchSetBizId) { + fromPatchSetBizId_ = fromPatchSetBizId; + setParameter(std::string("fromPatchSetBizId"), fromPatchSetBizId); +} + +long ListMergeRequestFilesReadsRequest::getLocalId() const { + return localId_; +} + +void ListMergeRequestFilesReadsRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/ListMergeRequestFilesReadsResult.cc b/devops/src/model/ListMergeRequestFilesReadsResult.cc new file mode 100644 index 000000000..bc7ef2962 --- /dev/null +++ b/devops/src/model/ListMergeRequestFilesReadsResult.cc @@ -0,0 +1,111 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListMergeRequestFilesReadsResult::ListMergeRequestFilesReadsResult() : + ServiceResult() +{} + +ListMergeRequestFilesReadsResult::ListMergeRequestFilesReadsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMergeRequestFilesReadsResult::~ListMergeRequestFilesReadsResult() +{} + +void ListMergeRequestFilesReadsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["oldFilePath"].isNull()) + resultObject.oldFilePath = valueresultresultItem["oldFilePath"].asString(); + if(!valueresultresultItem["newFilePath"].isNull()) + resultObject.newFilePath = valueresultresultItem["newFilePath"].asString(); + if(!valueresultresultItem["newFile"].isNull()) + resultObject.newFile = valueresultresultItem["newFile"].asString() == "true"; + if(!valueresultresultItem["renamedFile"].isNull()) + resultObject.renamedFile = valueresultresultItem["renamedFile"].asString(); + if(!valueresultresultItem["deletedFile"].isNull()) + resultObject.deletedFile = valueresultresultItem["deletedFile"].asString(); + auto allreadUsersNode = valueresultresultItem["readUsers"]["read_users"]; + for (auto valueresultresultItemreadUsersread_users : allreadUsersNode) + { + ResultItem::Read_users readUsersObject; + if(!valueresultresultItemreadUsersread_users["aliyunPk"].isNull()) + readUsersObject.aliyunPk = valueresultresultItemreadUsersread_users["aliyunPk"].asString(); + if(!valueresultresultItemreadUsersread_users["name"].isNull()) + readUsersObject.name = valueresultresultItemreadUsersread_users["name"].asString(); + if(!valueresultresultItemreadUsersread_users["username"].isNull()) + readUsersObject.username = valueresultresultItemreadUsersread_users["username"].asString(); + if(!valueresultresultItemreadUsersread_users["state"].isNull()) + readUsersObject.state = valueresultresultItemreadUsersread_users["state"].asString(); + if(!valueresultresultItemreadUsersread_users["avatarUrl"].isNull()) + readUsersObject.avatarUrl = valueresultresultItemreadUsersread_users["avatarUrl"].asString(); + if(!valueresultresultItemreadUsersread_users["email"].isNull()) + readUsersObject.email = valueresultresultItemreadUsersread_users["email"].asString(); + resultObject.readUsers.push_back(readUsersObject); + } + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::vector ListMergeRequestFilesReadsResult::getresult()const +{ + return result_; +} + +std::string ListMergeRequestFilesReadsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListMergeRequestFilesReadsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMergeRequestFilesReadsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMergeRequestFilesReadsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListMergeRequestLabelsRequest.cc b/devops/src/model/ListMergeRequestLabelsRequest.cc new file mode 100644 index 000000000..0c4091eb0 --- /dev/null +++ b/devops/src/model/ListMergeRequestLabelsRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListMergeRequestLabelsRequest; + +ListMergeRequestLabelsRequest::ListMergeRequestLabelsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/merge_requests/labels"}; + setMethod(HttpRequest::Method::Get); +} + +ListMergeRequestLabelsRequest::~ListMergeRequestLabelsRequest() {} + +std::string ListMergeRequestLabelsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListMergeRequestLabelsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListMergeRequestLabelsRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void ListMergeRequestLabelsRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string ListMergeRequestLabelsRequest::getAccessToken() const { + return accessToken_; +} + +void ListMergeRequestLabelsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long ListMergeRequestLabelsRequest::getLocalId() const { + return localId_; +} + +void ListMergeRequestLabelsRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/ListMergeRequestLabelsResult.cc b/devops/src/model/ListMergeRequestLabelsResult.cc new file mode 100644 index 000000000..be0b2334b --- /dev/null +++ b/devops/src/model/ListMergeRequestLabelsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListMergeRequestLabelsResult::ListMergeRequestLabelsResult() : + ServiceResult() +{} + +ListMergeRequestLabelsResult::ListMergeRequestLabelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMergeRequestLabelsResult::~ListMergeRequestLabelsResult() +{} + +void ListMergeRequestLabelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["cr_labels"]; + for (auto valueresultcr_labels : allresultNode) + { + Cr_labels resultObject; + if(!valueresultcr_labels["id"].isNull()) + resultObject.id = valueresultcr_labels["id"].asString(); + if(!valueresultcr_labels["name"].isNull()) + resultObject.name = valueresultcr_labels["name"].asString(); + if(!valueresultcr_labels["description"].isNull()) + resultObject.description = valueresultcr_labels["description"].asString(); + if(!valueresultcr_labels["color"].isNull()) + resultObject.color = valueresultcr_labels["color"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::vector ListMergeRequestLabelsResult::getresult()const +{ + return result_; +} + +std::string ListMergeRequestLabelsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListMergeRequestLabelsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMergeRequestLabelsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMergeRequestLabelsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListMergeRequestPatchSetsRequest.cc b/devops/src/model/ListMergeRequestPatchSetsRequest.cc new file mode 100644 index 000000000..aa14bbc96 --- /dev/null +++ b/devops/src/model/ListMergeRequestPatchSetsRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListMergeRequestPatchSetsRequest; + +ListMergeRequestPatchSetsRequest::ListMergeRequestPatchSetsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/merge_requests/diffs/list_patchsets"}; + setMethod(HttpRequest::Method::Get); +} + +ListMergeRequestPatchSetsRequest::~ListMergeRequestPatchSetsRequest() {} + +std::string ListMergeRequestPatchSetsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListMergeRequestPatchSetsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListMergeRequestPatchSetsRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void ListMergeRequestPatchSetsRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string ListMergeRequestPatchSetsRequest::getAccessToken() const { + return accessToken_; +} + +void ListMergeRequestPatchSetsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long ListMergeRequestPatchSetsRequest::getLocalId() const { + return localId_; +} + +void ListMergeRequestPatchSetsRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/ListMergeRequestPatchSetsResult.cc b/devops/src/model/ListMergeRequestPatchSetsResult.cc new file mode 100644 index 000000000..63fe76c62 --- /dev/null +++ b/devops/src/model/ListMergeRequestPatchSetsResult.cc @@ -0,0 +1,97 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListMergeRequestPatchSetsResult::ListMergeRequestPatchSetsResult() : + ServiceResult() +{} + +ListMergeRequestPatchSetsResult::ListMergeRequestPatchSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMergeRequestPatchSetsResult::~ListMergeRequestPatchSetsResult() +{} + +void ListMergeRequestPatchSetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["patchSetNo"].isNull()) + resultObject.patchSetNo = std::stol(valueresultresultItem["patchSetNo"].asString()); + if(!valueresultresultItem["patchSetBizId"].isNull()) + resultObject.patchSetBizId = valueresultresultItem["patchSetBizId"].asString(); + if(!valueresultresultItem["patchSetName"].isNull()) + resultObject.patchSetName = valueresultresultItem["patchSetName"].asString(); + if(!valueresultresultItem["commitId"].isNull()) + resultObject.commitId = valueresultresultItem["commitId"].asString(); + if(!valueresultresultItem["shortCommitId"].isNull()) + resultObject.shortCommitId = valueresultresultItem["shortCommitId"].asString(); + if(!valueresultresultItem["relatedMergeItemType"].isNull()) + resultObject.relatedMergeItemType = valueresultresultItem["relatedMergeItemType"].asString(); + if(!valueresultresultItem["createdAt"].isNull()) + resultObject.createdAt = valueresultresultItem["createdAt"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::vector ListMergeRequestPatchSetsResult::getresult()const +{ + return result_; +} + +std::string ListMergeRequestPatchSetsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListMergeRequestPatchSetsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMergeRequestPatchSetsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMergeRequestPatchSetsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListMergeRequestsRequest.cc b/devops/src/model/ListMergeRequestsRequest.cc new file mode 100644 index 000000000..470a9dbef --- /dev/null +++ b/devops/src/model/ListMergeRequestsRequest.cc @@ -0,0 +1,172 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListMergeRequestsRequest; + +ListMergeRequestsRequest::ListMergeRequestsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/merge_requests/advanced_search"}; + setMethod(HttpRequest::Method::Get); +} + +ListMergeRequestsRequest::~ListMergeRequestsRequest() {} + +std::string ListMergeRequestsRequest::getAccessToken() const { + return accessToken_; +} + +void ListMergeRequestsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string ListMergeRequestsRequest::getOrderBy() const { + return orderBy_; +} + +void ListMergeRequestsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("orderBy"), orderBy); +} + +std::string ListMergeRequestsRequest::getProjectIds() const { + return projectIds_; +} + +void ListMergeRequestsRequest::setProjectIds(const std::string &projectIds) { + projectIds_ = projectIds; + setParameter(std::string("projectIds"), projectIds); +} + +std::string ListMergeRequestsRequest::getSort() const { + return sort_; +} + +void ListMergeRequestsRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("sort"), sort); +} + +std::string ListMergeRequestsRequest::getCreatedAfter() const { + return createdAfter_; +} + +void ListMergeRequestsRequest::setCreatedAfter(const std::string &createdAfter) { + createdAfter_ = createdAfter; + setParameter(std::string("createdAfter"), createdAfter); +} + +std::string ListMergeRequestsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListMergeRequestsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListMergeRequestsRequest::getFilter() const { + return filter_; +} + +void ListMergeRequestsRequest::setFilter(const std::string &filter) { + filter_ = filter; + setParameter(std::string("filter"), filter); +} + +std::string ListMergeRequestsRequest::getCreatedBefore() const { + return createdBefore_; +} + +void ListMergeRequestsRequest::setCreatedBefore(const std::string &createdBefore) { + createdBefore_ = createdBefore; + setParameter(std::string("createdBefore"), createdBefore); +} + +std::string ListMergeRequestsRequest::getReviewerIds() const { + return reviewerIds_; +} + +void ListMergeRequestsRequest::setReviewerIds(const std::string &reviewerIds) { + reviewerIds_ = reviewerIds; + setParameter(std::string("reviewerIds"), reviewerIds); +} + +std::string ListMergeRequestsRequest::getSearch() const { + return search_; +} + +void ListMergeRequestsRequest::setSearch(const std::string &search) { + search_ = search; + setParameter(std::string("search"), search); +} + +std::string ListMergeRequestsRequest::getGroupIds() const { + return groupIds_; +} + +void ListMergeRequestsRequest::setGroupIds(const std::string &groupIds) { + groupIds_ = groupIds; + setParameter(std::string("groupIds"), groupIds); +} + +long ListMergeRequestsRequest::getPageSize() const { + return pageSize_; +} + +void ListMergeRequestsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListMergeRequestsRequest::getAuthorIds() const { + return authorIds_; +} + +void ListMergeRequestsRequest::setAuthorIds(const std::string &authorIds) { + authorIds_ = authorIds; + setParameter(std::string("authorIds"), authorIds); +} + +long ListMergeRequestsRequest::getPage() const { + return page_; +} + +void ListMergeRequestsRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + +std::string ListMergeRequestsRequest::getState() const { + return state_; +} + +void ListMergeRequestsRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("state"), state); +} + +std::string ListMergeRequestsRequest::getLabelIds() const { + return labelIds_; +} + +void ListMergeRequestsRequest::setLabelIds(const std::string &labelIds) { + labelIds_ = labelIds; + setParameter(std::string("labelIds"), labelIds); +} + diff --git a/devops/src/model/ListMergeRequestsResult.cc b/devops/src/model/ListMergeRequestsResult.cc new file mode 100644 index 000000000..26aec508f --- /dev/null +++ b/devops/src/model/ListMergeRequestsResult.cc @@ -0,0 +1,215 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListMergeRequestsResult::ListMergeRequestsResult() : + ServiceResult() +{} + +ListMergeRequestsResult::ListMergeRequestsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMergeRequestsResult::~ListMergeRequestsResult() +{} + +void ListMergeRequestsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["newMergeRequestIdentifier"].isNull()) + resultObject.newMergeRequestIdentifier = valueresultresultItem["newMergeRequestIdentifier"].asString() == "true"; + if(!valueresultresultItem["projectId"].isNull()) + resultObject.projectId = std::stol(valueresultresultItem["projectId"].asString()); + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["iid"].isNull()) + resultObject.iid = std::stol(valueresultresultItem["iid"].asString()); + if(!valueresultresultItem["mrBizId"].isNull()) + resultObject.mrBizId = valueresultresultItem["mrBizId"].asString(); + if(!valueresultresultItem["localId"].isNull()) + resultObject.localId = std::stol(valueresultresultItem["localId"].asString()); + if(!valueresultresultItem["title"].isNull()) + resultObject.title = valueresultresultItem["title"].asString(); + if(!valueresultresultItem["description"].isNull()) + resultObject.description = valueresultresultItem["description"].asString(); + if(!valueresultresultItem["state"].isNull()) + resultObject.state = valueresultresultItem["state"].asString(); + if(!valueresultresultItem["newVersionState"].isNull()) + resultObject.newVersionState = valueresultresultItem["newVersionState"].asString(); + if(!valueresultresultItem["createdAt"].isNull()) + resultObject.createdAt = valueresultresultItem["createdAt"].asString(); + if(!valueresultresultItem["updatedAt"].isNull()) + resultObject.updatedAt = valueresultresultItem["updatedAt"].asString(); + if(!valueresultresultItem["sourceBranch"].isNull()) + resultObject.sourceBranch = valueresultresultItem["sourceBranch"].asString(); + if(!valueresultresultItem["targetBranch"].isNull()) + resultObject.targetBranch = valueresultresultItem["targetBranch"].asString(); + if(!valueresultresultItem["sourceProjectId"].isNull()) + resultObject.sourceProjectId = std::stol(valueresultresultItem["sourceProjectId"].asString()); + if(!valueresultresultItem["targetProjectId"].isNull()) + resultObject.targetProjectId = std::stol(valueresultresultItem["targetProjectId"].asString()); + if(!valueresultresultItem["workInProgress"].isNull()) + resultObject.workInProgress = valueresultresultItem["workInProgress"].asString() == "true"; + if(!valueresultresultItem["detailUrl"].isNull()) + resultObject.detailUrl = valueresultresultItem["detailUrl"].asString(); + if(!valueresultresultItem["webUrl"].isNull()) + resultObject.webUrl = valueresultresultItem["webUrl"].asString(); + if(!valueresultresultItem["sshUrl"].isNull()) + resultObject.sshUrl = valueresultresultItem["sshUrl"].asString(); + if(!valueresultresultItem["creationMethod"].isNull()) + resultObject.creationMethod = valueresultresultItem["creationMethod"].asString(); + if(!valueresultresultItem["sourceType"].isNull()) + resultObject.sourceType = valueresultresultItem["sourceType"].asString(); + if(!valueresultresultItem["targetType"].isNull()) + resultObject.targetType = valueresultresultItem["targetType"].asString(); + if(!valueresultresultItem["nameWithNamespace"].isNull()) + resultObject.nameWithNamespace = valueresultresultItem["nameWithNamespace"].asString(); + if(!valueresultresultItem["supportMergeFFOnly"].isNull()) + resultObject.supportMergeFFOnly = valueresultresultItem["supportMergeFFOnly"].asString() == "true"; + if(!valueresultresultItem["mergedRevision"].isNull()) + resultObject.mergedRevision = valueresultresultItem["mergedRevision"].asString(); + auto allreviewersNode = valueresultresultItem["reviewers"]["assignees"]; + for (auto valueresultresultItemreviewersassignees : allreviewersNode) + { + ResultItem::Assignees reviewersObject; + if(!valueresultresultItemreviewersassignees["id"].isNull()) + reviewersObject.id = std::stol(valueresultresultItemreviewersassignees["id"].asString()); + if(!valueresultresultItemreviewersassignees["name"].isNull()) + reviewersObject.name = valueresultresultItemreviewersassignees["name"].asString(); + if(!valueresultresultItemreviewersassignees["username"].isNull()) + reviewersObject.username = valueresultresultItemreviewersassignees["username"].asString(); + if(!valueresultresultItemreviewersassignees["state"].isNull()) + reviewersObject.state = valueresultresultItemreviewersassignees["state"].asString(); + if(!valueresultresultItemreviewersassignees["avatarUrl"].isNull()) + reviewersObject.avatarUrl = valueresultresultItemreviewersassignees["avatarUrl"].asString(); + if(!valueresultresultItemreviewersassignees["email"].isNull()) + reviewersObject.email = valueresultresultItemreviewersassignees["email"].asString(); + if(!valueresultresultItemreviewersassignees["status"].isNull()) + reviewersObject.status = valueresultresultItemreviewersassignees["status"].asString(); + if(!valueresultresultItemreviewersassignees["reviewTime"].isNull()) + reviewersObject.reviewTime = valueresultresultItemreviewersassignees["reviewTime"].asString(); + if(!valueresultresultItemreviewersassignees["hasReviewed"].isNull()) + reviewersObject.hasReviewed = valueresultresultItemreviewersassignees["hasReviewed"].asString() == "true"; + if(!valueresultresultItemreviewersassignees["hasCommented"].isNull()) + reviewersObject.hasCommented = valueresultresultItemreviewersassignees["hasCommented"].asString() == "true"; + if(!valueresultresultItemreviewersassignees["reviewOpinionStatus"].isNull()) + reviewersObject.reviewOpinionStatus = valueresultresultItemreviewersassignees["reviewOpinionStatus"].asString(); + resultObject.reviewers.push_back(reviewersObject); + } + auto allsubscribersNode = valueresultresultItem["subscribers"]["subscribersItem"]; + for (auto valueresultresultItemsubscriberssubscribersItem : allsubscribersNode) + { + ResultItem::SubscribersItem subscribersObject; + if(!valueresultresultItemsubscriberssubscribersItem["id"].isNull()) + subscribersObject.id = std::stol(valueresultresultItemsubscriberssubscribersItem["id"].asString()); + if(!valueresultresultItemsubscriberssubscribersItem["name"].isNull()) + subscribersObject.name = valueresultresultItemsubscriberssubscribersItem["name"].asString(); + if(!valueresultresultItemsubscriberssubscribersItem["username"].isNull()) + subscribersObject.username = valueresultresultItemsubscriberssubscribersItem["username"].asString(); + if(!valueresultresultItemsubscriberssubscribersItem["state"].isNull()) + subscribersObject.state = valueresultresultItemsubscriberssubscribersItem["state"].asString(); + if(!valueresultresultItemsubscriberssubscribersItem["avatarUrl"].isNull()) + subscribersObject.avatarUrl = valueresultresultItemsubscriberssubscribersItem["avatarUrl"].asString(); + if(!valueresultresultItemsubscriberssubscribersItem["email"].isNull()) + subscribersObject.email = valueresultresultItemsubscriberssubscribersItem["email"].asString(); + resultObject.subscribers.push_back(subscribersObject); + } + auto alllabelsNode = valueresultresultItem["labels"]["node_labels"]; + for (auto valueresultresultItemlabelsnode_labels : alllabelsNode) + { + ResultItem::Node_labels labelsObject; + if(!valueresultresultItemlabelsnode_labels["id"].isNull()) + labelsObject.id = valueresultresultItemlabelsnode_labels["id"].asString(); + if(!valueresultresultItemlabelsnode_labels["name"].isNull()) + labelsObject.name = valueresultresultItemlabelsnode_labels["name"].asString(); + if(!valueresultresultItemlabelsnode_labels["color"].isNull()) + labelsObject.color = valueresultresultItemlabelsnode_labels["color"].asString(); + if(!valueresultresultItemlabelsnode_labels["description"].isNull()) + labelsObject.description = valueresultresultItemlabelsnode_labels["description"].asString(); + resultObject.labels.push_back(labelsObject); + } + auto authorNode = value["author"]; + if(!authorNode["id"].isNull()) + resultObject.author.id = std::stol(authorNode["id"].asString()); + if(!authorNode["name"].isNull()) + resultObject.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + resultObject.author.username = authorNode["username"].asString(); + if(!authorNode["state"].isNull()) + resultObject.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + resultObject.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["email"].isNull()) + resultObject.author.email = authorNode["email"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListMergeRequestsResult::getresult()const +{ + return result_; +} + +std::string ListMergeRequestsResult::getRequestId()const +{ + return requestId_; +} + +long ListMergeRequestsResult::getTotal()const +{ + return total_; +} + +std::string ListMergeRequestsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMergeRequestsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMergeRequestsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListOrganizationMembersRequest.cc b/devops/src/model/ListOrganizationMembersRequest.cc new file mode 100644 index 000000000..4aabf76c5 --- /dev/null +++ b/devops/src/model/ListOrganizationMembersRequest.cc @@ -0,0 +1,118 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListOrganizationMembersRequest; + +ListOrganizationMembersRequest::ListOrganizationMembersRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/members"}; + setMethod(HttpRequest::Method::Get); +} + +ListOrganizationMembersRequest::~ListOrganizationMembersRequest() {} + +std::string ListOrganizationMembersRequest::getExternUid() const { + return externUid_; +} + +void ListOrganizationMembersRequest::setExternUid(const std::string &externUid) { + externUid_ = externUid; + setParameter(std::string("externUid"), externUid); +} + +std::string ListOrganizationMembersRequest::getOrganizationId() const { + return organizationId_; +} + +void ListOrganizationMembersRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListOrganizationMembersRequest::getOrganizationMemberName() const { + return organizationMemberName_; +} + +void ListOrganizationMembersRequest::setOrganizationMemberName(const std::string &organizationMemberName) { + organizationMemberName_ = organizationMemberName; + setParameter(std::string("organizationMemberName"), organizationMemberName); +} + +long ListOrganizationMembersRequest::getJoinTimeFrom() const { + return joinTimeFrom_; +} + +void ListOrganizationMembersRequest::setJoinTimeFrom(long joinTimeFrom) { + joinTimeFrom_ = joinTimeFrom; + setParameter(std::string("joinTimeFrom"), std::to_string(joinTimeFrom)); +} + +std::string ListOrganizationMembersRequest::getProvider() const { + return provider_; +} + +void ListOrganizationMembersRequest::setProvider(const std::string &provider) { + provider_ = provider; + setParameter(std::string("provider"), provider); +} + +std::string ListOrganizationMembersRequest::getNextToken() const { + return nextToken_; +} + +void ListOrganizationMembersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +long ListOrganizationMembersRequest::getJoinTimeTo() const { + return joinTimeTo_; +} + +void ListOrganizationMembersRequest::setJoinTimeTo(long joinTimeTo) { + joinTimeTo_ = joinTimeTo; + setParameter(std::string("joinTimeTo"), std::to_string(joinTimeTo)); +} + +long ListOrganizationMembersRequest::getMaxResults() const { + return maxResults_; +} + +void ListOrganizationMembersRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + +std::string ListOrganizationMembersRequest::getState() const { + return state_; +} + +void ListOrganizationMembersRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("state"), state); +} + +bool ListOrganizationMembersRequest::getContainsExternInfo() const { + return containsExternInfo_; +} + +void ListOrganizationMembersRequest::setContainsExternInfo(bool containsExternInfo) { + containsExternInfo_ = containsExternInfo; + setParameter(std::string("containsExternInfo"), containsExternInfo ? "true" : "false"); +} + diff --git a/devops/src/model/ListOrganizationMembersResult.cc b/devops/src/model/ListOrganizationMembersResult.cc new file mode 100644 index 000000000..4befff2a1 --- /dev/null +++ b/devops/src/model/ListOrganizationMembersResult.cc @@ -0,0 +1,129 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListOrganizationMembersResult::ListOrganizationMembersResult() : + ServiceResult() +{} + +ListOrganizationMembersResult::ListOrganizationMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOrganizationMembersResult::~ListOrganizationMembersResult() +{} + +void ListOrganizationMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allmembersNode = value["members"]["Member"]; + for (auto valuemembersMember : allmembersNode) + { + Member membersObject; + if(!valuemembersMember["accountId"].isNull()) + membersObject.accountId = valuemembersMember["accountId"].asString(); + if(!valuemembersMember["birthday"].isNull()) + membersObject.birthday = std::stol(valuemembersMember["birthday"].asString()); + if(!valuemembersMember["email"].isNull()) + membersObject.email = valuemembersMember["email"].asString(); + if(!valuemembersMember["hiredDate"].isNull()) + membersObject.hiredDate = std::stol(valuemembersMember["hiredDate"].asString()); + if(!valuemembersMember["joinTime"].isNull()) + membersObject.joinTime = std::stol(valuemembersMember["joinTime"].asString()); + if(!valuemembersMember["lastVisitTime"].isNull()) + membersObject.lastVisitTime = std::stol(valuemembersMember["lastVisitTime"].asString()); + if(!valuemembersMember["mobile"].isNull()) + membersObject.mobile = valuemembersMember["mobile"].asString(); + if(!valuemembersMember["organizationMemberName"].isNull()) + membersObject.organizationMemberName = valuemembersMember["organizationMemberName"].asString(); + if(!valuemembersMember["organizationRoleName"].isNull()) + membersObject.organizationRoleName = valuemembersMember["organizationRoleName"].asString(); + if(!valuemembersMember["organizationRoleId"].isNull()) + membersObject.organizationRoleId = valuemembersMember["organizationRoleId"].asString(); + if(!valuemembersMember["state"].isNull()) + membersObject.state = valuemembersMember["state"].asString(); + if(!valuemembersMember["jobNumber"].isNull()) + membersObject.jobNumber = valuemembersMember["jobNumber"].asString(); + auto identitiesNode = value["identities"]; + if(!identitiesNode["externUid"].isNull()) + membersObject.identities.externUid = identitiesNode["externUid"].asString(); + if(!identitiesNode["provider"].isNull()) + membersObject.identities.provider = identitiesNode["provider"].asString(); + auto allDeptLists = value["deptLists"]["部门名称"]; + for (auto value : allDeptLists) + membersObject.deptLists.push_back(value.asString()); + members_.push_back(membersObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + +} + +long ListOrganizationMembersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListOrganizationMembersResult::getRequestId()const +{ + return requestId_; +} + +std::string ListOrganizationMembersResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListOrganizationMembersResult::getmembers()const +{ + return members_; +} + +std::string ListOrganizationMembersResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListOrganizationMembersResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListOrganizationMembersResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListOrganizationsRequest.cc b/devops/src/model/ListOrganizationsRequest.cc new file mode 100644 index 000000000..12d4a7653 --- /dev/null +++ b/devops/src/model/ListOrganizationsRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListOrganizationsRequest; + +ListOrganizationsRequest::ListOrganizationsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organizations/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListOrganizationsRequest::~ListOrganizationsRequest() {} + +int ListOrganizationsRequest::getAccessLevel() const { + return accessLevel_; +} + +void ListOrganizationsRequest::setAccessLevel(int accessLevel) { + accessLevel_ = accessLevel; + setParameter(std::string("accessLevel"), std::to_string(accessLevel)); +} + +int ListOrganizationsRequest::getMinAccessLevel() const { + return minAccessLevel_; +} + +void ListOrganizationsRequest::setMinAccessLevel(int minAccessLevel) { + minAccessLevel_ = minAccessLevel; + setParameter(std::string("minAccessLevel"), std::to_string(minAccessLevel)); +} + diff --git a/devops/src/model/ListOrganizationsResult.cc b/devops/src/model/ListOrganizationsResult.cc new file mode 100644 index 000000000..8847a6e1e --- /dev/null +++ b/devops/src/model/ListOrganizationsResult.cc @@ -0,0 +1,104 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListOrganizationsResult::ListOrganizationsResult() : + ServiceResult() +{} + +ListOrganizationsResult::ListOrganizationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOrganizationsResult::~ListOrganizationsResult() +{} + +void ListOrganizationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["accessLevel"].isNull()) + resultObject.accessLevel = std::stoi(valueresultresultItem["accessLevel"].asString()); + if(!valueresultresultItem["organizationId"].isNull()) + resultObject.organizationId = valueresultresultItem["organizationId"].asString(); + if(!valueresultresultItem["organizationName"].isNull()) + resultObject.organizationName = valueresultresultItem["organizationName"].asString(); + if(!valueresultresultItem["organizationRole"].isNull()) + resultObject.organizationRole = valueresultresultItem["organizationRole"].asString(); + if(!valueresultresultItem["organizationAlias"].isNull()) + resultObject.organizationAlias = valueresultresultItem["organizationAlias"].asString(); + if(!valueresultresultItem["namespaceId"].isNull()) + resultObject.namespaceId = valueresultresultItem["namespaceId"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector ListOrganizationsResult::getresult()const +{ + return result_; +} + +std::string ListOrganizationsResult::getRequestId()const +{ + return requestId_; +} + +long ListOrganizationsResult::getTotal()const +{ + return total_; +} + +std::string ListOrganizationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListOrganizationsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListOrganizationsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListPipelineGroupPipelinesRequest.cc b/devops/src/model/ListPipelineGroupPipelinesRequest.cc new file mode 100644 index 000000000..5647689d5 --- /dev/null +++ b/devops/src/model/ListPipelineGroupPipelinesRequest.cc @@ -0,0 +1,118 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListPipelineGroupPipelinesRequest; + +ListPipelineGroupPipelinesRequest::ListPipelineGroupPipelinesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelineGroups/[groupId]/pipelines"}; + setMethod(HttpRequest::Method::Get); +} + +ListPipelineGroupPipelinesRequest::~ListPipelineGroupPipelinesRequest() {} + +std::string ListPipelineGroupPipelinesRequest::getPipelineName() const { + return pipelineName_; +} + +void ListPipelineGroupPipelinesRequest::setPipelineName(const std::string &pipelineName) { + pipelineName_ = pipelineName; + setParameter(std::string("pipelineName"), pipelineName); +} + +std::string ListPipelineGroupPipelinesRequest::getResultStatusList() const { + return resultStatusList_; +} + +void ListPipelineGroupPipelinesRequest::setResultStatusList(const std::string &resultStatusList) { + resultStatusList_ = resultStatusList; + setParameter(std::string("resultStatusList"), resultStatusList); +} + +long ListPipelineGroupPipelinesRequest::getGroupId() const { + return groupId_; +} + +void ListPipelineGroupPipelinesRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +long ListPipelineGroupPipelinesRequest::getExecuteEndTime() const { + return executeEndTime_; +} + +void ListPipelineGroupPipelinesRequest::setExecuteEndTime(long executeEndTime) { + executeEndTime_ = executeEndTime; + setParameter(std::string("executeEndTime"), std::to_string(executeEndTime)); +} + +long ListPipelineGroupPipelinesRequest::getCreateStartTime() const { + return createStartTime_; +} + +void ListPipelineGroupPipelinesRequest::setCreateStartTime(long createStartTime) { + createStartTime_ = createStartTime; + setParameter(std::string("createStartTime"), std::to_string(createStartTime)); +} + +std::string ListPipelineGroupPipelinesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListPipelineGroupPipelinesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListPipelineGroupPipelinesRequest::getNextToken() const { + return nextToken_; +} + +void ListPipelineGroupPipelinesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +long ListPipelineGroupPipelinesRequest::getMaxResults() const { + return maxResults_; +} + +void ListPipelineGroupPipelinesRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + +long ListPipelineGroupPipelinesRequest::getExecuteStartTime() const { + return executeStartTime_; +} + +void ListPipelineGroupPipelinesRequest::setExecuteStartTime(long executeStartTime) { + executeStartTime_ = executeStartTime; + setParameter(std::string("executeStartTime"), std::to_string(executeStartTime)); +} + +long ListPipelineGroupPipelinesRequest::getCreateEndTime() const { + return createEndTime_; +} + +void ListPipelineGroupPipelinesRequest::setCreateEndTime(long createEndTime) { + createEndTime_ = createEndTime; + setParameter(std::string("createEndTime"), std::to_string(createEndTime)); +} + diff --git a/devops/src/model/ListPipelineGroupPipelinesResult.cc b/devops/src/model/ListPipelineGroupPipelinesResult.cc new file mode 100644 index 000000000..60fe1235e --- /dev/null +++ b/devops/src/model/ListPipelineGroupPipelinesResult.cc @@ -0,0 +1,103 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListPipelineGroupPipelinesResult::ListPipelineGroupPipelinesResult() : + ServiceResult() +{} + +ListPipelineGroupPipelinesResult::ListPipelineGroupPipelinesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPipelineGroupPipelinesResult::~ListPipelineGroupPipelinesResult() +{} + +void ListPipelineGroupPipelinesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allpipelinesNode = value["pipelines"]["pipeline"]; + for (auto valuepipelinespipeline : allpipelinesNode) + { + Pipeline pipelinesObject; + if(!valuepipelinespipeline["pipelineName"].isNull()) + pipelinesObject.pipelineName = valuepipelinespipeline["pipelineName"].asString(); + if(!valuepipelinespipeline["createTime"].isNull()) + pipelinesObject.createTime = std::stol(valuepipelinespipeline["createTime"].asString()); + if(!valuepipelinespipeline["pipelineId"].isNull()) + pipelinesObject.pipelineId = std::stol(valuepipelinespipeline["pipelineId"].asString()); + pipelines_.push_back(pipelinesObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + +} + +int ListPipelineGroupPipelinesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListPipelineGroupPipelinesResult::getpipelines()const +{ + return pipelines_; +} + +std::string ListPipelineGroupPipelinesResult::getRequestId()const +{ + return requestId_; +} + +std::string ListPipelineGroupPipelinesResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListPipelineGroupPipelinesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPipelineGroupPipelinesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListPipelineGroupPipelinesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListPipelineGroupsRequest.cc b/devops/src/model/ListPipelineGroupsRequest.cc new file mode 100644 index 000000000..711ba2499 --- /dev/null +++ b/devops/src/model/ListPipelineGroupsRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListPipelineGroupsRequest; + +ListPipelineGroupsRequest::ListPipelineGroupsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelineGroups"}; + setMethod(HttpRequest::Method::Get); +} + +ListPipelineGroupsRequest::~ListPipelineGroupsRequest() {} + +std::string ListPipelineGroupsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListPipelineGroupsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListPipelineGroupsRequest::getNextToken() const { + return nextToken_; +} + +void ListPipelineGroupsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +long ListPipelineGroupsRequest::getMaxResults() const { + return maxResults_; +} + +void ListPipelineGroupsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + diff --git a/devops/src/model/ListPipelineGroupsResult.cc b/devops/src/model/ListPipelineGroupsResult.cc new file mode 100644 index 000000000..b7227a02c --- /dev/null +++ b/devops/src/model/ListPipelineGroupsResult.cc @@ -0,0 +1,103 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListPipelineGroupsResult::ListPipelineGroupsResult() : + ServiceResult() +{} + +ListPipelineGroupsResult::ListPipelineGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPipelineGroupsResult::~ListPipelineGroupsResult() +{} + +void ListPipelineGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allpipelineGroupsNode = value["pipelineGroups"]["pieplineGroup"]; + for (auto valuepipelineGroupspieplineGroup : allpipelineGroupsNode) + { + PieplineGroup pipelineGroupsObject; + if(!valuepipelineGroupspieplineGroup["name"].isNull()) + pipelineGroupsObject.name = valuepipelineGroupspieplineGroup["name"].asString(); + if(!valuepipelineGroupspieplineGroup["id"].isNull()) + pipelineGroupsObject.id = std::stol(valuepipelineGroupspieplineGroup["id"].asString()); + if(!valuepipelineGroupspieplineGroup["createTime"].isNull()) + pipelineGroupsObject.createTime = std::stol(valuepipelineGroupspieplineGroup["createTime"].asString()); + pipelineGroups_.push_back(pipelineGroupsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + +} + +int ListPipelineGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListPipelineGroupsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListPipelineGroupsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListPipelineGroupsResult::getpipelineGroups()const +{ + return pipelineGroups_; +} + +std::string ListPipelineGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPipelineGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListPipelineGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListPipelineJobHistorysRequest.cc b/devops/src/model/ListPipelineJobHistorysRequest.cc new file mode 100644 index 000000000..993d0051b --- /dev/null +++ b/devops/src/model/ListPipelineJobHistorysRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListPipelineJobHistorysRequest; + +ListPipelineJobHistorysRequest::ListPipelineJobHistorysRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipeline/[pipelineId]/job/historys"}; + setMethod(HttpRequest::Method::Post); +} + +ListPipelineJobHistorysRequest::~ListPipelineJobHistorysRequest() {} + +std::string ListPipelineJobHistorysRequest::getIdentifier() const { + return identifier_; +} + +void ListPipelineJobHistorysRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("identifier"), identifier); +} + +std::string ListPipelineJobHistorysRequest::getPipelineId() const { + return pipelineId_; +} + +void ListPipelineJobHistorysRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), pipelineId); +} + +std::string ListPipelineJobHistorysRequest::getOrganizationId() const { + return organizationId_; +} + +void ListPipelineJobHistorysRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListPipelineJobHistorysRequest::getNextToken() const { + return nextToken_; +} + +void ListPipelineJobHistorysRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +long ListPipelineJobHistorysRequest::getMaxResults() const { + return maxResults_; +} + +void ListPipelineJobHistorysRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + +std::string ListPipelineJobHistorysRequest::getCategory() const { + return category_; +} + +void ListPipelineJobHistorysRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("category"), category); +} + diff --git a/devops/src/model/ListPipelineJobHistorysResult.cc b/devops/src/model/ListPipelineJobHistorysResult.cc new file mode 100644 index 000000000..aed4a70bd --- /dev/null +++ b/devops/src/model/ListPipelineJobHistorysResult.cc @@ -0,0 +1,115 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListPipelineJobHistorysResult::ListPipelineJobHistorysResult() : + ServiceResult() +{} + +ListPipelineJobHistorysResult::ListPipelineJobHistorysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPipelineJobHistorysResult::~ListPipelineJobHistorysResult() +{} + +void ListPipelineJobHistorysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alljobsNode = value["jobs"]["job"]; + for (auto valuejobsjob : alljobsNode) + { + Job jobsObject; + if(!valuejobsjob["jobName"].isNull()) + jobsObject.jobName = valuejobsjob["jobName"].asString(); + if(!valuejobsjob["identifier"].isNull()) + jobsObject.identifier = valuejobsjob["identifier"].asString(); + if(!valuejobsjob["pipelineId"].isNull()) + jobsObject.pipelineId = std::stol(valuejobsjob["pipelineId"].asString()); + if(!valuejobsjob["executeNumber"].isNull()) + jobsObject.executeNumber = std::stoi(valuejobsjob["executeNumber"].asString()); + if(!valuejobsjob["jobId"].isNull()) + jobsObject.jobId = std::stol(valuejobsjob["jobId"].asString()); + if(!valuejobsjob["pipelineRunId"].isNull()) + jobsObject.pipelineRunId = std::stol(valuejobsjob["pipelineRunId"].asString()); + if(!valuejobsjob["sources"].isNull()) + jobsObject.sources = valuejobsjob["sources"].asString(); + if(!valuejobsjob["status"].isNull()) + jobsObject.status = valuejobsjob["status"].asString(); + if(!valuejobsjob["operatorAccountId"].isNull()) + jobsObject.operatorAccountId = valuejobsjob["operatorAccountId"].asString(); + jobs_.push_back(jobsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + +} + +int ListPipelineJobHistorysResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListPipelineJobHistorysResult::getRequestId()const +{ + return requestId_; +} + +std::string ListPipelineJobHistorysResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListPipelineJobHistorysResult::getjobs()const +{ + return jobs_; +} + +std::string ListPipelineJobHistorysResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPipelineJobHistorysResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListPipelineJobHistorysResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListPipelineJobsRequest.cc b/devops/src/model/ListPipelineJobsRequest.cc new file mode 100644 index 000000000..e705c88d6 --- /dev/null +++ b/devops/src/model/ListPipelineJobsRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListPipelineJobsRequest; + +ListPipelineJobsRequest::ListPipelineJobsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipeline/[pipelineId]/jobs"}; + setMethod(HttpRequest::Method::Post); +} + +ListPipelineJobsRequest::~ListPipelineJobsRequest() {} + +std::string ListPipelineJobsRequest::getPipelineId() const { + return pipelineId_; +} + +void ListPipelineJobsRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), pipelineId); +} + +std::string ListPipelineJobsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListPipelineJobsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListPipelineJobsRequest::getCategory() const { + return category_; +} + +void ListPipelineJobsRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("category"), category); +} + diff --git a/devops/src/model/ListPipelineJobsResult.cc b/devops/src/model/ListPipelineJobsResult.cc new file mode 100644 index 000000000..6d939cca3 --- /dev/null +++ b/devops/src/model/ListPipelineJobsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListPipelineJobsResult::ListPipelineJobsResult() : + ServiceResult() +{} + +ListPipelineJobsResult::ListPipelineJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPipelineJobsResult::~ListPipelineJobsResult() +{} + +void ListPipelineJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alljobsNode = value["jobs"]["job"]; + for (auto valuejobsjob : alljobsNode) + { + Job jobsObject; + if(!valuejobsjob["jobName"].isNull()) + jobsObject.jobName = valuejobsjob["jobName"].asString(); + if(!valuejobsjob["identifier"].isNull()) + jobsObject.identifier = valuejobsjob["identifier"].asString(); + if(!valuejobsjob["lastJobId"].isNull()) + jobsObject.lastJobId = std::stol(valuejobsjob["lastJobId"].asString()); + if(!valuejobsjob["lastJobParams"].isNull()) + jobsObject.lastJobParams = valuejobsjob["lastJobParams"].asString(); + jobs_.push_back(jobsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string ListPipelineJobsResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListPipelineJobsResult::getjobs()const +{ + return jobs_; +} + +std::string ListPipelineJobsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPipelineJobsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListPipelineJobsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListPipelineRelationsRequest.cc b/devops/src/model/ListPipelineRelationsRequest.cc new file mode 100644 index 000000000..e6cc1cd64 --- /dev/null +++ b/devops/src/model/ListPipelineRelationsRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListPipelineRelationsRequest; + +ListPipelineRelationsRequest::ListPipelineRelationsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/[pipelineId]/pipelineRelations"}; + setMethod(HttpRequest::Method::Get); +} + +ListPipelineRelationsRequest::~ListPipelineRelationsRequest() {} + +std::string ListPipelineRelationsRequest::getRelObjectType() const { + return relObjectType_; +} + +void ListPipelineRelationsRequest::setRelObjectType(const std::string &relObjectType) { + relObjectType_ = relObjectType; + setParameter(std::string("relObjectType"), relObjectType); +} + +long ListPipelineRelationsRequest::getPipelineId() const { + return pipelineId_; +} + +void ListPipelineRelationsRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string ListPipelineRelationsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListPipelineRelationsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/ListPipelineRelationsResult.cc b/devops/src/model/ListPipelineRelationsResult.cc new file mode 100644 index 000000000..b96a299c1 --- /dev/null +++ b/devops/src/model/ListPipelineRelationsResult.cc @@ -0,0 +1,85 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListPipelineRelationsResult::ListPipelineRelationsResult() : + ServiceResult() +{} + +ListPipelineRelationsResult::ListPipelineRelationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPipelineRelationsResult::~ListPipelineRelationsResult() +{} + +void ListPipelineRelationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allpipelineRelationsNode = value["pipelineRelations"]["pipelineRelation"]; + for (auto valuepipelineRelationspipelineRelation : allpipelineRelationsNode) + { + PipelineRelation pipelineRelationsObject; + if(!valuepipelineRelationspipelineRelation["refObjectId"].isNull()) + pipelineRelationsObject.refObjectId = std::stol(valuepipelineRelationspipelineRelation["refObjectId"].asString()); + pipelineRelations_.push_back(pipelineRelationsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListPipelineRelationsResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListPipelineRelationsResult::getpipelineRelations()const +{ + return pipelineRelations_; +} + +std::string ListPipelineRelationsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPipelineRelationsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListPipelineRelationsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListPipelineRunsRequest.cc b/devops/src/model/ListPipelineRunsRequest.cc new file mode 100644 index 000000000..ddc3ebe1a --- /dev/null +++ b/devops/src/model/ListPipelineRunsRequest.cc @@ -0,0 +1,100 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListPipelineRunsRequest; + +ListPipelineRunsRequest::ListPipelineRunsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/pipelineRuns"}; + setMethod(HttpRequest::Method::Get); +} + +ListPipelineRunsRequest::~ListPipelineRunsRequest() {} + +long ListPipelineRunsRequest::getEndTime() const { + return endTime_; +} + +void ListPipelineRunsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), std::to_string(endTime)); +} + +long ListPipelineRunsRequest::getStartTime() const { + return startTime_; +} + +void ListPipelineRunsRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), std::to_string(startTime)); +} + +long ListPipelineRunsRequest::getPipelineId() const { + return pipelineId_; +} + +void ListPipelineRunsRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +int ListPipelineRunsRequest::getTriggerMode() const { + return triggerMode_; +} + +void ListPipelineRunsRequest::setTriggerMode(int triggerMode) { + triggerMode_ = triggerMode; + setParameter(std::string("triggerMode"), std::to_string(triggerMode)); +} + +std::string ListPipelineRunsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListPipelineRunsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListPipelineRunsRequest::getNextToken() const { + return nextToken_; +} + +void ListPipelineRunsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +long ListPipelineRunsRequest::getMaxResults() const { + return maxResults_; +} + +void ListPipelineRunsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + +std::string ListPipelineRunsRequest::getStatus() const { + return status_; +} + +void ListPipelineRunsRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("status"), status); +} + diff --git a/devops/src/model/ListPipelineRunsResult.cc b/devops/src/model/ListPipelineRunsResult.cc new file mode 100644 index 000000000..8b963f17e --- /dev/null +++ b/devops/src/model/ListPipelineRunsResult.cc @@ -0,0 +1,111 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListPipelineRunsResult::ListPipelineRunsResult() : + ServiceResult() +{} + +ListPipelineRunsResult::ListPipelineRunsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPipelineRunsResult::~ListPipelineRunsResult() +{} + +void ListPipelineRunsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allpipelineRunsNode = value["pipelineRuns"]["PipelineRun"]; + for (auto valuepipelineRunsPipelineRun : allpipelineRunsNode) + { + PipelineRun pipelineRunsObject; + if(!valuepipelineRunsPipelineRun["pipelineId"].isNull()) + pipelineRunsObject.pipelineId = std::stol(valuepipelineRunsPipelineRun["pipelineId"].asString()); + if(!valuepipelineRunsPipelineRun["startTime"].isNull()) + pipelineRunsObject.startTime = std::stol(valuepipelineRunsPipelineRun["startTime"].asString()); + if(!valuepipelineRunsPipelineRun["creatorAccountId"].isNull()) + pipelineRunsObject.creatorAccountId = valuepipelineRunsPipelineRun["creatorAccountId"].asString(); + if(!valuepipelineRunsPipelineRun["endTime"].isNull()) + pipelineRunsObject.endTime = std::stol(valuepipelineRunsPipelineRun["endTime"].asString()); + if(!valuepipelineRunsPipelineRun["pipelineRunId"].isNull()) + pipelineRunsObject.pipelineRunId = std::stol(valuepipelineRunsPipelineRun["pipelineRunId"].asString()); + if(!valuepipelineRunsPipelineRun["triggerMode"].isNull()) + pipelineRunsObject.triggerMode = std::stol(valuepipelineRunsPipelineRun["triggerMode"].asString()); + if(!valuepipelineRunsPipelineRun["status"].isNull()) + pipelineRunsObject.status = valuepipelineRunsPipelineRun["status"].asString(); + pipelineRuns_.push_back(pipelineRunsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + +} + +long ListPipelineRunsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListPipelineRunsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListPipelineRunsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListPipelineRunsResult::getpipelineRuns()const +{ + return pipelineRuns_; +} + +std::string ListPipelineRunsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPipelineRunsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListPipelineRunsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListPipelinesRequest.cc b/devops/src/model/ListPipelinesRequest.cc new file mode 100644 index 000000000..386a68b3a --- /dev/null +++ b/devops/src/model/ListPipelinesRequest.cc @@ -0,0 +1,127 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListPipelinesRequest; + +ListPipelinesRequest::ListPipelinesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines"}; + setMethod(HttpRequest::Method::Get); +} + +ListPipelinesRequest::~ListPipelinesRequest() {} + +std::string ListPipelinesRequest::getPipelineName() const { + return pipelineName_; +} + +void ListPipelinesRequest::setPipelineName(const std::string &pipelineName) { + pipelineName_ = pipelineName; + setParameter(std::string("pipelineName"), pipelineName); +} + +std::string ListPipelinesRequest::getStatusList() const { + return statusList_; +} + +void ListPipelinesRequest::setStatusList(const std::string &statusList) { + statusList_ = statusList; + setParameter(std::string("statusList"), statusList); +} + +std::string ListPipelinesRequest::getCreatorAccountIds() const { + return creatorAccountIds_; +} + +void ListPipelinesRequest::setCreatorAccountIds(const std::string &creatorAccountIds) { + creatorAccountIds_ = creatorAccountIds; + setParameter(std::string("creatorAccountIds"), creatorAccountIds); +} + +long ListPipelinesRequest::getExecuteEndTime() const { + return executeEndTime_; +} + +void ListPipelinesRequest::setExecuteEndTime(long executeEndTime) { + executeEndTime_ = executeEndTime; + setParameter(std::string("executeEndTime"), std::to_string(executeEndTime)); +} + +long ListPipelinesRequest::getCreateStartTime() const { + return createStartTime_; +} + +void ListPipelinesRequest::setCreateStartTime(long createStartTime) { + createStartTime_ = createStartTime; + setParameter(std::string("createStartTime"), std::to_string(createStartTime)); +} + +std::string ListPipelinesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListPipelinesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListPipelinesRequest::getExecuteAccountIds() const { + return executeAccountIds_; +} + +void ListPipelinesRequest::setExecuteAccountIds(const std::string &executeAccountIds) { + executeAccountIds_ = executeAccountIds; + setParameter(std::string("executeAccountIds"), executeAccountIds); +} + +std::string ListPipelinesRequest::getNextToken() const { + return nextToken_; +} + +void ListPipelinesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +long ListPipelinesRequest::getMaxResults() const { + return maxResults_; +} + +void ListPipelinesRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + +long ListPipelinesRequest::getExecuteStartTime() const { + return executeStartTime_; +} + +void ListPipelinesRequest::setExecuteStartTime(long executeStartTime) { + executeStartTime_ = executeStartTime; + setParameter(std::string("executeStartTime"), std::to_string(executeStartTime)); +} + +long ListPipelinesRequest::getCreateEndTime() const { + return createEndTime_; +} + +void ListPipelinesRequest::setCreateEndTime(long createEndTime) { + createEndTime_ = createEndTime; + setParameter(std::string("createEndTime"), std::to_string(createEndTime)); +} + diff --git a/devops/src/model/ListPipelinesResult.cc b/devops/src/model/ListPipelinesResult.cc new file mode 100644 index 000000000..c056298da --- /dev/null +++ b/devops/src/model/ListPipelinesResult.cc @@ -0,0 +1,107 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListPipelinesResult::ListPipelinesResult() : + ServiceResult() +{} + +ListPipelinesResult::ListPipelinesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPipelinesResult::~ListPipelinesResult() +{} + +void ListPipelinesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allpipelinesNode = value["pipelines"]["Pipeline"]; + for (auto valuepipelinesPipeline : allpipelinesNode) + { + Pipeline pipelinesObject; + if(!valuepipelinesPipeline["pipelineName"].isNull()) + pipelinesObject.pipelineName = valuepipelinesPipeline["pipelineName"].asString(); + if(!valuepipelinesPipeline["pipelineId"].isNull()) + pipelinesObject.pipelineId = std::stol(valuepipelinesPipeline["pipelineId"].asString()); + if(!valuepipelinesPipeline["createTime"].isNull()) + pipelinesObject.createTime = std::stol(valuepipelinesPipeline["createTime"].asString()); + if(!valuepipelinesPipeline["creatorAccountId"].isNull()) + pipelinesObject.creatorAccountId = valuepipelinesPipeline["creatorAccountId"].asString(); + if(!valuepipelinesPipeline["groupId"].isNull()) + pipelinesObject.groupId = std::stol(valuepipelinesPipeline["groupId"].asString()); + pipelines_.push_back(pipelinesObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + +} + +long ListPipelinesResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListPipelinesResult::getpipelines()const +{ + return pipelines_; +} + +std::string ListPipelinesResult::getRequestId()const +{ + return requestId_; +} + +std::string ListPipelinesResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListPipelinesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPipelinesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListPipelinesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListProjectLabelsRequest.cc b/devops/src/model/ListProjectLabelsRequest.cc new file mode 100644 index 000000000..5c9988a7a --- /dev/null +++ b/devops/src/model/ListProjectLabelsRequest.cc @@ -0,0 +1,109 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListProjectLabelsRequest; + +ListProjectLabelsRequest::ListProjectLabelsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/labels"}; + setMethod(HttpRequest::Method::Get); +} + +ListProjectLabelsRequest::~ListProjectLabelsRequest() {} + +bool ListProjectLabelsRequest::getWithCounts() const { + return withCounts_; +} + +void ListProjectLabelsRequest::setWithCounts(bool withCounts) { + withCounts_ = withCounts; + setParameter(std::string("withCounts"), withCounts ? "true" : "false"); +} + +std::string ListProjectLabelsRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void ListProjectLabelsRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string ListProjectLabelsRequest::getAccessToken() const { + return accessToken_; +} + +void ListProjectLabelsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string ListProjectLabelsRequest::getOrderBy() const { + return orderBy_; +} + +void ListProjectLabelsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("orderBy"), orderBy); +} + +std::string ListProjectLabelsRequest::getSort() const { + return sort_; +} + +void ListProjectLabelsRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("sort"), sort); +} + +std::string ListProjectLabelsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListProjectLabelsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListProjectLabelsRequest::getSearch() const { + return search_; +} + +void ListProjectLabelsRequest::setSearch(const std::string &search) { + search_ = search; + setParameter(std::string("search"), search); +} + +long ListProjectLabelsRequest::getPageSize() const { + return pageSize_; +} + +void ListProjectLabelsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +int ListProjectLabelsRequest::getPage() const { + return page_; +} + +void ListProjectLabelsRequest::setPage(int page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListProjectLabelsResult.cc b/devops/src/model/ListProjectLabelsResult.cc new file mode 100644 index 000000000..375b41e5a --- /dev/null +++ b/devops/src/model/ListProjectLabelsResult.cc @@ -0,0 +1,100 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListProjectLabelsResult::ListProjectLabelsResult() : + ServiceResult() +{} + +ListProjectLabelsResult::ListProjectLabelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectLabelsResult::~ListProjectLabelsResult() +{} + +void ListProjectLabelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["project_labels"]; + for (auto valueresultproject_labels : allresultNode) + { + Project_labels resultObject; + if(!valueresultproject_labels["id"].isNull()) + resultObject.id = valueresultproject_labels["id"].asString(); + if(!valueresultproject_labels["name"].isNull()) + resultObject.name = valueresultproject_labels["name"].asString(); + if(!valueresultproject_labels["color"].isNull()) + resultObject.color = valueresultproject_labels["color"].asString(); + if(!valueresultproject_labels["description"].isNull()) + resultObject.description = valueresultproject_labels["description"].asString(); + if(!valueresultproject_labels["openMergeRequestsCount"].isNull()) + resultObject.openMergeRequestsCount = std::stol(valueresultproject_labels["openMergeRequestsCount"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListProjectLabelsResult::getresult()const +{ + return result_; +} + +std::string ListProjectLabelsResult::getRequestId()const +{ + return requestId_; +} + +long ListProjectLabelsResult::getTotal()const +{ + return total_; +} + +std::string ListProjectLabelsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListProjectLabelsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListProjectLabelsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListProjectMembersRequest.cc b/devops/src/model/ListProjectMembersRequest.cc new file mode 100644 index 000000000..772fc67f0 --- /dev/null +++ b/devops/src/model/ListProjectMembersRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListProjectMembersRequest; + +ListProjectMembersRequest::ListProjectMembersRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/projects/[projectId]/listMembers"}; + setMethod(HttpRequest::Method::Get); +} + +ListProjectMembersRequest::~ListProjectMembersRequest() {} + +std::string ListProjectMembersRequest::getTargetType() const { + return targetType_; +} + +void ListProjectMembersRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("targetType"), targetType); +} + +std::string ListProjectMembersRequest::getOrganizationId() const { + return organizationId_; +} + +void ListProjectMembersRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListProjectMembersRequest::getProjectId() const { + return projectId_; +} + +void ListProjectMembersRequest::setProjectId(const std::string &projectId) { + projectId_ = projectId; + setParameter(std::string("projectId"), projectId); +} + diff --git a/devops/src/model/ListProjectMembersResult.cc b/devops/src/model/ListProjectMembersResult.cc new file mode 100644 index 000000000..e929b45fe --- /dev/null +++ b/devops/src/model/ListProjectMembersResult.cc @@ -0,0 +1,125 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListProjectMembersResult::ListProjectMembersResult() : + ServiceResult() +{} + +ListProjectMembersResult::ListProjectMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectMembersResult::~ListProjectMembersResult() +{} + +void ListProjectMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allmembersNode = value["members"]["member"]; + for (auto valuemembersmember : allmembersNode) + { + Member membersObject; + if(!valuemembersmember["account"].isNull()) + membersObject.account = valuemembersmember["account"].asString(); + if(!valuemembersmember["avatar"].isNull()) + membersObject.avatar = valuemembersmember["avatar"].asString(); + if(!valuemembersmember["dingTalkId"].isNull()) + membersObject.dingTalkId = valuemembersmember["dingTalkId"].asString(); + if(!valuemembersmember["displayName"].isNull()) + membersObject.displayName = valuemembersmember["displayName"].asString(); + if(!valuemembersmember["displayNickName"].isNull()) + membersObject.displayNickName = valuemembersmember["displayNickName"].asString(); + if(!valuemembersmember["displayRealName"].isNull()) + membersObject.displayRealName = valuemembersmember["displayRealName"].asString(); + if(!valuemembersmember["email"].isNull()) + membersObject.email = valuemembersmember["email"].asString(); + if(!valuemembersmember["gender"].isNull()) + membersObject.gender = valuemembersmember["gender"].asString(); + if(!valuemembersmember["identifier"].isNull()) + membersObject.identifier = valuemembersmember["identifier"].asString(); + if(!valuemembersmember["mobile"].isNull()) + membersObject.mobile = valuemembersmember["mobile"].asString(); + if(!valuemembersmember["nameEn"].isNull()) + membersObject.nameEn = valuemembersmember["nameEn"].asString(); + if(!valuemembersmember["nickName"].isNull()) + membersObject.nickName = valuemembersmember["nickName"].asString(); + if(!valuemembersmember["nickNamePinyin"].isNull()) + membersObject.nickNamePinyin = valuemembersmember["nickNamePinyin"].asString(); + if(!valuemembersmember["realName"].isNull()) + membersObject.realName = valuemembersmember["realName"].asString(); + if(!valuemembersmember["realNamePinyin"].isNull()) + membersObject.realNamePinyin = valuemembersmember["realNamePinyin"].asString(); + if(!valuemembersmember["stamp"].isNull()) + membersObject.stamp = valuemembersmember["stamp"].asString(); + if(!valuemembersmember["tbRoleId"].isNull()) + membersObject.tbRoleId = valuemembersmember["tbRoleId"].asString(); + if(!valuemembersmember["roleName"].isNull()) + membersObject.roleName = valuemembersmember["roleName"].asString(); + auto divisionNode = value["division"]; + if(!divisionNode["identifier"].isNull()) + membersObject.division.identifier = divisionNode["identifier"].asString(); + auto organizationUserInfoNode = value["organizationUserInfo"]; + if(!organizationUserInfoNode["organizationIdentifier"].isNull()) + membersObject.organizationUserInfo.organizationIdentifier = organizationUserInfoNode["organizationIdentifier"].asString(); + members_.push_back(membersObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListProjectMembersResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListProjectMembersResult::getmembers()const +{ + return members_; +} + +std::string ListProjectMembersResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string ListProjectMembersResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListProjectMembersResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListProjectTemplatesRequest.cc b/devops/src/model/ListProjectTemplatesRequest.cc new file mode 100644 index 000000000..df6c13e7e --- /dev/null +++ b/devops/src/model/ListProjectTemplatesRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListProjectTemplatesRequest; + +ListProjectTemplatesRequest::ListProjectTemplatesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/projects/listTemplates"}; + setMethod(HttpRequest::Method::Get); +} + +ListProjectTemplatesRequest::~ListProjectTemplatesRequest() {} + +std::string ListProjectTemplatesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListProjectTemplatesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListProjectTemplatesRequest::getCategory() const { + return category_; +} + +void ListProjectTemplatesRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("category"), category); +} + diff --git a/devops/src/model/ListProjectTemplatesResult.cc b/devops/src/model/ListProjectTemplatesResult.cc new file mode 100644 index 000000000..9762559e9 --- /dev/null +++ b/devops/src/model/ListProjectTemplatesResult.cc @@ -0,0 +1,113 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListProjectTemplatesResult::ListProjectTemplatesResult() : + ServiceResult() +{} + +ListProjectTemplatesResult::ListProjectTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectTemplatesResult::~ListProjectTemplatesResult() +{} + +void ListProjectTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alltemplatesNode = value["templates"]["template"]; + for (auto valuetemplatestemplate : alltemplatesNode) + { + _Template templatesObject; + if(!valuetemplatestemplate["creator"].isNull()) + templatesObject.creator = valuetemplatestemplate["creator"].asString(); + if(!valuetemplatestemplate["description"].isNull()) + templatesObject.description = valuetemplatestemplate["description"].asString(); + if(!valuetemplatestemplate["gmtCreate"].isNull()) + templatesObject.gmtCreate = std::stol(valuetemplatestemplate["gmtCreate"].asString()); + if(!valuetemplatestemplate["gmtModified"].isNull()) + templatesObject.gmtModified = std::stol(valuetemplatestemplate["gmtModified"].asString()); + if(!valuetemplatestemplate["type"].isNull()) + templatesObject.type = std::stol(valuetemplatestemplate["type"].asString()); + if(!valuetemplatestemplate["icon"].isNull()) + templatesObject.icon = valuetemplatestemplate["icon"].asString(); + if(!valuetemplatestemplate["identifier"].isNull()) + templatesObject.identifier = valuetemplatestemplate["identifier"].asString(); + if(!valuetemplatestemplate["modifier"].isNull()) + templatesObject.modifier = valuetemplatestemplate["modifier"].asString(); + if(!valuetemplatestemplate["name"].isNull()) + templatesObject.name = valuetemplatestemplate["name"].asString(); + if(!valuetemplatestemplate["nameEn"].isNull()) + templatesObject.nameEn = valuetemplatestemplate["nameEn"].asString(); + if(!valuetemplatestemplate["resourceCategory"].isNull()) + templatesObject.resourceCategory = valuetemplatestemplate["resourceCategory"].asString(); + if(!valuetemplatestemplate["copyFrom"].isNull()) + templatesObject.copyFrom = valuetemplatestemplate["copyFrom"].asString(); + if(!valuetemplatestemplate["resourceType"].isNull()) + templatesObject.resourceType = valuetemplatestemplate["resourceType"].asString(); + if(!valuetemplatestemplate["spaceIdentifier"].isNull()) + templatesObject.spaceIdentifier = valuetemplatestemplate["spaceIdentifier"].asString(); + if(!valuetemplatestemplate["spaceType"].isNull()) + templatesObject.spaceType = valuetemplatestemplate["spaceType"].asString(); + templates_.push_back(templatesObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListProjectTemplatesResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListProjectTemplatesResult::gettemplates()const +{ + return templates_; +} + +std::string ListProjectTemplatesResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string ListProjectTemplatesResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListProjectTemplatesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListProjectWorkitemTypesRequest.cc b/devops/src/model/ListProjectWorkitemTypesRequest.cc new file mode 100644 index 000000000..775ca7b07 --- /dev/null +++ b/devops/src/model/ListProjectWorkitemTypesRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListProjectWorkitemTypesRequest; + +ListProjectWorkitemTypesRequest::ListProjectWorkitemTypesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/projects/[projectId]/getWorkitemType"}; + setMethod(HttpRequest::Method::Get); +} + +ListProjectWorkitemTypesRequest::~ListProjectWorkitemTypesRequest() {} + +std::string ListProjectWorkitemTypesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListProjectWorkitemTypesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListProjectWorkitemTypesRequest::getSpaceType() const { + return spaceType_; +} + +void ListProjectWorkitemTypesRequest::setSpaceType(const std::string &spaceType) { + spaceType_ = spaceType; + setParameter(std::string("spaceType"), spaceType); +} + +std::string ListProjectWorkitemTypesRequest::getCategory() const { + return category_; +} + +void ListProjectWorkitemTypesRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("category"), category); +} + +std::string ListProjectWorkitemTypesRequest::getProjectId() const { + return projectId_; +} + +void ListProjectWorkitemTypesRequest::setProjectId(const std::string &projectId) { + projectId_ = projectId; + setParameter(std::string("projectId"), projectId); +} + diff --git a/devops/src/model/ListProjectWorkitemTypesResult.cc b/devops/src/model/ListProjectWorkitemTypesResult.cc new file mode 100644 index 000000000..40287be28 --- /dev/null +++ b/devops/src/model/ListProjectWorkitemTypesResult.cc @@ -0,0 +1,107 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListProjectWorkitemTypesResult::ListProjectWorkitemTypesResult() : + ServiceResult() +{} + +ListProjectWorkitemTypesResult::ListProjectWorkitemTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectWorkitemTypesResult::~ListProjectWorkitemTypesResult() +{} + +void ListProjectWorkitemTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allworkitemTypesNode = value["workitemTypes"]["workitemType"]; + for (auto valueworkitemTypesworkitemType : allworkitemTypesNode) + { + WorkitemType workitemTypesObject; + if(!valueworkitemTypesworkitemType["identifier"].isNull()) + workitemTypesObject.identifier = valueworkitemTypesworkitemType["identifier"].asString(); + if(!valueworkitemTypesworkitemType["name"].isNull()) + workitemTypesObject.name = valueworkitemTypesworkitemType["name"].asString(); + if(!valueworkitemTypesworkitemType["nameEn"].isNull()) + workitemTypesObject.nameEn = valueworkitemTypesworkitemType["nameEn"].asString(); + if(!valueworkitemTypesworkitemType["categoryIdentifier"].isNull()) + workitemTypesObject.categoryIdentifier = valueworkitemTypesworkitemType["categoryIdentifier"].asString(); + if(!valueworkitemTypesworkitemType["systemDefault"].isNull()) + workitemTypesObject.systemDefault = valueworkitemTypesworkitemType["systemDefault"].asString() == "true"; + if(!valueworkitemTypesworkitemType["gmtCreate"].isNull()) + workitemTypesObject.gmtCreate = std::stol(valueworkitemTypesworkitemType["gmtCreate"].asString()); + if(!valueworkitemTypesworkitemType["creator"].isNull()) + workitemTypesObject.creator = valueworkitemTypesworkitemType["creator"].asString(); + if(!valueworkitemTypesworkitemType["description"].isNull()) + workitemTypesObject.description = valueworkitemTypesworkitemType["description"].asString(); + if(!valueworkitemTypesworkitemType["enable"].isNull()) + workitemTypesObject.enable = valueworkitemTypesworkitemType["enable"].asString() == "true"; + if(!valueworkitemTypesworkitemType["defaultType"].isNull()) + workitemTypesObject.defaultType = valueworkitemTypesworkitemType["defaultType"].asString() == "true"; + if(!valueworkitemTypesworkitemType["gmtAdd"].isNull()) + workitemTypesObject.gmtAdd = std::stol(valueworkitemTypesworkitemType["gmtAdd"].asString()); + if(!valueworkitemTypesworkitemType["addUser"].isNull()) + workitemTypesObject.addUser = valueworkitemTypesworkitemType["addUser"].asString(); + workitemTypes_.push_back(workitemTypesObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListProjectWorkitemTypesResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListProjectWorkitemTypesResult::getworkitemTypes()const +{ + return workitemTypes_; +} + +std::string ListProjectWorkitemTypesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListProjectWorkitemTypesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListProjectWorkitemTypesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListProjectsRequest.cc b/devops/src/model/ListProjectsRequest.cc new file mode 100644 index 000000000..9a588c62a --- /dev/null +++ b/devops/src/model/ListProjectsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListProjectsRequest; + +ListProjectsRequest::ListProjectsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/listProjects"}; + setMethod(HttpRequest::Method::Get); +} + +ListProjectsRequest::~ListProjectsRequest() {} + +std::string ListProjectsRequest::getExtraConditions() const { + return extraConditions_; +} + +void ListProjectsRequest::setExtraConditions(const std::string &extraConditions) { + extraConditions_ = extraConditions; + setParameter(std::string("extraConditions"), extraConditions); +} + +std::string ListProjectsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListProjectsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListProjectsRequest::getNextToken() const { + return nextToken_; +} + +void ListProjectsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +std::string ListProjectsRequest::getScope() const { + return scope_; +} + +void ListProjectsRequest::setScope(const std::string &scope) { + scope_ = scope; + setParameter(std::string("scope"), scope); +} + +long ListProjectsRequest::getMaxResults() const { + return maxResults_; +} + +void ListProjectsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + +std::string ListProjectsRequest::getConditions() const { + return conditions_; +} + +void ListProjectsRequest::setConditions(const std::string &conditions) { + conditions_ = conditions; + setParameter(std::string("conditions"), conditions); +} + +std::string ListProjectsRequest::getCategory() const { + return category_; +} + +void ListProjectsRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("category"), category); +} + diff --git a/devops/src/model/ListProjectsResult.cc b/devops/src/model/ListProjectsResult.cc new file mode 100644 index 000000000..24d8e0eac --- /dev/null +++ b/devops/src/model/ListProjectsResult.cc @@ -0,0 +1,130 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListProjectsResult::ListProjectsResult() : + ServiceResult() +{} + +ListProjectsResult::ListProjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectsResult::~ListProjectsResult() +{} + +void ListProjectsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allprojectsNode = value["projects"]["project"]; + for (auto valueprojectsproject : allprojectsNode) + { + Project projectsObject; + if(!valueprojectsproject["creator"].isNull()) + projectsObject.creator = valueprojectsproject["creator"].asString(); + if(!valueprojectsproject["customCode"].isNull()) + projectsObject.customCode = valueprojectsproject["customCode"].asString(); + if(!valueprojectsproject["deleteTime"].isNull()) + projectsObject.deleteTime = std::stol(valueprojectsproject["deleteTime"].asString()); + if(!valueprojectsproject["description"].isNull()) + projectsObject.description = valueprojectsproject["description"].asString(); + if(!valueprojectsproject["gmtCreate"].isNull()) + projectsObject.gmtCreate = std::stol(valueprojectsproject["gmtCreate"].asString()); + if(!valueprojectsproject["icon"].isNull()) + projectsObject.icon = valueprojectsproject["icon"].asString(); + if(!valueprojectsproject["identifier"].isNull()) + projectsObject.identifier = valueprojectsproject["identifier"].asString(); + if(!valueprojectsproject["name"].isNull()) + projectsObject.name = valueprojectsproject["name"].asString(); + if(!valueprojectsproject["scope"].isNull()) + projectsObject.scope = valueprojectsproject["scope"].asString(); + if(!valueprojectsproject["typeIdentifier"].isNull()) + projectsObject.typeIdentifier = valueprojectsproject["typeIdentifier"].asString(); + if(!valueprojectsproject["statusStageIdentifier"].isNull()) + projectsObject.statusStageIdentifier = valueprojectsproject["statusStageIdentifier"].asString(); + if(!valueprojectsproject["logicalStatus"].isNull()) + projectsObject.logicalStatus = valueprojectsproject["logicalStatus"].asString(); + if(!valueprojectsproject["categoryIdentifier"].isNull()) + projectsObject.categoryIdentifier = valueprojectsproject["categoryIdentifier"].asString(); + projects_.push_back(projectsObject); + } + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + if(!value["maxResults"].isNull()) + maxResults_ = std::stol(value["maxResults"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +long ListProjectsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListProjectsResult::getprojects()const +{ + return projects_; +} + +std::string ListProjectsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListProjectsResult::getRequestId()const +{ + return requestId_; +} + +long ListProjectsResult::getMaxResults()const +{ + return maxResults_; +} + +std::string ListProjectsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string ListProjectsResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListProjectsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListProtectedBranchesRequest.cc b/devops/src/model/ListProtectedBranchesRequest.cc new file mode 100644 index 000000000..87f06b632 --- /dev/null +++ b/devops/src/model/ListProtectedBranchesRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListProtectedBranchesRequest; + +ListProtectedBranchesRequest::ListProtectedBranchesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/protect_branches"}; + setMethod(HttpRequest::Method::Get); +} + +ListProtectedBranchesRequest::~ListProtectedBranchesRequest() {} + +std::string ListProtectedBranchesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListProtectedBranchesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ListProtectedBranchesRequest::getRepositoryId() const { + return repositoryId_; +} + +void ListProtectedBranchesRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string ListProtectedBranchesRequest::getAccessToken() const { + return accessToken_; +} + +void ListProtectedBranchesRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/ListProtectedBranchesResult.cc b/devops/src/model/ListProtectedBranchesResult.cc new file mode 100644 index 000000000..ee585c460 --- /dev/null +++ b/devops/src/model/ListProtectedBranchesResult.cc @@ -0,0 +1,211 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListProtectedBranchesResult::ListProtectedBranchesResult() : + ServiceResult() +{} + +ListProtectedBranchesResult::ListProtectedBranchesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProtectedBranchesResult::~ListProtectedBranchesResult() +{} + +void ListProtectedBranchesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["branch"].isNull()) + resultObject.branch = valueresultresultItem["branch"].asString(); + if(!valueresultresultItem["createdAt"].isNull()) + resultObject.createdAt = valueresultresultItem["createdAt"].asString(); + if(!valueresultresultItem["updatedAt"].isNull()) + resultObject.updatedAt = valueresultresultItem["updatedAt"].asString(); + auto allallowPushUsersNode = valueresultresultItem["allowPushUsers"]["allow_push_users"]; + for (auto valueresultresultItemallowPushUsersallow_push_users : allallowPushUsersNode) + { + ResultItem::Allow_push_users allowPushUsersObject; + if(!valueresultresultItemallowPushUsersallow_push_users["id"].isNull()) + allowPushUsersObject.id = std::stol(valueresultresultItemallowPushUsersallow_push_users["id"].asString()); + if(!valueresultresultItemallowPushUsersallow_push_users["name"].isNull()) + allowPushUsersObject.name = valueresultresultItemallowPushUsersallow_push_users["name"].asString(); + if(!valueresultresultItemallowPushUsersallow_push_users["username"].isNull()) + allowPushUsersObject.username = valueresultresultItemallowPushUsersallow_push_users["username"].asString(); + if(!valueresultresultItemallowPushUsersallow_push_users["email"].isNull()) + allowPushUsersObject.email = valueresultresultItemallowPushUsersallow_push_users["email"].asString(); + if(!valueresultresultItemallowPushUsersallow_push_users["avatar"].isNull()) + allowPushUsersObject.avatar = valueresultresultItemallowPushUsersallow_push_users["avatar"].asString(); + if(!valueresultresultItemallowPushUsersallow_push_users["tbUserId"].isNull()) + allowPushUsersObject.tbUserId = valueresultresultItemallowPushUsersallow_push_users["tbUserId"].asString(); + resultObject.allowPushUsers.push_back(allowPushUsersObject); + } + auto allallowMergeUsersNode = valueresultresultItem["allowMergeUsers"]["allow_merge_users"]; + for (auto valueresultresultItemallowMergeUsersallow_merge_users : allallowMergeUsersNode) + { + ResultItem::Allow_merge_users allowMergeUsersObject; + if(!valueresultresultItemallowMergeUsersallow_merge_users["id"].isNull()) + allowMergeUsersObject.id = std::stol(valueresultresultItemallowMergeUsersallow_merge_users["id"].asString()); + if(!valueresultresultItemallowMergeUsersallow_merge_users["name"].isNull()) + allowMergeUsersObject.name = valueresultresultItemallowMergeUsersallow_merge_users["name"].asString(); + if(!valueresultresultItemallowMergeUsersallow_merge_users["username"].isNull()) + allowMergeUsersObject.username = valueresultresultItemallowMergeUsersallow_merge_users["username"].asString(); + if(!valueresultresultItemallowMergeUsersallow_merge_users["email"].isNull()) + allowMergeUsersObject.email = valueresultresultItemallowMergeUsersallow_merge_users["email"].asString(); + if(!valueresultresultItemallowMergeUsersallow_merge_users["avatar"].isNull()) + allowMergeUsersObject.avatar = valueresultresultItemallowMergeUsersallow_merge_users["avatar"].asString(); + if(!valueresultresultItemallowMergeUsersallow_merge_users["tbUserId"].isNull()) + allowMergeUsersObject.tbUserId = valueresultresultItemallowMergeUsersallow_merge_users["tbUserId"].asString(); + resultObject.allowMergeUsers.push_back(allowMergeUsersObject); + } + auto mergeRequestSettingNode = value["mergeRequestSetting"]; + if(!mergeRequestSettingNode["isRequired"].isNull()) + resultObject.mergeRequestSetting.isRequired = mergeRequestSettingNode["isRequired"].asString() == "true"; + if(!mergeRequestSettingNode["mrMode"].isNull()) + resultObject.mergeRequestSetting.mrMode = mergeRequestSettingNode["mrMode"].asString(); + if(!mergeRequestSettingNode["isAllowSelfApproval"].isNull()) + resultObject.mergeRequestSetting.isAllowSelfApproval = mergeRequestSettingNode["isAllowSelfApproval"].asString() == "true"; + if(!mergeRequestSettingNode["isRequireDiscussionProcessed"].isNull()) + resultObject.mergeRequestSetting.isRequireDiscussionProcessed = mergeRequestSettingNode["isRequireDiscussionProcessed"].asString() == "true"; + if(!mergeRequestSettingNode["isResetApprovalWhenNewPush"].isNull()) + resultObject.mergeRequestSetting.isResetApprovalWhenNewPush = mergeRequestSettingNode["isResetApprovalWhenNewPush"].asString() == "true"; + if(!mergeRequestSettingNode["minimumApproval"].isNull()) + resultObject.mergeRequestSetting.minimumApproval = std::stoi(mergeRequestSettingNode["minimumApproval"].asString()); + if(!mergeRequestSettingNode["whiteList"].isNull()) + resultObject.mergeRequestSetting.whiteList = mergeRequestSettingNode["whiteList"].asString(); + auto alldefaultAssigneesNode = mergeRequestSettingNode["defaultAssignees"]["default_assignees"]; + for (auto mergeRequestSettingNodedefaultAssigneesdefault_assignees : alldefaultAssigneesNode) + { + ResultItem::MergeRequestSetting::Default_assignees default_assigneesObject; + if(!mergeRequestSettingNodedefaultAssigneesdefault_assignees["id"].isNull()) + default_assigneesObject.id = std::stol(mergeRequestSettingNodedefaultAssigneesdefault_assignees["id"].asString()); + if(!mergeRequestSettingNodedefaultAssigneesdefault_assignees["username"].isNull()) + default_assigneesObject.username = mergeRequestSettingNodedefaultAssigneesdefault_assignees["username"].asString(); + if(!mergeRequestSettingNodedefaultAssigneesdefault_assignees["name"].isNull()) + default_assigneesObject.name = mergeRequestSettingNodedefaultAssigneesdefault_assignees["name"].asString(); + if(!mergeRequestSettingNodedefaultAssigneesdefault_assignees["email"].isNull()) + default_assigneesObject.email = mergeRequestSettingNodedefaultAssigneesdefault_assignees["email"].asString(); + if(!mergeRequestSettingNodedefaultAssigneesdefault_assignees["avatar"].isNull()) + default_assigneesObject.avatar = mergeRequestSettingNodedefaultAssigneesdefault_assignees["avatar"].asString(); + if(!mergeRequestSettingNodedefaultAssigneesdefault_assignees["tbUserId"].isNull()) + default_assigneesObject.tbUserId = mergeRequestSettingNodedefaultAssigneesdefault_assignees["tbUserId"].asString(); + resultObject.mergeRequestSetting.defaultAssignees.push_back(default_assigneesObject); + } + auto allAllowMergeRequestRoles = mergeRequestSettingNode["allowMergeRequestRoles"]["allow_merge_request"]; + for (auto value : allAllowMergeRequestRoles) + resultObject.mergeRequestSetting.allowMergeRequestRoles.push_back(value.asString()); + auto testSettingDTONode = value["testSettingDTO"]; + if(!testSettingDTONode["isRequired"].isNull()) + resultObject.testSettingDTO.isRequired = testSettingDTONode["isRequired"].asString() == "true"; + auto codeGuidelinesDetectionNode = testSettingDTONode["codeGuidelinesDetection"]; + if(!codeGuidelinesDetectionNode["enabled"].isNull()) + resultObject.testSettingDTO.codeGuidelinesDetection.enabled = codeGuidelinesDetectionNode["enabled"].asString() == "true"; + if(!codeGuidelinesDetectionNode["message"].isNull()) + resultObject.testSettingDTO.codeGuidelinesDetection.message = codeGuidelinesDetectionNode["message"].asString(); + auto sensitiveInfoDetectionNode = testSettingDTONode["sensitiveInfoDetection"]; + if(!sensitiveInfoDetectionNode["enabled"].isNull()) + resultObject.testSettingDTO.sensitiveInfoDetection.enabled = sensitiveInfoDetectionNode["enabled"].asString() == "true"; + if(!sensitiveInfoDetectionNode["message"].isNull()) + resultObject.testSettingDTO.sensitiveInfoDetection.message = sensitiveInfoDetectionNode["message"].asString(); + auto checkTaskQualityConfigNode = testSettingDTONode["checkTaskQualityConfig"]; + if(!checkTaskQualityConfigNode["enabled"].isNull()) + resultObject.testSettingDTO.checkTaskQualityConfig.enabled = checkTaskQualityConfigNode["enabled"].asString() == "true"; + if(!checkTaskQualityConfigNode["bizNo"].isNull()) + resultObject.testSettingDTO.checkTaskQualityConfig.bizNo = checkTaskQualityConfigNode["bizNo"].asString(); + if(!checkTaskQualityConfigNode["taskName"].isNull()) + resultObject.testSettingDTO.checkTaskQualityConfig.taskName = checkTaskQualityConfigNode["taskName"].asString(); + if(!checkTaskQualityConfigNode["message"].isNull()) + resultObject.testSettingDTO.checkTaskQualityConfig.message = checkTaskQualityConfigNode["message"].asString(); + auto checkConfigNode = testSettingDTONode["checkConfig"]; + auto allcheckItemsNode = checkConfigNode["checkItems"]["check_items"]; + for (auto checkConfigNodecheckItemscheck_items : allcheckItemsNode) + { + ResultItem::TestSettingDTO::CheckConfig::Check_items check_itemsObject; + if(!checkConfigNodecheckItemscheck_items["name"].isNull()) + check_itemsObject.name = checkConfigNodecheckItemscheck_items["name"].asString(); + if(!checkConfigNodecheckItemscheck_items["isRequired"].isNull()) + check_itemsObject.isRequired = checkConfigNodecheckItemscheck_items["isRequired"].asString() == "true"; + resultObject.testSettingDTO.checkConfig.checkItems.push_back(check_itemsObject); + } + auto allAllowPushRoles = value["allowPushRoles"]["allow_push"]; + for (auto value : allAllowPushRoles) + resultObject.allowPushRoles.push_back(value.asString()); + auto allAllowPushUserIds = value["allowPushUserIds"]["allow_push_user_ids"]; + for (auto value : allAllowPushUserIds) + resultObject.allowPushUserIds.push_back(value.asString()); + auto allAllowMergeRoles = value["allowMergeRoles"]["allow_merge"]; + for (auto value : allAllowMergeRoles) + resultObject.allowMergeRoles.push_back(value.asString()); + auto allAllowMergeUserIds = value["allowMergeUserIds"]["allow_merge_user_ids"]; + for (auto value : allAllowMergeUserIds) + resultObject.allowMergeUserIds.push_back(value.asString()); + auto allMatches = value["matches"]["matches"]; + for (auto value : allMatches) + resultObject.matches.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector ListProtectedBranchesResult::getresult()const +{ + return result_; +} + +std::string ListProtectedBranchesResult::getRequestId()const +{ + return requestId_; +} + +std::string ListProtectedBranchesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListProtectedBranchesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListProtectedBranchesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListPushRulesRequest.cc b/devops/src/model/ListPushRulesRequest.cc new file mode 100644 index 000000000..d3f651654 --- /dev/null +++ b/devops/src/model/ListPushRulesRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListPushRulesRequest; + +ListPushRulesRequest::ListPushRulesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/push_rule/push_rules/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListPushRulesRequest::~ListPushRulesRequest() {} + +std::string ListPushRulesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListPushRulesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ListPushRulesRequest::getRepositoryId() const { + return repositoryId_; +} + +void ListPushRulesRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string ListPushRulesRequest::getAccessToken() const { + return accessToken_; +} + +void ListPushRulesRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/ListPushRulesResult.cc b/devops/src/model/ListPushRulesResult.cc new file mode 100644 index 000000000..ad32da09b --- /dev/null +++ b/devops/src/model/ListPushRulesResult.cc @@ -0,0 +1,111 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListPushRulesResult::ListPushRulesResult() : + ServiceResult() +{} + +ListPushRulesResult::ListPushRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPushRulesResult::~ListPushRulesResult() +{} + +void ListPushRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["gmtCreate"].isNull()) + resultObject.gmtCreate = valueresultresultItem["gmtCreate"].asString(); + if(!valueresultresultItem["gmtModified"].isNull()) + resultObject.gmtModified = valueresultresultItem["gmtModified"].asString(); + auto allruleInfosNode = valueresultresultItem["ruleInfos"]["rule_infos"]; + for (auto valueresultresultItemruleInfosrule_infos : allruleInfosNode) + { + ResultItem::Rule_infos ruleInfosObject; + if(!valueresultresultItemruleInfosrule_infos["checkerName"].isNull()) + ruleInfosObject.checkerName = valueresultresultItemruleInfosrule_infos["checkerName"].asString(); + if(!valueresultresultItemruleInfosrule_infos["checkerType"].isNull()) + ruleInfosObject.checkerType = valueresultresultItemruleInfosrule_infos["checkerType"].asString(); + if(!valueresultresultItemruleInfosrule_infos["extraMessage"].isNull()) + ruleInfosObject.extraMessage = valueresultresultItemruleInfosrule_infos["extraMessage"].asString(); + auto allFileRuleRegexes = value["fileRuleRegexes"]["file_rule_regexes"]; + for (auto value : allFileRuleRegexes) + ruleInfosObject.fileRuleRegexes.push_back(value.asString()); + resultObject.ruleInfos.push_back(ruleInfosObject); + } + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListPushRulesResult::getresult()const +{ + return result_; +} + +std::string ListPushRulesResult::getRequestId()const +{ + return requestId_; +} + +long ListPushRulesResult::getTotal()const +{ + return total_; +} + +std::string ListPushRulesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListPushRulesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListPushRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListRepositoriesRequest.cc b/devops/src/model/ListRepositoriesRequest.cc new file mode 100644 index 000000000..2ca8e81bb --- /dev/null +++ b/devops/src/model/ListRepositoriesRequest.cc @@ -0,0 +1,109 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListRepositoriesRequest; + +ListRepositoriesRequest::ListRepositoriesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListRepositoriesRequest::~ListRepositoriesRequest() {} + +long ListRepositoriesRequest::getPerPage() const { + return perPage_; +} + +void ListRepositoriesRequest::setPerPage(long perPage) { + perPage_ = perPage; + setParameter(std::string("perPage"), std::to_string(perPage)); +} + +int ListRepositoriesRequest::getMinAccessLevel() const { + return minAccessLevel_; +} + +void ListRepositoriesRequest::setMinAccessLevel(int minAccessLevel) { + minAccessLevel_ = minAccessLevel; + setParameter(std::string("minAccessLevel"), std::to_string(minAccessLevel)); +} + +std::string ListRepositoriesRequest::getAccessToken() const { + return accessToken_; +} + +void ListRepositoriesRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string ListRepositoriesRequest::getOrderBy() const { + return orderBy_; +} + +void ListRepositoriesRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("orderBy"), orderBy); +} + +std::string ListRepositoriesRequest::getSort() const { + return sort_; +} + +void ListRepositoriesRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("sort"), sort); +} + +std::string ListRepositoriesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListRepositoriesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +bool ListRepositoriesRequest::getArchived() const { + return archived_; +} + +void ListRepositoriesRequest::setArchived(bool archived) { + archived_ = archived; + setParameter(std::string("archived"), archived ? "true" : "false"); +} + +std::string ListRepositoriesRequest::getSearch() const { + return search_; +} + +void ListRepositoriesRequest::setSearch(const std::string &search) { + search_ = search; + setParameter(std::string("search"), search); +} + +long ListRepositoriesRequest::getPage() const { + return page_; +} + +void ListRepositoriesRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListRepositoriesResult.cc b/devops/src/model/ListRepositoriesResult.cc new file mode 100644 index 000000000..1fa89282d --- /dev/null +++ b/devops/src/model/ListRepositoriesResult.cc @@ -0,0 +1,126 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListRepositoriesResult::ListRepositoriesResult() : + ServiceResult() +{} + +ListRepositoriesResult::ListRepositoriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRepositoriesResult::~ListRepositoriesResult() +{} + +void ListRepositoriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["ResultItem"]; + for (auto valueresultResultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultResultItem["lastActivityAt"].isNull()) + resultObject.lastActivityAt = valueresultResultItem["lastActivityAt"].asString(); + if(!valueresultResultItem["namespaceId"].isNull()) + resultObject.namespaceId = std::stol(valueresultResultItem["namespaceId"].asString()); + if(!valueresultResultItem["avatarUrl"].isNull()) + resultObject.avatarUrl = valueresultResultItem["avatarUrl"].asString(); + if(!valueresultResultItem["starCount"].isNull()) + resultObject.starCount = std::stol(valueresultResultItem["starCount"].asString()); + if(!valueresultResultItem["archive"].isNull()) + resultObject.archive = valueresultResultItem["archive"].asString() == "true"; + if(!valueresultResultItem["createdAt"].isNull()) + resultObject.createdAt = valueresultResultItem["createdAt"].asString(); + if(!valueresultResultItem["star"].isNull()) + resultObject.star = valueresultResultItem["star"].asString() == "true"; + if(!valueresultResultItem["importStatus"].isNull()) + resultObject.importStatus = valueresultResultItem["importStatus"].asString(); + if(!valueresultResultItem["webUrl"].isNull()) + resultObject.webUrl = valueresultResultItem["webUrl"].asString(); + if(!valueresultResultItem["description"].isNull()) + resultObject.description = valueresultResultItem["description"].asString(); + if(!valueresultResultItem["nameWithNamespace"].isNull()) + resultObject.nameWithNamespace = valueresultResultItem["nameWithNamespace"].asString(); + if(!valueresultResultItem["pathWithNamespace"].isNull()) + resultObject.pathWithNamespace = valueresultResultItem["pathWithNamespace"].asString(); + if(!valueresultResultItem["path"].isNull()) + resultObject.path = valueresultResultItem["path"].asString(); + if(!valueresultResultItem["visibilityLevel"].isNull()) + resultObject.visibilityLevel = valueresultResultItem["visibilityLevel"].asString(); + if(!valueresultResultItem["accessLevel"].isNull()) + resultObject.accessLevel = std::stoi(valueresultResultItem["accessLevel"].asString()); + if(!valueresultResultItem["updatedAt"].isNull()) + resultObject.updatedAt = valueresultResultItem["updatedAt"].asString(); + if(!valueresultResultItem["name"].isNull()) + resultObject.name = valueresultResultItem["name"].asString(); + if(!valueresultResultItem["Id"].isNull()) + resultObject.id = std::stol(valueresultResultItem["Id"].asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = std::stoi(value["errorCode"].asString()); + +} + +std::vector ListRepositoriesResult::getresult()const +{ + return result_; +} + +std::string ListRepositoriesResult::getRequestId()const +{ + return requestId_; +} + +long ListRepositoriesResult::getTotal()const +{ + return total_; +} + +int ListRepositoriesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListRepositoriesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListRepositoriesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListRepositoryBranchesRequest.cc b/devops/src/model/ListRepositoryBranchesRequest.cc new file mode 100644 index 000000000..074e0468b --- /dev/null +++ b/devops/src/model/ListRepositoryBranchesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListRepositoryBranchesRequest; + +ListRepositoryBranchesRequest::ListRepositoryBranchesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/branches"}; + setMethod(HttpRequest::Method::Get); +} + +ListRepositoryBranchesRequest::~ListRepositoryBranchesRequest() {} + +std::string ListRepositoryBranchesRequest::getAccessToken() const { + return accessToken_; +} + +void ListRepositoryBranchesRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string ListRepositoryBranchesRequest::getSort() const { + return sort_; +} + +void ListRepositoryBranchesRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("sort"), sort); +} + +std::string ListRepositoryBranchesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListRepositoryBranchesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListRepositoryBranchesRequest::getSearch() const { + return search_; +} + +void ListRepositoryBranchesRequest::setSearch(const std::string &search) { + search_ = search; + setParameter(std::string("search"), search); +} + +long ListRepositoryBranchesRequest::getRepositoryId() const { + return repositoryId_; +} + +void ListRepositoryBranchesRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +long ListRepositoryBranchesRequest::getPageSize() const { + return pageSize_; +} + +void ListRepositoryBranchesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +long ListRepositoryBranchesRequest::getPage() const { + return page_; +} + +void ListRepositoryBranchesRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListRepositoryBranchesResult.cc b/devops/src/model/ListRepositoryBranchesResult.cc new file mode 100644 index 000000000..2a5de8011 --- /dev/null +++ b/devops/src/model/ListRepositoryBranchesResult.cc @@ -0,0 +1,120 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListRepositoryBranchesResult::ListRepositoryBranchesResult() : + ServiceResult() +{} + +ListRepositoryBranchesResult::ListRepositoryBranchesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRepositoryBranchesResult::~ListRepositoryBranchesResult() +{} + +void ListRepositoryBranchesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["protected"].isNull()) + resultObject._protected = valueresultresultItem["protected"].asString(); + auto commitNode = value["commit"]; + if(!commitNode["id"].isNull()) + resultObject.commit.id = commitNode["id"].asString(); + if(!commitNode["shortId"].isNull()) + resultObject.commit.shortId = commitNode["shortId"].asString(); + if(!commitNode["title"].isNull()) + resultObject.commit.title = commitNode["title"].asString(); + if(!commitNode["authorName"].isNull()) + resultObject.commit.authorName = commitNode["authorName"].asString(); + if(!commitNode["authorEmail"].isNull()) + resultObject.commit.authorEmail = commitNode["authorEmail"].asString(); + if(!commitNode["createdAt"].isNull()) + resultObject.commit.createdAt = commitNode["createdAt"].asString(); + if(!commitNode["message"].isNull()) + resultObject.commit.message = commitNode["message"].asString(); + if(!commitNode["authoredDate"].isNull()) + resultObject.commit.authoredDate = commitNode["authoredDate"].asString(); + if(!commitNode["committedDate"].isNull()) + resultObject.commit.committedDate = commitNode["committedDate"].asString(); + if(!commitNode["committerEmail"].isNull()) + resultObject.commit.committerEmail = commitNode["committerEmail"].asString(); + if(!commitNode["committerName"].isNull()) + resultObject.commit.committerName = commitNode["committerName"].asString(); + auto allParentIds = commitNode["parentIds"]["parent_ids"]; + for (auto value : allParentIds) + resultObject.commit.parentIds.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListRepositoryBranchesResult::getresult()const +{ + return result_; +} + +std::string ListRepositoryBranchesResult::getRequestId()const +{ + return requestId_; +} + +long ListRepositoryBranchesResult::getTotal()const +{ + return total_; +} + +std::string ListRepositoryBranchesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListRepositoryBranchesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListRepositoryBranchesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListRepositoryCommitDiffRequest.cc b/devops/src/model/ListRepositoryCommitDiffRequest.cc new file mode 100644 index 000000000..e7f561549 --- /dev/null +++ b/devops/src/model/ListRepositoryCommitDiffRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListRepositoryCommitDiffRequest; + +ListRepositoryCommitDiffRequest::ListRepositoryCommitDiffRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/commits/[sha]/diff"}; + setMethod(HttpRequest::Method::Get); +} + +ListRepositoryCommitDiffRequest::~ListRepositoryCommitDiffRequest() {} + +std::string ListRepositoryCommitDiffRequest::getOrganizationId() const { + return organizationId_; +} + +void ListRepositoryCommitDiffRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ListRepositoryCommitDiffRequest::getRepositoryId() const { + return repositoryId_; +} + +void ListRepositoryCommitDiffRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string ListRepositoryCommitDiffRequest::getAccessToken() const { + return accessToken_; +} + +void ListRepositoryCommitDiffRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +int ListRepositoryCommitDiffRequest::getContextLine() const { + return contextLine_; +} + +void ListRepositoryCommitDiffRequest::setContextLine(int contextLine) { + contextLine_ = contextLine; + setParameter(std::string("contextLine"), std::to_string(contextLine)); +} + +std::string ListRepositoryCommitDiffRequest::getSha() const { + return sha_; +} + +void ListRepositoryCommitDiffRequest::setSha(const std::string &sha) { + sha_ = sha; + setParameter(std::string("sha"), sha); +} + diff --git a/devops/src/model/ListRepositoryCommitDiffResult.cc b/devops/src/model/ListRepositoryCommitDiffResult.cc new file mode 100644 index 000000000..b91700815 --- /dev/null +++ b/devops/src/model/ListRepositoryCommitDiffResult.cc @@ -0,0 +1,109 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListRepositoryCommitDiffResult::ListRepositoryCommitDiffResult() : + ServiceResult() +{} + +ListRepositoryCommitDiffResult::ListRepositoryCommitDiffResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRepositoryCommitDiffResult::~ListRepositoryCommitDiffResult() +{} + +void ListRepositoryCommitDiffResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["ResultItem"]; + for (auto valueresultResultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultResultItem["oldId"].isNull()) + resultObject.oldId = valueresultResultItem["oldId"].asString(); + if(!valueresultResultItem["newId"].isNull()) + resultObject.newId = valueresultResultItem["newId"].asString(); + if(!valueresultResultItem["isNewLfs"].isNull()) + resultObject.isNewLfs = valueresultResultItem["isNewLfs"].asString() == "true"; + if(!valueresultResultItem["isOldLfs"].isNull()) + resultObject.isOldLfs = valueresultResultItem["isOldLfs"].asString() == "true"; + if(!valueresultResultItem["diff"].isNull()) + resultObject.diff = valueresultResultItem["diff"].asString(); + if(!valueresultResultItem["newPath"].isNull()) + resultObject.newPath = valueresultResultItem["newPath"].asString(); + if(!valueresultResultItem["oldPath"].isNull()) + resultObject.oldPath = valueresultResultItem["oldPath"].asString(); + if(!valueresultResultItem["aMode"].isNull()) + resultObject.aMode = valueresultResultItem["aMode"].asString(); + if(!valueresultResultItem["bMode"].isNull()) + resultObject.bMode = valueresultResultItem["bMode"].asString(); + if(!valueresultResultItem["newFile"].isNull()) + resultObject.newFile = valueresultResultItem["newFile"].asString() == "true"; + if(!valueresultResultItem["renamedFile"].isNull()) + resultObject.renamedFile = valueresultResultItem["renamedFile"].asString() == "true"; + if(!valueresultResultItem["deletedFile"].isNull()) + resultObject.deletedFile = valueresultResultItem["deletedFile"].asString() == "true"; + if(!valueresultResultItem["isBinary"].isNull()) + resultObject.isBinary = valueresultResultItem["isBinary"].asString() == "true"; + result_.push_back(resultObject); + } + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector ListRepositoryCommitDiffResult::getresult()const +{ + return result_; +} + +std::string ListRepositoryCommitDiffResult::getRequestId()const +{ + return requestId_; +} + +std::string ListRepositoryCommitDiffResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListRepositoryCommitDiffResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListRepositoryCommitDiffResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListRepositoryCommitsRequest.cc b/devops/src/model/ListRepositoryCommitsRequest.cc new file mode 100644 index 000000000..8e947cbad --- /dev/null +++ b/devops/src/model/ListRepositoryCommitsRequest.cc @@ -0,0 +1,136 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListRepositoryCommitsRequest; + +ListRepositoryCommitsRequest::ListRepositoryCommitsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/commits"}; + setMethod(HttpRequest::Method::Get); +} + +ListRepositoryCommitsRequest::~ListRepositoryCommitsRequest() {} + +bool ListRepositoryCommitsRequest::getShowCommentsCount() const { + return showCommentsCount_; +} + +void ListRepositoryCommitsRequest::setShowCommentsCount(bool showCommentsCount) { + showCommentsCount_ = showCommentsCount; + setParameter(std::string("showCommentsCount"), showCommentsCount ? "true" : "false"); +} + +std::string ListRepositoryCommitsRequest::getStart() const { + return start_; +} + +void ListRepositoryCommitsRequest::setStart(const std::string &start) { + start_ = start; + setParameter(std::string("start"), start); +} + +std::string ListRepositoryCommitsRequest::getAccessToken() const { + return accessToken_; +} + +void ListRepositoryCommitsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +bool ListRepositoryCommitsRequest::getShowSignature() const { + return showSignature_; +} + +void ListRepositoryCommitsRequest::setShowSignature(bool showSignature) { + showSignature_ = showSignature; + setParameter(std::string("showSignature"), showSignature ? "true" : "false"); +} + +std::string ListRepositoryCommitsRequest::getRefName() const { + return refName_; +} + +void ListRepositoryCommitsRequest::setRefName(const std::string &refName) { + refName_ = refName; + setParameter(std::string("refName"), refName); +} + +std::string ListRepositoryCommitsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListRepositoryCommitsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListRepositoryCommitsRequest::getPath() const { + return path_; +} + +void ListRepositoryCommitsRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("path"), path); +} + +std::string ListRepositoryCommitsRequest::getSearch() const { + return search_; +} + +void ListRepositoryCommitsRequest::setSearch(const std::string &search) { + search_ = search; + setParameter(std::string("search"), search); +} + +long ListRepositoryCommitsRequest::getRepositoryId() const { + return repositoryId_; +} + +void ListRepositoryCommitsRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +long ListRepositoryCommitsRequest::getPageSize() const { + return pageSize_; +} + +void ListRepositoryCommitsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListRepositoryCommitsRequest::getEnd() const { + return end_; +} + +void ListRepositoryCommitsRequest::setEnd(const std::string &end) { + end_ = end; + setParameter(std::string("end"), end); +} + +long ListRepositoryCommitsRequest::getPage() const { + return page_; +} + +void ListRepositoryCommitsRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListRepositoryCommitsResult.cc b/devops/src/model/ListRepositoryCommitsResult.cc new file mode 100644 index 000000000..775867ec2 --- /dev/null +++ b/devops/src/model/ListRepositoryCommitsResult.cc @@ -0,0 +1,160 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListRepositoryCommitsResult::ListRepositoryCommitsResult() : + ServiceResult() +{} + +ListRepositoryCommitsResult::ListRepositoryCommitsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRepositoryCommitsResult::~ListRepositoryCommitsResult() +{} + +void ListRepositoryCommitsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["shortId"].isNull()) + resultObject.shortId = valueresultresultItem["shortId"].asString(); + if(!valueresultresultItem["title"].isNull()) + resultObject.title = valueresultresultItem["title"].asString(); + if(!valueresultresultItem["authorName"].isNull()) + resultObject.authorName = valueresultresultItem["authorName"].asString(); + if(!valueresultresultItem["authorEmail"].isNull()) + resultObject.authorEmail = valueresultresultItem["authorEmail"].asString(); + if(!valueresultresultItem["createdAt"].isNull()) + resultObject.createdAt = valueresultresultItem["createdAt"].asString(); + if(!valueresultresultItem["message"].isNull()) + resultObject.message = valueresultresultItem["message"].asString(); + if(!valueresultresultItem["authoredDate"].isNull()) + resultObject.authoredDate = valueresultresultItem["authoredDate"].asString(); + if(!valueresultresultItem["committedDate"].isNull()) + resultObject.committedDate = valueresultresultItem["committedDate"].asString(); + if(!valueresultresultItem["committerEmail"].isNull()) + resultObject.committerEmail = valueresultresultItem["committerEmail"].asString(); + if(!valueresultresultItem["committerName"].isNull()) + resultObject.committerName = valueresultresultItem["committerName"].asString(); + if(!valueresultresultItem["commentsCount"].isNull()) + resultObject.commentsCount = std::stol(valueresultresultItem["commentsCount"].asString()); + auto authorNode = value["author"]; + if(!authorNode["id"].isNull()) + resultObject.author.id = std::stol(authorNode["id"].asString()); + if(!authorNode["name"].isNull()) + resultObject.author.name = authorNode["name"].asString(); + if(!authorNode["username"].isNull()) + resultObject.author.username = authorNode["username"].asString(); + if(!authorNode["state"].isNull()) + resultObject.author.state = authorNode["state"].asString(); + if(!authorNode["avatarUrl"].isNull()) + resultObject.author.avatarUrl = authorNode["avatarUrl"].asString(); + if(!authorNode["externUid"].isNull()) + resultObject.author.externUid = authorNode["externUid"].asString(); + if(!authorNode["websiteUrl"].isNull()) + resultObject.author.websiteUrl = authorNode["websiteUrl"].asString(); + if(!authorNode["email"].isNull()) + resultObject.author.email = authorNode["email"].asString(); + if(!authorNode["tbUserId"].isNull()) + resultObject.author.tbUserId = authorNode["tbUserId"].asString(); + auto committerNode = value["committer"]; + if(!committerNode["id"].isNull()) + resultObject.committer.id = std::stol(committerNode["id"].asString()); + if(!committerNode["name"].isNull()) + resultObject.committer.name = committerNode["name"].asString(); + if(!committerNode["username"].isNull()) + resultObject.committer.username = committerNode["username"].asString(); + if(!committerNode["state"].isNull()) + resultObject.committer.state = committerNode["state"].asString(); + if(!committerNode["avatarUrl"].isNull()) + resultObject.committer.avatarUrl = committerNode["avatarUrl"].asString(); + if(!committerNode["externUid"].isNull()) + resultObject.committer.externUid = committerNode["externUid"].asString(); + if(!committerNode["websiteUrl"].isNull()) + resultObject.committer.websiteUrl = committerNode["websiteUrl"].asString(); + if(!committerNode["email"].isNull()) + resultObject.committer.email = committerNode["email"].asString(); + if(!committerNode["tbUserId"].isNull()) + resultObject.committer.tbUserId = committerNode["tbUserId"].asString(); + auto signatureNode = value["signature"]; + if(!signatureNode["gpgKeyId"].isNull()) + resultObject.signature.gpgKeyId = signatureNode["gpgKeyId"].asString(); + if(!signatureNode["verificationStatus"].isNull()) + resultObject.signature.verificationStatus = signatureNode["verificationStatus"].asString(); + auto allParentIds = value["parentIds"]["parent_ids"]; + for (auto value : allParentIds) + resultObject.parentIds.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListRepositoryCommitsResult::getresult()const +{ + return result_; +} + +std::string ListRepositoryCommitsResult::getRequestId()const +{ + return requestId_; +} + +long ListRepositoryCommitsResult::getTotal()const +{ + return total_; +} + +std::string ListRepositoryCommitsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListRepositoryCommitsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListRepositoryCommitsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListRepositoryGroupsRequest.cc b/devops/src/model/ListRepositoryGroupsRequest.cc new file mode 100644 index 000000000..05ad641d0 --- /dev/null +++ b/devops/src/model/ListRepositoryGroupsRequest.cc @@ -0,0 +1,109 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListRepositoryGroupsRequest; + +ListRepositoryGroupsRequest::ListRepositoryGroupsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/groups/get/all"}; + setMethod(HttpRequest::Method::Get); +} + +ListRepositoryGroupsRequest::~ListRepositoryGroupsRequest() {} + +bool ListRepositoryGroupsRequest::getIncludePersonal() const { + return includePersonal_; +} + +void ListRepositoryGroupsRequest::setIncludePersonal(bool includePersonal) { + includePersonal_ = includePersonal; + setParameter(std::string("includePersonal"), includePersonal ? "true" : "false"); +} + +std::string ListRepositoryGroupsRequest::getAccessToken() const { + return accessToken_; +} + +void ListRepositoryGroupsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string ListRepositoryGroupsRequest::getOrderBy() const { + return orderBy_; +} + +void ListRepositoryGroupsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("orderBy"), orderBy); +} + +std::string ListRepositoryGroupsRequest::getSort() const { + return sort_; +} + +void ListRepositoryGroupsRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("sort"), sort); +} + +long ListRepositoryGroupsRequest::getParentId() const { + return parentId_; +} + +void ListRepositoryGroupsRequest::setParentId(long parentId) { + parentId_ = parentId; + setParameter(std::string("parentId"), std::to_string(parentId)); +} + +std::string ListRepositoryGroupsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListRepositoryGroupsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListRepositoryGroupsRequest::getSearch() const { + return search_; +} + +void ListRepositoryGroupsRequest::setSearch(const std::string &search) { + search_ = search; + setParameter(std::string("search"), search); +} + +long ListRepositoryGroupsRequest::getPageSize() const { + return pageSize_; +} + +void ListRepositoryGroupsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +long ListRepositoryGroupsRequest::getPage() const { + return page_; +} + +void ListRepositoryGroupsRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListRepositoryGroupsResult.cc b/devops/src/model/ListRepositoryGroupsResult.cc new file mode 100644 index 000000000..210df03cc --- /dev/null +++ b/devops/src/model/ListRepositoryGroupsResult.cc @@ -0,0 +1,124 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListRepositoryGroupsResult::ListRepositoryGroupsResult() : + ServiceResult() +{} + +ListRepositoryGroupsResult::ListRepositoryGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRepositoryGroupsResult::~ListRepositoryGroupsResult() +{} + +void ListRepositoryGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = std::stol(valueresultresultItem["id"].asString()); + if(!valueresultresultItem["path"].isNull()) + resultObject.path = valueresultresultItem["path"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["nameWithNamespace"].isNull()) + resultObject.nameWithNamespace = valueresultresultItem["nameWithNamespace"].asString(); + if(!valueresultresultItem["pathWithNamespace"].isNull()) + resultObject.pathWithNamespace = valueresultresultItem["pathWithNamespace"].asString(); + if(!valueresultresultItem["visibilityLevel"].isNull()) + resultObject.visibilityLevel = std::stoi(valueresultresultItem["visibilityLevel"].asString()); + if(!valueresultresultItem["avatarUrl"].isNull()) + resultObject.avatarUrl = valueresultresultItem["avatarUrl"].asString(); + if(!valueresultresultItem["webUrl"].isNull()) + resultObject.webUrl = valueresultresultItem["webUrl"].asString(); + if(!valueresultresultItem["type"].isNull()) + resultObject.type = valueresultresultItem["type"].asString(); + if(!valueresultresultItem["description"].isNull()) + resultObject.description = valueresultresultItem["description"].asString(); + if(!valueresultresultItem["parentId"].isNull()) + resultObject.parentId = std::stol(valueresultresultItem["parentId"].asString()); + if(!valueresultresultItem["ownerId"].isNull()) + resultObject.ownerId = std::stol(valueresultresultItem["ownerId"].asString()); + if(!valueresultresultItem["accessLevel"].isNull()) + resultObject.accessLevel = std::stoi(valueresultresultItem["accessLevel"].asString()); + if(!valueresultresultItem["projectCount"].isNull()) + resultObject.projectCount = std::stol(valueresultresultItem["projectCount"].asString()); + if(!valueresultresultItem["groupCount"].isNull()) + resultObject.groupCount = std::stol(valueresultresultItem["groupCount"].asString()); + if(!valueresultresultItem["createdAt"].isNull()) + resultObject.createdAt = valueresultresultItem["createdAt"].asString(); + if(!valueresultresultItem["updatedAt"].isNull()) + resultObject.updatedAt = valueresultresultItem["updatedAt"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListRepositoryGroupsResult::getresult()const +{ + return result_; +} + +std::string ListRepositoryGroupsResult::getRequestId()const +{ + return requestId_; +} + +long ListRepositoryGroupsResult::getTotal()const +{ + return total_; +} + +std::string ListRepositoryGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListRepositoryGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListRepositoryGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListRepositoryMemberWithInheritedRequest.cc b/devops/src/model/ListRepositoryMemberWithInheritedRequest.cc new file mode 100644 index 000000000..2764ba2c1 --- /dev/null +++ b/devops/src/model/ListRepositoryMemberWithInheritedRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListRepositoryMemberWithInheritedRequest; + +ListRepositoryMemberWithInheritedRequest::ListRepositoryMemberWithInheritedRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/members/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListRepositoryMemberWithInheritedRequest::~ListRepositoryMemberWithInheritedRequest() {} + +std::string ListRepositoryMemberWithInheritedRequest::getOrganizationId() const { + return organizationId_; +} + +void ListRepositoryMemberWithInheritedRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ListRepositoryMemberWithInheritedRequest::getRepositoryId() const { + return repositoryId_; +} + +void ListRepositoryMemberWithInheritedRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string ListRepositoryMemberWithInheritedRequest::getAccessToken() const { + return accessToken_; +} + +void ListRepositoryMemberWithInheritedRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/ListRepositoryMemberWithInheritedResult.cc b/devops/src/model/ListRepositoryMemberWithInheritedResult.cc new file mode 100644 index 000000000..991e66a1e --- /dev/null +++ b/devops/src/model/ListRepositoryMemberWithInheritedResult.cc @@ -0,0 +1,114 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListRepositoryMemberWithInheritedResult::ListRepositoryMemberWithInheritedResult() : + ServiceResult() +{} + +ListRepositoryMemberWithInheritedResult::ListRepositoryMemberWithInheritedResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRepositoryMemberWithInheritedResult::~ListRepositoryMemberWithInheritedResult() +{} + +void ListRepositoryMemberWithInheritedResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["ResultItem"]; + for (auto valueresultResultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultResultItem["externUserId"].isNull()) + resultObject.externUserId = valueresultResultItem["externUserId"].asString(); + if(!valueresultResultItem["email"].isNull()) + resultObject.email = valueresultResultItem["email"].asString(); + if(!valueresultResultItem["avatarUrl"].isNull()) + resultObject.avatarUrl = valueresultResultItem["avatarUrl"].asString(); + if(!valueresultResultItem["state"].isNull()) + resultObject.state = valueresultResultItem["state"].asString(); + if(!valueresultResultItem["accessLevel"].isNull()) + resultObject.accessLevel = std::stoi(valueresultResultItem["accessLevel"].asString()); + if(!valueresultResultItem["name"].isNull()) + resultObject.name = valueresultResultItem["name"].asString(); + if(!valueresultResultItem["id"].isNull()) + resultObject.id = std::stol(valueresultResultItem["id"].asString()); + if(!valueresultResultItem["username"].isNull()) + resultObject.username = valueresultResultItem["username"].asString(); + auto inheritedNode = value["inherited"]; + if(!inheritedNode["type"].isNull()) + resultObject.inherited.type = inheritedNode["type"].asString(); + if(!inheritedNode["nameWithNamespace"].isNull()) + resultObject.inherited.nameWithNamespace = inheritedNode["nameWithNamespace"].asString(); + if(!inheritedNode["pathWithNamespace"].isNull()) + resultObject.inherited.pathWithNamespace = inheritedNode["pathWithNamespace"].asString(); + if(!inheritedNode["visibilityLevel"].isNull()) + resultObject.inherited.visibilityLevel = inheritedNode["visibilityLevel"].asString(); + if(!inheritedNode["path"].isNull()) + resultObject.inherited.path = inheritedNode["path"].asString(); + if(!inheritedNode["name"].isNull()) + resultObject.inherited.name = inheritedNode["name"].asString(); + if(!inheritedNode["id"].isNull()) + resultObject.inherited.id = std::stol(inheritedNode["id"].asString()); + result_.push_back(resultObject); + } + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector ListRepositoryMemberWithInheritedResult::getresult()const +{ + return result_; +} + +std::string ListRepositoryMemberWithInheritedResult::getRequestId()const +{ + return requestId_; +} + +std::string ListRepositoryMemberWithInheritedResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListRepositoryMemberWithInheritedResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListRepositoryMemberWithInheritedResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListRepositoryTagsRequest.cc b/devops/src/model/ListRepositoryTagsRequest.cc new file mode 100644 index 000000000..2834e5d01 --- /dev/null +++ b/devops/src/model/ListRepositoryTagsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListRepositoryTagsRequest; + +ListRepositoryTagsRequest::ListRepositoryTagsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/tag/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListRepositoryTagsRequest::~ListRepositoryTagsRequest() {} + +std::string ListRepositoryTagsRequest::getAccessToken() const { + return accessToken_; +} + +void ListRepositoryTagsRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string ListRepositoryTagsRequest::getSort() const { + return sort_; +} + +void ListRepositoryTagsRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("sort"), sort); +} + +std::string ListRepositoryTagsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListRepositoryTagsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListRepositoryTagsRequest::getSearch() const { + return search_; +} + +void ListRepositoryTagsRequest::setSearch(const std::string &search) { + search_ = search; + setParameter(std::string("search"), search); +} + +long ListRepositoryTagsRequest::getRepositoryId() const { + return repositoryId_; +} + +void ListRepositoryTagsRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +long ListRepositoryTagsRequest::getPageSize() const { + return pageSize_; +} + +void ListRepositoryTagsRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +long ListRepositoryTagsRequest::getPage() const { + return page_; +} + +void ListRepositoryTagsRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListRepositoryTagsResult.cc b/devops/src/model/ListRepositoryTagsResult.cc new file mode 100644 index 000000000..9c80e4cfc --- /dev/null +++ b/devops/src/model/ListRepositoryTagsResult.cc @@ -0,0 +1,127 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListRepositoryTagsResult::ListRepositoryTagsResult() : + ServiceResult() +{} + +ListRepositoryTagsResult::ListRepositoryTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRepositoryTagsResult::~ListRepositoryTagsResult() +{} + +void ListRepositoryTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["message"].isNull()) + resultObject.message = valueresultresultItem["message"].asString(); + auto commitNode = value["commit"]; + if(!commitNode["id"].isNull()) + resultObject.commit.id = commitNode["id"].asString(); + if(!commitNode["shortId"].isNull()) + resultObject.commit.shortId = commitNode["shortId"].asString(); + if(!commitNode["title"].isNull()) + resultObject.commit.title = commitNode["title"].asString(); + if(!commitNode["message"].isNull()) + resultObject.commit.message = commitNode["message"].asString(); + if(!commitNode["createdAt"].isNull()) + resultObject.commit.createdAt = commitNode["createdAt"].asString(); + if(!commitNode["authorName"].isNull()) + resultObject.commit.authorName = commitNode["authorName"].asString(); + if(!commitNode["authorEmail"].isNull()) + resultObject.commit.authorEmail = commitNode["authorEmail"].asString(); + if(!commitNode["authoredDate"].isNull()) + resultObject.commit.authoredDate = commitNode["authoredDate"].asString(); + if(!commitNode["committerName"].isNull()) + resultObject.commit.committerName = commitNode["committerName"].asString(); + if(!commitNode["committerEmail"].isNull()) + resultObject.commit.committerEmail = commitNode["committerEmail"].asString(); + if(!commitNode["committedDate"].isNull()) + resultObject.commit.committedDate = commitNode["committedDate"].asString(); + auto signatureNode = commitNode["signature"]; + if(!signatureNode["gpgKeyId"].isNull()) + resultObject.commit.signature.gpgKeyId = signatureNode["gpgKeyId"].asString(); + if(!signatureNode["verificationStatus"].isNull()) + resultObject.commit.signature.verificationStatus = signatureNode["verificationStatus"].asString(); + auto allParentIds = commitNode["parentIds"]["parent_ids"]; + for (auto value : allParentIds) + resultObject.commit.parentIds.push_back(value.asString()); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListRepositoryTagsResult::getresult()const +{ + return result_; +} + +std::string ListRepositoryTagsResult::getRequestId()const +{ + return requestId_; +} + +long ListRepositoryTagsResult::getTotal()const +{ + return total_; +} + +std::string ListRepositoryTagsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListRepositoryTagsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListRepositoryTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListRepositoryTreeRequest.cc b/devops/src/model/ListRepositoryTreeRequest.cc new file mode 100644 index 000000000..cbde93285 --- /dev/null +++ b/devops/src/model/ListRepositoryTreeRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListRepositoryTreeRequest; + +ListRepositoryTreeRequest::ListRepositoryTreeRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/files/tree"}; + setMethod(HttpRequest::Method::Get); +} + +ListRepositoryTreeRequest::~ListRepositoryTreeRequest() {} + +std::string ListRepositoryTreeRequest::getOrganizationId() const { + return organizationId_; +} + +void ListRepositoryTreeRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListRepositoryTreeRequest::getPath() const { + return path_; +} + +void ListRepositoryTreeRequest::setPath(const std::string &path) { + path_ = path; + setParameter(std::string("path"), path); +} + +long ListRepositoryTreeRequest::getRepositoryId() const { + return repositoryId_; +} + +void ListRepositoryTreeRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string ListRepositoryTreeRequest::getAccessToken() const { + return accessToken_; +} + +void ListRepositoryTreeRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string ListRepositoryTreeRequest::getType() const { + return type_; +} + +void ListRepositoryTreeRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("type"), type); +} + +std::string ListRepositoryTreeRequest::getRefName() const { + return refName_; +} + +void ListRepositoryTreeRequest::setRefName(const std::string &refName) { + refName_ = refName; + setParameter(std::string("refName"), refName); +} + diff --git a/devops/src/model/ListRepositoryTreeResult.cc b/devops/src/model/ListRepositoryTreeResult.cc new file mode 100644 index 000000000..3eace48e5 --- /dev/null +++ b/devops/src/model/ListRepositoryTreeResult.cc @@ -0,0 +1,95 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListRepositoryTreeResult::ListRepositoryTreeResult() : + ServiceResult() +{} + +ListRepositoryTreeResult::ListRepositoryTreeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRepositoryTreeResult::~ListRepositoryTreeResult() +{} + +void ListRepositoryTreeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["path"].isNull()) + resultObject.path = valueresultresultItem["path"].asString(); + if(!valueresultresultItem["isLFS"].isNull()) + resultObject.isLFS = valueresultresultItem["isLFS"].asString() == "true"; + if(!valueresultresultItem["id"].isNull()) + resultObject.id = valueresultresultItem["id"].asString(); + if(!valueresultresultItem["name"].isNull()) + resultObject.name = valueresultresultItem["name"].asString(); + if(!valueresultresultItem["type"].isNull()) + resultObject.type = valueresultresultItem["type"].asString(); + if(!valueresultresultItem["mode"].isNull()) + resultObject.mode = valueresultresultItem["mode"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector ListRepositoryTreeResult::getresult()const +{ + return result_; +} + +std::string ListRepositoryTreeResult::getRequestId()const +{ + return requestId_; +} + +std::string ListRepositoryTreeResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListRepositoryTreeResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListRepositoryTreeResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListRepositoryWebhookRequest.cc b/devops/src/model/ListRepositoryWebhookRequest.cc new file mode 100644 index 000000000..5935474b7 --- /dev/null +++ b/devops/src/model/ListRepositoryWebhookRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListRepositoryWebhookRequest; + +ListRepositoryWebhookRequest::ListRepositoryWebhookRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/webhooks/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListRepositoryWebhookRequest::~ListRepositoryWebhookRequest() {} + +std::string ListRepositoryWebhookRequest::getOrganizationId() const { + return organizationId_; +} + +void ListRepositoryWebhookRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ListRepositoryWebhookRequest::getRepositoryId() const { + return repositoryId_; +} + +void ListRepositoryWebhookRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +long ListRepositoryWebhookRequest::getPageSize() const { + return pageSize_; +} + +void ListRepositoryWebhookRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListRepositoryWebhookRequest::getAccessToken() const { + return accessToken_; +} + +void ListRepositoryWebhookRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long ListRepositoryWebhookRequest::getPage() const { + return page_; +} + +void ListRepositoryWebhookRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListRepositoryWebhookResult.cc b/devops/src/model/ListRepositoryWebhookResult.cc new file mode 100644 index 000000000..ed2d7c68a --- /dev/null +++ b/devops/src/model/ListRepositoryWebhookResult.cc @@ -0,0 +1,114 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListRepositoryWebhookResult::ListRepositoryWebhookResult() : + ServiceResult() +{} + +ListRepositoryWebhookResult::ListRepositoryWebhookResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRepositoryWebhookResult::~ListRepositoryWebhookResult() +{} + +void ListRepositoryWebhookResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["ResultItem"]; + for (auto valueresultResultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultResultItem["pushEvents"].isNull()) + resultObject.pushEvents = valueresultResultItem["pushEvents"].asString() == "true"; + if(!valueresultResultItem["projectId"].isNull()) + resultObject.projectId = std::stol(valueresultResultItem["projectId"].asString()); + if(!valueresultResultItem["createdAt"].isNull()) + resultObject.createdAt = valueresultResultItem["createdAt"].asString(); + if(!valueresultResultItem["url"].isNull()) + resultObject.url = valueresultResultItem["url"].asString(); + if(!valueresultResultItem["tagPushEvents"].isNull()) + resultObject.tagPushEvents = valueresultResultItem["tagPushEvents"].asString() == "true"; + if(!valueresultResultItem["lastTestResult"].isNull()) + resultObject.lastTestResult = valueresultResultItem["lastTestResult"].asString(); + if(!valueresultResultItem["mergeRequestsEvents"].isNull()) + resultObject.mergeRequestsEvents = valueresultResultItem["mergeRequestsEvents"].asString() == "true"; + if(!valueresultResultItem["description"].isNull()) + resultObject.description = valueresultResultItem["description"].asString(); + if(!valueresultResultItem["noteEvents"].isNull()) + resultObject.noteEvents = valueresultResultItem["noteEvents"].asString() == "true"; + if(!valueresultResultItem["secretToken"].isNull()) + resultObject.secretToken = valueresultResultItem["secretToken"].asString(); + if(!valueresultResultItem["id"].isNull()) + resultObject.id = std::stol(valueresultResultItem["id"].asString()); + if(!valueresultResultItem["enableSslVerification"].isNull()) + resultObject.enableSslVerification = valueresultResultItem["enableSslVerification"].asString() == "true"; + result_.push_back(resultObject); + } + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::vector ListRepositoryWebhookResult::getresult()const +{ + return result_; +} + +std::string ListRepositoryWebhookResult::getRequestId()const +{ + return requestId_; +} + +long ListRepositoryWebhookResult::getTotal()const +{ + return total_; +} + +std::string ListRepositoryWebhookResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListRepositoryWebhookResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListRepositoryWebhookResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListResourceMembersRequest.cc b/devops/src/model/ListResourceMembersRequest.cc new file mode 100644 index 000000000..d2f9f6c0a --- /dev/null +++ b/devops/src/model/ListResourceMembersRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListResourceMembersRequest; + +ListResourceMembersRequest::ListResourceMembersRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/[resourceType]/[resourceId]/members"}; + setMethod(HttpRequest::Method::Get); +} + +ListResourceMembersRequest::~ListResourceMembersRequest() {} + +long ListResourceMembersRequest::getResourceId() const { + return resourceId_; +} + +void ListResourceMembersRequest::setResourceId(long resourceId) { + resourceId_ = resourceId; + setParameter(std::string("resourceId"), std::to_string(resourceId)); +} + +std::string ListResourceMembersRequest::getResourceType() const { + return resourceType_; +} + +void ListResourceMembersRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("resourceType"), resourceType); +} + +std::string ListResourceMembersRequest::getOrganizationId() const { + return organizationId_; +} + +void ListResourceMembersRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/ListResourceMembersResult.cc b/devops/src/model/ListResourceMembersResult.cc new file mode 100644 index 000000000..90413c2a3 --- /dev/null +++ b/devops/src/model/ListResourceMembersResult.cc @@ -0,0 +1,89 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListResourceMembersResult::ListResourceMembersResult() : + ServiceResult() +{} + +ListResourceMembersResult::ListResourceMembersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListResourceMembersResult::~ListResourceMembersResult() +{} + +void ListResourceMembersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresourceMembersNode = value["resourceMembers"]["ResourceMember"]; + for (auto valueresourceMembersResourceMember : allresourceMembersNode) + { + ResourceMember resourceMembersObject; + if(!valueresourceMembersResourceMember["accountId"].isNull()) + resourceMembersObject.accountId = valueresourceMembersResourceMember["accountId"].asString(); + if(!valueresourceMembersResourceMember["roleName"].isNull()) + resourceMembersObject.roleName = valueresourceMembersResourceMember["roleName"].asString(); + if(!valueresourceMembersResourceMember["username"].isNull()) + resourceMembersObject.username = valueresourceMembersResourceMember["username"].asString(); + resourceMembers_.push_back(resourceMembersObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListResourceMembersResult::getRequestId()const +{ + return requestId_; +} + +std::string ListResourceMembersResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListResourceMembersResult::getresourceMembers()const +{ + return resourceMembers_; +} + +std::string ListResourceMembersResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListResourceMembersResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListSearchCommitRequest.cc b/devops/src/model/ListSearchCommitRequest.cc new file mode 100644 index 000000000..2188f7c8e --- /dev/null +++ b/devops/src/model/ListSearchCommitRequest.cc @@ -0,0 +1,54 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListSearchCommitRequest; + +ListSearchCommitRequest::ListSearchCommitRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/search/commit"}; + setMethod(HttpRequest::Method::Post); +} + +ListSearchCommitRequest::~ListSearchCommitRequest() {} + +std::string ListSearchCommitRequest::getOrganizationId() const { + return organizationId_; +} + +void ListSearchCommitRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +ListSearchCommitRequest::body ListSearchCommitRequest::getBody() const { + return body_; +} + +void ListSearchCommitRequest::setBody(const ListSearchCommitRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".scope", body.scope); + setBodyParameter(std::string("body") + ".pageSize", std::to_string(body.pageSize)); + setBodyParameter(std::string("body") + ".page", std::to_string(body.page)); + setBodyParameter(std::string("body") + ".sort", body.sort); + setBodyParameter(std::string("body") + ".keyword", body.keyword); + setBodyParameter(std::string("body") + ".repoPath.matchType", body.repoPath.matchType); + setBodyParameter(std::string("body") + ".repoPath.value", body.repoPath.value); + setBodyParameter(std::string("body") + ".repoPath.operatorType", body.repoPath.operatorType); + setBodyParameter(std::string("body") + ".order", body.order); +} + diff --git a/devops/src/model/ListSearchCommitResult.cc b/devops/src/model/ListSearchCommitResult.cc new file mode 100644 index 000000000..984cec9de --- /dev/null +++ b/devops/src/model/ListSearchCommitResult.cc @@ -0,0 +1,119 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListSearchCommitResult::ListSearchCommitResult() : + ServiceResult() +{} + +ListSearchCommitResult::ListSearchCommitResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSearchCommitResult::~ListSearchCommitResult() +{} + +void ListSearchCommitResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["docId"].isNull()) + resultObject.docId = valueresultresultItem["docId"].asString(); + auto highlightTextMapNode = value["highlightTextMap"]; + if(!highlightTextMapNode["commitId"].isNull()) + resultObject.highlightTextMap.commitId = highlightTextMapNode["commitId"].asString(); + if(!highlightTextMapNode["title"].isNull()) + resultObject.highlightTextMap.title = highlightTextMapNode["title"].asString(); + if(!highlightTextMapNode["commitMessage"].isNull()) + resultObject.highlightTextMap.commitMessage = highlightTextMapNode["commitMessage"].asString(); + if(!highlightTextMapNode["organizationId"].isNull()) + resultObject.highlightTextMap.organizationId = highlightTextMapNode["organizationId"].asString(); + auto sourceNode = value["source"]; + if(!sourceNode["commitId"].isNull()) + resultObject.source.commitId = sourceNode["commitId"].asString(); + if(!sourceNode["title"].isNull()) + resultObject.source.title = sourceNode["title"].asString(); + if(!sourceNode["commitMessage"].isNull()) + resultObject.source.commitMessage = sourceNode["commitMessage"].asString(); + if(!sourceNode["authorTime"].isNull()) + resultObject.source.authorTime = sourceNode["authorTime"].asString(); + if(!sourceNode["repoPath"].isNull()) + resultObject.source.repoPath = sourceNode["repoPath"].asString(); + if(!sourceNode["organizationId"].isNull()) + resultObject.source.organizationId = sourceNode["organizationId"].asString(); + auto authorNode = sourceNode["author"]; + if(!authorNode["name"].isNull()) + resultObject.source.author.name = authorNode["name"].asString(); + if(!authorNode["email"].isNull()) + resultObject.source.author.email = authorNode["email"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListSearchCommitResult::getresult()const +{ + return result_; +} + +std::string ListSearchCommitResult::getRequestId()const +{ + return requestId_; +} + +long ListSearchCommitResult::getTotal()const +{ + return total_; +} + +std::string ListSearchCommitResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListSearchCommitResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListSearchCommitResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListSearchRepositoryRequest.cc b/devops/src/model/ListSearchRepositoryRequest.cc new file mode 100644 index 000000000..dd09399ba --- /dev/null +++ b/devops/src/model/ListSearchRepositoryRequest.cc @@ -0,0 +1,56 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListSearchRepositoryRequest; + +ListSearchRepositoryRequest::ListSearchRepositoryRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/search/repo"}; + setMethod(HttpRequest::Method::Post); +} + +ListSearchRepositoryRequest::~ListSearchRepositoryRequest() {} + +std::string ListSearchRepositoryRequest::getOrganizationId() const { + return organizationId_; +} + +void ListSearchRepositoryRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +ListSearchRepositoryRequest::body ListSearchRepositoryRequest::getBody() const { + return body_; +} + +void ListSearchRepositoryRequest::setBody(const ListSearchRepositoryRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".aliyunPk", body.aliyunPk); + setBodyParameter(std::string("body") + ".scope", body.scope); + setBodyParameter(std::string("body") + ".pageSize", std::to_string(body.pageSize)); + setBodyParameter(std::string("body") + ".visibilityLevel", std::to_string(body.visibilityLevel)); + setBodyParameter(std::string("body") + ".page", std::to_string(body.page)); + setBodyParameter(std::string("body") + ".sort", body.sort); + setBodyParameter(std::string("body") + ".keyword", body.keyword); + setBodyParameter(std::string("body") + ".repoPath.matchType", body.repoPath.matchType); + setBodyParameter(std::string("body") + ".repoPath.value", body.repoPath.value); + setBodyParameter(std::string("body") + ".repoPath.operatorType", body.repoPath.operatorType); + setBodyParameter(std::string("body") + ".order", body.order); +} + diff --git a/devops/src/model/ListSearchRepositoryResult.cc b/devops/src/model/ListSearchRepositoryResult.cc new file mode 100644 index 000000000..5218da0ca --- /dev/null +++ b/devops/src/model/ListSearchRepositoryResult.cc @@ -0,0 +1,122 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListSearchRepositoryResult::ListSearchRepositoryResult() : + ServiceResult() +{} + +ListSearchRepositoryResult::ListSearchRepositoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSearchRepositoryResult::~ListSearchRepositoryResult() +{} + +void ListSearchRepositoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["docId"].isNull()) + resultObject.docId = valueresultresultItem["docId"].asString(); + auto highlightTextMapNode = value["highlightTextMap"]; + if(!highlightTextMapNode["organizationId"].isNull()) + resultObject.highlightTextMap.organizationId = highlightTextMapNode["organizationId"].asString(); + if(!highlightTextMapNode["creatorUserId"].isNull()) + resultObject.highlightTextMap.creatorUserId = highlightTextMapNode["creatorUserId"].asString(); + if(!highlightTextMapNode["repoPath"].isNull()) + resultObject.highlightTextMap.repoPath = highlightTextMapNode["repoPath"].asString(); + if(!highlightTextMapNode["repoNameWithNamespace"].isNull()) + resultObject.highlightTextMap.repoNameWithNamespace = highlightTextMapNode["repoNameWithNamespace"].asString(); + if(!highlightTextMapNode["readMe"].isNull()) + resultObject.highlightTextMap.readMe = highlightTextMapNode["readMe"].asString(); + if(!highlightTextMapNode["description"].isNull()) + resultObject.highlightTextMap.description = highlightTextMapNode["description"].asString(); + auto sourceNode = value["source"]; + if(!sourceNode["repoName"].isNull()) + resultObject.source.repoName = sourceNode["repoName"].asString(); + if(!sourceNode["repoPath"].isNull()) + resultObject.source.repoPath = sourceNode["repoPath"].asString(); + if(!sourceNode["description"].isNull()) + resultObject.source.description = sourceNode["description"].asString(); + if(!sourceNode["visibilityLevel"].isNull()) + resultObject.source.visibilityLevel = std::stoi(sourceNode["visibilityLevel"].asString()); + if(!sourceNode["createTime"].isNull()) + resultObject.source.createTime = sourceNode["createTime"].asString(); + if(!sourceNode["lastActivityTime"].isNull()) + resultObject.source.lastActivityTime = sourceNode["lastActivityTime"].asString(); + if(!sourceNode["readMe"].isNull()) + resultObject.source.readMe = sourceNode["readMe"].asString(); + if(!sourceNode["organizationId"].isNull()) + resultObject.source.organizationId = sourceNode["organizationId"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListSearchRepositoryResult::getresult()const +{ + return result_; +} + +std::string ListSearchRepositoryResult::getRequestId()const +{ + return requestId_; +} + +long ListSearchRepositoryResult::getTotal()const +{ + return total_; +} + +std::string ListSearchRepositoryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListSearchRepositoryResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListSearchRepositoryResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListSearchSourceCodeRequest.cc b/devops/src/model/ListSearchSourceCodeRequest.cc new file mode 100644 index 000000000..b95bc428d --- /dev/null +++ b/devops/src/model/ListSearchSourceCodeRequest.cc @@ -0,0 +1,59 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListSearchSourceCodeRequest; + +ListSearchSourceCodeRequest::ListSearchSourceCodeRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/search/code"}; + setMethod(HttpRequest::Method::Post); +} + +ListSearchSourceCodeRequest::~ListSearchSourceCodeRequest() {} + +std::string ListSearchSourceCodeRequest::getOrganizationId() const { + return organizationId_; +} + +void ListSearchSourceCodeRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +ListSearchSourceCodeRequest::body ListSearchSourceCodeRequest::getBody() const { + return body_; +} + +void ListSearchSourceCodeRequest::setBody(const ListSearchSourceCodeRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".isCodeBlock", body.isCodeBlock ? "true" : "false"); + setBodyParameter(std::string("body") + ".filePath.matchType", body.filePath.matchType); + setBodyParameter(std::string("body") + ".filePath.value", body.filePath.value); + setBodyParameter(std::string("body") + ".filePath.operatorType", body.filePath.operatorType); + setBodyParameter(std::string("body") + ".scope", body.scope); + setBodyParameter(std::string("body") + ".pageSize", std::to_string(body.pageSize)); + setBodyParameter(std::string("body") + ".language", body.language); + setBodyParameter(std::string("body") + ".page", std::to_string(body.page)); + setBodyParameter(std::string("body") + ".sort", body.sort); + setBodyParameter(std::string("body") + ".keyword", body.keyword); + setBodyParameter(std::string("body") + ".repoPath.matchType", body.repoPath.matchType); + setBodyParameter(std::string("body") + ".repoPath.value", body.repoPath.value); + setBodyParameter(std::string("body") + ".repoPath.operatorType", body.repoPath.operatorType); + setBodyParameter(std::string("body") + ".order", body.order); +} + diff --git a/devops/src/model/ListSearchSourceCodeResult.cc b/devops/src/model/ListSearchSourceCodeResult.cc new file mode 100644 index 000000000..64d57dc72 --- /dev/null +++ b/devops/src/model/ListSearchSourceCodeResult.cc @@ -0,0 +1,116 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListSearchSourceCodeResult::ListSearchSourceCodeResult() : + ServiceResult() +{} + +ListSearchSourceCodeResult::ListSearchSourceCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSearchSourceCodeResult::~ListSearchSourceCodeResult() +{} + +void ListSearchSourceCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + if(!valueresultresultItem["docId"].isNull()) + resultObject.docId = valueresultresultItem["docId"].asString(); + auto highlightTextMapNode = value["highlightTextMap"]; + if(!highlightTextMapNode["organizationId"].isNull()) + resultObject.highlightTextMap.organizationId = highlightTextMapNode["organizationId"].asString(); + if(!highlightTextMapNode["fileName"].isNull()) + resultObject.highlightTextMap.fileName = highlightTextMapNode["fileName"].asString(); + if(!highlightTextMapNode["clob"].isNull()) + resultObject.highlightTextMap.clob = highlightTextMapNode["clob"].asString(); + if(!highlightTextMapNode["language"].isNull()) + resultObject.highlightTextMap.language = highlightTextMapNode["language"].asString(); + auto sourceNode = value["source"]; + if(!sourceNode["repoPath"].isNull()) + resultObject.source.repoPath = sourceNode["repoPath"].asString(); + if(!sourceNode["fileName"].isNull()) + resultObject.source.fileName = sourceNode["fileName"].asString(); + if(!sourceNode["filePath"].isNull()) + resultObject.source.filePath = sourceNode["filePath"].asString(); + if(!sourceNode["language"].isNull()) + resultObject.source.language = sourceNode["language"].asString(); + if(!sourceNode["checkinDate"].isNull()) + resultObject.source.checkinDate = sourceNode["checkinDate"].asString(); + if(!sourceNode["branch"].isNull()) + resultObject.source.branch = sourceNode["branch"].asString(); + if(!sourceNode["organizationId"].isNull()) + resultObject.source.organizationId = sourceNode["organizationId"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListSearchSourceCodeResult::getresult()const +{ + return result_; +} + +std::string ListSearchSourceCodeResult::getRequestId()const +{ + return requestId_; +} + +long ListSearchSourceCodeResult::getTotal()const +{ + return total_; +} + +std::string ListSearchSourceCodeResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListSearchSourceCodeResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListSearchSourceCodeResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListServiceAuthsRequest.cc b/devops/src/model/ListServiceAuthsRequest.cc new file mode 100644 index 000000000..c3d7d11ec --- /dev/null +++ b/devops/src/model/ListServiceAuthsRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListServiceAuthsRequest; + +ListServiceAuthsRequest::ListServiceAuthsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/serviceAuths"}; + setMethod(HttpRequest::Method::Get); +} + +ListServiceAuthsRequest::~ListServiceAuthsRequest() {} + +std::string ListServiceAuthsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListServiceAuthsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListServiceAuthsRequest::getServiceAuthType() const { + return serviceAuthType_; +} + +void ListServiceAuthsRequest::setServiceAuthType(const std::string &serviceAuthType) { + serviceAuthType_ = serviceAuthType; + setParameter(std::string("serviceAuthType"), serviceAuthType); +} + diff --git a/devops/src/model/ListServiceAuthsResult.cc b/devops/src/model/ListServiceAuthsResult.cc new file mode 100644 index 000000000..39cc11039 --- /dev/null +++ b/devops/src/model/ListServiceAuthsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListServiceAuthsResult::ListServiceAuthsResult() : + ServiceResult() +{} + +ListServiceAuthsResult::ListServiceAuthsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServiceAuthsResult::~ListServiceAuthsResult() +{} + +void ListServiceAuthsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allserviceAuthsNode = value["serviceAuths"]["ServiceAuth"]; + for (auto valueserviceAuthsServiceAuth : allserviceAuthsNode) + { + ServiceAuth serviceAuthsObject; + if(!valueserviceAuthsServiceAuth["id"].isNull()) + serviceAuthsObject.id = std::stol(valueserviceAuthsServiceAuth["id"].asString()); + if(!valueserviceAuthsServiceAuth["ownerName"].isNull()) + serviceAuthsObject.ownerName = valueserviceAuthsServiceAuth["ownerName"].asString(); + if(!valueserviceAuthsServiceAuth["type"].isNull()) + serviceAuthsObject.type = valueserviceAuthsServiceAuth["type"].asString(); + if(!valueserviceAuthsServiceAuth["ownerStaffId"].isNull()) + serviceAuthsObject.ownerStaffId = valueserviceAuthsServiceAuth["ownerStaffId"].asString(); + serviceAuths_.push_back(serviceAuthsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListServiceAuthsResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListServiceAuthsResult::getserviceAuths()const +{ + return serviceAuths_; +} + +std::string ListServiceAuthsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListServiceAuthsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListServiceAuthsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListServiceConnectionsRequest.cc b/devops/src/model/ListServiceConnectionsRequest.cc new file mode 100644 index 000000000..79f9819ef --- /dev/null +++ b/devops/src/model/ListServiceConnectionsRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListServiceConnectionsRequest; + +ListServiceConnectionsRequest::ListServiceConnectionsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/serviceConnections"}; + setMethod(HttpRequest::Method::Get); +} + +ListServiceConnectionsRequest::~ListServiceConnectionsRequest() {} + +std::string ListServiceConnectionsRequest::getSericeConnectionType() const { + return sericeConnectionType_; +} + +void ListServiceConnectionsRequest::setSericeConnectionType(const std::string &sericeConnectionType) { + sericeConnectionType_ = sericeConnectionType; + setParameter(std::string("sericeConnectionType"), sericeConnectionType); +} + +std::string ListServiceConnectionsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListServiceConnectionsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/ListServiceConnectionsResult.cc b/devops/src/model/ListServiceConnectionsResult.cc new file mode 100644 index 000000000..3e551a0dc --- /dev/null +++ b/devops/src/model/ListServiceConnectionsResult.cc @@ -0,0 +1,95 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListServiceConnectionsResult::ListServiceConnectionsResult() : + ServiceResult() +{} + +ListServiceConnectionsResult::ListServiceConnectionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServiceConnectionsResult::~ListServiceConnectionsResult() +{} + +void ListServiceConnectionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allserviceConnectionsNode = value["serviceConnections"]["ServiceConnection"]; + for (auto valueserviceConnectionsServiceConnection : allserviceConnectionsNode) + { + ServiceConnection serviceConnectionsObject; + if(!valueserviceConnectionsServiceConnection["ownerAccountId"].isNull()) + serviceConnectionsObject.ownerAccountId = std::stol(valueserviceConnectionsServiceConnection["ownerAccountId"].asString()); + if(!valueserviceConnectionsServiceConnection["name"].isNull()) + serviceConnectionsObject.name = valueserviceConnectionsServiceConnection["name"].asString(); + if(!valueserviceConnectionsServiceConnection["id"].isNull()) + serviceConnectionsObject.id = std::stol(valueserviceConnectionsServiceConnection["id"].asString()); + if(!valueserviceConnectionsServiceConnection["type"].isNull()) + serviceConnectionsObject.type = valueserviceConnectionsServiceConnection["type"].asString(); + if(!valueserviceConnectionsServiceConnection["createTime"].isNull()) + serviceConnectionsObject.createTime = std::stol(valueserviceConnectionsServiceConnection["createTime"].asString()); + if(!valueserviceConnectionsServiceConnection["uuid"].isNull()) + serviceConnectionsObject.uuid = valueserviceConnectionsServiceConnection["uuid"].asString(); + serviceConnections_.push_back(serviceConnectionsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector ListServiceConnectionsResult::getserviceConnections()const +{ + return serviceConnections_; +} + +std::string ListServiceConnectionsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListServiceConnectionsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListServiceConnectionsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListServiceConnectionsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListServiceCredentialsRequest.cc b/devops/src/model/ListServiceCredentialsRequest.cc new file mode 100644 index 000000000..5fedbf77c --- /dev/null +++ b/devops/src/model/ListServiceCredentialsRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListServiceCredentialsRequest; + +ListServiceCredentialsRequest::ListServiceCredentialsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/serviceCredentials"}; + setMethod(HttpRequest::Method::Get); +} + +ListServiceCredentialsRequest::~ListServiceCredentialsRequest() {} + +std::string ListServiceCredentialsRequest::getServiceCredentialType() const { + return serviceCredentialType_; +} + +void ListServiceCredentialsRequest::setServiceCredentialType(const std::string &serviceCredentialType) { + serviceCredentialType_ = serviceCredentialType; + setParameter(std::string("serviceCredentialType"), serviceCredentialType); +} + +std::string ListServiceCredentialsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListServiceCredentialsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/ListServiceCredentialsResult.cc b/devops/src/model/ListServiceCredentialsResult.cc new file mode 100644 index 000000000..33bce858b --- /dev/null +++ b/devops/src/model/ListServiceCredentialsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListServiceCredentialsResult::ListServiceCredentialsResult() : + ServiceResult() +{} + +ListServiceCredentialsResult::ListServiceCredentialsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServiceCredentialsResult::~ListServiceCredentialsResult() +{} + +void ListServiceCredentialsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allserviceCredentialsNode = value["serviceCredentials"]["ServiceCredential"]; + for (auto valueserviceCredentialsServiceCredential : allserviceCredentialsNode) + { + ServiceCredential serviceCredentialsObject; + if(!valueserviceCredentialsServiceCredential["id"].isNull()) + serviceCredentialsObject.id = std::stol(valueserviceCredentialsServiceCredential["id"].asString()); + if(!valueserviceCredentialsServiceCredential["ownerName"].isNull()) + serviceCredentialsObject.ownerName = valueserviceCredentialsServiceCredential["ownerName"].asString(); + if(!valueserviceCredentialsServiceCredential["type"].isNull()) + serviceCredentialsObject.type = valueserviceCredentialsServiceCredential["type"].asString(); + if(!valueserviceCredentialsServiceCredential["ownerStaffId"].isNull()) + serviceCredentialsObject.ownerStaffId = valueserviceCredentialsServiceCredential["ownerStaffId"].asString(); + serviceCredentials_.push_back(serviceCredentialsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListServiceCredentialsResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListServiceCredentialsResult::getserviceCredentials()const +{ + return serviceCredentials_; +} + +std::string ListServiceCredentialsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListServiceCredentialsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListServiceCredentialsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListSprintsRequest.cc b/devops/src/model/ListSprintsRequest.cc new file mode 100644 index 000000000..d34f7a850 --- /dev/null +++ b/devops/src/model/ListSprintsRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListSprintsRequest; + +ListSprintsRequest::ListSprintsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/sprints/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListSprintsRequest::~ListSprintsRequest() {} + +std::string ListSprintsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListSprintsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListSprintsRequest::getSpaceType() const { + return spaceType_; +} + +void ListSprintsRequest::setSpaceType(const std::string &spaceType) { + spaceType_ = spaceType; + setParameter(std::string("spaceType"), spaceType); +} + +std::string ListSprintsRequest::getNextToken() const { + return nextToken_; +} + +void ListSprintsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +long ListSprintsRequest::getMaxResults() const { + return maxResults_; +} + +void ListSprintsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + +std::string ListSprintsRequest::getSpaceIdentifier() const { + return spaceIdentifier_; +} + +void ListSprintsRequest::setSpaceIdentifier(const std::string &spaceIdentifier) { + spaceIdentifier_ = spaceIdentifier; + setParameter(std::string("spaceIdentifier"), spaceIdentifier); +} + diff --git a/devops/src/model/ListSprintsResult.cc b/devops/src/model/ListSprintsResult.cc new file mode 100644 index 000000000..bbe577837 --- /dev/null +++ b/devops/src/model/ListSprintsResult.cc @@ -0,0 +1,128 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListSprintsResult::ListSprintsResult() : + ServiceResult() +{} + +ListSprintsResult::ListSprintsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSprintsResult::~ListSprintsResult() +{} + +void ListSprintsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allsprintsNode = value["sprints"]["sprint"]; + for (auto valuesprintssprint : allsprintsNode) + { + Sprint sprintsObject; + if(!valuesprintssprint["creator"].isNull()) + sprintsObject.creator = valuesprintssprint["creator"].asString(); + if(!valuesprintssprint["description"].isNull()) + sprintsObject.description = valuesprintssprint["description"].asString(); + if(!valuesprintssprint["gmtCreate"].isNull()) + sprintsObject.gmtCreate = std::stol(valuesprintssprint["gmtCreate"].asString()); + if(!valuesprintssprint["gmtModified"].isNull()) + sprintsObject.gmtModified = std::stol(valuesprintssprint["gmtModified"].asString()); + if(!valuesprintssprint["endDate"].isNull()) + sprintsObject.endDate = std::stol(valuesprintssprint["endDate"].asString()); + if(!valuesprintssprint["startDate"].isNull()) + sprintsObject.startDate = std::stol(valuesprintssprint["startDate"].asString()); + if(!valuesprintssprint["identifier"].isNull()) + sprintsObject.identifier = valuesprintssprint["identifier"].asString(); + if(!valuesprintssprint["modifier"].isNull()) + sprintsObject.modifier = valuesprintssprint["modifier"].asString(); + if(!valuesprintssprint["name"].isNull()) + sprintsObject.name = valuesprintssprint["name"].asString(); + if(!valuesprintssprint["spaceIdentifier"].isNull()) + sprintsObject.spaceIdentifier = valuesprintssprint["spaceIdentifier"].asString(); + if(!valuesprintssprint["scope"].isNull()) + sprintsObject.scope = valuesprintssprint["scope"].asString(); + if(!valuesprintssprint["status"].isNull()) + sprintsObject.status = valuesprintssprint["status"].asString(); + sprints_.push_back(sprintsObject); + } + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + if(!value["maxResults"].isNull()) + maxResults_ = std::stol(value["maxResults"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +long ListSprintsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListSprintsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListSprintsResult::getRequestId()const +{ + return requestId_; +} + +long ListSprintsResult::getMaxResults()const +{ + return maxResults_; +} + +std::string ListSprintsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListSprintsResult::getsprints()const +{ + return sprints_; +} + +std::string ListSprintsResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListSprintsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListTestCaseFieldsRequest.cc b/devops/src/model/ListTestCaseFieldsRequest.cc new file mode 100644 index 000000000..55466651b --- /dev/null +++ b/devops/src/model/ListTestCaseFieldsRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListTestCaseFieldsRequest; + +ListTestCaseFieldsRequest::ListTestCaseFieldsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/testhub/testcase/fields"}; + setMethod(HttpRequest::Method::Get); +} + +ListTestCaseFieldsRequest::~ListTestCaseFieldsRequest() {} + +std::string ListTestCaseFieldsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListTestCaseFieldsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListTestCaseFieldsRequest::getSpaceIdentifier() const { + return spaceIdentifier_; +} + +void ListTestCaseFieldsRequest::setSpaceIdentifier(const std::string &spaceIdentifier) { + spaceIdentifier_ = spaceIdentifier; + setParameter(std::string("spaceIdentifier"), spaceIdentifier); +} + diff --git a/devops/src/model/ListTestCaseFieldsResult.cc b/devops/src/model/ListTestCaseFieldsResult.cc new file mode 100644 index 000000000..1d7be6084 --- /dev/null +++ b/devops/src/model/ListTestCaseFieldsResult.cc @@ -0,0 +1,135 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListTestCaseFieldsResult::ListTestCaseFieldsResult() : + ServiceResult() +{} + +ListTestCaseFieldsResult::ListTestCaseFieldsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTestCaseFieldsResult::~ListTestCaseFieldsResult() +{} + +void ListTestCaseFieldsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allfieldsNode = value["fields"]["field"]; + for (auto valuefieldsfield : allfieldsNode) + { + Field fieldsObject; + if(!valuefieldsfield["creator"].isNull()) + fieldsObject.creator = valuefieldsfield["creator"].asString(); + if(!valuefieldsfield["description"].isNull()) + fieldsObject.description = valuefieldsfield["description"].asString(); + if(!valuefieldsfield["gmtCreate"].isNull()) + fieldsObject.gmtCreate = std::stol(valuefieldsfield["gmtCreate"].asString()); + if(!valuefieldsfield["gmtModified"].isNull()) + fieldsObject.gmtModified = std::stol(valuefieldsfield["gmtModified"].asString()); + if(!valuefieldsfield["type"].isNull()) + fieldsObject.type = valuefieldsfield["type"].asString(); + if(!valuefieldsfield["identifier"].isNull()) + fieldsObject.identifier = valuefieldsfield["identifier"].asString(); + if(!valuefieldsfield["modifier"].isNull()) + fieldsObject.modifier = valuefieldsfield["modifier"].asString(); + if(!valuefieldsfield["name"].isNull()) + fieldsObject.name = valuefieldsfield["name"].asString(); + if(!valuefieldsfield["format"].isNull()) + fieldsObject.format = valuefieldsfield["format"].asString(); + if(!valuefieldsfield["className"].isNull()) + fieldsObject.className = valuefieldsfield["className"].asString(); + if(!valuefieldsfield["resourceType"].isNull()) + fieldsObject.resourceType = valuefieldsfield["resourceType"].asString(); + if(!valuefieldsfield["defaultValue"].isNull()) + fieldsObject.defaultValue = valuefieldsfield["defaultValue"].asString(); + if(!valuefieldsfield["isRequired"].isNull()) + fieldsObject.isRequired = valuefieldsfield["isRequired"].asString() == "true"; + if(!valuefieldsfield["isSystemRequired"].isNull()) + fieldsObject.isSystemRequired = valuefieldsfield["isSystemRequired"].asString() == "true"; + if(!valuefieldsfield["linkWithService"].isNull()) + fieldsObject.linkWithService = valuefieldsfield["linkWithService"].asString(); + if(!valuefieldsfield["isShowWhenCreate"].isNull()) + fieldsObject.isShowWhenCreate = valuefieldsfield["isShowWhenCreate"].asString() == "true"; + auto alloptionsNode = valuefieldsfield["options"]["option"]; + for (auto valuefieldsfieldoptionsoption : alloptionsNode) + { + Field::Option optionsObject; + if(!valuefieldsfieldoptionsoption["identifier"].isNull()) + optionsObject.identifier = valuefieldsfieldoptionsoption["identifier"].asString(); + if(!valuefieldsfieldoptionsoption["fieldIdentifier"].isNull()) + optionsObject.fieldIdentifier = valuefieldsfieldoptionsoption["fieldIdentifier"].asString(); + if(!valuefieldsfieldoptionsoption["value"].isNull()) + optionsObject.value = valuefieldsfieldoptionsoption["value"].asString(); + if(!valuefieldsfieldoptionsoption["valueEn"].isNull()) + optionsObject.valueEn = valuefieldsfieldoptionsoption["valueEn"].asString(); + if(!valuefieldsfieldoptionsoption["displayValue"].isNull()) + optionsObject.displayValue = valuefieldsfieldoptionsoption["displayValue"].asString(); + if(!valuefieldsfieldoptionsoption["position"].isNull()) + optionsObject.position = std::stol(valuefieldsfieldoptionsoption["position"].asString()); + if(!valuefieldsfieldoptionsoption["level"].isNull()) + optionsObject.level = std::stol(valuefieldsfieldoptionsoption["level"].asString()); + fieldsObject.options.push_back(optionsObject); + } + fields_.push_back(fieldsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListTestCaseFieldsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListTestCaseFieldsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string ListTestCaseFieldsResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListTestCaseFieldsResult::getfields()const +{ + return fields_; +} + +bool ListTestCaseFieldsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListUserDrawRecordByPkRequest.cc b/devops/src/model/ListUserDrawRecordByPkRequest.cc new file mode 100644 index 000000000..079b24370 --- /dev/null +++ b/devops/src/model/ListUserDrawRecordByPkRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListUserDrawRecordByPkRequest; + +ListUserDrawRecordByPkRequest::ListUserDrawRecordByPkRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/listUserDrawRecords"}; + setMethod(HttpRequest::Method::Get); +} + +ListUserDrawRecordByPkRequest::~ListUserDrawRecordByPkRequest() {} + +std::string ListUserDrawRecordByPkRequest::getAliyunPk() const { + return aliyunPk_; +} + +void ListUserDrawRecordByPkRequest::setAliyunPk(const std::string &aliyunPk) { + aliyunPk_ = aliyunPk; + setParameter(std::string("aliyunPk"), aliyunPk); +} + +std::string ListUserDrawRecordByPkRequest::getDrawGroup() const { + return drawGroup_; +} + +void ListUserDrawRecordByPkRequest::setDrawGroup(const std::string &drawGroup) { + drawGroup_ = drawGroup; + setParameter(std::string("drawGroup"), drawGroup); +} + +std::string ListUserDrawRecordByPkRequest::getDrawPoolName() const { + return drawPoolName_; +} + +void ListUserDrawRecordByPkRequest::setDrawPoolName(const std::string &drawPoolName) { + drawPoolName_ = drawPoolName; + setParameter(std::string("drawPoolName"), drawPoolName); +} + diff --git a/devops/src/model/ListUserDrawRecordByPkResult.cc b/devops/src/model/ListUserDrawRecordByPkResult.cc new file mode 100644 index 000000000..85e03553e --- /dev/null +++ b/devops/src/model/ListUserDrawRecordByPkResult.cc @@ -0,0 +1,97 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListUserDrawRecordByPkResult::ListUserDrawRecordByPkResult() : + ServiceResult() +{} + +ListUserDrawRecordByPkResult::ListUserDrawRecordByPkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserDrawRecordByPkResult::~ListUserDrawRecordByPkResult() +{} + +void ListUserDrawRecordByPkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto alldataNode = value["data"]["lingma-data"]; + for (auto valuedatalingma-data : alldataNode) + { + Lingmadata dataObject; + if(!valuedatalingma-data["uccId"].isNull()) + dataObject.uccId = valuedatalingma-data["uccId"].asString(); + if(!valuedatalingma-data["drawGroup"].isNull()) + dataObject.drawGroup = valuedatalingma-data["drawGroup"].asString(); + if(!valuedatalingma-data["drawPoolName"].isNull()) + dataObject.drawPoolName = valuedatalingma-data["drawPoolName"].asString(); + if(!valuedatalingma-data["taskGroupId"].isNull()) + dataObject.taskGroupId = valuedatalingma-data["taskGroupId"].asString(); + if(!valuedatalingma-data["aliyunPk"].isNull()) + dataObject.aliyunPk = valuedatalingma-data["aliyunPk"].asString(); + if(!valuedatalingma-data["gmtCreate"].isNull()) + dataObject.gmtCreate = valuedatalingma-data["gmtCreate"].asString(); + if(!valuedatalingma-data["drawResult"].isNull()) + dataObject.drawResult = valuedatalingma-data["drawResult"].asString(); + data_.push_back(dataObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["code"].isNull()) + code_ = value["code"].asString(); + if(!value["message"].isNull()) + message_ = value["message"].asString(); + +} + +std::vector ListUserDrawRecordByPkResult::getdata()const +{ + return data_; +} + +std::string ListUserDrawRecordByPkResult::getRequestId()const +{ + return requestId_; +} + +std::string ListUserDrawRecordByPkResult::getMessage()const +{ + return message_; +} + +std::string ListUserDrawRecordByPkResult::getCode()const +{ + return code_; +} + +bool ListUserDrawRecordByPkResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListUserKeysRequest.cc b/devops/src/model/ListUserKeysRequest.cc new file mode 100644 index 000000000..c6a5fd428 --- /dev/null +++ b/devops/src/model/ListUserKeysRequest.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListUserKeysRequest; + +ListUserKeysRequest::ListUserKeysRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v3/user/keys"}; + setMethod(HttpRequest::Method::Get); +} + +ListUserKeysRequest::~ListUserKeysRequest() {} + +std::string ListUserKeysRequest::getOrganizationId() const { + return organizationId_; +} + +void ListUserKeysRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ListUserKeysRequest::getPageSize() const { + return pageSize_; +} + +void ListUserKeysRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListUserKeysRequest::getAccessToken() const { + return accessToken_; +} + +void ListUserKeysRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string ListUserKeysRequest::getOrderBy() const { + return orderBy_; +} + +void ListUserKeysRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("orderBy"), orderBy); +} + +long ListUserKeysRequest::getPage() const { + return page_; +} + +void ListUserKeysRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + +std::string ListUserKeysRequest::getSort() const { + return sort_; +} + +void ListUserKeysRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("sort"), sort); +} + diff --git a/devops/src/model/ListUserKeysResult.cc b/devops/src/model/ListUserKeysResult.cc new file mode 100644 index 000000000..5f0b14c76 --- /dev/null +++ b/devops/src/model/ListUserKeysResult.cc @@ -0,0 +1,101 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListUserKeysResult::ListUserKeysResult() : + ServiceResult() +{} + +ListUserKeysResult::ListUserKeysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserKeysResult::~ListUserKeysResult() +{} + +void ListUserKeysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["list_keys_result"]; + for (auto valueresultlist_keys_result : allresultNode) + { + List_keys_result resultObject; + if(!valueresultlist_keys_result["id"].isNull()) + resultObject.id = std::stol(valueresultlist_keys_result["id"].asString()); + if(!valueresultlist_keys_result["tittle"].isNull()) + resultObject.tittle = valueresultlist_keys_result["tittle"].asString(); + if(!valueresultlist_keys_result["title"].isNull()) + resultObject.title = valueresultlist_keys_result["title"].asString(); + if(!valueresultlist_keys_result["publicKey"].isNull()) + resultObject.publicKey = valueresultlist_keys_result["publicKey"].asString(); + if(!valueresultlist_keys_result["fingerPrint"].isNull()) + resultObject.fingerPrint = valueresultlist_keys_result["fingerPrint"].asString(); + if(!valueresultlist_keys_result["keyScope"].isNull()) + resultObject.keyScope = valueresultlist_keys_result["keyScope"].asString(); + if(!valueresultlist_keys_result["createdAt"].isNull()) + resultObject.createdAt = valueresultlist_keys_result["createdAt"].asString(); + if(!valueresultlist_keys_result["expireTime"].isNull()) + resultObject.expireTime = valueresultlist_keys_result["expireTime"].asString(); + if(!valueresultlist_keys_result["lastUsedTime"].isNull()) + resultObject.lastUsedTime = valueresultlist_keys_result["lastUsedTime"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector ListUserKeysResult::getresult()const +{ + return result_; +} + +std::string ListUserKeysResult::getRequestId()const +{ + return requestId_; +} + +std::string ListUserKeysResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListUserKeysResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListUserKeysResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListUserResourcesRequest.cc b/devops/src/model/ListUserResourcesRequest.cc new file mode 100644 index 000000000..1b1d823d4 --- /dev/null +++ b/devops/src/model/ListUserResourcesRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListUserResourcesRequest; + +ListUserResourcesRequest::ListUserResourcesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/user/vision/user_resources"}; + setMethod(HttpRequest::Method::Get); +} + +ListUserResourcesRequest::~ListUserResourcesRequest() {} + +std::string ListUserResourcesRequest::getOrganizationId() const { + return organizationId_; +} + +void ListUserResourcesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListUserResourcesRequest::getUserIds() const { + return userIds_; +} + +void ListUserResourcesRequest::setUserIds(const std::string &userIds) { + userIds_ = userIds; + setParameter(std::string("userIds"), userIds); +} + +long ListUserResourcesRequest::getPageSize() const { + return pageSize_; +} + +void ListUserResourcesRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); +} + +std::string ListUserResourcesRequest::getAccessToken() const { + return accessToken_; +} + +void ListUserResourcesRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long ListUserResourcesRequest::getPage() const { + return page_; +} + +void ListUserResourcesRequest::setPage(long page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/devops/src/model/ListUserResourcesResult.cc b/devops/src/model/ListUserResourcesResult.cc new file mode 100644 index 000000000..cfc54b934 --- /dev/null +++ b/devops/src/model/ListUserResourcesResult.cc @@ -0,0 +1,191 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListUserResourcesResult::ListUserResourcesResult() : + ServiceResult() +{} + +ListUserResourcesResult::ListUserResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserResourcesResult::~ListUserResourcesResult() +{} + +void ListUserResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allresultNode = value["result"]["resultItem"]; + for (auto valueresultresultItem : allresultNode) + { + ResultItem resultObject; + auto allgroupInfosNode = valueresultresultItem["groupInfos"]["group_infos"]; + for (auto valueresultresultItemgroupInfosgroup_infos : allgroupInfosNode) + { + ResultItem::Group_infos groupInfosObject; + auto groupInfoNode = value["groupInfo"]; + if(!groupInfoNode["id"].isNull()) + groupInfosObject.groupInfo.id = std::stol(groupInfoNode["id"].asString()); + if(!groupInfoNode["name"].isNull()) + groupInfosObject.groupInfo.name = groupInfoNode["name"].asString(); + if(!groupInfoNode["path"].isNull()) + groupInfosObject.groupInfo.path = groupInfoNode["path"].asString(); + if(!groupInfoNode["nameWithNamespace"].isNull()) + groupInfosObject.groupInfo.nameWithNamespace = groupInfoNode["nameWithNamespace"].asString(); + if(!groupInfoNode["pathWithNamespace"].isNull()) + groupInfosObject.groupInfo.pathWithNamespace = groupInfoNode["pathWithNamespace"].asString(); + if(!groupInfoNode["parentId"].isNull()) + groupInfosObject.groupInfo.parentId = std::stol(groupInfoNode["parentId"].asString()); + if(!groupInfoNode["ownerId"].isNull()) + groupInfosObject.groupInfo.ownerId = std::stol(groupInfoNode["ownerId"].asString()); + if(!groupInfoNode["createdAt"].isNull()) + groupInfosObject.groupInfo.createdAt = groupInfoNode["createdAt"].asString(); + if(!groupInfoNode["updatedAt"].isNull()) + groupInfosObject.groupInfo.updatedAt = groupInfoNode["updatedAt"].asString(); + if(!groupInfoNode["visibilityLevel"].isNull()) + groupInfosObject.groupInfo.visibilityLevel = std::stoi(groupInfoNode["visibilityLevel"].asString()); + if(!groupInfoNode["description"].isNull()) + groupInfosObject.groupInfo.description = groupInfoNode["description"].asString(); + auto groupRoleNode = value["groupRole"]; + if(!groupRoleNode["sourceId"].isNull()) + groupInfosObject.groupRole.sourceId = std::stol(groupRoleNode["sourceId"].asString()); + if(!groupRoleNode["sourceType"].isNull()) + groupInfosObject.groupRole.sourceType = groupRoleNode["sourceType"].asString(); + if(!groupRoleNode["accessLevel"].isNull()) + groupInfosObject.groupRole.accessLevel = std::stoi(groupRoleNode["accessLevel"].asString()); + if(!groupRoleNode["cnRoleName"].isNull()) + groupInfosObject.groupRole.cnRoleName = groupRoleNode["cnRoleName"].asString(); + if(!groupRoleNode["enRoleName"].isNull()) + groupInfosObject.groupRole.enRoleName = groupRoleNode["enRoleName"].asString(); + resultObject.groupInfos.push_back(groupInfosObject); + } + auto allrepositoryInfosNode = valueresultresultItem["repositoryInfos"]["repository_infos"]; + for (auto valueresultresultItemrepositoryInfosrepository_infos : allrepositoryInfosNode) + { + ResultItem::Repository_infos repositoryInfosObject; + auto repositoryInfoNode = value["repositoryInfo"]; + if(!repositoryInfoNode["id"].isNull()) + repositoryInfosObject.repositoryInfo.id = std::stol(repositoryInfoNode["id"].asString()); + if(!repositoryInfoNode["name"].isNull()) + repositoryInfosObject.repositoryInfo.name = repositoryInfoNode["name"].asString(); + if(!repositoryInfoNode["path"].isNull()) + repositoryInfosObject.repositoryInfo.path = repositoryInfoNode["path"].asString(); + if(!repositoryInfoNode["description"].isNull()) + repositoryInfosObject.repositoryInfo.description = repositoryInfoNode["description"].asString(); + if(!repositoryInfoNode["nameWithNamespace"].isNull()) + repositoryInfosObject.repositoryInfo.nameWithNamespace = repositoryInfoNode["nameWithNamespace"].asString(); + if(!repositoryInfoNode["pathWithNamespace"].isNull()) + repositoryInfosObject.repositoryInfo.pathWithNamespace = repositoryInfoNode["pathWithNamespace"].asString(); + if(!repositoryInfoNode["visibilityLevel"].isNull()) + repositoryInfosObject.repositoryInfo.visibilityLevel = std::stoi(repositoryInfoNode["visibilityLevel"].asString()); + if(!repositoryInfoNode["lastActivityAt"].isNull()) + repositoryInfosObject.repositoryInfo.lastActivityAt = repositoryInfoNode["lastActivityAt"].asString(); + if(!repositoryInfoNode["namespaceId"].isNull()) + repositoryInfosObject.repositoryInfo.namespaceId = std::stol(repositoryInfoNode["namespaceId"].asString()); + if(!repositoryInfoNode["accessLevel"].isNull()) + repositoryInfosObject.repositoryInfo.accessLevel = std::stoi(repositoryInfoNode["accessLevel"].asString()); + if(!repositoryInfoNode["createdAt"].isNull()) + repositoryInfosObject.repositoryInfo.createdAt = repositoryInfoNode["createdAt"].asString(); + if(!repositoryInfoNode["updatedAt"].isNull()) + repositoryInfosObject.repositoryInfo.updatedAt = repositoryInfoNode["updatedAt"].asString(); + if(!repositoryInfoNode["archived"].isNull()) + repositoryInfosObject.repositoryInfo.archived = repositoryInfoNode["archived"].asString() == "true"; + if(!repositoryInfoNode["creatorId"].isNull()) + repositoryInfosObject.repositoryInfo.creatorId = std::stol(repositoryInfoNode["creatorId"].asString()); + if(!repositoryInfoNode["encrypted"].isNull()) + repositoryInfosObject.repositoryInfo.encrypted = repositoryInfoNode["encrypted"].asString() == "true"; + auto repositoryRoleNode = value["repositoryRole"]; + if(!repositoryRoleNode["sourceId"].isNull()) + repositoryInfosObject.repositoryRole.sourceId = std::stol(repositoryRoleNode["sourceId"].asString()); + if(!repositoryRoleNode["sourceType"].isNull()) + repositoryInfosObject.repositoryRole.sourceType = repositoryRoleNode["sourceType"].asString(); + if(!repositoryRoleNode["accessLevel"].isNull()) + repositoryInfosObject.repositoryRole.accessLevel = std::stoi(repositoryRoleNode["accessLevel"].asString()); + if(!repositoryRoleNode["cnRoleName"].isNull()) + repositoryInfosObject.repositoryRole.cnRoleName = repositoryRoleNode["cnRoleName"].asString(); + if(!repositoryRoleNode["enRoleName"].isNull()) + repositoryInfosObject.repositoryRole.enRoleName = repositoryRoleNode["enRoleName"].asString(); + resultObject.repositoryInfos.push_back(repositoryInfosObject); + } + auto userInfoNode = value["userInfo"]; + if(!userInfoNode["id"].isNull()) + resultObject.userInfo.id = std::stol(userInfoNode["id"].asString()); + if(!userInfoNode["name"].isNull()) + resultObject.userInfo.name = userInfoNode["name"].asString(); + if(!userInfoNode["username"].isNull()) + resultObject.userInfo.username = userInfoNode["username"].asString(); + if(!userInfoNode["state"].isNull()) + resultObject.userInfo.state = userInfoNode["state"].asString(); + if(!userInfoNode["avatarUrl"].isNull()) + resultObject.userInfo.avatarUrl = userInfoNode["avatarUrl"].asString(); + if(!userInfoNode["email"].isNull()) + resultObject.userInfo.email = userInfoNode["email"].asString(); + result_.push_back(resultObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["total"].isNull()) + total_ = std::stol(value["total"].asString()); + +} + +std::vector ListUserResourcesResult::getresult()const +{ + return result_; +} + +std::string ListUserResourcesResult::getRequestId()const +{ + return requestId_; +} + +long ListUserResourcesResult::getTotal()const +{ + return total_; +} + +std::string ListUserResourcesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListUserResourcesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListUserResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListVariableGroupsRequest.cc b/devops/src/model/ListVariableGroupsRequest.cc new file mode 100644 index 000000000..6ee53281f --- /dev/null +++ b/devops/src/model/ListVariableGroupsRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListVariableGroupsRequest; + +ListVariableGroupsRequest::ListVariableGroupsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/variableGroups"}; + setMethod(HttpRequest::Method::Get); +} + +ListVariableGroupsRequest::~ListVariableGroupsRequest() {} + +std::string ListVariableGroupsRequest::getPageSort() const { + return pageSort_; +} + +void ListVariableGroupsRequest::setPageSort(const std::string &pageSort) { + pageSort_ = pageSort; + setParameter(std::string("pageSort"), pageSort); +} + +std::string ListVariableGroupsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListVariableGroupsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListVariableGroupsRequest::getPageOrder() const { + return pageOrder_; +} + +void ListVariableGroupsRequest::setPageOrder(const std::string &pageOrder) { + pageOrder_ = pageOrder; + setParameter(std::string("pageOrder"), pageOrder); +} + +std::string ListVariableGroupsRequest::getNextToken() const { + return nextToken_; +} + +void ListVariableGroupsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +int ListVariableGroupsRequest::getMaxResults() const { + return maxResults_; +} + +void ListVariableGroupsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + diff --git a/devops/src/model/ListVariableGroupsResult.cc b/devops/src/model/ListVariableGroupsResult.cc new file mode 100644 index 000000000..01b87bb52 --- /dev/null +++ b/devops/src/model/ListVariableGroupsResult.cc @@ -0,0 +1,133 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListVariableGroupsResult::ListVariableGroupsResult() : + ServiceResult() +{} + +ListVariableGroupsResult::ListVariableGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVariableGroupsResult::~ListVariableGroupsResult() +{} + +void ListVariableGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allvariableGroupsNode = value["variableGroups"]["VariableGroup"]; + for (auto valuevariableGroupsVariableGroup : allvariableGroupsNode) + { + VariableGroup variableGroupsObject; + if(!valuevariableGroupsVariableGroup["creatorAccountId"].isNull()) + variableGroupsObject.creatorAccountId = valuevariableGroupsVariableGroup["creatorAccountId"].asString(); + if(!valuevariableGroupsVariableGroup["updateTime"].isNull()) + variableGroupsObject.updateTime = std::stol(valuevariableGroupsVariableGroup["updateTime"].asString()); + if(!valuevariableGroupsVariableGroup["modifierAccountId"].isNull()) + variableGroupsObject.modifierAccountId = valuevariableGroupsVariableGroup["modifierAccountId"].asString(); + if(!valuevariableGroupsVariableGroup["description"].isNull()) + variableGroupsObject.description = valuevariableGroupsVariableGroup["description"].asString(); + if(!valuevariableGroupsVariableGroup["name"].isNull()) + variableGroupsObject.name = valuevariableGroupsVariableGroup["name"].asString(); + if(!valuevariableGroupsVariableGroup["id"].isNull()) + variableGroupsObject.id = std::stol(valuevariableGroupsVariableGroup["id"].asString()); + if(!valuevariableGroupsVariableGroup["createTime"].isNull()) + variableGroupsObject.createTime = std::stol(valuevariableGroupsVariableGroup["createTime"].asString()); + auto allrelatedPipelinesNode = valuevariableGroupsVariableGroup["relatedPipelines"]["RelatedPipeline"]; + for (auto valuevariableGroupsVariableGrouprelatedPipelinesRelatedPipeline : allrelatedPipelinesNode) + { + VariableGroup::RelatedPipeline relatedPipelinesObject; + if(!valuevariableGroupsVariableGrouprelatedPipelinesRelatedPipeline["id"].isNull()) + relatedPipelinesObject.id = std::stol(valuevariableGroupsVariableGrouprelatedPipelinesRelatedPipeline["id"].asString()); + if(!valuevariableGroupsVariableGrouprelatedPipelinesRelatedPipeline["name"].isNull()) + relatedPipelinesObject.name = valuevariableGroupsVariableGrouprelatedPipelinesRelatedPipeline["name"].asString(); + variableGroupsObject.relatedPipelines.push_back(relatedPipelinesObject); + } + auto allvariablesNode = valuevariableGroupsVariableGroup["variables"]["Variable"]; + for (auto valuevariableGroupsVariableGroupvariablesVariable : allvariablesNode) + { + VariableGroup::Variable variablesObject; + if(!valuevariableGroupsVariableGroupvariablesVariable["value"].isNull()) + variablesObject.value = valuevariableGroupsVariableGroupvariablesVariable["value"].asString(); + if(!valuevariableGroupsVariableGroupvariablesVariable["name"].isNull()) + variablesObject.name = valuevariableGroupsVariableGroupvariablesVariable["name"].asString(); + if(!valuevariableGroupsVariableGroupvariablesVariable["isEncrypted"].isNull()) + variablesObject.isEncrypted = valuevariableGroupsVariableGroupvariablesVariable["isEncrypted"].asString() == "true"; + variableGroupsObject.variables.push_back(variablesObject); + } + variableGroups_.push_back(variableGroupsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + +} + +long ListVariableGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListVariableGroupsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListVariableGroupsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListVariableGroupsResult::getvariableGroups()const +{ + return variableGroups_; +} + +std::string ListVariableGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListVariableGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListVariableGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListWorkItemAllFieldsRequest.cc b/devops/src/model/ListWorkItemAllFieldsRequest.cc new file mode 100644 index 000000000..8e1a59eb5 --- /dev/null +++ b/devops/src/model/ListWorkItemAllFieldsRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListWorkItemAllFieldsRequest; + +ListWorkItemAllFieldsRequest::ListWorkItemAllFieldsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/fields/listAll"}; + setMethod(HttpRequest::Method::Get); +} + +ListWorkItemAllFieldsRequest::~ListWorkItemAllFieldsRequest() {} + +std::string ListWorkItemAllFieldsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListWorkItemAllFieldsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListWorkItemAllFieldsRequest::getSpaceType() const { + return spaceType_; +} + +void ListWorkItemAllFieldsRequest::setSpaceType(const std::string &spaceType) { + spaceType_ = spaceType; + setParameter(std::string("spaceType"), spaceType); +} + +std::string ListWorkItemAllFieldsRequest::getWorkitemTypeIdentifier() const { + return workitemTypeIdentifier_; +} + +void ListWorkItemAllFieldsRequest::setWorkitemTypeIdentifier(const std::string &workitemTypeIdentifier) { + workitemTypeIdentifier_ = workitemTypeIdentifier; + setParameter(std::string("workitemTypeIdentifier"), workitemTypeIdentifier); +} + +std::string ListWorkItemAllFieldsRequest::getSpaceIdentifier() const { + return spaceIdentifier_; +} + +void ListWorkItemAllFieldsRequest::setSpaceIdentifier(const std::string &spaceIdentifier) { + spaceIdentifier_ = spaceIdentifier; + setParameter(std::string("spaceIdentifier"), spaceIdentifier); +} + diff --git a/devops/src/model/ListWorkItemAllFieldsResult.cc b/devops/src/model/ListWorkItemAllFieldsResult.cc new file mode 100644 index 000000000..2296e9533 --- /dev/null +++ b/devops/src/model/ListWorkItemAllFieldsResult.cc @@ -0,0 +1,135 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListWorkItemAllFieldsResult::ListWorkItemAllFieldsResult() : + ServiceResult() +{} + +ListWorkItemAllFieldsResult::ListWorkItemAllFieldsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkItemAllFieldsResult::~ListWorkItemAllFieldsResult() +{} + +void ListWorkItemAllFieldsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allfieldsNode = value["fields"]["field"]; + for (auto valuefieldsfield : allfieldsNode) + { + Field fieldsObject; + if(!valuefieldsfield["creator"].isNull()) + fieldsObject.creator = valuefieldsfield["creator"].asString(); + if(!valuefieldsfield["description"].isNull()) + fieldsObject.description = valuefieldsfield["description"].asString(); + if(!valuefieldsfield["gmtCreate"].isNull()) + fieldsObject.gmtCreate = std::stol(valuefieldsfield["gmtCreate"].asString()); + if(!valuefieldsfield["gmtModified"].isNull()) + fieldsObject.gmtModified = std::stol(valuefieldsfield["gmtModified"].asString()); + if(!valuefieldsfield["type"].isNull()) + fieldsObject.type = valuefieldsfield["type"].asString(); + if(!valuefieldsfield["identifier"].isNull()) + fieldsObject.identifier = valuefieldsfield["identifier"].asString(); + if(!valuefieldsfield["modifier"].isNull()) + fieldsObject.modifier = valuefieldsfield["modifier"].asString(); + if(!valuefieldsfield["name"].isNull()) + fieldsObject.name = valuefieldsfield["name"].asString(); + if(!valuefieldsfield["format"].isNull()) + fieldsObject.format = valuefieldsfield["format"].asString(); + if(!valuefieldsfield["className"].isNull()) + fieldsObject.className = valuefieldsfield["className"].asString(); + if(!valuefieldsfield["resourceType"].isNull()) + fieldsObject.resourceType = valuefieldsfield["resourceType"].asString(); + if(!valuefieldsfield["defaultValue"].isNull()) + fieldsObject.defaultValue = valuefieldsfield["defaultValue"].asString(); + if(!valuefieldsfield["isRequired"].isNull()) + fieldsObject.isRequired = valuefieldsfield["isRequired"].asString() == "true"; + if(!valuefieldsfield["isSystemRequired"].isNull()) + fieldsObject.isSystemRequired = valuefieldsfield["isSystemRequired"].asString() == "true"; + if(!valuefieldsfield["linkWithService"].isNull()) + fieldsObject.linkWithService = valuefieldsfield["linkWithService"].asString(); + if(!valuefieldsfield["isShowWhenCreate"].isNull()) + fieldsObject.isShowWhenCreate = valuefieldsfield["isShowWhenCreate"].asString() == "true"; + auto alloptionsNode = valuefieldsfield["options"]["option"]; + for (auto valuefieldsfieldoptionsoption : alloptionsNode) + { + Field::Option optionsObject; + if(!valuefieldsfieldoptionsoption["identifier"].isNull()) + optionsObject.identifier = valuefieldsfieldoptionsoption["identifier"].asString(); + if(!valuefieldsfieldoptionsoption["fieldIdentifier"].isNull()) + optionsObject.fieldIdentifier = valuefieldsfieldoptionsoption["fieldIdentifier"].asString(); + if(!valuefieldsfieldoptionsoption["value"].isNull()) + optionsObject.value = valuefieldsfieldoptionsoption["value"].asString(); + if(!valuefieldsfieldoptionsoption["valueEn"].isNull()) + optionsObject.valueEn = valuefieldsfieldoptionsoption["valueEn"].asString(); + if(!valuefieldsfieldoptionsoption["displayValue"].isNull()) + optionsObject.displayValue = valuefieldsfieldoptionsoption["displayValue"].asString(); + if(!valuefieldsfieldoptionsoption["position"].isNull()) + optionsObject.position = std::stol(valuefieldsfieldoptionsoption["position"].asString()); + if(!valuefieldsfieldoptionsoption["level"].isNull()) + optionsObject.level = std::stol(valuefieldsfieldoptionsoption["level"].asString()); + fieldsObject.options.push_back(optionsObject); + } + fields_.push_back(fieldsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListWorkItemAllFieldsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListWorkItemAllFieldsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string ListWorkItemAllFieldsResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListWorkItemAllFieldsResult::getfields()const +{ + return fields_; +} + +bool ListWorkItemAllFieldsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListWorkItemWorkFlowStatusRequest.cc b/devops/src/model/ListWorkItemWorkFlowStatusRequest.cc new file mode 100644 index 000000000..c17a43188 --- /dev/null +++ b/devops/src/model/ListWorkItemWorkFlowStatusRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListWorkItemWorkFlowStatusRequest; + +ListWorkItemWorkFlowStatusRequest::ListWorkItemWorkFlowStatusRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/workflow/listWorkflowStatus"}; + setMethod(HttpRequest::Method::Get); +} + +ListWorkItemWorkFlowStatusRequest::~ListWorkItemWorkFlowStatusRequest() {} + +std::string ListWorkItemWorkFlowStatusRequest::getWorkitemCategoryIdentifier() const { + return workitemCategoryIdentifier_; +} + +void ListWorkItemWorkFlowStatusRequest::setWorkitemCategoryIdentifier(const std::string &workitemCategoryIdentifier) { + workitemCategoryIdentifier_ = workitemCategoryIdentifier; + setParameter(std::string("workitemCategoryIdentifier"), workitemCategoryIdentifier); +} + +std::string ListWorkItemWorkFlowStatusRequest::getOrganizationId() const { + return organizationId_; +} + +void ListWorkItemWorkFlowStatusRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListWorkItemWorkFlowStatusRequest::getSpaceType() const { + return spaceType_; +} + +void ListWorkItemWorkFlowStatusRequest::setSpaceType(const std::string &spaceType) { + spaceType_ = spaceType; + setParameter(std::string("spaceType"), spaceType); +} + +std::string ListWorkItemWorkFlowStatusRequest::getWorkitemTypeIdentifier() const { + return workitemTypeIdentifier_; +} + +void ListWorkItemWorkFlowStatusRequest::setWorkitemTypeIdentifier(const std::string &workitemTypeIdentifier) { + workitemTypeIdentifier_ = workitemTypeIdentifier; + setParameter(std::string("workitemTypeIdentifier"), workitemTypeIdentifier); +} + +std::string ListWorkItemWorkFlowStatusRequest::getSpaceIdentifier() const { + return spaceIdentifier_; +} + +void ListWorkItemWorkFlowStatusRequest::setSpaceIdentifier(const std::string &spaceIdentifier) { + spaceIdentifier_ = spaceIdentifier; + setParameter(std::string("spaceIdentifier"), spaceIdentifier); +} + diff --git a/devops/src/model/ListWorkItemWorkFlowStatusResult.cc b/devops/src/model/ListWorkItemWorkFlowStatusResult.cc new file mode 100644 index 000000000..06988b560 --- /dev/null +++ b/devops/src/model/ListWorkItemWorkFlowStatusResult.cc @@ -0,0 +1,105 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListWorkItemWorkFlowStatusResult::ListWorkItemWorkFlowStatusResult() : + ServiceResult() +{} + +ListWorkItemWorkFlowStatusResult::ListWorkItemWorkFlowStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkItemWorkFlowStatusResult::~ListWorkItemWorkFlowStatusResult() +{} + +void ListWorkItemWorkFlowStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allstatusesNode = value["statuses"]["status"]; + for (auto valuestatusesstatus : allstatusesNode) + { + Status statusesObject; + if(!valuestatusesstatus["identifier"].isNull()) + statusesObject.identifier = valuestatusesstatus["identifier"].asString(); + if(!valuestatusesstatus["name"].isNull()) + statusesObject.name = valuestatusesstatus["name"].asString(); + if(!valuestatusesstatus["workflowStageName"].isNull()) + statusesObject.workflowStageName = valuestatusesstatus["workflowStageName"].asString(); + if(!valuestatusesstatus["workflowStageIdentifier"].isNull()) + statusesObject.workflowStageIdentifier = valuestatusesstatus["workflowStageIdentifier"].asString(); + if(!valuestatusesstatus["source"].isNull()) + statusesObject.source = valuestatusesstatus["source"].asString(); + if(!valuestatusesstatus["gmtCreate"].isNull()) + statusesObject.gmtCreate = std::stol(valuestatusesstatus["gmtCreate"].asString()); + if(!valuestatusesstatus["creator"].isNull()) + statusesObject.creator = valuestatusesstatus["creator"].asString(); + if(!valuestatusesstatus["description"].isNull()) + statusesObject.description = valuestatusesstatus["description"].asString(); + if(!valuestatusesstatus["modifier"].isNull()) + statusesObject.modifier = valuestatusesstatus["modifier"].asString(); + if(!valuestatusesstatus["gmtModified"].isNull()) + statusesObject.gmtModified = std::stol(valuestatusesstatus["gmtModified"].asString()); + if(!valuestatusesstatus["resourceType"].isNull()) + statusesObject.resourceType = valuestatusesstatus["resourceType"].asString(); + statuses_.push_back(statusesObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ListWorkItemWorkFlowStatusResult::getRequestId()const +{ + return requestId_; +} + +std::vector ListWorkItemWorkFlowStatusResult::getstatuses()const +{ + return statuses_; +} + +std::string ListWorkItemWorkFlowStatusResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListWorkItemWorkFlowStatusResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListWorkItemWorkFlowStatusResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListWorkitemAttachmentsRequest.cc b/devops/src/model/ListWorkitemAttachmentsRequest.cc new file mode 100644 index 000000000..dfb268627 --- /dev/null +++ b/devops/src/model/ListWorkitemAttachmentsRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListWorkitemAttachmentsRequest; + +ListWorkitemAttachmentsRequest::ListWorkitemAttachmentsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitem/[workitemIdentifier]/attachments"}; + setMethod(HttpRequest::Method::Get); +} + +ListWorkitemAttachmentsRequest::~ListWorkitemAttachmentsRequest() {} + +std::string ListWorkitemAttachmentsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListWorkitemAttachmentsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListWorkitemAttachmentsRequest::getWorkitemIdentifier() const { + return workitemIdentifier_; +} + +void ListWorkitemAttachmentsRequest::setWorkitemIdentifier(const std::string &workitemIdentifier) { + workitemIdentifier_ = workitemIdentifier; + setParameter(std::string("workitemIdentifier"), workitemIdentifier); +} + diff --git a/devops/src/model/ListWorkitemAttachmentsResult.cc b/devops/src/model/ListWorkitemAttachmentsResult.cc new file mode 100644 index 000000000..d552d2ec1 --- /dev/null +++ b/devops/src/model/ListWorkitemAttachmentsResult.cc @@ -0,0 +1,97 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListWorkitemAttachmentsResult::ListWorkitemAttachmentsResult() : + ServiceResult() +{} + +ListWorkitemAttachmentsResult::ListWorkitemAttachmentsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkitemAttachmentsResult::~ListWorkitemAttachmentsResult() +{} + +void ListWorkitemAttachmentsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allattachmentsNode = value["attachments"]["attachment"]; + for (auto valueattachmentsattachment : allattachmentsNode) + { + Attachment attachmentsObject; + if(!valueattachmentsattachment["fileIdentifier"].isNull()) + attachmentsObject.fileIdentifier = valueattachmentsattachment["fileIdentifier"].asString(); + if(!valueattachmentsattachment["fileName"].isNull()) + attachmentsObject.fileName = valueattachmentsattachment["fileName"].asString(); + if(!valueattachmentsattachment["fileSuffix"].isNull()) + attachmentsObject.fileSuffix = valueattachmentsattachment["fileSuffix"].asString(); + if(!valueattachmentsattachment["size"].isNull()) + attachmentsObject.size = valueattachmentsattachment["size"].asString(); + if(!valueattachmentsattachment["url"].isNull()) + attachmentsObject.url = valueattachmentsattachment["url"].asString(); + if(!valueattachmentsattachment["gmtCreate"].isNull()) + attachmentsObject.gmtCreate = std::stol(valueattachmentsattachment["gmtCreate"].asString()); + if(!valueattachmentsattachment["creator"].isNull()) + attachmentsObject.creator = valueattachmentsattachment["creator"].asString(); + attachments_.push_back(attachmentsObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::vector ListWorkitemAttachmentsResult::getattachments()const +{ + return attachments_; +} + +std::string ListWorkitemAttachmentsResult::getRequestId()const +{ + return requestId_; +} + +std::string ListWorkitemAttachmentsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string ListWorkitemAttachmentsResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListWorkitemAttachmentsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListWorkitemEstimateRequest.cc b/devops/src/model/ListWorkitemEstimateRequest.cc new file mode 100644 index 000000000..c5f665dd6 --- /dev/null +++ b/devops/src/model/ListWorkitemEstimateRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListWorkitemEstimateRequest; + +ListWorkitemEstimateRequest::ListWorkitemEstimateRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/[workitemId]/estimate/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListWorkitemEstimateRequest::~ListWorkitemEstimateRequest() {} + +std::string ListWorkitemEstimateRequest::getOrganizationId() const { + return organizationId_; +} + +void ListWorkitemEstimateRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListWorkitemEstimateRequest::getWorkitemId() const { + return workitemId_; +} + +void ListWorkitemEstimateRequest::setWorkitemId(const std::string &workitemId) { + workitemId_ = workitemId; + setParameter(std::string("workitemId"), workitemId); +} + diff --git a/devops/src/model/ListWorkitemEstimateResult.cc b/devops/src/model/ListWorkitemEstimateResult.cc new file mode 100644 index 000000000..2a53f49c5 --- /dev/null +++ b/devops/src/model/ListWorkitemEstimateResult.cc @@ -0,0 +1,113 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListWorkitemEstimateResult::ListWorkitemEstimateResult() : + ServiceResult() +{} + +ListWorkitemEstimateResult::ListWorkitemEstimateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkitemEstimateResult::~ListWorkitemEstimateResult() +{} + +void ListWorkitemEstimateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allworkitemTimeEstimateNode = value["workitemTimeEstimate"]["WorkitemTimeEstimateItem"]; + for (auto valueworkitemTimeEstimateWorkitemTimeEstimateItem : allworkitemTimeEstimateNode) + { + WorkitemTimeEstimateItem workitemTimeEstimateObject; + if(!valueworkitemTimeEstimateWorkitemTimeEstimateItem["workitemIdentifier"].isNull()) + workitemTimeEstimateObject.workitemIdentifier = valueworkitemTimeEstimateWorkitemTimeEstimateItem["workitemIdentifier"].asString(); + if(!valueworkitemTimeEstimateWorkitemTimeEstimateItem["identifier"].isNull()) + workitemTimeEstimateObject.identifier = valueworkitemTimeEstimateWorkitemTimeEstimateItem["identifier"].asString(); + if(!valueworkitemTimeEstimateWorkitemTimeEstimateItem["gmtStart"].isNull()) + workitemTimeEstimateObject.gmtStart = std::stol(valueworkitemTimeEstimateWorkitemTimeEstimateItem["gmtStart"].asString()); + if(!valueworkitemTimeEstimateWorkitemTimeEstimateItem["gmtEnd"].isNull()) + workitemTimeEstimateObject.gmtEnd = std::stol(valueworkitemTimeEstimateWorkitemTimeEstimateItem["gmtEnd"].asString()); + if(!valueworkitemTimeEstimateWorkitemTimeEstimateItem["spentTime"].isNull()) + workitemTimeEstimateObject.spentTime = std::stof(valueworkitemTimeEstimateWorkitemTimeEstimateItem["spentTime"].asString()); + if(!valueworkitemTimeEstimateWorkitemTimeEstimateItem["type"].isNull()) + workitemTimeEstimateObject.type = valueworkitemTimeEstimateWorkitemTimeEstimateItem["type"].asString(); + if(!valueworkitemTimeEstimateWorkitemTimeEstimateItem["description"].isNull()) + workitemTimeEstimateObject.description = valueworkitemTimeEstimateWorkitemTimeEstimateItem["description"].asString(); + if(!valueworkitemTimeEstimateWorkitemTimeEstimateItem["gmtCreate"].isNull()) + workitemTimeEstimateObject.gmtCreate = std::stol(valueworkitemTimeEstimateWorkitemTimeEstimateItem["gmtCreate"].asString()); + if(!valueworkitemTimeEstimateWorkitemTimeEstimateItem["gmtModified"].isNull()) + workitemTimeEstimateObject.gmtModified = std::stol(valueworkitemTimeEstimateWorkitemTimeEstimateItem["gmtModified"].asString()); + auto recordUserNode = value["recordUser"]; + if(!recordUserNode["identifier"].isNull()) + workitemTimeEstimateObject.recordUser.identifier = recordUserNode["identifier"].asString(); + if(!recordUserNode["name"].isNull()) + workitemTimeEstimateObject.recordUser.name = recordUserNode["name"].asString(); + workitemTimeEstimate_.push_back(workitemTimeEstimateObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["code"].isNull()) + code_ = std::stol(value["code"].asString()); + +} + +std::string ListWorkitemEstimateResult::getRequestId()const +{ + return requestId_; +} + +std::string ListWorkitemEstimateResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListWorkitemEstimateResult::getworkitemTimeEstimate()const +{ + return workitemTimeEstimate_; +} + +std::string ListWorkitemEstimateResult::getErrorCode()const +{ + return errorCode_; +} + +long ListWorkitemEstimateResult::getCode()const +{ + return code_; +} + +bool ListWorkitemEstimateResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListWorkitemTimeRequest.cc b/devops/src/model/ListWorkitemTimeRequest.cc new file mode 100644 index 000000000..8655f4e8c --- /dev/null +++ b/devops/src/model/ListWorkitemTimeRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListWorkitemTimeRequest; + +ListWorkitemTimeRequest::ListWorkitemTimeRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/[workitemId]/time/list"}; + setMethod(HttpRequest::Method::Get); +} + +ListWorkitemTimeRequest::~ListWorkitemTimeRequest() {} + +std::string ListWorkitemTimeRequest::getOrganizationId() const { + return organizationId_; +} + +void ListWorkitemTimeRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListWorkitemTimeRequest::getWorkitemId() const { + return workitemId_; +} + +void ListWorkitemTimeRequest::setWorkitemId(const std::string &workitemId) { + workitemId_ = workitemId; + setParameter(std::string("workitemId"), workitemId); +} + diff --git a/devops/src/model/ListWorkitemTimeResult.cc b/devops/src/model/ListWorkitemTimeResult.cc new file mode 100644 index 000000000..029b8b876 --- /dev/null +++ b/devops/src/model/ListWorkitemTimeResult.cc @@ -0,0 +1,110 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListWorkitemTimeResult::ListWorkitemTimeResult() : + ServiceResult() +{} + +ListWorkitemTimeResult::ListWorkitemTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkitemTimeResult::~ListWorkitemTimeResult() +{} + +void ListWorkitemTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allworkitemTimeNode = value["workitemTime"]["workitemTimeItem"]; + for (auto valueworkitemTimeworkitemTimeItem : allworkitemTimeNode) + { + WorkitemTimeItem workitemTimeObject; + if(!valueworkitemTimeworkitemTimeItem["workitemIdentifier"].isNull()) + workitemTimeObject.workitemIdentifier = valueworkitemTimeworkitemTimeItem["workitemIdentifier"].asString(); + if(!valueworkitemTimeworkitemTimeItem["identifier"].isNull()) + workitemTimeObject.identifier = valueworkitemTimeworkitemTimeItem["identifier"].asString(); + if(!valueworkitemTimeworkitemTimeItem["gmtStart"].isNull()) + workitemTimeObject.gmtStart = std::stol(valueworkitemTimeworkitemTimeItem["gmtStart"].asString()); + if(!valueworkitemTimeworkitemTimeItem["gmtEnd"].isNull()) + workitemTimeObject.gmtEnd = std::stol(valueworkitemTimeworkitemTimeItem["gmtEnd"].asString()); + if(!valueworkitemTimeworkitemTimeItem["actualTime"].isNull()) + workitemTimeObject.actualTime = std::stof(valueworkitemTimeworkitemTimeItem["actualTime"].asString()); + if(!valueworkitemTimeworkitemTimeItem["type"].isNull()) + workitemTimeObject.type = valueworkitemTimeworkitemTimeItem["type"].asString(); + if(!valueworkitemTimeworkitemTimeItem["description"].isNull()) + workitemTimeObject.description = valueworkitemTimeworkitemTimeItem["description"].asString(); + if(!valueworkitemTimeworkitemTimeItem["recordUser"].isNull()) + workitemTimeObject.recordUser = valueworkitemTimeworkitemTimeItem["recordUser"].asString(); + if(!valueworkitemTimeworkitemTimeItem["gmtCreate"].isNull()) + workitemTimeObject.gmtCreate = std::stol(valueworkitemTimeworkitemTimeItem["gmtCreate"].asString()); + if(!valueworkitemTimeworkitemTimeItem["gmtModified"].isNull()) + workitemTimeObject.gmtModified = std::stol(valueworkitemTimeworkitemTimeItem["gmtModified"].asString()); + workitemTime_.push_back(workitemTimeObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["code"].isNull()) + code_ = std::stol(value["code"].asString()); + +} + +std::string ListWorkitemTimeResult::getRequestId()const +{ + return requestId_; +} + +std::string ListWorkitemTimeResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::vector ListWorkitemTimeResult::getworkitemTime()const +{ + return workitemTime_; +} + +std::string ListWorkitemTimeResult::getErrorCode()const +{ + return errorCode_; +} + +long ListWorkitemTimeResult::getCode()const +{ + return code_; +} + +bool ListWorkitemTimeResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListWorkitemsRequest.cc b/devops/src/model/ListWorkitemsRequest.cc new file mode 100644 index 000000000..dfbbeaf83 --- /dev/null +++ b/devops/src/model/ListWorkitemsRequest.cc @@ -0,0 +1,127 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListWorkitemsRequest; + +ListWorkitemsRequest::ListWorkitemsRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/listWorkitems"}; + setMethod(HttpRequest::Method::Get); +} + +ListWorkitemsRequest::~ListWorkitemsRequest() {} + +std::string ListWorkitemsRequest::getExtraConditions() const { + return extraConditions_; +} + +void ListWorkitemsRequest::setExtraConditions(const std::string &extraConditions) { + extraConditions_ = extraConditions; + setParameter(std::string("extraConditions"), extraConditions); +} + +std::string ListWorkitemsRequest::getOrderBy() const { + return orderBy_; +} + +void ListWorkitemsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("orderBy"), orderBy); +} + +std::string ListWorkitemsRequest::getOrganizationId() const { + return organizationId_; +} + +void ListWorkitemsRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string ListWorkitemsRequest::getGroupCondition() const { + return groupCondition_; +} + +void ListWorkitemsRequest::setGroupCondition(const std::string &groupCondition) { + groupCondition_ = groupCondition; + setParameter(std::string("groupCondition"), groupCondition); +} + +std::string ListWorkitemsRequest::getSpaceType() const { + return spaceType_; +} + +void ListWorkitemsRequest::setSpaceType(const std::string &spaceType) { + spaceType_ = spaceType; + setParameter(std::string("spaceType"), spaceType); +} + +std::string ListWorkitemsRequest::getNextToken() const { + return nextToken_; +} + +void ListWorkitemsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +std::string ListWorkitemsRequest::getSearchType() const { + return searchType_; +} + +void ListWorkitemsRequest::setSearchType(const std::string &searchType) { + searchType_ = searchType; + setParameter(std::string("searchType"), searchType); +} + +std::string ListWorkitemsRequest::getMaxResults() const { + return maxResults_; +} + +void ListWorkitemsRequest::setMaxResults(const std::string &maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), maxResults); +} + +std::string ListWorkitemsRequest::getSpaceIdentifier() const { + return spaceIdentifier_; +} + +void ListWorkitemsRequest::setSpaceIdentifier(const std::string &spaceIdentifier) { + spaceIdentifier_ = spaceIdentifier; + setParameter(std::string("spaceIdentifier"), spaceIdentifier); +} + +std::string ListWorkitemsRequest::getCategory() const { + return category_; +} + +void ListWorkitemsRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("category"), category); +} + +std::string ListWorkitemsRequest::getConditions() const { + return conditions_; +} + +void ListWorkitemsRequest::setConditions(const std::string &conditions) { + conditions_ = conditions; + setParameter(std::string("conditions"), conditions); +} + diff --git a/devops/src/model/ListWorkitemsResult.cc b/devops/src/model/ListWorkitemsResult.cc new file mode 100644 index 000000000..cec69f477 --- /dev/null +++ b/devops/src/model/ListWorkitemsResult.cc @@ -0,0 +1,148 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListWorkitemsResult::ListWorkitemsResult() : + ServiceResult() +{} + +ListWorkitemsResult::ListWorkitemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkitemsResult::~ListWorkitemsResult() +{} + +void ListWorkitemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allworkitemsNode = value["workitems"]["workitem"]; + for (auto valueworkitemsworkitem : allworkitemsNode) + { + Workitem workitemsObject; + if(!valueworkitemsworkitem["identifier"].isNull()) + workitemsObject.identifier = valueworkitemsworkitem["identifier"].asString(); + if(!valueworkitemsworkitem["subject"].isNull()) + workitemsObject.subject = valueworkitemsworkitem["subject"].asString(); + if(!valueworkitemsworkitem["document"].isNull()) + workitemsObject.document = valueworkitemsworkitem["document"].asString(); + if(!valueworkitemsworkitem["assignedTo"].isNull()) + workitemsObject.assignedTo = valueworkitemsworkitem["assignedTo"].asString(); + if(!valueworkitemsworkitem["status"].isNull()) + workitemsObject.status = valueworkitemsworkitem["status"].asString(); + if(!valueworkitemsworkitem["statusStageIdentifier"].isNull()) + workitemsObject.statusStageIdentifier = valueworkitemsworkitem["statusStageIdentifier"].asString(); + if(!valueworkitemsworkitem["spaceIdentifier"].isNull()) + workitemsObject.spaceIdentifier = valueworkitemsworkitem["spaceIdentifier"].asString(); + if(!valueworkitemsworkitem["spaceName"].isNull()) + workitemsObject.spaceName = valueworkitemsworkitem["spaceName"].asString(); + if(!valueworkitemsworkitem["spaceType"].isNull()) + workitemsObject.spaceType = valueworkitemsworkitem["spaceType"].asString(); + if(!valueworkitemsworkitem["logicalStatus"].isNull()) + workitemsObject.logicalStatus = valueworkitemsworkitem["logicalStatus"].asString(); + if(!valueworkitemsworkitem["categoryIdentifier"].isNull()) + workitemsObject.categoryIdentifier = valueworkitemsworkitem["categoryIdentifier"].asString(); + if(!valueworkitemsworkitem["parentIdentifier"].isNull()) + workitemsObject.parentIdentifier = valueworkitemsworkitem["parentIdentifier"].asString(); + if(!valueworkitemsworkitem["workitemTypeIdentifier"].isNull()) + workitemsObject.workitemTypeIdentifier = valueworkitemsworkitem["workitemTypeIdentifier"].asString(); + if(!valueworkitemsworkitem["updateStatusAt"].isNull()) + workitemsObject.updateStatusAt = std::stol(valueworkitemsworkitem["updateStatusAt"].asString()); + if(!valueworkitemsworkitem["serialNumber"].isNull()) + workitemsObject.serialNumber = valueworkitemsworkitem["serialNumber"].asString(); + if(!valueworkitemsworkitem["gmtCreate"].isNull()) + workitemsObject.gmtCreate = std::stol(valueworkitemsworkitem["gmtCreate"].asString()); + if(!valueworkitemsworkitem["gmtModified"].isNull()) + workitemsObject.gmtModified = std::stol(valueworkitemsworkitem["gmtModified"].asString()); + if(!valueworkitemsworkitem["creator"].isNull()) + workitemsObject.creator = valueworkitemsworkitem["creator"].asString(); + if(!valueworkitemsworkitem["modifier"].isNull()) + workitemsObject.modifier = valueworkitemsworkitem["modifier"].asString(); + if(!valueworkitemsworkitem["statusIdentifier"].isNull()) + workitemsObject.statusIdentifier = valueworkitemsworkitem["statusIdentifier"].asString(); + if(!valueworkitemsworkitem["sprintIdentifier"].isNull()) + workitemsObject.sprintIdentifier = valueworkitemsworkitem["sprintIdentifier"].asString(); + if(!valueworkitemsworkitem["finishTime"].isNull()) + workitemsObject.finishTime = std::stol(valueworkitemsworkitem["finishTime"].asString()); + workitems_.push_back(workitemsObject); + } + if(!value["totalCount"].isNull()) + totalCount_ = std::stol(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + if(!value["maxResults"].isNull()) + maxResults_ = std::stol(value["maxResults"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +long ListWorkitemsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListWorkitemsResult::getworkitems()const +{ + return workitems_; +} + +std::string ListWorkitemsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListWorkitemsResult::getRequestId()const +{ + return requestId_; +} + +long ListWorkitemsResult::getMaxResults()const +{ + return maxResults_; +} + +std::string ListWorkitemsResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string ListWorkitemsResult::getErrorCode()const +{ + return errorCode_; +} + +bool ListWorkitemsResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ListWorkspacesRequest.cc b/devops/src/model/ListWorkspacesRequest.cc new file mode 100644 index 000000000..3c05e0ef1 --- /dev/null +++ b/devops/src/model/ListWorkspacesRequest.cc @@ -0,0 +1,46 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ListWorkspacesRequest; + +ListWorkspacesRequest::ListWorkspacesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/workspaces"}; + setMethod(HttpRequest::Method::Get); +} + +ListWorkspacesRequest::~ListWorkspacesRequest() {} + +std::string ListWorkspacesRequest::getNextToken() const { + return nextToken_; +} + +void ListWorkspacesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("nextToken"), nextToken); +} + +int ListWorkspacesRequest::getMaxResults() const { + return maxResults_; +} + +void ListWorkspacesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("maxResults"), std::to_string(maxResults)); +} + diff --git a/devops/src/model/ListWorkspacesResult.cc b/devops/src/model/ListWorkspacesResult.cc new file mode 100644 index 000000000..984f4c43c --- /dev/null +++ b/devops/src/model/ListWorkspacesResult.cc @@ -0,0 +1,122 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ListWorkspacesResult::ListWorkspacesResult() : + ServiceResult() +{} + +ListWorkspacesResult::ListWorkspacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListWorkspacesResult::~ListWorkspacesResult() +{} + +void ListWorkspacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allworkspacesNode = value["workspaces"]["WorkspaceDTO"]; + for (auto valueworkspacesWorkspaceDTO : allworkspacesNode) + { + WorkspaceDTO workspacesObject; + if(!valueworkspacesWorkspaceDTO["codeVersion"].isNull()) + workspacesObject.codeVersion = valueworkspacesWorkspaceDTO["codeVersion"].asString(); + if(!valueworkspacesWorkspaceDTO["codeUrl"].isNull()) + workspacesObject.codeUrl = valueworkspacesWorkspaceDTO["codeUrl"].asString(); + if(!valueworkspacesWorkspaceDTO["name"].isNull()) + workspacesObject.name = valueworkspacesWorkspaceDTO["name"].asString(); + if(!valueworkspacesWorkspaceDTO["spec"].isNull()) + workspacesObject.spec = valueworkspacesWorkspaceDTO["spec"].asString(); + if(!valueworkspacesWorkspaceDTO["status"].isNull()) + workspacesObject.status = valueworkspacesWorkspaceDTO["status"].asString(); + if(!valueworkspacesWorkspaceDTO["template"].isNull()) + workspacesObject._template = valueworkspacesWorkspaceDTO["template"].asString(); + if(!valueworkspacesWorkspaceDTO["id"].isNull()) + workspacesObject.id = valueworkspacesWorkspaceDTO["id"].asString(); + if(!valueworkspacesWorkspaceDTO["userId"].isNull()) + workspacesObject.userId = valueworkspacesWorkspaceDTO["userId"].asString(); + if(!valueworkspacesWorkspaceDTO["createTime"].isNull()) + workspacesObject.createTime = valueworkspacesWorkspaceDTO["createTime"].asString(); + workspaces_.push_back(workspacesObject); + } + if(!value["totalCount"].isNull()) + totalCount_ = std::stoi(value["totalCount"].asString()); + if(!value["nextToken"].isNull()) + nextToken_ = value["nextToken"].asString(); + if(!value["maxResults"].isNull()) + maxResults_ = std::stoi(value["maxResults"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +int ListWorkspacesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListWorkspacesResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListWorkspacesResult::getRequestId()const +{ + return requestId_; +} + +int ListWorkspacesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListWorkspacesResult::getworkspaces()const +{ + return workspaces_; +} + +std::string ListWorkspacesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListWorkspacesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListWorkspacesResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/LogPipelineJobRunRequest.cc b/devops/src/model/LogPipelineJobRunRequest.cc new file mode 100644 index 000000000..e3d31c352 --- /dev/null +++ b/devops/src/model/LogPipelineJobRunRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::LogPipelineJobRunRequest; + +LogPipelineJobRunRequest::LogPipelineJobRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipeline/[pipelineId]/pipelineRun/[pipelineRunId]/job/[jobId]/logs"}; + setMethod(HttpRequest::Method::Get); +} + +LogPipelineJobRunRequest::~LogPipelineJobRunRequest() {} + +long LogPipelineJobRunRequest::getPipelineId() const { + return pipelineId_; +} + +void LogPipelineJobRunRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string LogPipelineJobRunRequest::getOrganizationId() const { + return organizationId_; +} + +void LogPipelineJobRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long LogPipelineJobRunRequest::getJobId() const { + return jobId_; +} + +void LogPipelineJobRunRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("jobId"), std::to_string(jobId)); +} + +long LogPipelineJobRunRequest::getPipelineRunId() const { + return pipelineRunId_; +} + +void LogPipelineJobRunRequest::setPipelineRunId(long pipelineRunId) { + pipelineRunId_ = pipelineRunId; + setParameter(std::string("pipelineRunId"), std::to_string(pipelineRunId)); +} + diff --git a/devops/src/model/LogPipelineJobRunResult.cc b/devops/src/model/LogPipelineJobRunResult.cc new file mode 100644 index 000000000..1c04b20e3 --- /dev/null +++ b/devops/src/model/LogPipelineJobRunResult.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +LogPipelineJobRunResult::LogPipelineJobRunResult() : + ServiceResult() +{} + +LogPipelineJobRunResult::LogPipelineJobRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LogPipelineJobRunResult::~LogPipelineJobRunResult() +{} + +void LogPipelineJobRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto logNode = value["log"]; + if(!logNode["more"].isNull()) + log_.more = logNode["more"].asString() == "true"; + if(!logNode["content"].isNull()) + log_.content = logNode["content"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string LogPipelineJobRunResult::getRequestId()const +{ + return requestId_; +} + +LogPipelineJobRunResult::Log LogPipelineJobRunResult::getLog()const +{ + return log_; +} + +std::string LogPipelineJobRunResult::getErrorCode()const +{ + return errorCode_; +} + +std::string LogPipelineJobRunResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool LogPipelineJobRunResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/LogVMDeployMachineRequest.cc b/devops/src/model/LogVMDeployMachineRequest.cc new file mode 100644 index 000000000..90580a485 --- /dev/null +++ b/devops/src/model/LogVMDeployMachineRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::LogVMDeployMachineRequest; + +LogVMDeployMachineRequest::LogVMDeployMachineRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/deploy/[deployOrderId]/machine/[machineSn]/log"}; + setMethod(HttpRequest::Method::Get); +} + +LogVMDeployMachineRequest::~LogVMDeployMachineRequest() {} + +long LogVMDeployMachineRequest::getPipelineId() const { + return pipelineId_; +} + +void LogVMDeployMachineRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string LogVMDeployMachineRequest::getOrganizationId() const { + return organizationId_; +} + +void LogVMDeployMachineRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string LogVMDeployMachineRequest::getMachineSn() const { + return machineSn_; +} + +void LogVMDeployMachineRequest::setMachineSn(const std::string &machineSn) { + machineSn_ = machineSn; + setParameter(std::string("machineSn"), machineSn); +} + +long LogVMDeployMachineRequest::getDeployOrderId() const { + return deployOrderId_; +} + +void LogVMDeployMachineRequest::setDeployOrderId(long deployOrderId) { + deployOrderId_ = deployOrderId; + setParameter(std::string("deployOrderId"), std::to_string(deployOrderId)); +} + diff --git a/devops/src/model/LogVMDeployMachineResult.cc b/devops/src/model/LogVMDeployMachineResult.cc new file mode 100644 index 000000000..98c4eb6b6 --- /dev/null +++ b/devops/src/model/LogVMDeployMachineResult.cc @@ -0,0 +1,88 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +LogVMDeployMachineResult::LogVMDeployMachineResult() : + ServiceResult() +{} + +LogVMDeployMachineResult::LogVMDeployMachineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +LogVMDeployMachineResult::~LogVMDeployMachineResult() +{} + +void LogVMDeployMachineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto deployMachineLogNode = value["deployMachineLog"]; + if(!deployMachineLogNode["deployLog"].isNull()) + deployMachineLog_.deployLog = deployMachineLogNode["deployLog"].asString(); + if(!deployMachineLogNode["aliyunRegion"].isNull()) + deployMachineLog_.aliyunRegion = deployMachineLogNode["aliyunRegion"].asString(); + if(!deployMachineLogNode["deployLogPath"].isNull()) + deployMachineLog_.deployLogPath = deployMachineLogNode["deployLogPath"].asString(); + if(!deployMachineLogNode["deployBeginTime"].isNull()) + deployMachineLog_.deployBeginTime = std::stol(deployMachineLogNode["deployBeginTime"].asString()); + if(!deployMachineLogNode["deployEndTime"].isNull()) + deployMachineLog_.deployEndTime = std::stol(deployMachineLogNode["deployEndTime"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string LogVMDeployMachineResult::getRequestId()const +{ + return requestId_; +} + +std::string LogVMDeployMachineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string LogVMDeployMachineResult::getErrorMessage()const +{ + return errorMessage_; +} + +LogVMDeployMachineResult::DeployMachineLog LogVMDeployMachineResult::getDeployMachineLog()const +{ + return deployMachineLog_; +} + +bool LogVMDeployMachineResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/MergeMergeRequestRequest.cc b/devops/src/model/MergeMergeRequestRequest.cc new file mode 100644 index 000000000..1fc8219eb --- /dev/null +++ b/devops/src/model/MergeMergeRequestRequest.cc @@ -0,0 +1,75 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::MergeMergeRequestRequest; + +MergeMergeRequestRequest::MergeMergeRequestRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/merge_requests/[localId]/merge"}; + setMethod(HttpRequest::Method::Post); +} + +MergeMergeRequestRequest::~MergeMergeRequestRequest() {} + +std::string MergeMergeRequestRequest::getOrganizationId() const { + return organizationId_; +} + +void MergeMergeRequestRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long MergeMergeRequestRequest::getRepositoryId() const { + return repositoryId_; +} + +void MergeMergeRequestRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string MergeMergeRequestRequest::getAccessToken() const { + return accessToken_; +} + +void MergeMergeRequestRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +MergeMergeRequestRequest::body MergeMergeRequestRequest::getBody() const { + return body_; +} + +void MergeMergeRequestRequest::setBody(const MergeMergeRequestRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".removeSourceBranch", body.removeSourceBranch ? "true" : "false"); + setBodyParameter(std::string("body") + ".mergeMessage", body.mergeMessage); + setBodyParameter(std::string("body") + ".mergeType", body.mergeType); +} + +long MergeMergeRequestRequest::getLocalId() const { + return localId_; +} + +void MergeMergeRequestRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/MergeMergeRequestResult.cc b/devops/src/model/MergeMergeRequestResult.cc new file mode 100644 index 000000000..69eacbbc4 --- /dev/null +++ b/devops/src/model/MergeMergeRequestResult.cc @@ -0,0 +1,88 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +MergeMergeRequestResult::MergeMergeRequestResult() : + ServiceResult() +{} + +MergeMergeRequestResult::MergeMergeRequestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MergeMergeRequestResult::~MergeMergeRequestResult() +{} + +void MergeMergeRequestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!resultNode["mergedRevision"].isNull()) + result_.mergedRevision = resultNode["mergedRevision"].asString(); + if(!resultNode["bizId"].isNull()) + result_.bizId = resultNode["bizId"].asString(); + if(!resultNode["projectId"].isNull()) + result_.projectId = std::stol(resultNode["projectId"].asString()); + if(!resultNode["localId"].isNull()) + result_.localId = std::stol(resultNode["localId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string MergeMergeRequestResult::getRequestId()const +{ + return requestId_; +} + +std::string MergeMergeRequestResult::getErrorCode()const +{ + return errorCode_; +} + +std::string MergeMergeRequestResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool MergeMergeRequestResult::getSuccess()const +{ + return success_; +} + +MergeMergeRequestResult::Result MergeMergeRequestResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/PassPipelineValidateRequest.cc b/devops/src/model/PassPipelineValidateRequest.cc new file mode 100644 index 000000000..a04bf4275 --- /dev/null +++ b/devops/src/model/PassPipelineValidateRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::PassPipelineValidateRequest; + +PassPipelineValidateRequest::PassPipelineValidateRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/pipelineRuns/[pipelineRunId]/jobs/[jobId]/pass"}; + setMethod(HttpRequest::Method::Post); +} + +PassPipelineValidateRequest::~PassPipelineValidateRequest() {} + +long PassPipelineValidateRequest::getPipelineId() const { + return pipelineId_; +} + +void PassPipelineValidateRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string PassPipelineValidateRequest::getOrganizationId() const { + return organizationId_; +} + +void PassPipelineValidateRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long PassPipelineValidateRequest::getPipelineRunId() const { + return pipelineRunId_; +} + +void PassPipelineValidateRequest::setPipelineRunId(long pipelineRunId) { + pipelineRunId_ = pipelineRunId; + setParameter(std::string("pipelineRunId"), std::to_string(pipelineRunId)); +} + +std::string PassPipelineValidateRequest::getJobId() const { + return jobId_; +} + +void PassPipelineValidateRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("jobId"), jobId); +} + diff --git a/devops/src/model/PassPipelineValidateResult.cc b/devops/src/model/PassPipelineValidateResult.cc new file mode 100644 index 000000000..3a9891433 --- /dev/null +++ b/devops/src/model/PassPipelineValidateResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +PassPipelineValidateResult::PassPipelineValidateResult() : + ServiceResult() +{} + +PassPipelineValidateResult::PassPipelineValidateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PassPipelineValidateResult::~PassPipelineValidateResult() +{} + +void PassPipelineValidateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string PassPipelineValidateResult::getRequestId()const +{ + return requestId_; +} + +std::string PassPipelineValidateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PassPipelineValidateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool PassPipelineValidateResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/RefusePipelineValidateRequest.cc b/devops/src/model/RefusePipelineValidateRequest.cc new file mode 100644 index 000000000..833b730be --- /dev/null +++ b/devops/src/model/RefusePipelineValidateRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::RefusePipelineValidateRequest; + +RefusePipelineValidateRequest::RefusePipelineValidateRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/pipelineRuns/[pipelineRunId]/jobs/[jobId]/refuse"}; + setMethod(HttpRequest::Method::Post); +} + +RefusePipelineValidateRequest::~RefusePipelineValidateRequest() {} + +long RefusePipelineValidateRequest::getPipelineId() const { + return pipelineId_; +} + +void RefusePipelineValidateRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string RefusePipelineValidateRequest::getOrganizationId() const { + return organizationId_; +} + +void RefusePipelineValidateRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long RefusePipelineValidateRequest::getPipelineRunId() const { + return pipelineRunId_; +} + +void RefusePipelineValidateRequest::setPipelineRunId(long pipelineRunId) { + pipelineRunId_ = pipelineRunId; + setParameter(std::string("pipelineRunId"), std::to_string(pipelineRunId)); +} + +std::string RefusePipelineValidateRequest::getJobId() const { + return jobId_; +} + +void RefusePipelineValidateRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("jobId"), jobId); +} + diff --git a/devops/src/model/RefusePipelineValidateResult.cc b/devops/src/model/RefusePipelineValidateResult.cc new file mode 100644 index 000000000..a35cb6df2 --- /dev/null +++ b/devops/src/model/RefusePipelineValidateResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +RefusePipelineValidateResult::RefusePipelineValidateResult() : + ServiceResult() +{} + +RefusePipelineValidateResult::RefusePipelineValidateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RefusePipelineValidateResult::~RefusePipelineValidateResult() +{} + +void RefusePipelineValidateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string RefusePipelineValidateResult::getRequestId()const +{ + return requestId_; +} + +std::string RefusePipelineValidateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RefusePipelineValidateResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool RefusePipelineValidateResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ReleaseWorkspaceRequest.cc b/devops/src/model/ReleaseWorkspaceRequest.cc new file mode 100644 index 000000000..fa269626b --- /dev/null +++ b/devops/src/model/ReleaseWorkspaceRequest.cc @@ -0,0 +1,37 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ReleaseWorkspaceRequest; + +ReleaseWorkspaceRequest::ReleaseWorkspaceRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/workspaces/[workspaceId]/release"}; + setMethod(HttpRequest::Method::Delete); +} + +ReleaseWorkspaceRequest::~ReleaseWorkspaceRequest() {} + +std::string ReleaseWorkspaceRequest::getWorkspaceId() const { + return workspaceId_; +} + +void ReleaseWorkspaceRequest::setWorkspaceId(const std::string &workspaceId) { + workspaceId_ = workspaceId; + setParameter(std::string("workspaceId"), workspaceId); +} + diff --git a/devops/src/model/ReleaseWorkspaceResult.cc b/devops/src/model/ReleaseWorkspaceResult.cc new file mode 100644 index 000000000..dbe730aef --- /dev/null +++ b/devops/src/model/ReleaseWorkspaceResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ReleaseWorkspaceResult::ReleaseWorkspaceResult() : + ServiceResult() +{} + +ReleaseWorkspaceResult::ReleaseWorkspaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseWorkspaceResult::~ReleaseWorkspaceResult() +{} + +void ReleaseWorkspaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string ReleaseWorkspaceResult::getRequestId()const +{ + return requestId_; +} + +std::string ReleaseWorkspaceResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ReleaseWorkspaceResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ReleaseWorkspaceResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ReopenMergeRequestRequest.cc b/devops/src/model/ReopenMergeRequestRequest.cc new file mode 100644 index 000000000..70b17959b --- /dev/null +++ b/devops/src/model/ReopenMergeRequestRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ReopenMergeRequestRequest; + +ReopenMergeRequestRequest::ReopenMergeRequestRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/merge_requests/[localId]/reopen"}; + setMethod(HttpRequest::Method::Post); +} + +ReopenMergeRequestRequest::~ReopenMergeRequestRequest() {} + +std::string ReopenMergeRequestRequest::getOrganizationId() const { + return organizationId_; +} + +void ReopenMergeRequestRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ReopenMergeRequestRequest::getRepositoryId() const { + return repositoryId_; +} + +void ReopenMergeRequestRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string ReopenMergeRequestRequest::getAccessToken() const { + return accessToken_; +} + +void ReopenMergeRequestRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long ReopenMergeRequestRequest::getLocalId() const { + return localId_; +} + +void ReopenMergeRequestRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/ReopenMergeRequestResult.cc b/devops/src/model/ReopenMergeRequestResult.cc new file mode 100644 index 000000000..6953c635c --- /dev/null +++ b/devops/src/model/ReopenMergeRequestResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ReopenMergeRequestResult::ReopenMergeRequestResult() : + ServiceResult() +{} + +ReopenMergeRequestResult::ReopenMergeRequestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReopenMergeRequestResult::~ReopenMergeRequestResult() +{} + +void ReopenMergeRequestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ReopenMergeRequestResult::getRequestId()const +{ + return requestId_; +} + +std::string ReopenMergeRequestResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ReopenMergeRequestResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ReopenMergeRequestResult::getSuccess()const +{ + return success_; +} + +ReopenMergeRequestResult::Result ReopenMergeRequestResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/ResetSshKeyRequest.cc b/devops/src/model/ResetSshKeyRequest.cc new file mode 100644 index 000000000..8def8aac7 --- /dev/null +++ b/devops/src/model/ResetSshKeyRequest.cc @@ -0,0 +1,37 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ResetSshKeyRequest; + +ResetSshKeyRequest::ResetSshKeyRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/sshKey"}; + setMethod(HttpRequest::Method::Put); +} + +ResetSshKeyRequest::~ResetSshKeyRequest() {} + +std::string ResetSshKeyRequest::getOrganizationId() const { + return organizationId_; +} + +void ResetSshKeyRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/ResetSshKeyResult.cc b/devops/src/model/ResetSshKeyResult.cc new file mode 100644 index 000000000..767b38978 --- /dev/null +++ b/devops/src/model/ResetSshKeyResult.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ResetSshKeyResult::ResetSshKeyResult() : + ServiceResult() +{} + +ResetSshKeyResult::ResetSshKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetSshKeyResult::~ResetSshKeyResult() +{} + +void ResetSshKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto sshKeyNode = value["sshKey"]; + if(!sshKeyNode["publicKey"].isNull()) + sshKey_.publicKey = sshKeyNode["publicKey"].asString(); + if(!sshKeyNode["id"].isNull()) + sshKey_.id = std::stol(sshKeyNode["id"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +ResetSshKeyResult::SshKey ResetSshKeyResult::getSshKey()const +{ + return sshKey_; +} + +std::string ResetSshKeyResult::getRequestId()const +{ + return requestId_; +} + +std::string ResetSshKeyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ResetSshKeyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ResetSshKeyResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ResumeVMDeployOrderRequest.cc b/devops/src/model/ResumeVMDeployOrderRequest.cc new file mode 100644 index 000000000..af53de31d --- /dev/null +++ b/devops/src/model/ResumeVMDeployOrderRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ResumeVMDeployOrderRequest; + +ResumeVMDeployOrderRequest::ResumeVMDeployOrderRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/deploy/[deployOrderId]/resume"}; + setMethod(HttpRequest::Method::Put); +} + +ResumeVMDeployOrderRequest::~ResumeVMDeployOrderRequest() {} + +long ResumeVMDeployOrderRequest::getPipelineId() const { + return pipelineId_; +} + +void ResumeVMDeployOrderRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string ResumeVMDeployOrderRequest::getOrganizationId() const { + return organizationId_; +} + +void ResumeVMDeployOrderRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ResumeVMDeployOrderRequest::getDeployOrderId() const { + return deployOrderId_; +} + +void ResumeVMDeployOrderRequest::setDeployOrderId(long deployOrderId) { + deployOrderId_ = deployOrderId; + setParameter(std::string("deployOrderId"), std::to_string(deployOrderId)); +} + diff --git a/devops/src/model/ResumeVMDeployOrderResult.cc b/devops/src/model/ResumeVMDeployOrderResult.cc new file mode 100644 index 000000000..b014fdc35 --- /dev/null +++ b/devops/src/model/ResumeVMDeployOrderResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ResumeVMDeployOrderResult::ResumeVMDeployOrderResult() : + ServiceResult() +{} + +ResumeVMDeployOrderResult::ResumeVMDeployOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResumeVMDeployOrderResult::~ResumeVMDeployOrderResult() +{} + +void ResumeVMDeployOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string ResumeVMDeployOrderResult::getRequestId()const +{ + return requestId_; +} + +std::string ResumeVMDeployOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ResumeVMDeployOrderResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ResumeVMDeployOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/RetryPipelineJobRunRequest.cc b/devops/src/model/RetryPipelineJobRunRequest.cc new file mode 100644 index 000000000..061afd89b --- /dev/null +++ b/devops/src/model/RetryPipelineJobRunRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::RetryPipelineJobRunRequest; + +RetryPipelineJobRunRequest::RetryPipelineJobRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/pipelineRuns/[pipelineRunId]/jobs/[jobId]"}; + setMethod(HttpRequest::Method::Put); +} + +RetryPipelineJobRunRequest::~RetryPipelineJobRunRequest() {} + +long RetryPipelineJobRunRequest::getPipelineId() const { + return pipelineId_; +} + +void RetryPipelineJobRunRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string RetryPipelineJobRunRequest::getOrganizationId() const { + return organizationId_; +} + +void RetryPipelineJobRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long RetryPipelineJobRunRequest::getPipelineRunId() const { + return pipelineRunId_; +} + +void RetryPipelineJobRunRequest::setPipelineRunId(long pipelineRunId) { + pipelineRunId_ = pipelineRunId; + setParameter(std::string("pipelineRunId"), std::to_string(pipelineRunId)); +} + +long RetryPipelineJobRunRequest::getJobId() const { + return jobId_; +} + +void RetryPipelineJobRunRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("jobId"), std::to_string(jobId)); +} + diff --git a/devops/src/model/RetryPipelineJobRunResult.cc b/devops/src/model/RetryPipelineJobRunResult.cc new file mode 100644 index 000000000..811635812 --- /dev/null +++ b/devops/src/model/RetryPipelineJobRunResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +RetryPipelineJobRunResult::RetryPipelineJobRunResult() : + ServiceResult() +{} + +RetryPipelineJobRunResult::RetryPipelineJobRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RetryPipelineJobRunResult::~RetryPipelineJobRunResult() +{} + +void RetryPipelineJobRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string RetryPipelineJobRunResult::getRequestId()const +{ + return requestId_; +} + +std::string RetryPipelineJobRunResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RetryPipelineJobRunResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool RetryPipelineJobRunResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/RetryVMDeployMachineRequest.cc b/devops/src/model/RetryVMDeployMachineRequest.cc new file mode 100644 index 000000000..09a212fea --- /dev/null +++ b/devops/src/model/RetryVMDeployMachineRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::RetryVMDeployMachineRequest; + +RetryVMDeployMachineRequest::RetryVMDeployMachineRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/deploy/[deployOrderId]/machine/[machineSn]/retry"}; + setMethod(HttpRequest::Method::Put); +} + +RetryVMDeployMachineRequest::~RetryVMDeployMachineRequest() {} + +long RetryVMDeployMachineRequest::getPipelineId() const { + return pipelineId_; +} + +void RetryVMDeployMachineRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string RetryVMDeployMachineRequest::getOrganizationId() const { + return organizationId_; +} + +void RetryVMDeployMachineRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string RetryVMDeployMachineRequest::getMachineSn() const { + return machineSn_; +} + +void RetryVMDeployMachineRequest::setMachineSn(const std::string &machineSn) { + machineSn_ = machineSn; + setParameter(std::string("machineSn"), machineSn); +} + +long RetryVMDeployMachineRequest::getDeployOrderId() const { + return deployOrderId_; +} + +void RetryVMDeployMachineRequest::setDeployOrderId(long deployOrderId) { + deployOrderId_ = deployOrderId; + setParameter(std::string("deployOrderId"), std::to_string(deployOrderId)); +} + diff --git a/devops/src/model/RetryVMDeployMachineResult.cc b/devops/src/model/RetryVMDeployMachineResult.cc new file mode 100644 index 000000000..3d75203b5 --- /dev/null +++ b/devops/src/model/RetryVMDeployMachineResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +RetryVMDeployMachineResult::RetryVMDeployMachineResult() : + ServiceResult() +{} + +RetryVMDeployMachineResult::RetryVMDeployMachineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RetryVMDeployMachineResult::~RetryVMDeployMachineResult() +{} + +void RetryVMDeployMachineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string RetryVMDeployMachineResult::getRequestId()const +{ + return requestId_; +} + +std::string RetryVMDeployMachineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RetryVMDeployMachineResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool RetryVMDeployMachineResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/ReviewMergeRequestRequest.cc b/devops/src/model/ReviewMergeRequestRequest.cc new file mode 100644 index 000000000..8d783de2e --- /dev/null +++ b/devops/src/model/ReviewMergeRequestRequest.cc @@ -0,0 +1,77 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::ReviewMergeRequestRequest; + +ReviewMergeRequestRequest::ReviewMergeRequestRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/merge_requests/[localId]/submit_review_opinion"}; + setMethod(HttpRequest::Method::Post); +} + +ReviewMergeRequestRequest::~ReviewMergeRequestRequest() {} + +std::string ReviewMergeRequestRequest::getOrganizationId() const { + return organizationId_; +} + +void ReviewMergeRequestRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long ReviewMergeRequestRequest::getRepositoryId() const { + return repositoryId_; +} + +void ReviewMergeRequestRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string ReviewMergeRequestRequest::getAccessToken() const { + return accessToken_; +} + +void ReviewMergeRequestRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +ReviewMergeRequestRequest::body ReviewMergeRequestRequest::getBody() const { + return body_; +} + +void ReviewMergeRequestRequest::setBody(const ReviewMergeRequestRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.draftCommentIds.size(); dep1++) { + setBodyParameter(std::string("body") + ".draftCommentIds." + std::to_string(dep1 + 1), body.draftCommentIds[dep1]); + } + setBodyParameter(std::string("body") + ".reviewOpinion", body.reviewOpinion); + setBodyParameter(std::string("body") + ".reviewComment", body.reviewComment); +} + +long ReviewMergeRequestRequest::getLocalId() const { + return localId_; +} + +void ReviewMergeRequestRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/ReviewMergeRequestResult.cc b/devops/src/model/ReviewMergeRequestResult.cc new file mode 100644 index 000000000..783c4c443 --- /dev/null +++ b/devops/src/model/ReviewMergeRequestResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +ReviewMergeRequestResult::ReviewMergeRequestResult() : + ServiceResult() +{} + +ReviewMergeRequestResult::ReviewMergeRequestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReviewMergeRequestResult::~ReviewMergeRequestResult() +{} + +void ReviewMergeRequestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string ReviewMergeRequestResult::getRequestId()const +{ + return requestId_; +} + +std::string ReviewMergeRequestResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ReviewMergeRequestResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ReviewMergeRequestResult::getSuccess()const +{ + return success_; +} + +ReviewMergeRequestResult::Result ReviewMergeRequestResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/SkipPipelineJobRunRequest.cc b/devops/src/model/SkipPipelineJobRunRequest.cc new file mode 100644 index 000000000..2ee3c6f87 --- /dev/null +++ b/devops/src/model/SkipPipelineJobRunRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::SkipPipelineJobRunRequest; + +SkipPipelineJobRunRequest::SkipPipelineJobRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/pipelineRuns/[pipelineRunId]/jobs/[jobId]/skip"}; + setMethod(HttpRequest::Method::Put); +} + +SkipPipelineJobRunRequest::~SkipPipelineJobRunRequest() {} + +long SkipPipelineJobRunRequest::getPipelineId() const { + return pipelineId_; +} + +void SkipPipelineJobRunRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string SkipPipelineJobRunRequest::getOrganizationId() const { + return organizationId_; +} + +void SkipPipelineJobRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long SkipPipelineJobRunRequest::getPipelineRunId() const { + return pipelineRunId_; +} + +void SkipPipelineJobRunRequest::setPipelineRunId(long pipelineRunId) { + pipelineRunId_ = pipelineRunId; + setParameter(std::string("pipelineRunId"), std::to_string(pipelineRunId)); +} + +long SkipPipelineJobRunRequest::getJobId() const { + return jobId_; +} + +void SkipPipelineJobRunRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("jobId"), std::to_string(jobId)); +} + diff --git a/devops/src/model/SkipPipelineJobRunResult.cc b/devops/src/model/SkipPipelineJobRunResult.cc new file mode 100644 index 000000000..302f22212 --- /dev/null +++ b/devops/src/model/SkipPipelineJobRunResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +SkipPipelineJobRunResult::SkipPipelineJobRunResult() : + ServiceResult() +{} + +SkipPipelineJobRunResult::SkipPipelineJobRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SkipPipelineJobRunResult::~SkipPipelineJobRunResult() +{} + +void SkipPipelineJobRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string SkipPipelineJobRunResult::getRequestId()const +{ + return requestId_; +} + +std::string SkipPipelineJobRunResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SkipPipelineJobRunResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SkipPipelineJobRunResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/SkipVMDeployMachineRequest.cc b/devops/src/model/SkipVMDeployMachineRequest.cc new file mode 100644 index 000000000..02ac86b6c --- /dev/null +++ b/devops/src/model/SkipVMDeployMachineRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::SkipVMDeployMachineRequest; + +SkipVMDeployMachineRequest::SkipVMDeployMachineRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/deploy/[deployOrderId]/machine/[machineSn]/skip"}; + setMethod(HttpRequest::Method::Put); +} + +SkipVMDeployMachineRequest::~SkipVMDeployMachineRequest() {} + +long SkipVMDeployMachineRequest::getPipelineId() const { + return pipelineId_; +} + +void SkipVMDeployMachineRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string SkipVMDeployMachineRequest::getOrganizationId() const { + return organizationId_; +} + +void SkipVMDeployMachineRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string SkipVMDeployMachineRequest::getMachineSn() const { + return machineSn_; +} + +void SkipVMDeployMachineRequest::setMachineSn(const std::string &machineSn) { + machineSn_ = machineSn; + setParameter(std::string("machineSn"), machineSn); +} + +long SkipVMDeployMachineRequest::getDeployOrderId() const { + return deployOrderId_; +} + +void SkipVMDeployMachineRequest::setDeployOrderId(long deployOrderId) { + deployOrderId_ = deployOrderId; + setParameter(std::string("deployOrderId"), std::to_string(deployOrderId)); +} + diff --git a/devops/src/model/SkipVMDeployMachineResult.cc b/devops/src/model/SkipVMDeployMachineResult.cc new file mode 100644 index 000000000..b528b8294 --- /dev/null +++ b/devops/src/model/SkipVMDeployMachineResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +SkipVMDeployMachineResult::SkipVMDeployMachineResult() : + ServiceResult() +{} + +SkipVMDeployMachineResult::SkipVMDeployMachineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SkipVMDeployMachineResult::~SkipVMDeployMachineResult() +{} + +void SkipVMDeployMachineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string SkipVMDeployMachineResult::getRequestId()const +{ + return requestId_; +} + +std::string SkipVMDeployMachineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SkipVMDeployMachineResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SkipVMDeployMachineResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/StartPipelineRunRequest.cc b/devops/src/model/StartPipelineRunRequest.cc new file mode 100644 index 000000000..368bcec96 --- /dev/null +++ b/devops/src/model/StartPipelineRunRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::StartPipelineRunRequest; + +StartPipelineRunRequest::StartPipelineRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organizations/[organizationId]/pipelines/[pipelineId]/run"}; + setMethod(HttpRequest::Method::Post); +} + +StartPipelineRunRequest::~StartPipelineRunRequest() {} + +std::string StartPipelineRunRequest::getParams() const { + return params_; +} + +void StartPipelineRunRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("params"), params); +} + +long StartPipelineRunRequest::getPipelineId() const { + return pipelineId_; +} + +void StartPipelineRunRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string StartPipelineRunRequest::getOrganizationId() const { + return organizationId_; +} + +void StartPipelineRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/StartPipelineRunResult.cc b/devops/src/model/StartPipelineRunResult.cc new file mode 100644 index 000000000..439f0b6e1 --- /dev/null +++ b/devops/src/model/StartPipelineRunResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +StartPipelineRunResult::StartPipelineRunResult() : + ServiceResult() +{} + +StartPipelineRunResult::StartPipelineRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartPipelineRunResult::~StartPipelineRunResult() +{} + +void StartPipelineRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["pipelineRunId"].isNull()) + pipelineRunId_ = std::stol(value["pipelineRunId"].asString()); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string StartPipelineRunResult::getRequestId()const +{ + return requestId_; +} + +long StartPipelineRunResult::getPipelineRunId()const +{ + return pipelineRunId_; +} + +std::string StartPipelineRunResult::getErrorCode()const +{ + return errorCode_; +} + +std::string StartPipelineRunResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool StartPipelineRunResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/StopPipelineJobRunRequest.cc b/devops/src/model/StopPipelineJobRunRequest.cc new file mode 100644 index 000000000..70bc86076 --- /dev/null +++ b/devops/src/model/StopPipelineJobRunRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::StopPipelineJobRunRequest; + +StopPipelineJobRunRequest::StopPipelineJobRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/pipelineRuns/[pipelineRunId]/jobs/[jobId]/stop"}; + setMethod(HttpRequest::Method::Put); +} + +StopPipelineJobRunRequest::~StopPipelineJobRunRequest() {} + +long StopPipelineJobRunRequest::getPipelineId() const { + return pipelineId_; +} + +void StopPipelineJobRunRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string StopPipelineJobRunRequest::getOrganizationId() const { + return organizationId_; +} + +void StopPipelineJobRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long StopPipelineJobRunRequest::getPipelineRunId() const { + return pipelineRunId_; +} + +void StopPipelineJobRunRequest::setPipelineRunId(long pipelineRunId) { + pipelineRunId_ = pipelineRunId; + setParameter(std::string("pipelineRunId"), std::to_string(pipelineRunId)); +} + +long StopPipelineJobRunRequest::getJobId() const { + return jobId_; +} + +void StopPipelineJobRunRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("jobId"), std::to_string(jobId)); +} + diff --git a/devops/src/model/StopPipelineJobRunResult.cc b/devops/src/model/StopPipelineJobRunResult.cc new file mode 100644 index 000000000..2c8854391 --- /dev/null +++ b/devops/src/model/StopPipelineJobRunResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +StopPipelineJobRunResult::StopPipelineJobRunResult() : + ServiceResult() +{} + +StopPipelineJobRunResult::StopPipelineJobRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopPipelineJobRunResult::~StopPipelineJobRunResult() +{} + +void StopPipelineJobRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string StopPipelineJobRunResult::getRequestId()const +{ + return requestId_; +} + +std::string StopPipelineJobRunResult::getErrorCode()const +{ + return errorCode_; +} + +std::string StopPipelineJobRunResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool StopPipelineJobRunResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/StopPipelineRunRequest.cc b/devops/src/model/StopPipelineRunRequest.cc new file mode 100644 index 000000000..1c1e3b7d3 --- /dev/null +++ b/devops/src/model/StopPipelineRunRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::StopPipelineRunRequest; + +StopPipelineRunRequest::StopPipelineRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/pipelineRuns/[pipelineRunId]/stop"}; + setMethod(HttpRequest::Method::Put); +} + +StopPipelineRunRequest::~StopPipelineRunRequest() {} + +long StopPipelineRunRequest::getPipelineId() const { + return pipelineId_; +} + +void StopPipelineRunRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string StopPipelineRunRequest::getOrganizationId() const { + return organizationId_; +} + +void StopPipelineRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long StopPipelineRunRequest::getPipelineRunId() const { + return pipelineRunId_; +} + +void StopPipelineRunRequest::setPipelineRunId(long pipelineRunId) { + pipelineRunId_ = pipelineRunId; + setParameter(std::string("pipelineRunId"), std::to_string(pipelineRunId)); +} + diff --git a/devops/src/model/StopPipelineRunResult.cc b/devops/src/model/StopPipelineRunResult.cc new file mode 100644 index 000000000..c90d25cbc --- /dev/null +++ b/devops/src/model/StopPipelineRunResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +StopPipelineRunResult::StopPipelineRunResult() : + ServiceResult() +{} + +StopPipelineRunResult::StopPipelineRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopPipelineRunResult::~StopPipelineRunResult() +{} + +void StopPipelineRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string StopPipelineRunResult::getRequestId()const +{ + return requestId_; +} + +std::string StopPipelineRunResult::getErrorCode()const +{ + return errorCode_; +} + +std::string StopPipelineRunResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool StopPipelineRunResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/StopVMDeployOrderRequest.cc b/devops/src/model/StopVMDeployOrderRequest.cc new file mode 100644 index 000000000..3f4b736ab --- /dev/null +++ b/devops/src/model/StopVMDeployOrderRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::StopVMDeployOrderRequest; + +StopVMDeployOrderRequest::StopVMDeployOrderRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/deploy/[deployOrderId]/stop"}; + setMethod(HttpRequest::Method::Put); +} + +StopVMDeployOrderRequest::~StopVMDeployOrderRequest() {} + +long StopVMDeployOrderRequest::getPipelineId() const { + return pipelineId_; +} + +void StopVMDeployOrderRequest::setPipelineId(long pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); +} + +std::string StopVMDeployOrderRequest::getOrganizationId() const { + return organizationId_; +} + +void StopVMDeployOrderRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long StopVMDeployOrderRequest::getDeployOrderId() const { + return deployOrderId_; +} + +void StopVMDeployOrderRequest::setDeployOrderId(long deployOrderId) { + deployOrderId_ = deployOrderId; + setParameter(std::string("deployOrderId"), std::to_string(deployOrderId)); +} + diff --git a/devops/src/model/StopVMDeployOrderResult.cc b/devops/src/model/StopVMDeployOrderResult.cc new file mode 100644 index 000000000..c1ccf7969 --- /dev/null +++ b/devops/src/model/StopVMDeployOrderResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +StopVMDeployOrderResult::StopVMDeployOrderResult() : + ServiceResult() +{} + +StopVMDeployOrderResult::StopVMDeployOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopVMDeployOrderResult::~StopVMDeployOrderResult() +{} + +void StopVMDeployOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string StopVMDeployOrderResult::getRequestId()const +{ + return requestId_; +} + +std::string StopVMDeployOrderResult::getErrorCode()const +{ + return errorCode_; +} + +std::string StopVMDeployOrderResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool StopVMDeployOrderResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/TransferRepositoryRequest.cc b/devops/src/model/TransferRepositoryRequest.cc new file mode 100644 index 000000000..1e2b7babe --- /dev/null +++ b/devops/src/model/TransferRepositoryRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::TransferRepositoryRequest; + +TransferRepositoryRequest::TransferRepositoryRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/repository/transfer"}; + setMethod(HttpRequest::Method::Post); +} + +TransferRepositoryRequest::~TransferRepositoryRequest() {} + +std::string TransferRepositoryRequest::getOrganizationId() const { + return organizationId_; +} + +void TransferRepositoryRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string TransferRepositoryRequest::getGroupId() const { + return groupId_; +} + +void TransferRepositoryRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), groupId); +} + +std::string TransferRepositoryRequest::getRepositoryId() const { + return repositoryId_; +} + +void TransferRepositoryRequest::setRepositoryId(const std::string &repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), repositoryId); +} + +std::string TransferRepositoryRequest::getAccessToken() const { + return accessToken_; +} + +void TransferRepositoryRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + diff --git a/devops/src/model/TransferRepositoryResult.cc b/devops/src/model/TransferRepositoryResult.cc new file mode 100644 index 000000000..632bb01fb --- /dev/null +++ b/devops/src/model/TransferRepositoryResult.cc @@ -0,0 +1,116 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +TransferRepositoryResult::TransferRepositoryResult() : + ServiceResult() +{} + +TransferRepositoryResult::TransferRepositoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TransferRepositoryResult::~TransferRepositoryResult() +{} + +void TransferRepositoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["path"].isNull()) + result_.path = resultNode["path"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["pathWithNamespace"].isNull()) + result_.pathWithNamespace = resultNode["pathWithNamespace"].asString(); + if(!resultNode["nameWithNamespace"].isNull()) + result_.nameWithNamespace = resultNode["nameWithNamespace"].asString(); + if(!resultNode["visibilityLevel"].isNull()) + result_.visibilityLevel = std::stoi(resultNode["visibilityLevel"].asString()); + if(!resultNode["lastActivityAt"].isNull()) + result_.lastActivityAt = resultNode["lastActivityAt"].asString(); + if(!resultNode["starCount"].isNull()) + result_.starCount = std::stol(resultNode["starCount"].asString()); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["starred"].isNull()) + result_.starred = resultNode["starred"].asString() == "true"; + if(!resultNode["namespaceId"].isNull()) + result_.namespaceId = std::stol(resultNode["namespaceId"].asString()); + if(!resultNode["accessLevel"].isNull()) + result_.accessLevel = std::stoi(resultNode["accessLevel"].asString()); + if(!resultNode["demoProject"].isNull()) + result_.demoProject = resultNode["demoProject"].asString() == "true"; + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["updatedAt"].isNull()) + result_.updatedAt = resultNode["updatedAt"].asString(); + if(!resultNode["archived"].isNull()) + result_.archived = resultNode["archived"].asString() == "true"; + if(!resultNode["creatorId"].isNull()) + result_.creatorId = std::stol(resultNode["creatorId"].asString()); + if(!resultNode["encrypted"].isNull()) + result_.encrypted = resultNode["encrypted"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string TransferRepositoryResult::getRequestId()const +{ + return requestId_; +} + +std::string TransferRepositoryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TransferRepositoryResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool TransferRepositoryResult::getSuccess()const +{ + return success_; +} + +TransferRepositoryResult::Result TransferRepositoryResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/TriggerRepositoryMirrorSyncRequest.cc b/devops/src/model/TriggerRepositoryMirrorSyncRequest.cc new file mode 100644 index 000000000..faabf2c7b --- /dev/null +++ b/devops/src/model/TriggerRepositoryMirrorSyncRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::TriggerRepositoryMirrorSyncRequest; + +TriggerRepositoryMirrorSyncRequest::TriggerRepositoryMirrorSyncRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/mirror"}; + setMethod(HttpRequest::Method::Post); +} + +TriggerRepositoryMirrorSyncRequest::~TriggerRepositoryMirrorSyncRequest() {} + +std::string TriggerRepositoryMirrorSyncRequest::getOrganizationId() const { + return organizationId_; +} + +void TriggerRepositoryMirrorSyncRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long TriggerRepositoryMirrorSyncRequest::getRepositoryId() const { + return repositoryId_; +} + +void TriggerRepositoryMirrorSyncRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string TriggerRepositoryMirrorSyncRequest::getAccessToken() const { + return accessToken_; +} + +void TriggerRepositoryMirrorSyncRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +std::string TriggerRepositoryMirrorSyncRequest::getAccount() const { + return account_; +} + +void TriggerRepositoryMirrorSyncRequest::setAccount(const std::string &account) { + account_ = account; + setParameter(std::string("account"), account); +} + +std::string TriggerRepositoryMirrorSyncRequest::getToken() const { + return token_; +} + +void TriggerRepositoryMirrorSyncRequest::setToken(const std::string &token) { + token_ = token; + setParameter(std::string("token"), token); +} + diff --git a/devops/src/model/TriggerRepositoryMirrorSyncResult.cc b/devops/src/model/TriggerRepositoryMirrorSyncResult.cc new file mode 100644 index 000000000..d0f83b225 --- /dev/null +++ b/devops/src/model/TriggerRepositoryMirrorSyncResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +TriggerRepositoryMirrorSyncResult::TriggerRepositoryMirrorSyncResult() : + ServiceResult() +{} + +TriggerRepositoryMirrorSyncResult::TriggerRepositoryMirrorSyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TriggerRepositoryMirrorSyncResult::~TriggerRepositoryMirrorSyncResult() +{} + +void TriggerRepositoryMirrorSyncResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string TriggerRepositoryMirrorSyncResult::getRequestId()const +{ + return requestId_; +} + +std::string TriggerRepositoryMirrorSyncResult::getErrorCode()const +{ + return errorCode_; +} + +std::string TriggerRepositoryMirrorSyncResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool TriggerRepositoryMirrorSyncResult::getSuccess()const +{ + return success_; +} + +TriggerRepositoryMirrorSyncResult::Result TriggerRepositoryMirrorSyncResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateAppMemberRequest.cc b/devops/src/model/UpdateAppMemberRequest.cc new file mode 100644 index 000000000..5655847d0 --- /dev/null +++ b/devops/src/model/UpdateAppMemberRequest.cc @@ -0,0 +1,59 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateAppMemberRequest; + +UpdateAppMemberRequest::UpdateAppMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/appstack/apps/[appName]/members"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateAppMemberRequest::~UpdateAppMemberRequest() {} + +std::string UpdateAppMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateAppMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateAppMemberRequest::getAppName() const { + return appName_; +} + +void UpdateAppMemberRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +UpdateAppMemberRequest::body UpdateAppMemberRequest::getBody() const { + return body_; +} + +void UpdateAppMemberRequest::setBody(const UpdateAppMemberRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.roleNames.size(); dep1++) { + setBodyParameter(std::string("body") + ".roleNames." + std::to_string(dep1 + 1), body.roleNames[dep1]); + } + setBodyParameter(std::string("body") + ".player.id", body.player.id); + setBodyParameter(std::string("body") + ".player.type", body.player.type); +} + diff --git a/devops/src/model/UpdateAppMemberResult.cc b/devops/src/model/UpdateAppMemberResult.cc new file mode 100644 index 000000000..c62492318 --- /dev/null +++ b/devops/src/model/UpdateAppMemberResult.cc @@ -0,0 +1,44 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateAppMemberResult::UpdateAppMemberResult() : + ServiceResult() +{} + +UpdateAppMemberResult::UpdateAppMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAppMemberResult::~UpdateAppMemberResult() +{} + +void UpdateAppMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/devops/src/model/UpdateApplicationRequest.cc b/devops/src/model/UpdateApplicationRequest.cc new file mode 100644 index 000000000..4b16ef441 --- /dev/null +++ b/devops/src/model/UpdateApplicationRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateApplicationRequest; + +UpdateApplicationRequest::UpdateApplicationRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/appstack/apps/[appName]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateApplicationRequest::~UpdateApplicationRequest() {} + +std::string UpdateApplicationRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateApplicationRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateApplicationRequest::getAppName() const { + return appName_; +} + +void UpdateApplicationRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("appName"), appName); +} + +UpdateApplicationRequest::body UpdateApplicationRequest::getBody() const { + return body_; +} + +void UpdateApplicationRequest::setBody(const UpdateApplicationRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".ownerAccountId", body.ownerAccountId); +} + diff --git a/devops/src/model/UpdateApplicationResult.cc b/devops/src/model/UpdateApplicationResult.cc new file mode 100644 index 000000000..fbf93bfdd --- /dev/null +++ b/devops/src/model/UpdateApplicationResult.cc @@ -0,0 +1,79 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateApplicationResult::UpdateApplicationResult() : + ServiceResult() +{} + +UpdateApplicationResult::UpdateApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateApplicationResult::~UpdateApplicationResult() +{} + +void UpdateApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["creatorAccountId"].isNull()) + creatorAccountId_ = value["creatorAccountId"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["name"].isNull()) + name_ = value["name"].asString(); + if(!value["gmtCreate"].isNull()) + gmtCreate_ = value["gmtCreate"].asString(); + if(!value["description"].isNull()) + description_ = value["description"].asString(); + +} + +std::string UpdateApplicationResult::getGmtCreate()const +{ + return gmtCreate_; +} + +std::string UpdateApplicationResult::getDescription()const +{ + return description_; +} + +std::string UpdateApplicationResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateApplicationResult::getCreatorAccountId()const +{ + return creatorAccountId_; +} + +std::string UpdateApplicationResult::getName()const +{ + return name_; +} + diff --git a/devops/src/model/UpdateCheckRunRequest.cc b/devops/src/model/UpdateCheckRunRequest.cc new file mode 100644 index 000000000..c0bc07a44 --- /dev/null +++ b/devops/src/model/UpdateCheckRunRequest.cc @@ -0,0 +1,98 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateCheckRunRequest; + +UpdateCheckRunRequest::UpdateCheckRunRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/check_runs/update_check_run"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateCheckRunRequest::~UpdateCheckRunRequest() {} + +std::string UpdateCheckRunRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateCheckRunRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateCheckRunRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void UpdateCheckRunRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string UpdateCheckRunRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateCheckRunRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long UpdateCheckRunRequest::getCheckRunId() const { + return checkRunId_; +} + +void UpdateCheckRunRequest::setCheckRunId(long checkRunId) { + checkRunId_ = checkRunId; + setParameter(std::string("checkRunId"), std::to_string(checkRunId)); +} + +UpdateCheckRunRequest::body UpdateCheckRunRequest::getBody() const { + return body_; +} + +void UpdateCheckRunRequest::setBody(const UpdateCheckRunRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".conclusion", body.conclusion); + setBodyParameter(std::string("body") + ".output.summary", body.output.summary); + for(int dep1 = 0; dep1 != body.output.images.size(); dep1++) { + setBodyParameter(std::string("body") + ".output.images." + std::to_string(dep1 + 1) + ".imageUrl", body.output.images[dep1].imageUrl); + setBodyParameter(std::string("body") + ".output.images." + std::to_string(dep1 + 1) + ".alt", body.output.images[dep1].alt); + setBodyParameter(std::string("body") + ".output.images." + std::to_string(dep1 + 1) + ".caption", body.output.images[dep1].caption); + } + setBodyParameter(std::string("body") + ".output.text", body.output.text); + setBodyParameter(std::string("body") + ".output.title", body.output.title); + setBodyParameter(std::string("body") + ".completedAt", body.completedAt); + setBodyParameter(std::string("body") + ".detailsUrl", body.detailsUrl); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".startedAt", body.startedAt); + setBodyParameter(std::string("body") + ".externalId", body.externalId); + for(int dep1 = 0; dep1 != body.annotations.size(); dep1++) { + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".path", body.annotations[dep1].path); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".endLine", std::to_string(body.annotations[dep1].endLine)); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".startColumn", std::to_string(body.annotations[dep1].startColumn)); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".annotationLevel", body.annotations[dep1].annotationLevel); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".startLine", std::to_string(body.annotations[dep1].startLine)); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".message", body.annotations[dep1].message); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".title", body.annotations[dep1].title); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".rawDetails", body.annotations[dep1].rawDetails); + setBodyParameter(std::string("body") + ".annotations." + std::to_string(dep1 + 1) + ".endColumn", std::to_string(body.annotations[dep1].endColumn)); + } + setBodyParameter(std::string("body") + ".status", body.status); +} + diff --git a/devops/src/model/UpdateCheckRunResult.cc b/devops/src/model/UpdateCheckRunResult.cc new file mode 100644 index 000000000..9d01bed01 --- /dev/null +++ b/devops/src/model/UpdateCheckRunResult.cc @@ -0,0 +1,159 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateCheckRunResult::UpdateCheckRunResult() : + ServiceResult() +{} + +UpdateCheckRunResult::UpdateCheckRunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateCheckRunResult::~UpdateCheckRunResult() +{} + +void UpdateCheckRunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["updatedAt"].isNull()) + result_.updatedAt = resultNode["updatedAt"].asString(); + if(!resultNode["startedAt"].isNull()) + result_.startedAt = resultNode["startedAt"].asString(); + if(!resultNode["completedAt"].isNull()) + result_.completedAt = resultNode["completedAt"].asString(); + if(!resultNode["externalId"].isNull()) + result_.externalId = resultNode["externalId"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["headSha"].isNull()) + result_.headSha = resultNode["headSha"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["conclusion"].isNull()) + result_.conclusion = resultNode["conclusion"].asString(); + if(!resultNode["detailsUrl"].isNull()) + result_.detailsUrl = resultNode["detailsUrl"].asString(); + auto allannotationsNode = resultNode["annotations"]["check_run_annotations"]; + for (auto resultNodeannotationscheck_run_annotations : allannotationsNode) + { + Result::Check_run_annotations check_run_annotationsObject; + if(!resultNodeannotationscheck_run_annotations["id"].isNull()) + check_run_annotationsObject.id = std::stol(resultNodeannotationscheck_run_annotations["id"].asString()); + if(!resultNodeannotationscheck_run_annotations["path"].isNull()) + check_run_annotationsObject.path = resultNodeannotationscheck_run_annotations["path"].asString(); + if(!resultNodeannotationscheck_run_annotations["startLine"].isNull()) + check_run_annotationsObject.startLine = std::stol(resultNodeannotationscheck_run_annotations["startLine"].asString()); + if(!resultNodeannotationscheck_run_annotations["endLine"].isNull()) + check_run_annotationsObject.endLine = std::stol(resultNodeannotationscheck_run_annotations["endLine"].asString()); + if(!resultNodeannotationscheck_run_annotations["startColumn"].isNull()) + check_run_annotationsObject.startColumn = std::stol(resultNodeannotationscheck_run_annotations["startColumn"].asString()); + if(!resultNodeannotationscheck_run_annotations["endColumn"].isNull()) + check_run_annotationsObject.endColumn = std::stol(resultNodeannotationscheck_run_annotations["endColumn"].asString()); + if(!resultNodeannotationscheck_run_annotations["annotationLevel"].isNull()) + check_run_annotationsObject.annotationLevel = resultNodeannotationscheck_run_annotations["annotationLevel"].asString(); + if(!resultNodeannotationscheck_run_annotations["message"].isNull()) + check_run_annotationsObject.message = resultNodeannotationscheck_run_annotations["message"].asString(); + if(!resultNodeannotationscheck_run_annotations["title"].isNull()) + check_run_annotationsObject.title = resultNodeannotationscheck_run_annotations["title"].asString(); + if(!resultNodeannotationscheck_run_annotations["rawDetails"].isNull()) + check_run_annotationsObject.rawDetails = resultNodeannotationscheck_run_annotations["rawDetails"].asString(); + result_.annotations.push_back(check_run_annotationsObject); + } + auto checkSuiteNode = resultNode["checkSuite"]; + if(!checkSuiteNode["id"].isNull()) + result_.checkSuite.id = std::stol(checkSuiteNode["id"].asString()); + auto writerNode = resultNode["writer"]; + if(!writerNode["id"].isNull()) + result_.writer.id = writerNode["id"].asString(); + if(!writerNode["type"].isNull()) + result_.writer.type = writerNode["type"].asString(); + if(!writerNode["name"].isNull()) + result_.writer.name = writerNode["name"].asString(); + if(!writerNode["slug"].isNull()) + result_.writer.slug = writerNode["slug"].asString(); + if(!writerNode["logoUrl"].isNull()) + result_.writer.logoUrl = writerNode["logoUrl"].asString(); + auto outputNode = resultNode["output"]; + if(!outputNode["title"].isNull()) + result_.output.title = outputNode["title"].asString(); + if(!outputNode["summary"].isNull()) + result_.output.summary = outputNode["summary"].asString(); + if(!outputNode["text"].isNull()) + result_.output.text = outputNode["text"].asString(); + auto allimagesNode = outputNode["images"]["output_images"]; + for (auto outputNodeimagesoutput_images : allimagesNode) + { + Result::Output::Output_images output_imagesObject; + if(!outputNodeimagesoutput_images["alt"].isNull()) + output_imagesObject.alt = outputNodeimagesoutput_images["alt"].asString(); + if(!outputNodeimagesoutput_images["imageUrl"].isNull()) + output_imagesObject.imageUrl = outputNodeimagesoutput_images["imageUrl"].asString(); + if(!outputNodeimagesoutput_images["caption"].isNull()) + output_imagesObject.caption = outputNodeimagesoutput_images["caption"].asString(); + result_.output.images.push_back(output_imagesObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string UpdateCheckRunResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateCheckRunResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateCheckRunResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateCheckRunResult::getSuccess()const +{ + return success_; +} + +UpdateCheckRunResult::Result UpdateCheckRunResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateFileRequest.cc b/devops/src/model/UpdateFileRequest.cc new file mode 100644 index 000000000..12daccf11 --- /dev/null +++ b/devops/src/model/UpdateFileRequest.cc @@ -0,0 +1,69 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateFileRequest; + +UpdateFileRequest::UpdateFileRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/files/update"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateFileRequest::~UpdateFileRequest() {} + +std::string UpdateFileRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateFileRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateFileRequest::getRepositoryId() const { + return repositoryId_; +} + +void UpdateFileRequest::setRepositoryId(const std::string &repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), repositoryId); +} + +std::string UpdateFileRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateFileRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +UpdateFileRequest::body UpdateFileRequest::getBody() const { + return body_; +} + +void UpdateFileRequest::setBody(const UpdateFileRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".oldPath", body.oldPath); + setBodyParameter(std::string("body") + ".encoding", body.encoding); + setBodyParameter(std::string("body") + ".commitMessage", body.commitMessage); + setBodyParameter(std::string("body") + ".newPath", body.newPath); + setBodyParameter(std::string("body") + ".content", body.content); + setBodyParameter(std::string("body") + ".branchName", body.branchName); +} + diff --git a/devops/src/model/UpdateFileResult.cc b/devops/src/model/UpdateFileResult.cc new file mode 100644 index 000000000..f355c54d2 --- /dev/null +++ b/devops/src/model/UpdateFileResult.cc @@ -0,0 +1,82 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateFileResult::UpdateFileResult() : + ServiceResult() +{} + +UpdateFileResult::UpdateFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFileResult::~UpdateFileResult() +{} + +void UpdateFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["branchName"].isNull()) + result_.branchName = resultNode["branchName"].asString(); + if(!resultNode["filePath"].isNull()) + result_.filePath = resultNode["filePath"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateFileResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateFileResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateFileResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateFileResult::getSuccess()const +{ + return success_; +} + +UpdateFileResult::Result UpdateFileResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateFlowTagGroupRequest.cc b/devops/src/model/UpdateFlowTagGroupRequest.cc new file mode 100644 index 000000000..f739a51a9 --- /dev/null +++ b/devops/src/model/UpdateFlowTagGroupRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateFlowTagGroupRequest; + +UpdateFlowTagGroupRequest::UpdateFlowTagGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/flow/tagGroups/[id]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateFlowTagGroupRequest::~UpdateFlowTagGroupRequest() {} + +std::string UpdateFlowTagGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateFlowTagGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateFlowTagGroupRequest::getName() const { + return name_; +} + +void UpdateFlowTagGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); +} + +std::string UpdateFlowTagGroupRequest::getId() const { + return id_; +} + +void UpdateFlowTagGroupRequest::setId(const std::string &id) { + id_ = id; + setParameter(std::string("id"), id); +} + diff --git a/devops/src/model/UpdateFlowTagGroupResult.cc b/devops/src/model/UpdateFlowTagGroupResult.cc new file mode 100644 index 000000000..bebb2db2a --- /dev/null +++ b/devops/src/model/UpdateFlowTagGroupResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateFlowTagGroupResult::UpdateFlowTagGroupResult() : + ServiceResult() +{} + +UpdateFlowTagGroupResult::UpdateFlowTagGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFlowTagGroupResult::~UpdateFlowTagGroupResult() +{} + +void UpdateFlowTagGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string UpdateFlowTagGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateFlowTagGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateFlowTagGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateFlowTagGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateFlowTagRequest.cc b/devops/src/model/UpdateFlowTagRequest.cc new file mode 100644 index 000000000..3c2c170a5 --- /dev/null +++ b/devops/src/model/UpdateFlowTagRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateFlowTagRequest; + +UpdateFlowTagRequest::UpdateFlowTagRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/flow/tags/[id]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateFlowTagRequest::~UpdateFlowTagRequest() {} + +std::string UpdateFlowTagRequest::getColor() const { + return color_; +} + +void UpdateFlowTagRequest::setColor(const std::string &color) { + color_ = color; + setParameter(std::string("color"), color); +} + +long UpdateFlowTagRequest::getFlowTagGroupId() const { + return flowTagGroupId_; +} + +void UpdateFlowTagRequest::setFlowTagGroupId(long flowTagGroupId) { + flowTagGroupId_ = flowTagGroupId; + setParameter(std::string("flowTagGroupId"), std::to_string(flowTagGroupId)); +} + +std::string UpdateFlowTagRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateFlowTagRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateFlowTagRequest::getName() const { + return name_; +} + +void UpdateFlowTagRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); +} + +long UpdateFlowTagRequest::getId() const { + return id_; +} + +void UpdateFlowTagRequest::setId(long id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/devops/src/model/UpdateFlowTagResult.cc b/devops/src/model/UpdateFlowTagResult.cc new file mode 100644 index 000000000..738d0391d --- /dev/null +++ b/devops/src/model/UpdateFlowTagResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateFlowTagResult::UpdateFlowTagResult() : + ServiceResult() +{} + +UpdateFlowTagResult::UpdateFlowTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFlowTagResult::~UpdateFlowTagResult() +{} + +void UpdateFlowTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string UpdateFlowTagResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateFlowTagResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateFlowTagResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateFlowTagResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateGroupMemberRequest.cc b/devops/src/model/UpdateGroupMemberRequest.cc new file mode 100644 index 000000000..4aa5ba28b --- /dev/null +++ b/devops/src/model/UpdateGroupMemberRequest.cc @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateGroupMemberRequest; + +UpdateGroupMemberRequest::UpdateGroupMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/groups/[groupId]/members/update/aliyun_pk"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateGroupMemberRequest::~UpdateGroupMemberRequest() {} + +std::string UpdateGroupMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateGroupMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateGroupMemberRequest::getAliyunPk() const { + return aliyunPk_; +} + +void UpdateGroupMemberRequest::setAliyunPk(const std::string &aliyunPk) { + aliyunPk_ = aliyunPk; + setParameter(std::string("aliyunPk"), aliyunPk); +} + +long UpdateGroupMemberRequest::getGroupId() const { + return groupId_; +} + +void UpdateGroupMemberRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string UpdateGroupMemberRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateGroupMemberRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +UpdateGroupMemberRequest::body UpdateGroupMemberRequest::getBody() const { + return body_; +} + +void UpdateGroupMemberRequest::setBody(const UpdateGroupMemberRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".accessLevel", std::to_string(body.accessLevel)); + setBodyParameter(std::string("body") + ".memberType", body.memberType); +} + diff --git a/devops/src/model/UpdateGroupMemberResult.cc b/devops/src/model/UpdateGroupMemberResult.cc new file mode 100644 index 000000000..e0fa53f8f --- /dev/null +++ b/devops/src/model/UpdateGroupMemberResult.cc @@ -0,0 +1,98 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateGroupMemberResult::UpdateGroupMemberResult() : + ServiceResult() +{} + +UpdateGroupMemberResult::UpdateGroupMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGroupMemberResult::~UpdateGroupMemberResult() +{} + +void UpdateGroupMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["username"].isNull()) + result_.username = resultNode["username"].asString(); + if(!resultNode["state"].isNull()) + result_.state = resultNode["state"].asString(); + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + if(!resultNode["externUid"].isNull()) + result_.externUid = resultNode["externUid"].asString(); + if(!resultNode["email"].isNull()) + result_.email = resultNode["email"].asString(); + if(!resultNode["accessLevel"].isNull()) + result_.accessLevel = std::stoi(resultNode["accessLevel"].asString()); + if(!resultNode["memberType"].isNull()) + result_.memberType = resultNode["memberType"].asString(); + if(!resultNode["sourceId"].isNull()) + result_.sourceId = std::stol(resultNode["sourceId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateGroupMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateGroupMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateGroupMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateGroupMemberResult::getSuccess()const +{ + return success_; +} + +UpdateGroupMemberResult::Result UpdateGroupMemberResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateGroupRequest.cc b/devops/src/model/UpdateGroupRequest.cc new file mode 100644 index 000000000..a6badcf3e --- /dev/null +++ b/devops/src/model/UpdateGroupRequest.cc @@ -0,0 +1,60 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateGroupRequest; + +UpdateGroupRequest::UpdateGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/groups/modify"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateGroupRequest::~UpdateGroupRequest() {} + +std::string UpdateGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateGroupRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateGroupRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +UpdateGroupRequest::body UpdateGroupRequest::getBody() const { + return body_; +} + +void UpdateGroupRequest::setBody(const UpdateGroupRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".path", body.path); + setBodyParameter(std::string("body") + ".avatarUrl", body.avatarUrl); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".visibilityLevel", std::to_string(body.visibilityLevel)); + setBodyParameter(std::string("body") + ".pathWithNamespace", body.pathWithNamespace); +} + diff --git a/devops/src/model/UpdateGroupResult.cc b/devops/src/model/UpdateGroupResult.cc new file mode 100644 index 000000000..596ede577 --- /dev/null +++ b/devops/src/model/UpdateGroupResult.cc @@ -0,0 +1,102 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateGroupResult::UpdateGroupResult() : + ServiceResult() +{} + +UpdateGroupResult::UpdateGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateGroupResult::~UpdateGroupResult() +{} + +void UpdateGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["pathWithNamespace"].isNull()) + result_.pathWithNamespace = resultNode["pathWithNamespace"].asString(); + if(!resultNode["nameWithNamespace"].isNull()) + result_.nameWithNamespace = resultNode["nameWithNamespace"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["path"].isNull()) + result_.path = resultNode["path"].asString(); + if(!resultNode["ownerId"].isNull()) + result_.ownerId = std::stol(resultNode["ownerId"].asString()); + if(!resultNode["parentId"].isNull()) + result_.parentId = std::stol(resultNode["parentId"].asString()); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["type"].isNull()) + result_.type = resultNode["type"].asString(); + if(!resultNode["visibilityLevel"].isNull()) + result_.visibilityLevel = std::stoi(resultNode["visibilityLevel"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateGroupResult::getSuccess()const +{ + return success_; +} + +UpdateGroupResult::Result UpdateGroupResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateHostGroupRequest.cc b/devops/src/model/UpdateHostGroupRequest.cc new file mode 100644 index 000000000..6cd2534ab --- /dev/null +++ b/devops/src/model/UpdateHostGroupRequest.cc @@ -0,0 +1,136 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateHostGroupRequest; + +UpdateHostGroupRequest::UpdateHostGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/hostGroups/[id]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateHostGroupRequest::~UpdateHostGroupRequest() {} + +long UpdateHostGroupRequest::getServiceConnectionId() const { + return serviceConnectionId_; +} + +void UpdateHostGroupRequest::setServiceConnectionId(long serviceConnectionId) { + serviceConnectionId_ = serviceConnectionId; + setBodyParameter(std::string("serviceConnectionId"), std::to_string(serviceConnectionId)); +} + +std::string UpdateHostGroupRequest::getMachineInfos() const { + return machineInfos_; +} + +void UpdateHostGroupRequest::setMachineInfos(const std::string &machineInfos) { + machineInfos_ = machineInfos; + setBodyParameter(std::string("machineInfos"), machineInfos); +} + +std::string UpdateHostGroupRequest::getTagIds() const { + return tagIds_; +} + +void UpdateHostGroupRequest::setTagIds(const std::string &tagIds) { + tagIds_ = tagIds; + setBodyParameter(std::string("tagIds"), tagIds); +} + +std::string UpdateHostGroupRequest::getAliyunRegion() const { + return aliyunRegion_; +} + +void UpdateHostGroupRequest::setAliyunRegion(const std::string &aliyunRegion) { + aliyunRegion_ = aliyunRegion; + setBodyParameter(std::string("aliyunRegion"), aliyunRegion); +} + +std::string UpdateHostGroupRequest::getEnvId() const { + return envId_; +} + +void UpdateHostGroupRequest::setEnvId(const std::string &envId) { + envId_ = envId; + setBodyParameter(std::string("envId"), envId); +} + +std::string UpdateHostGroupRequest::getType() const { + return type_; +} + +void UpdateHostGroupRequest::setType(const std::string &type) { + type_ = type; + setBodyParameter(std::string("type"), type); +} + +std::string UpdateHostGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateHostGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateHostGroupRequest::getEcsLabelKey() const { + return ecsLabelKey_; +} + +void UpdateHostGroupRequest::setEcsLabelKey(const std::string &ecsLabelKey) { + ecsLabelKey_ = ecsLabelKey; + setBodyParameter(std::string("ecsLabelKey"), ecsLabelKey); +} + +std::string UpdateHostGroupRequest::getName() const { + return name_; +} + +void UpdateHostGroupRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("name"), name); +} + +std::string UpdateHostGroupRequest::getEcsLabelValue() const { + return ecsLabelValue_; +} + +void UpdateHostGroupRequest::setEcsLabelValue(const std::string &ecsLabelValue) { + ecsLabelValue_ = ecsLabelValue; + setBodyParameter(std::string("ecsLabelValue"), ecsLabelValue); +} + +long UpdateHostGroupRequest::getId() const { + return id_; +} + +void UpdateHostGroupRequest::setId(long id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + +std::string UpdateHostGroupRequest::getEcsType() const { + return ecsType_; +} + +void UpdateHostGroupRequest::setEcsType(const std::string &ecsType) { + ecsType_ = ecsType; + setBodyParameter(std::string("ecsType"), ecsType); +} + diff --git a/devops/src/model/UpdateHostGroupResult.cc b/devops/src/model/UpdateHostGroupResult.cc new file mode 100644 index 000000000..9de9bd3ca --- /dev/null +++ b/devops/src/model/UpdateHostGroupResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateHostGroupResult::UpdateHostGroupResult() : + ServiceResult() +{} + +UpdateHostGroupResult::UpdateHostGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateHostGroupResult::~UpdateHostGroupResult() +{} + +void UpdateHostGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateHostGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateHostGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateHostGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateHostGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateMergeRequestPersonnelRequest.cc b/devops/src/model/UpdateMergeRequestPersonnelRequest.cc new file mode 100644 index 000000000..5c720af71 --- /dev/null +++ b/devops/src/model/UpdateMergeRequestPersonnelRequest.cc @@ -0,0 +1,84 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateMergeRequestPersonnelRequest; + +UpdateMergeRequestPersonnelRequest::UpdateMergeRequestPersonnelRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/merge_requests/[localId]/person/[personType]"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateMergeRequestPersonnelRequest::~UpdateMergeRequestPersonnelRequest() {} + +std::string UpdateMergeRequestPersonnelRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateMergeRequestPersonnelRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long UpdateMergeRequestPersonnelRequest::getRepositoryId() const { + return repositoryId_; +} + +void UpdateMergeRequestPersonnelRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string UpdateMergeRequestPersonnelRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateMergeRequestPersonnelRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +UpdateMergeRequestPersonnelRequest::body UpdateMergeRequestPersonnelRequest::getBody() const { + return body_; +} + +void UpdateMergeRequestPersonnelRequest::setBody(const UpdateMergeRequestPersonnelRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.newUserIdList.size(); dep1++) { + setBodyParameter(std::string("body") + ".newUserIdList." + std::to_string(dep1 + 1), body.newUserIdList[dep1]); + } +} + +long UpdateMergeRequestPersonnelRequest::getLocalId() const { + return localId_; +} + +void UpdateMergeRequestPersonnelRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + +std::string UpdateMergeRequestPersonnelRequest::getPersonType() const { + return personType_; +} + +void UpdateMergeRequestPersonnelRequest::setPersonType(const std::string &personType) { + personType_ = personType; + setParameter(std::string("personType"), personType); +} + diff --git a/devops/src/model/UpdateMergeRequestPersonnelResult.cc b/devops/src/model/UpdateMergeRequestPersonnelResult.cc new file mode 100644 index 000000000..a2cbd5567 --- /dev/null +++ b/devops/src/model/UpdateMergeRequestPersonnelResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateMergeRequestPersonnelResult::UpdateMergeRequestPersonnelResult() : + ServiceResult() +{} + +UpdateMergeRequestPersonnelResult::UpdateMergeRequestPersonnelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateMergeRequestPersonnelResult::~UpdateMergeRequestPersonnelResult() +{} + +void UpdateMergeRequestPersonnelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateMergeRequestPersonnelResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateMergeRequestPersonnelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateMergeRequestPersonnelResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateMergeRequestPersonnelResult::getSuccess()const +{ + return success_; +} + +UpdateMergeRequestPersonnelResult::Result UpdateMergeRequestPersonnelResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateMergeRequestRequest.cc b/devops/src/model/UpdateMergeRequestRequest.cc new file mode 100644 index 000000000..f448da4d1 --- /dev/null +++ b/devops/src/model/UpdateMergeRequestRequest.cc @@ -0,0 +1,74 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateMergeRequestRequest; + +UpdateMergeRequestRequest::UpdateMergeRequestRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/merge_requests/[localId]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateMergeRequestRequest::~UpdateMergeRequestRequest() {} + +std::string UpdateMergeRequestRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateMergeRequestRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long UpdateMergeRequestRequest::getRepositoryId() const { + return repositoryId_; +} + +void UpdateMergeRequestRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string UpdateMergeRequestRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateMergeRequestRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +UpdateMergeRequestRequest::body UpdateMergeRequestRequest::getBody() const { + return body_; +} + +void UpdateMergeRequestRequest::setBody(const UpdateMergeRequestRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".title", body.title); +} + +long UpdateMergeRequestRequest::getLocalId() const { + return localId_; +} + +void UpdateMergeRequestRequest::setLocalId(long localId) { + localId_ = localId; + setParameter(std::string("localId"), std::to_string(localId)); +} + diff --git a/devops/src/model/UpdateMergeRequestResult.cc b/devops/src/model/UpdateMergeRequestResult.cc new file mode 100644 index 000000000..4f897ec3a --- /dev/null +++ b/devops/src/model/UpdateMergeRequestResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateMergeRequestResult::UpdateMergeRequestResult() : + ServiceResult() +{} + +UpdateMergeRequestResult::UpdateMergeRequestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateMergeRequestResult::~UpdateMergeRequestResult() +{} + +void UpdateMergeRequestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateMergeRequestResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateMergeRequestResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateMergeRequestResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateMergeRequestResult::getSuccess()const +{ + return success_; +} + +UpdateMergeRequestResult::Result UpdateMergeRequestResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdatePipelineBaseInfoRequest.cc b/devops/src/model/UpdatePipelineBaseInfoRequest.cc new file mode 100644 index 000000000..293f11b19 --- /dev/null +++ b/devops/src/model/UpdatePipelineBaseInfoRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdatePipelineBaseInfoRequest; + +UpdatePipelineBaseInfoRequest::UpdatePipelineBaseInfoRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/[pipelineId]/baseInfo"}; + setMethod(HttpRequest::Method::Put); +} + +UpdatePipelineBaseInfoRequest::~UpdatePipelineBaseInfoRequest() {} + +std::string UpdatePipelineBaseInfoRequest::getPipelineName() const { + return pipelineName_; +} + +void UpdatePipelineBaseInfoRequest::setPipelineName(const std::string &pipelineName) { + pipelineName_ = pipelineName; + setParameter(std::string("pipelineName"), pipelineName); +} + +long UpdatePipelineBaseInfoRequest::getEnvId() const { + return envId_; +} + +void UpdatePipelineBaseInfoRequest::setEnvId(long envId) { + envId_ = envId; + setParameter(std::string("envId"), std::to_string(envId)); +} + +std::string UpdatePipelineBaseInfoRequest::getPipelineId() const { + return pipelineId_; +} + +void UpdatePipelineBaseInfoRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), pipelineId); +} + +std::string UpdatePipelineBaseInfoRequest::getTagList() const { + return tagList_; +} + +void UpdatePipelineBaseInfoRequest::setTagList(const std::string &tagList) { + tagList_ = tagList; + setParameter(std::string("tagList"), tagList); +} + +std::string UpdatePipelineBaseInfoRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdatePipelineBaseInfoRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/UpdatePipelineBaseInfoResult.cc b/devops/src/model/UpdatePipelineBaseInfoResult.cc new file mode 100644 index 000000000..c62145e13 --- /dev/null +++ b/devops/src/model/UpdatePipelineBaseInfoResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdatePipelineBaseInfoResult::UpdatePipelineBaseInfoResult() : + ServiceResult() +{} + +UpdatePipelineBaseInfoResult::UpdatePipelineBaseInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePipelineBaseInfoResult::~UpdatePipelineBaseInfoResult() +{} + +void UpdatePipelineBaseInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string UpdatePipelineBaseInfoResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdatePipelineBaseInfoResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdatePipelineBaseInfoResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdatePipelineBaseInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdatePipelineGroupRequest.cc b/devops/src/model/UpdatePipelineGroupRequest.cc new file mode 100644 index 000000000..c4cefc554 --- /dev/null +++ b/devops/src/model/UpdatePipelineGroupRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdatePipelineGroupRequest; + +UpdatePipelineGroupRequest::UpdatePipelineGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelineGroups/[groupId]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdatePipelineGroupRequest::~UpdatePipelineGroupRequest() {} + +long UpdatePipelineGroupRequest::getGroupId() const { + return groupId_; +} + +void UpdatePipelineGroupRequest::setGroupId(long groupId) { + groupId_ = groupId; + setParameter(std::string("groupId"), std::to_string(groupId)); +} + +std::string UpdatePipelineGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdatePipelineGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdatePipelineGroupRequest::getName() const { + return name_; +} + +void UpdatePipelineGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("name"), name); +} + diff --git a/devops/src/model/UpdatePipelineGroupResult.cc b/devops/src/model/UpdatePipelineGroupResult.cc new file mode 100644 index 000000000..1a3f19529 --- /dev/null +++ b/devops/src/model/UpdatePipelineGroupResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdatePipelineGroupResult::UpdatePipelineGroupResult() : + ServiceResult() +{} + +UpdatePipelineGroupResult::UpdatePipelineGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePipelineGroupResult::~UpdatePipelineGroupResult() +{} + +void UpdatePipelineGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + +} + +std::string UpdatePipelineGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdatePipelineGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdatePipelineGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdatePipelineGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdatePipelineRequest.cc b/devops/src/model/UpdatePipelineRequest.cc new file mode 100644 index 000000000..d86bfb48a --- /dev/null +++ b/devops/src/model/UpdatePipelineRequest.cc @@ -0,0 +1,64 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdatePipelineRequest; + +UpdatePipelineRequest::UpdatePipelineRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/pipelines/update"}; + setMethod(HttpRequest::Method::Post); +} + +UpdatePipelineRequest::~UpdatePipelineRequest() {} + +std::string UpdatePipelineRequest::getContent() const { + return content_; +} + +void UpdatePipelineRequest::setContent(const std::string &content) { + content_ = content; + setBodyParameter(std::string("content"), content); +} + +std::string UpdatePipelineRequest::getPipelineId() const { + return pipelineId_; +} + +void UpdatePipelineRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setBodyParameter(std::string("pipelineId"), pipelineId); +} + +std::string UpdatePipelineRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdatePipelineRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdatePipelineRequest::getName() const { + return name_; +} + +void UpdatePipelineRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("name"), name); +} + diff --git a/devops/src/model/UpdatePipelineResult.cc b/devops/src/model/UpdatePipelineResult.cc new file mode 100644 index 000000000..9da45f04f --- /dev/null +++ b/devops/src/model/UpdatePipelineResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdatePipelineResult::UpdatePipelineResult() : + ServiceResult() +{} + +UpdatePipelineResult::UpdatePipelineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePipelineResult::~UpdatePipelineResult() +{} + +void UpdatePipelineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string UpdatePipelineResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdatePipelineResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdatePipelineResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdatePipelineResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateProjectFieldRequest.cc b/devops/src/model/UpdateProjectFieldRequest.cc new file mode 100644 index 000000000..6c17d2c39 --- /dev/null +++ b/devops/src/model/UpdateProjectFieldRequest.cc @@ -0,0 +1,63 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateProjectFieldRequest; + +UpdateProjectFieldRequest::UpdateProjectFieldRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/project/[identifier]"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateProjectFieldRequest::~UpdateProjectFieldRequest() {} + +std::string UpdateProjectFieldRequest::getIdentifier() const { + return identifier_; +} + +void UpdateProjectFieldRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("identifier"), identifier); +} + +UpdateProjectFieldRequest::body UpdateProjectFieldRequest::getBody() const { + return body_; +} + +void UpdateProjectFieldRequest::setBody(const UpdateProjectFieldRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.updateBasicFieldRequestList.size(); dep1++) { + setBodyParameter(std::string("body") + ".updateBasicFieldRequestList." + std::to_string(dep1 + 1) + ".propertyKey", body.updateBasicFieldRequestList[dep1].propertyKey); + setBodyParameter(std::string("body") + ".updateBasicFieldRequestList." + std::to_string(dep1 + 1) + ".propertyValue", body.updateBasicFieldRequestList[dep1].propertyValue); + } + setBodyParameter(std::string("body") + ".statusIdentifier", body.statusIdentifier); + for(int dep1 = 0; dep1 != body.updateForOpenApiList.size(); dep1++) { + setBodyParameter(std::string("body") + ".updateForOpenApiList." + std::to_string(dep1 + 1) + ".fieldIdentifier", body.updateForOpenApiList[dep1].fieldIdentifier); + setBodyParameter(std::string("body") + ".updateForOpenApiList." + std::to_string(dep1 + 1) + ".value", body.updateForOpenApiList[dep1].value); + } +} + +std::string UpdateProjectFieldRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateProjectFieldRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/UpdateProjectFieldResult.cc b/devops/src/model/UpdateProjectFieldResult.cc new file mode 100644 index 000000000..2b2900966 --- /dev/null +++ b/devops/src/model/UpdateProjectFieldResult.cc @@ -0,0 +1,142 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateProjectFieldResult::UpdateProjectFieldResult() : + ServiceResult() +{} + +UpdateProjectFieldResult::UpdateProjectFieldResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectFieldResult::~UpdateProjectFieldResult() +{} + +void UpdateProjectFieldResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto projectNode = value["project"]; + if(!projectNode["category"].isNull()) + project_.category = projectNode["category"].asString(); + if(!projectNode["categoryIdentifier"].isNull()) + project_.categoryIdentifier = projectNode["categoryIdentifier"].asString(); + if(!projectNode["creator"].isNull()) + project_.creator = projectNode["creator"].asString(); + if(!projectNode["customCode"].isNull()) + project_.customCode = projectNode["customCode"].asString(); + if(!projectNode["description"].isNull()) + project_.description = projectNode["description"].asString(); + if(!projectNode["gmtCreate"].isNull()) + project_.gmtCreate = std::stol(projectNode["gmtCreate"].asString()); + if(!projectNode["gmtModified"].isNull()) + project_.gmtModified = std::stol(projectNode["gmtModified"].asString()); + if(!projectNode["iconGroup"].isNull()) + project_.iconGroup = projectNode["iconGroup"].asString(); + if(!projectNode["icon"].isNull()) + project_.icon = projectNode["icon"].asString(); + if(!projectNode["iconBig"].isNull()) + project_.iconBig = projectNode["iconBig"].asString(); + if(!projectNode["iconSmall"].isNull()) + project_.iconSmall = projectNode["iconSmall"].asString(); + if(!projectNode["id"].isNull()) + project_.id = projectNode["id"].asString(); + if(!projectNode["identifier"].isNull()) + project_.identifier = projectNode["identifier"].asString(); + if(!projectNode["identifierPath"].isNull()) + project_.identifierPath = projectNode["identifierPath"].asString(); + if(!projectNode["logicalStatus"].isNull()) + project_.logicalStatus = projectNode["logicalStatus"].asString(); + if(!projectNode["modifier"].isNull()) + project_.modifier = projectNode["modifier"].asString(); + if(!projectNode["name"].isNull()) + project_.name = projectNode["name"].asString(); + if(!projectNode["organizationIdentifier"].isNull()) + project_.organizationIdentifier = projectNode["organizationIdentifier"].asString(); + if(!projectNode["parentIdentifier"].isNull()) + project_.parentIdentifier = projectNode["parentIdentifier"].asString(); + if(!projectNode["scope"].isNull()) + project_.scope = projectNode["scope"].asString(); + if(!projectNode["statusIdentifier"].isNull()) + project_.statusIdentifier = projectNode["statusIdentifier"].asString(); + if(!projectNode["statusStageIdentifier"].isNull()) + project_.statusStageIdentifier = projectNode["statusStageIdentifier"].asString(); + if(!projectNode["subType"].isNull()) + project_.subType = projectNode["subType"].asString(); + if(!projectNode["typeIdentifier"].isNull()) + project_.typeIdentifier = projectNode["typeIdentifier"].asString(); + if(!projectNode["statusName"].isNull()) + project_.statusName = projectNode["statusName"].asString(); + auto allfieldListNode = projectNode["fieldList"]["fieldListItem"]; + for (auto projectNodefieldListfieldListItem : allfieldListNode) + { + Project::FieldListItem fieldListItemObject; + if(!projectNodefieldListfieldListItem["identifier"].isNull()) + fieldListItemObject.identifier = projectNodefieldListfieldListItem["identifier"].asString(); + if(!projectNodefieldListfieldListItem["displayName"].isNull()) + fieldListItemObject.displayName = projectNodefieldListfieldListItem["displayName"].asString(); + if(!projectNodefieldListfieldListItem["valueType"].isNull()) + fieldListItemObject.valueType = projectNodefieldListfieldListItem["valueType"].asString(); + if(!projectNodefieldListfieldListItem["value"].isNull()) + fieldListItemObject.value = projectNodefieldListfieldListItem["value"].asString(); + project_.fieldList.push_back(fieldListItemObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +UpdateProjectFieldResult::Project UpdateProjectFieldResult::getProject()const +{ + return project_; +} + +std::string UpdateProjectFieldResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateProjectFieldResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateProjectFieldResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateProjectFieldResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateProjectLabelRequest.cc b/devops/src/model/UpdateProjectLabelRequest.cc new file mode 100644 index 000000000..15f602115 --- /dev/null +++ b/devops/src/model/UpdateProjectLabelRequest.cc @@ -0,0 +1,75 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateProjectLabelRequest; + +UpdateProjectLabelRequest::UpdateProjectLabelRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/labels/[labelId]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateProjectLabelRequest::~UpdateProjectLabelRequest() {} + +std::string UpdateProjectLabelRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateProjectLabelRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateProjectLabelRequest::getLabelId() const { + return labelId_; +} + +void UpdateProjectLabelRequest::setLabelId(const std::string &labelId) { + labelId_ = labelId; + setParameter(std::string("labelId"), labelId); +} + +std::string UpdateProjectLabelRequest::getRepositoryIdentity() const { + return repositoryIdentity_; +} + +void UpdateProjectLabelRequest::setRepositoryIdentity(const std::string &repositoryIdentity) { + repositoryIdentity_ = repositoryIdentity; + setParameter(std::string("repositoryIdentity"), repositoryIdentity); +} + +std::string UpdateProjectLabelRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateProjectLabelRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +UpdateProjectLabelRequest::body UpdateProjectLabelRequest::getBody() const { + return body_; +} + +void UpdateProjectLabelRequest::setBody(const UpdateProjectLabelRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".color", body.color); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".description", body.description); +} + diff --git a/devops/src/model/UpdateProjectLabelResult.cc b/devops/src/model/UpdateProjectLabelResult.cc new file mode 100644 index 000000000..9123fa1fe --- /dev/null +++ b/devops/src/model/UpdateProjectLabelResult.cc @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateProjectLabelResult::UpdateProjectLabelResult() : + ServiceResult() +{} + +UpdateProjectLabelResult::UpdateProjectLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectLabelResult::~UpdateProjectLabelResult() +{} + +void UpdateProjectLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = resultNode["id"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["color"].isNull()) + result_.color = resultNode["color"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + +} + +std::string UpdateProjectLabelResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateProjectLabelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateProjectLabelResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateProjectLabelResult::getSuccess()const +{ + return success_; +} + +UpdateProjectLabelResult::Result UpdateProjectLabelResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateProjectMemberRequest.cc b/devops/src/model/UpdateProjectMemberRequest.cc new file mode 100644 index 000000000..acd72609f --- /dev/null +++ b/devops/src/model/UpdateProjectMemberRequest.cc @@ -0,0 +1,59 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateProjectMemberRequest; + +UpdateProjectMemberRequest::UpdateProjectMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/projects/[projectId]/updateMember"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateProjectMemberRequest::~UpdateProjectMemberRequest() {} + +UpdateProjectMemberRequest::body UpdateProjectMemberRequest::getBody() const { + return body_; +} + +void UpdateProjectMemberRequest::setBody(const UpdateProjectMemberRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".targetType", body.targetType); + setBodyParameter(std::string("body") + ".roleIdentifier", body.roleIdentifier); + setBodyParameter(std::string("body") + ".userType", body.userType); + setBodyParameter(std::string("body") + ".userIdentifier", body.userIdentifier); + setBodyParameter(std::string("body") + ".targetIdentifier", body.targetIdentifier); +} + +std::string UpdateProjectMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateProjectMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateProjectMemberRequest::getProjectId() const { + return projectId_; +} + +void UpdateProjectMemberRequest::setProjectId(const std::string &projectId) { + projectId_ = projectId; + setParameter(std::string("projectId"), projectId); +} + diff --git a/devops/src/model/UpdateProjectMemberResult.cc b/devops/src/model/UpdateProjectMemberResult.cc new file mode 100644 index 000000000..f1c2ecb00 --- /dev/null +++ b/devops/src/model/UpdateProjectMemberResult.cc @@ -0,0 +1,94 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateProjectMemberResult::UpdateProjectMemberResult() : + ServiceResult() +{} + +UpdateProjectMemberResult::UpdateProjectMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectMemberResult::~UpdateProjectMemberResult() +{} + +void UpdateProjectMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto memberNode = value["member"]; + if(!memberNode["id"].isNull()) + member_.id = memberNode["id"].asString(); + if(!memberNode["roleIdentifier"].isNull()) + member_.roleIdentifier = memberNode["roleIdentifier"].asString(); + if(!memberNode["userIdentifier"].isNull()) + member_.userIdentifier = memberNode["userIdentifier"].asString(); + if(!memberNode["userType"].isNull()) + member_.userType = memberNode["userType"].asString(); + if(!memberNode["targetType"].isNull()) + member_.targetType = memberNode["targetType"].asString(); + if(!memberNode["gmtCreate"].isNull()) + member_.gmtCreate = std::stol(memberNode["gmtCreate"].asString()); + if(!memberNode["gmtModified"].isNull()) + member_.gmtModified = std::stol(memberNode["gmtModified"].asString()); + if(!memberNode["targetIdentifier"].isNull()) + member_.targetIdentifier = memberNode["targetIdentifier"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateProjectMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateProjectMemberResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string UpdateProjectMemberResult::getErrorCode()const +{ + return errorCode_; +} + +UpdateProjectMemberResult::Member UpdateProjectMemberResult::getMember()const +{ + return member_; +} + +bool UpdateProjectMemberResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateProtectedBranchesRequest.cc b/devops/src/model/UpdateProtectedBranchesRequest.cc new file mode 100644 index 000000000..f3a272c51 --- /dev/null +++ b/devops/src/model/UpdateProtectedBranchesRequest.cc @@ -0,0 +1,112 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateProtectedBranchesRequest; + +UpdateProtectedBranchesRequest::UpdateProtectedBranchesRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/[repositoryId]/protect_branches/[id]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateProtectedBranchesRequest::~UpdateProtectedBranchesRequest() {} + +std::string UpdateProtectedBranchesRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateProtectedBranchesRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long UpdateProtectedBranchesRequest::getRepositoryId() const { + return repositoryId_; +} + +void UpdateProtectedBranchesRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string UpdateProtectedBranchesRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateProtectedBranchesRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +long UpdateProtectedBranchesRequest::getId() const { + return id_; +} + +void UpdateProtectedBranchesRequest::setId(long id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + +UpdateProtectedBranchesRequest::body UpdateProtectedBranchesRequest::getBody() const { + return body_; +} + +void UpdateProtectedBranchesRequest::setBody(const UpdateProtectedBranchesRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.allowPushRoles.size(); dep1++) { + setBodyParameter(std::string("body") + ".allowPushRoles." + std::to_string(dep1 + 1), std::to_string(body.allowPushRoles[dep1])); + } + setBodyParameter(std::string("body") + ".testSettingDTO.sensitiveInfoDetection.message", body.testSettingDTO.sensitiveInfoDetection.message); + setBodyParameter(std::string("body") + ".testSettingDTO.sensitiveInfoDetection.enabled", body.testSettingDTO.sensitiveInfoDetection.enabled ? "true" : "false"); + setBodyParameter(std::string("body") + ".testSettingDTO.isRequired", body.testSettingDTO.isRequired ? "true" : "false"); + setBodyParameter(std::string("body") + ".testSettingDTO.checkTaskQualityConfig.bizNo", body.testSettingDTO.checkTaskQualityConfig.bizNo); + setBodyParameter(std::string("body") + ".testSettingDTO.checkTaskQualityConfig.taskName", body.testSettingDTO.checkTaskQualityConfig.taskName); + setBodyParameter(std::string("body") + ".testSettingDTO.checkTaskQualityConfig.message", body.testSettingDTO.checkTaskQualityConfig.message); + setBodyParameter(std::string("body") + ".testSettingDTO.checkTaskQualityConfig.enabled", body.testSettingDTO.checkTaskQualityConfig.enabled ? "true" : "false"); + setBodyParameter(std::string("body") + ".testSettingDTO.codeGuidelinesDetection.message", body.testSettingDTO.codeGuidelinesDetection.message); + setBodyParameter(std::string("body") + ".testSettingDTO.codeGuidelinesDetection.enabled", body.testSettingDTO.codeGuidelinesDetection.enabled ? "true" : "false"); + for(int dep1 = 0; dep1 != body.testSettingDTO.checkConfig.checkItems.size(); dep1++) { + setBodyParameter(std::string("body") + ".testSettingDTO.checkConfig.checkItems." + std::to_string(dep1 + 1) + ".isRequired", body.testSettingDTO.checkConfig.checkItems[dep1].isRequired ? "true" : "false"); + setBodyParameter(std::string("body") + ".testSettingDTO.checkConfig.checkItems." + std::to_string(dep1 + 1) + ".name", body.testSettingDTO.checkConfig.checkItems[dep1].name); + } + for(int dep1 = 0; dep1 != body.allowPushUserIds.size(); dep1++) { + setBodyParameter(std::string("body") + ".allowPushUserIds." + std::to_string(dep1 + 1), body.allowPushUserIds[dep1]); + } + for(int dep1 = 0; dep1 != body.allowMergeUserIds.size(); dep1++) { + setBodyParameter(std::string("body") + ".allowMergeUserIds." + std::to_string(dep1 + 1), body.allowMergeUserIds[dep1]); + } + setBodyParameter(std::string("body") + ".mergeRequestSetting.mrMode", body.mergeRequestSetting.mrMode); + for(int dep1 = 0; dep1 != body.mergeRequestSetting.defaultAssignees.size(); dep1++) { + setBodyParameter(std::string("body") + ".mergeRequestSetting.defaultAssignees." + std::to_string(dep1 + 1), body.mergeRequestSetting.defaultAssignees[dep1]); + } + setBodyParameter(std::string("body") + ".mergeRequestSetting.minimumApproval", std::to_string(body.mergeRequestSetting.minimumApproval)); + setBodyParameter(std::string("body") + ".mergeRequestSetting.isRequired", body.mergeRequestSetting.isRequired ? "true" : "false"); + setBodyParameter(std::string("body") + ".mergeRequestSetting.isRequireDiscussionProcessed", body.mergeRequestSetting.isRequireDiscussionProcessed ? "true" : "false"); + for(int dep1 = 0; dep1 != body.mergeRequestSetting.allowMergeRequestRoles.size(); dep1++) { + setBodyParameter(std::string("body") + ".mergeRequestSetting.allowMergeRequestRoles." + std::to_string(dep1 + 1), std::to_string(body.mergeRequestSetting.allowMergeRequestRoles[dep1])); + } + setBodyParameter(std::string("body") + ".mergeRequestSetting.whiteList", body.mergeRequestSetting.whiteList); + setBodyParameter(std::string("body") + ".mergeRequestSetting.isResetApprovalWhenNewPush", body.mergeRequestSetting.isResetApprovalWhenNewPush ? "true" : "false"); + setBodyParameter(std::string("body") + ".mergeRequestSetting.isAllowSelfApproval", body.mergeRequestSetting.isAllowSelfApproval ? "true" : "false"); + setBodyParameter(std::string("body") + ".id", std::to_string(body.id)); + setBodyParameter(std::string("body") + ".branch", body.branch); + for(int dep1 = 0; dep1 != body.allowMergeRoles.size(); dep1++) { + setBodyParameter(std::string("body") + ".allowMergeRoles." + std::to_string(dep1 + 1), std::to_string(body.allowMergeRoles[dep1])); + } +} + diff --git a/devops/src/model/UpdateProtectedBranchesResult.cc b/devops/src/model/UpdateProtectedBranchesResult.cc new file mode 100644 index 000000000..ff4d74e43 --- /dev/null +++ b/devops/src/model/UpdateProtectedBranchesResult.cc @@ -0,0 +1,148 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateProtectedBranchesResult::UpdateProtectedBranchesResult() : + ServiceResult() +{} + +UpdateProtectedBranchesResult::UpdateProtectedBranchesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProtectedBranchesResult::~UpdateProtectedBranchesResult() +{} + +void UpdateProtectedBranchesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["branch"].isNull()) + result_.branch = resultNode["branch"].asString(); + auto mergeRequestSettingNode = resultNode["mergeRequestSetting"]; + if(!mergeRequestSettingNode["isRequired"].isNull()) + result_.mergeRequestSetting.isRequired = mergeRequestSettingNode["isRequired"].asString() == "true"; + if(!mergeRequestSettingNode["mrMode"].isNull()) + result_.mergeRequestSetting.mrMode = mergeRequestSettingNode["mrMode"].asString(); + if(!mergeRequestSettingNode["isAllowSelfApproval"].isNull()) + result_.mergeRequestSetting.isAllowSelfApproval = mergeRequestSettingNode["isAllowSelfApproval"].asString() == "true"; + if(!mergeRequestSettingNode["isRequireDiscussionProcessed"].isNull()) + result_.mergeRequestSetting.isRequireDiscussionProcessed = mergeRequestSettingNode["isRequireDiscussionProcessed"].asString() == "true"; + if(!mergeRequestSettingNode["isResetApprovalWhenNewPush"].isNull()) + result_.mergeRequestSetting.isResetApprovalWhenNewPush = mergeRequestSettingNode["isResetApprovalWhenNewPush"].asString() == "true"; + if(!mergeRequestSettingNode["minimumApproval"].isNull()) + result_.mergeRequestSetting.minimumApproval = std::stoi(mergeRequestSettingNode["minimumApproval"].asString()); + if(!mergeRequestSettingNode["whiteList"].isNull()) + result_.mergeRequestSetting.whiteList = mergeRequestSettingNode["whiteList"].asString(); + auto allAllowMergeRequestRoles = mergeRequestSettingNode["allowMergeRequestRoles"]["allow_merge_request"]; + for (auto value : allAllowMergeRequestRoles) + result_.mergeRequestSetting.allowMergeRequestRoles.push_back(value.asString()); + auto allDefaultAssignees = mergeRequestSettingNode["defaultAssignees"]["default_assignees"]; + for (auto value : allDefaultAssignees) + result_.mergeRequestSetting.defaultAssignees.push_back(value.asString()); + auto testSettingDTONode = resultNode["testSettingDTO"]; + if(!testSettingDTONode["isRequired"].isNull()) + result_.testSettingDTO.isRequired = testSettingDTONode["isRequired"].asString() == "true"; + auto codeGuidelinesDetectionNode = testSettingDTONode["codeGuidelinesDetection"]; + if(!codeGuidelinesDetectionNode["enabled"].isNull()) + result_.testSettingDTO.codeGuidelinesDetection.enabled = codeGuidelinesDetectionNode["enabled"].asString() == "true"; + if(!codeGuidelinesDetectionNode["message"].isNull()) + result_.testSettingDTO.codeGuidelinesDetection.message = codeGuidelinesDetectionNode["message"].asString(); + auto sensitiveInfoDetectionNode = testSettingDTONode["sensitiveInfoDetection"]; + if(!sensitiveInfoDetectionNode["enabled"].isNull()) + result_.testSettingDTO.sensitiveInfoDetection.enabled = sensitiveInfoDetectionNode["enabled"].asString() == "true"; + if(!sensitiveInfoDetectionNode["message"].isNull()) + result_.testSettingDTO.sensitiveInfoDetection.message = sensitiveInfoDetectionNode["message"].asString(); + auto checkTaskQualityConfigNode = testSettingDTONode["checkTaskQualityConfig"]; + if(!checkTaskQualityConfigNode["enabled"].isNull()) + result_.testSettingDTO.checkTaskQualityConfig.enabled = checkTaskQualityConfigNode["enabled"].asString() == "true"; + if(!checkTaskQualityConfigNode["bizNo"].isNull()) + result_.testSettingDTO.checkTaskQualityConfig.bizNo = checkTaskQualityConfigNode["bizNo"].asString(); + if(!checkTaskQualityConfigNode["taskName"].isNull()) + result_.testSettingDTO.checkTaskQualityConfig.taskName = checkTaskQualityConfigNode["taskName"].asString(); + if(!checkTaskQualityConfigNode["message"].isNull()) + result_.testSettingDTO.checkTaskQualityConfig.message = checkTaskQualityConfigNode["message"].asString(); + auto checkConfigNode = testSettingDTONode["checkConfig"]; + auto allcheckItemsNode = checkConfigNode["checkItems"]["check_items"]; + for (auto checkConfigNodecheckItemscheck_items : allcheckItemsNode) + { + Result::TestSettingDTO::CheckConfig::Check_items check_itemsObject; + if(!checkConfigNodecheckItemscheck_items["name"].isNull()) + check_itemsObject.name = checkConfigNodecheckItemscheck_items["name"].asString(); + if(!checkConfigNodecheckItemscheck_items["isRequired"].isNull()) + check_itemsObject.isRequired = checkConfigNodecheckItemscheck_items["isRequired"].asString() == "true"; + result_.testSettingDTO.checkConfig.checkItems.push_back(check_itemsObject); + } + auto allAllowPushRoles = resultNode["allowPushRoles"]["allow_push"]; + for (auto value : allAllowPushRoles) + result_.allowPushRoles.push_back(value.asString()); + auto allAllowPushUserIds = resultNode["allowPushUserIds"]["allow_push_user_ids"]; + for (auto value : allAllowPushUserIds) + result_.allowPushUserIds.push_back(value.asString()); + auto allAllowMergeRoles = resultNode["allowMergeRoles"]["allow_merge"]; + for (auto value : allAllowMergeRoles) + result_.allowMergeRoles.push_back(value.asString()); + auto allAllowMergeUserIds = resultNode["allowMergeUserIds"]["allow_merge_user_ids"]; + for (auto value : allAllowMergeUserIds) + result_.allowMergeUserIds.push_back(value.asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateProtectedBranchesResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateProtectedBranchesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateProtectedBranchesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateProtectedBranchesResult::getSuccess()const +{ + return success_; +} + +UpdateProtectedBranchesResult::Result UpdateProtectedBranchesResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdatePushReviewOnOffRequest.cc b/devops/src/model/UpdatePushReviewOnOffRequest.cc new file mode 100644 index 000000000..3c50c96c5 --- /dev/null +++ b/devops/src/model/UpdatePushReviewOnOffRequest.cc @@ -0,0 +1,55 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdatePushReviewOnOffRequest; + +UpdatePushReviewOnOffRequest::UpdatePushReviewOnOffRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/settings/trunk_mode"}; + setMethod(HttpRequest::Method::Post); +} + +UpdatePushReviewOnOffRequest::~UpdatePushReviewOnOffRequest() {} + +std::string UpdatePushReviewOnOffRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdatePushReviewOnOffRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long UpdatePushReviewOnOffRequest::getRepositoryId() const { + return repositoryId_; +} + +void UpdatePushReviewOnOffRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +bool UpdatePushReviewOnOffRequest::getTrunkMode() const { + return trunkMode_; +} + +void UpdatePushReviewOnOffRequest::setTrunkMode(bool trunkMode) { + trunkMode_ = trunkMode; + setParameter(std::string("trunkMode"), trunkMode ? "true" : "false"); +} + diff --git a/devops/src/model/UpdatePushReviewOnOffResult.cc b/devops/src/model/UpdatePushReviewOnOffResult.cc new file mode 100644 index 000000000..a608a5952 --- /dev/null +++ b/devops/src/model/UpdatePushReviewOnOffResult.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdatePushReviewOnOffResult::UpdatePushReviewOnOffResult() : + ServiceResult() +{} + +UpdatePushReviewOnOffResult::UpdatePushReviewOnOffResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePushReviewOnOffResult::~UpdatePushReviewOnOffResult() +{} + +void UpdatePushReviewOnOffResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["result"].isNull()) + result_.result = resultNode["result"].asString() == "true"; + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdatePushReviewOnOffResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdatePushReviewOnOffResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdatePushReviewOnOffResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdatePushReviewOnOffResult::getSuccess()const +{ + return success_; +} + +UpdatePushReviewOnOffResult::Result UpdatePushReviewOnOffResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdatePushRuleRequest.cc b/devops/src/model/UpdatePushRuleRequest.cc new file mode 100644 index 000000000..ada64eec0 --- /dev/null +++ b/devops/src/model/UpdatePushRuleRequest.cc @@ -0,0 +1,80 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdatePushRuleRequest; + +UpdatePushRuleRequest::UpdatePushRuleRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/api/v4/projects/[repositoryId]/push_rule/[pushRuleId]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdatePushRuleRequest::~UpdatePushRuleRequest() {} + +std::string UpdatePushRuleRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdatePushRuleRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long UpdatePushRuleRequest::getPushRuleId() const { + return pushRuleId_; +} + +void UpdatePushRuleRequest::setPushRuleId(long pushRuleId) { + pushRuleId_ = pushRuleId; + setParameter(std::string("pushRuleId"), std::to_string(pushRuleId)); +} + +long UpdatePushRuleRequest::getRepositoryId() const { + return repositoryId_; +} + +void UpdatePushRuleRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string UpdatePushRuleRequest::getAccessToken() const { + return accessToken_; +} + +void UpdatePushRuleRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +UpdatePushRuleRequest::body UpdatePushRuleRequest::getBody() const { + return body_; +} + +void UpdatePushRuleRequest::setBody(const UpdatePushRuleRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.ruleInfos.size(); dep1++) { + setBodyParameter(std::string("body") + ".ruleInfos." + std::to_string(dep1 + 1) + ".extraMessage", body.ruleInfos[dep1].extraMessage); + setBodyParameter(std::string("body") + ".ruleInfos." + std::to_string(dep1 + 1) + ".checkerType", body.ruleInfos[dep1].checkerType); + for(int dep2 = 0; dep2 != body.ruleInfos[dep1].fileRuleRegexes.size(); dep2++) { + setBodyParameter(std::string("body") + ".ruleInfos." + std::to_string(dep1 + 1) + ".fileRuleRegexes." + std::to_string(dep2 + 1), body.ruleInfos[dep1].fileRuleRegexes[dep2]); + } + setBodyParameter(std::string("body") + ".ruleInfos." + std::to_string(dep1 + 1) + ".checkerName", body.ruleInfos[dep1].checkerName); + } +} + diff --git a/devops/src/model/UpdatePushRuleResult.cc b/devops/src/model/UpdatePushRuleResult.cc new file mode 100644 index 000000000..4703d66c6 --- /dev/null +++ b/devops/src/model/UpdatePushRuleResult.cc @@ -0,0 +1,99 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdatePushRuleResult::UpdatePushRuleResult() : + ServiceResult() +{} + +UpdatePushRuleResult::UpdatePushRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdatePushRuleResult::~UpdatePushRuleResult() +{} + +void UpdatePushRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["gmtCreate"].isNull()) + result_.gmtCreate = resultNode["gmtCreate"].asString(); + if(!resultNode["gmtModified"].isNull()) + result_.gmtModified = resultNode["gmtModified"].asString(); + auto allruleInfosNode = resultNode["ruleInfos"]["rule_infos"]; + for (auto resultNoderuleInfosrule_infos : allruleInfosNode) + { + Result::Rule_infos rule_infosObject; + if(!resultNoderuleInfosrule_infos["checkerName"].isNull()) + rule_infosObject.checkerName = resultNoderuleInfosrule_infos["checkerName"].asString(); + if(!resultNoderuleInfosrule_infos["checkerType"].isNull()) + rule_infosObject.checkerType = resultNoderuleInfosrule_infos["checkerType"].asString(); + if(!resultNoderuleInfosrule_infos["extraMessage"].isNull()) + rule_infosObject.extraMessage = resultNoderuleInfosrule_infos["extraMessage"].asString(); + auto allFileRuleRegexes = value["fileRuleRegexes"]["file_rule_regexes"]; + for (auto value : allFileRuleRegexes) + rule_infosObject.fileRuleRegexes.push_back(value.asString()); + result_.ruleInfos.push_back(rule_infosObject); + } + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdatePushRuleResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdatePushRuleResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdatePushRuleResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdatePushRuleResult::getSuccess()const +{ + return success_; +} + +UpdatePushRuleResult::Result UpdatePushRuleResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateRepositoryMemberRequest.cc b/devops/src/model/UpdateRepositoryMemberRequest.cc new file mode 100644 index 000000000..242be3865 --- /dev/null +++ b/devops/src/model/UpdateRepositoryMemberRequest.cc @@ -0,0 +1,81 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateRepositoryMemberRequest; + +UpdateRepositoryMemberRequest::UpdateRepositoryMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]/members/[aliyunPk]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateRepositoryMemberRequest::~UpdateRepositoryMemberRequest() {} + +std::string UpdateRepositoryMemberRequest::getAliyunPk() const { + return aliyunPk_; +} + +void UpdateRepositoryMemberRequest::setAliyunPk(const std::string &aliyunPk) { + aliyunPk_ = aliyunPk; + setParameter(std::string("aliyunPk"), aliyunPk); +} + +std::string UpdateRepositoryMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateRepositoryMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long UpdateRepositoryMemberRequest::getRepositoryId() const { + return repositoryId_; +} + +void UpdateRepositoryMemberRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string UpdateRepositoryMemberRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateRepositoryMemberRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +UpdateRepositoryMemberRequest::body UpdateRepositoryMemberRequest::getBody() const { + return body_; +} + +void UpdateRepositoryMemberRequest::setBody(const UpdateRepositoryMemberRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".accessLevel", std::to_string(body.accessLevel)); + for(int dep1 = 0; dep1 != body.relatedInfos.size(); dep1++) { + setBodyParameter(std::string("body") + ".relatedInfos." + std::to_string(dep1 + 1) + ".sourceId", std::to_string(body.relatedInfos[dep1].sourceId)); + setBodyParameter(std::string("body") + ".relatedInfos." + std::to_string(dep1 + 1) + ".sourceType", body.relatedInfos[dep1].sourceType); + setBodyParameter(std::string("body") + ".relatedInfos." + std::to_string(dep1 + 1) + ".relatedId", body.relatedInfos[dep1].relatedId); + } + setBodyParameter(std::string("body") + ".memberType", body.memberType); + setBodyParameter(std::string("body") + ".expireAt", body.expireAt); + setBodyParameter(std::string("body") + ".relatedId", body.relatedId); +} + diff --git a/devops/src/model/UpdateRepositoryMemberResult.cc b/devops/src/model/UpdateRepositoryMemberResult.cc new file mode 100644 index 000000000..2b699d51f --- /dev/null +++ b/devops/src/model/UpdateRepositoryMemberResult.cc @@ -0,0 +1,108 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateRepositoryMemberResult::UpdateRepositoryMemberResult() : + ServiceResult() +{} + +UpdateRepositoryMemberResult::UpdateRepositoryMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRepositoryMemberResult::~UpdateRepositoryMemberResult() +{} + +void UpdateRepositoryMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["state"].isNull()) + result_.state = resultNode["state"].asString(); + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + if(!resultNode["externUid"].isNull()) + result_.externUid = resultNode["externUid"].asString(); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["email"].isNull()) + result_.email = resultNode["email"].asString(); + if(!resultNode["memberName"].isNull()) + result_.memberName = resultNode["memberName"].asString(); + if(!resultNode["accessLevel"].isNull()) + result_.accessLevel = std::stoi(resultNode["accessLevel"].asString()); + if(!resultNode["expireAt"].isNull()) + result_.expireAt = resultNode["expireAt"].asString(); + if(!resultNode["tbUserId"].isNull()) + result_.tbUserId = resultNode["tbUserId"].asString(); + if(!resultNode["memberType"].isNull()) + result_.memberType = resultNode["memberType"].asString(); + if(!resultNode["sourceId"].isNull()) + result_.sourceId = std::stol(resultNode["sourceId"].asString()); + if(!resultNode["sourceType"].isNull()) + result_.sourceType = resultNode["sourceType"].asString(); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["username"].isNull()) + result_.username = resultNode["username"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateRepositoryMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateRepositoryMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateRepositoryMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateRepositoryMemberResult::getSuccess()const +{ + return success_; +} + +UpdateRepositoryMemberResult::Result UpdateRepositoryMemberResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateRepositoryRequest.cc b/devops/src/model/UpdateRepositoryRequest.cc new file mode 100644 index 000000000..3d191b80f --- /dev/null +++ b/devops/src/model/UpdateRepositoryRequest.cc @@ -0,0 +1,86 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateRepositoryRequest; + +UpdateRepositoryRequest::UpdateRepositoryRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/repository/[repositoryId]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateRepositoryRequest::~UpdateRepositoryRequest() {} + +std::string UpdateRepositoryRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateRepositoryRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +long UpdateRepositoryRequest::getRepositoryId() const { + return repositoryId_; +} + +void UpdateRepositoryRequest::setRepositoryId(long repositoryId) { + repositoryId_ = repositoryId; + setParameter(std::string("repositoryId"), std::to_string(repositoryId)); +} + +std::string UpdateRepositoryRequest::getAccessToken() const { + return accessToken_; +} + +void UpdateRepositoryRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("accessToken"), accessToken); +} + +UpdateRepositoryRequest::body UpdateRepositoryRequest::getBody() const { + return body_; +} + +void UpdateRepositoryRequest::setBody(const UpdateRepositoryRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".wikiEnabled", body.wikiEnabled ? "true" : "false"); + for(int dep1 = 0; dep1 != body.projectCloneDownloadRoleList.size(); dep1++) { + setBodyParameter(std::string("body") + ".projectCloneDownloadRoleList." + std::to_string(dep1 + 1) + ".roleCode", std::to_string(body.projectCloneDownloadRoleList[dep1].roleCode)); + setBodyParameter(std::string("body") + ".projectCloneDownloadRoleList." + std::to_string(dep1 + 1) + ".allowed", body.projectCloneDownloadRoleList[dep1].allowed ? "true" : "false"); + } + setBodyParameter(std::string("body") + ".adminSettingLanguage", body.adminSettingLanguage); + setBodyParameter(std::string("body") + ".buildsEnabled", body.buildsEnabled ? "true" : "false"); + setBodyParameter(std::string("body") + ".description", body.description); + setBodyParameter(std::string("body") + ".issuesEnabled", body.issuesEnabled ? "true" : "false"); + setBodyParameter(std::string("body") + ".avatar", body.avatar); + setBodyParameter(std::string("body") + ".openCloneDownloadControl", body.openCloneDownloadControl ? "true" : "false"); + setBodyParameter(std::string("body") + ".mergeRequestsEnabled", body.mergeRequestsEnabled ? "true" : "false"); + setBodyParameter(std::string("body") + ".path", body.path); + setBodyParameter(std::string("body") + ".name", body.name); + setBodyParameter(std::string("body") + ".checkEmail", body.checkEmail ? "true" : "false"); + for(int dep1 = 0; dep1 != body.projectCloneDownloadMethodList.size(); dep1++) { + setBodyParameter(std::string("body") + ".projectCloneDownloadMethodList." + std::to_string(dep1 + 1) + ".permissionCode", body.projectCloneDownloadMethodList[dep1].permissionCode); + setBodyParameter(std::string("body") + ".projectCloneDownloadMethodList." + std::to_string(dep1 + 1) + ".allowed", body.projectCloneDownloadMethodList[dep1].allowed ? "true" : "false"); + } + setBodyParameter(std::string("body") + ".visibilityLevel", std::to_string(body.visibilityLevel)); + setBodyParameter(std::string("body") + ".id", std::to_string(body.id)); + setBodyParameter(std::string("body") + ".defaultBranch", body.defaultBranch); + setBodyParameter(std::string("body") + ".snippetsEnabled", body.snippetsEnabled ? "true" : "false"); +} + diff --git a/devops/src/model/UpdateRepositoryResult.cc b/devops/src/model/UpdateRepositoryResult.cc new file mode 100644 index 000000000..1d0b3243a --- /dev/null +++ b/devops/src/model/UpdateRepositoryResult.cc @@ -0,0 +1,139 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateRepositoryResult::UpdateRepositoryResult() : + ServiceResult() +{} + +UpdateRepositoryResult::UpdateRepositoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateRepositoryResult::~UpdateRepositoryResult() +{} + +void UpdateRepositoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["result"]; + if(!resultNode["id"].isNull()) + result_.id = std::stol(resultNode["id"].asString()); + if(!resultNode["name"].isNull()) + result_.name = resultNode["name"].asString(); + if(!resultNode["nameWithNamespace"].isNull()) + result_.nameWithNamespace = resultNode["nameWithNamespace"].asString(); + if(!resultNode["path"].isNull()) + result_.path = resultNode["path"].asString(); + if(!resultNode["pathWithNamespace"].isNull()) + result_.pathWithNamespace = resultNode["pathWithNamespace"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["defaultBranch"].isNull()) + result_.defaultBranch = resultNode["defaultBranch"].asString(); + if(!resultNode["visibilityLevel"].isNull()) + result_.visibilityLevel = std::stoi(resultNode["visibilityLevel"].asString()); + if(!resultNode["sshUrlToRepo"].isNull()) + result_.sshUrlToRepo = resultNode["sshUrlToRepo"].asString(); + if(!resultNode["httpUrlToRepo"].isNull()) + result_.httpUrlToRepo = resultNode["httpUrlToRepo"].asString(); + if(!resultNode["webUrl"].isNull()) + result_.webUrl = resultNode["webUrl"].asString(); + if(!resultNode["issuesEnabled"].isNull()) + result_.issuesEnabled = resultNode["issuesEnabled"].asString() == "true"; + if(!resultNode["mergeRequestsEnabled"].isNull()) + result_.mergeRequestsEnabled = resultNode["mergeRequestsEnabled"].asString() == "true"; + if(!resultNode["buildsEnabled"].isNull()) + result_.buildsEnabled = resultNode["buildsEnabled"].asString() == "true"; + if(!resultNode["wikiEnabled"].isNull()) + result_.wikiEnabled = resultNode["wikiEnabled"].asString() == "true"; + if(!resultNode["snippetsEnabled"].isNull()) + result_.snippetsEnabled = resultNode["snippetsEnabled"].asString() == "true"; + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["lastActivityAt"].isNull()) + result_.lastActivityAt = resultNode["lastActivityAt"].asString(); + if(!resultNode["creatorId"].isNull()) + result_.creatorId = std::stol(resultNode["creatorId"].asString()); + if(!resultNode["archived"].isNull()) + result_.archived = resultNode["archived"].asString() == "true"; + if(!resultNode["avatarUrl"].isNull()) + result_.avatarUrl = resultNode["avatarUrl"].asString(); + auto _namespaceNode = resultNode["namespace"]; + if(!_namespaceNode["id"].isNull()) + result_._namespace.id = std::stol(_namespaceNode["id"].asString()); + if(!_namespaceNode["name"].isNull()) + result_._namespace.name = _namespaceNode["name"].asString(); + if(!_namespaceNode["path"].isNull()) + result_._namespace.path = _namespaceNode["path"].asString(); + if(!_namespaceNode["ownerId"].isNull()) + result_._namespace.ownerId = std::stol(_namespaceNode["ownerId"].asString()); + if(!_namespaceNode["createdAt"].isNull()) + result_._namespace.createdAt = _namespaceNode["createdAt"].asString(); + if(!_namespaceNode["updatedAt"].isNull()) + result_._namespace.updatedAt = _namespaceNode["updatedAt"].asString(); + if(!_namespaceNode["description"].isNull()) + result_._namespace.description = _namespaceNode["description"].asString(); + if(!_namespaceNode["avatar"].isNull()) + result_._namespace.avatar = _namespaceNode["avatar"].asString(); + if(!_namespaceNode["visibilityLevel"].isNull()) + result_._namespace.visibilityLevel = std::stoi(_namespaceNode["visibilityLevel"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateRepositoryResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateRepositoryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateRepositoryResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateRepositoryResult::getSuccess()const +{ + return success_; +} + +UpdateRepositoryResult::Result UpdateRepositoryResult::getResult()const +{ + return result_; +} + diff --git a/devops/src/model/UpdateResourceMemberRequest.cc b/devops/src/model/UpdateResourceMemberRequest.cc new file mode 100644 index 000000000..aa0bfb2c4 --- /dev/null +++ b/devops/src/model/UpdateResourceMemberRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateResourceMemberRequest; + +UpdateResourceMemberRequest::UpdateResourceMemberRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/[resourceType]/[resourceId]/members/[accountId]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateResourceMemberRequest::~UpdateResourceMemberRequest() {} + +long UpdateResourceMemberRequest::getResourceId() const { + return resourceId_; +} + +void UpdateResourceMemberRequest::setResourceId(long resourceId) { + resourceId_ = resourceId; + setParameter(std::string("resourceId"), std::to_string(resourceId)); +} + +std::string UpdateResourceMemberRequest::getRoleName() const { + return roleName_; +} + +void UpdateResourceMemberRequest::setRoleName(const std::string &roleName) { + roleName_ = roleName; + setBodyParameter(std::string("roleName"), roleName); +} + +std::string UpdateResourceMemberRequest::getResourceType() const { + return resourceType_; +} + +void UpdateResourceMemberRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("resourceType"), resourceType); +} + +std::string UpdateResourceMemberRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateResourceMemberRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateResourceMemberRequest::getAccountId() const { + return accountId_; +} + +void UpdateResourceMemberRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setParameter(std::string("accountId"), accountId); +} + diff --git a/devops/src/model/UpdateResourceMemberResult.cc b/devops/src/model/UpdateResourceMemberResult.cc new file mode 100644 index 000000000..eb4f4528b --- /dev/null +++ b/devops/src/model/UpdateResourceMemberResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateResourceMemberResult::UpdateResourceMemberResult() : + ServiceResult() +{} + +UpdateResourceMemberResult::UpdateResourceMemberResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateResourceMemberResult::~UpdateResourceMemberResult() +{} + +void UpdateResourceMemberResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateResourceMemberResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateResourceMemberResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateResourceMemberResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateResourceMemberResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateTestCaseRequest.cc b/devops/src/model/UpdateTestCaseRequest.cc new file mode 100644 index 000000000..2124f897b --- /dev/null +++ b/devops/src/model/UpdateTestCaseRequest.cc @@ -0,0 +1,58 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateTestCaseRequest; + +UpdateTestCaseRequest::UpdateTestCaseRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/testhub/testcase/[testcaseIdentifier]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateTestCaseRequest::~UpdateTestCaseRequest() {} + +std::string UpdateTestCaseRequest::getTestcaseIdentifier() const { + return testcaseIdentifier_; +} + +void UpdateTestCaseRequest::setTestcaseIdentifier(const std::string &testcaseIdentifier) { + testcaseIdentifier_ = testcaseIdentifier; + setParameter(std::string("testcaseIdentifier"), testcaseIdentifier); +} + +UpdateTestCaseRequest::body UpdateTestCaseRequest::getBody() const { + return body_; +} + +void UpdateTestCaseRequest::setBody(const UpdateTestCaseRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.updateWorkitemPropertyRequest.size(); dep1++) { + setBodyParameter(std::string("body") + ".updateWorkitemPropertyRequest." + std::to_string(dep1 + 1) + ".fieldIdentifier", body.updateWorkitemPropertyRequest[dep1].fieldIdentifier); + setBodyParameter(std::string("body") + ".updateWorkitemPropertyRequest." + std::to_string(dep1 + 1) + ".fieldValue", body.updateWorkitemPropertyRequest[dep1].fieldValue); + } +} + +std::string UpdateTestCaseRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateTestCaseRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/UpdateTestCaseResult.cc b/devops/src/model/UpdateTestCaseResult.cc new file mode 100644 index 000000000..15a7dace7 --- /dev/null +++ b/devops/src/model/UpdateTestCaseResult.cc @@ -0,0 +1,139 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateTestCaseResult::UpdateTestCaseResult() : + ServiceResult() +{} + +UpdateTestCaseResult::UpdateTestCaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTestCaseResult::~UpdateTestCaseResult() +{} + +void UpdateTestCaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto testcaseNode = value["Testcase"]; + if(!testcaseNode["identifier"].isNull()) + testcase_.identifier = testcaseNode["identifier"].asString(); + if(!testcaseNode["subject"].isNull()) + testcase_.subject = testcaseNode["subject"].asString(); + if(!testcaseNode["spaceIdentifier"].isNull()) + testcase_.spaceIdentifier = testcaseNode["spaceIdentifier"].asString(); + if(!testcaseNode["spaceType"].isNull()) + testcase_.spaceType = testcaseNode["spaceType"].asString(); + if(!testcaseNode["categoryIdentifier"].isNull()) + testcase_.categoryIdentifier = testcaseNode["categoryIdentifier"].asString(); + auto assignedToNode = testcaseNode["assignedTo"]; + if(!assignedToNode["assignIdentifier"].isNull()) + testcase_.assignedTo.assignIdentifier = assignedToNode["assignIdentifier"].asString(); + if(!assignedToNode["name"].isNull()) + testcase_.assignedTo.name = assignedToNode["name"].asString(); + if(!assignedToNode["tbRoleId"].isNull()) + testcase_.assignedTo.tbRoleId = assignedToNode["tbRoleId"].asString(); + auto creatorNode = testcaseNode["creator"]; + if(!creatorNode["createIdentifier"].isNull()) + testcase_.creator.createIdentifier = creatorNode["createIdentifier"].asString(); + if(!creatorNode["name"].isNull()) + testcase_.creator.name = creatorNode["name"].asString(); + auto modifierNode = testcaseNode["modifier"]; + if(!modifierNode["modifyIdentifier"].isNull()) + testcase_.modifier.modifyIdentifier = modifierNode["modifyIdentifier"].asString(); + if(!modifierNode["name"].isNull()) + testcase_.modifier.name = modifierNode["name"].asString(); + auto directoryNode = testcaseNode["directory"]; + if(!directoryNode["directoryIdentifier"].isNull()) + testcase_.directory.directoryIdentifier = directoryNode["directoryIdentifier"].asString(); + if(!directoryNode["name"].isNull()) + testcase_.directory.name = directoryNode["name"].asString(); + if(!directoryNode["childIdentifier"].isNull()) + testcase_.directory.childIdentifier = directoryNode["childIdentifier"].asString(); + auto allPathName = directoryNode["pathName"]["idPathDisplayNames"]; + for (auto value : allPathName) + testcase_.directory.pathName.push_back(value.asString()); + auto detailInfoNode = testcaseNode["detailInfo"]; + if(!detailInfoNode["stepType"].isNull()) + testcase_.detailInfo.stepType = detailInfoNode["stepType"].asString(); + auto preconditionNode = detailInfoNode["precondition"]; + if(!preconditionNode["preIdentifier"].isNull()) + testcase_.detailInfo.precondition.preIdentifier = preconditionNode["preIdentifier"].asString(); + if(!preconditionNode["preContent"].isNull()) + testcase_.detailInfo.precondition.preContent = preconditionNode["preContent"].asString(); + if(!preconditionNode["preContentType"].isNull()) + testcase_.detailInfo.precondition.preContentType = preconditionNode["preContentType"].asString(); + auto stepContentNode = detailInfoNode["stepContent"]; + if(!stepContentNode["stepIdentifier"].isNull()) + testcase_.detailInfo.stepContent.stepIdentifier = stepContentNode["stepIdentifier"].asString(); + if(!stepContentNode["stepContent"].isNull()) + testcase_.detailInfo.stepContent.stepContent = stepContentNode["stepContent"].asString(); + if(!stepContentNode["stepContentType"].isNull()) + testcase_.detailInfo.stepContent.stepContentType = stepContentNode["stepContentType"].asString(); + auto expectedResultNode = detailInfoNode["expectedResult"]; + if(!expectedResultNode["expectIdentifier"].isNull()) + testcase_.detailInfo.expectedResult.expectIdentifier = expectedResultNode["expectIdentifier"].asString(); + if(!expectedResultNode["expectContent"].isNull()) + testcase_.detailInfo.expectedResult.expectContent = expectedResultNode["expectContent"].asString(); + if(!expectedResultNode["expectContentType"].isNull()) + testcase_.detailInfo.expectedResult.expectContentType = expectedResultNode["expectContentType"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +UpdateTestCaseResult::Testcase UpdateTestCaseResult::getTestcase()const +{ + return testcase_; +} + +std::string UpdateTestCaseResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateTestCaseResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string UpdateTestCaseResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateTestCaseResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateTestResultRequest.cc b/devops/src/model/UpdateTestResultRequest.cc new file mode 100644 index 000000000..3f18486be --- /dev/null +++ b/devops/src/model/UpdateTestResultRequest.cc @@ -0,0 +1,65 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateTestResultRequest; + +UpdateTestResultRequest::UpdateTestResultRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/testhub/testplan/[testPlanIdentifier]/testresult/[testcaseIdentifier]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateTestResultRequest::~UpdateTestResultRequest() {} + +std::string UpdateTestResultRequest::getTestcaseIdentifier() const { + return testcaseIdentifier_; +} + +void UpdateTestResultRequest::setTestcaseIdentifier(const std::string &testcaseIdentifier) { + testcaseIdentifier_ = testcaseIdentifier; + setParameter(std::string("testcaseIdentifier"), testcaseIdentifier); +} + +UpdateTestResultRequest::body UpdateTestResultRequest::getBody() const { + return body_; +} + +void UpdateTestResultRequest::setBody(const UpdateTestResultRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".executor", body.executor); + setBodyParameter(std::string("body") + ".status", body.status); +} + +std::string UpdateTestResultRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateTestResultRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateTestResultRequest::getTestPlanIdentifier() const { + return testPlanIdentifier_; +} + +void UpdateTestResultRequest::setTestPlanIdentifier(const std::string &testPlanIdentifier) { + testPlanIdentifier_ = testPlanIdentifier; + setParameter(std::string("testPlanIdentifier"), testPlanIdentifier); +} + diff --git a/devops/src/model/UpdateTestResultResult.cc b/devops/src/model/UpdateTestResultResult.cc new file mode 100644 index 000000000..f5e6fb1ee --- /dev/null +++ b/devops/src/model/UpdateTestResultResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateTestResultResult::UpdateTestResultResult() : + ServiceResult() +{} + +UpdateTestResultResult::UpdateTestResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateTestResultResult::~UpdateTestResultResult() +{} + +void UpdateTestResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateTestResultResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateTestResultResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string UpdateTestResultResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateTestResultResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateVariableGroupRequest.cc b/devops/src/model/UpdateVariableGroupRequest.cc new file mode 100644 index 000000000..17e1bae0c --- /dev/null +++ b/devops/src/model/UpdateVariableGroupRequest.cc @@ -0,0 +1,73 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateVariableGroupRequest; + +UpdateVariableGroupRequest::UpdateVariableGroupRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/variableGroups/[id]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateVariableGroupRequest::~UpdateVariableGroupRequest() {} + +std::string UpdateVariableGroupRequest::getVariables() const { + return variables_; +} + +void UpdateVariableGroupRequest::setVariables(const std::string &variables) { + variables_ = variables; + setBodyParameter(std::string("variables"), variables); +} + +std::string UpdateVariableGroupRequest::getDescription() const { + return description_; +} + +void UpdateVariableGroupRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("description"), description); +} + +std::string UpdateVariableGroupRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateVariableGroupRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string UpdateVariableGroupRequest::getName() const { + return name_; +} + +void UpdateVariableGroupRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("name"), name); +} + +long UpdateVariableGroupRequest::getId() const { + return id_; +} + +void UpdateVariableGroupRequest::setId(long id) { + id_ = id; + setParameter(std::string("id"), std::to_string(id)); +} + diff --git a/devops/src/model/UpdateVariableGroupResult.cc b/devops/src/model/UpdateVariableGroupResult.cc new file mode 100644 index 000000000..8ec3cc189 --- /dev/null +++ b/devops/src/model/UpdateVariableGroupResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateVariableGroupResult::UpdateVariableGroupResult() : + ServiceResult() +{} + +UpdateVariableGroupResult::UpdateVariableGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateVariableGroupResult::~UpdateVariableGroupResult() +{} + +void UpdateVariableGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +std::string UpdateVariableGroupResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateVariableGroupResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateVariableGroupResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateVariableGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateWorkItemRequest.cc b/devops/src/model/UpdateWorkItemRequest.cc new file mode 100644 index 000000000..79e2aa14f --- /dev/null +++ b/devops/src/model/UpdateWorkItemRequest.cc @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateWorkItemRequest; + +UpdateWorkItemRequest::UpdateWorkItemRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/update"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateWorkItemRequest::~UpdateWorkItemRequest() {} + +UpdateWorkItemRequest::body UpdateWorkItemRequest::getBody() const { + return body_; +} + +void UpdateWorkItemRequest::setBody(const UpdateWorkItemRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".propertyKey", body.propertyKey); + setBodyParameter(std::string("body") + ".identifier", body.identifier); + setBodyParameter(std::string("body") + ".propertyValue", body.propertyValue); + setBodyParameter(std::string("body") + ".fieldType", body.fieldType); +} + +std::string UpdateWorkItemRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateWorkItemRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/UpdateWorkItemResult.cc b/devops/src/model/UpdateWorkItemResult.cc new file mode 100644 index 000000000..78f35b4de --- /dev/null +++ b/devops/src/model/UpdateWorkItemResult.cc @@ -0,0 +1,120 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateWorkItemResult::UpdateWorkItemResult() : + ServiceResult() +{} + +UpdateWorkItemResult::UpdateWorkItemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateWorkItemResult::~UpdateWorkItemResult() +{} + +void UpdateWorkItemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workitemNode = value["workitem"]; + if(!workitemNode["identifier"].isNull()) + workitem_.identifier = workitemNode["identifier"].asString(); + if(!workitemNode["subject"].isNull()) + workitem_.subject = workitemNode["subject"].asString(); + if(!workitemNode["document"].isNull()) + workitem_.document = workitemNode["document"].asString(); + if(!workitemNode["assignedTo"].isNull()) + workitem_.assignedTo = workitemNode["assignedTo"].asString(); + if(!workitemNode["status"].isNull()) + workitem_.status = workitemNode["status"].asString(); + if(!workitemNode["statusStageIdentifier"].isNull()) + workitem_.statusStageIdentifier = workitemNode["statusStageIdentifier"].asString(); + if(!workitemNode["spaceIdentifier"].isNull()) + workitem_.spaceIdentifier = workitemNode["spaceIdentifier"].asString(); + if(!workitemNode["spaceName"].isNull()) + workitem_.spaceName = workitemNode["spaceName"].asString(); + if(!workitemNode["spaceType"].isNull()) + workitem_.spaceType = workitemNode["spaceType"].asString(); + if(!workitemNode["logicalStatus"].isNull()) + workitem_.logicalStatus = workitemNode["logicalStatus"].asString(); + if(!workitemNode["categoryIdentifier"].isNull()) + workitem_.categoryIdentifier = workitemNode["categoryIdentifier"].asString(); + if(!workitemNode["parentIdentifier"].isNull()) + workitem_.parentIdentifier = workitemNode["parentIdentifier"].asString(); + if(!workitemNode["workitemTypeIdentifier"].isNull()) + workitem_.workitemTypeIdentifier = workitemNode["workitemTypeIdentifier"].asString(); + if(!workitemNode["updateStatusAt"].isNull()) + workitem_.updateStatusAt = std::stol(workitemNode["updateStatusAt"].asString()); + if(!workitemNode["serialNumber"].isNull()) + workitem_.serialNumber = workitemNode["serialNumber"].asString(); + if(!workitemNode["gmtCreate"].isNull()) + workitem_.gmtCreate = std::stol(workitemNode["gmtCreate"].asString()); + if(!workitemNode["gmtModified"].isNull()) + workitem_.gmtModified = std::stol(workitemNode["gmtModified"].asString()); + if(!workitemNode["creator"].isNull()) + workitem_.creator = workitemNode["creator"].asString(); + if(!workitemNode["modifier"].isNull()) + workitem_.modifier = workitemNode["modifier"].asString(); + if(!workitemNode["statusIdentifier"].isNull()) + workitem_.statusIdentifier = workitemNode["statusIdentifier"].asString(); + if(!workitemNode["sprintIdentifier"].isNull()) + workitem_.sprintIdentifier = workitemNode["sprintIdentifier"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +UpdateWorkItemResult::Workitem UpdateWorkItemResult::getWorkitem()const +{ + return workitem_; +} + +std::string UpdateWorkItemResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateWorkItemResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateWorkItemResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UpdateWorkItemResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateWorkitemCommentRequest.cc b/devops/src/model/UpdateWorkitemCommentRequest.cc new file mode 100644 index 000000000..c175e5c64 --- /dev/null +++ b/devops/src/model/UpdateWorkitemCommentRequest.cc @@ -0,0 +1,49 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateWorkitemCommentRequest; + +UpdateWorkitemCommentRequest::UpdateWorkitemCommentRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/commentUpdate"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateWorkitemCommentRequest::~UpdateWorkitemCommentRequest() {} + +UpdateWorkitemCommentRequest::body UpdateWorkitemCommentRequest::getBody() const { + return body_; +} + +void UpdateWorkitemCommentRequest::setBody(const UpdateWorkitemCommentRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".commentId", std::to_string(body.commentId)); + setBodyParameter(std::string("body") + ".formatType", body.formatType); + setBodyParameter(std::string("body") + ".workitemIdentifier", body.workitemIdentifier); + setBodyParameter(std::string("body") + ".content", body.content); +} + +std::string UpdateWorkitemCommentRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateWorkitemCommentRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/UpdateWorkitemCommentResult.cc b/devops/src/model/UpdateWorkitemCommentResult.cc new file mode 100644 index 000000000..bf6c54962 --- /dev/null +++ b/devops/src/model/UpdateWorkitemCommentResult.cc @@ -0,0 +1,111 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateWorkitemCommentResult::UpdateWorkitemCommentResult() : + ServiceResult() +{} + +UpdateWorkitemCommentResult::UpdateWorkitemCommentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateWorkitemCommentResult::~UpdateWorkitemCommentResult() +{} + +void UpdateWorkitemCommentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto commentNode = value["comment"]; + if(!commentNode["id"].isNull()) + comment_.id = commentNode["id"].asString(); + if(!commentNode["content"].isNull()) + comment_.content = commentNode["content"].asString(); + if(!commentNode["targetType"].isNull()) + comment_.targetType = commentNode["targetType"].asString(); + if(!commentNode["targetIdentifier"].isNull()) + comment_.targetIdentifier = commentNode["targetIdentifier"].asString(); + if(!commentNode["parentId"].isNull()) + comment_.parentId = std::stol(commentNode["parentId"].asString()); + if(!commentNode["createTime"].isNull()) + comment_.createTime = std::stol(commentNode["createTime"].asString()); + if(!commentNode["modifiedTime"].isNull()) + comment_.modifiedTime = std::stol(commentNode["modifiedTime"].asString()); + if(!commentNode["isTop"].isNull()) + comment_.isTop = commentNode["isTop"].asString() == "true"; + if(!commentNode["topTime"].isNull()) + comment_.topTime = std::stol(commentNode["topTime"].asString()); + if(!commentNode["formatType"].isNull()) + comment_.formatType = commentNode["formatType"].asString(); + auto userNode = commentNode["user"]; + if(!userNode["account"].isNull()) + comment_.user.account = userNode["account"].asString(); + if(!userNode["identifier"].isNull()) + comment_.user.identifier = userNode["identifier"].asString(); + if(!userNode["realName"].isNull()) + comment_.user.realName = userNode["realName"].asString(); + if(!userNode["nickName"].isNull()) + comment_.user.nickName = userNode["nickName"].asString(); + if(!userNode["avatar"].isNull()) + comment_.user.avatar = userNode["avatar"].asString(); + if(!userNode["displayName"].isNull()) + comment_.user.displayName = userNode["displayName"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +UpdateWorkitemCommentResult::Comment UpdateWorkitemCommentResult::getComment()const +{ + return comment_; +} + +std::string UpdateWorkitemCommentResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateWorkitemCommentResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string UpdateWorkitemCommentResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UpdateWorkitemCommentResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/UpdateWorkitemFieldRequest.cc b/devops/src/model/UpdateWorkitemFieldRequest.cc new file mode 100644 index 000000000..2dc0eed08 --- /dev/null +++ b/devops/src/model/UpdateWorkitemFieldRequest.cc @@ -0,0 +1,50 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::UpdateWorkitemFieldRequest; + +UpdateWorkitemFieldRequest::UpdateWorkitemFieldRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitems/updateWorkitemField"}; + setMethod(HttpRequest::Method::Post); +} + +UpdateWorkitemFieldRequest::~UpdateWorkitemFieldRequest() {} + +UpdateWorkitemFieldRequest::body UpdateWorkitemFieldRequest::getBody() const { + return body_; +} + +void UpdateWorkitemFieldRequest::setBody(const UpdateWorkitemFieldRequest::body &body) { + body_ = body; + for(int dep1 = 0; dep1 != body.updateWorkitemPropertyRequest.size(); dep1++) { + setBodyParameter(std::string("body") + ".updateWorkitemPropertyRequest." + std::to_string(dep1 + 1) + ".fieldIdentifier", body.updateWorkitemPropertyRequest[dep1].fieldIdentifier); + setBodyParameter(std::string("body") + ".updateWorkitemPropertyRequest." + std::to_string(dep1 + 1) + ".fieldValue", body.updateWorkitemPropertyRequest[dep1].fieldValue); + } + setBodyParameter(std::string("body") + ".workitemIdentifier", body.workitemIdentifier); +} + +std::string UpdateWorkitemFieldRequest::getOrganizationId() const { + return organizationId_; +} + +void UpdateWorkitemFieldRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + diff --git a/devops/src/model/UpdateWorkitemFieldResult.cc b/devops/src/model/UpdateWorkitemFieldResult.cc new file mode 100644 index 000000000..4678a4db6 --- /dev/null +++ b/devops/src/model/UpdateWorkitemFieldResult.cc @@ -0,0 +1,120 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +UpdateWorkitemFieldResult::UpdateWorkitemFieldResult() : + ServiceResult() +{} + +UpdateWorkitemFieldResult::UpdateWorkitemFieldResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateWorkitemFieldResult::~UpdateWorkitemFieldResult() +{} + +void UpdateWorkitemFieldResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto workitemNode = value["workitem"]; + if(!workitemNode["identifier"].isNull()) + workitem_.identifier = workitemNode["identifier"].asString(); + if(!workitemNode["subject"].isNull()) + workitem_.subject = workitemNode["subject"].asString(); + if(!workitemNode["document"].isNull()) + workitem_.document = workitemNode["document"].asString(); + if(!workitemNode["assignedTo"].isNull()) + workitem_.assignedTo = workitemNode["assignedTo"].asString(); + if(!workitemNode["status"].isNull()) + workitem_.status = workitemNode["status"].asString(); + if(!workitemNode["statusStageIdentifier"].isNull()) + workitem_.statusStageIdentifier = workitemNode["statusStageIdentifier"].asString(); + if(!workitemNode["spaceIdentifier"].isNull()) + workitem_.spaceIdentifier = workitemNode["spaceIdentifier"].asString(); + if(!workitemNode["spaceName"].isNull()) + workitem_.spaceName = workitemNode["spaceName"].asString(); + if(!workitemNode["spaceType"].isNull()) + workitem_.spaceType = workitemNode["spaceType"].asString(); + if(!workitemNode["logicalStatus"].isNull()) + workitem_.logicalStatus = workitemNode["logicalStatus"].asString(); + if(!workitemNode["categoryIdentifier"].isNull()) + workitem_.categoryIdentifier = workitemNode["categoryIdentifier"].asString(); + if(!workitemNode["parentIdentifier"].isNull()) + workitem_.parentIdentifier = workitemNode["parentIdentifier"].asString(); + if(!workitemNode["workitemTypeIdentifier"].isNull()) + workitem_.workitemTypeIdentifier = workitemNode["workitemTypeIdentifier"].asString(); + if(!workitemNode["updateStatusAt"].isNull()) + workitem_.updateStatusAt = std::stol(workitemNode["updateStatusAt"].asString()); + if(!workitemNode["serialNumber"].isNull()) + workitem_.serialNumber = workitemNode["serialNumber"].asString(); + if(!workitemNode["gmtCreate"].isNull()) + workitem_.gmtCreate = std::stol(workitemNode["gmtCreate"].asString()); + if(!workitemNode["gmtModified"].isNull()) + workitem_.gmtModified = std::stol(workitemNode["gmtModified"].asString()); + if(!workitemNode["creator"].isNull()) + workitem_.creator = workitemNode["creator"].asString(); + if(!workitemNode["modifier"].isNull()) + workitem_.modifier = workitemNode["modifier"].asString(); + if(!workitemNode["statusIdentifier"].isNull()) + workitem_.statusIdentifier = workitemNode["statusIdentifier"].asString(); + if(!workitemNode["sprintIdentifier"].isNull()) + workitem_.sprintIdentifier = workitemNode["sprintIdentifier"].asString(); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorMsg"].isNull()) + errorMsg_ = value["errorMsg"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString() == "true"; + +} + +UpdateWorkitemFieldResult::Workitem UpdateWorkitemFieldResult::getWorkitem()const +{ + return workitem_; +} + +std::string UpdateWorkitemFieldResult::getRequestId()const +{ + return requestId_; +} + +std::string UpdateWorkitemFieldResult::getErrorMsg()const +{ + return errorMsg_; +} + +std::string UpdateWorkitemFieldResult::getErrorCode()const +{ + return errorCode_; +} + +bool UpdateWorkitemFieldResult::getSuccess()const +{ + return success_; +} + diff --git a/devops/src/model/WorkitemAttachmentCreateRequest.cc b/devops/src/model/WorkitemAttachmentCreateRequest.cc new file mode 100644 index 000000000..2dab98d14 --- /dev/null +++ b/devops/src/model/WorkitemAttachmentCreateRequest.cc @@ -0,0 +1,56 @@ +/* + * 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. + */ + +#include + +using AlibabaCloud::Devops::Model::WorkitemAttachmentCreateRequest; + +WorkitemAttachmentCreateRequest::WorkitemAttachmentCreateRequest() + : RoaServiceRequest("devops", "2021-06-25") { + setResourcePath("/organization/[organizationId]/workitem/[workitemIdentifier]/attachment"}; + setMethod(HttpRequest::Method::Post); +} + +WorkitemAttachmentCreateRequest::~WorkitemAttachmentCreateRequest() {} + +WorkitemAttachmentCreateRequest::body WorkitemAttachmentCreateRequest::getBody() const { + return body_; +} + +void WorkitemAttachmentCreateRequest::setBody(const WorkitemAttachmentCreateRequest::body &body) { + body_ = body; + setBodyParameter(std::string("body") + ".originalFilename", body.originalFilename); + setBodyParameter(std::string("body") + ".fileKey", body.fileKey); +} + +std::string WorkitemAttachmentCreateRequest::getOrganizationId() const { + return organizationId_; +} + +void WorkitemAttachmentCreateRequest::setOrganizationId(const std::string &organizationId) { + organizationId_ = organizationId; + setParameter(std::string("organizationId"), organizationId); +} + +std::string WorkitemAttachmentCreateRequest::getWorkitemIdentifier() const { + return workitemIdentifier_; +} + +void WorkitemAttachmentCreateRequest::setWorkitemIdentifier(const std::string &workitemIdentifier) { + workitemIdentifier_ = workitemIdentifier; + setParameter(std::string("workitemIdentifier"), workitemIdentifier); +} + diff --git a/devops/src/model/WorkitemAttachmentCreateResult.cc b/devops/src/model/WorkitemAttachmentCreateResult.cc new file mode 100644 index 000000000..8fb088db9 --- /dev/null +++ b/devops/src/model/WorkitemAttachmentCreateResult.cc @@ -0,0 +1,72 @@ +/* + * 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. + */ + +#include +#include + +using namespace AlibabaCloud::Devops; +using namespace AlibabaCloud::Devops::Model; + +WorkitemAttachmentCreateResult::WorkitemAttachmentCreateResult() : + ServiceResult() +{} + +WorkitemAttachmentCreateResult::WorkitemAttachmentCreateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +WorkitemAttachmentCreateResult::~WorkitemAttachmentCreateResult() +{} + +void WorkitemAttachmentCreateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + if(!value["errorCode"].isNull()) + errorCode_ = value["errorCode"].asString(); + if(!value["errorMessage"].isNull()) + errorMessage_ = value["errorMessage"].asString(); + if(!value["success"].isNull()) + success_ = value["success"].asString(); + +} + +std::string WorkitemAttachmentCreateResult::getRequestId()const +{ + return requestId_; +} + +std::string WorkitemAttachmentCreateResult::getErrorCode()const +{ + return errorCode_; +} + +std::string WorkitemAttachmentCreateResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string WorkitemAttachmentCreateResult::getSuccess()const +{ + return success_; +} +