Class RegistryPartialManagedServiceIdentity

java.lang.Object
com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity
com.azure.resourcemanager.machinelearning.models.RegistryPartialManagedServiceIdentity
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedServiceIdentity>

public final class RegistryPartialManagedServiceIdentity extends ManagedServiceIdentity
Managed service identity (system assigned and/or user assigned identities).
  • Constructor Details

    • RegistryPartialManagedServiceIdentity

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

    • principalId

      public UUID principalId()
      Get the principalId property: The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
      Overrides:
      principalId in class ManagedServiceIdentity
      Returns:
      the principalId value.
    • tenantId

      public UUID tenantId()
      Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
      Overrides:
      tenantId in class ManagedServiceIdentity
      Returns:
      the tenantId value.
    • withType

      Set the type property: Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
      Overrides:
      withType in class ManagedServiceIdentity
      Parameters:
      type - the type value to set.
      Returns:
      the ManagedServiceIdentity object itself.
    • withUserAssignedIdentities

      public RegistryPartialManagedServiceIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)
      Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
      Overrides:
      withUserAssignedIdentities in class ManagedServiceIdentity
      Parameters:
      userAssignedIdentities - the userAssignedIdentities value to set.
      Returns:
      the ManagedServiceIdentity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ManagedServiceIdentity
      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<ManagedServiceIdentity>
      Overrides:
      toJson in class ManagedServiceIdentity
      Throws:
      IOException
    • fromJson

      public static RegistryPartialManagedServiceIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RegistryPartialManagedServiceIdentity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RegistryPartialManagedServiceIdentity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the RegistryPartialManagedServiceIdentity.