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

TrustedAccessRoleInner Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.fluent.models.TrustedAccessRoleInner

Implements

public final class TrustedAccessRoleInner
implements JsonSerializable<TrustedAccessRoleInner>

Trusted access role definition.

Method Summary

Modifier and Type Method and Description
static TrustedAccessRoleInner fromJson(JsonReader jsonReader)

Reads an instance of TrustedAccessRoleInner from the JsonReader.

String name()

Get the name property: Name of role, name is unique under a source resource type.

List<TrustedAccessRoleRule> rules()

Get the rules property: List of rules for the role.

String sourceResourceType()

Get the sourceResourceType property: Resource type of Azure resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static TrustedAccessRoleInner fromJson(JsonReader jsonReader)

Reads an instance of TrustedAccessRoleInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TrustedAccessRoleInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the TrustedAccessRoleInner.

name

public String name()

Get the name property: Name of role, name is unique under a source resource type.

Returns:

the name value.

rules

public List<TrustedAccessRoleRule> rules()

Get the rules property: List of rules for the role. This maps to 'rules' property of [Kubernetes Cluster Role](https://kubernetes.io/docs/reference/kubernetes-api/authorization-resources/cluster-role-v1/\#ClusterRole).

Returns:

the rules value.

sourceResourceType

public String sourceResourceType()

Get the sourceResourceType property: Resource type of Azure resource.

Returns:

the sourceResourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to