Class: Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaScmMetadata
- 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
-
#branch ⇒ String
Required.
-
#pull_request ⇒ Google::Apis::ChecksV1alpha::GoogleChecksRepoScanV1alphaPullRequest
Pull request info.
-
#remote_uri ⇒ String
Required.
-
#revision_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChecksRepoScanV1alphaScmMetadata
constructor
A new instance of GoogleChecksRepoScanV1alphaScmMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#branch ⇒ String
Required. Branch name.
Corresponds to the JSON property branch
544 545 546 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 544 def branch @branch end |
#pull_request ⇒ Google::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_uri ⇒ String
Required. Git remote URL.
Corresponds to the JSON property remoteUri
554 555 556 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 554 def remote_uri @remote_uri end |
#revision_id ⇒ String
Required. Revision ID, e.g. Git commit hash.
Corresponds to the JSON property revisionId
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 |