Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueSecurityContextContext

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/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.



9059
9060
9061
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 9059

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

Instance Attribute Details

#typeString

Context type. Corresponds to the JSON property type

Returns:

  • (String)


9052
9053
9054
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 9052

def type
  @type
end

#valuesArray<String>

Context values. Corresponds to the JSON property values

Returns:

  • (Array<String>)


9057
9058
9059
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 9057

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9064
9065
9066
9067
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 9064

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