forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e24d94a
commit bd7e73e
Showing
36 changed files
with
2,660 additions
and
6 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
...apic-extension/azext_apic_extension/tests/latest/recordings/test_examples_create_api.yaml
This file contains 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,61 @@ | ||
interactions: | ||
- request: | ||
body: '{"properties": {"kind": "rest", "title": "Echo API"}}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
CommandName: | ||
- apic api create | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '53' | ||
Content-Type: | ||
- application/json | ||
ParameterSetName: | ||
- -g -s --api-id --title --type | ||
User-Agent: | ||
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) | ||
method: PUT | ||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000003?api-version=2024-03-01 | ||
response: | ||
body: | ||
string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo | ||
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000003","name":"cli000003","systemData":{"createdAt":"2024-05-24T07:50:59.3799269Z","lastModifiedAt":"2024-05-24T07:50:59.3799259Z"}}' | ||
headers: | ||
api-supported-versions: | ||
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview | ||
cache-control: | ||
- no-cache | ||
content-length: | ||
- '464' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Fri, 24 May 2024 07:50:59 GMT | ||
etag: | ||
- 3000bd3e-0000-0100-0000-665046e30000 | ||
expires: | ||
- '-1' | ||
pragma: | ||
- no-cache | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
vary: | ||
- Accept-Encoding | ||
x-cache: | ||
- CONFIG_NOCACHE | ||
x-content-type-options: | ||
- nosniff | ||
x-ms-ratelimit-remaining-subscription-writes: | ||
- '1199' | ||
x-msedge-ref: | ||
- 'Ref A: 73675F9FA6514297956723A9D39BBF2E Ref B: MAA201060516009 Ref C: 2024-05-24T07:50:57Z' | ||
x-powered-by: | ||
- ASP.NET | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
62 changes: 62 additions & 0 deletions
62
...ic_extension/tests/latest/recordings/test_examples_create_api_with_custom_properties.yaml
This file contains 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,62 @@ | ||
interactions: | ||
- request: | ||
body: '{"properties": {"customProperties": {"clitest000003": true}, "kind": "rest", | ||
"title": "Echo API"}}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
CommandName: | ||
- apic api create | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '98' | ||
Content-Type: | ||
- application/json | ||
ParameterSetName: | ||
- -g -s --api-id --title --type --custom-properties | ||
User-Agent: | ||
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) | ||
method: PUT | ||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004?api-version=2024-03-01 | ||
response: | ||
body: | ||
string: '{"type":"Microsoft.ApiCenter/services/workspaces/apis","properties":{"title":"Echo | ||
API","kind":"rest","externalDocumentation":[],"contacts":[],"customProperties":{"clitest000003":true}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/apis/cli000004","name":"cli000004","systemData":{"createdAt":"2024-05-24T07:51:19.9191143Z","lastModifiedAt":"2024-05-24T07:51:19.9190948Z"}}' | ||
headers: | ||
api-supported-versions: | ||
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview | ||
cache-control: | ||
- no-cache | ||
content-length: | ||
- '484' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Fri, 24 May 2024 07:51:19 GMT | ||
etag: | ||
- 3000c940-0000-0100-0000-665046f70000 | ||
expires: | ||
- '-1' | ||
pragma: | ||
- no-cache | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
vary: | ||
- Accept-Encoding | ||
x-cache: | ||
- CONFIG_NOCACHE | ||
x-content-type-options: | ||
- nosniff | ||
x-ms-ratelimit-remaining-subscription-writes: | ||
- '1198' | ||
x-msedge-ref: | ||
- 'Ref A: 9BC575065296493C944EFF1CBFEA5ECF Ref B: MAA201060514033 Ref C: 2024-05-24T07:51:18Z' | ||
x-powered-by: | ||
- ASP.NET | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
61 changes: 61 additions & 0 deletions
61
...ension/azext_apic_extension/tests/latest/recordings/test_examples_create_environment.yaml
This file contains 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,61 @@ | ||
interactions: | ||
- request: | ||
body: '{"properties": {"kind": "development", "title": "Public cloud"}}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
CommandName: | ||
- apic environment create | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '64' | ||
Content-Type: | ||
- application/json | ||
ParameterSetName: | ||
- -g -s --environment-id --title --type | ||
User-Agent: | ||
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) | ||
method: PUT | ||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/cli000003?api-version=2024-03-01 | ||
response: | ||
body: | ||
string: '{"type":"Microsoft.ApiCenter/services/workspaces/environments","properties":{"title":"Public | ||
cloud","kind":"development","customProperties":{}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/workspaces/default/environments/cli000003","name":"cli000003","systemData":{"createdAt":"2024-05-24T07:51:06.6386454Z"}}' | ||
headers: | ||
api-supported-versions: | ||
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview | ||
cache-control: | ||
- no-cache | ||
content-length: | ||
- '402' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Fri, 24 May 2024 07:51:05 GMT | ||
etag: | ||
- 2500f1d8-0000-0100-0000-665046ea0000 | ||
expires: | ||
- '-1' | ||
pragma: | ||
- no-cache | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
vary: | ||
- Accept-Encoding | ||
x-cache: | ||
- CONFIG_NOCACHE | ||
x-content-type-options: | ||
- nosniff | ||
x-ms-ratelimit-remaining-subscription-writes: | ||
- '1198' | ||
x-msedge-ref: | ||
- 'Ref A: 177FE32340EA4BFBA93D2D1E97609CEB Ref B: MAA201060515011 Ref C: 2024-05-24T07:51:05Z' | ||
x-powered-by: | ||
- ASP.NET | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
63 changes: 63 additions & 0 deletions
63
...tension/azext_apic_extension/tests/latest/recordings/test_examples_create_metadata_1.yaml
This file contains 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,63 @@ | ||
interactions: | ||
- request: | ||
body: '{"properties": {"assignedTo": [{"deprecated": false, "entity": "api", "required": | ||
true}], "schema": "{\"type\":\"string\", \"title\":\"First name\", \"pattern\": | ||
\"^[a-zA-Z0-9]+$\"}"}}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
CommandName: | ||
- apic metadata create | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '184' | ||
Content-Type: | ||
- application/json | ||
ParameterSetName: | ||
- --resource-group --service-name --name --schema --assignments | ||
User-Agent: | ||
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) | ||
method: PUT | ||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003?api-version=2024-03-01 | ||
response: | ||
body: | ||
string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false}],"schema":"{\"type\":\"string\", | ||
\"title\":\"First name\", \"pattern\": \"^[a-zA-Z0-9]+$\"}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003","name":"cli000003","systemData":{"createdAt":"2024-05-24T07:00:27.1869547Z","lastModifiedAt":"2024-05-24T07:00:27.186954Z"}}' | ||
headers: | ||
api-supported-versions: | ||
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview | ||
cache-control: | ||
- no-cache | ||
content-length: | ||
- '518' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Fri, 24 May 2024 07:00:27 GMT | ||
etag: | ||
- 21004873-0000-0100-0000-66503b0b0000 | ||
expires: | ||
- '-1' | ||
pragma: | ||
- no-cache | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
vary: | ||
- Accept-Encoding | ||
x-cache: | ||
- CONFIG_NOCACHE | ||
x-content-type-options: | ||
- nosniff | ||
x-ms-ratelimit-remaining-subscription-writes: | ||
- '1199' | ||
x-msedge-ref: | ||
- 'Ref A: 771DFC4A273E43AF80D2B3F74D4D357D Ref B: MAA201060516053 Ref C: 2024-05-24T07:00:25Z' | ||
x-powered-by: | ||
- ASP.NET | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
62 changes: 62 additions & 0 deletions
62
...tension/azext_apic_extension/tests/latest/recordings/test_examples_create_metadata_2.yaml
This file contains 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,62 @@ | ||
interactions: | ||
- request: | ||
body: '{"properties": {"assignedTo": [{"deprecated": false, "entity": "api", "required": | ||
true}, {"deprecated": false, "entity": "environment", "required": true}], "schema": | ||
"{\"type\":\"string\",\"title\":\"testregion\",\"oneOf\":[{\"const\":\"Region1\",\"description\":\"\"},{\"const\":\"Region2\",\"description\":\"\"},{\"const\":\"Region3\",\"description\":\"\"}]}"}}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
CommandName: | ||
- apic metadata create | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '363' | ||
Content-Type: | ||
- application/json | ||
ParameterSetName: | ||
- --resource-group --service-name --name --schema --assignments | ||
User-Agent: | ||
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) | ||
method: PUT | ||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003?api-version=2024-03-01 | ||
response: | ||
body: | ||
string: '{"type":"Microsoft.ApiCenter/services/metadataSchemas","properties":{"assignedTo":[{"entity":"api","required":true,"deprecated":false},{"entity":"environment","required":true,"deprecated":false}],"schema":"{\"type\":\"string\",\"title\":\"testregion\",\"oneOf\":[{\"const\":\"Region1\",\"description\":\"\"},{\"const\":\"Region2\",\"description\":\"\"},{\"const\":\"Region3\",\"description\":\"\"}]}"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/clitest000002/metadataSchemas/cli000003","name":"cli000003","systemData":{"createdAt":"2024-05-24T07:00:44.9559411Z","lastModifiedAt":"2024-05-24T07:00:44.9559389Z"}}' | ||
headers: | ||
api-supported-versions: | ||
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview | ||
cache-control: | ||
- no-cache | ||
content-length: | ||
- '692' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Fri, 24 May 2024 07:00:44 GMT | ||
etag: | ||
- 21002e76-0000-0100-0000-66503b1c0000 | ||
expires: | ||
- '-1' | ||
pragma: | ||
- no-cache | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
vary: | ||
- Accept-Encoding | ||
x-cache: | ||
- CONFIG_NOCACHE | ||
x-content-type-options: | ||
- nosniff | ||
x-ms-ratelimit-remaining-subscription-writes: | ||
- '1199' | ||
x-msedge-ref: | ||
- 'Ref A: F410C24032D94D5C9A19F60B3B30CA99 Ref B: MAA201060515009 Ref C: 2024-05-24T07:00:43Z' | ||
x-powered-by: | ||
- ASP.NET | ||
status: | ||
code: 200 | ||
message: OK | ||
version: 1 |
58 changes: 58 additions & 0 deletions
58
...xtension/azext_apic_extension/tests/latest/recordings/test_examples_create_service_1.yaml
This file contains 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,58 @@ | ||
interactions: | ||
- request: | ||
body: '{"location": "eastus"}' | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- gzip, deflate | ||
CommandName: | ||
- apic service create | ||
Connection: | ||
- keep-alive | ||
Content-Length: | ||
- '22' | ||
Content-Type: | ||
- application/json | ||
ParameterSetName: | ||
- -g -s -l | ||
User-Agent: | ||
- AZURECLI/2.58.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) | ||
method: PUT | ||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002?api-version=2024-03-01 | ||
response: | ||
body: | ||
string: '{"type":"Microsoft.ApiCenter/services","location":"eastus","sku":{"name":"Free"},"properties":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clirg000001/providers/Microsoft.ApiCenter/services/cli000002","name":"cli000002","tags":{},"systemData":{"createdAt":"2024-05-24T05:46:34.3459347Z","lastModifiedAt":"2024-05-24T05:46:34.3459249Z"}}' | ||
headers: | ||
api-supported-versions: | ||
- 2023-07-01-preview, 2024-03-01, 2024-03-15-preview | ||
cache-control: | ||
- no-cache | ||
content-length: | ||
- '367' | ||
content-type: | ||
- application/json; charset=utf-8 | ||
date: | ||
- Fri, 24 May 2024 05:46:34 GMT | ||
expires: | ||
- '-1' | ||
pragma: | ||
- no-cache | ||
strict-transport-security: | ||
- max-age=31536000; includeSubDomains | ||
vary: | ||
- Accept-Encoding | ||
x-cache: | ||
- CONFIG_NOCACHE | ||
x-content-type-options: | ||
- nosniff | ||
x-ms-ratelimit-remaining-subscription-writes: | ||
- '1199' | ||
x-msedge-ref: | ||
- 'Ref A: 509E6054B1FB4DF68EB4C56E786F98AD Ref B: MAA201060515047 Ref C: 2024-05-24T05:46:30Z' | ||
x-powered-by: | ||
- ASP.NET | ||
status: | ||
code: 201 | ||
message: Created | ||
version: 1 |
Oops, something went wrong.