Class: Azure::Storage::Mgmt::V2021_01_01::Models::Identity

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2021-01-01/generated/azure_mgmt_storage/models/identity.rb

Overview

Identity for the resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#principal_idString

Returns The principal ID of resource identity.

Returns:

  • (String)

    The principal ID of resource identity.



16
17
18
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/identity.rb', line 16

def principal_id
  @principal_id
end

#tenant_idString

Returns The tenant ID of resource.

Returns:

  • (String)

    The tenant ID of resource.



19
20
21
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/identity.rb', line 19

def tenant_id
  @tenant_id
end

#typeIdentityType

‘None’, ‘SystemAssigned’, ‘UserAssigned’, ‘SystemAssigned,UserAssigned’

Returns:

  • (IdentityType)

    The identity type. Possible values include:



23
24
25
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/identity.rb', line 23

def type
  @type
end

#user_assigned_identitiesHash{String => UserAssignedIdentity}

key value pairs that describe the set of User Assigned identities that will be used with this storage account. The key is the ARM resource identifier of the identity. Only 1 User Assigned identity is permitted here.

Returns:



30
31
32
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/identity.rb', line 30

def user_assigned_identities
  @user_assigned_identities
end

Class Method Details

.mapperObject

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



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/identity.rb', line 37

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,
          serialized_name: 'type',
          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: 'UserAssignedIdentityElementType',
                type: {
                  name: 'Composite',
                  class_name: 'UserAssignedIdentity'
                }
            }
          }
        }
      }
    }
  }
end