Struct google_storage1::Policy [−][src]
pub struct Policy { pub resource_id: Option<String>, pub bindings: Option<Vec<PolicyBindings>>, pub etag: Option<String>, pub kind: Option<String>, }
A bucket/object 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 objects (response)
- set iam policy buckets (request|response)
- set iam policy objects (request|response)
- get iam policy buckets (response)
Fields
resource_id: Option<String>
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.
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<String>
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.
Trait Implementations
impl Default for Policy
[src]
impl Default for Policy
impl Clone for Policy
[src]
impl Clone for Policy
fn clone(&self) -> Policy
[src]
fn clone(&self) -> Policy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Policy
[src]
impl Debug for Policy
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl RequestValue for Policy
[src]
impl RequestValue for Policy
impl ResponseResult for Policy
[src]
impl ResponseResult for Policy