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\Keep;
|
---|
19 |
|
---|
20 | class Permission extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var bool
|
---|
24 | */
|
---|
25 | public $deleted;
|
---|
26 | /**
|
---|
27 | * @var string
|
---|
28 | */
|
---|
29 | public $email;
|
---|
30 | protected $familyType = Family::class;
|
---|
31 | protected $familyDataType = '';
|
---|
32 | protected $groupType = Group::class;
|
---|
33 | protected $groupDataType = '';
|
---|
34 | /**
|
---|
35 | * @var string
|
---|
36 | */
|
---|
37 | public $name;
|
---|
38 | /**
|
---|
39 | * @var string
|
---|
40 | */
|
---|
41 | public $role;
|
---|
42 | protected $userType = User::class;
|
---|
43 | protected $userDataType = '';
|
---|
44 |
|
---|
45 | /**
|
---|
46 | * @param bool
|
---|
47 | */
|
---|
48 | public function setDeleted($deleted)
|
---|
49 | {
|
---|
50 | $this->deleted = $deleted;
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * @return bool
|
---|
54 | */
|
---|
55 | public function getDeleted()
|
---|
56 | {
|
---|
57 | return $this->deleted;
|
---|
58 | }
|
---|
59 | /**
|
---|
60 | * @param string
|
---|
61 | */
|
---|
62 | public function setEmail($email)
|
---|
63 | {
|
---|
64 | $this->email = $email;
|
---|
65 | }
|
---|
66 | /**
|
---|
67 | * @return string
|
---|
68 | */
|
---|
69 | public function getEmail()
|
---|
70 | {
|
---|
71 | return $this->email;
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * @param Family
|
---|
75 | */
|
---|
76 | public function setFamily(Family $family)
|
---|
77 | {
|
---|
78 | $this->family = $family;
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * @return Family
|
---|
82 | */
|
---|
83 | public function getFamily()
|
---|
84 | {
|
---|
85 | return $this->family;
|
---|
86 | }
|
---|
87 | /**
|
---|
88 | * @param Group
|
---|
89 | */
|
---|
90 | public function setGroup(Group $group)
|
---|
91 | {
|
---|
92 | $this->group = $group;
|
---|
93 | }
|
---|
94 | /**
|
---|
95 | * @return Group
|
---|
96 | */
|
---|
97 | public function getGroup()
|
---|
98 | {
|
---|
99 | return $this->group;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @param string
|
---|
103 | */
|
---|
104 | public function setName($name)
|
---|
105 | {
|
---|
106 | $this->name = $name;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @return string
|
---|
110 | */
|
---|
111 | public function getName()
|
---|
112 | {
|
---|
113 | return $this->name;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @param string
|
---|
117 | */
|
---|
118 | public function setRole($role)
|
---|
119 | {
|
---|
120 | $this->role = $role;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @return string
|
---|
124 | */
|
---|
125 | public function getRole()
|
---|
126 | {
|
---|
127 | return $this->role;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @param User
|
---|
131 | */
|
---|
132 | public function setUser(User $user)
|
---|
133 | {
|
---|
134 | $this->user = $user;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @return User
|
---|
138 | */
|
---|
139 | public function getUser()
|
---|
140 | {
|
---|
141 | return $this->user;
|
---|
142 | }
|
---|
143 | }
|
---|
144 |
|
---|
145 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
146 | class_alias(Permission::class, 'Google_Service_Keep_Permission');
|
---|