class ProjectsRulesets extends Resource (View source)

The "rulesets" collection of methods.

Typical usage is:

 $firebaserulesService = new Google\Service\FirebaseRules(...);
 $rulesets = $firebaserulesService->projects_rulesets;

Methods

create(string $name, Ruleset $postBody, array $optParams = [])

Create a Ruleset from Source. The Ruleset is given a unique generated name which is returned to the caller. Source containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of Source issues, use TestRuleset.

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

Delete a Ruleset by resource name. If the Ruleset is referenced by a Release the operation will fail. (rulesets.delete)

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

Get a Ruleset by name including the full Source contents. (rulesets.get)

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

List Ruleset metadata only and optionally filter the results by Ruleset name. The full Source contents of a Ruleset may be retrieved with GetRuleset. (rulesets.listProjectsRulesets)

Details

Ruleset create(string $name, Ruleset $postBody, array $optParams = [])

Create a Ruleset from Source. The Ruleset is given a unique generated name which is returned to the caller. Source containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of Source issues, use TestRuleset.

(rulesets.create)

Parameters

string $name

Required. Resource name for Project which owns this Ruleset. Format: projects/{project_id}

Ruleset $postBody
array $optParams

Optional parameters.

Return Value

Ruleset

Exceptions

Exception

FirebaserulesEmpty delete(string $name, array $optParams = [])

Delete a Ruleset by resource name. If the Ruleset is referenced by a Release the operation will fail. (rulesets.delete)

Parameters

string $name

Required. Resource name for the ruleset to delete. Format: projects/{project_id}/rulesets/{ruleset_id}

array $optParams

Optional parameters.

Return Value

FirebaserulesEmpty

Exceptions

Exception

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

Get a Ruleset by name including the full Source contents. (rulesets.get)

Parameters

string $name

Required. Resource name for the ruleset to get. Format: projects/{project_id}/rulesets/{ruleset_id}

array $optParams

Optional parameters.

Return Value

Ruleset

Exceptions

Exception

ListRulesetsResponse listProjectsRulesets(string $name, array $optParams = [])

List Ruleset metadata only and optionally filter the results by Ruleset name. The full Source contents of a Ruleset may be retrieved with GetRuleset. (rulesets.listProjectsRulesets)

Parameters

string $name

Required. Resource name for the project. Format: projects/{project_id}

array $optParams

Optional parameters.

Return Value

ListRulesetsResponse

Exceptions

Exception