Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb

Overview

SCM metadata.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaScmMetadata

Returns a new instance of GoogleChecksRepoScanV1alphaScmMetadata.



561
562
563
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 561

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#branchString

Required. Branch name. Corresponds to the JSON property branch

Returns:

  • (String)


544
545
546
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 544

def branch
  @branch
end

#pull_requestGoogle::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaPullRequest

Pull request info. Corresponds to the JSON property pullRequest



549
550
551
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 549

def pull_request
  @pull_request
end

#remote_uriString

Required. Git remote URL. Corresponds to the JSON property remoteUri

Returns:

  • (String)


554
555
556
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 554

def remote_uri
  @remote_uri
end

#revision_idString

Required. Revision ID, e.g. Git commit hash. Corresponds to the JSON property revisionId

Returns:

  • (String)


559
560
561
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 559

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



566
567
568
569
570
571
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 566

def update!(**args)
  @branch = args[:branch] if args.key?(:branch)
  @pull_request = args[:pull_request] if args.key?(:pull_request)
  @remote_uri = args[:remote_uri] if args.key?(:remote_uri)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
end