@synchronized('lock')
    def exchange_declare(self, exchange, exch_type, passive=False, durable=False, auto_delete=True,
                         nowait=False, arguments=None):
        arguments = arguments or {}
        args = AMQPWriter()
        args.write_short(0)  # reserved-1
        args.write_shortstr(exchange)  # exchange name
        args.write_shortstr(exch_type)  # exchange type
        args.write_bit(passive)  # passive
        args.write_bit(durable)  # durable
        args.write_bit(auto_delete)  # auto-delete
        args.write_bit(False)  # internal
        args.write_bit(nowait)
        args.write_table(arguments)
        self._send_method(Method(spec.Exchange.Declare, args))

        if not nowait:
            return self.wait(spec.Exchange.DeclareOk)
Updates a disk offering.
dataset/ETHPy150Open veegee/amqpy/amqpy/channel.py/Channel.exchange_declare--crossover with--dataset/ETHPy150Open jasonhancock/cloudstack-python-client/CloudStack/Client.py/Client.updateDiskOffering