Class: Google::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplay

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

Overview

A resource describing a Replay, or simulation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1betaReplay

Returns a new instance of GoogleCloudPolicysimulatorV1betaReplay.



1653
1654
1655
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1653

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

Instance Attribute Details

#configGoogle::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplayConfig

The configuration used for a Replay. Corresponds to the JSON property config



1632
1633
1634
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1632

def config
  @config
end

#nameString

Output only. The resource name of the Replay, which has the following format: projects|folders|organizations`/`resource-id`/locations/global/replays/` replay-id, where resource-id is the ID of the project, folder, or organization that owns the Replay. Example: projects/my-example-project/ locations/global/replays/506a5f7f-38ce-4d7d-8e03-479ce1833c36 Corresponds to the JSON property name

Returns:

  • (String)


1641
1642
1643
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1641

def name
  @name
end

#results_summaryGoogle::Apis::PolicysimulatorV1beta::GoogleCloudPolicysimulatorV1betaReplayResultsSummary

Summary statistics about the replayed log entries. Corresponds to the JSON property resultsSummary



1646
1647
1648
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1646

def results_summary
  @results_summary
end

#stateString

Output only. The current state of the Replay. Corresponds to the JSON property state

Returns:

  • (String)


1651
1652
1653
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1651

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1658
1659
1660
1661
1662
1663
# File 'lib/google/apis/policysimulator_v1beta/classes.rb', line 1658

def update!(**args)
  @config = args[:config] if args.key?(:config)
  @name = args[:name] if args.key?(:name)
  @results_summary = args[:results_summary] if args.key?(:results_summary)
  @state = args[:state] if args.key?(:state)
end