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 AutomationRule extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $advanceRolloutRuleType = AdvanceRolloutRule::class;
|
---|
23 | protected $advanceRolloutRuleDataType = '';
|
---|
24 | protected $promoteReleaseRuleType = PromoteReleaseRule::class;
|
---|
25 | protected $promoteReleaseRuleDataType = '';
|
---|
26 | protected $repairRolloutRuleType = RepairRolloutRule::class;
|
---|
27 | protected $repairRolloutRuleDataType = '';
|
---|
28 | protected $timedPromoteReleaseRuleType = TimedPromoteReleaseRule::class;
|
---|
29 | protected $timedPromoteReleaseRuleDataType = '';
|
---|
30 |
|
---|
31 | /**
|
---|
32 | * @param AdvanceRolloutRule
|
---|
33 | */
|
---|
34 | public function setAdvanceRolloutRule(AdvanceRolloutRule $advanceRolloutRule)
|
---|
35 | {
|
---|
36 | $this->advanceRolloutRule = $advanceRolloutRule;
|
---|
37 | }
|
---|
38 | /**
|
---|
39 | * @return AdvanceRolloutRule
|
---|
40 | */
|
---|
41 | public function getAdvanceRolloutRule()
|
---|
42 | {
|
---|
43 | return $this->advanceRolloutRule;
|
---|
44 | }
|
---|
45 | /**
|
---|
46 | * @param PromoteReleaseRule
|
---|
47 | */
|
---|
48 | public function setPromoteReleaseRule(PromoteReleaseRule $promoteReleaseRule)
|
---|
49 | {
|
---|
50 | $this->promoteReleaseRule = $promoteReleaseRule;
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * @return PromoteReleaseRule
|
---|
54 | */
|
---|
55 | public function getPromoteReleaseRule()
|
---|
56 | {
|
---|
57 | return $this->promoteReleaseRule;
|
---|
58 | }
|
---|
59 | /**
|
---|
60 | * @param RepairRolloutRule
|
---|
61 | */
|
---|
62 | public function setRepairRolloutRule(RepairRolloutRule $repairRolloutRule)
|
---|
63 | {
|
---|
64 | $this->repairRolloutRule = $repairRolloutRule;
|
---|
65 | }
|
---|
66 | /**
|
---|
67 | * @return RepairRolloutRule
|
---|
68 | */
|
---|
69 | public function getRepairRolloutRule()
|
---|
70 | {
|
---|
71 | return $this->repairRolloutRule;
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * @param TimedPromoteReleaseRule
|
---|
75 | */
|
---|
76 | public function setTimedPromoteReleaseRule(TimedPromoteReleaseRule $timedPromoteReleaseRule)
|
---|
77 | {
|
---|
78 | $this->timedPromoteReleaseRule = $timedPromoteReleaseRule;
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * @return TimedPromoteReleaseRule
|
---|
82 | */
|
---|
83 | public function getTimedPromoteReleaseRule()
|
---|
84 | {
|
---|
85 | return $this->timedPromoteReleaseRule;
|
---|
86 | }
|
---|
87 | }
|
---|
88 |
|
---|
89 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
90 | class_alias(AutomationRule::class, 'Google_Service_CloudDeploy_AutomationRule');
|
---|