Skip to content

Latest commit

 

History

History
214 lines (137 loc) · 4.21 KB

dlna.md

File metadata and controls

214 lines (137 loc) · 4.21 KB

Dlna

dlna_controller = client.dlna

Class Name

DlnaController

Methods

Create Profile

Creates a profile.

def create_profile(self,
                  body=None)

Parameters

Parameter Type Tags Description
body DeviceProfile Body, Optional Device profile.

Response Type

void

Example Usage

result = dlna_controller.create_profile()

Errors

HTTP Status Code Error Description Exception Class
401 Unauthorized APIException
403 Forbidden APIException

Delete Profile

Deletes a profile.

def delete_profile(self,
                  profile_id)

Parameters

Parameter Type Tags Description
profile_id string Template, Required Profile id.

Response Type

void

Example Usage

profile_id = 'profileId0'

result = dlna_controller.delete_profile(profile_id)

Errors

HTTP Status Code Error Description Exception Class
401 Unauthorized APIException
403 Forbidden APIException
404 Device profile not found. ProblemDetailsException

Get Default Profile

Gets the default profile.

def get_default_profile(self)

Response Type

DeviceProfile

Example Usage

result = dlna_controller.get_default_profile()

Errors

HTTP Status Code Error Description Exception Class
401 Unauthorized APIException
403 Forbidden APIException

Get Profile

Gets a single profile.

def get_profile(self,
               profile_id)

Parameters

Parameter Type Tags Description
profile_id string Template, Required Profile Id.

Response Type

DeviceProfile

Example Usage

profile_id = 'profileId0'

result = dlna_controller.get_profile(profile_id)

Errors

HTTP Status Code Error Description Exception Class
401 Unauthorized APIException
403 Forbidden APIException
404 Device profile not found. ProblemDetailsException

Get Profile Infos

Get profile infos.

def get_profile_infos(self)

Response Type

List of DeviceProfileInfo

Example Usage

result = dlna_controller.get_profile_infos()

Errors

HTTP Status Code Error Description Exception Class
401 Unauthorized APIException
403 Forbidden APIException

Update Profile

Updates a profile.

def update_profile(self,
                  profile_id,
                  body=None)

Parameters

Parameter Type Tags Description
profile_id string Template, Required Profile id.
body DeviceProfile Body, Optional Device profile.

Response Type

void

Example Usage

profile_id = 'profileId0'

result = dlna_controller.update_profile(profile_id)

Errors

HTTP Status Code Error Description Exception Class
401 Unauthorized APIException
403 Forbidden APIException
404 Device profile not found. ProblemDetailsException