Class: Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheck
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheck
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb
Overview
A check that was run on your app.
Instance Attribute Summary collapse
-
#citations ⇒ Array<Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckCitation>
Regulations and policies that serve as the legal basis for the check.
-
#evidence ⇒ Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckEvidence
Evidence for a check.
-
#region_codes ⇒ Array<String>
Regions that are impacted by the check.
-
#severity ⇒ String
The urgency or risk level of the check.
-
#state ⇒ String
The result after running the check.
-
#state_metadata ⇒ Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckStateMetadata
Additional information about the check state in relation to past reports.
-
#type ⇒ String
The type of check that was run.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChecksReportV1alphaCheck
constructor
A new instance of GoogleChecksReportV1alphaCheck.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChecksReportV1alphaCheck
Returns a new instance of GoogleChecksReportV1alphaCheck.
210 211 212 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 210 def initialize(**args) update!(**args) end |
Instance Attribute Details
#citations ⇒ Array<Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckCitation>
Regulations and policies that serve as the legal basis for the check.
Corresponds to the JSON property citations
176 177 178 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 176 def citations @citations end |
#evidence ⇒ Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckEvidence
Evidence for a check.
Corresponds to the JSON property evidence
181 182 183 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 181 def evidence @evidence end |
#region_codes ⇒ Array<String>
Regions that are impacted by the check. For more info, see https://google.aip.
dev/143#countries-and-regions.
Corresponds to the JSON property regionCodes
187 188 189 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 187 def region_codes @region_codes end |
#severity ⇒ String
The urgency or risk level of the check.
Corresponds to the JSON property severity
192 193 194 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 192 def severity @severity end |
#state ⇒ String
The result after running the check.
Corresponds to the JSON property state
197 198 199 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 197 def state @state end |
#state_metadata ⇒ Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckStateMetadata
Additional information about the check state in relation to past reports.
Corresponds to the JSON property stateMetadata
202 203 204 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 202 def @state_metadata end |
#type ⇒ String
The type of check that was run. A type will only appear once in a report's
list of checks.
Corresponds to the JSON property type
208 209 210 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 208 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
215 216 217 218 219 220 221 222 223 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 215 def update!(**args) @citations = args[:citations] if args.key?(:citations) @evidence = args[:evidence] if args.key?(:evidence) @region_codes = args[:region_codes] if args.key?(:region_codes) @severity = args[:severity] if args.key?(:severity) @state = args[:state] if args.key?(:state) @state_metadata = args[:state_metadata] if args.key?(:state_metadata) @type = args[:type] if args.key?(:type) end |