Class Role
Inherited Members
Namespace: Couchbase.Management.Users
Assembly: Couchbase.NetClient.dll
Syntax
public class Role
Constructors
| Edit this page View SourceRole(string)
Creates a new system-wide role (not specific to a bucket)
Declaration
public Role(string roleName)
Parameters
Type | Name | Description |
---|---|---|
string | roleName | symbolic name of the role |
Role(string, string?)
Creates a new role. If the bucket parameter is null, a system-wide role is created. Otherwise, the role applies to all scopes and collections within the bucket.
Declaration
public Role(string roleName, string? bucketName)
Parameters
Type | Name | Description |
---|---|---|
string | roleName | symbolic name of the role. |
string | bucketName | bucket name for the role. |
Role(string, string?, string?)
Creates a new role. If the bucket parameter is null, a system-wide role is created. Otherwise, the role applies to the scope and collections in the scope and bucket.
Declaration
public Role(string roleName, string? bucketName, string? scopeName)
Parameters
Type | Name | Description |
---|---|---|
string | roleName | |
string | bucketName | |
string | scopeName |
Role(string, string?, string?, string?)
Creates a new role. If the bucket parameter is null, a system-wide role is created. Otherwise, the role applies to the scope and collection provided in the bucket.
Declaration
public Role(string roleName, string? bucketName, string? scopeName, string? collectionName)
Parameters
Type | Name | Description |
---|---|---|
string | roleName | |
string | bucketName | |
string | scopeName | |
string | collectionName |
Properties
| Edit this page View SourceBucket
Gives the Role access to a specific Bucket.
Declaration
public string? Bucket { get; }
Property Value
Type | Description |
---|---|
string |
Collection
Gives the Role access to a specific Collection.
Declaration
public string? Collection { get; }
Property Value
Type | Description |
---|---|
string |
Name
The name of the Role.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Scope
Gives the Role access to a specific Scope.
Declaration
public string? Scope { get; }
Property Value
Type | Description |
---|---|
string |
Remarks
Uncommitted: this feature may change in the future.
Methods
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |