class Azure::Storage::Mgmt::V2018_07_01::Models::Identity

Identity 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 [String] The identity type. Default value: 'SystemAssigned' .

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-07-01/generated/azure_mgmt_storage/models/identity.rb, line 28
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Identity',
    type: {
      name: 'Composite',
      class_name: 'Identity',
      model_properties: {
        principal_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'principalId',
          type: {
            name: 'String'
          }
        },
        tenant_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'tenantId',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          is_constant: true,
          serialized_name: 'type',
          default_value: 'SystemAssigned',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end