Class: Google::Apis::SecuritycenterV1::Simulation

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

Overview

Attack path simulation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Simulation

Returns a new instance of Simulation.



10065
10066
10067
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10065

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

Instance Attribute Details

#cloud_providerString

Indicates which cloud provider was used in this simulation. Corresponds to the JSON property cloudProvider

Returns:

  • (String)


10047
10048
10049
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10047

def cloud_provider
  @cloud_provider
end

#create_timeString

Output only. Time simulation was created Corresponds to the JSON property createTime

Returns:

  • (String)


10052
10053
10054
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10052

def create_time
  @create_time
end

#nameString

Full resource name of the Simulation: organizations/123/simulations/456 Corresponds to the JSON property name

Returns:

  • (String)


10057
10058
10059
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10057

def name
  @name
end

#resource_value_configs_metadataArray<Google::Apis::SecuritycenterV1::ResourceValueConfigMetadata>

Resource value configurations' metadata used in this simulation. Maximum of 100. Corresponds to the JSON property resourceValueConfigsMetadata



10063
10064
10065
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10063

def 
  @resource_value_configs_metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10070
10071
10072
10073
10074
10075
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 10070

def update!(**args)
  @cloud_provider = args[:cloud_provider] if args.key?(:cloud_provider)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @resource_value_configs_metadata = args[:resource_value_configs_metadata] if args.key?(:resource_value_configs_metadata)
end