Skip to content

Commit c6b1de5

Browse files
chcmsftharryli0108
authored andcommitted
[Maps] Data Registry service GA version (Azure#24204)
* add GA version data registry api * fix pipeline fails * update the description of List API
1 parent bfc5270 commit c6b1de5

10 files changed

+764
-1
lines changed

specification/maps/data-plane/DataRegistry/readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,21 @@ These are the global settings for Data Registry Client.
2727
``` yaml
2828
title: DataRegistryClient
2929
openapi-type: data-plane
30-
tag: 2022-12-01-preview
30+
tag: 2023-06-01
3131
# at some point those credentials will move away to Swagger according to [this](https://github.com/Azure/autorest/issues/3718)
3232
add-credentials: true
3333
credential-default-policy-type: BearerTokenCredentialPolicy
3434
credential-scopes: https://atlas.microsoft.com/.default
3535
```
3636
37+
### Tag: 2023-06-01
38+
39+
These settings apply only when `--tag=2023-06-01` is specified on the command line.
40+
41+
``` yaml $(tag) == '2023-06-01'
42+
input-file:
43+
- stable/2023-06-01/dataregistry.json
44+
```
3745

3846
### Tag: 2022-12-01
3947

specification/maps/data-plane/DataRegistry/stable/2023-06-01/dataregistry.json

Lines changed: 527 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"geography": "us",
4+
"api-version": "2023-06-01",
5+
"udid": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"udid": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
11+
"description": "Contoso Geofence GeoJSON",
12+
"kind": "AzureBlob",
13+
"azureBlob": {
14+
"dataFormat": "geojson",
15+
"msiClientId": "3263cad5-ed8b-4829-b72b-3d1ba556e373",
16+
"linkedResource": "my-storage-account",
17+
"blobUrl": "https://mystorageaccount.blob.core.windows.net/my-container/my/blob/path.json",
18+
"sizeInBytes": 1339,
19+
"contentMD5": "sOJMJvFParkSxBsvvrPOMQ=="
20+
},
21+
"status": "Completed"
22+
}
23+
}
24+
}
25+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"geography": "us",
4+
"api-version": "2023-06-01",
5+
"udid": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"udid": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
11+
"description": "Contoso Geofence GeoJSON",
12+
"kind": "AzureBlob",
13+
"azureBlob": {
14+
"dataFormat": "geojson",
15+
"msiClientId": "3263cad5-ed8b-4829-b72b-3d1ba556e373",
16+
"linkedResource": "my-storage-account",
17+
"blobUrl": "https://mystorageaccount.blob.core.windows.net/my-container/my/blob/path.json"
18+
},
19+
"status": "Failed",
20+
"error": {
21+
"code": "AuthorizationPermissionMismatch",
22+
"message": "Not authorized to perform this operation on resource: https://mystorageaccount.blob.core.windows.net/my-container/my/blob/path.json."
23+
}
24+
}
25+
}
26+
}
27+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"geography": "us",
4+
"api-version": "2023-06-01",
5+
"operationId": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
11+
"status": "Completed"
12+
}
13+
}
14+
}
15+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"geography": "us",
4+
"api-version": "2023-06-01",
5+
"operationId": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
11+
"status": "Failed",
12+
"error": {
13+
"code": "InvalidData",
14+
"message": "The data is not a valid GeoJSON."
15+
}
16+
}
17+
}
18+
}
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"geography": "us",
4+
"api-version": "2023-06-01",
5+
"operationId": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {
10+
"Retry-After": 10
11+
},
12+
"body": {
13+
"id": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
14+
"status": "Running"
15+
}
16+
}
17+
}
18+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"geography": "us",
4+
"api-version": "2023-06-01"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"udid": "f6495f62-94f8-0ec2-c252-45626f82fcb2",
12+
"description": "Contoso Indoor Design",
13+
"kind": "AzureBlob",
14+
"azureBlob": {
15+
"dataFormat": "zip",
16+
"msiClientId": "3263cad5-ed8b-4829-b72b-3d1ba556e373",
17+
"linkedResource": "my-storage-account",
18+
"blobUrl": "https://mystorageaccount.blob.core.windows.net/my-container/my/blob/path1.zip",
19+
"sizeInBytes": 29920,
20+
"contentMD5": "CsFxZ2YSfxw3cRPlqokV0w=="
21+
},
22+
"status": "Completed"
23+
},
24+
{
25+
"udid": "8b1288fa-1958-4a2b-b68e-13a7i5af7d7c",
26+
"kind": "AzureBlob",
27+
"azureBlob": {
28+
"dataFormat": "geojson",
29+
"msiClientId": "3263cad5-ed8b-4829-b72b-3d1ba556e373",
30+
"linkedResource": "my-storage-account",
31+
"blobUrl": "https://mystorageaccount.blob.core.windows.net/my-container/my/blob/path2.geojson",
32+
"sizeInBytes": 1339
33+
},
34+
"status": "Running"
35+
},
36+
{
37+
"udid": "7c1288fa-2058-4a1b-b68f-13a6h5af7d7c",
38+
"description": "Contoso Geofence GeoJSON",
39+
"kind": "AzureBlob",
40+
"azureBlob": {
41+
"dataFormat": "geojson",
42+
"linkedResource": "my-storage-account",
43+
"blobUrl": "https://mystorageaccount.blob.core.windows.net/my-container/my/blob/path3.geojson",
44+
"sizeInBytes": 1650,
45+
"contentMD5": "rYpEfIeLbWZPyaICGEGy3A=="
46+
},
47+
"status": "Failed",
48+
"error": {
49+
"code": "ContentMD5Mismatch",
50+
"message": "Actual content MD5: sOJMJvFParkSxBsvvrPOMQ== doesn't match expected content MD5: CsFxZ2YSfxw3cRPlqokV0w==."
51+
}
52+
}
53+
]
54+
}
55+
}
56+
}
57+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"parameters": {
3+
"geography": "us",
4+
"api-version": "2023-06-01",
5+
"udid": "29a92cab-74af-49e7-a326-66898220aa9d",
6+
"dataRegistry": {
7+
"description": "Contoso Geofence GeoJSON",
8+
"kind": "AzureBlob",
9+
"azureBlob": {
10+
"dataFormat": "geojson",
11+
"msiClientId": "3263cad5-ed8b-4829-b72b-3d1ba556e373",
12+
"linkedResource": "my-storage-account",
13+
"blobUrl": "https://mystorageaccount.blob.core.windows.net/my-container/my/blob/path.json"
14+
}
15+
}
16+
},
17+
"responses": {
18+
"201": {
19+
"headers": {
20+
"Operation-Id": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
21+
"Operation-Location": "https://us.atlas.microsoft.com/dataRegistries/operations/0522b4fe-0539-4c6c-ba70-e35ec865d8e2"
22+
},
23+
"body": {
24+
"udid": "29a92cab-74af-49e7-a326-66898220aa9d",
25+
"description": "Contoso Geofence GeoJSON",
26+
"kind": "AzureBlob",
27+
"azureBlob": {
28+
"dataFormat": "geojson",
29+
"msiClientId": "3263cad5-ed8b-4829-b72b-3d1ba556e373",
30+
"linkedResource": "my-storage-account",
31+
"blobUrl": "https://mystorageaccount.blob.core.windows.net/my-container/my/blob/path.json",
32+
"sizeInBytes": 1339
33+
},
34+
"status": "Running"
35+
}
36+
},
37+
"200": {
38+
"headers": {
39+
"Operation-Id": "0522b4fe-0539-4c6c-ba70-e35ec865d8e2",
40+
"Operation-Location": "https://us.atlas.microsoft.com/dataRegistries/operations/0522b4fe-0539-4c6c-ba70-e35ec865d8e2"
41+
},
42+
"body": {
43+
"udid": "29a92cab-74af-49e7-a326-66898220aa9d",
44+
"description": "Contoso Geofence GeoJSON",
45+
"kind": "AzureBlob",
46+
"azureBlob": {
47+
"dataFormat": "geojson",
48+
"msiClientId": "3263cad5-ed8b-4829-b72b-3d1ba556e373",
49+
"linkedResource": "my-storage-account",
50+
"blobUrl": "https://mystorageaccount.blob.core.windows.net/my-container/my/blob/path.json",
51+
"sizeInBytes": 1339
52+
},
53+
"status": "Running"
54+
}
55+
}
56+
}
57+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"geography": "us",
4+
"api-version": "2023-06-01",
5+
"udid": "25084fb7-307a-4720-8f91-7952a0b91012"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}

0 commit comments

Comments
 (0)