View Source GoogleApi.IAM.V2.Model.GoogleIamV2Policy (google_api_iam v0.42.0)

Data for an IAM policy.

Attributes

  • annotations (type: map(), default: nil) - A key-value map to store arbitrary metadata for the Policy. Keys can be up to 63 characters. Values can be up to 255 characters.
  • createTime (type: DateTime.t, default: nil) - Output only. The time when the Policy was created.
  • deleteTime (type: DateTime.t, default: nil) - Output only. The time when the Policy was deleted. Empty if the policy is not deleted.
  • displayName (type: String.t, default: nil) - A user-specified description of the Policy. This value can be up to 63 characters.
  • etag (type: String.t, default: nil) - An opaque tag that identifies the current version of the Policy. IAM uses this value to help manage concurrent updates, so they do not cause one update to be overwritten by another. If this field is present in a CreatePolicyRequest, the value is ignored.
  • kind (type: String.t, default: nil) - Output only. The kind of the Policy. Always contains the value DenyPolicy.
  • name (type: String.t, default: nil) - Immutable. The resource name of the Policy, which must be unique. Format: policies/{attachment_point}/denypolicies/{policy_id} The attachment point is identified by its URL-encoded full resource name, which means that the forward-slash character, /, must be written as %2F. For example, policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-deny-policy. For organizations and folders, use the numeric ID in the full resource name. For projects, requests can use the alphanumeric or the numeric ID. Responses always contain the numeric ID.
  • rules (type: list(GoogleApi.IAM.V2.Model.GoogleIamV2PolicyRule.t), default: nil) - A list of rules that specify the behavior of the Policy. All of the rules should be of the kind specified in the Policy.
  • uid (type: String.t, default: nil) - Immutable. The globally unique ID of the Policy. Assigned automatically when the Policy is created.
  • updateTime (type: DateTime.t, default: nil) - Output only. The time when the Policy was last updated.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.IAM.V2.Model.GoogleIamV2Policy{
  annotations: map() | nil,
  createTime: DateTime.t() | nil,
  deleteTime: DateTime.t() | nil,
  displayName: String.t() | nil,
  etag: String.t() | nil,
  kind: String.t() | nil,
  name: String.t() | nil,
  rules: [GoogleApi.IAM.V2.Model.GoogleIamV2PolicyRule.t()] | nil,
  uid: String.t() | nil,
  updateTime: DateTime.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.