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

[Tables] Add get/set access policy #15027

Merged
merged 9 commits into from
Jul 20, 2021
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
COSMOS_TABLES_ENDPOINT_SUFFIX: cosmos.azure.com
TABLES_COSMOS_ACCOUNT_NAME: seankaneprim
TABLES_PRIMARY_COSMOS_ACCOUNT_KEY: Kg==
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
COSMOS_TABLES_ENDPOINT_SUFFIX: cosmos.azure.com
TABLES_COSMOS_ACCOUNT_NAME: seankaneprim
TABLES_PRIMARY_COSMOS_ACCOUNT_KEY: Kg==
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
COSMOS_TABLES_ENDPOINT_SUFFIX: cosmos.azure.com
TABLES_COSMOS_ACCOUNT_NAME: seankaneprim
TABLES_PRIMARY_COSMOS_ACCOUNT_KEY: Kg==
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
COSMOS_TABLES_ENDPOINT_SUFFIX: cosmos.azure.com
TABLES_COSMOS_ACCOUNT_NAME: seankaneprim
TABLES_PRIMARY_COSMOS_ACCOUNT_KEY: Kg==
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
COSMOS_TABLES_ENDPOINT_SUFFIX: cosmos.azure.com
TABLES_COSMOS_ACCOUNT_NAME: seankaneprim
TABLES_PRIMARY_COSMOS_ACCOUNT_KEY: Kg==
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
STORAGE_ENDPOINT_SUFFIX: core.windows.net
TABLES_PRIMARY_STORAGE_ACCOUNT_KEY: Kg==
TABLES_STORAGE_ACCOUNT_NAME: seankaneprim
randomSeed: "1625849358"
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
---
version: 1
interactions:
- request:
body: '{"TableName":"gotable0qolgueqbqo8m"}'
form: {}
headers:
Accept:
- application/json;odata=minimalmetadata
Authorization:
- sanitized
Content-Length:
- "36"
Content-Type:
- application/json
Dataserviceversion:
- "3.0"
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 09 Jul 2021 16:49:18 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.core.windows.net/Tables
method: POST
response:
body: '{"odata.metadata":"https://seankaneprim.table.core.windows.net/$metadata#Tables/@Element","TableName":"gotable0qolgueqbqo8m"}'
headers:
Cache-Control:
- no-cache
Content-Type:
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8
Date:
- Fri, 09 Jul 2021 16:49:18 GMT
Location:
- https://seankaneprim.table.core.windows.net/Tables('gotable0qolgueqbqo8m')
Server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
X-Content-Type-Options:
- nosniff
X-Ms-Request-Id:
- 77af8ed1-c002-0081-0ce2-7448af000000
X-Ms-Version:
- "2019-02-02"
status: 201 Created
code: 201
duration: ""
- request:
body: <SignedIdentifiers><SignedIdentifier><AccessPolicy><Permission>r</Permission><Expiry>2024-01-01T00:00:00Z</Expiry><Start>2020-01-01T00:00:00Z</Start></AccessPolicy><Id>1</Id></SignedIdentifier></SignedIdentifiers>
form: {}
headers:
Accept:
- application/xml
Authorization:
- sanitized
Content-Length:
- "213"
Content-Type:
- application/xml
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 09 Jul 2021 16:49:19 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.core.windows.net/gotable0qolgueqbqo8m?comp=acl
method: PUT
response:
body: ""
headers:
Content-Length:
- "0"
Date:
- Fri, 09 Jul 2021 16:49:18 GMT
Server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Request-Id:
- 77af8f20-c002-0081-58e2-7448af000000
X-Ms-Version:
- "2019-02-02"
status: 204 No Content
code: 204
duration: ""
- request:
body: ""
form: {}
headers:
Accept:
- application/json
Authorization:
- sanitized
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 09 Jul 2021 16:49:19 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.core.windows.net/Tables('gotable0qolgueqbqo8m')
method: DELETE
response:
body: ""
headers:
Cache-Control:
- no-cache
Content-Length:
- "0"
Date:
- Fri, 09 Jul 2021 16:49:18 GMT
Server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
X-Content-Type-Options:
- nosniff
X-Ms-Request-Id:
- 77af8f95-c002-0081-4ae2-7448af000000
X-Ms-Version:
- "2019-02-02"
status: 204 No Content
code: 204
duration: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
STORAGE_ENDPOINT_SUFFIX: core.windows.net
TABLES_PRIMARY_STORAGE_ACCOUNT_KEY: Kg==
TABLES_STORAGE_ACCOUNT_NAME: seankaneprim
randomSeed: "1625242264"
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
---
version: 1
interactions:
- request:
body: '{"TableName":"gotablemp92a68btv51b"}'
form: {}
headers:
Accept:
- application/json;odata=minimalmetadata
Authorization:
- sanitized
Content-Length:
- "36"
Content-Type:
- application/json
Dataserviceversion:
- "3.0"
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 02 Jul 2021 16:11:04 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.core.windows.net/Tables
method: POST
response:
body: '{"odata.metadata":"https://seankaneprim.table.core.windows.net/$metadata#Tables/@Element","TableName":"gotablemp92a68btv51b"}'
headers:
Cache-Control:
- no-cache
Content-Type:
- application/json;odata=minimalmetadata;streaming=true;charset=utf-8
Date:
- Fri, 02 Jul 2021 16:11:04 GMT
Location:
- https://seankaneprim.table.core.windows.net/Tables('gotablemp92a68btv51b')
Server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
X-Content-Type-Options:
- nosniff
X-Ms-Request-Id:
- 6acd05cd-4002-006b-295c-6f6f81000000
X-Ms-Version:
- "2019-02-02"
status: 201 Created
code: 201
duration: ""
- request:
body: ""
form: {}
headers:
Accept:
- application/xml
Authorization:
- sanitized
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 02 Jul 2021 16:11:04 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.core.windows.net/gotablemp92a68btv51b?comp=acl
method: PUT
response:
body: ""
headers:
Content-Length:
- "0"
Date:
- Fri, 02 Jul 2021 16:11:04 GMT
Server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
X-Ms-Request-Id:
- 6acd0623-4002-006b-7c5c-6f6f81000000
X-Ms-Version:
- "2019-02-02"
status: 204 No Content
code: 204
duration: ""
- request:
body: ""
form: {}
headers:
Accept:
- application/json
Authorization:
- sanitized
User-Agent:
- azsdk-go-aztable/<version> azsdk-go-aztable/<version> azcore/v0.16.2 (go1.16.5;
Windows_NT)
X-Ms-Date:
- Fri, 02 Jul 2021 16:11:05 GMT
X-Ms-Version:
- "2019-02-02"
url: https://seankaneprim.table.core.windows.net/Tables('gotablemp92a68btv51b')
method: DELETE
response:
body: ""
headers:
Cache-Control:
- no-cache
Content-Length:
- "0"
Date:
- Fri, 02 Jul 2021 16:11:04 GMT
Server:
- Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0
X-Content-Type-Options:
- nosniff
X-Ms-Request-Id:
- 6acd066d-4002-006b-405c-6f6f81000000
X-Ms-Version:
- "2019-02-02"
status: 204 No Content
code: 204
duration: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
STORAGE_ENDPOINT_SUFFIX: core.windows.net
TABLES_PRIMARY_STORAGE_ACCOUNT_KEY: Kg==
TABLES_STORAGE_ACCOUNT_NAME: seankaneprim
randomSeed: "1625849315"
Loading