Skip to content

Commit 97b0f02

Browse files
author
SDKAuto
committed
CodeGen from PR 16780 in Azure/azure-rest-api-specs
Merge 810133ae96050c04d5e6a1adbf6f0ce32d4de1fb into 017671a
1 parent 3a14782 commit 97b0f02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+17041
-207
lines changed

sdk/eventhub/azure-mgmt-eventhub/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"autorest": "V2",
33
"use": "@microsoft.azure/autorest.python@~4.0.71",
4-
"commit": "243dc16d38ca0f0d251efa2d216468a670cd8beb",
4+
"commit": "7d2aac599aff5a100b3c07973a103ad54d2de62d",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
66
"autorest_command": "autorest specification/eventhub/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
77
"readme": "specification/eventhub/resource-manager/readme.md"

sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/_event_hub_management_client.py

Lines changed: 78 additions & 2 deletions
Large diffs are not rendered by default.

sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77
from .v2017_04_01.models import *
8+
from .v2021_11_01.models import *

sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/_models.py

Lines changed: 54 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,21 @@ def __init__(self, **kwargs):
7373

7474

7575
class Resource(Model):
76-
"""The resource definition.
76+
"""Resource.
77+
78+
Common fields that are returned in the response for all Azure Resource
79+
Manager resources.
7780
7881
Variables are only populated by the server, and will be ignored when
7982
sending a request.
8083
81-
:ivar id: Resource ID.
84+
:ivar id: Fully qualified resource ID for the resource. Ex -
85+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
8286
:vartype id: str
83-
:ivar name: Resource name.
87+
:ivar name: The name of the resource
8488
:vartype name: str
85-
:ivar type: Resource type.
89+
:ivar type: The type of the resource. E.g.
90+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
8691
:vartype type: str
8792
"""
8893

@@ -112,11 +117,13 @@ class ArmDisasterRecovery(Resource):
112117
Variables are only populated by the server, and will be ignored when
113118
sending a request.
114119
115-
:ivar id: Resource ID.
120+
:ivar id: Fully qualified resource ID for the resource. Ex -
121+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
116122
:vartype id: str
117-
:ivar name: Resource name.
123+
:ivar name: The name of the resource
118124
:vartype name: str
119-
:ivar type: Resource type.
125+
:ivar type: The type of the resource. E.g.
126+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
120127
:vartype type: str
121128
:ivar provisioning_state: Provisioning state of the Alias(Disaster
122129
Recovery configuration) - possible values 'Accepted' or 'Succeeded' or
@@ -176,11 +183,13 @@ class AuthorizationRule(Resource):
176183
177184
All required parameters must be populated in order to send to Azure.
178185
179-
:ivar id: Resource ID.
186+
:ivar id: Fully qualified resource ID for the resource. Ex -
187+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
180188
:vartype id: str
181-
:ivar name: Resource name.
189+
:ivar name: The name of the resource
182190
:vartype name: str
183-
:ivar type: Resource type.
191+
:ivar type: The type of the resource. E.g.
192+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
184193
:vartype type: str
185194
:param rights: Required. The rights associated with the rule.
186195
:type rights: list[str or
@@ -329,11 +338,13 @@ class ConsumerGroup(Resource):
329338
Variables are only populated by the server, and will be ignored when
330339
sending a request.
331340
332-
:ivar id: Resource ID.
341+
:ivar id: Fully qualified resource ID for the resource. Ex -
342+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
333343
:vartype id: str
334-
:ivar name: Resource name.
344+
:ivar name: The name of the resource
335345
:vartype name: str
336-
:ivar type: Resource type.
346+
:ivar type: The type of the resource. E.g.
347+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
337348
:vartype type: str
338349
:ivar created_at: Exact time the message was created.
339350
:vartype created_at: datetime
@@ -408,11 +419,13 @@ class TrackedResource(Resource):
408419
Variables are only populated by the server, and will be ignored when
409420
sending a request.
410421
411-
:ivar id: Resource ID.
422+
:ivar id: Fully qualified resource ID for the resource. Ex -
423+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
412424
:vartype id: str
413-
:ivar name: Resource name.
425+
:ivar name: The name of the resource
414426
:vartype name: str
415-
:ivar type: Resource type.
427+
:ivar type: The type of the resource. E.g.
428+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
416429
:vartype type: str
417430
:param location: Resource location.
418431
:type location: str
@@ -446,11 +459,13 @@ class EHNamespace(TrackedResource):
446459
Variables are only populated by the server, and will be ignored when
447460
sending a request.
448461
449-
:ivar id: Resource ID.
462+
:ivar id: Fully qualified resource ID for the resource. Ex -
463+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
450464
:vartype id: str
451-
:ivar name: Resource name.
465+
:ivar name: The name of the resource
452466
:vartype name: str
453-
:ivar type: Resource type.
467+
:ivar type: The type of the resource. E.g.
468+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
454469
:vartype type: str
455470
:param location: Resource location.
456471
:type location: str
@@ -562,11 +577,13 @@ class Eventhub(Resource):
562577
Variables are only populated by the server, and will be ignored when
563578
sending a request.
564579
565-
:ivar id: Resource ID.
580+
:ivar id: Fully qualified resource ID for the resource. Ex -
581+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
566582
:vartype id: str
567-
:ivar name: Resource name.
583+
:ivar name: The name of the resource
568584
:vartype name: str
569-
:ivar type: Resource type.
585+
:ivar type: The type of the resource. E.g.
586+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
570587
:vartype type: str
571588
:ivar partition_ids: Current number of shards on the Event Hub.
572589
:vartype partition_ids: list[str]
@@ -631,11 +648,13 @@ class MessagingPlan(TrackedResource):
631648
Variables are only populated by the server, and will be ignored when
632649
sending a request.
633650
634-
:ivar id: Resource ID.
651+
:ivar id: Fully qualified resource ID for the resource. Ex -
652+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
635653
:vartype id: str
636-
:ivar name: Resource name.
654+
:ivar name: The name of the resource
637655
:vartype name: str
638-
:ivar type: Resource type.
656+
:ivar type: The type of the resource. E.g.
657+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
639658
:vartype type: str
640659
:param location: Resource location.
641660
:type location: str
@@ -687,11 +706,13 @@ class MessagingRegions(TrackedResource):
687706
Variables are only populated by the server, and will be ignored when
688707
sending a request.
689708
690-
:ivar id: Resource ID.
709+
:ivar id: Fully qualified resource ID for the resource. Ex -
710+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
691711
:vartype id: str
692-
:ivar name: Resource name.
712+
:ivar name: The name of the resource
693713
:vartype name: str
694-
:ivar type: Resource type.
714+
:ivar type: The type of the resource. E.g.
715+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
695716
:vartype type: str
696717
:param location: Resource location.
697718
:type location: str
@@ -756,11 +777,13 @@ class NetworkRuleSet(Resource):
756777
Variables are only populated by the server, and will be ignored when
757778
sending a request.
758779
759-
:ivar id: Resource ID.
780+
:ivar id: Fully qualified resource ID for the resource. Ex -
781+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
760782
:vartype id: str
761-
:ivar name: Resource name.
783+
:ivar name: The name of the resource
762784
:vartype name: str
763-
:ivar type: Resource type.
785+
:ivar type: The type of the resource. E.g.
786+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
764787
:vartype type: str
765788
:param default_action: Default Action for Network Rule Set. Possible
766789
values include: 'Allow', 'Deny'

sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/_models_py3.py

Lines changed: 54 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,21 @@ def __init__(self, **kwargs) -> None:
7373

7474

7575
class Resource(Model):
76-
"""The resource definition.
76+
"""Resource.
77+
78+
Common fields that are returned in the response for all Azure Resource
79+
Manager resources.
7780
7881
Variables are only populated by the server, and will be ignored when
7982
sending a request.
8083
81-
:ivar id: Resource ID.
84+
:ivar id: Fully qualified resource ID for the resource. Ex -
85+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
8286
:vartype id: str
83-
:ivar name: Resource name.
87+
:ivar name: The name of the resource
8488
:vartype name: str
85-
:ivar type: Resource type.
89+
:ivar type: The type of the resource. E.g.
90+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
8691
:vartype type: str
8792
"""
8893

