Struct google_storage1::api::Policy
source · pub struct Policy {
pub bindings: Option<Vec<PolicyBindings>>,
pub etag: Option<Vec<u8>>,
pub kind: Option<String>,
pub resource_id: Option<String>,
pub version: Option<i32>,
}
Expand description
A bucket/object/managedFolder IAM policy.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get iam policy buckets (response)
- set iam policy buckets (request|response)
- get iam policy managed folders (response)
- set iam policy managed folders (request|response)
- get iam policy objects (response)
- set iam policy objects (request|response)
Fields§
§bindings: Option<Vec<PolicyBindings>>
An association between a role, which comes with a set of permissions, and members who may assume that role.
etag: Option<Vec<u8>>
HTTP 1.1 Entity tag for the policy.
kind: Option<String>
The kind of item this is. For policies, this is always storage#policy. This field is ignored on input.
resource_id: Option<String>
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: Option<i32>
The IAM policy format version.