@@ -77,7 +77,7 @@ def get_infra(self, infra_id):
7777 :param str infra_id: Identifier of the infra to get
7878 :rtype: :class:`DSSAPIDeployerDeployment`
7979 """
80- return DSSAPIDeployerDeployment (self .client , infra_id )
80+ return DSSAPIDeployerInfra (self .client , infra_id )
8181
8282 def list_services (self , as_objects = True ):
8383 """
@@ -148,15 +148,6 @@ def get_settings(self):
148148
149149 return DSSAPIDeployerInfraSettings (self .client , self .infra_id , settings )
150150
151- def delete (self ):
152- """
153- Deletes this infra
154-
155- You may only delete a deployment if it is disabled and has been updated after disabling it.
156- """
157- return self .client ._perform_empty (
158- "DELETE" , "/api-deployer/infras/%s" % (self .infra_id ))
159-
160151class DSSAPIDeployerInfraSettings (object ):
161152 """The settings of an API Deployer Infra.
162153
@@ -194,7 +185,7 @@ def get_raw(self):
194185 def save (self ):
195186 """Saves back these settings to the infra"""
196187 self .client ._perform_empty (
197- "PUT" , "/api-deployer/infra /%s/settings" % (self .infra_id ),
188+ "PUT" , "/api-deployer/infras /%s/settings" % (self .infra_id ),
198189 body = self .settings )
199190
200191
0 commit comments