Class: Google::Apis::ContaineranalysisV1alpha1::Cvss

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

Overview

Common Vulnerability Scoring System. This message is compatible with CVSS v2 and v3. For CVSS v2 details, see https://www.first.org/cvss/v2/guide CVSS v2 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator For CVSS v3 details, see https://www.first.org/cvss/specification-document CVSS v3 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Cvss

Returns a new instance of Cvss.



933
934
935
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 933

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

Instance Attribute Details

#attack_complexityString

Defined in CVSS v3, CVSS v2 Corresponds to the JSON property attackComplexity

Returns:

  • (String)


874
875
876
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 874

def attack_complexity
  @attack_complexity
end

#attack_vectorString

Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. Defined in CVSS v3, CVSS v2 Corresponds to the JSON property attackVector

Returns:

  • (String)


881
882
883
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 881

def attack_vector
  @attack_vector
end

#authenticationString

Defined in CVSS v2 Corresponds to the JSON property authentication

Returns:

  • (String)


886
887
888
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 886

def authentication
  @authentication
end

#availability_impactString

Defined in CVSS v3, CVSS v2 Corresponds to the JSON property availabilityImpact

Returns:

  • (String)


891
892
893
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 891

def availability_impact
  @availability_impact
end

#base_scoreFloat

The base score is a function of the base metric scores. Corresponds to the JSON property baseScore

Returns:

  • (Float)


896
897
898
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 896

def base_score
  @base_score
end

#confidentiality_impactString

Defined in CVSS v3, CVSS v2 Corresponds to the JSON property confidentialityImpact

Returns:

  • (String)


901
902
903
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 901

def confidentiality_impact
  @confidentiality_impact
end

#exploitability_scoreFloat

Corresponds to the JSON property exploitabilityScore

Returns:

  • (Float)


906
907
908
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 906

def exploitability_score
  @exploitability_score
end

#impact_scoreFloat

Corresponds to the JSON property impactScore

Returns:

  • (Float)


911
912
913
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 911

def impact_score
  @impact_score
end

#integrity_impactString

Defined in CVSS v3, CVSS v2 Corresponds to the JSON property integrityImpact

Returns:

  • (String)


916
917
918
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 916

def integrity_impact
  @integrity_impact
end

#privileges_requiredString

Defined in CVSS v3 Corresponds to the JSON property privilegesRequired

Returns:

  • (String)


921
922
923
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 921

def privileges_required
  @privileges_required
end

#scopeString

Defined in CVSS v3 Corresponds to the JSON property scope

Returns:

  • (String)


926
927
928
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 926

def scope
  @scope
end

#user_interactionString

Defined in CVSS v3 Corresponds to the JSON property userInteraction

Returns:

  • (String)


931
932
933
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 931

def user_interaction
  @user_interaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



938
939
940
941
942
943
944
945
946
947
948
949
950
951
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 938

def update!(**args)
  @attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
  @attack_vector = args[:attack_vector] if args.key?(:attack_vector)
  @authentication = args[:authentication] if args.key?(:authentication)
  @availability_impact = args[:availability_impact] if args.key?(:availability_impact)
  @base_score = args[:base_score] if args.key?(:base_score)
  @confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
  @exploitability_score = args[:exploitability_score] if args.key?(:exploitability_score)
  @impact_score = args[:impact_score] if args.key?(:impact_score)
  @integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
  @privileges_required = args[:privileges_required] if args.key?(:privileges_required)
  @scope = args[:scope] if args.key?(:scope)
  @user_interaction = args[:user_interaction] if args.key?(:user_interaction)
end