Class: Aws::CodeGuruReviewer::Types::CodeReview

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-codegurureviewer/types.rb

Overview

Information about a code review. A code review belongs to the associated repository that contains the reviewed code.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#analysis_typesArray<String>

The types of analysis performed during a repository analysis or a pull request review. You can specify either ‘Security`, `CodeQuality`, or both.

Returns:

  • (Array<String>)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#association_arnString

The Amazon Resource Name (ARN) of the [RepositoryAssociation] that contains the reviewed source code. You can retrieve associated repository ARNs by calling [ListRepositoryAssociations].

[1]: docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html [2]: docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#code_review_arnString

The Amazon Resource Name (ARN) of the [CodeReview] object.

[1]: docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#config_file_stateString

The state of the ‘aws-codeguru-reviewer.yml` configuration file that allows the configuration of the CodeGuru Reviewer analysis. The file either exists, doesn’t exist, or exists with errors at the root directory of your repository.

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#created_time_stampTime

The time, in milliseconds since the epoch, when the code review was created.

Returns:

  • (Time)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#last_updated_time_stampTime

The time, in milliseconds since the epoch, when the code review was last updated.

Returns:

  • (Time)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#metricsTypes::Metrics

The statistics from the code review.

Returns:



283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The name of the code review.

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#ownerString

The owner of the repository. For an Amazon Web Services CodeCommit repository, this is the Amazon Web Services account ID of the account that owns the repository. For a GitHub, GitHub Enterprise Server, or Bitbucket repository, this is the username for the account that owns the repository. For an S3 repository, it can be the username or Amazon Web Services account ID.

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#provider_typeString

The type of repository that contains the reviewed code (for example, GitHub or Bitbucket).

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#pull_request_idString

The pull request ID for the code review.

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#repository_nameString

The name of the repository.

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#source_code_typeTypes::SourceCodeType

The type of the source code for the code review.



283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#stateString

The valid code review states are:

  • ‘Completed`: The code review is complete.

  • ‘Pending`: The code review started and has not completed or failed.

  • ‘Failed`: The code review failed.

  • ‘Deleting`: The code review is being deleted.

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#state_reasonString

The reason for the state of the code review.

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

The type of code review.

Returns:

  • (String)


283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
# File 'lib/aws-sdk-codegurureviewer/types.rb', line 283

class CodeReview < Struct.new(
  :name,
  :code_review_arn,
  :repository_name,
  :owner,
  :provider_type,
  :state,
  :state_reason,
  :created_time_stamp,
  :last_updated_time_stamp,
  :type,
  :pull_request_id,
  :source_code_type,
  :association_arn,
  :metrics,
  :analysis_types,
  :config_file_state)
  SENSITIVE = []
  include Aws::Structure
end