Skip to content

Commit 24f69f2

Browse files
SDKAutomsyyc
andcommitted
CodeGen from PR 14523 in Azure/azure-rest-api-specs
Eventgrid t2 (Azure#14523) * sql t2 readme config * readme config * Update readme.python.md * conflient resolve * t2 config Co-authored-by: msyyc <[email protected]>
1 parent bdaea28 commit 24f69f2

File tree

4 files changed

+46
-29
lines changed

4 files changed

+46
-29
lines changed

sdk/eventgrid/azure-mgmt-eventgrid/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
recursive-include tests *.py *.yaml
23
include *.md
34
include azure/__init__.py
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "b554b6d3497ef8a9eff147f94a5d47ba4eeb7a34",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/eventgrid/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",
7+
"readme": "specification/eventgrid/resource-manager/readme.md"
8+
}

sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ class Domain(TrackedResource):
426426
:type location: str
427427
:param tags: Tags of the resource.
428428
:type tags: dict[str, str]
429-
:param private_endpoint_connections: List of private endpoint connections.
430-
:type private_endpoint_connections:
429+
:ivar private_endpoint_connections: List of private endpoint connections.
430+
:vartype private_endpoint_connections:
431431
list[~azure.mgmt.eventgrid.models.PrivateEndpointConnection]
432432
:ivar provisioning_state: Provisioning state of the domain. Possible
433433
values include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
@@ -472,6 +472,7 @@ class Domain(TrackedResource):
472472
'name': {'readonly': True},
473473
'type': {'readonly': True},
474474
'location': {'required': True},
475+
'private_endpoint_connections': {'readonly': True},
475476
'provisioning_state': {'readonly': True},
476477
'endpoint': {'readonly': True},
477478
'metric_resource_id': {'readonly': True},
@@ -499,7 +500,7 @@ class Domain(TrackedResource):
499500

500501
def __init__(self, **kwargs):
501502
super(Domain, self).__init__(**kwargs)
502-
self.private_endpoint_connections = kwargs.get('private_endpoint_connections', None)
503+
self.private_endpoint_connections = None
503504
self.provisioning_state = None
504505
self.endpoint = None
505506
self.input_schema = kwargs.get('input_schema', "EventGridSchema")
@@ -566,10 +567,10 @@ class DomainTopic(Resource):
566567
:vartype name: str
567568
:ivar type: Type of the resource.
568569
:vartype type: str
569-
:param provisioning_state: Provisioning state of the domain topic.
570-
Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
570+
:ivar provisioning_state: Provisioning state of the domain topic. Possible
571+
values include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
571572
'Canceled', 'Failed'
572-
:type provisioning_state: str or
573+
:vartype provisioning_state: str or
573574
~azure.mgmt.eventgrid.models.DomainTopicProvisioningState
574575
:ivar system_data: The system metadata relating to Domain Topic resource.
575576
:vartype system_data: ~azure.mgmt.eventgrid.models.SystemData
@@ -579,6 +580,7 @@ class DomainTopic(Resource):
579580
'id': {'readonly': True},
580581
'name': {'readonly': True},
581582
'type': {'readonly': True},
583+
'provisioning_state': {'readonly': True},
582584
'system_data': {'readonly': True},
583585
}
584586

@@ -592,7 +594,7 @@ class DomainTopic(Resource):
592594

593595
def __init__(self, **kwargs):
594596
super(DomainTopic, self).__init__(**kwargs)
595-
self.provisioning_state = kwargs.get('provisioning_state', None)
597+
self.provisioning_state = None
596598
self.system_data = None
597599

598600

@@ -2412,7 +2414,8 @@ class ResourceSku(Model):
24122414
"""Describes an EventGrid Resource Sku.
24132415
24142416
:param name: The Sku name of the resource. The possible values are: Basic
2415-
or Premium. Possible values include: 'Basic', 'Premium'
2417+
or Premium. Possible values include: 'Basic', 'Premium'. Default value:
2418+
"Basic" .
24162419
:type name: str or ~azure.mgmt.eventgrid.models.Sku
24172420
"""
24182421

@@ -2422,7 +2425,7 @@ class ResourceSku(Model):
24222425

24232426
def __init__(self, **kwargs):
24242427
super(ResourceSku, self).__init__(**kwargs)
2425-
self.name = kwargs.get('name', None)
2428+
self.name = kwargs.get('name', "Basic")
24262429

24272430

