Class: Google::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplayResult

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPolicysimulatorV1alphaReplayResult

Returns a new instance of GoogleCloudPolicysimulatorV1alphaReplayResult.



1388
1389
1390
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1388

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

Instance Attribute Details

#access_tupleGoogle::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaAccessTuple

Information about the principal, resource, and permission to check. Corresponds to the JSON property accessTuple



1341
1342
1343
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1341

def access_tuple
  @access_tuple
end

#diffGoogle::Apis::PolicysimulatorV1alpha::GoogleCloudPolicysimulatorV1alphaReplayDiff

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



1349
1350
1351
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1349

def diff
  @diff
end

#errorGoogle::Apis::PolicysimulatorV1alpha::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



1359
1360
1361
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1359

def error
  @error
end

#last_seen_dateGoogle::Apis::PolicysimulatorV1alpha::GoogleTypeDate

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, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type. TimeOfDay * google.type.DateTime * google.protobuf.Timestamp Corresponds to the JSON property lastSeenDate



1371
1372
1373
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1371

def last_seen_date
  @last_seen_date
end

#nameString

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

Returns:

  • (String)


1381
1382
1383
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1381

def name
  @name
end

#parentString

The Replay that the access tuple was included in. Corresponds to the JSON property parent

Returns:

  • (String)


1386
1387
1388
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1386

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1393
1394
1395
1396
1397
1398
1399
1400
# File 'lib/google/apis/policysimulator_v1alpha/classes.rb', line 1393

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