SDK reference / Models / Governance

Lock

Kind: class

Namespace: Egulu.Sdk.Models.Governance

A lock on a resource, a resource group or a project.

Properties

NameTypeJSON nameDescription
CreateTimeDateTimeOffset?createTimeThe createTime property
CreatedBystring?createdByWho made the lock (a user, service account or agent).
Etagstring?etagThe etag property
KindModels.Governance.Lock_kind?kindCAN_NOT_DELETE refuses deletes, purges and destroys. READ_ONLY refuses every change (and deletes); reads and removing the lock still work. One lock per target and kind.
Namestring?nameprojects/{project}/locations/{location}/locks/{lock}.
Notestring?noteUp to 200 characters: why it is locked. The refusal shows it.
Targetstring?targetWhat is locked: projects/{project} (the whole project), projects/{project}/locations/{location}/resourceGroups/{group} (every resource the group'sselector matches), or the full name of one resource (projects/{project}/locations/{location}/instances/web-1). Children of a resource are covered too.Fixed when the lock is made.
TargetKindModels.Governance.Lock_targetKind?targetKindPROJECT, RESOURCE_GROUP or RESOURCE, from the target.