Documentation

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

$methods

private array<string|int, mixed> $methods

$resourceName

private string $resourceName

$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
$name :
$arguments :
$expectedClass : = null
  • optional, the expected class name
Tags
throws
Google_Exception
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
static
Return values
string

$requestUrl

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
opt_param

string executableVersion The requested runtime executable version. Defaults to FIREBASE_RULES_EXECUTABLE_V1.

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
opt_param

int pageSize Page size to load. Maximum of 100. Defaults to 10. Note: page_size is just a hint and the service may choose to load fewer than page_size results due to the size of the output. To traverse all of the releases, the caller should iterate until the page_token on the response is empty.

opt_param

string filter Release filter. The list method supports filters with restrictions on the Release.name, Release.ruleset_name, and Release.test_suite_name. Example 1: A filter of 'name=prod*' might return Releases with names within 'projects/foo' prefixed with 'prod': Name | Ruleset Name ------------------------------|------------- projects/foo/releases/prod | projects/foo/rulesets/uuid1234 projects/foo/releases/prod/v1 | projects/foo/rulesets/uuid1234 projects/foo/releases/prod/v2 | projects/foo/rulesets/uuid8888 Example 2: A filter of name=prod* ruleset_name=uuid1234 would return only Release instances for 'projects/foo' with names prefixed with 'prod' referring to the same Ruleset name of 'uuid1234': Name | Ruleset Name ------------------------------|------------- projects/foo/releases/prod | projects/foo/rulesets/1234 projects/foo/releases/prod/v1 | projects/foo/rulesets/1234 In the examples, the filter parameters refer to the search filters are relative to the project. Fully qualified prefixed may also be used. e.g. test_suite_name=projects/foo/testsuites/uuid1

opt_param

string pageToken Next page token for the next batch of Release instances.

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
Return values
mixed

Search results