Sha256: c0b23c649a50040436b98d62008edf1a91e542f69b7bf84b5aa1dddebc8b9dc7

Contents?: true

Size: 1.87 KB

Versions: 17

Compression:

Stored size: 1.87 KB

Contents

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

module Azure::Resources::Mgmt::V2016_02_01
  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()
        {
          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: false,
                serialized_name: 'type',
                type: {
                  name: 'Enum',
                  module: 'ResourceIdentityType'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
azure_mgmt_resources2-0.19.0 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources2-0.18.2 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.18.2 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.18.1 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.18.0 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.9 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.8 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.7 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.6 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.5 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.4 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.3 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.2 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.1 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.17.0 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.16.0 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb
azure_mgmt_resources-0.15.2 lib/2016-02-01/generated/azure_mgmt_resources/models/identity.rb