anatools.anaclient.rules module

Rules Functions

edit_organization_rules(self, rules, organizationId=None)

Edit the rules for an organization.

Parameters
  • organizationId (str) – Organization ID of the organization to edit the rules for. If not specified, the current organization is used.

  • rules (str) – String of rules to edit for the organization.

edit_service_rules(self, rules, serviceId)

Edit the rules for a service.

Parameters
  • serviceId (str) – Service ID of the service to edit the rules for. If not specified, the current service is used.

  • rules (str) – String of rules to edit for the service.

edit_user_rules(self, rules)

Edit the rules for the current user.

Parameters

rules (str) – String of rules to edit for the user.

edit_workspace_rules(self, rules, workspaceId=None)

Edit the rules for a workspace.

Parameters
  • workspaceId (str) – Workspace ID of the workspace to edit the rules for. If not specified, the current workspace is used.

  • rules (str) – String of rules to edit for the workspace.

get_organization_rules(self, organizationId=None)

Get the rules for an organization.

Parameters

organizationId (str) – Organization ID of the organization to get the rules for. If not specified, the current organization is used.

Returns

String of rules for the organization.

Return type

str

get_platform_rules(self)

Get the rules for an organization. :returns: String of rules for the platform. :rtype: str

get_service_rules(self, serviceId=None)

Get the rules for a service.

Parameters

serviceId (str) – Service ID of the service to get the rules for. If not specified, the current service is used.

Returns

String of rules for the service.

Return type

str

get_user_rules(self)

Get the rules for the current user.

get_workspace_rules(self, workspaceId=None)

Get the rules for a workspace.

Parameters

workspaceId (str) – Workspace ID of the workspace to get the rules for. If not specified, the current workspace is used.

Returns

String of rules for the workspace.

Return type

str