Class: Google::Apis::ContaineranalysisV1beta1::CloudRepoSourceContext
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContaineranalysisV1beta1::CloudRepoSourceContext
 
 
- Includes:
 - Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/containeranalysis_v1beta1/classes.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb,
lib/google/apis/containeranalysis_v1beta1/representations.rb 
Overview
A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.
Instance Attribute Summary collapse
- 
  
    
      #alias_context  ⇒ Google::Apis::ContaineranalysisV1beta1::AliasContext 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
An alias to a repo revision.
 - 
  
    
      #repo_id  ⇒ Google::Apis::ContaineranalysisV1beta1::RepoId 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A unique identifier for a Cloud Repo.
 - 
  
    
      #revision_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A revision ID.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CloudRepoSourceContext 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CloudRepoSourceContext.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ CloudRepoSourceContext
Returns a new instance of CloudRepoSourceContext.
      1113 1114 1115  | 
    
      # File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1113 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#alias_context ⇒ Google::Apis::ContaineranalysisV1beta1::AliasContext
An alias to a repo revision.
Corresponds to the JSON property aliasContext
      1101 1102 1103  | 
    
      # File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1101 def alias_context @alias_context end  | 
  
#repo_id ⇒ Google::Apis::ContaineranalysisV1beta1::RepoId
A unique identifier for a Cloud Repo.
Corresponds to the JSON property repoId
      1106 1107 1108  | 
    
      # File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1106 def repo_id @repo_id end  | 
  
#revision_id ⇒ String
A revision ID.
Corresponds to the JSON property revisionId
      1111 1112 1113  | 
    
      # File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1111 def revision_id @revision_id end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      1118 1119 1120 1121 1122  | 
    
      # File 'lib/google/apis/containeranalysis_v1beta1/classes.rb', line 1118 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  |