Class: Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1CloudRepoSourceContext

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

Overview

A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsContaineranalysisV1alpha1CloudRepoSourceContext

Returns a new instance of GoogleDevtoolsContaineranalysisV1alpha1CloudRepoSourceContext.



1097
1098
1099
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1097

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

Instance Attribute Details

#alias_contextGoogle::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1AliasContext

An alias to a repo revision. Corresponds to the JSON property aliasContext



1085
1086
1087
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1085

def alias_context
  @alias_context
end

#repo_idGoogle::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1RepoId

A unique identifier for a Cloud Repo. Corresponds to the JSON property repoId



1090
1091
1092
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1090

def repo_id
  @repo_id
end

#revision_idString

A revision ID. Corresponds to the JSON property revisionId

Returns:

  • (String)


1095
1096
1097
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1095

def revision_id
  @revision_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1102
1103
1104
1105
1106
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 1102

def update!(**args)
  @alias_context = args[:alias_context] if args.key?(:alias_context)
  @repo_id = args[:repo_id] if args.key?(:repo_id)
  @revision_id = args[:revision_id] if args.key?(:revision_id)
end