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\CloudComposer;
|
---|
19 |
|
---|
20 | class WorkloadsConfig extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $dagProcessorType = DagProcessorResource::class;
|
---|
23 | protected $dagProcessorDataType = '';
|
---|
24 | protected $schedulerType = SchedulerResource::class;
|
---|
25 | protected $schedulerDataType = '';
|
---|
26 | protected $triggererType = TriggererResource::class;
|
---|
27 | protected $triggererDataType = '';
|
---|
28 | protected $webServerType = WebServerResource::class;
|
---|
29 | protected $webServerDataType = '';
|
---|
30 | protected $workerType = WorkerResource::class;
|
---|
31 | protected $workerDataType = '';
|
---|
32 |
|
---|
33 | /**
|
---|
34 | * @param DagProcessorResource
|
---|
35 | */
|
---|
36 | public function setDagProcessor(DagProcessorResource $dagProcessor)
|
---|
37 | {
|
---|
38 | $this->dagProcessor = $dagProcessor;
|
---|
39 | }
|
---|
40 | /**
|
---|
41 | * @return DagProcessorResource
|
---|
42 | */
|
---|
43 | public function getDagProcessor()
|
---|
44 | {
|
---|
45 | return $this->dagProcessor;
|
---|
46 | }
|
---|
47 | /**
|
---|
48 | * @param SchedulerResource
|
---|
49 | */
|
---|
50 | public function setScheduler(SchedulerResource $scheduler)
|
---|
51 | {
|
---|
52 | $this->scheduler = $scheduler;
|
---|
53 | }
|
---|
54 | /**
|
---|
55 | * @return SchedulerResource
|
---|
56 | */
|
---|
57 | public function getScheduler()
|
---|
58 | {
|
---|
59 | return $this->scheduler;
|
---|
60 | }
|
---|
61 | /**
|
---|
62 | * @param TriggererResource
|
---|
63 | */
|
---|
64 | public function setTriggerer(TriggererResource $triggerer)
|
---|
65 | {
|
---|
66 | $this->triggerer = $triggerer;
|
---|
67 | }
|
---|
68 | /**
|
---|
69 | * @return TriggererResource
|
---|
70 | */
|
---|
71 | public function getTriggerer()
|
---|
72 | {
|
---|
73 | return $this->triggerer;
|
---|
74 | }
|
---|
75 | /**
|
---|
76 | * @param WebServerResource
|
---|
77 | */
|
---|
78 | public function setWebServer(WebServerResource $webServer)
|
---|
79 | {
|
---|
80 | $this->webServer = $webServer;
|
---|
81 | }
|
---|
82 | /**
|
---|
83 | * @return WebServerResource
|
---|
84 | */
|
---|
85 | public function getWebServer()
|
---|
86 | {
|
---|
87 | return $this->webServer;
|
---|
88 | }
|
---|
89 | /**
|
---|
90 | * @param WorkerResource
|
---|
91 | */
|
---|
92 | public function setWorker(WorkerResource $worker)
|
---|
93 | {
|
---|
94 | $this->worker = $worker;
|
---|
95 | }
|
---|
96 | /**
|
---|
97 | * @return WorkerResource
|
---|
98 | */
|
---|
99 | public function getWorker()
|
---|
100 | {
|
---|
101 | return $this->worker;
|
---|
102 | }
|
---|
103 | }
|
---|
104 |
|
---|
105 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
106 | class_alias(WorkloadsConfig::class, 'Google_Service_CloudComposer_WorkloadsConfig');
|
---|