Skip to content

Commit e8200be

Browse files
committed
Modify CreateK8sSecret.
1 parent a110c14 commit e8200be

File tree

5 files changed

+259
-1
lines changed

5 files changed

+259
-1
lines changed

aliyun-python-sdk-edas/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-09-22 Version: 3.23.0
2+
- Modify CreateK8sSecret.
3+
14
2021-09-09 Version: 3.22.0
25
- Modify API InsertK8sApplication.
36
- Modify API DeployK8sApplication.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.22.0'
1+
__version__ = '3.23.0'
Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
from aliyunsdkedas.endpoint import endpoint_data
22+
23+
class CreateApplicationTemplateRequest(RoaRequest):
24+
25+
def __init__(self):
26+
RoaRequest.__init__(self, 'Edas', '2017-08-01', 'CreateApplicationTemplate','Edas')
27+
self.set_uri_pattern('/pop/v5/cnedas/app_template')
28+
self.set_method('POST')
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
35+
def get_NasId(self):
36+
return self.get_body_params().get('NasId')
37+
38+
def set_NasId(self,NasId):
39+
self.add_body_params('NasId', NasId)
40+
41+
def get_EnableAhas(self):
42+
return self.get_body_params().get('EnableAhas')
43+
44+
def set_EnableAhas(self,EnableAhas):
45+
self.add_body_params('EnableAhas', EnableAhas)
46+
47+
def get_SlsConfigs(self):
48+
return self.get_body_params().get('SlsConfigs')
49+
50+
def set_SlsConfigs(self,SlsConfigs):
51+
self.add_body_params('SlsConfigs', SlsConfigs)
52+
53+
def get_CommandArgs(self):
54+
return self.get_body_params().get('CommandArgs')
55+
56+
def set_CommandArgs(self,CommandArgs):
57+
self.add_body_params('CommandArgs', CommandArgs)
58+
59+
def get_Readiness(self):
60+
return self.get_body_params().get('Readiness')
61+
62+
def set_Readiness(self,Readiness):
63+
self.add_body_params('Readiness', Readiness)
64+
65+
def get_Liveness(self):
66+
return self.get_body_params().get('Liveness')
67+
68+
def set_Liveness(self,Liveness):
69+
self.add_body_params('Liveness', Liveness)
70+
71+
def get_Description(self):
72+
return self.get_body_params().get('Description')
73+
74+
def set_Description(self,Description):
75+
self.add_body_params('Description', Description)
76+
77+
def get_Envs(self):
78+
return self.get_body_params().get('Envs')
79+
80+
def set_Envs(self,Envs):
81+
self.add_body_params('Envs', Envs)
82+
83+
def get_EnvFroms(self):
84+
return self.get_body_params().get('EnvFroms')
85+
86+
def set_EnvFroms(self,EnvFroms):
87+
self.add_body_params('EnvFroms', EnvFroms)
88+
89+
def get_RequestCpu(self):
90+
return self.get_body_params().get('RequestCpu')
91+
92+
def set_RequestCpu(self,RequestCpu):
93+
self.add_body_params('RequestCpu', RequestCpu)
94+
95+
def get_RequestMem(self):
96+
return self.get_body_params().get('RequestMem')
97+
98+
def set_RequestMem(self,RequestMem):
99+
self.add_body_params('RequestMem', RequestMem)
100+
101+
def get_ShowName(self):
102+
return self.get_body_params().get('ShowName')
103+
104+
def set_ShowName(self,ShowName):
105+
self.add_body_params('ShowName', ShowName)
106+
107+
def get_LimitMem(self):
108+
return self.get_body_params().get('LimitMem')
109+
110+
def set_LimitMem(self,LimitMem):
111+
self.add_body_params('LimitMem', LimitMem)
112+
113+
def get_ConfigMountDescs(self):
114+
return self.get_body_params().get('ConfigMountDescs')
115+
116+
def set_ConfigMountDescs(self,ConfigMountDescs):
117+
self.add_body_params('ConfigMountDescs', ConfigMountDescs)
118+
119+
def get_DeployAcrossZones(self):
120+
return self.get_body_params().get('DeployAcrossZones')
121+
122+
def set_DeployAcrossZones(self,DeployAcrossZones):
123+
self.add_body_params('DeployAcrossZones', DeployAcrossZones)
124+
125+
def get_DeployAcrossNodes(self):
126+
return self.get_body_params().get('DeployAcrossNodes')
127+
128+
def set_DeployAcrossNodes(self,DeployAcrossNodes):
129+
self.add_body_params('DeployAcrossNodes', DeployAcrossNodes)
130+
131+
def get_PreStop(self):
132+
return self.get_body_params().get('PreStop')
133+
134+
def set_PreStop(self,PreStop):
135+
self.add_body_params('PreStop', PreStop)
136+
137+
def get_Replicas(self):
138+
return self.get_body_params().get('Replicas')
139+
140+
def set_Replicas(self,Replicas):
141+
self.add_body_params('Replicas', Replicas)
142+
143+
def get_LimitCpu(self):
144+
return self.get_body_params().get('LimitCpu')
145+
146+
def set_LimitCpu(self,LimitCpu):
147+
self.add_body_params('LimitCpu', LimitCpu)
148+
149+
def get_WebContainerConfig(self):
150+
return self.get_body_params().get('WebContainerConfig')
151+
152+
def set_WebContainerConfig(self,WebContainerConfig):
153+
self.add_body_params('WebContainerConfig', WebContainerConfig)
154+
155+
def get_PackageConfig(self):
156+
return self.get_body_params().get('PackageConfig')
157+
158+
def set_PackageConfig(self,PackageConfig):
159+
self.add_body_params('PackageConfig', PackageConfig)
160+
161+
def get_IsMultilingualApp(self):
162+
return self.get_body_params().get('IsMultilingualApp')
163+
164+
def set_IsMultilingualApp(self,IsMultilingualApp):
165+
self.add_body_params('IsMultilingualApp', IsMultilingualApp)
166+
167+
def get_NasMountDescs(self):
168+
return self.get_body_params().get('NasMountDescs')
169+
170+
def set_NasMountDescs(self,NasMountDescs):
171+
self.add_body_params('NasMountDescs', NasMountDescs)
172+
173+
def get_LocalVolumes(self):
174+
return self.get_body_params().get('LocalVolumes')
175+
176+
def set_LocalVolumes(self,LocalVolumes):
177+
self.add_body_params('LocalVolumes', LocalVolumes)
178+
179+
def get_Command(self):
180+
return self.get_body_params().get('Command')
181+
182+
def set_Command(self,Command):
183+
self.add_body_params('Command', Command)
184+
185+
def get_NasStorageType(self):
186+
return self.get_body_params().get('NasStorageType')
187+
188+
def set_NasStorageType(self,NasStorageType):
189+
self.add_body_params('NasStorageType', NasStorageType)
190+
191+
def get_ImageConfig(self):
192+
return self.get_body_params().get('ImageConfig')
193+
194+
def set_ImageConfig(self,ImageConfig):
195+
self.add_body_params('ImageConfig', ImageConfig)
196+
197+
def get_SourceConfig(self):
198+
return self.get_body_params().get('SourceConfig')
199+
200+
def set_SourceConfig(self,SourceConfig):
201+
self.add_body_params('SourceConfig', SourceConfig)
202+
203+
def get_EmptyDirs(self):
204+
return self.get_body_params().get('EmptyDirs')
205+
206+
def set_EmptyDirs(self,EmptyDirs):
207+
self.add_body_params('EmptyDirs', EmptyDirs)
208+
209+
def get_PvcMountDescs(self):
210+
return self.get_body_params().get('PvcMountDescs')
211+
212+
def set_PvcMountDescs(self,PvcMountDescs):
213+
self.add_body_params('PvcMountDescs', PvcMountDescs)
214+
215+
def get_Name(self):
216+
return self.get_body_params().get('Name')
217+
218+
def set_Name(self,Name):
219+
self.add_body_params('Name', Name)
220+
221+
def get_Attributes(self):
222+
return self.get_body_params().get('Attributes')
223+
224+
def set_Attributes(self,Attributes):
225+
self.add_body_params('Attributes', Attributes)
226+
227+
def get_RuntimeClassName(self):
228+
return self.get_body_params().get('RuntimeClassName')
229+
230+
def set_RuntimeClassName(self,RuntimeClassName):
231+
self.add_body_params('RuntimeClassName', RuntimeClassName)
232+
233+
def get_JavaStartUpConfig(self):
234+
return self.get_body_params().get('JavaStartUpConfig')
235+
236+
def set_JavaStartUpConfig(self,JavaStartUpConfig):
237+
self.add_body_params('JavaStartUpConfig', JavaStartUpConfig)
238+
239+
def get_PostStart(self):
240+
return self.get_body_params().get('PostStart')
241+
242+
def set_PostStart(self,PostStart):
243+
self.add_body_params('PostStart', PostStart)

aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/CreateK8sSecretRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ def __init__(self):
3232
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3333

3434

35+
def get_Base64Encoded(self):
36+
return self.get_body_params().get('Base64Encoded')
37+
38+
def set_Base64Encoded(self,Base64Encoded):
39+
self.add_body_params('Base64Encoded', Base64Encoded)
40+
3541
def get_Data(self):
3642
return self.get_body_params().get('Data')
3743

aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/UpdateK8sSecretRequest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ def __init__(self):
3232
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3333

3434

35+
def get_Base64Encoded(self):
36+
return self.get_body_params().get('Base64Encoded')
37+
38+
def set_Base64Encoded(self,Base64Encoded):
39+
self.add_body_params('Base64Encoded', Base64Encoded)
40+
3541
def get_Data(self):
3642
return self.get_body_params().get('Data')
3743

0 commit comments

Comments
 (0)