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

A bucket/object 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, and projects//buckets/bucket/objects/object for objects. 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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

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
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.