class Azure::EventGrid::Mgmt::V2020_04_01_preview::Models::IdentityInfo

The identity information for the resource.

Attributes

principal_id[RW]

@return [String] The principal ID of resource identity.

tenant_id[RW]

@return [String] The tenant ID of resource.

type[RW]

@return [IdentityType] The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identity. Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned'

user_assigned_identities[RW]

@return [Hash{String => UserIdentityProperties}] The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. This property is currently not used and reserved for future usage.

Public Class Methods

mapper() click to toggle source

Mapper for IdentityInfo class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2020-04-01-preview/generated/azure_mgmt_event_grid/models/identity_info.rb, line 40
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IdentityInfo',
    type: {
      name: 'Composite',
      class_name: 'IdentityInfo',
      model_properties: {
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        principal_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'principalId',
          type: {
            name: 'String'
          }
        },
        tenant_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tenantId',
          type: {
            name: 'String'
          }
        },
        user_assigned_identities: {
          client_side_validation: true,
          required: false,
          serialized_name: 'userAssignedIdentities',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'UserIdentityPropertiesElementType',
                type: {
                  name: 'Composite',
                  class_name: 'UserIdentityProperties'
                }
            }
          }
        }
      }
    }
  }
end