def create_server_profile(self,
                              affinity='Bay',
                              biosSettings=None,
                              bootSettings=None,
                              bootModeSetting=None,
                              profileConnectionV4=None,
                              description=None,
                              firmwareSettingsV3=None,
                              hideUnusedFlexNics=True,
                              localStorageSettingsV3=None,
                              macType='Virtual',
                              name=None,
                              sanStorageV3=None,
                              serialNumber=None,
                              serialNumberType='Physical',
                              serverHardwareTypeUri=None,
                              serverHardwareUri=None,
                              serverProfileTemplateUri=None,
                              uuid=None,
                              wwnType='Virtual',
                              blocking=True, verbose=False):
        """ Create a ServerProfileV5 profile for use with the V200 API

        Args:
            affinity:
                This identifies the behavior of the server profile when the server
                hardware is removed or replaced. This can be set to 'Bay' or
                'BayAndServer'.
            biosSettings:
                Dictionary that describes Server BIOS settings
            bootSettings:
                Dictionary that indicates that the server will attempt to boot from
                this connection. This object can only be specified if
                "boot.manageBoot" is set to 'true'
            bootModeSetting:
                Dictionary that describes the boot mode settings to be configured on
                Gen9 and newer servers.
            profileConnectionV4:
                Array of ProfileConnectionV3
            description:
                Description of the Server Profile
            firmwareSettingsV3:
                FirmwareSettingsV3 dictionary that defines the firmware baseline
                and management
            hideUnusedFlexNics:
                This setting controls the enumeration of physical functions that do
                not correspond to connections in a profile.
            localStorageSettingsV3:
                Dictionary that describes the local storage settings.
            macType:
                Specifies the type of MAC address to be programmed into the IO
                devices. The value can be 'Virtual', 'Physical' or 'UserDefined'.
            name:
                Unique name of the Server Profile
            sanStorageV3:
                Dictionary that describes the SAN storage settings.
            serialNumber:
                A 10-byte value that is exposed to the Operating System as the
                server hardware's Serial Number. The value can be a virtual serial
                number, user defined serial number or physical serial number read
                from the server's ROM. It cannot be modified after the profile is
                created.
            serialNumberType:
                 Specifies the type of Serial Number and UUID to be programmed into
                 the server ROM. The value can be 'Virtual', 'UserDefined', or
                 'Physical'. The serialNumberType defaults to 'Virtual' when
                 serialNumber or uuid are not specified. It cannot be modified
                 after the profile is created.
            serverHardwareTypeUri:
                Identifies the server hardware type for which the Server Profile
                was designed. The serverHardwareTypeUri is determined when the
                profile is created.
            serverHardwareUri:
                 Identifies the server hardware to which the server profile is
                 currently assigned, if applicable
            serverProfileTemplateUri:
                Identifies the Server profile template the Server Profile is based
                on.
            uuid:
                A 36-byte value that is exposed to the Operating System as the
                server hardware's UUID. The value can be a virtual uuid, user
                defined uuid or physical uuid read from the server's ROM. It
                cannot be modified after the profile is created.
            wwnType:
                 Specifies the type of WWN address to be programmed into the IO
                 devices. The value can be 'Virtual', 'Physical' or 'UserDefined'.
                 It cannot be modified after the profile is created.

        Returns: server profile or task
        """

        # Creating a profile returns a task with no resource uri
        profile = make_ServerProfileV5(affinity, biosSettings, bootSettings,
                                       bootModeSetting, profileConnectionV4,
                                       description, firmwareSettingsV3,
                                       hideUnusedFlexNics,
                                       localStorageSettingsV3, macType, name,
                                       sanStorageV3, serialNumber,
                                       serialNumberType, serverHardwareTypeUri,
                                       serverHardwareUri,
                                       serverProfileTemplateUri, uuid, wwnType)
        task, body = self._con.post(uri['profiles'], profile)
        if profile['firmware'] is None:
            tout = 600
        else:
            tout = 3600
        if blocking is True:
            task = self._activity.wait4task(task, tout, verbose=verbose)
            if task in 'type' and task['type'].startswith('Task'):
                entity = self._activity.get_task_associated_resource(task)
                profile = self._con.get(entity['resourceUri'])
                return profile
        return task
dataset/ETHPy150Open HewlettPackard/python-hpOneView/hpOneView/servers.py/servers.create_server_profile/swapped operands of `in`