Class: Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayResult
- Inherits:
-
Object
- Object
- Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/policysimulator_v1/classes.rb,
lib/google/apis/policysimulator_v1/representations.rb,
lib/google/apis/policysimulator_v1/representations.rb
Overview
The result of replaying a single access tuple against a simulated state.
Instance Attribute Summary collapse
-
#access_tuple ⇒ Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1AccessTuple
Information about the principal, resource, and permission to check.
-
#diff ⇒ Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayDiff
The difference between the results of evaluating an access tuple under the current (baseline) policies and under the proposed (simulated) policies.
-
#error ⇒ Google::Apis::PolicysimulatorV1::GoogleRpcStatus
The
Statustype defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. -
#last_seen_date ⇒ Google::Apis::PolicysimulatorV1::GoogleTypeDate
The latest date this access tuple was seen in the logs.
-
#name ⇒ String
The resource name of the
ReplayResult, in the following format:projects| folders|organizations`/`resource-id`/locations/global/replays/`replay-id`/ results/`replay-result-id, whereresource-idis the ID of the project, folder, or organization that owns the Replay. -
#parent ⇒ String
The Replay that the access tuple was included in.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1ReplayResult
constructor
A new instance of GoogleCloudPolicysimulatorV1ReplayResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1ReplayResult
Returns a new instance of GoogleCloudPolicysimulatorV1ReplayResult.
528 529 530 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 528 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_tuple ⇒ Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1AccessTuple
Information about the principal, resource, and permission to check.
Corresponds to the JSON property accessTuple
488 489 490 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 488 def access_tuple @access_tuple end |
#diff ⇒ Google::Apis::PolicysimulatorV1::GoogleCloudPolicysimulatorV1ReplayDiff
The difference between the results of evaluating an access tuple under the
current (baseline) policies and under the proposed (simulated) policies. This
difference explains how a principal's access could change if the proposed
policies were applied.
Corresponds to the JSON property diff
496 497 498 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 496 def diff @diff end |
#error ⇒ Google::Apis::PolicysimulatorV1::GoogleRpcStatus
The Status type defines a logical error model that is suitable for different
programming environments, including REST APIs and RPC APIs. It is used by
gRPC. Each Status message contains three pieces of
data: error code, error message, and error details. You can find out more
about this error model and how to work with it in the API Design Guide.
Corresponds to the JSON property error
506 507 508 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 506 def error @error end |
#last_seen_date ⇒ Google::Apis::PolicysimulatorV1::GoogleTypeDate
The latest date this access tuple was seen in the logs.
Corresponds to the JSON property lastSeenDate
511 512 513 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 511 def last_seen_date @last_seen_date end |
#name ⇒ String
The resource name of the ReplayResult, in the following format: projects|
folders|organizations`/`resource-id`/locations/global/replays/`replay-id`/
results/`replay-result-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/results/
1234
Corresponds to the JSON property name
521 522 523 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 521 def name @name end |
#parent ⇒ String
The Replay that the access tuple was included in.
Corresponds to the JSON property parent
526 527 528 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 526 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
533 534 535 536 537 538 539 540 |
# File 'lib/google/apis/policysimulator_v1/classes.rb', line 533 def update!(**args) @access_tuple = args[:access_tuple] if args.key?(:access_tuple) @diff = args[:diff] if args.key?(:diff) @error = args[:error] if args.key?(:error) @last_seen_date = args[:last_seen_date] if args.key?(:last_seen_date) @name = args[:name] if args.key?(:name) @parent = args[:parent] if args.key?(:parent) end |