Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation

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

Overview

The message format of a recommendation from the assessment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation

Returns a new instance of GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendation.



9937
9938
9939
# File 'lib/google/apis/apigee_v1/classes.rb', line 9937

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

Instance Attribute Details

#display_nameString

The display name of the assessment. Corresponds to the JSON property displayName

Returns:

  • (String)


9914
9915
9916
# File 'lib/google/apis/apigee_v1/classes.rb', line 9914

def display_name
  @display_name
end

#recommendationsArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAssessmentResultScoringResultAssessmentRecommendationRecommendation>

The recommended steps of the assessment. Corresponds to the JSON property recommendations



9919
9920
9921
# File 'lib/google/apis/apigee_v1/classes.rb', line 9919

def recommendations
  @recommendations
end

#score_impactFixnum

Score impact indicates the impact on the overall score if the assessment were to pass. Corresponds to the JSON property scoreImpact

Returns:

  • (Fixnum)


9925
9926
9927
# File 'lib/google/apis/apigee_v1/classes.rb', line 9925

def score_impact
  @score_impact
end

#verdictString

Verdict indicates the assessment result. Corresponds to the JSON property verdict

Returns:

  • (String)


9930
9931
9932
# File 'lib/google/apis/apigee_v1/classes.rb', line 9930

def verdict
  @verdict
end

#weightString

The weight of the assessment which was set in the profile. Corresponds to the JSON property weight

Returns:

  • (String)


9935
9936
9937
# File 'lib/google/apis/apigee_v1/classes.rb', line 9935

def weight
  @weight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9942
9943
9944
9945
9946
9947
9948
# File 'lib/google/apis/apigee_v1/classes.rb', line 9942

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @recommendations = args[:recommendations] if args.key?(:recommendations)
  @score_impact = args[:score_impact] if args.key?(:score_impact)
  @verdict = args[:verdict] if args.key?(:verdict)
  @weight = args[:weight] if args.key?(:weight)
end