Class: Google::Apis::StorageV1::TestIamPermissionsResponse
- Inherits:
-
Object
- Object
- Google::Apis::StorageV1::TestIamPermissionsResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/storage_v1/classes.rb,
lib/google/apis/storage_v1/representations.rb,
lib/google/apis/storage_v1/representations.rb
Overview
A storage.(buckets|objects|managedFolders).testIamPermissions response.
Instance Attribute Summary collapse
-
#kind ⇒ String
The kind of item this is.
-
#permissions ⇒ Array<String>
The permissions held by the caller.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestIamPermissionsResponse
constructor
A new instance of TestIamPermissionsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TestIamPermissionsResponse
Returns a new instance of TestIamPermissionsResponse.
3103 3104 3105 |
# File 'lib/google/apis/storage_v1/classes.rb', line 3103 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
The kind of item this is.
Corresponds to the JSON property kind
3074 3075 3076 |
# File 'lib/google/apis/storage_v1/classes.rb', line 3074 def kind @kind end |
#permissions ⇒ Array<String>
The permissions held by the caller. Permissions are always of the format storage.resource.capability, where resource is one of buckets, objects, or managedFolders. 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.
- storage.managedFolders.delete — Delete managed folder.
- storage.managedFolders.get — Read managed folder metadata.
- storage.managedFolders.getIamPolicy — Read managed folder IAM policy.
- storage.managedFolders.create — Create managed folder.
- storage.managedFolders.list — List managed folders.
- storage.managedFolders.setIamPolicy — Update managed folder IAM policy.
Corresponds to the JSON property
permissions
3101 3102 3103 |
# File 'lib/google/apis/storage_v1/classes.rb', line 3101 def @permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3108 3109 3110 3111 |
# File 'lib/google/apis/storage_v1/classes.rb', line 3108 def update!(**args) @kind = args[:kind] if args.key?(:kind) @permissions = args[:permissions] if args.key?(:permissions) end |