Comments (5)
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @EldertGrootenboer.
from azure-sdk-for-python.
After Digging into it i realized the way expected was to refer to it using
import ServiceBusReceiveMode
and then
servicebus_client.get_queue_receiver(queue_name, receive_mode=ServiceBusReceiveMode.RECEIVE_AND_DELETE) .
But the Python Definition says the expected value for it is a String hence the confusion and the error at 'ServiceBusReceiveMode.RECEIVE_AND_DELETE'.
I hope we can update more clearly in the Documentation on the right way to change the mode.
from azure-sdk-for-python.
Thank you for the feedback @Binoyman. Ill update the file to include an example to set the receive mode and that should get the docs updated as well. In general our typing for enums allows for the enum or the value represented by that enum as valid input https://learn.microsoft.com/en-us/python/api/azure-servicebus/azure.servicebus.servicebusreceiver?view=azure-python
from azure-sdk-for-python.
Hi @Binoyman. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-python.
Hi @Binoyman, since you haven’t asked that we /unresolve
the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve
to reopen the issue.
from azure-sdk-for-python.
Related Issues (20)
- Missing information about parameter command_id HOT 1
- [Pylint] Add tag to find useless disables
- [DI] Add convert analyzing result to json sample to README.md
- Job creation fails if integer input is set to 0 in a pipeline HOT 1
- Can't set output for pipeline job when loading pipeline component from file HOT 1
- azure-appconfiguration needs docstring updates for sphinx
- Container Properties Cache does not refresh in container recreate
- init
- Create a machine learning pipeline job from YAML file using MLClient HOT 2
- azure_monitor_configure() breaks when used with Credentials HOT 5
- Can not send message to dead letter queue from new receiver HOT 6
- Allow specification of options when creating BlobClient from ContainerClient or BlobServiceClient HOT 1
- Reference url of Container class is incorrect HOT 1
- Refactor appears to have broken retries for azure-core pipelines - take two HOT 3
- Connection Reset by Peer in Function App HOT 2
- Client Connection Sharing confuses ETag value HOT 3
- Eventhub Entra ID authentication fails with RBAC permissions granted on consumer group HOT 2
- Code: BadRequest Message: The JSON provided in the request body is invalid. Property 'sizeWindow' value is not convertible to type 'System.Int32'. HOT 5
- Cannot install any python packages HOT 1
- resource_client.resource_groups.create_or_update causes Pylance error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-python.