Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class Arg extends \Google\Model
{
protected $anyValueType = FirebaserulesEmpty::class;
protected $anyValueDataType = '';
/**
* @var array
*/
public $exactValue;
/**
* @param FirebaserulesEmpty
*/
public function setAnyValue(FirebaserulesEmpty $anyValue)
{
$this->anyValue = $anyValue;
}
/**
* @return FirebaserulesEmpty
*/
public function getAnyValue()
{
return $this->anyValue;
}
/**
* @param array
*/
public function setExactValue($exactValue)
{
$this->exactValue = $exactValue;
}
/**
* @return array
*/
public function getExactValue()
{
return $this->exactValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Arg::class, 'Google_Service_FirebaseRules_Arg');
@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class ExpressionReport extends \Google\Collection
{
protected $collection_key = 'values';
protected $childrenType = ExpressionReport::class;
protected $childrenDataType = 'array';
protected $sourcePositionType = SourcePosition::class;
protected $sourcePositionDataType = '';
protected $valuesType = ValueCount::class;
protected $valuesDataType = 'array';
/**
* @param ExpressionReport[]
*/
public function setChildren($children)
{
$this->children = $children;
}
/**
* @return ExpressionReport[]
*/
public function getChildren()
{
return $this->children;
}
/**
* @param SourcePosition
*/
public function setSourcePosition(SourcePosition $sourcePosition)
{
$this->sourcePosition = $sourcePosition;
}
/**
* @return SourcePosition
*/
public function getSourcePosition()
{
return $this->sourcePosition;
}
/**
* @param ValueCount[]
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return ValueCount[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExpressionReport::class, 'Google_Service_FirebaseRules_ExpressionReport');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class FirebaserulesEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FirebaserulesEmpty::class, 'Google_Service_FirebaseRules_FirebaserulesEmpty');
@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class FirebaserulesFile extends \Google\Model
{
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $fingerprint;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setFingerprint($fingerprint)
{
$this->fingerprint = $fingerprint;
}
/**
* @return string
*/
public function getFingerprint()
{
return $this->fingerprint;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FirebaserulesFile::class, 'Google_Service_FirebaseRules_FirebaserulesFile');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class FunctionCall extends \Google\Collection
{
protected $collection_key = 'args';
/**
* @var array[]
*/
public $args;
/**
* @var string
*/
public $function;
/**
* @param array[]
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return array[]
*/
public function getArgs()
{
return $this->args;
}
/**
* @param string
*/
public function setFunction($function)
{
$this->function = $function;
}
/**
* @return string
*/
public function getFunction()
{
return $this->function;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FunctionCall::class, 'Google_Service_FirebaseRules_FunctionCall');
@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class FunctionMock extends \Google\Collection
{
protected $collection_key = 'args';
protected $argsType = Arg::class;
protected $argsDataType = 'array';
/**
* @var string
*/
public $function;
protected $resultType = Result::class;
protected $resultDataType = '';
/**
* @param Arg[]
*/
public function setArgs($args)
{
$this->args = $args;
}
/**
* @return Arg[]
*/
public function getArgs()
{
return $this->args;
}
/**
* @param string
*/
public function setFunction($function)
{
$this->function = $function;
}
/**
* @return string
*/
public function getFunction()
{
return $this->function;
}
/**
* @param Result
*/
public function setResult(Result $result)
{
$this->result = $result;
}
/**
* @return Result
*/
public function getResult()
{
return $this->result;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FunctionMock::class, 'Google_Service_FirebaseRules_FunctionMock');
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class GetReleaseExecutableResponse extends \Google\Model
{
/**
* @var string
*/
public $executable;
/**
* @var string
*/
public $executableVersion;
/**
* @var string
*/
public $language;
/**
* @var string
*/
public $rulesetName;
/**
* @var string
*/
public $syncTime;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setExecutable($executable)
{
$this->executable = $executable;
}
/**
* @return string
*/
public function getExecutable()
{
return $this->executable;
}
/**
* @param string
*/
public function setExecutableVersion($executableVersion)
{
$this->executableVersion = $executableVersion;
}
/**
* @return string
*/
public function getExecutableVersion()
{
return $this->executableVersion;
}
/**
* @param string
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* @param string
*/
public function setRulesetName($rulesetName)
{
$this->rulesetName = $rulesetName;
}
/**
* @return string
*/
public function getRulesetName()
{
return $this->rulesetName;
}
/**
* @param string
*/
public function setSyncTime($syncTime)
{
$this->syncTime = $syncTime;
}
/**
* @return string
*/
public function getSyncTime()
{
return $this->syncTime;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetReleaseExecutableResponse::class, 'Google_Service_FirebaseRules_GetReleaseExecutableResponse');
@@ -0,0 +1,78 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class Issue extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $severity;
protected $sourcePositionType = SourcePosition::class;
protected $sourcePositionDataType = '';
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param SourcePosition
*/
public function setSourcePosition(SourcePosition $sourcePosition)
{
$this->sourcePosition = $sourcePosition;
}
/**
* @return SourcePosition
*/
public function getSourcePosition()
{
return $this->sourcePosition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Issue::class, 'Google_Service_FirebaseRules_Issue');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class ListReleasesResponse extends \Google\Collection
{
protected $collection_key = 'releases';
/**
* @var string
*/
public $nextPageToken;
protected $releasesType = Release::class;
protected $releasesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Release[]
*/
public function setReleases($releases)
{
$this->releases = $releases;
}
/**
* @return Release[]
*/
public function getReleases()
{
return $this->releases;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListReleasesResponse::class, 'Google_Service_FirebaseRules_ListReleasesResponse');
@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class ListRulesetsResponse extends \Google\Collection
{
protected $collection_key = 'rulesets';
/**
* @var string
*/
public $nextPageToken;
protected $rulesetsType = Ruleset::class;
protected $rulesetsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Ruleset[]
*/
public function setRulesets($rulesets)
{
$this->rulesets = $rulesets;
}
/**
* @return Ruleset[]
*/
public function getRulesets()
{
return $this->rulesets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRulesetsResponse::class, 'Google_Service_FirebaseRules_ListRulesetsResponse');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class Metadata extends \Google\Collection
{
protected $collection_key = 'services';
/**
* @var string[]
*/
public $services;
/**
* @param string[]
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return string[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metadata::class, 'Google_Service_FirebaseRules_Metadata');
@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class Release extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $rulesetName;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRulesetName($rulesetName)
{
$this->rulesetName = $rulesetName;
}
/**
* @return string
*/
public function getRulesetName()
{
return $this->rulesetName;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Release::class, 'Google_Service_FirebaseRules_Release');
@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules\Resource;
use Google\Service\FirebaseRules\TestRulesetRequest;
use Google\Service\FirebaseRules\TestRulesetResponse;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $firebaserulesService = new Google\Service\FirebaseRules(...);
* $projects = $firebaserulesService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
/**
* Test `Source` for syntactic and semantic correctness. Issues present, if any,
* will be returned to the caller with a description, severity, and source
* location. The test method may be executed with `Source` or a `Ruleset` name.
* Passing `Source` is useful for unit testing new rules. Passing a `Ruleset`
* name is useful for regression testing an existing rule. The following is an
* example of `Source` that permits users to upload images to a bucket bearing
* their user id and matching the correct metadata: _*Example*_ // Users are
* allowed to subscribe and unsubscribe to the blog. service firebase.storage {
* match /users/{userId}/images/{imageName} { allow write: if userId ==
* request.auth.uid && (imageName.matches('*.png$') ||
* imageName.matches('*.jpg$')) && resource.mimeType.matches('^image/') } }
* (projects.test)
*
* @param string $name Required. Tests may either provide `source` or a
* `Ruleset` resource name. For tests against `source`, the resource name must
* refer to the project: Format: `projects/{project_id}` For tests against a
* `Ruleset`, this must be the `Ruleset` resource name: Format:
* `projects/{project_id}/rulesets/{ruleset_id}`
* @param TestRulesetRequest $postBody
* @param array $optParams Optional parameters.
* @return TestRulesetResponse
* @throws \Google\Service\Exception
*/
public function test($name, TestRulesetRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('test', [$params], TestRulesetResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_FirebaseRules_Resource_Projects');
@@ -0,0 +1,174 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules\Resource;
use Google\Service\FirebaseRules\FirebaserulesEmpty;
use Google\Service\FirebaseRules\GetReleaseExecutableResponse;
use Google\Service\FirebaseRules\ListReleasesResponse;
use Google\Service\FirebaseRules\Release;
use Google\Service\FirebaseRules\UpdateReleaseRequest;
/**
* The "releases" collection of methods.
* Typical usage is:
* <code>
* $firebaserulesService = new Google\Service\FirebaseRules(...);
* $releases = $firebaserulesService->projects_releases;
* </code>
*/
class ProjectsReleases extends \Google\Service\Resource
{
/**
* 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
* relationships reflect a `Ruleset` rollout in progress. The `prod` and
* `prod/beta` releases refer to the same `Ruleset`. However, `prod/v23` refers
* to a new `Ruleset`. The `Ruleset` reference for a `Release` may be updated
* using the UpdateRelease method. (releases.create)
*
* @param string $name Required. Resource name for the project which owns this
* `Release`. Format: `projects/{project_id}`
* @param Release $postBody
* @param array $optParams Optional parameters.
* @return Release
* @throws \Google\Service\Exception
*/
public function create($name, Release $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Release::class);
}
/**
* Delete a `Release` by resource name. (releases.delete)
*
* @param string $name Required. Resource name for the `Release` to delete.
* Format: `projects/{project_id}/releases/{release_id}`
* @param array $optParams Optional parameters.
* @return FirebaserulesEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], FirebaserulesEmpty::class);
}
/**
* Get a `Release` by name. (releases.get)
*
* @param string $name Required. Resource name of the `Release`. Format:
* `projects/{project_id}/releases/{release_id}`
* @param array $optParams Optional parameters.
* @return Release
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Release::class);
}
/**
* Get the `Release` executable to use when enforcing rules.
* (releases.getExecutable)
*
* @param string $name Required. Resource name of the `Release`. Format:
* `projects/{project_id}/releases/{release_id}`
* @param array $optParams Optional parameters.
*
* @opt_param string executableVersion Optional. The requested runtime
* executable version. Defaults to FIREBASE_RULES_EXECUTABLE_V1.
* @return GetReleaseExecutableResponse
* @throws \Google\Service\Exception
*/
public function getExecutable($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getExecutable', [$params], GetReleaseExecutableResponse::class);
}
/**
* 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)
*
* @param string $name Required. Resource name for the project. Format:
* `projects/{project_id}`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. `Release` filter. The list method supports
* filters with restrictions on the `Release.name`, and `Release.ruleset_name`.
* Example 1: A filter of 'name=prod*' might return `Release`s 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.
* @opt_param int pageSize Optional. 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 pageToken Optional. Next page token for the next batch of
* `Release` instances.
* @return ListReleasesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsReleases($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListReleasesResponse::class);
}
/**
* Update a `Release` via PATCH. Only updates to `ruleset_name` will be honored.
* `Release` rename is not supported. To create a `Release` use the
* CreateRelease method. (releases.patch)
*
* @param string $name Required. Resource name for the project which owns this
* `Release`. Format: `projects/{project_id}`
* @param UpdateReleaseRequest $postBody
* @param array $optParams Optional parameters.
* @return Release
* @throws \Google\Service\Exception
*/
public function patch($name, UpdateReleaseRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Release::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsReleases::class, 'Google_Service_FirebaseRules_Resource_ProjectsReleases');
@@ -0,0 +1,117 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules\Resource;
use Google\Service\FirebaseRules\FirebaserulesEmpty;
use Google\Service\FirebaseRules\ListRulesetsResponse;
use Google\Service\FirebaseRules\Ruleset;
/**
* The "rulesets" collection of methods.
* Typical usage is:
* <code>
* $firebaserulesService = new Google\Service\FirebaseRules(...);
* $rulesets = $firebaserulesService->projects_rulesets;
* </code>
*/
class ProjectsRulesets extends \Google\Service\Resource
{
/**
* 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)
*
* @param string $name Required. Resource name for Project which owns this
* `Ruleset`. Format: `projects/{project_id}`
* @param Ruleset $postBody
* @param array $optParams Optional parameters.
* @return Ruleset
* @throws \Google\Service\Exception
*/
public function create($name, Ruleset $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Ruleset::class);
}
/**
* Delete a `Ruleset` by resource name. If the `Ruleset` is referenced by a
* `Release` the operation will fail. (rulesets.delete)
*
* @param string $name Required. Resource name for the ruleset to delete.
* Format: `projects/{project_id}/rulesets/{ruleset_id}`
* @param array $optParams Optional parameters.
* @return FirebaserulesEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], FirebaserulesEmpty::class);
}
/**
* Get a `Ruleset` by name including the full `Source` contents. (rulesets.get)
*
* @param string $name Required. Resource name for the ruleset to get. Format:
* `projects/{project_id}/rulesets/{ruleset_id}`
* @param array $optParams Optional parameters.
* @return Ruleset
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Ruleset::class);
}
/**
* 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)
*
* @param string $name Required. Resource name for the project. Format:
* `projects/{project_id}`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. `Ruleset` filter. The list method supports
* filters with restrictions on `Ruleset.name`. Filters on `Ruleset.create_time`
* should use the `date` function which parses strings that conform to the RFC
* 3339 date/time specifications. Example: `create_time >
* date("2017-01-01T00:00:00Z") AND name=UUID-*`
* @opt_param int pageSize Optional. Page size to load. Maximum of 100. Defaults
* to 10. Note: `page_size` is just a hint and the service may choose to load
* less than `page_size` due to the size of the output. To traverse all of the
* releases, caller should iterate until the `page_token` is empty.
* @opt_param string pageToken Optional. Next page token for loading the next
* batch of `Ruleset` instances.
* @return ListRulesetsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsRulesets($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRulesetsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsRulesets::class, 'Google_Service_FirebaseRules_Resource_ProjectsRulesets');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class Result extends \Google\Model
{
protected $undefinedType = FirebaserulesEmpty::class;
protected $undefinedDataType = '';
/**
* @var array
*/
public $value;
/**
* @param FirebaserulesEmpty
*/
public function setUndefined(FirebaserulesEmpty $undefined)
{
$this->undefined = $undefined;
}
/**
* @return FirebaserulesEmpty
*/
public function getUndefined()
{
return $this->undefined;
}
/**
* @param array
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return array
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Result::class, 'Google_Service_FirebaseRules_Result');
@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class Ruleset extends \Google\Model
{
/**
* @var string
*/
public $attachmentPoint;
/**
* @var string
*/
public $createTime;
protected $metadataType = Metadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $name;
protected $sourceType = Source::class;
protected $sourceDataType = '';
/**
* @param string
*/
public function setAttachmentPoint($attachmentPoint)
{
$this->attachmentPoint = $attachmentPoint;
}
/**
* @return string
*/
public function getAttachmentPoint()
{
return $this->attachmentPoint;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param Metadata
*/
public function setMetadata(Metadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return Metadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Source
*/
public function setSource(Source $source)
{
$this->source = $source;
}
/**
* @return Source
*/
public function getSource()
{
return $this->source;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Ruleset::class, 'Google_Service_FirebaseRules_Ruleset');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class Source extends \Google\Collection
{
protected $collection_key = 'files';
protected $filesType = FirebaserulesFile::class;
protected $filesDataType = 'array';
/**
* @param FirebaserulesFile[]
*/
public function setFiles($files)
{
$this->files = $files;
}
/**
* @return FirebaserulesFile[]
*/
public function getFiles()
{
return $this->files;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Source::class, 'Google_Service_FirebaseRules_Source');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class SourcePosition extends \Google\Model
{
/**
* @var int
*/
public $column;
/**
* @var int
*/
public $currentOffset;
/**
* @var int
*/
public $endOffset;
/**
* @var string
*/
public $fileName;
/**
* @var int
*/
public $line;
/**
* @param int
*/
public function setColumn($column)
{
$this->column = $column;
}
/**
* @return int
*/
public function getColumn()
{
return $this->column;
}
/**
* @param int
*/
public function setCurrentOffset($currentOffset)
{
$this->currentOffset = $currentOffset;
}
/**
* @return int
*/
public function getCurrentOffset()
{
return $this->currentOffset;
}
/**
* @param int
*/
public function setEndOffset($endOffset)
{
$this->endOffset = $endOffset;
}
/**
* @return int
*/
public function getEndOffset()
{
return $this->endOffset;
}
/**
* @param string
*/
public function setFileName($fileName)
{
$this->fileName = $fileName;
}
/**
* @return string
*/
public function getFileName()
{
return $this->fileName;
}
/**
* @param int
*/
public function setLine($line)
{
$this->line = $line;
}
/**
* @return int
*/
public function getLine()
{
return $this->line;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SourcePosition::class, 'Google_Service_FirebaseRules_SourcePosition');
@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class TestCase extends \Google\Collection
{
protected $collection_key = 'functionMocks';
/**
* @var string
*/
public $expectation;
/**
* @var string
*/
public $expressionReportLevel;
protected $functionMocksType = FunctionMock::class;
protected $functionMocksDataType = 'array';
/**
* @var string
*/
public $pathEncoding;
/**
* @var array
*/
public $request;
/**
* @var array
*/
public $resource;
/**
* @param string
*/
public function setExpectation($expectation)
{
$this->expectation = $expectation;
}
/**
* @return string
*/
public function getExpectation()
{
return $this->expectation;
}
/**
* @param string
*/
public function setExpressionReportLevel($expressionReportLevel)
{
$this->expressionReportLevel = $expressionReportLevel;
}
/**
* @return string
*/
public function getExpressionReportLevel()
{
return $this->expressionReportLevel;
}
/**
* @param FunctionMock[]
*/
public function setFunctionMocks($functionMocks)
{
$this->functionMocks = $functionMocks;
}
/**
* @return FunctionMock[]
*/
public function getFunctionMocks()
{
return $this->functionMocks;
}
/**
* @param string
*/
public function setPathEncoding($pathEncoding)
{
$this->pathEncoding = $pathEncoding;
}
/**
* @return string
*/
public function getPathEncoding()
{
return $this->pathEncoding;
}
/**
* @param array
*/
public function setRequest($request)
{
$this->request = $request;
}
/**
* @return array
*/
public function getRequest()
{
return $this->request;
}
/**
* @param array
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return array
*/
public function getResource()
{
return $this->resource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestCase::class, 'Google_Service_FirebaseRules_TestCase');
@@ -0,0 +1,127 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class TestResult extends \Google\Collection
{
protected $collection_key = 'visitedExpressions';
/**
* @var string[]
*/
public $debugMessages;
protected $errorPositionType = SourcePosition::class;
protected $errorPositionDataType = '';
protected $expressionReportsType = ExpressionReport::class;
protected $expressionReportsDataType = 'array';
protected $functionCallsType = FunctionCall::class;
protected $functionCallsDataType = 'array';
/**
* @var string
*/
public $state;
protected $visitedExpressionsType = VisitedExpression::class;
protected $visitedExpressionsDataType = 'array';
/**
* @param string[]
*/
public function setDebugMessages($debugMessages)
{
$this->debugMessages = $debugMessages;
}
/**
* @return string[]
*/
public function getDebugMessages()
{
return $this->debugMessages;
}
/**
* @param SourcePosition
*/
public function setErrorPosition(SourcePosition $errorPosition)
{
$this->errorPosition = $errorPosition;
}
/**
* @return SourcePosition
*/
public function getErrorPosition()
{
return $this->errorPosition;
}
/**
* @param ExpressionReport[]
*/
public function setExpressionReports($expressionReports)
{
$this->expressionReports = $expressionReports;
}
/**
* @return ExpressionReport[]
*/
public function getExpressionReports()
{
return $this->expressionReports;
}
/**
* @param FunctionCall[]
*/
public function setFunctionCalls($functionCalls)
{
$this->functionCalls = $functionCalls;
}
/**
* @return FunctionCall[]
*/
public function getFunctionCalls()
{
return $this->functionCalls;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param VisitedExpression[]
*/
public function setVisitedExpressions($visitedExpressions)
{
$this->visitedExpressions = $visitedExpressions;
}
/**
* @return VisitedExpression[]
*/
public function getVisitedExpressions()
{
return $this->visitedExpressions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestResult::class, 'Google_Service_FirebaseRules_TestResult');
@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class TestRulesetRequest extends \Google\Model
{
protected $sourceType = Source::class;
protected $sourceDataType = '';
protected $testSuiteType = TestSuite::class;
protected $testSuiteDataType = '';
/**
* @param Source
*/
public function setSource(Source $source)
{
$this->source = $source;
}
/**
* @return Source
*/
public function getSource()
{
return $this->source;
}
/**
* @param TestSuite
*/
public function setTestSuite(TestSuite $testSuite)
{
$this->testSuite = $testSuite;
}
/**
* @return TestSuite
*/
public function getTestSuite()
{
return $this->testSuite;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestRulesetRequest::class, 'Google_Service_FirebaseRules_TestRulesetRequest');
@@ -0,0 +1,59 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class TestRulesetResponse extends \Google\Collection
{
protected $collection_key = 'testResults';
protected $issuesType = Issue::class;
protected $issuesDataType = 'array';
protected $testResultsType = TestResult::class;
protected $testResultsDataType = 'array';
/**
* @param Issue[]
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return Issue[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* @param TestResult[]
*/
public function setTestResults($testResults)
{
$this->testResults = $testResults;
}
/**
* @return TestResult[]
*/
public function getTestResults()
{
return $this->testResults;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestRulesetResponse::class, 'Google_Service_FirebaseRules_TestRulesetResponse');
@@ -0,0 +1,43 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class TestSuite extends \Google\Collection
{
protected $collection_key = 'testCases';
protected $testCasesType = TestCase::class;
protected $testCasesDataType = 'array';
/**
* @param TestCase[]
*/
public function setTestCases($testCases)
{
$this->testCases = $testCases;
}
/**
* @return TestCase[]
*/
public function getTestCases()
{
return $this->testCases;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestSuite::class, 'Google_Service_FirebaseRules_TestSuite');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class UpdateReleaseRequest extends \Google\Model
{
protected $releaseType = Release::class;
protected $releaseDataType = '';
/**
* @var string
*/
public $updateMask;
/**
* @param Release
*/
public function setRelease(Release $release)
{
$this->release = $release;
}
/**
* @return Release
*/
public function getRelease()
{
return $this->release;
}
/**
* @param string
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateReleaseRequest::class, 'Google_Service_FirebaseRules_UpdateReleaseRequest');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class ValueCount extends \Google\Model
{
/**
* @var int
*/
public $count;
/**
* @var array
*/
public $value;
/**
* @param int
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* @param array
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return array
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ValueCount::class, 'Google_Service_FirebaseRules_ValueCount');
@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\FirebaseRules;
class VisitedExpression extends \Google\Model
{
protected $sourcePositionType = SourcePosition::class;
protected $sourcePositionDataType = '';
/**
* @var array
*/
public $value;
/**
* @param SourcePosition
*/
public function setSourcePosition(SourcePosition $sourcePosition)
{
$this->sourcePosition = $sourcePosition;
}
/**
* @return SourcePosition
*/
public function getSourcePosition()
{
return $this->sourcePosition;
}
/**
* @param array
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return array
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VisitedExpression::class, 'Google_Service_FirebaseRules_VisitedExpression');