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 TransferOperation extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'errorBreakdowns';
|
---|
23 | protected $countersType = TransferCounters::class;
|
---|
24 | protected $countersDataType = '';
|
---|
25 | /**
|
---|
26 | * @var string
|
---|
27 | */
|
---|
28 | public $endTime;
|
---|
29 | protected $errorBreakdownsType = ErrorSummary::class;
|
---|
30 | protected $errorBreakdownsDataType = 'array';
|
---|
31 | protected $loggingConfigType = LoggingConfig::class;
|
---|
32 | protected $loggingConfigDataType = '';
|
---|
33 | /**
|
---|
34 | * @var string
|
---|
35 | */
|
---|
36 | public $name;
|
---|
37 | protected $notificationConfigType = NotificationConfig::class;
|
---|
38 | protected $notificationConfigDataType = '';
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $projectId;
|
---|
43 | /**
|
---|
44 | * @var string
|
---|
45 | */
|
---|
46 | public $startTime;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $status;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $transferJobName;
|
---|
55 | protected $transferSpecType = TransferSpec::class;
|
---|
56 | protected $transferSpecDataType = '';
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * @param TransferCounters
|
---|
60 | */
|
---|
61 | public function setCounters(TransferCounters $counters)
|
---|
62 | {
|
---|
63 | $this->counters = $counters;
|
---|
64 | }
|
---|
65 | /**
|
---|
66 | * @return TransferCounters
|
---|
67 | */
|
---|
68 | public function getCounters()
|
---|
69 | {
|
---|
70 | return $this->counters;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * @param string
|
---|
74 | */
|
---|
75 | public function setEndTime($endTime)
|
---|
76 | {
|
---|
77 | $this->endTime = $endTime;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @return string
|
---|
81 | */
|
---|
82 | public function getEndTime()
|
---|
83 | {
|
---|
84 | return $this->endTime;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @param ErrorSummary[]
|
---|
88 | */
|
---|
89 | public function setErrorBreakdowns($errorBreakdowns)
|
---|
90 | {
|
---|
91 | $this->errorBreakdowns = $errorBreakdowns;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @return ErrorSummary[]
|
---|
95 | */
|
---|
96 | public function getErrorBreakdowns()
|
---|
97 | {
|
---|
98 | return $this->errorBreakdowns;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @param LoggingConfig
|
---|
102 | */
|
---|
103 | public function setLoggingConfig(LoggingConfig $loggingConfig)
|
---|
104 | {
|
---|
105 | $this->loggingConfig = $loggingConfig;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @return LoggingConfig
|
---|
109 | */
|
---|
110 | public function getLoggingConfig()
|
---|
111 | {
|
---|
112 | return $this->loggingConfig;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @param string
|
---|
116 | */
|
---|
117 | public function setName($name)
|
---|
118 | {
|
---|
119 | $this->name = $name;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @return string
|
---|
123 | */
|
---|
124 | public function getName()
|
---|
125 | {
|
---|
126 | return $this->name;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @param NotificationConfig
|
---|
130 | */
|
---|
131 | public function setNotificationConfig(NotificationConfig $notificationConfig)
|
---|
132 | {
|
---|
133 | $this->notificationConfig = $notificationConfig;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @return NotificationConfig
|
---|
137 | */
|
---|
138 | public function getNotificationConfig()
|
---|
139 | {
|
---|
140 | return $this->notificationConfig;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @param string
|
---|
144 | */
|
---|
145 | public function setProjectId($projectId)
|
---|
146 | {
|
---|
147 | $this->projectId = $projectId;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @return string
|
---|
151 | */
|
---|
152 | public function getProjectId()
|
---|
153 | {
|
---|
154 | return $this->projectId;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @param string
|
---|
158 | */
|
---|
159 | public function setStartTime($startTime)
|
---|
160 | {
|
---|
161 | $this->startTime = $startTime;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @return string
|
---|
165 | */
|
---|
166 | public function getStartTime()
|
---|
167 | {
|
---|
168 | return $this->startTime;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @param string
|
---|
172 | */
|
---|
173 | public function setStatus($status)
|
---|
174 | {
|
---|
175 | $this->status = $status;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @return string
|
---|
179 | */
|
---|
180 | public function getStatus()
|
---|
181 | {
|
---|
182 | return $this->status;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @param string
|
---|
186 | */
|
---|
187 | public function setTransferJobName($transferJobName)
|
---|
188 | {
|
---|
189 | $this->transferJobName = $transferJobName;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @return string
|
---|
193 | */
|
---|
194 | public function getTransferJobName()
|
---|
195 | {
|
---|
196 | return $this->transferJobName;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @param TransferSpec
|
---|
200 | */
|
---|
201 | public function setTransferSpec(TransferSpec $transferSpec)
|
---|
202 | {
|
---|
203 | $this->transferSpec = $transferSpec;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @return TransferSpec
|
---|
207 | */
|
---|
208 | public function getTransferSpec()
|
---|
209 | {
|
---|
210 | return $this->transferSpec;
|
---|
211 | }
|
---|
212 | }
|
---|
213 |
|
---|
214 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
215 | class_alias(TransferOperation::class, 'Google_Service_Storagetransfer_TransferOperation');
|
---|