@@ -60,7 +60,7 @@ def list_stages(self):
6060 """
6161 Lists infrastructure stages of the API Deployer
6262
63- :rtype: a list of dict. Each dict contains a field "id" for the stage identifier and "desc" for its description.
63+ :rtype: list of dict. Each dict contains a field "id" for the stage identifier and "desc" for its description.
6464 :rtype: list
6565 """
6666 return self .client ._perform_json ("GET" , "/api-deployer/stages" )
@@ -167,7 +167,7 @@ def get_status(self):
167167 """
168168 Returns status information about this infrastructure
169169
170- :rtype: a :class:`dataikuapi.dss.apideployer.DSSAPIDeployerInfraStatus`
170+ :rtype: :class:`dataikuapi.dss.apideployer.DSSAPIDeployerInfraStatus`
171171 """
172172 light = self .client ._perform_json ("GET" , "/api-deployer/infras/%s" % (self .infra_id ))
173173
@@ -272,6 +272,7 @@ def list_deployments(self):
272272 def get_raw (self ):
273273 """
274274 Gets the raw status information. This returns a dictionary with various information about the infrastructure
275+
275276 :rtype: dict
276277 """
277278 return self .light_status
@@ -295,7 +296,8 @@ def id(self):
295296 return self .deployment_id
296297
297298 def get_status (self ):
298- """Returns status information about this deployment
299+ """
300+ Returns status information about this deployment
299301
300302 :rtype: dataikuapi.dss.apideployer.DSSAPIDeployerDeploymentStatus
301303 """
@@ -341,7 +343,8 @@ def delete(self):
341343
342344
343345class DSSAPIDeployerDeploymentSettings (object ):
344- """The settings of an API Deployer deployment.
346+ """
347+ The settings of an API Deployer deployment.
345348
346349 Do not create this directly, use :meth:`~dataikuapi.dss.apideployer.DSSAPIDeployerDeployment.get_settings`
347350 """
@@ -360,7 +363,9 @@ def get_raw(self):
360363 return self .settings
361364
362365 def set_enabled (self , enabled ):
363- """Enables or disables this deployment"""
366+ """
367+ Enables or disables this deployment
368+ """
364369 self .settings ["enabled" ] = enabled
365370
366371 def set_single_version (self , version ):
@@ -375,14 +380,17 @@ def set_single_version(self, version):
375380 }
376381
377382 def save (self ):
378- """Saves back these settings to the deployment"""
383+ """
384+ Saves back these settings to the deployment
385+ """
379386 self .client ._perform_empty (
380387 "PUT" , "/api-deployer/deployments/%s/settings" % (self .deployment_id ),
381388 body = self .settings )
382389
383390
384391class DSSAPIDeployerDeploymentStatus (object ):
385- """The status of an API Deployer deployment.
392+ """
393+ The status of an API Deployer deployment.
386394
387395 Do not create this directly, use :meth:`~dataikuapi.dss.apideployer.DSSAPIDeployerDeployment.get_status`
388396 """
@@ -404,12 +412,15 @@ def get_light(self):
404412 def get_heavy (self ):
405413 """
406414 Gets the 'heavy' (full) status. This returns a dictionary with various information about the deployment
415+
407416 :rtype: dict
408417 """
409418 return self .heavy_status
410419
411420 def get_service_urls (self ):
412- """Returns service-level URLs for this deployment (ie without the enpdoint-specific suffix)"""
421+ """
422+ Returns service-level URLs for this deployment (ie without the enpdoint-specific suffix)
423+ """
413424
414425 if "deployedServiceId" in self .light_status ["deploymentBasicInfo" ]:
415426 service_id = self .light_status ["deploymentBasicInfo" ]["deployedServiceId" ]
@@ -424,7 +435,8 @@ def get_service_urls(self):
424435 raise ValueError ("PublicURL not available for this deployment. It might still be initializing" )
425436
426437 def get_health (self ):
427- """Returns the health of this deployment as a string
438+ """
439+ Returns the health of this deployment as a string
428440
429441 :returns: HEALTHY if the deployment is working properly, various other status otherwise
430442 :rtype: string
@@ -491,6 +503,7 @@ def get_settings(self):
491503 def delete_version (self , version ):
492504 """
493505 Deletes a version from this service
506+
494507 :param string version: The version to delete
495508 """
496509 self .client ._perform_empty (
@@ -507,7 +520,8 @@ def delete(self):
507520
508521
509522class DSSAPIDeployerServiceSettings (object ):
510- """The settings of an API Deployer Service.
523+ """
524+ The settings of an API Deployer Service.
511525
512526 Do not create this directly, use :meth:`~dataikuapi.dss.apideployer.DSSAPIDeployerService.get_settings`
513527 """
@@ -526,14 +540,17 @@ def get_raw(self):
526540 return self .settings
527541
528542 def save (self ):
529- """Saves back these settings to the API service"""
543+ """
544+ Saves back these settings to the API service
545+ """
530546 self .client ._perform_empty (
531547 "PUT" , "/api-deployer/services/%s/settings" % (self .service_id ),
532548 body = self .settings )
533549
534550
535551class DSSAPIDeployerServiceStatus (object ):
536- """The status of an API Deployer Service.
552+ """
553+ The status of an API Deployer Service.
537554
538555 Do not create this directly, use :meth:`~dataikuapi.dss.apideployer.DSSAPIDeployerService.get_status`
539556 """
@@ -556,6 +573,7 @@ def get_versions(self):
556573 def get_raw (self ):
557574 """
558575 Gets the raw status information. This returns a dictionary with various information about the service,
576+
559577 :rtype: dict
560578 """
561579 return self .light_status
0 commit comments