Class: Google::Apis::ServiceusageV1::AnalysisResult

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

Overview

An analysis result including blockers and warnings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnalysisResult

Returns a new instance of AnalysisResult.



184
185
186
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 184

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

Instance Attribute Details

#blockersArray<Google::Apis::ServiceusageV1::Impact>

Blocking information that would prevent the policy changes at runtime. Corresponds to the JSON property blockers



176
177
178
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 176

def blockers
  @blockers
end

#warningsArray<Google::Apis::ServiceusageV1::Impact>

Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime. Corresponds to the JSON property warnings



182
183
184
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 182

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



189
190
191
192
# File 'lib/google/apis/serviceusage_v1/classes.rb', line 189

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