Class: Google::Apis::ArtifactregistryV1::GoModule
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ArtifactregistryV1::GoModule
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/artifactregistry_v1/classes.rb,
lib/google/apis/artifactregistry_v1/representations.rb,
lib/google/apis/artifactregistry_v1/representations.rb 
Overview
GoModule represents a Go module.
Instance Attribute Summary collapse
- 
  
    
      #create_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The resource name of a Go module.
 - 
  
    
      #update_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Output only.
 - 
  
    
      #version  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The version of the Go module.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoModule 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoModule.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ GoModule
Returns a new instance of GoModule.
      740 741 742  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 740 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#create_time ⇒ String
Output only. The time when the Go module is created.
Corresponds to the JSON property createTime
      722 723 724  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 722 def create_time @create_time end  | 
  
#name ⇒ String
The resource name of a Go module.
Corresponds to the JSON property name
      727 728 729  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 727 def name @name end  | 
  
#update_time ⇒ String
Output only. The time when the Go module is updated.
Corresponds to the JSON property updateTime
      732 733 734  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 732 def update_time @update_time end  | 
  
#version ⇒ String
The version of the Go module. Must be a valid canonical version as defined in
https://go.dev/ref/mod#glos-canonical-version.
Corresponds to the JSON property version
      738 739 740  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 738 def version @version end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      745 746 747 748 749 750  | 
    
      # File 'lib/google/apis/artifactregistry_v1/classes.rb', line 745 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) @version = args[:version] if args.key?(:version) end  |