通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmCosmosDBForPostgreSqlModelFactory.CosmosDBForPostgreSqlRoleData Method

Definition

public static Azure.ResourceManager.CosmosDBForPostgreSql.CosmosDBForPostgreSqlRoleData CosmosDBForPostgreSqlRoleData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.CosmosDBForPostgreSql.Models.RoleType? roleType = default, string password = default, Azure.ResourceManager.CosmosDBForPostgreSql.Models.CosmosDBForPostgreSqlProvisioningState? provisioningState = default, Azure.Core.ResourceIdentifier objectId = default, Azure.ResourceManager.CosmosDBForPostgreSql.Models.PrincipalType? principalType = default, Azure.Core.ResourceIdentifier tenantId = default);
static member CosmosDBForPostgreSqlRoleData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.CosmosDBForPostgreSql.Models.RoleType> * string * Nullable<Azure.ResourceManager.CosmosDBForPostgreSql.Models.CosmosDBForPostgreSqlProvisioningState> * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.CosmosDBForPostgreSql.Models.PrincipalType> * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.CosmosDBForPostgreSql.CosmosDBForPostgreSqlRoleData
Public Shared Function CosmosDBForPostgreSqlRoleData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional roleType As Nullable(Of RoleType) = Nothing, Optional password As String = Nothing, Optional provisioningState As Nullable(Of CosmosDBForPostgreSqlProvisioningState) = Nothing, Optional objectId As ResourceIdentifier = Nothing, Optional principalType As Nullable(Of PrincipalType) = Nothing, Optional tenantId As ResourceIdentifier = Nothing) As CosmosDBForPostgreSqlRoleData

Parameters

id
ResourceIdentifier

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

name
String

The name of the resource.

resourceType
ResourceType

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

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

roleType
Nullable<RoleType>

Gets or sets the RoleType.

password
String

The password of the cluster role. If an identity is used, password will not be required.

provisioningState
Nullable<CosmosDBForPostgreSqlProvisioningState>

Provisioning state of the role.

objectId
ResourceIdentifier

A type definition that refers the id to an Azure Resource Manager resource.

principalType
Nullable<PrincipalType>

Gets or sets the PrincipalType.

tenantId
ResourceIdentifier

A type definition that refers the id to an Azure Resource Manager resource.

Returns

A new CosmosDBForPostgreSqlRoleData instance for mocking.

Applies to