question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[doc] example how to instanciate the classe `ProvidersOperations(client, config, serializer, deserializer)`

See original GitHub issue

Hello,

I need to get all the providers of a subscription, in order to get the available apiVersions of each resource, because I’m writing some scripts that need to work with different Azure resources, that needs different apiVersions, for example: resource_client.resources.get_by_id().

From azcli, it’s as simple as az provider list

It seems that the same thing from Python SDK is to use the list method of the class ProvidersOperations: https://learn.microsoft.com/en-us/python/api/azure-mgmt-resource/azure.mgmt.resource.resources.v2021_04_01.operations.providersoperations?view=azure-python

But I cannot figure out how to set the parameters of this class: ProvidersOperations(client, config, serializer, deserializer), could you please provide some concret examples ? The online doc is a little bit too concise for me:

Parameters
`client`
Required
Client for service requests.

`config`
Required
Configuration of service client.

`serializer`
Required
An object model serializer.

`deserializer`
Required
An object model deserializer.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
msftbot[bot]commented, Oct 4, 2022

Hi @copdips, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

azure.mgmt.healthcareapis.operations.Operations class
Operations operations. You should not instantiate this class directly. Instead, you should create a ... Operations(client, config, serializer, deserializer) ...
Read more >
How to create Azure Mgmt serializer/deserializer parameters?
I've got very little Python experience and I can't figure out how to create these objects. The documentation lists: :param serializer: An ...
Read more >
azure.mgmt.reservations.operations module — Azure SDK for ...
ReservationOperations operations. You should not instantiate directly this class, but create a Client instance that will create it for you and attach it...
Read more >
Kafka Streams Data Types and Serialization
Every Kafka Streams application must provide Serdes (Serializer/Deserializer) for the data types of record keys and record values (e.g. java.lang.
Read more >
Chapter 8. Configuring Kafka serializers/deserializers in Java ...
You can configure specific client serializer/deserializer (SerDe) services and schema lookup strategies directly in a client application using the example ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found