From 70a4a66f37a7d882a3709e09de086f65e8c1251c Mon Sep 17 00:00:00 2001 From: msyyc <70930885+msyyc@users.noreply.github.com> Date: Thu, 21 Oct 2021 13:48:01 +0800 Subject: [PATCH] docs --- sdk/purview/azure-purview-catalog/README.md | 6 +++--- .../tests/recordings/test_smoke.test_basic_smoke_test.yaml | 6 +++--- .../recordings/test_smoke_async.test_basic_smoke_test.yaml | 6 +++--- sdk/purview/azure-purview-catalog/tests/testcase.py | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sdk/purview/azure-purview-catalog/README.md b/sdk/purview/azure-purview-catalog/README.md index 470151502326..fa64b27b51a9 100644 --- a/sdk/purview/azure-purview-catalog/README.md +++ b/sdk/purview/azure-purview-catalog/README.md @@ -56,7 +56,7 @@ from azure.purview.catalog import PurviewCatalogClient from azure.identity import DefaultAzureCredential credential = DefaultAzureCredential() -client = PurviewCatalogClient(endpoint="https://.catalog.purview.azure.com", credential=credential) +client = PurviewCatalogClient(endpoint="https://.purview.azure.com", credential=credential) ``` ## Key concepts @@ -80,7 +80,7 @@ from azure.identity import DefaultAzureCredential from azure.core.exceptions import HttpResponseError credential = DefaultAzureCredential() -client = PurviewCatalogClient(endpoint="https://.catalog.purview.azure.com", credential=credential) +client = PurviewCatalogClient(endpoint="https://.purview.azure.com", credential=credential) try: response = client.types.get_all_type_definitions() # print out all of your entity definitions @@ -120,7 +120,7 @@ logger.setLevel(logging.DEBUG) handler = logging.StreamHandler(stream=sys.stdout) logger.addHandler(handler) -endpoint = "https://.catalog.purview.azure.com" +endpoint = "https://.purview.azure.com" credential = DefaultAzureCredential() # This client will log detailed information about its HTTP sessions, at DEBUG level diff --git a/sdk/purview/azure-purview-catalog/tests/recordings/test_smoke.test_basic_smoke_test.yaml b/sdk/purview/azure-purview-catalog/tests/recordings/test_smoke.test_basic_smoke_test.yaml index fb94e512755d..e13ed2015ae0 100644 --- a/sdk/purview/azure-purview-catalog/tests/recordings/test_smoke.test_basic_smoke_test.yaml +++ b/sdk/purview/azure-purview-catalog/tests/recordings/test_smoke.test_basic_smoke_test.yaml @@ -9,9 +9,9 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-purview-catalog/1.0.0b2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-purview-catalog/1.0.0b3 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_account.catalog.purview.azure.com/catalog/api/atlas/v2/types/typedefs?includeTermTemplate=false + uri: https://fake_account.purview.azure.com/catalog/api/atlas/v2/types/typedefs?includeTermTemplate=false response: body: string: "{\"enumDefs\":[{\"category\":\"ENUM\",\"guid\":\"6e30d01e-f5d0-9799-08e7-09b4f276c09c\",\"createdBy\":\"admin\",\"updatedBy\":\"admin\",\"createTime\":1615787943686,\"updateTime\":1615787943686,\"version\":1,\"name\":\"glossary_term_status_value\",\"description\":\"glossary_term_status_value\",\"typeVersion\":\"1.0\",\"lastModifiedTS\":\"1\",\"elementDefs\":[{\"value\":\"Approved\",\"ordinal\":0},{\"value\":\"Alert\",\"ordinal\":1},{\"value\":\"Expired\",\"ordinal\":2},{\"value\":\"Draft\",\"ordinal\":3}]},{\"category\":\"ENUM\",\"guid\":\"42185ddb-29be-e911-ea52-890154eb07c0\",\"createdBy\":\"admin\",\"updatedBy\":\"admin\",\"createTime\":1615787943608,\"updateTime\":1615787943973,\"version\":2,\"name\":\"AtlasGlossaryTermRelationshipStatus\",\"description\":\"TermRelationshipStatus @@ -1095,7 +1095,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 28 Sep 2021 05:49:25 GMT + - Thu, 21 Oct 2021 05:46:58 GMT expires: - '0' pragma: diff --git a/sdk/purview/azure-purview-catalog/tests/recordings/test_smoke_async.test_basic_smoke_test.yaml b/sdk/purview/azure-purview-catalog/tests/recordings/test_smoke_async.test_basic_smoke_test.yaml index c9b18ef120ee..b08717d96805 100644 --- a/sdk/purview/azure-purview-catalog/tests/recordings/test_smoke_async.test_basic_smoke_test.yaml +++ b/sdk/purview/azure-purview-catalog/tests/recordings/test_smoke_async.test_basic_smoke_test.yaml @@ -5,9 +5,9 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-purview-catalog/1.0.0b2 Python/3.7.3 (Windows-10-10.0.19041-SP0) + - azsdk-python-purview-catalog/1.0.0b3 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://fake_account.catalog.purview.azure.com/catalog/api/atlas/v2/types/typedefs?includeTermTemplate=false + uri: https://fake_account.purview.azure.com/catalog/api/atlas/v2/types/typedefs?includeTermTemplate=false response: body: string: "{\"enumDefs\":[{\"category\":\"ENUM\",\"guid\":\"6e30d01e-f5d0-9799-08e7-09b4f276c09c\",\"createdBy\":\"admin\",\"updatedBy\":\"admin\",\"createTime\":1615787943686,\"updateTime\":1615787943686,\"version\":1,\"name\":\"glossary_term_status_value\",\"description\":\"glossary_term_status_value\",\"typeVersion\":\"1.0\",\"lastModifiedTS\":\"1\",\"elementDefs\":[{\"value\":\"Approved\",\"ordinal\":0},{\"value\":\"Alert\",\"ordinal\":1},{\"value\":\"Expired\",\"ordinal\":2},{\"value\":\"Draft\",\"ordinal\":3}]},{\"category\":\"ENUM\",\"guid\":\"42185ddb-29be-e911-ea52-890154eb07c0\",\"createdBy\":\"admin\",\"updatedBy\":\"admin\",\"createTime\":1615787943608,\"updateTime\":1615787943973,\"version\":2,\"name\":\"AtlasGlossaryTermRelationshipStatus\",\"description\":\"TermRelationshipStatus @@ -1083,7 +1083,7 @@ interactions: ''unsafe-eval'' blob: data:; connect-src ''self''; img-src ''self'' blob: data:; style-src ''self'' ''unsafe-inline'';font-src ''self'' data:' content-type: application/json; charset=utf-8 - date: Tue, 28 Sep 2021 05:49:58 GMT + date: Thu, 21 Oct 2021 05:47:17 GMT expires: '0' pragma: no-cache server: AzurePurview diff --git a/sdk/purview/azure-purview-catalog/tests/testcase.py b/sdk/purview/azure-purview-catalog/tests/testcase.py index 76811331f8fc..d2349c29496d 100644 --- a/sdk/purview/azure-purview-catalog/tests/testcase.py +++ b/sdk/purview/azure-purview-catalog/tests/testcase.py @@ -23,5 +23,5 @@ def create_client(self, endpoint): PurviewCatalogPowerShellPreparer = functools.partial( PowerShellPreparer, "purviewcatalog", - purviewcatalog_endpoint="https://fake_account.catalog.purview.azure.com" + purviewcatalog_endpoint="https://fake_account.purview.azure.com" )