UNPKG

cloudworker-proxy

Version:
615 lines 14.8 kB
{ "version": "2.0", "metadata": { "apiVersion": "2019-09-19", "endpointPrefix": "codeguru-reviewer", "jsonVersion": "1.1", "protocol": "rest-json", "serviceAbbreviation": "CodeGuruReviewer", "serviceFullName": "Amazon CodeGuru Reviewer", "serviceId": "CodeGuru Reviewer", "signatureVersion": "v4", "signingName": "codeguru-reviewer", "uid": "codeguru-reviewer-2019-09-19" }, "operations": { "AssociateRepository": { "http": { "requestUri": "/associations" }, "input": { "type": "structure", "required": [ "Repository" ], "members": { "Repository": { "type": "structure", "members": { "CodeCommit": { "type": "structure", "required": [ "Name" ], "members": { "Name": {} } }, "Bitbucket": { "shape": "S5" }, "GitHubEnterpriseServer": { "shape": "S5" } } }, "ClientRequestToken": { "idempotencyToken": true } } }, "output": { "type": "structure", "members": { "RepositoryAssociation": { "shape": "Sa" } } } }, "CreateCodeReview": { "http": { "requestUri": "/codereviews" }, "input": { "type": "structure", "required": [ "Name", "RepositoryAssociationArn", "Type" ], "members": { "Name": {}, "RepositoryAssociationArn": {}, "Type": { "type": "structure", "required": [ "RepositoryAnalysis" ], "members": { "RepositoryAnalysis": { "type": "structure", "required": [ "RepositoryHead" ], "members": { "RepositoryHead": { "shape": "Sl" } } } } }, "ClientRequestToken": { "idempotencyToken": true } } }, "output": { "type": "structure", "members": { "CodeReview": { "shape": "So" } } } }, "DescribeCodeReview": { "http": { "method": "GET", "requestUri": "/codereviews/{CodeReviewArn}" }, "input": { "type": "structure", "required": [ "CodeReviewArn" ], "members": { "CodeReviewArn": { "location": "uri", "locationName": "CodeReviewArn" } } }, "output": { "type": "structure", "members": { "CodeReview": { "shape": "So" } } } }, "DescribeRecommendationFeedback": { "http": { "method": "GET", "requestUri": "/feedback/{CodeReviewArn}" }, "input": { "type": "structure", "required": [ "CodeReviewArn", "RecommendationId" ], "members": { "CodeReviewArn": { "location": "uri", "locationName": "CodeReviewArn" }, "RecommendationId": { "location": "querystring", "locationName": "RecommendationId" }, "UserId": { "location": "querystring", "locationName": "UserId" } } }, "output": { "type": "structure", "members": { "RecommendationFeedback": { "type": "structure", "members": { "CodeReviewArn": {}, "RecommendationId": {}, "Reactions": { "shape": "S15" }, "UserId": {}, "CreatedTimeStamp": { "type": "timestamp" }, "LastUpdatedTimeStamp": { "type": "timestamp" } } } } } }, "DescribeRepositoryAssociation": { "http": { "method": "GET", "requestUri": "/associations/{AssociationArn}" }, "input": { "type": "structure", "required": [ "AssociationArn" ], "members": { "AssociationArn": { "location": "uri", "locationName": "AssociationArn" } } }, "output": { "type": "structure", "members": { "RepositoryAssociation": { "shape": "Sa" } } } }, "DisassociateRepository": { "http": { "method": "DELETE", "requestUri": "/associations/{AssociationArn}" }, "input": { "type": "structure", "required": [ "AssociationArn" ], "members": { "AssociationArn": { "location": "uri", "locationName": "AssociationArn" } } }, "output": { "type": "structure", "members": { "RepositoryAssociation": { "shape": "Sa" } } } }, "ListCodeReviews": { "http": { "method": "GET", "requestUri": "/codereviews" }, "input": { "type": "structure", "required": [ "Type" ], "members": { "ProviderTypes": { "shape": "S1c", "location": "querystring", "locationName": "ProviderTypes" }, "States": { "location": "querystring", "locationName": "States", "type": "list", "member": {} }, "RepositoryNames": { "location": "querystring", "locationName": "RepositoryNames", "type": "list", "member": {} }, "Type": { "location": "querystring", "locationName": "Type" }, "MaxResults": { "location": "querystring", "locationName": "MaxResults", "type": "integer" }, "NextToken": { "location": "querystring", "locationName": "NextToken" } } }, "output": { "type": "structure", "members": { "CodeReviewSummaries": { "type": "list", "member": { "type": "structure", "members": { "Name": {}, "CodeReviewArn": {}, "RepositoryName": {}, "Owner": {}, "ProviderType": {}, "State": {}, "CreatedTimeStamp": { "type": "timestamp" }, "LastUpdatedTimeStamp": { "type": "timestamp" }, "Type": {}, "PullRequestId": {}, "MetricsSummary": { "type": "structure", "members": { "MeteredLinesOfCodeCount": { "type": "long" }, "FindingsCount": { "type": "long" } } } } } }, "NextToken": {} } } }, "ListRecommendationFeedback": { "http": { "method": "GET", "requestUri": "/feedback/{CodeReviewArn}/RecommendationFeedback" }, "input": { "type": "structure", "required": [ "CodeReviewArn" ], "members": { "NextToken": { "location": "querystring", "locationName": "NextToken" }, "MaxResults": { "location": "querystring", "locationName": "MaxResults", "type": "integer" }, "CodeReviewArn": { "location": "uri", "locationName": "CodeReviewArn" }, "UserIds": { "location": "querystring", "locationName": "UserIds", "type": "list", "member": {} }, "RecommendationIds": { "location": "querystring", "locationName": "RecommendationIds", "type": "list", "member": {} } } }, "output": { "type": "structure", "members": { "RecommendationFeedbackSummaries": { "type": "list", "member": { "type": "structure", "members": { "RecommendationId": {}, "Reactions": { "shape": "S15" }, "UserId": {} } } }, "NextToken": {} } } }, "ListRecommendations": { "http": { "method": "GET", "requestUri": "/codereviews/{CodeReviewArn}/Recommendations" }, "input": { "type": "structure", "required": [ "CodeReviewArn" ], "members": { "NextToken": { "location": "querystring", "locationName": "NextToken" }, "MaxResults": { "location": "querystring", "locationName": "MaxResults", "type": "integer" }, "CodeReviewArn": { "location": "uri", "locationName": "CodeReviewArn" } } }, "output": { "type": "structure", "members": { "RecommendationSummaries": { "type": "list", "member": { "type": "structure", "members": { "FilePath": {}, "RecommendationId": {}, "StartLine": { "type": "integer" }, "EndLine": { "type": "integer" }, "Description": {} } } }, "NextToken": {} } } }, "ListRepositoryAssociations": { "http": { "method": "GET", "requestUri": "/associations" }, "input": { "type": "structure", "members": { "ProviderTypes": { "shape": "S1c", "location": "querystring", "locationName": "ProviderType" }, "States": { "location": "querystring", "locationName": "State", "type": "list", "member": {} }, "Names": { "location": "querystring", "locationName": "Name", "type": "list", "member": {} }, "Owners": { "location": "querystring", "locationName": "Owner", "type": "list", "member": {} }, "MaxResults": { "location": "querystring", "locationName": "MaxResults", "type": "integer" }, "NextToken": { "location": "querystring", "locationName": "NextToken" } } }, "output": { "type": "structure", "members": { "RepositoryAssociationSummaries": { "type": "list", "member": { "type": "structure", "members": { "AssociationArn": {}, "ConnectionArn": {}, "LastUpdatedTimeStamp": { "type": "timestamp" }, "AssociationId": {}, "Name": {}, "Owner": {}, "ProviderType": {}, "State": {} } } }, "NextToken": {} } } }, "PutRecommendationFeedback": { "http": { "method": "PUT", "requestUri": "/feedback" }, "input": { "type": "structure", "required": [ "CodeReviewArn", "RecommendationId", "Reactions" ], "members": { "CodeReviewArn": {}, "RecommendationId": {}, "Reactions": { "shape": "S15" } } }, "output": { "type": "structure", "members": {} } } }, "shapes": { "S5": { "type": "structure", "required": [ "Name", "ConnectionArn", "Owner" ], "members": { "Name": {}, "ConnectionArn": {}, "Owner": {} } }, "Sa": { "type": "structure", "members": { "AssociationId": {}, "AssociationArn": {}, "ConnectionArn": {}, "Name": {}, "Owner": {}, "ProviderType": {}, "State": {}, "StateReason": {}, "LastUpdatedTimeStamp": { "type": "timestamp" }, "CreatedTimeStamp": { "type": "timestamp" } } }, "Sl": { "type": "structure", "required": [ "BranchName" ], "members": { "BranchName": {} } }, "So": { "type": "structure", "members": { "Name": {}, "CodeReviewArn": {}, "RepositoryName": {}, "Owner": {}, "ProviderType": {}, "State": {}, "StateReason": {}, "CreatedTimeStamp": { "type": "timestamp" }, "LastUpdatedTimeStamp": { "type": "timestamp" }, "Type": {}, "PullRequestId": {}, "SourceCodeType": { "type": "structure", "members": { "CommitDiff": { "type": "structure", "members": { "SourceCommit": {}, "DestinationCommit": {} } }, "RepositoryHead": { "shape": "Sl" } } }, "Metrics": { "type": "structure", "members": { "MeteredLinesOfCodeCount": { "type": "long" }, "FindingsCount": { "type": "long" } } } } }, "S15": { "type": "list", "member": {} }, "S1c": { "type": "list", "member": {} } } }