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\BackupforGKE;
19 
20 class RestoreConfig extends \Google\Collection
21 {
22   protected $collection_key = 'substitutionRules';
23   /**
24    * @var bool
25    */
26   public $allNamespaces;
27   /**
28    * @var string
29    */
30   public $clusterResourceConflictPolicy;
31   protected $clusterResourceRestoreScopeType = ClusterResourceRestoreScope::class;
32   protected $clusterResourceRestoreScopeDataType = '';
33   /**
34    * @var string
35    */
36   public $namespacedResourceRestoreMode;
37   protected $selectedApplicationsType = NamespacedNames::class;
38   protected $selectedApplicationsDataType = '';
39   protected $selectedNamespacesType = Namespaces::class;
40   protected $selectedNamespacesDataType = '';
41   protected $substitutionRulesType = SubstitutionRule::class;
42   protected $substitutionRulesDataType = 'array';
43   /**
44    * @var string
45    */
46   public $volumeDataRestorePolicy;
47 
48   /**
49    * @param bool
50    */
51   public function setAllNamespaces($allNamespaces)
52   {
53     $this->allNamespaces = $allNamespaces;
54   }
55   /**
56    * @return bool
57    */
58   public function getAllNamespaces()
59   {
60     return $this->allNamespaces;
61   }
62   /**
63    * @param string
64    */
65   public function setClusterResourceConflictPolicy($clusterResourceConflictPolicy)
66   {
67     $this->clusterResourceConflictPolicy = $clusterResourceConflictPolicy;
68   }
69   /**
70    * @return string
71    */
72   public function getClusterResourceConflictPolicy()
73   {
74     return $this->clusterResourceConflictPolicy;
75   }
76   /**
77    * @param ClusterResourceRestoreScope
78    */
79   public function setClusterResourceRestoreScope(ClusterResourceRestoreScope $clusterResourceRestoreScope)
80   {
81     $this->clusterResourceRestoreScope = $clusterResourceRestoreScope;
82   }
83   /**
84    * @return ClusterResourceRestoreScope
85    */
86   public function getClusterResourceRestoreScope()
87   {
88     return $this->clusterResourceRestoreScope;
89   }
90   /**
91    * @param string
92    */
93   public function setNamespacedResourceRestoreMode($namespacedResourceRestoreMode)
94   {
95     $this->namespacedResourceRestoreMode = $namespacedResourceRestoreMode;
96   }
97   /**
98    * @return string
99    */
100   public function getNamespacedResourceRestoreMode()
101   {
102     return $this->namespacedResourceRestoreMode;
103   }
104   /**
105    * @param NamespacedNames
106    */
107   public function setSelectedApplications(NamespacedNames $selectedApplications)
108   {
109     $this->selectedApplications = $selectedApplications;
110   }
111   /**
112    * @return NamespacedNames
113    */
114   public function getSelectedApplications()
115   {
116     return $this->selectedApplications;
117   }
118   /**
119    * @param Namespaces
120    */
121   public function setSelectedNamespaces(Namespaces $selectedNamespaces)
122   {
123     $this->selectedNamespaces = $selectedNamespaces;
124   }
125   /**
126    * @return Namespaces
127    */
128   public function getSelectedNamespaces()
129   {
130     return $this->selectedNamespaces;
131   }
132   /**
133    * @param SubstitutionRule[]
134    */
135   public function setSubstitutionRules($substitutionRules)
136   {
137     $this->substitutionRules = $substitutionRules;
138   }
139   /**
140    * @return SubstitutionRule[]
141    */
142   public function getSubstitutionRules()
143   {
144     return $this->substitutionRules;
145   }
146   /**
147    * @param string
148    */
149   public function setVolumeDataRestorePolicy($volumeDataRestorePolicy)
150   {
151     $this->volumeDataRestorePolicy = $volumeDataRestorePolicy;
152   }
153   /**
154    * @return string
155    */
156   public function getVolumeDataRestorePolicy()
157   {
158     return $this->volumeDataRestorePolicy;
159   }
160 }
161 
162 // Adding a class alias for backwards compatibility with the previous class name.
163 class_alias(RestoreConfig::class, 'Google_Service_BackupforGKE_RestoreConfig');
164