Skip to content

Commit edc0808

Browse files
1 parent 9a5c2ea commit edc0808

7 files changed

+618
-0
lines changed

src/Firebaseappcheck.php

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Firebaseappcheck extends \Google\Service
5353
public $projects_apps_recaptchaV3Config;
5454
public $projects_apps_safetyNetConfig;
5555
public $projects_services;
56+
public $projects_services_resourcePolicies;
5657
public $rootUrlTemplate;
5758

5859
/**
@@ -690,6 +691,96 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
690691
]
691692
]
692693
);
694+
$this->projects_services_resourcePolicies = new Firebaseappcheck\Resource\ProjectsServicesResourcePolicies(
695+
$this,
696+
$this->serviceName,
697+
'resourcePolicies',
698+
[
699+
'methods' => [
700+
'batchUpdate' => [
701+
'path' => 'v1/{+parent}/resourcePolicies:batchUpdate',
702+
'httpMethod' => 'POST',
703+
'parameters' => [
704+
'parent' => [
705+
'location' => 'path',
706+
'type' => 'string',
707+
'required' => true,
708+
],
709+
],
710+
],'create' => [
711+
'path' => 'v1/{+parent}/resourcePolicies',
712+
'httpMethod' => 'POST',
713+
'parameters' => [
714+
'parent' => [
715+
'location' => 'path',
716+
'type' => 'string',
717+
'required' => true,
718+
],
719+
],
720+
],'delete' => [
721+
'path' => 'v1/{+name}',
722+
'httpMethod' => 'DELETE',
723+
'parameters' => [
724+
'name' => [
725+
'location' => 'path',
726+
'type' => 'string',
727+
'required' => true,
728+
],
729+
'etag' => [
730+
'location' => 'query',
731+
'type' => 'string',
732+
],
733+
],
734+
],'get' => [
735+
'path' => 'v1/{+name}',
736+
'httpMethod' => 'GET',
737+
'parameters' => [
738+
'name' => [
739+
'location' => 'path',
740+
'type' => 'string',
741+
'required' => true,
742+
],
743+
],
744+
],'list' => [
745+
'path' => 'v1/{+parent}/resourcePolicies',
746+
'httpMethod' => 'GET',
747+
'parameters' => [
748+
'parent' => [
749+
'location' => 'path',
750+
'type' => 'string',
751+
'required' => true,
752+
],
753+
'filter' => [
754+
'location' => 'query',
755+
'type' => 'string',
756+
],
757+
'pageSize' => [
758+
'location' => 'query',
759+
'type' => 'integer',
760+
],
761+
'pageToken' => [
762+
'location' => 'query',
763+
'type' => 'string',
764+
],
765+
],
766+
],'patch' => [
767+
'path' => 'v1/{+name}',
768+
'httpMethod' => 'PATCH',
769+
'parameters' => [
770+
'name' => [
771+
'location' => 'path',
772+
'type' => 'string',
773+
'required' => true,
774+
],
775+
'updateMask' => [
776+
'location' => 'query',
777+
'type' => 'string',
778+
],
779+
],
780+
],
781+
]
782+
]
783+
);
693784
}
694785
}
695786

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Firebaseappcheck;
19+
20+
class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest extends \Google\Collection
21+
{
22+
protected $collection_key = 'requests';
23+
protected $requestsType = GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest::class;
24+
protected $requestsDataType = 'array';
25+
/**
26+
* @var string
27+
*/
28+
public $updateMask;
29+
30+
/**
31+
* @param GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest[]
32+
*/
33+
public function setRequests($requests)
34+
{
35+
$this->requests = $requests;
36+
}
37+
/**
38+
* @return GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest[]
39+
*/
40+
public function getRequests()
41+
{
42+
return $this->requests;
43+
}
44+
/**
45+
* @param string
46+
*/
47+
public function setUpdateMask($updateMask)
48+
{
49+
$this->updateMask = $updateMask;
50+
}
51+
/**
52+
* @return string
53+
*/
54+
public function getUpdateMask()
55+
{
56+
return $this->updateMask;
57+
}
58+
}
59+
60+
// Adding a class alias for backwards compatibility with the previous class name.
61+
class_alias(GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest::class, 'Google_Service_Firebaseappcheck_GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest');
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Firebaseappcheck;
19+
20+
class GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'resourcePolicies';
23+
protected $resourcePoliciesType = GoogleFirebaseAppcheckV1ResourcePolicy::class;
24+
protected $resourcePoliciesDataType = 'array';
25+
26+
/**
27+
* @param GoogleFirebaseAppcheckV1ResourcePolicy[]
28+
*/
29+
public function setResourcePolicies($resourcePolicies)
30+
{
31+
$this->resourcePolicies = $resourcePolicies;
32+
}
33+
/**
34+
* @return GoogleFirebaseAppcheckV1ResourcePolicy[]
35+
*/
36+
public function getResourcePolicies()
37+
{
38+
return $this->resourcePolicies;
39+
}
40+
}
41+
42+
// Adding a class alias for backwards compatibility with the previous class name.
43+
class_alias(GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse::class, 'Google_Service_Firebaseappcheck_GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse');
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Firebaseappcheck;
19+
20+
class GoogleFirebaseAppcheckV1ListResourcePoliciesResponse extends \Google\Collection
21+
{
22+
protected $collection_key = 'resourcePolicies';
23+
/**
24+
* @var string
25+
*/
26+
public $nextPageToken;
27+
protected $resourcePoliciesType = GoogleFirebaseAppcheckV1ResourcePolicy::class;
28+
protected $resourcePoliciesDataType = 'array';
29+
30+
/**
31+
* @param string
32+
*/
33+
public function setNextPageToken($nextPageToken)
34+
{
35+
$this->nextPageToken = $nextPageToken;
36+
}
37+
/**
38+
* @return string
39+
*/
40+
public function getNextPageToken()
41+
{
42+
return $this->nextPageToken;
43+
}
44+
/**
45+
* @param GoogleFirebaseAppcheckV1ResourcePolicy[]
46+
*/
47+
public function setResourcePolicies($resourcePolicies)
48+
{
49+
$this->resourcePolicies = $resourcePolicies;
50+
}
51+
/**
52+
* @return GoogleFirebaseAppcheckV1ResourcePolicy[]
53+
*/
54+
public function getResourcePolicies()
55+
{
56+
return $this->resourcePolicies;
57+
}
58+
}
59+
60+
// Adding a class alias for backwards compatibility with the previous class name.
61+
class_alias(GoogleFirebaseAppcheckV1ListResourcePoliciesResponse::class, 'Google_Service_Firebaseappcheck_GoogleFirebaseAppcheckV1ListResourcePoliciesResponse');
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\Firebaseappcheck;
19+
20+
class GoogleFirebaseAppcheckV1ResourcePolicy extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $enforcementMode;
26+
/**
27+
* @var string
28+
*/
29+
public $etag;
30+
/**
31+
* @var string
32+
*/
33+
public $name;
34+
/**
35+
* @var string
36+
*/
37+
public $targetResource;
38+
/**
39+
* @var string
40+
*/
41+
public $updateTime;
42+
43+
/**
44+
* @param string
45+
*/
46+
public function setEnforcementMode($enforcementMode)
47+
{
48+
$this->enforcementMode = $enforcementMode;
49+
}
50+
/**
51+
* @return string
52+
*/
53+
public function getEnforcementMode()
54+
{
55+
return $this->enforcementMode;
56+
}
57+
/**
58+
* @param string
59+
*/
60+
public function setEtag($etag)
61+
{
62+
$this->etag = $etag;
63+
}
64+
/**
65+
* @return string
66+
*/
67+
public function getEtag()
68+
{
69+
return $this->etag;
70+
}
71+
/**
72+
* @param string
73+
*/
74+
public function setName($name)
75+
{
76+
$this->name = $name;
77+
}
78+
/**
79+
* @return string
80+
*/
81+
public function getName()
82+
{
83+
return $this->name;
84+
}
85+
/**
86+
* @param string
87+
*/
88+
public function setTargetResource($targetResource)
89+
{
90+
$this->targetResource = $targetResource;
91+
}
92+
/**
93+
* @return string
94+
*/
95+
public function getTargetResource()
96+
{
97+
return $this->targetResource;
98+
}
99+
/**
100+
* @param string
101+
*/
102+
public function setUpdateTime($updateTime)
103+
{
104+
$this->updateTime = $updateTime;
105+
}
106+
/**
107+
* @return string
108+
*/
109+
public function getUpdateTime()
110+
{
111+
return $this->updateTime;
112+
}
113+
}
114+
115+
// Adding a class alias for backwards compatibility with the previous class name.
116+
class_alias(GoogleFirebaseAppcheckV1ResourcePolicy::class, 'Google_Service_Firebaseappcheck_GoogleFirebaseAppcheckV1ResourcePolicy');

0 commit comments

Comments
 (0)