Skip to content

Commit 6453cc0

Browse files
author
SDKAuto
committed
CodeGen from PR 14903 in Azure/azure-rest-api-specs
Merge 650d3b3e5bac78cb97dda35b9da51702121ba5c9 into 90578f3
1 parent f3aa604 commit 6453cc0

File tree

4 files changed

+93
-64
lines changed

4 files changed

+93
-64
lines changed

sdk/search/azure-mgmt-search/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": "41f1b934cd8d80daff032d48db3026a04bf50e3b",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/search/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/search/resource-manager/readme.md"
8+
}

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

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,19 @@ def __init__(self, **kwargs):
6565
class Resource(Model):
6666
"""Resource.
6767
68+
Common fields that are returned in the response for all Azure Resource
69+
Manager resources.
70+
6871
Variables are only populated by the server, and will be ignored when
6972
sending a request.
7073
71-
:ivar id: Fully qualified resource Id for the resource. Ex -
74+
:ivar id: Fully qualified resource ID for the resource. Ex -
7275
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
7376
:vartype id: str
7477
:ivar name: The name of the resource
7578
:vartype name: str
76-
:ivar type: The type of the resource. Ex-
77-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
79+
:ivar type: The type of the resource. E.g.
80+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
7881
:vartype type: str
7982
"""
8083

@@ -98,19 +101,21 @@ def __init__(self, **kwargs):
98101

99102

100103
class AzureEntityResource(Resource):
101-
"""The resource model definition for a Azure Resource Manager resource with an
102-
etag.
104+
"""Entity Resource.
105+
106+
The resource model definition for an Azure Resource Manager resource with
107+
an etag.
103108
104109
Variables are only populated by the server, and will be ignored when
105110
sending a request.
106111
107-
:ivar id: Fully qualified resource Id for the resource. Ex -
112+
:ivar id: Fully qualified resource ID for the resource. Ex -
108113
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
109114
:vartype id: str
110115
:ivar name: The name of the resource
111116
:vartype name: str
112-
:ivar type: The type of the resource. Ex-
113-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
117+
:ivar type: The type of the resource. E.g.
118+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
114119
:vartype type: str
115120
:ivar etag: Resource Etag.
116121
:vartype etag: str
@@ -423,13 +428,13 @@ class PrivateEndpointConnection(Resource):
423428
Variables are only populated by the server, and will be ignored when
424429
sending a request.
425430
426-
:ivar id: Fully qualified resource Id for the resource. Ex -
431+
:ivar id: Fully qualified resource ID for the resource. Ex -
427432
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
428433
:vartype id: str
429434
:ivar name: The name of the resource
430435
:vartype name: str
431-
:ivar type: The type of the resource. Ex-
432-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
436+
:ivar type: The type of the resource. E.g.
437+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
433438
:vartype type: str
434439
:param properties: Describes the properties of an existing Private
435440
Endpoint connection to the Azure Cognitive Search service.
@@ -535,13 +540,13 @@ class PrivateLinkResource(Resource):
535540
Variables are only populated by the server, and will be ignored when
536541
sending a request.
537542
538-
:ivar id: Fully qualified resource Id for the resource. Ex -
543+
:ivar id: Fully qualified resource ID for the resource. Ex -
539544
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
540545
:vartype id: str
541546
:ivar name: The name of the resource
542547
:vartype name: str
543-
:ivar type: The type of the resource. Ex-
544-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
548+
:ivar type: The type of the resource. E.g.
549+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
545550
:vartype type: str
546551
:ivar properties: Describes the properties of a supported private link
547552
resource for the Azure Cognitive Search service.
@@ -614,19 +619,21 @@ def __init__(self, **kwargs):
614619

615620

