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\Storagetransfer;
|
---|
19 |
|
---|
20 | class TransferSpec extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $awsS3CompatibleDataSourceType = AwsS3CompatibleData::class;
|
---|
23 | protected $awsS3CompatibleDataSourceDataType = '';
|
---|
24 | protected $awsS3DataSourceType = AwsS3Data::class;
|
---|
25 | protected $awsS3DataSourceDataType = '';
|
---|
26 | protected $azureBlobStorageDataSourceType = AzureBlobStorageData::class;
|
---|
27 | protected $azureBlobStorageDataSourceDataType = '';
|
---|
28 | protected $gcsDataSinkType = GcsData::class;
|
---|
29 | protected $gcsDataSinkDataType = '';
|
---|
30 | protected $gcsDataSourceType = GcsData::class;
|
---|
31 | protected $gcsDataSourceDataType = '';
|
---|
32 | protected $gcsIntermediateDataLocationType = GcsData::class;
|
---|
33 | protected $gcsIntermediateDataLocationDataType = '';
|
---|
34 | protected $hdfsDataSourceType = HdfsData::class;
|
---|
35 | protected $hdfsDataSourceDataType = '';
|
---|
36 | protected $httpDataSourceType = HttpData::class;
|
---|
37 | protected $httpDataSourceDataType = '';
|
---|
38 | protected $objectConditionsType = ObjectConditions::class;
|
---|
39 | protected $objectConditionsDataType = '';
|
---|
40 | protected $posixDataSinkType = PosixFilesystem::class;
|
---|
41 | protected $posixDataSinkDataType = '';
|
---|
42 | protected $posixDataSourceType = PosixFilesystem::class;
|
---|
43 | protected $posixDataSourceDataType = '';
|
---|
44 | /**
|
---|
45 | * @var string
|
---|
46 | */
|
---|
47 | public $sinkAgentPoolName;
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $sourceAgentPoolName;
|
---|
52 | protected $transferManifestType = TransferManifest::class;
|
---|
53 | protected $transferManifestDataType = '';
|
---|
54 | protected $transferOptionsType = TransferOptions::class;
|
---|
55 | protected $transferOptionsDataType = '';
|
---|
56 |
|
---|
57 | /**
|
---|
58 | * @param AwsS3CompatibleData
|
---|
59 | */
|
---|
60 | public function setAwsS3CompatibleDataSource(AwsS3CompatibleData $awsS3CompatibleDataSource)
|
---|
61 | {
|
---|
62 | $this->awsS3CompatibleDataSource = $awsS3CompatibleDataSource;
|
---|
63 | }
|
---|
64 | /**
|
---|
65 | * @return AwsS3CompatibleData
|
---|
66 | */
|
---|
67 | public function getAwsS3CompatibleDataSource()
|
---|
68 | {
|
---|
69 | return $this->awsS3CompatibleDataSource;
|
---|
70 | }
|
---|
71 | /**
|
---|
72 | * @param AwsS3Data
|
---|
73 | */
|
---|
74 | public function setAwsS3DataSource(AwsS3Data $awsS3DataSource)
|
---|
75 | {
|
---|
76 | $this->awsS3DataSource = $awsS3DataSource;
|
---|
77 | }
|
---|
78 | /**
|
---|
79 | * @return AwsS3Data
|
---|
80 | */
|
---|
81 | public function getAwsS3DataSource()
|
---|
82 | {
|
---|
83 | return $this->awsS3DataSource;
|
---|
84 | }
|
---|
85 | /**
|
---|
86 | * @param AzureBlobStorageData
|
---|
87 | */
|
---|
88 | public function setAzureBlobStorageDataSource(AzureBlobStorageData $azureBlobStorageDataSource)
|
---|
89 | {
|
---|
90 | $this->azureBlobStorageDataSource = $azureBlobStorageDataSource;
|
---|
91 | }
|
---|
92 | /**
|
---|
93 | * @return AzureBlobStorageData
|
---|
94 | */
|
---|
95 | public function getAzureBlobStorageDataSource()
|
---|
96 | {
|
---|
97 | return $this->azureBlobStorageDataSource;
|
---|
98 | }
|
---|
99 | /**
|
---|
100 | * @param GcsData
|
---|
101 | */
|
---|
102 | public function setGcsDataSink(GcsData $gcsDataSink)
|
---|
103 | {
|
---|
104 | $this->gcsDataSink = $gcsDataSink;
|
---|
105 | }
|
---|
106 | /**
|
---|
107 | * @return GcsData
|
---|
108 | */
|
---|
109 | public function getGcsDataSink()
|
---|
110 | {
|
---|
111 | return $this->gcsDataSink;
|
---|
112 | }
|
---|
113 | /**
|
---|
114 | * @param GcsData
|
---|
115 | */
|
---|
116 | public function setGcsDataSource(GcsData $gcsDataSource)
|
---|
117 | {
|
---|
118 | $this->gcsDataSource = $gcsDataSource;
|
---|
119 | }
|
---|
120 | /**
|
---|
121 | * @return GcsData
|
---|
122 | */
|
---|
123 | public function getGcsDataSource()
|
---|
124 | {
|
---|
125 | return $this->gcsDataSource;
|
---|
126 | }
|
---|
127 | /**
|
---|
128 | * @param GcsData
|
---|
129 | */
|
---|
130 | public function setGcsIntermediateDataLocation(GcsData $gcsIntermediateDataLocation)
|
---|
131 | {
|
---|
132 | $this->gcsIntermediateDataLocation = $gcsIntermediateDataLocation;
|
---|
133 | }
|
---|
134 | /**
|
---|
135 | * @return GcsData
|
---|
136 | */
|
---|
137 | public function getGcsIntermediateDataLocation()
|
---|
138 | {
|
---|
139 | return $this->gcsIntermediateDataLocation;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @param HdfsData
|
---|
143 | */
|
---|
144 | public function setHdfsDataSource(HdfsData $hdfsDataSource)
|
---|
145 | {
|
---|
146 | $this->hdfsDataSource = $hdfsDataSource;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @return HdfsData
|
---|
150 | */
|
---|
151 | public function getHdfsDataSource()
|
---|
152 | {
|
---|
153 | return $this->hdfsDataSource;
|
---|
154 | }
|
---|
155 | /**
|
---|
156 | * @param HttpData
|
---|
157 | */
|
---|
158 | public function setHttpDataSource(HttpData $httpDataSource)
|
---|
159 | {
|
---|
160 | $this->httpDataSource = $httpDataSource;
|
---|
161 | }
|
---|
162 | /**
|
---|
163 | * @return HttpData
|
---|
164 | */
|
---|
165 | public function getHttpDataSource()
|
---|
166 | {
|
---|
167 | return $this->httpDataSource;
|
---|
168 | }
|
---|
169 | /**
|
---|
170 | * @param ObjectConditions
|
---|
171 | */
|
---|
172 | public function setObjectConditions(ObjectConditions $objectConditions)
|
---|
173 | {
|
---|
174 | $this->objectConditions = $objectConditions;
|
---|
175 | }
|
---|
176 | /**
|
---|
177 | * @return ObjectConditions
|
---|
178 | */
|
---|
179 | public function getObjectConditions()
|
---|
180 | {
|
---|
181 | return $this->objectConditions;
|
---|
182 | }
|
---|
183 | /**
|
---|
184 | * @param PosixFilesystem
|
---|
185 | */
|
---|
186 | public function setPosixDataSink(PosixFilesystem $posixDataSink)
|
---|
187 | {
|
---|
188 | $this->posixDataSink = $posixDataSink;
|
---|
189 | }
|
---|
190 | /**
|
---|
191 | * @return PosixFilesystem
|
---|
192 | */
|
---|
193 | public function getPosixDataSink()
|
---|
194 | {
|
---|
195 | return $this->posixDataSink;
|
---|
196 | }
|
---|
197 | /**
|
---|
198 | * @param PosixFilesystem
|
---|
199 | */
|
---|
200 | public function setPosixDataSource(PosixFilesystem $posixDataSource)
|
---|
201 | {
|
---|
202 | $this->posixDataSource = $posixDataSource;
|
---|
203 | }
|
---|
204 | /**
|
---|
205 | * @return PosixFilesystem
|
---|
206 | */
|
---|
207 | public function getPosixDataSource()
|
---|
208 | {
|
---|
209 | return $this->posixDataSource;
|
---|
210 | }
|
---|
211 | /**
|
---|
212 | * @param string
|
---|
213 | */
|
---|
214 | public function setSinkAgentPoolName($sinkAgentPoolName)
|
---|
215 | {
|
---|
216 | $this->sinkAgentPoolName = $sinkAgentPoolName;
|
---|
217 | }
|
---|
218 | /**
|
---|
219 | * @return string
|
---|
220 | */
|
---|
221 | public function getSinkAgentPoolName()
|
---|
222 | {
|
---|
223 | return $this->sinkAgentPoolName;
|
---|
224 | }
|
---|
225 | /**
|
---|
226 | * @param string
|
---|
227 | */
|
---|
228 | public function setSourceAgentPoolName($sourceAgentPoolName)
|
---|
229 | {
|
---|
230 | $this->sourceAgentPoolName = $sourceAgentPoolName;
|
---|
231 | }
|
---|
232 | /**
|
---|
233 | * @return string
|
---|
234 | */
|
---|
235 | public function getSourceAgentPoolName()
|
---|
236 | {
|
---|
237 | return $this->sourceAgentPoolName;
|
---|
238 | }
|
---|
239 | /**
|
---|
240 | * @param TransferManifest
|
---|
241 | */
|
---|
242 | public function setTransferManifest(TransferManifest $transferManifest)
|
---|
243 | {
|
---|
244 | $this->transferManifest = $transferManifest;
|
---|
245 | }
|
---|
246 | /**
|
---|
247 | * @return TransferManifest
|
---|
248 | */
|
---|
249 | public function getTransferManifest()
|
---|
250 | {
|
---|
251 | return $this->transferManifest;
|
---|
252 | }
|
---|
253 | /**
|
---|
254 | * @param TransferOptions
|
---|
255 | */
|
---|
256 | public function setTransferOptions(TransferOptions $transferOptions)
|
---|
257 | {
|
---|
258 | $this->transferOptions = $transferOptions;
|
---|
259 | }
|
---|
260 | /**
|
---|
261 | * @return TransferOptions
|
---|
262 | */
|
---|
263 | public function getTransferOptions()
|
---|
264 | {
|
---|
265 | return $this->transferOptions;
|
---|
266 | }
|
---|
267 | }
|
---|
268 |
|
---|
269 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
270 | class_alias(TransferSpec::class, 'Google_Service_Storagetransfer_TransferSpec');
|
---|