Class: Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheck

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChecksReportV1alphaCheck

Returns a new instance of GoogleChecksReportV1alphaCheck.



342
343
344
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 342

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

Instance Attribute Details

#citationsArray<Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckCitation>

Regulations and policies that serve as the legal basis for the check. Corresponds to the JSON property citations



308
309
310
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 308

def citations
  @citations
end

#evidenceGoogle::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckEvidence

Evidence for a check. Corresponds to the JSON property evidence



313
314
315
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 313

def evidence
  @evidence
end

#region_codesArray<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

Returns:

  • (Array<String>)


319
320
321
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 319

def region_codes
  @region_codes
end

#severityString

The urgency or risk level of the check. Corresponds to the JSON property severity

Returns:

  • (String)


324
325
326
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 324

def severity
  @severity
end

#stateString

The result after running the check. Corresponds to the JSON property state

Returns:

  • (String)


329
330
331
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 329

def state
  @state
end

#state_metadataGoogle::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckStateMetadata

Additional information about the check state in relation to past reports. Corresponds to the JSON property stateMetadata



334
335
336
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 334

def 
  @state_metadata
end

#typeString

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

Returns:

  • (String)


340
341
342
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 340

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



347
348
349
350
351
352
353
354
355
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 347

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