9
9
from azure .cli .core .commands import CliCommandType
10
10
from ._client_factory import (
11
11
topics_factory ,
12
+ topic_event_subscriptions_factory ,
13
+ domain_event_subscriptions_factory ,
14
+ domain_topic_event_subscriptions_factory ,
12
15
domains_factory ,
13
16
domain_topics_factory ,
14
17
system_topics_factory ,
19
22
partner_registrations_factory ,
20
23
partner_namespaces_factory ,
21
24
event_channels_factory ,
25
+ channels_factory ,
22
26
partner_topics_factory ,
23
- partner_topic_event_subscriptions_factory
27
+ partner_topic_event_subscriptions_factory ,
28
+ partner_configurations_factory ,
29
+ partner_destinations_factory ,
30
+ verified_partners_factory
24
31
)
25
32
26
33
@@ -31,12 +38,24 @@ def load_command_table(self, _):
31
38
client_arg_name = 'self'
32
39
)
33
40
41
+ topic_event_subscriptions_mgmt_util = CliCommandType (
42
+ operations_tmpl = 'azure.mgmt.eventgrid.operations#TopicEventSubscriptionsOperations.{}' ,
43
+ client_factory = topic_event_subscriptions_factory ,
44
+ client_arg_name = 'self'
45
+ )
46
+
34
47
extension_topics_mgmt_util = CliCommandType (
35
48
operations_tmpl = 'azure.mgmt.eventgrid.operations#ExtensionTopicsOperations.{}' ,
36
49
client_factory = extension_topics_factory ,
37
50
client_arg_name = 'self'
38
51
)
39
52
53
+ domain_event_subscriptions_mgmt_util = CliCommandType (
54
+ operations_tmpl = 'azure.mgmt.eventgrid.operations#DomainEventSubscriptionsOperations.{}' ,
55
+ client_factory = domain_event_subscriptions_factory ,
56
+ client_arg_name = 'self'
57
+ )
58
+
40
59
domains_mgmt_util = CliCommandType (
41
60
operations_tmpl = 'azure.mgmt.eventgrid.operations#DomainsOperations.{}' ,
42
61
client_factory = domains_factory ,
@@ -49,6 +68,12 @@ def load_command_table(self, _):
49
68
client_arg_name = 'self'
50
69
)
51
70
71
+ domain_topic_event_subscriptions_mgmt_util = CliCommandType (
72
+ operations_tmpl = 'azure.mgmt.eventgrid.operations#DomainTopicEventSubscriptionsOperations.{}' ,
73
+ client_factory = domain_topic_event_subscriptions_factory ,
74
+ client_arg_name = 'self'
75
+ )
76
+
52
77
system_topics_mgmt_util = CliCommandType (
53
78
operations_tmpl = 'azure.mgmt.eventgrid.operations#SystemTopicsOperations.{}' ,
54
79
client_factory = system_topics_factory ,
@@ -79,6 +104,12 @@ def load_command_table(self, _):
79
104
client_arg_name = 'self'
80
105
)
81
106
107
+ channels_mgmt_util = CliCommandType (
108
+ operations_tmpl = 'azure.mgmt.eventgrid.operations#ChannelsOperations.{}' ,
109
+ client_factory = channels_factory ,
110
+ client_arg_name = 'self'
111
+ )
112
+
82
113
partner_topics_mgmt_util = CliCommandType (
83
114
operations_tmpl = 'azure.mgmt.eventgrid.operations#PartnerTopicsOperations.{}' ,
84
115
client_factory = partner_topics_factory ,
@@ -91,6 +122,24 @@ def load_command_table(self, _):
91
122
client_arg_name = 'self'
92
123
)
93
124
125
+ partner_configurations_mgmt_util = CliCommandType (
126
+ operations_tmpl = 'azure.mgmt.eventgrid.operations#PartnerConfigurationsOperations.{}' ,
127
+ client_factory = partner_configurations_factory ,
128
+ client_arg_name = 'self'
129
+ )
130
+
131
+ partner_destinations_mgmt_util = CliCommandType (
132
+ operations_tmpl = 'azure.mgmt.eventgrid.operations#PartnerDestinationsOperations.{}' ,
133
+ client_factory = partner_destinations_factory ,
134
+ client_arg_name = 'self'
135
+ )
136
+
137
+ verified_partners_mgmt_util = CliCommandType (
138
+ operations_tmpl = 'azure.mgmt.eventgrid.operations#VerifiedPartnersOperations.{}' ,
139
+ client_factory = verified_partners_factory ,
140
+ client_arg_name = 'self'
141
+ )
142
+
94
143
topic_type_mgmt_util = CliCommandType (
95
144
operations_tmpl = 'azure.mgmt.eventgrid.operations#TopicTypesOperations.{}' ,
96
145
client_factory = topic_types_factory ,
@@ -106,6 +155,13 @@ def load_command_table(self, _):
106
155
g .custom_command ('create' , 'cli_topic_create_or_update' )
107
156
g .custom_command ('update' , 'cli_topic_update' )
108
157
158
+ with self .command_group ('eventgrid topic event-subscription' , topic_event_subscriptions_mgmt_util , client_factory = topic_event_subscriptions_factory ) as g :
159
+ g .custom_show_command ('show' , 'cli_topic_event_subscription_get' )
160
+ g .command ('delete' , 'begin_delete' , confirmation = True )
161
+ g .custom_command ('list' , 'cli_topic_event_subscription_list' )
162
+ g .custom_command ('create' , 'cli_topic_event_subscription_create_or_update' )
163
+ g .custom_command ('update' , 'cli_topic_event_subscription_update' )
164
+
109
165
with self .command_group ('eventgrid extension-topic' , extension_topics_mgmt_util , client_factory = extension_topics_factory ) as g :
110
166
g .show_command ('show' , 'get' )
111
167
@@ -115,6 +171,13 @@ def load_command_table(self, _):
115
171
g .custom_command ('delete' , 'cli_domain_topic_delete' )
116
172
g .custom_command ('create' , 'cli_domain_topic_create_or_update' )
117
173
174
+ with self .command_group ('eventgrid domain topic event-subscription' , domain_topic_event_subscriptions_mgmt_util , client_factory = domain_topic_event_subscriptions_factory ) as g :
175
+ g .custom_show_command ('show' , 'cli_domain_topic_event_subscription_get' )
176
+ g .custom_command ('delete' , 'cli_domain_topic_event_subscription_delete' , confirmation = True )
177
+ g .custom_command ('list' , 'cli_domain_topic_event_subscription_list' )
178
+ g .custom_command ('create' , 'cli_domain_topic_event_subscription_create_or_update' )
179
+ g .custom_command ('update' , 'cli_domain_topic_event_subscription_update' )
180
+
118
181
with self .command_group ('eventgrid domain' , domains_mgmt_util , client_factory = domains_factory ) as g :
119
182
g .show_command ('show' , 'get' )
120
183
g .command ('key list' , 'list_shared_access_keys' )
@@ -124,6 +187,13 @@ def load_command_table(self, _):
124
187
g .command ('delete' , 'begin_delete' )
125
188
g .custom_command ('update' , 'cli_domain_update' )
126
189
190
+ with self .command_group ('eventgrid domain event-subscription' , domain_event_subscriptions_mgmt_util , client_factory = domain_event_subscriptions_factory ) as g :
191
+ g .custom_show_command ('show' , 'cli_domain_event_subscription_get' )
192
+ g .command ('delete' , 'begin_delete' , confirmation = True )
193
+ g .custom_command ('list' , 'cli_domain_event_subscription_list' )
194
+ g .custom_command ('create' , 'cli_domain_event_subscription_create_or_update' )
195
+ g .custom_command ('update' , 'cli_domain_event_subscription_update' )
196
+
127
197
with self .command_group ('eventgrid system-topic' , system_topics_mgmt_util , client_factory = system_topics_factory ) as g :
128
198
g .show_command ('show' , 'get' )
129
199
g .command ('delete' , 'begin_delete' , confirmation = True )
@@ -138,14 +208,14 @@ def load_command_table(self, _):
138
208
g .custom_command ('create' , 'cli_system_topic_event_subscription_create_or_update' )
139
209
g .custom_command ('update' , 'cli_system_topic_event_subscription_update' )
140
210
141
- with self .command_group ('eventgrid partner registration' , partner_registrations_mgmt_util , client_factory = partner_registrations_factory , is_preview = True ) as g :
211
+ with self .command_group ('eventgrid partner registration' , partner_registrations_mgmt_util , client_factory = partner_registrations_factory ) as g :
142
212
g .show_command ('show' , 'get' )
143
- g .command ('delete' , 'delete ' , confirmation = True )
213
+ g .command ('delete' , 'begin_delete ' , confirmation = True )
144
214
g .custom_command ('list' , 'cli_partner_registration_list' )
145
215
g .custom_command ('create' , 'cli_partner_registration_create_or_update' )
146
216
# g.custom_command('update', 'cli_partner_registration_update')
147
217
148
- with self .command_group ('eventgrid partner namespace' , partner_namespaces_mgmt_util , client_factory = partner_namespaces_factory , is_preview = True ) as g :
218
+ with self .command_group ('eventgrid partner namespace' , partner_namespaces_mgmt_util , client_factory = partner_namespaces_factory ) as g :
149
219
g .show_command ('show' , 'get' )
150
220
g .command ('delete' , 'begin_delete' , confirmation = True )
151
221
g .custom_command ('list' , 'cli_partner_namespace_list' )
@@ -154,14 +224,21 @@ def load_command_table(self, _):
154
224
g .custom_command ('key regenerate' , 'cli_partner_namespace_regenerate_key' )
155
225
# g.custom_command('update', 'cli_partner_namespace_update')
156
226
157
- with self .command_group ('eventgrid partner namespace event-channel' , event_channels_mgmt_util , client_factory = event_channels_factory , is_preview = True ) as g :
227
+ with self .command_group ('eventgrid partner namespace event-channel' , event_channels_mgmt_util , client_factory = event_channels_factory , deprecate_info = self . deprecate ( hide = False ) ) as g :
158
228
g .show_command ('show' , 'get' )
159
229
g .command ('delete' , 'begin_delete' , confirmation = True )
160
230
g .custom_command ('list' , 'cli_event_channel_list' )
161
231
# g.custom_command('update', 'cli_event_channel_update')
162
232
g .custom_command ('create' , 'cli_event_channel_create_or_update' )
163
233
164
- with self .command_group ('eventgrid partner topic' , partner_topics_mgmt_util , client_factory = partner_topics_factory , is_preview = True ) as g :
234
+ with self .command_group ('eventgrid partner namespace channel' , channels_mgmt_util , client_factory = channels_factory ) as g :
235
+ g .show_command ('show' , 'get' )
236
+ g .command ('delete' , 'begin_delete' , confirmation = True )
237
+ g .custom_command ('list' , 'cli_channel_list' )
238
+ g .custom_command ('update' , 'cli_channel_update' )
239
+ g .custom_command ('create' , 'cli_channel_create_or_update' )
240
+
241
+ with self .command_group ('eventgrid partner topic' , partner_topics_mgmt_util , client_factory = partner_topics_factory ) as g :
165
242
g .show_command ('show' , 'get' )
166
243
g .command ('delete' , 'begin_delete' , confirmation = True )
167
244
g .command ('activate' , 'activate' )
@@ -170,13 +247,34 @@ def load_command_table(self, _):
170
247
# g.custom_command('create', 'cli_partner_topic_create_or_update')
171
248
# g.custom_command('update', 'cli_partner_topic_update')
172
249
173
- with self .command_group ('eventgrid partner topic event-subscription' , partner_topic_event_subscriptions_mgmt_util , client_factory = partner_topic_event_subscriptions_factory , is_preview = True ) as g :
250
+ with self .command_group ('eventgrid partner topic event-subscription' , partner_topic_event_subscriptions_mgmt_util , client_factory = partner_topic_event_subscriptions_factory ) as g :
174
251
g .custom_show_command ('show' , 'cli_partner_topic_event_subscription_get' )
175
252
g .command ('delete' , 'begin_delete' , confirmation = True )
176
253
g .custom_command ('list' , 'cli_partner_topic_event_subscription_list' )
177
254
g .custom_command ('create' , 'cli_partner_topic_event_subscription_create_or_update' )
178
255
g .custom_command ('update' , 'cli_partner_topic_event_subscription_update' )
179
256
257
+ with self .command_group ('eventgrid partner configuration' , partner_configurations_mgmt_util , client_factory = partner_configurations_factory ) as g :
258
+ g .show_command ('show' , 'get' )
259
+ g .command ('delete' , 'begin_delete' , confirmation = True )
260
+ g .custom_command ('authorize' , 'cli_partner_configuration_authorize' )
261
+ g .custom_command ('unauthorize' , 'cli_partner_configuration_unauthorize' )
262
+ g .custom_command ('list' , 'cli_partner_configuration_list' )
263
+ g .custom_command ('create' , 'cli_partner_configuration_create_or_update' )
264
+ g .custom_command ('update' , 'cli_partner_configuration_update' )
265
+
266
+ with self .command_group ('eventgrid partner destination' , partner_destinations_mgmt_util , client_factory = partner_destinations_factory ) as g :
267
+ g .show_command ('show' , 'get' )
268
+ g .command ('delete' , 'begin_delete' , confirmation = True )
269
+ g .command ('activate' , 'activate' )
270
+ g .custom_command ('list' , 'cli_partner_destination_list' )
271
+ g .custom_command ('create' , 'cli_partner_destination_create_or_update' )
272
+ g .custom_command ('update' , 'cli_partner_destination_update' )
273
+
274
+ with self .command_group ('eventgrid partner verified-partner' , verified_partners_mgmt_util , client_factory = verified_partners_factory ) as g :
275
+ g .show_command ('show' , 'get' )
276
+ g .custom_command ('list' , 'cli_verified_partner_list' )
277
+
180
278
custom_tmpl = 'azure.cli.command_modules.eventgrid.custom#{}'
181
279
eventgrid_custom = CliCommandType (operations_tmpl = custom_tmpl )
182
280
0 commit comments