PowerShell verb for "Expire" -


i'm in midst of finalising set of cmdlets server application. part of application includes security principal management , data object management, , "expiration" of both (timed , manual). after expiration date, login , access security principal refused , access data owned principal optionally prevented (either deletion or part of automatic maintenance marking expired).

from output of get-verb, cannot see obvious synonym expire, natural choice of verb action being undertaken here. expire on security principal expires principal , may expire stored data, while expire of data object restricted object.

set- in use both object types, , has partial overlap in functionality (expire- forces date in past, , removes data, while set- allow future or past dates not remove data).

in fashion expire combining 2 operations (set+remove) , data-security reasons, wouldn't want force separation 2 operations (that's possible).

for reason, consider disable- not appropriate since suggests possibility of reversal enable-.

i think remove- inappropriate since there data records not deleted part of operation.

unpublish seems close @ least data, again seems intent unpublish , publish paired, , in case not reversible. not make sense when applied security principal.

so (if any) standard verb expect use, if wanted expire something?

looking @ list of approved verbs, 2 jump out @ me:

deny (dn): refuses, objects, blocks, or opposes state of resource or process.

revoke (rk): specifies action not allow access resource. verb paired grant.

i wouldn't worry if there not paired operation, since happens of built-in cmdlets. stop-computer, example, has no paired start-computer. there remove-variable, no add-variable (there new-variable). think important if paired command exists named consistently.

another option may use set-objectexpiration/get-objectexpiration especially, if makes sense want query when objects going expire.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -