Sha256: 34a33b5e202689c06b138960a1a60ee69dfa0b9ada1e71c6b168af1b608f5d8c

Contents?: true

Size: 1.69 KB

Versions: 4

Compression:

Stored size: 1.69 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Resources
  module Models
    #
    # Identity for the resource.
    #
    class Identity

      include MsRestAzure

      # @return [String] The principal id of resource identity.
      attr_accessor :principal_id

      # @return [String] The tenant id of resource.
      attr_accessor :tenant_id

      # @return [ResourceIdentityType] The identity type. Possible values
      # include: 'SystemAssigned'
      attr_accessor :type


      #
      # Mapper for Identity class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'Identity',
          type: {
            name: 'Composite',
            class_name: 'Identity',
            model_properties: {
              principal_id: {
                required: false,
                read_only: true,
                serialized_name: 'principalId',
                type: {
                  name: 'String'
                }
              },
              tenant_id: {
                required: false,
                read_only: true,
                serialized_name: 'tenantId',
                type: {
                  name: 'String'
                }
              },
              type: {
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'Enum',
                  module: 'ResourceIdentityType'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_resources-0.7.0 lib/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.6.0 lib/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.5.0 lib/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.4.0 lib/generated/azure_mgmt_resources/models/identity.rb