Google_Service_FirebaseRules_Resource_ProjectsReleases
extends Google_Service_Resource
in package
The "releases" collection of methods.
Typical usage is:
$firebaserulesService = new Google_Service_FirebaseRules(...);
$releases = $firebaserulesService->releases;
Table of Contents
- $client : Google_Client
- $methods : array<string|int, mixed>
- $resourceName : string
- $rootUrl : string
- $serviceName : string
- $servicePath : string
- $stackParameters : mixed
- __construct() : mixed
- call() : Google_Http_Request|expectedClass
- TODO: This function needs simplifying.
- create() : Google_Service_FirebaseRules_Release
- Create a `Release`. Release names should reflect the developer's deployment practices. For example, the release name may include the environment name, application name, application version, or any other name meaningful to the developer. Once a `Release` refers to a `Ruleset`, the rules can be enforced by Firebase Rules-enabled services. More than one `Release` may be 'live' concurrently. Consider the following three `Release` names for `projects/foo` and the `Ruleset` to which they refer. Release Name | Ruleset Name --------------------------------|------------- projects/foo/releases/prod | projects/foo/rulesets/uuid123 projects/foo/releases/prod/beta | projects/foo/rulesets/uuid123 projects/foo/releases/prod/v23 | projects/foo/rulesets/uuid456 The table reflects the `Ruleset` rollout in progress. The `prod` and `prod/beta` releases refer to the same `Ruleset`.
- createRequestUri() : string
- Parse/expand request parameters and create a fully qualified request uri.
- delete() : Google_Service_FirebaseRules_FirebaserulesEmpty
- Delete a `Release` by resource name. (releases.delete)
- get() : Google_Service_FirebaseRules_Release
- Get a `Release` by name. (releases.get)
- getExecutable() : Google_Service_FirebaseRules_GetReleaseExecutableResponse
- Get the `Release` executable to use when enforcing rules.
- listProjectsReleases() : Google_Service_FirebaseRules_ListReleasesResponse
- List the `Release` values for a project. This list may optionally be filtered by `Release` name, `Ruleset` name, `TestSuite` name, or any combination thereof. (releases.listProjectsReleases)
- patch() : Google_Service_FirebaseRules_Release
- Update a `Release` via PATCH. Only updates to the `ruleset_name` and `test_suite_name` fields will be honored. `Release` rename is not supported.
- convertToArrayAndStripNulls() : mixed
Properties
$client
private
Google_Client
$client
$methods
private
array<string|int, mixed>
$methods
$resourceName
private
string
$resourceName
$rootUrl
private
string
$rootUrl
$serviceName
private
string
$serviceName
$servicePath
private
string
$servicePath
$stackParameters
private
mixed
$stackParameters
= array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))
Methods
__construct()
public
__construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
- $service : mixed
- $serviceName : mixed
- $resourceName : mixed
- $resource : mixed
Return values
mixed —call()
TODO: This function needs simplifying.
public
call( $name, $arguments[, $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
Tags
Return values
Google_Http_Request|expectedClass —create()
Create a `Release`. Release names should reflect the developer's deployment practices. For example, the release name may include the environment name, application name, application version, or any other name meaningful to the developer. Once a `Release` refers to a `Ruleset`, the rules can be enforced by Firebase Rules-enabled services. More than one `Release` may be 'live' concurrently. Consider the following three `Release` names for `projects/foo` and the `Ruleset` to which they refer. Release Name | Ruleset Name --------------------------------|------------- projects/foo/releases/prod | projects/foo/rulesets/uuid123 projects/foo/releases/prod/beta | projects/foo/rulesets/uuid123 projects/foo/releases/prod/v23 | projects/foo/rulesets/uuid456 The table reflects the `Ruleset` rollout in progress. The `prod` and `prod/beta` releases refer to the same `Ruleset`.
public
create(string $name, Google_Service_FirebaseRules_Release $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_FirebaseRules_Release
However, prod/v23 refers to a new Ruleset. The Ruleset reference for a
Release may be updated using the UpdateRelease method. (releases.create)
Parameters
- $name : string
-
Resource name for the project which owns this
Release. Format:projects/{project_id} - $postBody : Google_Service_FirebaseRules_Release
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_FirebaseRules_Release —createRequestUri()
Parse/expand request parameters and create a fully qualified request uri.
public
createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
- $restPath : string
- $params : array<string|int, mixed>
Tags
Return values
string —$requestUrl
delete()
Delete a `Release` by resource name. (releases.delete)
public
delete(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_FirebaseRules_FirebaserulesEmpty
Parameters
- $name : string
-
Resource name for the
Releaseto delete. Format:projects/{project_id}/releases/{release_id} - $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_FirebaseRules_FirebaserulesEmpty —get()
Get a `Release` by name. (releases.get)
public
get(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_FirebaseRules_Release
Parameters
- $name : string
-
Resource name of the
Release. Format:projects/{project_id}/releases/{release_id} - $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_FirebaseRules_Release —getExecutable()
Get the `Release` executable to use when enforcing rules.
public
getExecutable(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_FirebaseRules_GetReleaseExecutableResponse
(releases.getExecutable)
Parameters
- $name : string
-
Resource name of the
Release. Format:projects/{project_id}/releases/{release_id} - $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_FirebaseRules_GetReleaseExecutableResponse —listProjectsReleases()
List the `Release` values for a project. This list may optionally be filtered by `Release` name, `Ruleset` name, `TestSuite` name, or any combination thereof. (releases.listProjectsReleases)
public
listProjectsReleases(string $name[, array<string|int, mixed> $optParams = array() ]) : Google_Service_FirebaseRules_ListReleasesResponse
Parameters
- $name : string
-
Resource name for the project. Format:
projects/{project_id} - $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Tags
Return values
Google_Service_FirebaseRules_ListReleasesResponse —patch()
Update a `Release` via PATCH. Only updates to the `ruleset_name` and `test_suite_name` fields will be honored. `Release` rename is not supported.
public
patch(string $name, Google_Service_FirebaseRules_UpdateReleaseRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_FirebaseRules_Release
To create a Release use the CreateRelease method. (releases.patch)
Parameters
- $name : string
-
Resource name for the project which owns this
Release. Format:projects/{project_id} - $postBody : Google_Service_FirebaseRules_UpdateReleaseRequest
- $optParams : array<string|int, mixed> = array()
-
Optional parameters.
Return values
Google_Service_FirebaseRules_Release —convertToArrayAndStripNulls()
protected
convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
- $o : mixed