azure-mgmt-networkfunction 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. azure/mgmt/networkfunction/__init__.py +32 -0
  2. azure/mgmt/networkfunction/_client.py +172 -0
  3. azure/mgmt/networkfunction/_configuration.py +80 -0
  4. azure/mgmt/networkfunction/_patch.py +21 -0
  5. azure/mgmt/networkfunction/_utils/__init__.py +6 -0
  6. azure/mgmt/networkfunction/_utils/model_base.py +1770 -0
  7. azure/mgmt/networkfunction/_utils/serialization.py +2175 -0
  8. azure/mgmt/networkfunction/_version.py +9 -0
  9. azure/mgmt/networkfunction/aio/__init__.py +29 -0
  10. azure/mgmt/networkfunction/aio/_client.py +177 -0
  11. azure/mgmt/networkfunction/aio/_configuration.py +80 -0
  12. azure/mgmt/networkfunction/aio/_patch.py +21 -0
  13. azure/mgmt/networkfunction/aio/operations/__init__.py +33 -0
  14. azure/mgmt/networkfunction/aio/operations/_operations.py +1780 -0
  15. azure/mgmt/networkfunction/aio/operations/_patch.py +21 -0
  16. azure/mgmt/networkfunction/models/__init__.py +74 -0
  17. azure/mgmt/networkfunction/models/_enums.py +64 -0
  18. azure/mgmt/networkfunction/models/_models.py +718 -0
  19. azure/mgmt/networkfunction/models/_patch.py +21 -0
  20. azure/mgmt/networkfunction/operations/__init__.py +33 -0
  21. azure/mgmt/networkfunction/operations/_operations.py +2123 -0
  22. azure/mgmt/networkfunction/operations/_patch.py +21 -0
  23. azure/mgmt/networkfunction/py.typed +1 -0
  24. azure_mgmt_networkfunction-1.0.0.dist-info/METADATA +126 -0
  25. azure_mgmt_networkfunction-1.0.0.dist-info/RECORD +28 -0
  26. azure_mgmt_networkfunction-1.0.0.dist-info/WHEEL +5 -0
  27. azure_mgmt_networkfunction-1.0.0.dist-info/licenses/LICENSE +21 -0
  28. azure_mgmt_networkfunction-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,718 @@