@@ -112,11 +117,13 @@ class ArmDisasterRecovery(Resource):
112117
Variables are only populated by the server, and will be ignored when
113118
sending a request.
114119
115-
:ivar id: Resource ID.
120+
:ivar id: Fully qualified resource ID for the resource. Ex -
121+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
116122
:vartype id: str
117-
:ivar name: Resource name.
123+
:ivar name: The name of the resource
118124
:vartype name: str
119-
:ivar type: Resource type.
125+
:ivar type: The type of the resource. E.g.
126+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
120127
:vartype type: str
121128
:ivar provisioning_state: Provisioning state of the Alias(Disaster
122129
Recovery configuration) - possible values 'Accepted' or 'Succeeded' or
@@ -176,11 +183,13 @@ class AuthorizationRule(Resource):
176183
177184
All required parameters must be populated in order to send to Azure.
178185
179-
:ivar id: Resource ID.
186+
:ivar id: Fully qualified resource ID for the resource. Ex -
187+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
180188
:vartype id: str
181-
:ivar name: Resource name.
189+
:ivar name: The name of the resource
182190
:vartype name: str
183-
:ivar type: Resource type.
191+
:ivar type: The type of the resource. E.g.
192+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
184193
:vartype type: str
185194
:param rights: Required. The rights associated with the rule.
186195
:type rights: list[str or
@@ -329,11 +338,13 @@ class ConsumerGroup(Resource):
329338
Variables are only populated by the server, and will be ignored when
330339
sending a request.
331340
332-
:ivar id: Resource ID.
341+
:ivar id: Fully qualified resource ID for the resource. Ex -
342+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
333343
:vartype id: str
334-
:ivar name: Resource name.
344+
:ivar name: The name of the resource
335345
:vartype name: str
336-
:ivar type: Resource type.
346+
:ivar type: The type of the resource. E.g.
347+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
337348
:vartype type: str
338349
:ivar created_at: Exact time the message was created.
339350
:vartype created_at: datetime
@@ -408,11 +419,13 @@ class TrackedResource(Resource):
408419
Variables are only populated by the server, and will be ignored when
409420
sending a request.
410421
411-
:ivar id: Resource ID.
422+
:ivar id: Fully qualified resource ID for the resource. Ex -
423+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
412424
:vartype id: str
413-
:ivar name: Resource name.
425+
:ivar name: The name of the resource
414426
:vartype name: str
415-
:ivar type: Resource type.
427+
:ivar type: The type of the resource. E.g.
428+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
416429
:vartype type: str
417430
:param location: Resource location.
418431
:type location: str
@@ -446,11 +459,13 @@ class EHNamespace(TrackedResource):
446459
Variables are only populated by the server, and will be ignored when
447460
sending a request.
448461
449-
:ivar id: Resource ID.
462+
:ivar id: Fully qualified resource ID for the resource. Ex -
463+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
450464
:vartype id: str
451-
:ivar name: Resource name.
465+
:ivar name: The name of the resource
452466
:vartype name: str
453-
:ivar type: Resource type.
467+
:ivar type: The type of the resource. E.g.
468+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
454469
:vartype type: str
455470
:param location: Resource location.
456471
:type location: str
@@ -562,11 +577,13 @@ class Eventhub(Resource):
562577
Variables are only populated by the server, and will be ignored when
563578
sending a request.
564579
565-
:ivar id: Resource ID.
580+
:ivar id: Fully qualified resource ID for the resource. Ex -
581+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
566582
:vartype id: str
567-
:ivar name: Resource name.
583+
:ivar name: The name of the resource
568584
:vartype name: str
569-
:ivar type: Resource type.
585+
:ivar type: The type of the resource. E.g.
586+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
570587
:vartype type: str
571588
:ivar partition_ids: Current number of shards on the Event Hub.
572589
:vartype partition_ids: list[str]
@@ -631,11 +648,13 @@ class MessagingPlan(TrackedResource):
631648
Variables are only populated by the server, and will be ignored when
632649
sending a request.
633650
634-
:ivar id: Resource ID.
651+
:ivar id: Fully qualified resource ID for the resource. Ex -
652+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
635653
:vartype id: str
636-
:ivar name: Resource name.
654+
:ivar name: The name of the resource
637655
:vartype name: str
638-
:ivar type: Resource type.
656+
:ivar type: The type of the resource. E.g.
657+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
639658
:vartype type: str
640659
:param location: Resource location.
641660
:type location: str
@@ -687,11 +706,13 @@ class MessagingRegions(TrackedResource):
687706
Variables are only populated by the server, and will be ignored when
688707
sending a request.
689708
690-
:ivar id: Resource ID.
709+
:ivar id: Fully qualified resource ID for the resource. Ex -
710+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
691711
:vartype id: str
692-
:ivar name: Resource name.
712+
:ivar name: The name of the resource
693713
:vartype name: str
694-
:ivar type: Resource type.
714+
:ivar type: The type of the resource. E.g.
715+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
695716
:vartype type: str
696717
:param location: Resource location.
697718
:type location: str
@@ -756,11 +777,13 @@ class NetworkRuleSet(Resource):
756777
Variables are only populated by the server, and will be ignored when
757778
sending a request.
758779
759-
:ivar id: Resource ID.
780+
:ivar id: Fully qualified resource ID for the resource. Ex -
781+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
760782
:vartype id: str
761-
:ivar name: Resource name.
783+
:ivar name: The name of the resource
762784
:vartype name: str
763-
:ivar type: Resource type.
785+
:ivar type: The type of the resource. E.g.
786+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
764787
:vartype type: str
765788
:param default_action: Default Action for Network Rule Set. Possible
766789
values include: 'Allow', 'Deny'

0 commit comments

Comments
 (0)