616621
class ProxyResource(Resource):
617-
"""The resource model definition for a ARM proxy resource. It will have
618-
everything other than required location and tags.
622+
"""Proxy Resource.
623+
624+
The resource model definition for a Azure Resource Manager proxy resource.
625+
It will not have tags and a location.
619626
620627
Variables are only populated by the server, and will be ignored when
621628
sending a request.
622629
623-
:ivar id: Fully qualified resource Id for the resource. Ex -
630+
:ivar id: Fully qualified resource ID for the resource. Ex -
624631
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
625632
:vartype id: str
626633
:ivar name: The name of the resource
627634
:vartype name: str
628-
:ivar type: The type of the resource. Ex-
629-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
635+
:ivar type: The type of the resource. E.g.
636+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
630637
:vartype type: str
631638
"""
632639

@@ -694,20 +701,23 @@ def __init__(self, **kwargs):
694701

695702

696703
class TrackedResource(Resource):
697-
"""The resource model definition for a ARM tracked top level resource.
704+
"""Tracked Resource.
705+
706+
The resource model definition for an Azure Resource Manager tracked top
707+
level resource which has 'tags' and a 'location'.
698708
699709
Variables are only populated by the server, and will be ignored when
700710
sending a request.
701711
702712
All required parameters must be populated in order to send to Azure.
703713
704-
:ivar id: Fully qualified resource Id for the resource. Ex -
714+
:ivar id: Fully qualified resource ID for the resource. Ex -
705715
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
706716
:vartype id: str
707717
:ivar name: The name of the resource
708718
:vartype name: str
709-
:ivar type: The type of the resource. Ex-
710-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
719+
:ivar type: The type of the resource. E.g.
720+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
711721
:vartype type: str
712722
:param tags: Resource tags.
713723
:type tags: dict[str, str]
@@ -744,13 +754,13 @@ class SearchService(TrackedResource):
744754
745755
All required parameters must be populated in order to send to Azure.
746756
747-
:ivar id: Fully qualified resource Id for the resource. Ex -
757+
:ivar id: Fully qualified resource ID for the resource. Ex -
748758
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
749759
:vartype id: str
750760
:ivar name: The name of the resource
751761
:vartype name: str
752-
:ivar type: The type of the resource. Ex-
753-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
762+
:ivar type: The type of the resource. E.g.
763+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
754764
:vartype type: str
755765
:param tags: Resource tags.
756766
:type tags: dict[str, str]
@@ -885,13 +895,13 @@ class SearchServiceUpdate(Resource):
885895
Variables are only populated by the server, and will be ignored when
886896
sending a request.
887897
888-
:ivar id: Fully qualified resource Id for the resource. Ex -
898+
:ivar id: Fully qualified resource ID for the resource. Ex -
889899
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
890900
:vartype id: str
891901
:ivar name: The name of the resource
892902
:vartype name: str
893-
:ivar type: The type of the resource. Ex-
894-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
903+
:ivar type: The type of the resource. E.g.
904+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
895905
:vartype type: str
896906
:param replica_count: The number of replicas in the search service. If
897907
specified, it must be a value between 1 and 12 inclusive for standard SKUs
@@ -1102,13 +1112,13 @@ class SharedPrivateLinkResource(Resource):
11021112
Variables are only populated by the server, and will be ignored when
11031113
sending a request.
11041114
1105-
:ivar id: Fully qualified resource Id for the resource. Ex -
1115+
:ivar id: Fully qualified resource ID for the resource. Ex -
11061116
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
11071117
:vartype id: str
11081118
:ivar name: The name of the resource
11091119
:vartype name: str
1110-
:ivar type: The type of the resource. Ex-
1111-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1120+
:ivar type: The type of the resource. E.g.
1121+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
11121122
:vartype type: str
11131123
:param properties: Describes the properties of a Shared Private Link
11141124
Resource managed by the Azure Cognitive Search service.

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

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,19 @@ def __init__(self, *, status=None, **kwargs) -> None:
6565
class Resource(Model):
6666
"""Resource.
6767
68+
Common fields that are returned in the response for all Azure Resource
69+
Manager resources.
70+
6871
Variables are only populated by the server, and will be ignored when
6972
sending a request.
7073
71-
:ivar id: Fully qualified resource Id for the resource. Ex -
74+
:ivar id: Fully qualified resource ID for the resource. Ex -
7275
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
7376
:vartype id: str
7477
:ivar name: The name of the resource
7578
:vartype name: str
76-
:ivar type: The type of the resource. Ex-
77-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
79+
:ivar type: The type of the resource. E.g.
80+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
7881
:vartype type: str
7982
"""
8083

@@ -98,19 +101,21 @@ def __init__(self, **kwargs) -> None:
98101

99102

100103
class AzureEntityResource(Resource):
101-
"""The resource model definition for a Azure Resource Manager resource with an
102-
etag.
104+
"""Entity Resource.
105+
106+
The resource model definition for an Azure Resource Manager resource with
107+
an etag.
103108
104109
Variables are only populated by the server, and will be ignored when
105110
sending a request.
106111
107-
:ivar id: Fully qualified resource Id for the resource. Ex -
112+
:ivar id: Fully qualified resource ID for the resource. Ex -
108113
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
109114
:vartype id: str
110115
:ivar name: The name of the resource
111116
:vartype name: str
112-
:ivar type: The type of the resource. Ex-
113-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
117+
:ivar type: The type of the resource. E.g.
118+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
114119
:vartype type: str
115120
:ivar etag: Resource Etag.
116121
:vartype etag: str
@@ -423,13 +428,13 @@ class PrivateEndpointConnection(Resource):
423428
Variables are only populated by the server, and will be ignored when
424429
sending a request.
425430
426-
:ivar id: Fully qualified resource Id for the resource. Ex -
431+
:ivar id: Fully qualified resource ID for the resource. Ex -
427432
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
428433
:vartype id: str
429434
:ivar name: The name of the resource
430435
:vartype name: str
431-
:ivar type: The type of the resource. Ex-
432-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
436+
:ivar type: The type of the resource. E.g.
437+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
433438
:vartype type: str
434439
:param properties: Describes the properties of an existing Private
435440
Endpoint connection to the Azure Cognitive Search service.
@@ -535,13 +540,13 @@ class PrivateLinkResource(Resource):
535540
Variables are only populated by the server, and will be ignored when
536541
sending a request.
537542
538-
:ivar id: Fully qualified resource Id for the resource. Ex -
543+
:ivar id: Fully qualified resource ID for the resource. Ex -
539544
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
540545
:vartype id: str
541546
:ivar name: The name of the resource
542547
:vartype name: str
543-
:ivar type: The type of the resource. Ex-
544-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
548+
:ivar type: The type of the resource. E.g.
549+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
545550
:vartype type: str
546551
:ivar properties: Describes the properties of a supported private link
547552
resource for the Azure Cognitive Search service.
@@ -614,19 +619,21 @@ def __init__(self, **kwargs) -> None:
614619

615620

616621
class ProxyResource(Resource):
617-
"""The resource model definition for a ARM proxy resource. It will have
618-
everything other than required location and tags.
622+
"""Proxy Resource.
623+
624+
The resource model definition for a Azure Resource Manager proxy resource.
625+
It will not have tags and a location.
619626
620627
Variables are only populated by the server, and will be ignored when
621628
sending a request.
622629
623-
:ivar id: Fully qualified resource Id for the resource. Ex -
630+
:ivar id: Fully qualified resource ID for the resource. Ex -
624631
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
625632
:vartype id: str
626633
:ivar name: The name of the resource
627634
:vartype name: str
628-
:ivar type: The type of the resource. Ex-
629-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
635+
:ivar type: The type of the resource. E.g.
636+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
630637
:vartype type: str
631638
"""
632639

