Package | Description |
---|---|
com.google.cloud |
Core classes for the
google-cloud library. |
com.google.cloud.storage |
A client for Cloud Storage - Unified object storage.
|
Modifier and Type | Method and Description |
---|---|
static Role |
Role.editor()
Returns the editor role.
|
static Role |
Role.of(String value)
Returns a new role given its string value.
|
static Role |
Role.owner()
Returns the owner role.
|
static Role |
Role.viewer()
Returns the viewer role.
|
Modifier and Type | Method and Description |
---|---|
Map<Role,Set<Identity>> |
Policy.getBindings()
Returns the map of bindings that comprises the policy.
|
Modifier and Type | Method and Description |
---|---|
Policy.Builder |
Policy.Builder.addIdentity(Role role,
Identity first,
Identity... others)
Adds one or more identities to the policy under the role specified.
|
Policy.Builder |
Policy.Builder.removeIdentity(Role role,
Identity first,
Identity... others)
Removes one or more identities from an existing binding.
|
Policy.Builder |
Policy.Builder.removeRole(Role role)
Removes the role (and all identities associated with that role) from the policy.
|
Modifier and Type | Method and Description |
---|---|
Policy.Builder |
Policy.Builder.setBindings(Map<Role,Set<Identity>> bindings)
Replaces the builder's map of bindings with the given map of bindings.
|
Modifier and Type | Method and Description |
---|---|
static Role |
StorageRoles.admin()
Grants the following permissions:
storage.buckets.*
storage.objects.*
|
static Role |
StorageRoles.legacyBucketOwner()
Grants the following permissions:
storage.buckets.get
storage.buckets.update
storage.buckets.setIamPolicy
storage.buckets.getIamPolicy
storage.objects.list
storage.objects.create
storage.objects.delete
|
static Role |
StorageRoles.legacyBucketReader()
Grants the following permissions:
storage.buckets.get
storage.objects.list
|
static Role |
StorageRoles.legacyBucketWriter()
Grants the following permissions:
storage.buckets.get
storage.objects.list
storage.objects.create
storage.objects.delete
|
static Role |
StorageRoles.legacyObjectOwner()
Grants the following permissions:
storage.objects.get
storage.objects.update
storage.objects.getIamPolicy
storage.objects.setIamPolicy
|
static Role |
StorageRoles.legacyObjectReader()
Grants the following permissions:
storage.objects.get
|
static Role |
StorageRoles.objectAdmin()
Grants the following permissions:
storage.objects.*
|
static Role |
StorageRoles.objectCreator()
Grants the following permissions:
storage.objects.create
|
static Role |
StorageRoles.objectViewer()
Grants the following permissions:
storage.objects.list
storage.objects.get
|
Copyright © 2019 Google LLC. All rights reserved.