SDK reference / Models / Governance
Lock
Kind: class
Namespace: Egulu.Sdk.Models.Governance
A lock on a resource, a resource group or a project.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
CreateTime | DateTimeOffset? | createTime | The createTime property |
CreatedBy | string? | createdBy | Who made the lock (a user, service account or agent). |
Etag | string? | etag | The etag property |
Kind | Models.Governance.Lock_kind? | kind | CAN_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. |
Name | string? | name | projects/{project}/locations/{location}/locks/{lock}. |
Note | string? | note | Up to 200 characters: why it is locked. The refusal shows it. |
Target | string? | target | What 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. |
TargetKind | Models.Governance.Lock_targetKind? | targetKind | PROJECT, RESOURCE_GROUP or RESOURCE, from the target. |