共用方式為


ArmContainerServiceModelFactory.ContainerServiceTrustedAccessRole Method

Definition

Initializes a new instance of ContainerServiceTrustedAccessRole.

public static Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRole ContainerServiceTrustedAccessRole (string sourceResourceType = default, string name = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleRule> rules = default);
static member ContainerServiceTrustedAccessRole : string * string * seq<Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRoleRule> -> Azure.ResourceManager.ContainerService.Models.ContainerServiceTrustedAccessRole
Public Shared Function ContainerServiceTrustedAccessRole (Optional sourceResourceType As String = Nothing, Optional name As String = Nothing, Optional rules As IEnumerable(Of ContainerServiceTrustedAccessRoleRule) = Nothing) As ContainerServiceTrustedAccessRole

Parameters

sourceResourceType
String

Resource type of Azure resource.

name
String

Name of role, name is unique under a source resource type.

rules
IEnumerable<ContainerServiceTrustedAccessRoleRule>

List of rules for the role. This maps to 'rules' property of Kubernetes Cluster Role.

Returns

A new ContainerServiceTrustedAccessRole instance for mocking.

Applies to