SqlRoleDefinitionCreateUpdateParameters Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. SqlRoleDefinitionCreateUpdateParameters
- com.
Implements
public final class SqlRoleDefinitionCreateUpdateParameters
implements JsonSerializable<SqlRoleDefinitionCreateUpdateParameters>
Parameters to create and update an Azure Cosmos DB SQL Role Definition.
Constructor Summary
| Constructor | Description |
|---|---|
| SqlRoleDefinitionCreateUpdateParameters() |
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
SqlRoleDefinitionCreateUpdateParameters
public SqlRoleDefinitionCreateUpdateParameters()
Creates an instance of SqlRoleDefinitionCreateUpdateParameters 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 SqlRoleDefinitionCreateUpdateParameters fromJson(JsonReader jsonReader)
Reads an instance of SqlRoleDefinitionCreateUpdateParameters 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 SqlRoleDefinitionCreateUpdateParameters 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 SqlRoleDefinitionCreateUpdateParameters withPermissions(List<Permission> permissions)
Set the permissions property: The set of operations allowed through this Role Definition.
Parameters:
Returns:
withRoleName
public SqlRoleDefinitionCreateUpdateParameters 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 SqlRoleDefinitionCreateUpdateParameters withType(RoleDefinitionType type)
Set the type property: Indicates whether the Role Definition was built-in or user created.
Parameters:
Returns: