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 Details

    • TrustedAccessRoleRule

      public TrustedAccessRoleRule()
      Creates an instance of TrustedAccessRoleRule class.
  • Method Details

    • verbs

      public List<String> verbs()
      Get the verbs property: List of allowed verbs.
      Returns:
      the verbs value.
    • apiGroups

      public List<String> apiGroups()
      Get the apiGroups property: List of allowed apiGroups.
      Returns:
      the apiGroups value.
    • resources

      public List<String> resources()
      Get the resources property: List of allowed resources.
      Returns:
      the resources value.
    • resourceNames

      public List<String> resourceNames()
      Get the resourceNames property: List of allowed names.
      Returns:
      the resourceNames value.
    • nonResourceUrls

      public List<String> 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.