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\CloudDeploy;
|
---|
19 |
|
---|
20 | class Job extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $advanceChildRolloutJobType = AdvanceChildRolloutJob::class;
|
---|
23 | protected $advanceChildRolloutJobDataType = '';
|
---|
24 | protected $createChildRolloutJobType = CreateChildRolloutJob::class;
|
---|
25 | protected $createChildRolloutJobDataType = '';
|
---|
26 | protected $deployJobType = DeployJob::class;
|
---|
27 | protected $deployJobDataType = '';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $id;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $jobRun;
|
---|
36 | protected $postdeployJobType = PostdeployJob::class;
|
---|
37 | protected $postdeployJobDataType = '';
|
---|
38 | protected $predeployJobType = PredeployJob::class;
|
---|
39 | protected $predeployJobDataType = '';
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $skipMessage;
|
---|
44 | /**
|
---|
45 | * @var string
|
---|
46 | */
|
---|
47 | public $state;
|
---|
48 | protected $verifyJobType = VerifyJob::class;
|
---|
49 | protected $verifyJobDataType = '';
|
---|
50 |
|
---|
51 | /**
|
---|
52 | * @param AdvanceChildRolloutJob
|
---|
53 | */
|
---|
54 | public function setAdvanceChildRolloutJob(AdvanceChildRolloutJob $advanceChildRolloutJob)
|
---|
55 | {
|
---|
56 | $this->advanceChildRolloutJob = $advanceChildRolloutJob;
|
---|
57 | }
|
---|
58 | /**
|
---|
59 | * @return AdvanceChildRolloutJob
|
---|
60 | */
|
---|
61 | public function getAdvanceChildRolloutJob()
|
---|
62 | {
|
---|
63 | return $this->advanceChildRolloutJob;
|
---|
64 | }
|
---|
65 | /**
|
---|
66 | * @param CreateChildRolloutJob
|
---|
67 | */
|
---|
68 | public function setCreateChildRolloutJob(CreateChildRolloutJob $createChildRolloutJob)
|
---|
69 | {
|
---|
70 | $this->createChildRolloutJob = $createChildRolloutJob;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * @return CreateChildRolloutJob
|
---|
74 | */
|
---|
75 | public function getCreateChildRolloutJob()
|
---|
76 | {
|
---|
77 | return $this->createChildRolloutJob;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @param DeployJob
|
---|
81 | */
|
---|
82 | public function setDeployJob(DeployJob $deployJob)
|
---|
83 | {
|
---|
84 | $this->deployJob = $deployJob;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @return DeployJob
|
---|
88 | */
|
---|
89 | public function getDeployJob()
|
---|
90 | {
|
---|
91 | return $this->deployJob;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @param string
|
---|
95 | */
|
---|
96 | public function setId($id)
|
---|
97 | {
|
---|
98 | $this->id = $id;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @return string
|
---|
102 | */
|
---|
103 | public function getId()
|
---|
104 | {
|
---|
105 | return $this->id;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @param string
|
---|
109 | */
|
---|
110 | public function setJobRun($jobRun)
|
---|
111 | {
|
---|
112 | $this->jobRun = $jobRun;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @return string
|
---|
116 | */
|
---|
117 | public function getJobRun()
|
---|
118 | {
|
---|
119 | return $this->jobRun;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @param PostdeployJob
|
---|
123 | */
|
---|
124 | public function setPostdeployJob(PostdeployJob $postdeployJob)
|
---|
125 | {
|
---|
126 | $this->postdeployJob = $postdeployJob;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @return PostdeployJob
|
---|
130 | */
|
---|
131 | public function getPostdeployJob()
|
---|
132 | {
|
---|
133 | return $this->postdeployJob;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @param PredeployJob
|
---|
137 | */
|
---|
138 | public function setPredeployJob(PredeployJob $predeployJob)
|
---|
139 | {
|
---|
140 | $this->predeployJob = $predeployJob;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @return PredeployJob
|
---|
144 | */
|
---|
145 | public function getPredeployJob()
|
---|
146 | {
|
---|
147 | return $this->predeployJob;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @param string
|
---|
151 | */
|
---|
152 | public function setSkipMessage($skipMessage)
|
---|
153 | {
|
---|
154 | $this->skipMessage = $skipMessage;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @return string
|
---|
158 | */
|
---|
159 | public function getSkipMessage()
|
---|
160 | {
|
---|
161 | return $this->skipMessage;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @param string
|
---|
165 | */
|
---|
166 | public function setState($state)
|
---|
167 | {
|
---|
168 | $this->state = $state;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @return string
|
---|
172 | */
|
---|
173 | public function getState()
|
---|
174 | {
|
---|
175 | return $this->state;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @param VerifyJob
|
---|
179 | */
|
---|
180 | public function setVerifyJob(VerifyJob $verifyJob)
|
---|
181 | {
|
---|
182 | $this->verifyJob = $verifyJob;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @return VerifyJob
|
---|
186 | */
|
---|
187 | public function getVerifyJob()
|
---|
188 | {
|
---|
189 | return $this->verifyJob;
|
---|
190 | }
|
---|
191 | }
|
---|
192 |
|
---|
193 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
194 | class_alias(Job::class, 'Google_Service_CloudDeploy_Job');
|
---|