PartialManagedServiceIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity

Implements

public final class PartialManagedServiceIdentity
implements JsonSerializable<PartialManagedServiceIdentity>

Managed service identity (system assigned and/or user assigned identities).

Constructor Summary

Constructor Description
PartialManagedServiceIdentity()

Creates an instance of PartialManagedServiceIdentity class.

Method Summary

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

Reads an instance of PartialManagedServiceIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
ManagedServiceIdentityType type()

Get the type property: Managed service identity (system assigned and/or user assigned identities).

Map<String,Object> userAssignedIdentities()

Get the userAssignedIdentities property: The set of user assigned identities associated with the resource.

void validate()

Validates the instance.

PartialManagedServiceIdentity withType(ManagedServiceIdentityType type)

Set the type property: Managed service identity (system assigned and/or user assigned identities).

PartialManagedServiceIdentity withUserAssignedIdentities(Map<String,Object> userAssignedIdentities)

Set the userAssignedIdentities property: The set of user assigned identities associated with the resource.

Methods inherited from java.lang.Object

Constructor Details

PartialManagedServiceIdentity

public PartialManagedServiceIdentity()

Creates an instance of PartialManagedServiceIdentity class.

Method Details

fromJson

public static PartialManagedServiceIdentity fromJson(JsonReader jsonReader)

Reads an instance of PartialManagedServiceIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PartialManagedServiceIdentity 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 PartialManagedServiceIdentity.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ManagedServiceIdentityType type()

Get the type property: Managed service identity (system assigned and/or user assigned identities).

Returns:

the type value.

userAssignedIdentities

public Map<String,Object> userAssignedIdentities()

Get 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.

Returns:

the userAssignedIdentities value.

validate

public void validate()

Validates the instance.

withType

public PartialManagedServiceIdentity withType(ManagedServiceIdentityType type)

Set the type property: Managed service identity (system assigned and/or user assigned identities).

Parameters:

type - the type value to set.

Returns:

the PartialManagedServiceIdentity object itself.

withUserAssignedIdentities

public PartialManagedServiceIdentity withUserAssignedIdentities(Map<String,Object> 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.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the PartialManagedServiceIdentity object itself.

Applies to