class Azure::DataBoxEdge::Mgmt::V2019_08_01::Models::User

Represents a user who has access to one or more shares on the Data Box Edge/Gateway device.

Attributes

encrypted_password[RW]

@return [AsymmetricEncryptedSecret] The password details.

share_access_rights[RW]

@return [Array<ShareAccessRight>] List of shares that the user has rights on. This field should not be specified during user creation.

user_type[RW]

@return [UserType] Type of the user. Possible values include: 'Share', 'LocalManagement', 'ARM'

Private Class Methods

mapper() click to toggle source

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

# File lib/2019-08-01/generated/azure_mgmt_databoxedge/models/user.rb, line 32
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'User',
    type: {
      name: 'Composite',
      class_name: 'User',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        encrypted_password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.encryptedPassword',
          type: {
            name: 'Composite',
            class_name: 'AsymmetricEncryptedSecret'
          }
        },
        share_access_rights: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.shareAccessRights',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ShareAccessRightElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ShareAccessRight'
                }
            }
          }
        },
        user_type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.userType',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end