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\Batch;
|
---|
19 |
|
---|
20 | class AgentTaskRunnable extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var bool
|
---|
24 | */
|
---|
25 | public $alwaysRun;
|
---|
26 | /**
|
---|
27 | * @var bool
|
---|
28 | */
|
---|
29 | public $background;
|
---|
30 | protected $containerType = AgentContainer::class;
|
---|
31 | protected $containerDataType = '';
|
---|
32 | protected $environmentType = AgentEnvironment::class;
|
---|
33 | protected $environmentDataType = '';
|
---|
34 | /**
|
---|
35 | * @var bool
|
---|
36 | */
|
---|
37 | public $ignoreExitStatus;
|
---|
38 | protected $scriptType = AgentScript::class;
|
---|
39 | protected $scriptDataType = '';
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $timeout;
|
---|
44 |
|
---|
45 | /**
|
---|
46 | * @param bool
|
---|
47 | */
|
---|
48 | public function setAlwaysRun($alwaysRun)
|
---|
49 | {
|
---|
50 | $this->alwaysRun = $alwaysRun;
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * @return bool
|
---|
54 | */
|
---|
55 | public function getAlwaysRun()
|
---|
56 | {
|
---|
57 | return $this->alwaysRun;
|
---|
58 | }
|
---|
59 | /**
|
---|
60 | * @param bool
|
---|
61 | */
|
---|
62 | public function setBackground($background)
|
---|
63 | {
|
---|
64 | $this->background = $background;
|
---|
65 | }
|
---|
66 | /**
|
---|
67 | * @return bool
|
---|
68 | */
|
---|
69 | public function getBackground()
|
---|
70 | {
|
---|
71 | return $this->background;
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * @param AgentContainer
|
---|
75 | */
|
---|
76 | public function setContainer(AgentContainer $container)
|
---|
77 | {
|
---|
78 | $this->container = $container;
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * @return AgentContainer
|
---|
82 | */
|
---|
83 | public function getContainer()
|
---|
84 | {
|
---|
85 | return $this->container;
|
---|
86 | }
|
---|
87 | /**
|
---|
88 | * @param AgentEnvironment
|
---|
89 | */
|
---|
90 | public function setEnvironment(AgentEnvironment $environment)
|
---|
91 | {
|
---|
92 | $this->environment = $environment;
|
---|
93 | }
|
---|
94 | /**
|
---|
95 | * @return AgentEnvironment
|
---|
96 | */
|
---|
97 | public function getEnvironment()
|
---|
98 | {
|
---|
99 | return $this->environment;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @param bool
|
---|
103 | */
|
---|
104 | public function setIgnoreExitStatus($ignoreExitStatus)
|
---|
105 | {
|
---|
106 | $this->ignoreExitStatus = $ignoreExitStatus;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @return bool
|
---|
110 | */
|
---|
111 | public function getIgnoreExitStatus()
|
---|
112 | {
|
---|
113 | return $this->ignoreExitStatus;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @param AgentScript
|
---|
117 | */
|
---|
118 | public function setScript(AgentScript $script)
|
---|
119 | {
|
---|
120 | $this->script = $script;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @return AgentScript
|
---|
124 | */
|
---|
125 | public function getScript()
|
---|
126 | {
|
---|
127 | return $this->script;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @param string
|
---|
131 | */
|
---|
132 | public function setTimeout($timeout)
|
---|
133 | {
|
---|
134 | $this->timeout = $timeout;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @return string
|
---|
138 | */
|
---|
139 | public function getTimeout()
|
---|
140 | {
|
---|
141 | return $this->timeout;
|
---|
142 | }
|
---|
143 | }
|
---|
144 |
|
---|
145 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
146 | class_alias(AgentTaskRunnable::class, 'Google_Service_Batch_AgentTaskRunnable');
|
---|