template.policy.definition.fxsport

Operation: POST /dataservice/template/policy/definition/fxsport

Create policy definition

def post(payload: Any) -> Any: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.template.policy.definition.fxsport.post()

Operation: PUT /dataservice/template/policy/definition/fxsport/{id}

Edit a policy definitions

def put(id: str, payload: Any) -> Any: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.template.policy.definition.fxsport.put()

Operation: DELETE /dataservice/template/policy/definition/fxsport/{id}

Delete policy definition

def delete(id: str) -> None: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.template.policy.definition.fxsport.delete()

Operation: GET /dataservice/template/policy/definition/fxsport

@overload
def get() -> Any: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.template.policy.definition.fxsport.get()

Operation: GET /dataservice/template/policy/definition/fxsport/{id}

@overload
def get(id: str) -> Any: ...

Example:

from catalyswan.core import create_client

url = "example.com"
username = "admin"
password = "password123"

with create_client(
    url=url, username=username, password=password
) as client:
    client.template.policy.definition.fxsport.get()