summaryrefslogtreecommitdiff
path: root/internal/api/client
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client')
-rw-r--r--internal/api/client/admin/domainpermissionsubscriptioncreate.go11
-rw-r--r--internal/api/client/admin/domainpermissionsubscriptionupdate.go11
2 files changed, 22 insertions, 0 deletions
diff --git a/internal/api/client/admin/domainpermissionsubscriptioncreate.go b/internal/api/client/admin/domainpermissionsubscriptioncreate.go
index f44eda748..e57b4bc3f 100644
--- a/internal/api/client/admin/domainpermissionsubscriptioncreate.go
+++ b/internal/api/client/admin/domainpermissionsubscriptioncreate.go
@@ -94,6 +94,15 @@ import (
// type: boolean
// default: false
// -
+// name: remove_retracted
+// in: formData
+// description: >-
+// If true, then when a list is processed, if the list does *not* contain entries that
+// it *did* contain previously, ie., retracted entries, then domain permissions
+// corresponding to those entries will be removed. If false, they will just be orphaned instead.
+// type: boolean
+// default: true
+// -
// name: uri
// required: true
// in: formData
@@ -234,6 +243,8 @@ func (m *Module) DomainPermissionSubscriptionPOSTHandler(c *gin.Context) {
contentType,
permType,
asDraft,
+ form.AdoptOrphans,
+ form.RemoveRetracted,
util.PtrOrZero(form.FetchUsername), // Optional.
util.PtrOrZero(form.FetchPassword), // Optional.
)
diff --git a/internal/api/client/admin/domainpermissionsubscriptionupdate.go b/internal/api/client/admin/domainpermissionsubscriptionupdate.go
index 364e75f80..416f8ec10 100644
--- a/internal/api/client/admin/domainpermissionsubscriptionupdate.go
+++ b/internal/api/client/admin/domainpermissionsubscriptionupdate.go
@@ -97,6 +97,15 @@ import (
// type: boolean
// default: false
// -
+// name: remove_retracted
+// in: formData
+// description: >-
+// If true, then when a list is processed, if the list does *not* contain entries that
+// it *did* contain previously, ie., retracted entries, then domain permissions
+// corresponding to those entries will be removed. If false, they will just be orphaned instead.
+// type: boolean
+// default: true
+// -
// name: content_type
// in: formData
// description: >-
@@ -227,6 +236,7 @@ func (m *Module) DomainPermissionSubscriptionPATCHHandler(c *gin.Context) {
contentType == nil &&
form.AsDraft == nil &&
form.AdoptOrphans == nil &&
+ form.RemoveRetracted == nil &&
form.FetchUsername == nil &&
form.FetchPassword == nil {
const errText = "no updateable fields set on request"
@@ -244,6 +254,7 @@ func (m *Module) DomainPermissionSubscriptionPATCHHandler(c *gin.Context) {
contentType,
form.AsDraft,
form.AdoptOrphans,
+ form.RemoveRetracted,
form.FetchUsername,
form.FetchPassword,
)