共用方式為


CosmosDBSqlRoleDefinitionData Class

Definition

A class representing the CosmosDBSqlRoleDefinition data model. An Azure Cosmos DB SQL Role Definition.

public class CosmosDBSqlRoleDefinitionData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.CosmosDBSqlRoleDefinitionData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.CosmosDBSqlRoleDefinitionData>
type CosmosDBSqlRoleDefinitionData = class
    inherit ResourceData
    interface IJsonModel<CosmosDBSqlRoleDefinitionData>
    interface IPersistableModel<CosmosDBSqlRoleDefinitionData>
Public Class CosmosDBSqlRoleDefinitionData
Inherits ResourceData
Implements IJsonModel(Of CosmosDBSqlRoleDefinitionData), IPersistableModel(Of CosmosDBSqlRoleDefinitionData)
Inheritance
CosmosDBSqlRoleDefinitionData
Implements

Constructors

CosmosDBSqlRoleDefinitionData()

Initializes a new instance of CosmosDBSqlRoleDefinitionData.

Properties

AssignableScopes

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.

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Name

The name of the resource.

(Inherited from ResourceData)
Permissions

The set of operations allowed through this Role Definition.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
RoleDefinitionType

Indicates whether the Role Definition was built-in or user created.

RoleName

A user-friendly name for the Role Definition. Must be unique for the database account.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Explicit Interface Implementations

IJsonModel<CosmosDBSqlRoleDefinitionData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CosmosDBSqlRoleDefinitionData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CosmosDBSqlRoleDefinitionData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CosmosDBSqlRoleDefinitionData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CosmosDBSqlRoleDefinitionData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to