Skip to content

Commit

Permalink
PENG-3135: update objects
Browse files Browse the repository at this point in the history
  • Loading branch information
fformica committed Mar 7, 2024
1 parent 241dc96 commit b805856
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ns1/rest/redirect.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class Redirects(resource.BaseResource):
"forwarding_mode",
"forwarding_type",
]
BOOL_FIELDS = ["ssl_enabled", "force_redirect", "query_forwarding"]
BOOL_FIELDS = ["https_enabled", "https_forced", "query_forwarding"]
INT_FIELDS = ["last_updated"]

def _buildBody(self, domain, path, target, **kwargs):
body = {
Expand Down Expand Up @@ -149,6 +150,11 @@ class RedirectCertificates(resource.BaseResource):
"errors",
]
BOOL_FIELDS = ["processing"]
INT_FIELDS = [
"valid_from",
"valid_until",
"last_updated",
]

def _buildBody(self, domain, **kwargs):
body = {
Expand Down

0 comments on commit b805856

Please sign in to comment.