Skip to content

Commit 11a2936

Browse files
update
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d331f51 commit 11a2936

9 files changed

Lines changed: 124 additions & 5 deletions

File tree

sdk/fileshares/azure-mgmt-fileshares/azure/mgmt/fileshares/_patch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
1010

11-
1211
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1312

1413

sdk/fileshares/azure-mgmt-fileshares/azure/mgmt/fileshares/aio/_patch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
1010

11-
1211
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1312

1413

sdk/fileshares/azure-mgmt-fileshares/azure/mgmt/fileshares/aio/operations/_patch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
1010

11-
1211
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1312

1413

sdk/fileshares/azure-mgmt-fileshares/azure/mgmt/fileshares/models/_patch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
1010

11-
1211
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1312

1413

sdk/fileshares/azure-mgmt-fileshares/azure/mgmt/fileshares/operations/_patch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
1010

11-
1211
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1312

1413

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) Python Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
import pytest
9+
from azure.mgmt.fileshares.aio import FileSharesMgmtClient
10+
11+
from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer
12+
from devtools_testutils.aio import recorded_by_proxy_async
13+
14+
AZURE_LOCATION = "eastus"
15+
16+
17+
@pytest.mark.live_test_only
18+
class TestFileSharesMgmtFileSharesOperationsAsync(AzureMgmtRecordedTestCase):
19+
def setup_method(self, method):
20+
self.client = self.create_mgmt_client(FileSharesMgmtClient, is_async=True)
21+
22+
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
23+
@recorded_by_proxy_async
24+
async def test_file_shares_list_by_subscription(self, resource_group):
25+
response = self.client.file_shares.list_by_subscription()
26+
result = [r async for r in response]
27+
assert len(result)
28+
29+
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
30+
@recorded_by_proxy_async
31+
async def test_file_shares_list_by_parent(self, resource_group):
32+
response = self.client.file_shares.list_by_parent(
33+
resource_group_name=resource_group.name,
34+
)
35+
result = [r async for r in response]
36+
assert len(result) == 0
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) Python Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
import pytest
9+
from azure.mgmt.fileshares import FileSharesMgmtClient
10+
11+
from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy
12+
13+
AZURE_LOCATION = "eastus"
14+
15+
16+
@pytest.mark.live_test_only
17+
class TestFileSharesMgmtFileSharesOperations(AzureMgmtRecordedTestCase):
18+
def setup_method(self, method):
19+
self.client = self.create_mgmt_client(FileSharesMgmtClient)
20+
21+
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
22+
@recorded_by_proxy
23+
def test_file_shares_list_by_subscription(self, resource_group):
24+
response = self.client.file_shares.list_by_subscription()
25+
result = [r for r in response]
26+
assert len(result)
27+
28+
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
29+
@recorded_by_proxy
30+
def test_file_shares_list_by_parent(self, resource_group):
31+
response = self.client.file_shares.list_by_parent(
32+
resource_group_name=resource_group.name,
33+
)
34+
result = [r for r in response]
35+
assert len(result) == 0
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) Python Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
import pytest
9+
from azure.mgmt.fileshares.aio import FileSharesMgmtClient
10+
11+
from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer
12+
from devtools_testutils.aio import recorded_by_proxy_async
13+
14+
AZURE_LOCATION = "eastus"
15+
16+
17+
@pytest.mark.live_test_only
18+
class TestFileSharesMgmtOperationsAsync(AzureMgmtRecordedTestCase):
19+
def setup_method(self, method):
20+
self.client = self.create_mgmt_client(FileSharesMgmtClient, is_async=True)
21+
22+
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
23+
@recorded_by_proxy_async
24+
async def test_operations_list(self, resource_group):
25+
response = self.client.operations.list()
26+
result = [r async for r in response]
27+
assert len(result)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) Python Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
import pytest
9+
from azure.mgmt.fileshares import FileSharesMgmtClient
10+
11+
from devtools_testutils import AzureMgmtRecordedTestCase, RandomNameResourceGroupPreparer, recorded_by_proxy
12+
13+
AZURE_LOCATION = "eastus"
14+
15+
16+
@pytest.mark.live_test_only
17+
class TestFileSharesMgmtOperations(AzureMgmtRecordedTestCase):
18+
def setup_method(self, method):
19+
self.client = self.create_mgmt_client(FileSharesMgmtClient)
20+
21+
@RandomNameResourceGroupPreparer(location=AZURE_LOCATION)
22+
@recorded_by_proxy
23+
def test_operations_list(self, resource_group):
24+
response = self.client.operations.list()
25+
result = [r for r in response]
26+
assert len(result)

0 commit comments

Comments
 (0)