View Source GoogleApi.Storage.V1.Model.Policy (google_api_storage v0.46.0)

A bucket/object/managedFolder IAM policy.

Attributes

  • bindings (type: list(GoogleApi.Storage.V1.Model.PolicyBindings.t), default: nil) - An association between a role, which comes with a set of permissions, and members who may assume that role.
  • etag (type: String.t, default: nil) - HTTP 1.1 Entity tag for the policy.
  • kind (type: String.t, default: storage#policy) - The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
  • resourceId (type: String.t, default: nil) - The ID of the resource to which this policy belongs. Will be of the form projects//buckets/bucket for buckets, projects//buckets/bucket/objects/object for objects, and projects//buckets/bucket/managedFolders/managedFolder. A specific generation may be specified by appending #generationNumber to the end of the object name, e.g. projects//buckets/my-bucket/objects/data.txt#17. The current generation can be denoted with #0. This field is ignored on input.
  • version (type: integer(), default: nil) - The IAM policy format version.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Storage.V1.Model.Policy{
  bindings: [GoogleApi.Storage.V1.Model.PolicyBindings.t()] | nil,
  etag: String.t() | nil,
  kind: String.t() | nil,
  resourceId: String.t() | nil,
  version: integer() | nil
}

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.