Class: Google::Apis::ArtifactregistryV1::SbomConfig

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

Config for whether to generate SBOMs for resources in this repository, as well as output fields describing current state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SbomConfig

Returns a new instance of SbomConfig.



2100
2101
2102
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2100

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

Instance Attribute Details

#enablement_configString

Optional. Config for whether this repository has sbom generation disabled. Corresponds to the JSON property enablementConfig

Returns:

  • (String)


2093
2094
2095
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2093

def enablement_config
  @enablement_config
end

#last_enable_timeString

Output only. The last time this repository config was set to INHERITED. Corresponds to the JSON property lastEnableTime

Returns:

  • (String)


2098
2099
2100
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2098

def last_enable_time
  @last_enable_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2105
2106
2107
2108
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2105

def update!(**args)
  @enablement_config = args[:enablement_config] if args.key?(:enablement_config)
  @last_enable_time = args[:last_enable_time] if args.key?(:last_enable_time)
end