Class TrustedAccessRoleRule
java.lang.Object
com.azure.resourcemanager.containerservice.models.TrustedAccessRoleRule
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TrustedAccessRoleRule>
public final class TrustedAccessRoleRule
extends Object
implements com.azure.json.JsonSerializable<TrustedAccessRoleRule>
Rule for trusted access role.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the apiGroups property: List of allowed apiGroups.static TrustedAccessRoleRulefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrustedAccessRoleRule from the JsonReader.Get the nonResourceUrls property: List of allowed nonResourceURLs.Get the resourceNames property: List of allowed names.Get the resources property: List of allowed resources.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.verbs()Get the verbs property: List of allowed verbs.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TrustedAccessRoleRule
public TrustedAccessRoleRule()Creates an instance of TrustedAccessRoleRule class.
-
-
Method Details
-
verbs
Get the verbs property: List of allowed verbs.- Returns:
- the verbs value.
-
apiGroups
Get the apiGroups property: List of allowed apiGroups.- Returns:
- the apiGroups value.
-
resources
Get the resources property: List of allowed resources.- Returns:
- the resources value.
-
resourceNames
Get the resourceNames property: List of allowed names.- Returns:
- the resourceNames value.
-
nonResourceUrls
Get the nonResourceUrls property: List of allowed nonResourceURLs.- Returns:
- the nonResourceUrls value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TrustedAccessRoleRule>- Throws:
IOException
-
fromJson
public static TrustedAccessRoleRule fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TrustedAccessRoleRule from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TrustedAccessRoleRule 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 TrustedAccessRoleRule.
-