class Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ReplayResult

The result of replaying a single access tuple against a simulated state.

Attributes

access_tuple[RW]

Information about the member, resource, and permission to check. Corresponds to the JSON property `accessTuple` @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1AccessTuple]

diff[RW]

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 member's access could change if the proposed policies were applied. Corresponds to the JSON property `diff` @return [Google::Apis::PolicysimulatorV1beta1::GoogleCloudPolicysimulatorV1beta1ReplayDiff]

error[RW]

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](github.com/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](https: //cloud.google.com/apis/design/errors). Corresponds to the JSON property `error` @return [Google::Apis::PolicysimulatorV1beta1::GoogleRpcStatus]

last_seen_date[RW]

Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and ` google.protobuf.Timestamp`. Corresponds to the JSON property `lastSeenDate` @return [Google::Apis::PolicysimulatorV1beta1::GoogleTypeDate]

name[RW]

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` @return [String]

parent[RW]

The Replay that the access tuple was included in. Corresponds to the JSON property `parent` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/policysimulator_v1beta1/classes.rb, line 692
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/policysimulator_v1beta1/classes.rb, line 697
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