1
+ # pylint: disable=line-too-long,useless-suppression
2
+ # coding=utf-8
3
+ # --------------------------------------------------------------------------
4
+ # Copyright (c) Microsoft Corporation. All rights reserved.
5
+ # Licensed under the MIT License. See License.txt in the project root for license information.
6
+ # Code generated by Microsoft (R) Python Code Generator.
7
+ # Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
+ # --------------------------------------------------------------------------
9
+ # pylint: disable=useless-super-delegation
10
+
11
+ import datetime
12
+ from typing import Any, Mapping, Optional, TYPE_CHECKING, Union, overload
13
+
14
+ from .._utils.model_base import Model as _Model, rest_field
15
+
16
+ if TYPE_CHECKING:
17
+ from .. import models as _models
18
+
19
+
20
+ class Resource(_Model):
21
+ """Resource.
22
+
23
+ :ivar id: Fully qualified resource ID for the resource. Ex -
24
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
25
+ :vartype id: str
26
+ :ivar name: The name of the resource.
27
+ :vartype name: str
28
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
29
+ "Microsoft.Storage/storageAccounts".
30
+ :vartype type: str
31
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
32
+ information.
33
+ :vartype system_data: ~azure.mgmt.networkfunction.models.SystemData
34
+ """
35
+
36
+ id: Optional[str] = rest_field(visibility=["read"])
37
+ """Fully qualified resource ID for the resource. Ex -
38
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}."""
39
+ name: Optional[str] = rest_field(visibility=["read"])
40
+ """The name of the resource."""
41
+ type: Optional[str] = rest_field(visibility=["read"])
42
+ """The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or
43
+ \"Microsoft.Storage/storageAccounts\"."""
44
+ system_data: Optional["_models.SystemData"] = rest_field(name="systemData", visibility=["read"])
45
+ """Azure Resource Manager metadata containing createdBy and modifiedBy information."""
46
+
47
+
48
+ class ProxyResource(Resource):
49
+ """Proxy Resource.
50
+
51
+ :ivar id: Fully qualified resource ID for the resource. Ex -
52
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
53
+ :vartype id: str
54
+ :ivar name: The name of the resource.
55
+ :vartype name: str
56
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
57
+ "Microsoft.Storage/storageAccounts".
58
+ :vartype type: str
59
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
60
+ information.
61
+ :vartype system_data: ~azure.mgmt.networkfunction.models.SystemData
62
+ """
63
+
64
+
65
+ class AzureTrafficCollector(ProxyResource):
66
+ """Azure Traffic Collector resource.
67
+
68
+ :ivar id: Fully qualified resource ID for the resource. Ex -
69
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
70
+ :vartype id: str
71
+ :ivar name: The name of the resource.
72
+ :vartype name: str
73
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
74
+ "Microsoft.Storage/storageAccounts".
75
+ :vartype type: str
76
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
77
+ information.
78
+ :vartype system_data: ~azure.mgmt.networkfunction.models.SystemData
79
+ :ivar properties: Properties of the Azure Traffic Collector.
80
+ :vartype properties: ~azure.mgmt.networkfunction.models.AzureTrafficCollectorPropertiesFormat
81
+ :ivar location: Resource location. Required.
82
+ :vartype location: str
83
+ :ivar tags: Resource tags.
84
+ :vartype tags: dict[str, str]
85
+ :ivar etag: A unique read-only string that changes whenever the resource is updated.
86
+ :vartype etag: str
87
+ """
88
+
89
+ properties: Optional["_models.AzureTrafficCollectorPropertiesFormat"] = rest_field(
90
+ visibility=["read", "create", "update", "delete", "query"]
91
+ )
92
+ """Properties of the Azure Traffic Collector."""
93
+ location: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
94
+ """Resource location. Required."""
95
+ tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
96
+ """Resource tags."""
97
+ etag: Optional[str] = rest_field(visibility=["read"])
98
+ """A unique read-only string that changes whenever the resource is updated."""
99
+
100
+ __flattened_items = ["collector_policies", "virtual_hub", "provisioning_state"]
101
+
102
+ @overload
103
+ def __init__(
104
+ self,
105
+ *,
106
+ location: str,
107
+ properties: Optional["_models.AzureTrafficCollectorPropertiesFormat"] = None,
108
+ tags: Optional[dict[str, str]] = None,
109
+ ) -> None: ...
110
+
111
+ @overload
112
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
113
+ """
114
+ :param mapping: raw JSON to initialize the model.
115
+ :type mapping: Mapping[str, Any]
116
+ """
117
+
118
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
119
+ _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items}
120
+ super().__init__(*args, **kwargs)
121
+ for k, v in _flattened_input.items():
122
+ setattr(self, k, v)
123
+
124
+ def __getattr__(self, name: str) -> Any:
125
+ if name in self.__flattened_items:
126
+ if self.properties is None:
127
+ return None
128
+ return getattr(self.properties, name)
129
+ raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'")
130
+
131
+ def __setattr__(self, key: str, value: Any) -> None:
132
+ if key in self.__flattened_items:
133
+ if self.properties is None:
134
+ self.properties = self._attr_to_rest_field["properties"]._class_type()
135
+ setattr(self.properties, key, value)
136
+ else:
137
+ super().__setattr__(key, value)
138
+
139
+
140
+ class AzureTrafficCollectorPropertiesFormat(_Model):
141
+ """Azure Traffic Collector resource properties.
142
+
143
+ :ivar collector_policies: Collector Policies for Azure Traffic Collector.
144
+ :vartype collector_policies: list[~azure.mgmt.networkfunction.models.ResourceReference]
145
+ :ivar virtual_hub: The virtualHub to which the Azure Traffic Collector belongs.
146
+ :vartype virtual_hub: ~azure.mgmt.networkfunction.models.ResourceReference
147
+ :ivar provisioning_state: The provisioning state of the application rule collection resource.
148
+ Known values are: "Succeeded", "Updating", "Deleting", and "Failed".
149
+ :vartype provisioning_state: str or ~azure.mgmt.networkfunction.models.ProvisioningState
150
+ """
151
+
152
+ collector_policies: Optional[list["_models.ResourceReference"]] = rest_field(
153
+ name="collectorPolicies", visibility=["read"]
154
+ )
155
+ """Collector Policies for Azure Traffic Collector."""
156
+ virtual_hub: Optional["_models.ResourceReference"] = rest_field(
157
+ name="virtualHub", visibility=["read", "create", "update", "delete", "query"]
158
+ )
159
+ """The virtualHub to which the Azure Traffic Collector belongs."""
160
+ provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field(
161
+ name="provisioningState", visibility=["read"]
162
+ )
163
+ """The provisioning state of the application rule collection resource. Known values are:
164
+ \"Succeeded\", \"Updating\", \"Deleting\", and \"Failed\"."""
165
+
166
+ @overload
167
+ def __init__(
168
+ self,
169
+ *,
170
+ virtual_hub: Optional["_models.ResourceReference"] = None,
171
+ ) -> None: ...
172
+
173
+ @overload
174
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
175
+ """
176
+ :param mapping: raw JSON to initialize the model.
177
+ :type mapping: Mapping[str, Any]
178
+ """
179
+
180
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
181
+ super().__init__(*args, **kwargs)
182
+
183
+
184
+ class CloudError(_Model):
185
+ """An error response from the service.
186
+
187
+ :ivar error: An error response from the service.
188
+ :vartype error: ~azure.mgmt.networkfunction.models.CloudErrorBody
189
+ """
190
+
191
+ error: Optional["_models.CloudErrorBody"] = rest_field(visibility=["read", "create", "update", "delete", "query"])
192
+ """An error response from the service."""
193
+
194
+ @overload
195
+ def __init__(
196
+ self,
197
+ *,
198
+ error: Optional["_models.CloudErrorBody"] = None,
199
+ ) -> None: ...
200
+
201
+ @overload
202
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
203
+ """
204
+ :param mapping: raw JSON to initialize the model.
205
+ :type mapping: Mapping[str, Any]
206
+ """
207
+
208
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
209
+ super().__init__(*args, **kwargs)
210
+
211
+
212
+ class CloudErrorBody(_Model):
213
+ """An error response from the service.
214
+
215
+ :ivar code: An identifier for the error. Codes are invariant and are intended to be consumed
216
+ programmatically.
217
+ :vartype code: str
218
+ :ivar message: A message describing the error, intended to be suitable for display in a user
219
+ interface.
220
+ :vartype message: str
221
+ :ivar target: The target of the particular error. For example, the name of the property in
222
+ error.
223
+ :vartype target: str
224
+ :ivar details: A list of additional details about the error.
225
+ :vartype details: list[~azure.mgmt.networkfunction.models.CloudErrorBody]
226
+ """
227
+
228
+ code: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
229
+ """An identifier for the error. Codes are invariant and are intended to be consumed
230
+ programmatically."""
231
+ message: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
232
+ """A message describing the error, intended to be suitable for display in a user interface."""
233
+ target: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
234
+ """The target of the particular error. For example, the name of the property in error."""
235
+ details: Optional[list["_models.CloudErrorBody"]] = rest_field(
236
+ visibility=["read", "create", "update", "delete", "query"]
237
+ )
238
+ """A list of additional details about the error."""
239
+
240
+ @overload
241
+ def __init__(
242
+ self,
243
+ *,
244
+ code: Optional[str] = None,
245
+ message: Optional[str] = None,
246
+ target: Optional[str] = None,
247
+ details: Optional[list["_models.CloudErrorBody"]] = None,
248
+ ) -> None: ...
249
+
250
+ @overload
251
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
252
+ """
253
+ :param mapping: raw JSON to initialize the model.
254
+ :type mapping: Mapping[str, Any]
255
+ """
256
+
257
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
258
+ super().__init__(*args, **kwargs)
259
+
260
+
261
+ class CollectorPolicy(ProxyResource):
262
+ """Collector policy resource.
263
+
264
+ :ivar id: Fully qualified resource ID for the resource. Ex -
265
+ /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
266
+ :vartype id: str
267
+ :ivar name: The name of the resource.
268
+ :vartype name: str
269
+ :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
270
+ "Microsoft.Storage/storageAccounts".
271
+ :vartype type: str
272
+ :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy
273
+ information.
274
+ :vartype system_data: ~azure.mgmt.networkfunction.models.SystemData
275
+ :ivar properties: Properties of the Collector Policy.
276
+ :vartype properties: ~azure.mgmt.networkfunction.models.CollectorPolicyPropertiesFormat
277
+ :ivar location: Resource location. Required.
278
+ :vartype location: str
279
+ :ivar tags: Resource tags.
280
+ :vartype tags: dict[str, str]
281
+ :ivar etag: A unique read-only string that changes whenever the resource is updated.
282
+ :vartype etag: str
283
+ """
284
+
285
+ properties: Optional["_models.CollectorPolicyPropertiesFormat"] = rest_field(
286
+ visibility=["read", "create", "update", "delete", "query"]
287
+ )
288
+ """Properties of the Collector Policy."""
289
+ location: str = rest_field(visibility=["read", "create", "update", "delete", "query"])
290
+ """Resource location. Required."""
291
+ tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
292
+ """Resource tags."""
293
+ etag: Optional[str] = rest_field(visibility=["read"])
294
+ """A unique read-only string that changes whenever the resource is updated."""
295
+
296
+ __flattened_items = ["ingestion_policy", "emission_policies", "provisioning_state"]
297
+
298
+ @overload
299
+ def __init__(
300
+ self,
301
+ *,
302
+ location: str,
303
+ properties: Optional["_models.CollectorPolicyPropertiesFormat"] = None,
304
+ tags: Optional[dict[str, str]] = None,
305
+ ) -> None: ...
306
+
307
+ @overload
308
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
309
+ """
310
+ :param mapping: raw JSON to initialize the model.
311
+ :type mapping: Mapping[str, Any]
312
+ """
313
+
314
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
315
+ _flattened_input = {k: kwargs.pop(k) for k in kwargs.keys() & self.__flattened_items}
316
+ super().__init__(*args, **kwargs)
317
+ for k, v in _flattened_input.items():
318
+ setattr(self, k, v)
319
+
320
+ def __getattr__(self, name: str) -> Any:
321
+ if name in self.__flattened_items:
322
+ if self.properties is None:
323
+ return None
324
+ return getattr(self.properties, name)
325
+ raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{name}'")
326
+
327
+ def __setattr__(self, key: str, value: Any) -> None:
328
+ if key in self.__flattened_items:
329
+ if self.properties is None:
330
+ self.properties = self._attr_to_rest_field["properties"]._class_type()
331
+ setattr(self.properties, key, value)
332
+ else:
333
+ super().__setattr__(key, value)
334
+
335
+
336
+ class CollectorPolicyPropertiesFormat(_Model):
337
+ """Collection policy properties.
338
+
339
+ :ivar ingestion_policy: Ingestion policies.
340
+ :vartype ingestion_policy: ~azure.mgmt.networkfunction.models.IngestionPolicyPropertiesFormat
341
+ :ivar emission_policies: Emission policies.
342
+ :vartype emission_policies:
343
+ list[~azure.mgmt.networkfunction.models.EmissionPoliciesPropertiesFormat]
344
+ :ivar provisioning_state: The provisioning state. Known values are: "Succeeded", "Updating",
345
+ "Deleting", and "Failed".
346
+ :vartype provisioning_state: str or ~azure.mgmt.networkfunction.models.ProvisioningState
347
+ """
348
+
349
+ ingestion_policy: Optional["_models.IngestionPolicyPropertiesFormat"] = rest_field(
350
+ name="ingestionPolicy", visibility=["read", "create", "update", "delete", "query"]
351
+ )
352
+ """Ingestion policies."""
353
+ emission_policies: Optional[list["_models.EmissionPoliciesPropertiesFormat"]] = rest_field(
354
+ name="emissionPolicies", visibility=["read", "create", "update", "delete", "query"]
355
+ )
356
+ """Emission policies."""
357
+ provisioning_state: Optional[Union[str, "_models.ProvisioningState"]] = rest_field(
358
+ name="provisioningState", visibility=["read"]
359
+ )
360
+ """The provisioning state. Known values are: \"Succeeded\", \"Updating\", \"Deleting\", and
361
+ \"Failed\"."""
362
+
363
+ @overload
364
+ def __init__(
365
+ self,
366
+ *,
367
+ ingestion_policy: Optional["_models.IngestionPolicyPropertiesFormat"] = None,
368
+ emission_policies: Optional[list["_models.EmissionPoliciesPropertiesFormat"]] = None,
369
+ ) -> None: ...
370
+
371
+ @overload
372
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
373
+ """
374
+ :param mapping: raw JSON to initialize the model.
375
+ :type mapping: Mapping[str, Any]
376
+ """
377
+
378
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
379
+ super().__init__(*args, **kwargs)
380
+
381
+
382
+ class EmissionPoliciesPropertiesFormat(_Model):
383
+ """Emission policy properties.
384
+
385
+ :ivar emission_type: Emission format type. "IPFIX"
386
+ :vartype emission_type: str or ~azure.mgmt.networkfunction.models.EmissionType
387
+ :ivar emission_destinations: Emission policy destinations.
388
+ :vartype emission_destinations:
389
+ list[~azure.mgmt.networkfunction.models.EmissionPolicyDestination]
390
+ """
391
+
392
+ emission_type: Optional[Union[str, "_models.EmissionType"]] = rest_field(
393
+ name="emissionType", visibility=["read", "create", "update", "delete", "query"]
394
+ )
395
+ """Emission format type. \"IPFIX\""""
396
+ emission_destinations: Optional[list["_models.EmissionPolicyDestination"]] = rest_field(
397
+ name="emissionDestinations", visibility=["read", "create", "update", "delete", "query"]
398
+ )
399
+ """Emission policy destinations."""
400
+
401
+ @overload
402
+ def __init__(
403
+ self,
404
+ *,
405
+ emission_type: Optional[Union[str, "_models.EmissionType"]] = None,
406
+ emission_destinations: Optional[list["_models.EmissionPolicyDestination"]] = None,
407
+ ) -> None: ...
408
+
409
+ @overload
410
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
411
+ """
412
+ :param mapping: raw JSON to initialize the model.
413
+ :type mapping: Mapping[str, Any]
414
+ """
415
+
416
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
417
+ super().__init__(*args, **kwargs)
418
+
419
+
420
+ class EmissionPolicyDestination(_Model):
421
+ """Emission policy destination properties.
422
+
423
+ :ivar destination_type: Emission destination type. "AzureMonitor"
424
+ :vartype destination_type: str or ~azure.mgmt.networkfunction.models.DestinationType
425
+ """
426
+
427
+ destination_type: Optional[Union[str, "_models.DestinationType"]] = rest_field(
428
+ name="destinationType", visibility=["read", "create", "update", "delete", "query"]
429
+ )
430
+ """Emission destination type. \"AzureMonitor\""""
431
+
432
+ @overload
433
+ def __init__(
434
+ self,
435
+ *,
436
+ destination_type: Optional[Union[str, "_models.DestinationType"]] = None,
437
+ ) -> None: ...
438
+
439
+ @overload
440
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
441
+ """
442
+ :param mapping: raw JSON to initialize the model.
443
+ :type mapping: Mapping[str, Any]
444
+ """
445
+
446
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
447
+ super().__init__(*args, **kwargs)
448
+
449
+
450
+ class IngestionPolicyPropertiesFormat(_Model):
451
+ """Ingestion Policy properties.
452
+
453
+ :ivar ingestion_type: The ingestion type. "IPFIX"
454
+ :vartype ingestion_type: str or ~azure.mgmt.networkfunction.models.IngestionType
455
+ :ivar ingestion_sources: Ingestion Sources.
456
+ :vartype ingestion_sources:
457
+ list[~azure.mgmt.networkfunction.models.IngestionSourcesPropertiesFormat]
458
+ """
459
+
460
+ ingestion_type: Optional[Union[str, "_models.IngestionType"]] = rest_field(
461
+ name="ingestionType", visibility=["read", "create", "update", "delete", "query"]
462
+ )
463
+ """The ingestion type. \"IPFIX\""""
464
+ ingestion_sources: Optional[list["_models.IngestionSourcesPropertiesFormat"]] = rest_field(
465
+ name="ingestionSources", visibility=["read", "create", "update", "delete", "query"]
466
+ )
467
+ """Ingestion Sources."""
468
+
469
+ @overload
470
+ def __init__(
471
+ self,
472
+ *,
473
+ ingestion_type: Optional[Union[str, "_models.IngestionType"]] = None,
474
+ ingestion_sources: Optional[list["_models.IngestionSourcesPropertiesFormat"]] = None,
475
+ ) -> None: ...
476
+
477
+ @overload
478
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
479
+ """
480
+ :param mapping: raw JSON to initialize the model.
481
+ :type mapping: Mapping[str, Any]
482
+ """
483
+
484
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
485
+ super().__init__(*args, **kwargs)
486
+
487
+
488
+ class IngestionSourcesPropertiesFormat(_Model):
489
+ """Ingestion policy properties.
490
+
491
+ :ivar source_type: Ingestion source type. "Resource"
492
+ :vartype source_type: str or ~azure.mgmt.networkfunction.models.SourceType
493
+ :ivar resource_id: Resource ID.
494
+ :vartype resource_id: str
495
+ """
496
+
497
+ source_type: Optional[Union[str, "_models.SourceType"]] = rest_field(
498
+ name="sourceType", visibility=["read", "create", "update", "delete", "query"]
499
+ )
500
+ """Ingestion source type. \"Resource\""""
501
+ resource_id: Optional[str] = rest_field(
502
+ name="resourceId", visibility=["read", "create", "update", "delete", "query"]
503
+ )
504
+ """Resource ID."""
505
+
506
+ @overload
507
+ def __init__(
508
+ self,
509
+ *,
510
+ source_type: Optional[Union[str, "_models.SourceType"]] = None,
511
+ resource_id: Optional[str] = None,
512
+ ) -> None: ...
513
+
514
+ @overload
515
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
516
+ """
517
+ :param mapping: raw JSON to initialize the model.
518
+ :type mapping: Mapping[str, Any]
519
+ """
520
+
521
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
522
+ super().__init__(*args, **kwargs)
523
+
524
+
525
+ class Operation(_Model):
526
+ """Azure Traffic Collector REST API operation definition.
527
+
528
+ :ivar name: Operation name: {provider}/{resource}/{operation}.
529
+ :vartype name: str
530
+ :ivar is_data_action: Indicates whether the operation is a data action.
531
+ :vartype is_data_action: bool
532
+ :ivar display: Display metadata associated with the operation.
533
+ :vartype display: ~azure.mgmt.networkfunction.models.OperationDisplay
534
+ :ivar origin: Origin of the operation.
535
+ :vartype origin: str
536
+ """
537
+
538
+ name: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
539
+ """Operation name: {provider}/{resource}/{operation}."""
540
+ is_data_action: Optional[bool] = rest_field(
541
+ name="isDataAction", visibility=["read", "create", "update", "delete", "query"]
542
+ )
543
+ """Indicates whether the operation is a data action."""
544
+ display: Optional["_models.OperationDisplay"] = rest_field(
545
+ visibility=["read", "create", "update", "delete", "query"]
546
+ )
547
+ """Display metadata associated with the operation."""
548
+ origin: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
549
+ """Origin of the operation."""
550
+
551
+ @overload
552
+ def __init__(
553
+ self,
554
+ *,
555
+ name: Optional[str] = None,
556
+ is_data_action: Optional[bool] = None,
557
+ display: Optional["_models.OperationDisplay"] = None,
558
+ origin: Optional[str] = None,
559
+ ) -> None: ...
560
+
561
+ @overload
562
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
563
+ """
564
+ :param mapping: raw JSON to initialize the model.
565
+ :type mapping: Mapping[str, Any]
566
+ """
567
+
568
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
569
+ super().__init__(*args, **kwargs)
570
+
571
+
572
+ class OperationDisplay(_Model):
573
+ """Display metadata associated with the operation.
574
+
575
+ :ivar provider: Service provider: Microsoft NetworkFunction.
576
+ :vartype provider: str
577
+ :ivar resource: Resource on which the operation is performed etc.
578
+ :vartype resource: str
579
+ :ivar operation: Type of operation: get, read, delete, etc.
580
+ :vartype operation: str
581
+ :ivar description: Description of the operation.
582
+ :vartype description: str
583
+ """
584
+
585
+ provider: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
586
+ """Service provider: Microsoft NetworkFunction."""
587
+ resource: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
588
+ """Resource on which the operation is performed etc."""
589
+ operation: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
590
+ """Type of operation: get, read, delete, etc."""
591
+ description: Optional[str] = rest_field(visibility=["read", "create", "update", "delete", "query"])
592
+ """Description of the operation."""
593
+
594
+ @overload
595
+ def __init__(
596
+ self,
597
+ *,
598
+ provider: Optional[str] = None,
599
+ resource: Optional[str] = None,
600
+ operation: Optional[str] = None,
601
+ description: Optional[str] = None,
602
+ ) -> None: ...
603
+
604
+ @overload
605
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
606
+ """
607
+ :param mapping: raw JSON to initialize the model.
608
+ :type mapping: Mapping[str, Any]
609
+ """
610
+
611
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
612
+ super().__init__(*args, **kwargs)
613
+
614
+
615
+ class ResourceReference(_Model):
616
+ """Resource reference properties.
617
+
618
+ :ivar id: Resource ID.
619
+ :vartype id: str
620
+ """
621
+
622
+ id: Optional[str] = rest_field(visibility=["read"])
623
+ """Resource ID."""
624
+
625
+
626
+ class SystemData(_Model):
627
+ """Metadata pertaining to creation and last modification of the resource.
628
+
629
+ :ivar created_by: The identity that created the resource.
630
+ :vartype created_by: str
631
+ :ivar created_by_type: The type of identity that created the resource. Known values are:
632
+ "User", "Application", "ManagedIdentity", and "Key".
633
+ :vartype created_by_type: str or ~azure.mgmt.networkfunction.models.CreatedByType
634
+ :ivar created_at: The timestamp of resource creation (UTC).
635
+ :vartype created_at: ~datetime.datetime
636
+ :ivar last_modified_by: The identity that last modified the resource.
637
+ :vartype last_modified_by: str
638
+ :ivar last_modified_by_type: The type of identity that last modified the resource. Known values
639
+ are: "User", "Application", "ManagedIdentity", and "Key".
640
+ :vartype last_modified_by_type: str or ~azure.mgmt.networkfunction.models.CreatedByType
641
+ :ivar last_modified_at: The timestamp of resource last modification (UTC).
642
+ :vartype last_modified_at: ~datetime.datetime
643
+ """
644
+
645
+ created_by: Optional[str] = rest_field(name="createdBy", visibility=["read", "create", "update", "delete", "query"])
646
+ """The identity that created the resource."""
647
+ created_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field(
648
+ name="createdByType", visibility=["read", "create", "update", "delete", "query"]
649
+ )
650
+ """The type of identity that created the resource. Known values are: \"User\", \"Application\",
651
+ \"ManagedIdentity\", and \"Key\"."""
652
+ created_at: Optional[datetime.datetime] = rest_field(
653
+ name="createdAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
654
+ )
655
+ """The timestamp of resource creation (UTC)."""
656
+ last_modified_by: Optional[str] = rest_field(
657
+ name="lastModifiedBy", visibility=["read", "create", "update", "delete", "query"]
658
+ )
659
+ """The identity that last modified the resource."""
660
+ last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = rest_field(
661
+ name="lastModifiedByType", visibility=["read", "create", "update", "delete", "query"]
662
+ )
663
+ """The type of identity that last modified the resource. Known values are: \"User\",
664
+ \"Application\", \"ManagedIdentity\", and \"Key\"."""
665
+ last_modified_at: Optional[datetime.datetime] = rest_field(
666
+ name="lastModifiedAt", visibility=["read", "create", "update", "delete", "query"], format="rfc3339"
667
+ )
668
+ """The timestamp of resource last modification (UTC)."""
669
+
670
+ @overload
671
+ def __init__(
672
+ self,
673
+ *,
674
+ created_by: Optional[str] = None,
675
+ created_by_type: Optional[Union[str, "_models.CreatedByType"]] = None,
676
+ created_at: Optional[datetime.datetime] = None,
677
+ last_modified_by: Optional[str] = None,
678
+ last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None,
679
+ last_modified_at: Optional[datetime.datetime] = None,
680
+ ) -> None: ...
681
+
682
+ @overload
683
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
684
+ """
685
+ :param mapping: raw JSON to initialize the model.
686
+ :type mapping: Mapping[str, Any]
687
+ """
688
+
689
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
690
+ super().__init__(*args, **kwargs)
691
+
692
+
693
+ class TagsObject(_Model):
694
+ """Tags object for patch operations.
695
+
696
+ :ivar tags: Resource tags.
697
+ :vartype tags: dict[str, str]
698
+ """
699
+
700
+ tags: Optional[dict[str, str]] = rest_field(visibility=["read", "create", "update", "delete", "query"])
701
+ """Resource tags."""
702
+
703
+ @overload
704
+ def __init__(
705
+ self,
706
+ *,
707
+ tags: Optional[dict[str, str]] = None,
708
+ ) -> None: ...
709
+
710
+ @overload
711
+ def __init__(self, mapping: Mapping[str, Any]) -> None:
712
+ """
713
+ :param mapping: raw JSON to initialize the model.
714
+ :type mapping: Mapping[str, Any]
715
+ """
716
+
717
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
718
+ super().__init__(*args, **kwargs)