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\TPU;
|
---|
19 |
|
---|
20 | class QueuedResource extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $createTime;
|
---|
26 | protected $guaranteedType = Guaranteed::class;
|
---|
27 | protected $guaranteedDataType = '';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $name;
|
---|
32 | protected $queueingPolicyType = QueueingPolicy::class;
|
---|
33 | protected $queueingPolicyDataType = '';
|
---|
34 | /**
|
---|
35 | * @var string
|
---|
36 | */
|
---|
37 | public $reservationName;
|
---|
38 | protected $spotType = Spot::class;
|
---|
39 | protected $spotDataType = '';
|
---|
40 | protected $stateType = QueuedResourceState::class;
|
---|
41 | protected $stateDataType = '';
|
---|
42 | protected $tpuType = Tpu::class;
|
---|
43 | protected $tpuDataType = '';
|
---|
44 |
|
---|
45 | /**
|
---|
46 | * @param string
|
---|
47 | */
|
---|
48 | public function setCreateTime($createTime)
|
---|
49 | {
|
---|
50 | $this->createTime = $createTime;
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * @return string
|
---|
54 | */
|
---|
55 | public function getCreateTime()
|
---|
56 | {
|
---|
57 | return $this->createTime;
|
---|
58 | }
|
---|
59 | /**
|
---|
60 | * @param Guaranteed
|
---|
61 | */
|
---|
62 | public function setGuaranteed(Guaranteed $guaranteed)
|
---|
63 | {
|
---|
64 | $this->guaranteed = $guaranteed;
|
---|
65 | }
|
---|
66 | /**
|
---|
67 | * @return Guaranteed
|
---|
68 | */
|
---|
69 | public function getGuaranteed()
|
---|
70 | {
|
---|
71 | return $this->guaranteed;
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * @param string
|
---|
75 | */
|
---|
76 | public function setName($name)
|
---|
77 | {
|
---|
78 | $this->name = $name;
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * @return string
|
---|
82 | */
|
---|
83 | public function getName()
|
---|
84 | {
|
---|
85 | return $this->name;
|
---|
86 | }
|
---|
87 | /**
|
---|
88 | * @param QueueingPolicy
|
---|
89 | */
|
---|
90 | public function setQueueingPolicy(QueueingPolicy $queueingPolicy)
|
---|
91 | {
|
---|
92 | $this->queueingPolicy = $queueingPolicy;
|
---|
93 | }
|
---|
94 | /**
|
---|
95 | * @return QueueingPolicy
|
---|
96 | */
|
---|
97 | public function getQueueingPolicy()
|
---|
98 | {
|
---|
99 | return $this->queueingPolicy;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @param string
|
---|
103 | */
|
---|
104 | public function setReservationName($reservationName)
|
---|
105 | {
|
---|
106 | $this->reservationName = $reservationName;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @return string
|
---|
110 | */
|
---|
111 | public function getReservationName()
|
---|
112 | {
|
---|
113 | return $this->reservationName;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @param Spot
|
---|
117 | */
|
---|
118 | public function setSpot(Spot $spot)
|
---|
119 | {
|
---|
120 | $this->spot = $spot;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @return Spot
|
---|
124 | */
|
---|
125 | public function getSpot()
|
---|
126 | {
|
---|
127 | return $this->spot;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @param QueuedResourceState
|
---|
131 | */
|
---|
132 | public function setState(QueuedResourceState $state)
|
---|
133 | {
|
---|
134 | $this->state = $state;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @return QueuedResourceState
|
---|
138 | */
|
---|
139 | public function getState()
|
---|
140 | {
|
---|
141 | return $this->state;
|
---|
142 | }
|
---|
143 | /**
|
---|
144 | * @param Tpu
|
---|
145 | */
|
---|
146 | public function setTpu(Tpu $tpu)
|
---|
147 | {
|
---|
148 | $this->tpu = $tpu;
|
---|
149 | }
|
---|
150 | /**
|
---|
151 | * @return Tpu
|
---|
152 | */
|
---|
153 | public function getTpu()
|
---|
154 | {
|
---|
155 | return $this->tpu;
|
---|
156 | }
|
---|
157 | }
|
---|
158 |
|
---|
159 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
160 | class_alias(QueuedResource::class, 'Google_Service_TPU_QueuedResource');
|
---|