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\Testing;
|
---|
19 |
|
---|
20 | class TestSetup extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'initialSetupApks';
|
---|
23 | protected $accountType = Account::class;
|
---|
24 | protected $accountDataType = '';
|
---|
25 | protected $additionalApksType = Apk::class;
|
---|
26 | protected $additionalApksDataType = 'array';
|
---|
27 | /**
|
---|
28 | * @var string[]
|
---|
29 | */
|
---|
30 | public $directoriesToPull;
|
---|
31 | /**
|
---|
32 | * @var bool
|
---|
33 | */
|
---|
34 | public $dontAutograntPermissions;
|
---|
35 | protected $environmentVariablesType = EnvironmentVariable::class;
|
---|
36 | protected $environmentVariablesDataType = 'array';
|
---|
37 | protected $filesToPushType = DeviceFile::class;
|
---|
38 | protected $filesToPushDataType = 'array';
|
---|
39 | protected $initialSetupApksType = Apk::class;
|
---|
40 | protected $initialSetupApksDataType = 'array';
|
---|
41 | /**
|
---|
42 | * @var string
|
---|
43 | */
|
---|
44 | public $networkProfile;
|
---|
45 | protected $systraceType = SystraceSetup::class;
|
---|
46 | protected $systraceDataType = '';
|
---|
47 |
|
---|
48 | /**
|
---|
49 | * @param Account
|
---|
50 | */
|
---|
51 | public function setAccount(Account $account)
|
---|
52 | {
|
---|
53 | $this->account = $account;
|
---|
54 | }
|
---|
55 | /**
|
---|
56 | * @return Account
|
---|
57 | */
|
---|
58 | public function getAccount()
|
---|
59 | {
|
---|
60 | return $this->account;
|
---|
61 | }
|
---|
62 | /**
|
---|
63 | * @param Apk[]
|
---|
64 | */
|
---|
65 | public function setAdditionalApks($additionalApks)
|
---|
66 | {
|
---|
67 | $this->additionalApks = $additionalApks;
|
---|
68 | }
|
---|
69 | /**
|
---|
70 | * @return Apk[]
|
---|
71 | */
|
---|
72 | public function getAdditionalApks()
|
---|
73 | {
|
---|
74 | return $this->additionalApks;
|
---|
75 | }
|
---|
76 | /**
|
---|
77 | * @param string[]
|
---|
78 | */
|
---|
79 | public function setDirectoriesToPull($directoriesToPull)
|
---|
80 | {
|
---|
81 | $this->directoriesToPull = $directoriesToPull;
|
---|
82 | }
|
---|
83 | /**
|
---|
84 | * @return string[]
|
---|
85 | */
|
---|
86 | public function getDirectoriesToPull()
|
---|
87 | {
|
---|
88 | return $this->directoriesToPull;
|
---|
89 | }
|
---|
90 | /**
|
---|
91 | * @param bool
|
---|
92 | */
|
---|
93 | public function setDontAutograntPermissions($dontAutograntPermissions)
|
---|
94 | {
|
---|
95 | $this->dontAutograntPermissions = $dontAutograntPermissions;
|
---|
96 | }
|
---|
97 | /**
|
---|
98 | * @return bool
|
---|
99 | */
|
---|
100 | public function getDontAutograntPermissions()
|
---|
101 | {
|
---|
102 | return $this->dontAutograntPermissions;
|
---|
103 | }
|
---|
104 | /**
|
---|
105 | * @param EnvironmentVariable[]
|
---|
106 | */
|
---|
107 | public function setEnvironmentVariables($environmentVariables)
|
---|
108 | {
|
---|
109 | $this->environmentVariables = $environmentVariables;
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * @return EnvironmentVariable[]
|
---|
113 | */
|
---|
114 | public function getEnvironmentVariables()
|
---|
115 | {
|
---|
116 | return $this->environmentVariables;
|
---|
117 | }
|
---|
118 | /**
|
---|
119 | * @param DeviceFile[]
|
---|
120 | */
|
---|
121 | public function setFilesToPush($filesToPush)
|
---|
122 | {
|
---|
123 | $this->filesToPush = $filesToPush;
|
---|
124 | }
|
---|
125 | /**
|
---|
126 | * @return DeviceFile[]
|
---|
127 | */
|
---|
128 | public function getFilesToPush()
|
---|
129 | {
|
---|
130 | return $this->filesToPush;
|
---|
131 | }
|
---|
132 | /**
|
---|
133 | * @param Apk[]
|
---|
134 | */
|
---|
135 | public function setInitialSetupApks($initialSetupApks)
|
---|
136 | {
|
---|
137 | $this->initialSetupApks = $initialSetupApks;
|
---|
138 | }
|
---|
139 | /**
|
---|
140 | * @return Apk[]
|
---|
141 | */
|
---|
142 | public function getInitialSetupApks()
|
---|
143 | {
|
---|
144 | return $this->initialSetupApks;
|
---|
145 | }
|
---|
146 | /**
|
---|
147 | * @param string
|
---|
148 | */
|
---|
149 | public function setNetworkProfile($networkProfile)
|
---|
150 | {
|
---|
151 | $this->networkProfile = $networkProfile;
|
---|
152 | }
|
---|
153 | /**
|
---|
154 | * @return string
|
---|
155 | */
|
---|
156 | public function getNetworkProfile()
|
---|
157 | {
|
---|
158 | return $this->networkProfile;
|
---|
159 | }
|
---|
160 | /**
|
---|
161 | * @param SystraceSetup
|
---|
162 | */
|
---|
163 | public function setSystrace(SystraceSetup $systrace)
|
---|
164 | {
|
---|
165 | $this->systrace = $systrace;
|
---|
166 | }
|
---|
167 | /**
|
---|
168 | * @return SystraceSetup
|
---|
169 | */
|
---|
170 | public function getSystrace()
|
---|
171 | {
|
---|
172 | return $this->systrace;
|
---|
173 | }
|
---|
174 | }
|
---|
175 |
|
---|
176 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
177 | class_alias(TestSetup::class, 'Google_Service_Testing_TestSetup');
|
---|