7
7
# --------------------------------------------------------------------------
8
8
9
9
from copy import deepcopy
10
- from typing import TYPE_CHECKING
10
+ from typing import Any , Optional , TYPE_CHECKING
11
11
12
+ from azure .core .rest import HttpRequest , HttpResponse
12
13
from azure .mgmt .core import ARMPipelineClient
13
14
from msrest import Deserializer , Serializer
14
15
15
16
from . import models
16
17
from ._configuration import EventGridManagementClientConfiguration
17
- from .operations import DomainTopicsOperations , DomainsOperations , EventSubscriptionsOperations , ExtensionTopicsOperations , Operations , PrivateEndpointConnectionsOperations , PrivateLinkResourcesOperations , SystemTopicEventSubscriptionsOperations , SystemTopicsOperations , TopicTypesOperations , TopicsOperations
18
+ from .operations import ChannelsOperations , DomainEventSubscriptionsOperations , DomainTopicEventSubscriptionsOperations , DomainTopicsOperations , DomainsOperations , EventChannelsOperations , EventSubscriptionsOperations , ExtensionTopicsOperations , Operations , PartnerConfigurationsOperations , PartnerDestinationsOperations , PartnerNamespacesOperations , PartnerRegistrationsOperations , PartnerTopicEventSubscriptionsOperations , PartnerTopicsOperations , PrivateEndpointConnectionsOperations , PrivateLinkResourcesOperations , SystemTopicEventSubscriptionsOperations , SystemTopicsOperations , TopicEventSubscriptionsOperations , TopicTypesOperations , TopicsOperations , VerifiedPartnersOperations
18
19
19
20
if TYPE_CHECKING :
20
21
# pylint: disable=unused-import,ungrouped-imports
21
- from typing import Any , Optional
22
-
23
22
from azure .core .credentials import TokenCredential
24
- from azure .core .rest import HttpRequest , HttpResponse
25
23
26
- class EventGridManagementClient ( object ) :
24
+ class EventGridManagementClient :
27
25
"""Azure EventGrid Management Client.
28
26
27
+ :ivar channels: ChannelsOperations operations
28
+ :vartype channels: azure.mgmt.eventgrid.operations.ChannelsOperations
29
29
:ivar domains: DomainsOperations operations
30
30
:vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations
31
31
:ivar domain_topics: DomainTopicsOperations operations
32
32
:vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations
33
+ :ivar event_channels: EventChannelsOperations operations
34
+ :vartype event_channels: azure.mgmt.eventgrid.operations.EventChannelsOperations
33
35
:ivar event_subscriptions: EventSubscriptionsOperations operations
34
36
:vartype event_subscriptions: azure.mgmt.eventgrid.operations.EventSubscriptionsOperations
37
+ :ivar domain_topic_event_subscriptions: DomainTopicEventSubscriptionsOperations operations
38
+ :vartype domain_topic_event_subscriptions:
39
+ azure.mgmt.eventgrid.operations.DomainTopicEventSubscriptionsOperations
40
+ :ivar topic_event_subscriptions: TopicEventSubscriptionsOperations operations
41
+ :vartype topic_event_subscriptions:
42
+ azure.mgmt.eventgrid.operations.TopicEventSubscriptionsOperations
43
+ :ivar domain_event_subscriptions: DomainEventSubscriptionsOperations operations
44
+ :vartype domain_event_subscriptions:
45
+ azure.mgmt.eventgrid.operations.DomainEventSubscriptionsOperations
35
46
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
36
47
:vartype system_topic_event_subscriptions:
37
48
azure.mgmt.eventgrid.operations.SystemTopicEventSubscriptionsOperations
49
+ :ivar partner_topic_event_subscriptions: PartnerTopicEventSubscriptionsOperations operations
50
+ :vartype partner_topic_event_subscriptions:
51
+ azure.mgmt.eventgrid.operations.PartnerTopicEventSubscriptionsOperations
38
52
:ivar operations: Operations operations
39
53
:vartype operations: azure.mgmt.eventgrid.operations.Operations
40
- :ivar topics: TopicsOperations operations
41
- :vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
54
+ :ivar partner_configurations: PartnerConfigurationsOperations operations
55
+ :vartype partner_configurations:
56
+ azure.mgmt.eventgrid.operations.PartnerConfigurationsOperations
57
+ :ivar partner_destinations: PartnerDestinationsOperations operations
58
+ :vartype partner_destinations: azure.mgmt.eventgrid.operations.PartnerDestinationsOperations
59
+ :ivar partner_namespaces: PartnerNamespacesOperations operations
60
+ :vartype partner_namespaces: azure.mgmt.eventgrid.operations.PartnerNamespacesOperations
61
+ :ivar partner_registrations: PartnerRegistrationsOperations operations
62
+ :vartype partner_registrations: azure.mgmt.eventgrid.operations.PartnerRegistrationsOperations
63
+ :ivar partner_topics: PartnerTopicsOperations operations
64
+ :vartype partner_topics: azure.mgmt.eventgrid.operations.PartnerTopicsOperations
42
65
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
43
66
:vartype private_endpoint_connections:
44
67
azure.mgmt.eventgrid.operations.PrivateEndpointConnectionsOperations
45
68
:ivar private_link_resources: PrivateLinkResourcesOperations operations
46
69
:vartype private_link_resources: azure.mgmt.eventgrid.operations.PrivateLinkResourcesOperations
47
70
:ivar system_topics: SystemTopicsOperations operations
48
71
:vartype system_topics: azure.mgmt.eventgrid.operations.SystemTopicsOperations
72
+ :ivar topics: TopicsOperations operations
73
+ :vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
49
74
:ivar extension_topics: ExtensionTopicsOperations operations
50
75
:vartype extension_topics: azure.mgmt.eventgrid.operations.ExtensionTopicsOperations
51
76
:ivar topic_types: TopicTypesOperations operations
52
77
:vartype topic_types: azure.mgmt.eventgrid.operations.TopicTypesOperations
78
+ :ivar verified_partners: VerifiedPartnersOperations operations
79
+ :vartype verified_partners: azure.mgmt.eventgrid.operations.VerifiedPartnersOperations
53
80
:param credential: Credential needed for the client to connect to Azure.
54
81
:type credential: ~azure.core.credentials.TokenCredential
55
82
:param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure
@@ -63,38 +90,48 @@ class EventGridManagementClient(object):
63
90
64
91
def __init__ (
65
92
self ,
66
- credential , # type: "TokenCredential"
67
- subscription_id , # type: str
68
- base_url = "https://management.azure.com" , # type: str
69
- ** kwargs # type: Any
70
- ):
71
- # type: (...) -> None
93
+ credential : "TokenCredential" ,
94
+ subscription_id : str ,
95
+ base_url : str = "https://management.azure.com" ,
96
+ ** kwargs : Any
97
+ ) -> None :
72
98
self ._config = EventGridManagementClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
73
99
self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
74
100
75
101
client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
76
102
self ._serialize = Serializer (client_models )
77
103
self ._deserialize = Deserializer (client_models )
78
104
self ._serialize .client_side_validation = False
105
+ self .channels = ChannelsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
79
106
self .domains = DomainsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
80
107
self .domain_topics = DomainTopicsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
108
+ self .event_channels = EventChannelsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
81
109
self .event_subscriptions = EventSubscriptionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
110
+ self .domain_topic_event_subscriptions = DomainTopicEventSubscriptionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
111
+ self .topic_event_subscriptions = TopicEventSubscriptionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
112
+ self .domain_event_subscriptions = DomainEventSubscriptionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
82
113
self .system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
114
+ self .partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
83
115
self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
84
- self .topics = TopicsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
116
+ self .partner_configurations = PartnerConfigurationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
117
+ self .partner_destinations = PartnerDestinationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
118
+ self .partner_namespaces = PartnerNamespacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
119
+ self .partner_registrations = PartnerRegistrationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
120
+ self .partner_topics = PartnerTopicsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
85
121
self .private_endpoint_connections = PrivateEndpointConnectionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
86
122
self .private_link_resources = PrivateLinkResourcesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
87
123
self .system_topics = SystemTopicsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
124
+ self .topics = TopicsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
88
125
self .extension_topics = ExtensionTopicsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
89
126
self .topic_types = TopicTypesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
127
+ self .verified_partners = VerifiedPartnersOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
90
128
91
129
92
130
def _send_request (
93
131
self ,
94
132
request , # type: HttpRequest
95
- ** kwargs # type: Any
96
- ):
97
- # type: (...) -> HttpResponse
133
+ ** kwargs : Any
134
+ ) -> HttpResponse :
98
135
"""Runs the network request through the client's chained policies.
99
136
100
137
>>> from azure.core.rest import HttpRequest
0 commit comments