@@ -694,20 +701,23 @@ def __init__(self, *, client_request_id: str=None, **kwargs) -> None:
694701

695702

696703
class TrackedResource(Resource):
697-
"""The resource model definition for a ARM tracked top level resource.
704+
"""Tracked Resource.
705+
706+
The resource model definition for an Azure Resource Manager tracked top
707+
level resource which has 'tags' and a 'location'.
698708
699709
Variables are only populated by the server, and will be ignored when
700710
sending a request.
701711
702712
All required parameters must be populated in order to send to Azure.
703713
704-
:ivar id: Fully qualified resource Id for the resource. Ex -
714+
:ivar id: Fully qualified resource ID for the resource. Ex -
705715
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
706716
:vartype id: str
707717
:ivar name: The name of the resource
708718
:vartype name: str
709-
:ivar type: The type of the resource. Ex-
710-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
719+
:ivar type: The type of the resource. E.g.
720+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
711721
:vartype type: str
712722
:param tags: Resource tags.
713723
:type tags: dict[str, str]
@@ -744,13 +754,13 @@ class SearchService(TrackedResource):
744754
745755
All required parameters must be populated in order to send to Azure.
746756
747-
:ivar id: Fully qualified resource Id for the resource. Ex -
757+
:ivar id: Fully qualified resource ID for the resource. Ex -
748758
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
749759
:vartype id: str
750760
:ivar name: The name of the resource
751761
:vartype name: str
752-
:ivar type: The type of the resource. Ex-
753-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
762+
:ivar type: The type of the resource. E.g.
763+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
754764
:vartype type: str
755765
:param tags: Resource tags.
756766
:type tags: dict[str, str]
@@ -885,13 +895,13 @@ class SearchServiceUpdate(Resource):
885895
Variables are only populated by the server, and will be ignored when
886896
sending a request.
887897
888-
:ivar id: Fully qualified resource Id for the resource. Ex -
898+
:ivar id: Fully qualified resource ID for the resource. Ex -
889899
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
890900
:vartype id: str
891901
:ivar name: The name of the resource
892902
:vartype name: str
893-
:ivar type: The type of the resource. Ex-
894-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
903+
:ivar type: The type of the resource. E.g.
904+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
895905
:vartype type: str
896906
:param replica_count: The number of replicas in the search service. If
897907
specified, it must be a value between 1 and 12 inclusive for standard SKUs
@@ -1102,13 +1112,13 @@ class SharedPrivateLinkResource(Resource):
11021112
Variables are only populated by the server, and will be ignored when
11031113
sending a request.
11041114
1105-
:ivar id: Fully qualified resource Id for the resource. Ex -
1115+
:ivar id: Fully qualified resource ID for the resource. Ex -
11061116
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
11071117
:vartype id: str
11081118
:ivar name: The name of the resource
11091119
:vartype name: str
1110-
:ivar type: The type of the resource. Ex-
1111-
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
1120+
:ivar type: The type of the resource. E.g.
1121+
"Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
11121122
:vartype type: str
11131123
:param properties: Describes the properties of a Shared Private Link
11141124
Resource managed by the Azure Cognitive Search service.

0 commit comments

Comments
 (0)