[f9c482b] | 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\DriveActivity;
|
---|
| 19 |
|
---|
| 20 | class Permission extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | /**
|
---|
| 23 | * @var bool
|
---|
| 24 | */
|
---|
| 25 | public $allowDiscovery;
|
---|
| 26 | protected $anyoneType = Anyone::class;
|
---|
| 27 | protected $anyoneDataType = '';
|
---|
| 28 | protected $domainType = Domain::class;
|
---|
| 29 | protected $domainDataType = '';
|
---|
| 30 | protected $groupType = Group::class;
|
---|
| 31 | protected $groupDataType = '';
|
---|
| 32 | /**
|
---|
| 33 | * @var string
|
---|
| 34 | */
|
---|
| 35 | public $role;
|
---|
| 36 | protected $userType = User::class;
|
---|
| 37 | protected $userDataType = '';
|
---|
| 38 |
|
---|
| 39 | /**
|
---|
| 40 | * @param bool
|
---|
| 41 | */
|
---|
| 42 | public function setAllowDiscovery($allowDiscovery)
|
---|
| 43 | {
|
---|
| 44 | $this->allowDiscovery = $allowDiscovery;
|
---|
| 45 | }
|
---|
| 46 | /**
|
---|
| 47 | * @return bool
|
---|
| 48 | */
|
---|
| 49 | public function getAllowDiscovery()
|
---|
| 50 | {
|
---|
| 51 | return $this->allowDiscovery;
|
---|
| 52 | }
|
---|
| 53 | /**
|
---|
| 54 | * @param Anyone
|
---|
| 55 | */
|
---|
| 56 | public function setAnyone(Anyone $anyone)
|
---|
| 57 | {
|
---|
| 58 | $this->anyone = $anyone;
|
---|
| 59 | }
|
---|
| 60 | /**
|
---|
| 61 | * @return Anyone
|
---|
| 62 | */
|
---|
| 63 | public function getAnyone()
|
---|
| 64 | {
|
---|
| 65 | return $this->anyone;
|
---|
| 66 | }
|
---|
| 67 | /**
|
---|
| 68 | * @param Domain
|
---|
| 69 | */
|
---|
| 70 | public function setDomain(Domain $domain)
|
---|
| 71 | {
|
---|
| 72 | $this->domain = $domain;
|
---|
| 73 | }
|
---|
| 74 | /**
|
---|
| 75 | * @return Domain
|
---|
| 76 | */
|
---|
| 77 | public function getDomain()
|
---|
| 78 | {
|
---|
| 79 | return $this->domain;
|
---|
| 80 | }
|
---|
| 81 | /**
|
---|
| 82 | * @param Group
|
---|
| 83 | */
|
---|
| 84 | public function setGroup(Group $group)
|
---|
| 85 | {
|
---|
| 86 | $this->group = $group;
|
---|
| 87 | }
|
---|
| 88 | /**
|
---|
| 89 | * @return Group
|
---|
| 90 | */
|
---|
| 91 | public function getGroup()
|
---|
| 92 | {
|
---|
| 93 | return $this->group;
|
---|
| 94 | }
|
---|
| 95 | /**
|
---|
| 96 | * @param string
|
---|
| 97 | */
|
---|
| 98 | public function setRole($role)
|
---|
| 99 | {
|
---|
| 100 | $this->role = $role;
|
---|
| 101 | }
|
---|
| 102 | /**
|
---|
| 103 | * @return string
|
---|
| 104 | */
|
---|
| 105 | public function getRole()
|
---|
| 106 | {
|
---|
| 107 | return $this->role;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @param User
|
---|
| 111 | */
|
---|
| 112 | public function setUser(User $user)
|
---|
| 113 | {
|
---|
| 114 | $this->user = $user;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @return User
|
---|
| 118 | */
|
---|
| 119 | public function getUser()
|
---|
| 120 | {
|
---|
| 121 | return $this->user;
|
---|
| 122 | }
|
---|
| 123 | }
|
---|
| 124 |
|
---|
| 125 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 126 | class_alias(Permission::class, 'Google_Service_DriveActivity_Permission');
|
---|