Initial commit
This commit is contained in:
20
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesEmpty.php
vendored
Normal file
20
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesEmpty.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_FirebaserulesEmpty extends Google_Model
|
||||
{
|
||||
}
|
||||
48
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesFile.php
vendored
Normal file
48
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/FirebaserulesFile.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_FirebaserulesFile extends Google_Model
|
||||
{
|
||||
public $content;
|
||||
public $fingerprint;
|
||||
public $name;
|
||||
|
||||
public function setContent($content)
|
||||
{
|
||||
$this->content = $content;
|
||||
}
|
||||
public function getContent()
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
public function setFingerprint($fingerprint)
|
||||
{
|
||||
$this->fingerprint = $fingerprint;
|
||||
}
|
||||
public function getFingerprint()
|
||||
{
|
||||
return $this->fingerprint;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
49
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Issue.php
vendored
Normal file
49
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Issue.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_Issue extends Google_Model
|
||||
{
|
||||
public $description;
|
||||
public $severity;
|
||||
protected $sourcePositionType = 'Google_Service_FirebaseRulesAPI_SourcePosition';
|
||||
protected $sourcePositionDataType = '';
|
||||
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
public function setSeverity($severity)
|
||||
{
|
||||
$this->severity = $severity;
|
||||
}
|
||||
public function getSeverity()
|
||||
{
|
||||
return $this->severity;
|
||||
}
|
||||
public function setSourcePosition(Google_Service_FirebaseRulesAPI_SourcePosition $sourcePosition)
|
||||
{
|
||||
$this->sourcePosition = $sourcePosition;
|
||||
}
|
||||
public function getSourcePosition()
|
||||
{
|
||||
return $this->sourcePosition;
|
||||
}
|
||||
}
|
||||
41
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListReleasesResponse.php
vendored
Normal file
41
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListReleasesResponse.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_ListReleasesResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'releases';
|
||||
public $nextPageToken;
|
||||
protected $releasesType = 'Google_Service_FirebaseRulesAPI_Release';
|
||||
protected $releasesDataType = 'array';
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setReleases($releases)
|
||||
{
|
||||
$this->releases = $releases;
|
||||
}
|
||||
public function getReleases()
|
||||
{
|
||||
return $this->releases;
|
||||
}
|
||||
}
|
||||
41
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListRulesetsResponse.php
vendored
Normal file
41
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/ListRulesetsResponse.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_ListRulesetsResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'rulesets';
|
||||
public $nextPageToken;
|
||||
protected $rulesetsType = 'Google_Service_FirebaseRulesAPI_Ruleset';
|
||||
protected $rulesetsDataType = 'array';
|
||||
|
||||
public function setNextPageToken($nextPageToken)
|
||||
{
|
||||
$this->nextPageToken = $nextPageToken;
|
||||
}
|
||||
public function getNextPageToken()
|
||||
{
|
||||
return $this->nextPageToken;
|
||||
}
|
||||
public function setRulesets($rulesets)
|
||||
{
|
||||
$this->rulesets = $rulesets;
|
||||
}
|
||||
public function getRulesets()
|
||||
{
|
||||
return $this->rulesets;
|
||||
}
|
||||
}
|
||||
57
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Release.php
vendored
Normal file
57
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Release.php
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_Release extends Google_Model
|
||||
{
|
||||
public $createTime;
|
||||
public $name;
|
||||
public $rulesetName;
|
||||
public $updateTime;
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setRulesetName($rulesetName)
|
||||
{
|
||||
$this->rulesetName = $rulesetName;
|
||||
}
|
||||
public function getRulesetName()
|
||||
{
|
||||
return $this->rulesetName;
|
||||
}
|
||||
public function setUpdateTime($updateTime)
|
||||
{
|
||||
$this->updateTime = $updateTime;
|
||||
}
|
||||
public function getUpdateTime()
|
||||
{
|
||||
return $this->updateTime;
|
||||
}
|
||||
}
|
||||
62
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/Projects.php
vendored
Normal file
62
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/Projects.php
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "projects" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $firebaserulesService = new Google_Service_FirebaseRulesAPI(...);
|
||||
* $projects = $firebaserulesService->projects;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_FirebaseRulesAPI_Resource_Projects extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Test `Source` for syntactic and semantic correctness. Issues present in the
|
||||
* rules, if any, will be returned to the caller with a description, severity,
|
||||
* and source location.
|
||||
*
|
||||
* The test method will typically be executed with a developer provided
|
||||
* `Source`, but if regression testing is desired, this method may be executed
|
||||
* against a `Ruleset` resource name and the `Source` will be retrieved from the
|
||||
* persisted `Ruleset`.
|
||||
*
|
||||
* 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.userId &&
|
||||
* (imageName.endsWith('.png') || imageName.endsWith('.jpg')) &&
|
||||
* resource.mimeType.startsWith('image/') } } (projects.test)
|
||||
*
|
||||
* @param string $name Name of the project.
|
||||
*
|
||||
* Format: `projects/{project_id}`
|
||||
* @param Google_Service_FirebaseRulesAPI_TestRulesetRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_FirebaseRulesAPI_TestRulesetResponse
|
||||
*/
|
||||
public function test($name, Google_Service_FirebaseRulesAPI_TestRulesetRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('test', array($params), "Google_Service_FirebaseRulesAPI_TestRulesetResponse");
|
||||
}
|
||||
}
|
||||
186
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsReleases.php
vendored
Normal file
186
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsReleases.php
vendored
Normal file
@@ -0,0 +1,186 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "releases" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $firebaserulesService = new Google_Service_FirebaseRulesAPI(...);
|
||||
* $releases = $firebaserulesService->releases;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_FirebaseRulesAPI_Resource_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 table reflects the `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, and the custom `Release` name may be
|
||||
* referenced by specifying the `X-Firebase-Rules-Release-Name` header.
|
||||
* (releases.create)
|
||||
*
|
||||
* @param string $name Resource name for the project which owns this `Release`.
|
||||
*
|
||||
* Format: `projects/{project_id}`
|
||||
* @param Google_Service_FirebaseRulesAPI_Release $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_FirebaseRulesAPI_Release
|
||||
*/
|
||||
public function create($name, Google_Service_FirebaseRulesAPI_Release $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_FirebaseRulesAPI_Release");
|
||||
}
|
||||
/**
|
||||
* Delete a `Release` by resource name. (releases.delete)
|
||||
*
|
||||
* @param string $name Resource name for the `Release` to delete.
|
||||
*
|
||||
* Format: `projects/{project_id}/releases/{release_id}`
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_FirebaseRulesAPI_FirebaserulesEmpty
|
||||
*/
|
||||
public function delete($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_FirebaseRulesAPI_FirebaserulesEmpty");
|
||||
}
|
||||
/**
|
||||
* Get a `Release` by name. (releases.get)
|
||||
*
|
||||
* @param string $name Resource name of the `Release`.
|
||||
*
|
||||
* Format: `projects/{project_id}/releases/{release_id}`
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_FirebaseRulesAPI_Release
|
||||
*/
|
||||
public function get($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_FirebaseRulesAPI_Release");
|
||||
}
|
||||
/**
|
||||
* List the `Release` values for a project. This list may optionally be filtered
|
||||
* by `Release` name or `Ruleset` id or both. (releases.listProjectsReleases)
|
||||
*
|
||||
* @param string $name Resource name for the project.
|
||||
*
|
||||
* Format: `projects/{project_id}`
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @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 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 filter `Release` filter. The list method supports filters
|
||||
* with restrictions on the `Release` `name` and also on the `Ruleset`
|
||||
* `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 for
|
||||
* release and ruleset names are relative to the project releases and rulesets
|
||||
* collections. Fully qualified prefixed may also be used. e.g.
|
||||
* `name=projects/foo/releases/prod* ruleset_name=projects/foo/rulesets/uuid1`
|
||||
* @opt_param string pageToken Next page token for the next batch of `Release`
|
||||
* instances.
|
||||
* @return Google_Service_FirebaseRulesAPI_ListReleasesResponse
|
||||
*/
|
||||
public function listProjectsReleases($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_FirebaseRulesAPI_ListReleasesResponse");
|
||||
}
|
||||
/**
|
||||
* Update a `Release`.
|
||||
*
|
||||
* Only updates to the `ruleset_name` field will be honored. `Release` rename is
|
||||
* not supported. To create a `Release` use the CreateRelease method instead.
|
||||
* (releases.update)
|
||||
*
|
||||
* @param string $name Resource name for the `Release`.
|
||||
*
|
||||
* `Release` names may be structured `app1/prod/v2` or flat `app1_prod_v2` which
|
||||
* affords developers a great deal of flexibility in mapping the name to the
|
||||
* style that best fits their existing development practices. For example, a
|
||||
* name could refer to an environment, an app, a version, or some combination of
|
||||
* three.
|
||||
*
|
||||
* In the table below, for the project name `projects/foo`, the following
|
||||
* relative release paths show how flat and structured names might be chosen to
|
||||
* match a desired development / deployment strategy.
|
||||
*
|
||||
* Use Case | Flat Name | Structured Name
|
||||
* -------------|---------------------|---------------- Environments |
|
||||
* releases/qa | releases/qa Apps | releases/app1_qa |
|
||||
* releases/app1/qa Versions | releases/app1_v2_qa | releases/app1/v2/qa
|
||||
*
|
||||
* The delimiter between the release name path elements can be almost anything
|
||||
* and it should work equally well with the release name list filter, but in
|
||||
* many ways the structured paths provide a clearer picture of the relationship
|
||||
* between `Release` instances.
|
||||
*
|
||||
* Format: `projects/{project_id}/releases/{release_id}`
|
||||
* @param Google_Service_FirebaseRulesAPI_Release $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_FirebaseRulesAPI_Release
|
||||
*/
|
||||
public function update($name, Google_Service_FirebaseRulesAPI_Release $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_FirebaseRulesAPI_Release");
|
||||
}
|
||||
}
|
||||
108
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsRulesets.php
vendored
Normal file
108
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Resource/ProjectsRulesets.php
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "rulesets" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $firebaserulesService = new Google_Service_FirebaseRulesAPI(...);
|
||||
* $rulesets = $firebaserulesService->rulesets;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_FirebaseRulesAPI_Resource_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 Resource name for Project which owns this `Ruleset`.
|
||||
*
|
||||
* Format: `projects/{project_id}`
|
||||
* @param Google_Service_FirebaseRulesAPI_Ruleset $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_FirebaseRulesAPI_Ruleset
|
||||
*/
|
||||
public function create($name, Google_Service_FirebaseRulesAPI_Ruleset $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_FirebaseRulesAPI_Ruleset");
|
||||
}
|
||||
/**
|
||||
* Delete a `Ruleset` by resource name.
|
||||
*
|
||||
* If the `Ruleset` is referenced by a `Release` the operation will fail.
|
||||
* (rulesets.delete)
|
||||
*
|
||||
* @param string $name Resource name for the ruleset to delete.
|
||||
*
|
||||
* Format: `projects/{project_id}/rulesets/{ruleset_id}`
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_FirebaseRulesAPI_FirebaserulesEmpty
|
||||
*/
|
||||
public function delete($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_FirebaseRulesAPI_FirebaserulesEmpty");
|
||||
}
|
||||
/**
|
||||
* Get a `Ruleset` by name including the full `Source` contents. (rulesets.get)
|
||||
*
|
||||
* @param string $name Resource name for the ruleset to get.
|
||||
*
|
||||
* Format: `projects/{project_id}/rulesets/{ruleset_id}`
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_FirebaseRulesAPI_Ruleset
|
||||
*/
|
||||
public function get($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_FirebaseRulesAPI_Ruleset");
|
||||
}
|
||||
/**
|
||||
* 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 Resource name for the project.
|
||||
*
|
||||
* Format: `projects/{project_id}`
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @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 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 Next page token for loading the next batch of
|
||||
* `Ruleset` instances.
|
||||
* @return Google_Service_FirebaseRulesAPI_ListRulesetsResponse
|
||||
*/
|
||||
public function listProjectsRulesets($name, $optParams = array())
|
||||
{
|
||||
$params = array('name' => $name);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_FirebaseRulesAPI_ListRulesetsResponse");
|
||||
}
|
||||
}
|
||||
49
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Ruleset.php
vendored
Normal file
49
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Ruleset.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_Ruleset extends Google_Model
|
||||
{
|
||||
public $createTime;
|
||||
public $name;
|
||||
protected $sourceType = 'Google_Service_FirebaseRulesAPI_Source';
|
||||
protected $sourceDataType = '';
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
public function getCreateTime()
|
||||
{
|
||||
return $this->createTime;
|
||||
}
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function setSource(Google_Service_FirebaseRulesAPI_Source $source)
|
||||
{
|
||||
$this->source = $source;
|
||||
}
|
||||
public function getSource()
|
||||
{
|
||||
return $this->source;
|
||||
}
|
||||
}
|
||||
32
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Source.php
vendored
Normal file
32
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/Source.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_Source extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'files';
|
||||
protected $filesType = 'Google_Service_FirebaseRulesAPI_FirebaserulesFile';
|
||||
protected $filesDataType = 'array';
|
||||
|
||||
public function setFiles($files)
|
||||
{
|
||||
$this->files = $files;
|
||||
}
|
||||
public function getFiles()
|
||||
{
|
||||
return $this->files;
|
||||
}
|
||||
}
|
||||
48
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/SourcePosition.php
vendored
Normal file
48
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/SourcePosition.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_SourcePosition extends Google_Model
|
||||
{
|
||||
public $column;
|
||||
public $fileName;
|
||||
public $line;
|
||||
|
||||
public function setColumn($column)
|
||||
{
|
||||
$this->column = $column;
|
||||
}
|
||||
public function getColumn()
|
||||
{
|
||||
return $this->column;
|
||||
}
|
||||
public function setFileName($fileName)
|
||||
{
|
||||
$this->fileName = $fileName;
|
||||
}
|
||||
public function getFileName()
|
||||
{
|
||||
return $this->fileName;
|
||||
}
|
||||
public function setLine($line)
|
||||
{
|
||||
$this->line = $line;
|
||||
}
|
||||
public function getLine()
|
||||
{
|
||||
return $this->line;
|
||||
}
|
||||
}
|
||||
31
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetRequest.php
vendored
Normal file
31
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetRequest.php
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_TestRulesetRequest extends Google_Model
|
||||
{
|
||||
protected $sourceType = 'Google_Service_FirebaseRulesAPI_Source';
|
||||
protected $sourceDataType = '';
|
||||
|
||||
public function setSource(Google_Service_FirebaseRulesAPI_Source $source)
|
||||
{
|
||||
$this->source = $source;
|
||||
}
|
||||
public function getSource()
|
||||
{
|
||||
return $this->source;
|
||||
}
|
||||
}
|
||||
32
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetResponse.php
vendored
Normal file
32
vendor/google/apiclient-services/src/Google/Service/FirebaseRulesAPI/TestRulesetResponse.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright 2016 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.
|
||||
*/
|
||||
|
||||
class Google_Service_FirebaseRulesAPI_TestRulesetResponse extends Google_Collection
|
||||
{
|
||||
protected $collection_key = 'issues';
|
||||
protected $issuesType = 'Google_Service_FirebaseRulesAPI_Issue';
|
||||
protected $issuesDataType = 'array';
|
||||
|
||||
public function setIssues($issues)
|
||||
{
|
||||
$this->issues = $issues;
|
||||
}
|
||||
public function getIssues()
|
||||
{
|
||||
return $this->issues;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user