24282431
class RetryPolicy(Model):
@@ -2926,7 +2929,7 @@ class SystemTopic(TrackedResource):
29262929
:vartype metric_resource_id: str
29272930
:param identity: Identity information for the resource.
29282931
:type identity: ~azure.mgmt.eventgrid.models.IdentityInfo
2929-
:ivar system_data: The system metadata relating to this resource.
2932+
:ivar system_data: The system metadata relating to System Topic resource.
29302933
:vartype system_data: ~azure.mgmt.eventgrid.models.SystemData
29312934
"""
29322935

@@ -3002,8 +3005,8 @@ class Topic(TrackedResource):
30023005
:type location: str
30033006
:param tags: Tags of the resource.
30043007
:type tags: dict[str, str]
3005-
:param private_endpoint_connections:
3006-
:type private_endpoint_connections:
3008+
:ivar private_endpoint_connections:
3009+
:vartype private_endpoint_connections:
30073010
list[~azure.mgmt.eventgrid.models.PrivateEndpointConnection]
30083011
:ivar provisioning_state: Provisioning state of the topic. Possible values
30093012
include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled',
@@ -3055,6 +3058,7 @@ class Topic(TrackedResource):
30553058
'name': {'readonly': True},
30563059
'type': {'readonly': True},
30573060
'location': {'required': True},
3061+
'private_endpoint_connections': {'readonly': True},
30583062
'provisioning_state': {'readonly': True},
30593063
'endpoint': {'readonly': True},
30603064
'metric_resource_id': {'readonly': True},
@@ -3084,7 +3088,7 @@ class Topic(TrackedResource):
30843088

30853089
def __init__(self, **kwargs):
30863090
super(Topic, self).__init__(**kwargs)
3087-
self.private_endpoint_connections = kwargs.get('private_endpoint_connections', None)
3091+
self.private_endpoint_connections = None
30883092
self.provisioning_state = None
30893093
self.endpoint = None
30903094
self.input_schema = kwargs.get('input_schema', "EventGridSchema")

sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ class Domain(TrackedResource):
426426
:type location: str
427427
:param tags: Tags of the resource.
428428
:type tags: dict[str, str]
429-
:param private_endpoint_connections: List of private endpoint connections.
430-
:type private_endpoint_connections:
429+
:ivar private_endpoint_connections: List of private endpoint connections.
430+
:vartype private_endpoint_connections:
431431
list[~azure.mgmt.eventgrid.models.PrivateEndpointConnection]
432432
:ivar provisioning_state: Provisioning state of the domain. Possible
433433
values include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
@@ -472,6 +472,7 @@ class Domain(TrackedResource):
472472
'name': {'readonly': True},
473473
'type': {'readonly': True},
474474
'location': {'required': True},
475+
'private_endpoint_connections': {'readonly': True},
475476
'provisioning_state': {'readonly': True},
476477
'endpoint': {'readonly': True},
477478
'metric_resource_id': {'readonly': True},
@@ -497,9 +498,9 @@ class Domain(TrackedResource):
497498
'system_data': {'key': 'systemData', 'type': 'SystemData'},
498499
}
499500

500-
def __init__(self, *, location: str, tags=None, private_endpoint_connections=None, input_schema="EventGridSchema", input_schema_mapping=None, public_network_access="Enabled", inbound_ip_rules=None, sku=None, identity=None, **kwargs) -> None:
501+
def __init__(self, *, location: str, tags=None, input_schema="EventGridSchema", input_schema_mapping=None, public_network_access="Enabled", inbound_ip_rules=None, sku=None, identity=None, **kwargs) -> None:
501502
super(Domain, self).__init__(location=location, tags=tags, **kwargs)
502-
self.private_endpoint_connections = private_endpoint_connections
503+
self.private_endpoint_connections = None
503504
self.provisioning_state = None
504505
self.endpoint = None
505506
self.input_schema = input_schema
@@ -566,10 +567,10 @@ class DomainTopic(Resource):
566567
:vartype name: str
567568
:ivar type: Type of the resource.
568569
:vartype type: str
569-
:param provisioning_state: Provisioning state of the domain topic.
570-
Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
570+
:ivar provisioning_state: Provisioning state of the domain topic. Possible
571+
values include: 'Creating', 'Updating', 'Deleting', 'Succeeded',
571572
'Canceled', 'Failed'
572-
:type provisioning_state: str or
573+
:vartype provisioning_state: str or
573574
~azure.mgmt.eventgrid.models.DomainTopicProvisioningState
574575
:ivar system_data: The system metadata relating to Domain Topic resource.
575576
:vartype system_data: ~azure.mgmt.eventgrid.models.SystemData
@@ -579,6 +580,7 @@ class DomainTopic(Resource):
579580
'id': {'readonly': True},
580581
'name': {'readonly': True},
581582
'type': {'readonly': True},
583+
'provisioning_state': {'readonly': True},
582584
'system_data': {'readonly': True},
583585
}
584586

@@ -590,9 +592,9 @@ class DomainTopic(Resource):
590592
'system_data': {'key': 'systemData', 'type': 'SystemData'},
591593
}
592594

593-
def __init__(self, *, provisioning_state=None, **kwargs) -> None:
595+
def __init__(self, **kwargs) -> None:
594596
super(DomainTopic, self).__init__(**kwargs)
595-
self.provisioning_state = provisioning_state
597+
self.provisioning_state = None
596598
self.system_data = None
597599

598600

@@ -2412,15 +2414,16 @@ class ResourceSku(Model):
24122414
"""Describes an EventGrid Resource Sku.
24132415
24142416
:param name: The Sku name of the resource. The possible values are: Basic
2415-
or Premium. Possible values include: 'Basic', 'Premium'
2417+
or Premium. Possible values include: 'Basic', 'Premium'. Default value:
2418+
"Basic" .
24162419
:type name: str or ~azure.mgmt.eventgrid.models.Sku
24172420
"""
24182421

24192422
_attribute_map = {
24202423
'name': {'key': 'name', 'type': 'str'},
24212424
}
24222425

2423-
def __init__(self, *, name=None, **kwargs) -> None:
2426+
def __init__(self, *, name="Basic", **kwargs) -> None:
24242427
super(ResourceSku, self).__init__(**kwargs)
24252428
self.name = name
24262429

@@ -2926,7 +2929,7 @@ class SystemTopic(TrackedResource):
29262929
:vartype metric_resource_id: str
29272930
:param identity: Identity information for the resource.
29282931
:type identity: ~azure.mgmt.eventgrid.models.IdentityInfo
2929-
:ivar system_data: The system metadata relating to this resource.
2932+
:ivar system_data: The system metadata relating to System Topic resource.
29302933
:vartype system_data: ~azure.mgmt.eventgrid.models.SystemData
29312934
"""
29322935

