Class: Google::Apis::ContaineranalysisV1beta1::ScanConfig

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

Overview

A scan configuration specifies whether Cloud components in a project have a particular type of analysis being run. For example, it can configure whether vulnerability scanning is being done on Docker images or not.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ScanConfig

Returns a new instance of ScanConfig.



2734
2735
2736
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2734

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

Instance Attribute Details

#create_timeString

Output only. The time this scan config was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2709
2710
2711
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2709

def create_time
  @create_time
end

#descriptionString

Output only. A human-readable description of what the scan configuration does. Corresponds to the JSON property description

Returns:

  • (String)


2715
2716
2717
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2715

def description
  @description
end

#enabledBoolean Also known as: enabled?

Whether the scan is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


2720
2721
2722
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2720

def enabled
  @enabled
end

#nameString

Output only. The name of the scan configuration in the form of projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]. Corresponds to the JSON property name

Returns:

  • (String)


2727
2728
2729
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2727

def name
  @name
end

#update_timeString

Output only. The time this scan config was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


2732
2733
2734
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2732

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2739
2740
2741
2742
2743
2744
2745
# File 'generated/google/apis/containeranalysis_v1beta1/classes.rb', line 2739

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @enabled = args[:enabled] if args.key?(:enabled)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
end