Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1ScoreComponent

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

Component is an individual security element that is scored.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1ScoreComponent

Returns a new instance of GoogleCloudApigeeV1ScoreComponent.



8107
8108
8109
# File 'lib/google/apis/apigee_v1/classes.rb', line 8107

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

Instance Attribute Details

#calculate_timeString

Time when score was calculated. Corresponds to the JSON property calculateTime

Returns:

  • (String)


8078
8079
8080
# File 'lib/google/apis/apigee_v1/classes.rb', line 8078

def calculate_time
  @calculate_time
end

#data_capture_timeString

Time in the requested time period when data was last captured to compute the score. Corresponds to the JSON property dataCaptureTime

Returns:

  • (String)


8084
8085
8086
# File 'lib/google/apis/apigee_v1/classes.rb', line 8084

def data_capture_time
  @data_capture_time
end

#drilldown_pathsArray<String>

List of paths for next components. Corresponds to the JSON property drilldownPaths

Returns:

  • (Array<String>)


8089
8090
8091
# File 'lib/google/apis/apigee_v1/classes.rb', line 8089

def drilldown_paths
  @drilldown_paths
end

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

List of recommendations to improve API security. Corresponds to the JSON property recommendations



8094
8095
8096
# File 'lib/google/apis/apigee_v1/classes.rb', line 8094

def recommendations
  @recommendations
end

#scoreFixnum

Score for the component. Corresponds to the JSON property score

Returns:

  • (Fixnum)


8099
8100
8101
# File 'lib/google/apis/apigee_v1/classes.rb', line 8099

def score
  @score
end

#score_pathString

Path of the component. Example: /org@myorg/envgroup@myenvgroup/proxies/proxy@ myproxy Corresponds to the JSON property scorePath

Returns:

  • (String)


8105
8106
8107
# File 'lib/google/apis/apigee_v1/classes.rb', line 8105

def score_path
  @score_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8112
8113
8114
8115
8116
8117
8118
8119
# File 'lib/google/apis/apigee_v1/classes.rb', line 8112

def update!(**args)
  @calculate_time = args[:calculate_time] if args.key?(:calculate_time)
  @data_capture_time = args[:data_capture_time] if args.key?(:data_capture_time)
  @drilldown_paths = args[:drilldown_paths] if args.key?(:drilldown_paths)
  @recommendations = args[:recommendations] if args.key?(:recommendations)
  @score = args[:score] if args.key?(:score)
  @score_path = args[:score_path] if args.key?(:score_path)
end