Class: Google::Apis::ArtifactregistryV1::GoModule

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoModule

Returns a new instance of GoModule.



739
740
741
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 739

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

Instance Attribute Details

#create_timeString

Output only. The time when the Go module is created. Corresponds to the JSON property createTime

Returns:

  • (String)


721
722
723
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 721

def create_time
  @create_time
end

#nameString

The resource name of a Go module. Corresponds to the JSON property name

Returns:

  • (String)


726
727
728
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 726

def name
  @name
end

#update_timeString

Output only. The time when the Go module is updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


731
732
733
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 731

def update_time
  @update_time
end

#versionString

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

Returns:

  • (String)


737
738
739
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 737

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



744
745
746
747
748
749
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 744

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