SqlRoleDefinitionResource Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. fluent. models. SqlRoleDefinitionResource
- com.
Implements
public final class SqlRoleDefinitionResource
implements JsonSerializable<SqlRoleDefinitionResource>
Azure Cosmos DB SQL Role Definition resource object.
Constructor Summary
| Constructor | Description |
|---|---|
| SqlRoleDefinitionResource() |
Creates an instance of Sql |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
assignableScopes()
Get the assignable |
|
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
| List<Permission> |
permissions()
Get the permissions property: The set of operations allowed through this Role Definition. |
| String |
roleName()
Get the role |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Role |
type()
Get the type property: Indicates whether the Role Definition was built-in or user created. |
| void |
validate()
Validates the instance. |
|
Sql |
withAssignableScopes(List<String> assignableScopes)
Set the assignable |
|
Sql |
withPermissions(List<Permission> permissions)
Set the permissions property: The set of operations allowed through this Role Definition. |
|
Sql |
withRoleName(String roleName)
Set the role |
|
Sql |
withType(RoleDefinitionType type)
Set the type property: Indicates whether the Role Definition was built-in or user created. |
Methods inherited from java.lang.Object
Constructor Details
SqlRoleDefinitionResource
public SqlRoleDefinitionResource()
Creates an instance of SqlRoleDefinitionResource class.
Method Details
assignableScopes
public List<String> assignableScopes()
Get the assignableScopes property: A set of fully qualified Scopes at or below which Role Assignments may be created using this Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Must have at least one element. Scopes higher than Database account are not enforceable as assignable Scopes. Note that resources referenced in assignable Scopes need not exist.
Returns:
fromJson
public static SqlRoleDefinitionResource fromJson(JsonReader jsonReader)
Reads an instance of SqlRoleDefinitionResource from the JsonReader.
Parameters:
Returns:
Throws:
permissions
public List<Permission> permissions()
Get the permissions property: The set of operations allowed through this Role Definition.
Returns:
roleName
public String roleName()
Get the roleName property: A user-friendly name for the Role Definition. Must be unique for the database account.
Returns:
toJson
type
public RoleDefinitionType type()
Get the type property: Indicates whether the Role Definition was built-in or user created.
Returns:
validate
public void validate()
Validates the instance.
withAssignableScopes
public SqlRoleDefinitionResource withAssignableScopes(List<String> assignableScopes)
Set the assignableScopes property: A set of fully qualified Scopes at or below which Role Assignments may be created using this Role Definition. This will allow application of this Role Definition on the entire database account or any underlying Database / Collection. Must have at least one element. Scopes higher than Database account are not enforceable as assignable Scopes. Note that resources referenced in assignable Scopes need not exist.
Parameters:
Returns:
withPermissions
public SqlRoleDefinitionResource withPermissions(List<Permission> permissions)
Set the permissions property: The set of operations allowed through this Role Definition.
Parameters:
Returns:
withRoleName
public SqlRoleDefinitionResource withRoleName(String roleName)
Set the roleName property: A user-friendly name for the Role Definition. Must be unique for the database account.
Parameters:
Returns:
withType
public SqlRoleDefinitionResource withType(RoleDefinitionType type)
Set the type property: Indicates whether the Role Definition was built-in or user created.
Parameters:
Returns: