-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Breadth]Resource Graph #1400
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
Merged
Merged
[Breadth]Resource Graph #1400
Changes from 6 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d805873
bump sdk
ad85929
finish code
f0d902c
hack to fix python sdk
eb9004e
recording tests
edc9868
fix style
d31dc28
bump sdk and versions
2fa00ef
address comments
75c36eb
rename it to md
f5bf383
md
f6bcf24
Merge branch 'master' into breadth-resource-group
mmyyrroonn 6b49bb6
add experimental
b7cbe60
Merge branch 'master' into breadth-resource-group
mmyyrroonn c117669
Merge branch 'master' into breadth-resource-group
mmyyrroonn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,8 @@ | ||
| 1.1.0 | ||
| ++++++++++++++++++ | ||
|
|
||
| * Support CRUD commands for Azure shared query. | ||
|
|
||
| 0.1.8 | ||
| ++++++++++++++++++ | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
230 changes: 230 additions & 0 deletions
230
...esource-graph/azext_resourcegraph/tests/latest/recordings/test_shared_query_scenario.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,230 @@ | ||
| interactions: | ||
| - request: | ||
| body: '{"tags": {"a": "b"}, "properties": {"description": "AzureCliTest", "query": | ||
| "project id, name, type, location, tags"}, "location": "global"}' | ||
| headers: | ||
| Accept: | ||
| - application/json | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| CommandName: | ||
| - graph shared-query create | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '140' | ||
| Content-Type: | ||
| - application/json; charset=utf-8 | ||
| ParameterSetName: | ||
| - -g -n -q -d --tags | ||
| User-Agent: | ||
| - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.2 azure-mgmt-resourcegraph/2.1.0 | ||
| Azure-SDK-For-Python AZURECLI/2.2.0 | ||
| accept-language: | ||
| - en-US | ||
| method: PUT | ||
| uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ResourceGraph/queries/clitest000002?api-version=2018-09-01-preview | ||
| response: | ||
| body: | ||
| string: '{"properties":{"resultKind":"UnKnown","timeModified":"2020-03-17T04:31:12.0470691Z","query":"project | ||
| id, name, type, location, tags","description":"AzureCliTest"},"type":"microsoft.resourcegraph/queries","location":"global","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"clitest.rg000001","name":"clitest000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.resourcegraph/queries/clitest000002","tags":{"a":"b"},"etag":"\"12001e1a-0000-1800-0000-5e7052900000\""}' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-length: | ||
| - '684' | ||
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Tue, 17 Mar 2020 04:31:14 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
| - no-cache | ||
| server: | ||
| - Kestrel | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains | ||
| transfer-encoding: | ||
| - chunked | ||
| vary: | ||
| - Accept-Encoding | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-ratelimit-remaining-subscription-writes: | ||
| - '1199' | ||
| x-ms-ratelimit-remaining-tenant-resource-requests: | ||
| - '1' | ||
| x-ms-user-quota-remaining: | ||
| - '1' | ||
| x-ms-user-quota-resets-after: | ||
| - 00:00:00 | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - application/json | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| CommandName: | ||
| - graph shared-query show | ||
| Connection: | ||
| - keep-alive | ||
| ParameterSetName: | ||
| - -g -n | ||
| User-Agent: | ||
| - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.2 azure-mgmt-resourcegraph/2.1.0 | ||
| Azure-SDK-For-Python AZURECLI/2.2.0 | ||
| accept-language: | ||
| - en-US | ||
| method: GET | ||
| uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ResourceGraph/queries/clitest000002?api-version=2018-09-01-preview | ||
| response: | ||
| body: | ||
| string: '{"properties":{"resultKind":"UnKnown","timeModified":"2020-03-17T04:31:12.0470691Z","query":"project | ||
| id, name, type, location, tags","description":"AzureCliTest"},"type":"microsoft.resourcegraph/queries","location":"global","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"clitest.rg000001","name":"clitest000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.resourcegraph/queries/clitest000002","tags":{"a":"b"},"etag":"\"12001e1a-0000-1800-0000-5e7052900000\""}' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-length: | ||
| - '684' | ||
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Tue, 17 Mar 2020 04:31:15 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
| - no-cache | ||
| server: | ||
| - Kestrel | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains | ||
| transfer-encoding: | ||
| - chunked | ||
| vary: | ||
| - Accept-Encoding | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-ratelimit-remaining-tenant-resource-requests: | ||
| - '1' | ||
| x-ms-user-quota-remaining: | ||
| - '1' | ||
| x-ms-user-quota-resets-after: | ||
| - 00:00:00 | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - application/json | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| CommandName: | ||
| - graph shared-query list | ||
| Connection: | ||
| - keep-alive | ||
| ParameterSetName: | ||
| - -g | ||
| User-Agent: | ||
| - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.2 azure-mgmt-resourcegraph/2.1.0 | ||
| Azure-SDK-For-Python AZURECLI/2.2.0 | ||
| accept-language: | ||
| - en-US | ||
| method: GET | ||
| uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ResourceGraph/queries?api-version=2018-09-01-preview | ||
| response: | ||
| body: | ||
| string: '{"value":[{"properties":{"resultKind":"UnKnown","timeModified":"2020-03-17T04:31:12.0470691Z","query":"project | ||
| id, name, type, location, tags","description":"AzureCliTest"},"type":"microsoft.resourcegraph/queries","location":"global","subscriptionId":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","resourceGroup":"clitest.rg000001","name":"clitest000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.resourcegraph/queries/clitest000002","tags":{"a":"b"},"etag":"\"12001e1a-0000-1800-0000-5e7052900000\""}]}' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-length: | ||
| - '696' | ||
| content-type: | ||
| - application/json; charset=utf-8 | ||
| date: | ||
| - Tue, 17 Mar 2020 04:31:16 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
| - no-cache | ||
| server: | ||
| - Kestrel | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains | ||
| transfer-encoding: | ||
| - chunked | ||
| vary: | ||
| - Accept-Encoding | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-ratelimit-remaining-tenant-resource-requests: | ||
| - '1' | ||
| x-ms-user-quota-remaining: | ||
| - '1' | ||
| x-ms-user-quota-resets-after: | ||
| - 00:00:00 | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - application/json | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| CommandName: | ||
| - graph shared-query delete | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '0' | ||
| ParameterSetName: | ||
| - -g -n | ||
| User-Agent: | ||
| - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.2 azure-mgmt-resourcegraph/2.1.0 | ||
| Azure-SDK-For-Python AZURECLI/2.2.0 | ||
| accept-language: | ||
| - en-US | ||
| method: DELETE | ||
| uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ResourceGraph/queries/clitest000002?api-version=2018-09-01-preview | ||
| response: | ||
| body: | ||
| string: '' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-length: | ||
| - '0' | ||
| date: | ||
| - Tue, 17 Mar 2020 04:31:24 GMT | ||
| expires: | ||
| - '-1' | ||
| pragma: | ||
| - no-cache | ||
| server: | ||
| - Kestrel | ||
| strict-transport-security: | ||
| - max-age=31536000; includeSubDomains | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-ratelimit-remaining-subscription-deletes: | ||
| - '14999' | ||
| x-ms-ratelimit-remaining-tenant-resource-requests: | ||
| - '1' | ||
| x-ms-user-quota-remaining: | ||
| - '1' | ||
| x-ms-user-quota-resets-after: | ||
| - 00:00:00 | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| version: 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.