Sha256: fc7eca0323a2dc5b1d1a0776587689cf2d80148e16fdab6d2c555fffa45cdc7c

Contents?: true

Size: 1.84 KB

Versions: 2

Compression:

Stored size: 1.84 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::Batch::Mgmt::V2018_12_01
  module Models
    #
    # The definition of the user identity under which the task is run.

    # Specify either the userName or autoUser property, but not both.
    #
    class UserIdentity

      include MsRestAzure

      # @return [String] The name of the user identity under which the task is
      # run. The userName and autoUser properties are mutually exclusive; you
      # must specify one but not both.
      attr_accessor :user_name

      # @return [AutoUserSpecification] The auto user under which the task is
      # run. The userName and autoUser properties are mutually exclusive; you
      # must specify one but not both.
      attr_accessor :auto_user


      #
      # Mapper for UserIdentity class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'UserIdentity',
          type: {
            name: 'Composite',
            class_name: 'UserIdentity',
            model_properties: {
              user_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'userName',
                type: {
                  name: 'String'
                }
              },
              auto_user: {
                client_side_validation: true,
                required: false,
                serialized_name: 'autoUser',
                type: {
                  name: 'Composite',
                  class_name: 'AutoUserSpecification'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_batch-0.18.1 lib/2018-12-01/generated/azure_mgmt_batch/models/user_identity.rb
azure_mgmt_batch-0.18.0 lib/2018-12-01/generated/azure_mgmt_batch/models/user_identity.rb