@@ -3002,8 +3005,8 @@ class Topic(TrackedResource):
30023005
:type location: str
30033006
:param tags: Tags of the resource.
30043007
:type tags: dict[str, str]
3005-
:param private_endpoint_connections:
3006-
:type private_endpoint_connections:
3008+
:ivar private_endpoint_connections:
3009+
:vartype private_endpoint_connections:
30073010
list[~azure.mgmt.eventgrid.models.PrivateEndpointConnection]
30083011
:ivar provisioning_state: Provisioning state of the topic. Possible values
30093012
include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled',
@@ -3055,6 +3058,7 @@ class Topic(TrackedResource):
30553058
'name': {'readonly': True},
30563059
'type': {'readonly': True},
30573060
'location': {'required': True},
3061+
'private_endpoint_connections': {'readonly': True},
30583062
'provisioning_state': {'readonly': True},
30593063
'endpoint': {'readonly': True},
30603064
'metric_resource_id': {'readonly': True},
@@ -3082,9 +3086,9 @@ class Topic(TrackedResource):
30823086
'system_data': {'key': 'systemData', 'type': 'SystemData'},
30833087
}
30843088

3085-
def __init__(self, *, location: str, tags=None, private_endpoint_connections=None, input_schema="EventGridSchema", input_schema_mapping=None, public_network_access="Enabled", inbound_ip_rules=None, sku=None, identity=None, kind=None, extended_location=None, **kwargs) -> None:
3089+
def __init__(self, *, location: str, tags=None, input_schema="EventGridSchema", input_schema_mapping=None, public_network_access="Enabled", inbound_ip_rules=None, sku=None, identity=None, kind=None, extended_location=None, **kwargs) -> None:
30863090
super(Topic, self).__init__(location=location, tags=tags, **kwargs)
3087-
self.private_endpoint_connections = private_endpoint_connections
3091+
self.private_endpoint_connections = None
30883092
self.provisioning_state = None
30893093
self.endpoint = None
30903094
self.input_schema = input_schema

0 commit comments

Comments
 (0)