Class: Google::Apis::StorageV1::TestIamPermissionsResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/storage_v1/classes.rb,
generated/google/apis/storage_v1/representations.rb,
generated/google/apis/storage_v1/representations.rb

Overview

A storage.(buckets|objects).testIamPermissions response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TestIamPermissionsResponse

Returns a new instance of TestIamPermissionsResponse.



2010
2011
2012
# File 'generated/google/apis/storage_v1/classes.rb', line 2010

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

The kind of item this is. Corresponds to the JSON property kind

Returns:

  • (String)


1987
1988
1989
# File 'generated/google/apis/storage_v1/classes.rb', line 1987

def kind
  @kind
end

#permissionsArray<String>

The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets or objects. The supported permissions are as follows:

  • storage.buckets.delete — Delete bucket.
  • storage.buckets.get — Read bucket metadata.
  • storage.buckets.getIamPolicy — Read bucket IAM policy.
  • storage.buckets.create — Create bucket.
  • storage.buckets.list — List buckets.
  • storage.buckets.setIamPolicy — Update bucket IAM policy.
  • storage.buckets.update — Update bucket metadata.
  • storage.objects.delete — Delete object.
  • storage.objects.get — Read object data and metadata.
  • storage.objects.getIamPolicy — Read object IAM policy.
  • storage.objects.create — Create object.
  • storage.objects.list — List objects.
  • storage.objects.setIamPolicy — Update object IAM policy.
  • storage.objects.update — Update object metadata. Corresponds to the JSON property permissions

Returns:

  • (Array<String>)


2008
2009
2010
# File 'generated/google/apis/storage_v1/classes.rb', line 2008

def permissions
  @permissions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2015
2016
2017
2018
# File 'generated/google/apis/storage_v1/classes.rb', line 2015

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @permissions = args[:permissions] if args.key?(:permissions)
end