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
18namespace Google\Service\OSConfig;
19
20class PatchConfig extends \Google\Model
21{
22  protected $aptType = AptSettings::class;
23  protected $aptDataType = '';
24  protected $gooType = GooSettings::class;
25  protected $gooDataType = '';
26  /**
27   * @var bool
28   */
29  public $migInstancesAllowed;
30  protected $postStepType = ExecStep::class;
31  protected $postStepDataType = '';
32  protected $preStepType = ExecStep::class;
33  protected $preStepDataType = '';
34  /**
35   * @var string
36   */
37  public $rebootConfig;
38  protected $windowsUpdateType = WindowsUpdateSettings::class;
39  protected $windowsUpdateDataType = '';
40  protected $yumType = YumSettings::class;
41  protected $yumDataType = '';
42  protected $zypperType = ZypperSettings::class;
43  protected $zypperDataType = '';
44
45  /**
46   * @param AptSettings
47   */
48  public function setApt(AptSettings $apt)
49  {
50    $this->apt = $apt;
51  }
52  /**
53   * @return AptSettings
54   */
55  public function getApt()
56  {
57    return $this->apt;
58  }
59  /**
60   * @param GooSettings
61   */
62  public function setGoo(GooSettings $goo)
63  {
64    $this->goo = $goo;
65  }
66  /**
67   * @return GooSettings
68   */
69  public function getGoo()
70  {
71    return $this->goo;
72  }
73  /**
74   * @param bool
75   */
76  public function setMigInstancesAllowed($migInstancesAllowed)
77  {
78    $this->migInstancesAllowed = $migInstancesAllowed;
79  }
80  /**
81   * @return bool
82   */
83  public function getMigInstancesAllowed()
84  {
85    return $this->migInstancesAllowed;
86  }
87  /**
88   * @param ExecStep
89   */
90  public function setPostStep(ExecStep $postStep)
91  {
92    $this->postStep = $postStep;
93  }
94  /**
95   * @return ExecStep
96   */
97  public function getPostStep()
98  {
99    return $this->postStep;
100  }
101  /**
102   * @param ExecStep
103   */
104  public function setPreStep(ExecStep $preStep)
105  {
106    $this->preStep = $preStep;
107  }
108  /**
109   * @return ExecStep
110   */
111  public function getPreStep()
112  {
113    return $this->preStep;
114  }
115  /**
116   * @param string
117   */
118  public function setRebootConfig($rebootConfig)
119  {
120    $this->rebootConfig = $rebootConfig;
121  }
122  /**
123   * @return string
124   */
125  public function getRebootConfig()
126  {
127    return $this->rebootConfig;
128  }
129  /**
130   * @param WindowsUpdateSettings
131   */
132  public function setWindowsUpdate(WindowsUpdateSettings $windowsUpdate)
133  {
134    $this->windowsUpdate = $windowsUpdate;
135  }
136  /**
137   * @return WindowsUpdateSettings
138   */
139  public function getWindowsUpdate()
140  {
141    return $this->windowsUpdate;
142  }
143  /**
144   * @param YumSettings
145   */
146  public function setYum(YumSettings $yum)
147  {
148    $this->yum = $yum;
149  }
150  /**
151   * @return YumSettings
152   */
153  public function getYum()
154  {
155    return $this->yum;
156  }
157  /**
158   * @param ZypperSettings
159   */
160  public function setZypper(ZypperSettings $zypper)
161  {
162    $this->zypper = $zypper;
163  }
164  /**
165   * @return ZypperSettings
166   */
167  public function getZypper()
168  {
169    return $this->zypper;
170  }
171}
172
173// Adding a class alias for backwards compatibility with the previous class name.
174class_alias(PatchConfig::class, 'Google_Service_OSConfig_PatchConfig');
175