Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Purview Catalog] Update docs #21360

Merged
merged 1 commit into from
Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sdk/purview/azure-purview-catalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ from azure.purview.catalog import PurviewCatalogClient
from azure.identity import DefaultAzureCredential

credential = DefaultAzureCredential()
client = PurviewCatalogClient(endpoint="https://<my-account-name>.catalog.purview.azure.com", credential=credential)
client = PurviewCatalogClient(endpoint="https://<my-account-name>.purview.azure.com", credential=credential)
```

## Key concepts
Expand All @@ -80,7 +80,7 @@ from azure.identity import DefaultAzureCredential
from azure.core.exceptions import HttpResponseError

credential = DefaultAzureCredential()
client = PurviewCatalogClient(endpoint="https://<my-account-name>.catalog.purview.azure.com", credential=credential)
client = PurviewCatalogClient(endpoint="https://<my-account-name>.purview.azure.com", credential=credential)
try:
response = client.types.get_all_type_definitions()
# print out all of your entity definitions
Expand Down Expand Up @@ -120,7 +120,7 @@ logger.setLevel(logging.DEBUG)
handler = logging.StreamHandler(stream=sys.stdout)
logger.addHandler(handler)

endpoint = "https://<my-account-name>.catalog.purview.azure.com"
endpoint = "https://<my-account-name>.purview.azure.com"
credential = DefaultAzureCredential()

# This client will log detailed information about its HTTP sessions, at DEBUG level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sdk/purview/azure-purview-catalog/tests/testcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)