class OrganizationsLocationsReplays extends Resource (View source)

The "replays" collection of methods.

Typical usage is:

 $policysimulatorService = new Google\Service\PolicySimulator(...);
 $replays = $policysimulatorService->organizations_locations_replays;

Methods

create(string $parent, GoogleCloudPolicysimulatorV1Replay $postBody, array $optParams = [])

Creates and starts a Replay using the given ReplayConfig. (replays.create)

get(string $name, array $optParams = [])

Gets the specified Replay. Each Replay is available for at least 7 days.

Details

GoogleLongrunningOperation create(string $parent, GoogleCloudPolicysimulatorV1Replay $postBody, array $optParams = [])

Creates and starts a Replay using the given ReplayConfig. (replays.create)

Parameters

string $parent

Required. The parent resource where this Replay will be created. This resource must be a project, folder, or organization with a location. Example: projects/my-example-project/locations/global

GoogleCloudPolicysimulatorV1Replay $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudPolicysimulatorV1Replay get(string $name, array $optParams = [])

Gets the specified Replay. Each Replay is available for at least 7 days.

(replays.get)

Parameters

string $name

Required. The name of the Replay to retrieve, in 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

array $optParams

Optional parameters.

Return Value

GoogleCloudPolicysimulatorV1Replay

Exceptions

Exception