Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2IssueSecurityContextContext

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

Overview

Context of a security context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2IssueSecurityContextContext

Returns a new instance of GoogleCloudSecuritycenterV2IssueSecurityContextContext.



8361
8362
8363
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8361

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

Instance Attribute Details

#typeString

Context type. Corresponds to the JSON property type

Returns:

  • (String)


8354
8355
8356
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8354

def type
  @type
end

#valuesArray<String>

Context values. Corresponds to the JSON property values

Returns:

  • (Array<String>)


8359
8360
8361
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8359

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8366
8367
8368
8369
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8366

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