Skip to content
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
5 changes: 5 additions & 0 deletions src/anf-preview/azext_anf_preview/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# --------------------------------------------------------------------------------------------

# pylint: disable=line-too-long
from azure.cli.core.commands.parameters import resource_group_name_type


def load_arguments(self, _):
Expand Down Expand Up @@ -53,3 +54,7 @@ def load_arguments(self, _):

with self.argument_context('anf') as c:
c.argument('tag', options_list=['--tags'], required=False, help='A list of space separated tags to apply to the account')

# incompatible naming of resource_group in the swagger - including this to provide its associated feature set until it is updated
with self.argument_context('anf') as c:
c.argument('resource_group', arg_type=resource_group_name_type)

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
interactions:
- request:
body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-25T09:47:18Z",
body: !!python/unicode '{"location": "westus", "tags": {"date": "2019-02-28T08:38:06Z",
"product": "azurecli", "cause": "automation"}}'
headers:
Accept: [application/json]
Expand All @@ -16,17 +16,17 @@ interactions:
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_tests_rg000001?api-version=2018-05-01
response:
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-25T09:47:18Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'}
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001","name":"cli_tests_rg000001","location":"westus","tags":{"date":"2019-02-28T08:38:06Z","product":"azurecli","cause":"automation"},"properties":{"provisioningState":"Succeeded"}}'}
headers:
cache-control: [no-cache]
content-length: ['384']
content-type: [application/json; charset=utf-8]
date: ['Mon, 25 Feb 2019 09:47:21 GMT']
date: ['Thu, 28 Feb 2019 08:38:07 GMT']
expires: ['-1']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
x-ms-ratelimit-remaining-subscription-writes: ['1197']
status: {code: 201, message: Created}
- request:
body: !!python/unicode '{"location": "westus2"}'
Expand All @@ -44,20 +44,20 @@ interactions:
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15
response:
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T09%3A47%3A26.0475122Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'}
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A38%3A15.4441664Z''\"","location":"westus2","properties":{"provisioningState":"Creating","name":"cli000002"}}'}
headers:
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2010dc85-4be5-4f5b-8cdb-7df2bb54d8ba?api-version=2017-08-15']
azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/96f58db6-21d0-45f7-b9be-4c97178a2aec?api-version=2017-08-15']
cache-control: [no-cache]
content-length: ['452']
content-type: [application/json; charset=utf-8]
date: ['Mon, 25 Feb 2019 09:47:26 GMT']
etag: [W/"datetime'2019-02-25T09%3A47%3A26.0475122Z'"]
date: ['Thu, 28 Feb 2019 08:38:17 GMT']
etag: [W/"datetime'2019-02-28T08%3A38%3A15.4441664Z'"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-IIS/10.0]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
x-ms-ratelimit-remaining-subscription-writes: ['1199']
x-ms-ratelimit-remaining-subscription-writes: ['1198']
x-powered-by: [ASP.NET]
status: {code: 201, message: Created}
- request:
Expand All @@ -71,14 +71,14 @@ interactions:
User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34
azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2010dc85-4be5-4f5b-8cdb-7df2bb54d8ba?api-version=2017-08-15
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/96f58db6-21d0-45f7-b9be-4c97178a2aec?api-version=2017-08-15
response:
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/2010dc85-4be5-4f5b-8cdb-7df2bb54d8ba","name":"2010dc85-4be5-4f5b-8cdb-7df2bb54d8ba","status":"Succeeded","startTime":"2019-02-25T09:47:25.8883093Z","endTime":"2019-02-25T09:47:26.284462Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'}
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.NetApp/locations/westus2/operationResults/96f58db6-21d0-45f7-b9be-4c97178a2aec","name":"96f58db6-21d0-45f7-b9be-4c97178a2aec","status":"Succeeded","startTime":"2019-02-28T08:38:15.3241736Z","endTime":"2019-02-28T08:38:15.6837322Z","percentComplete":100.0,"properties":{"resourceName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002"}}'}
headers:
cache-control: [no-cache]
content-length: ['575']
content-length: ['576']
content-type: [application/json; charset=utf-8]
date: ['Mon, 25 Feb 2019 09:47:57 GMT']
date: ['Thu, 28 Feb 2019 08:38:47 GMT']
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-IIS/10.0]
Expand All @@ -101,13 +101,13 @@ interactions:
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15
response:
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T09%3A47%3A26.3347162Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'}
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A38%3A15.7243652Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'}
headers:
cache-control: [no-cache]
content-length: ['453']
content-type: [application/json; charset=utf-8]
date: ['Mon, 25 Feb 2019 09:47:58 GMT']
etag: [W/"datetime'2019-02-25T09%3A47%3A26.3347162Z'"]
date: ['Thu, 28 Feb 2019 08:38:48 GMT']
etag: [W/"datetime'2019-02-28T08%3A38%3A15.7243652Z'"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-IIS/10.0]
Expand All @@ -131,13 +131,13 @@ interactions:
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15
response:
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T09%3A47%3A26.3347162Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'}
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A38%3A15.7243652Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'}
headers:
cache-control: [no-cache]
content-length: ['453']
content-type: [application/json; charset=utf-8]
date: ['Mon, 25 Feb 2019 09:48:01 GMT']
etag: [W/"datetime'2019-02-25T09%3A47%3A26.3347162Z'"]
date: ['Thu, 28 Feb 2019 08:38:51 GMT']
etag: [W/"datetime'2019-02-28T08%3A38%3A15.7243652Z'"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-IIS/10.0]
Expand All @@ -154,20 +154,20 @@ interactions:
Accept-Encoding: ['gzip, deflate']
CommandName: [anf account show]
Connection: [keep-alive]
ParameterSetName: [--resource-group --ids]
ParameterSetName: [--ids]
User-Agent: [python/2.7.10 (Darwin-16.7.0-x86_64-i386-64bit) msrest/0.6.3 msrest_azure/0.4.34
azure-mgmt-netapp/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.56]
accept-language: [en-US]
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002?api-version=2017-08-15
response:
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-25T09%3A47%3A26.3347162Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'}
body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_tests_rg000001/providers/Microsoft.NetApp/netAppAccounts/cli000002","name":"cli000002","type":"Microsoft.NetApp/netAppAccounts","etag":"W/\"datetime''2019-02-28T08%3A38%3A15.7243652Z''\"","location":"westus2","properties":{"provisioningState":"Succeeded","name":"cli000002"}}'}
headers:
cache-control: [no-cache]
content-length: ['453']
content-type: [application/json; charset=utf-8]
date: ['Mon, 25 Feb 2019 09:48:03 GMT']
etag: [W/"datetime'2019-02-25T09%3A47%3A26.3347162Z'"]
date: ['Thu, 28 Feb 2019 08:38:53 GMT']
etag: [W/"datetime'2019-02-28T08%3A38%3A15.7243652Z'"]
expires: ['-1']
pragma: [no-cache]
server: [Microsoft-IIS/10.0]
Expand Down Expand Up @@ -196,9 +196,9 @@ interactions:
headers:
cache-control: [no-cache]
content-length: ['0']
date: ['Mon, 25 Feb 2019 09:48:07 GMT']
date: ['Thu, 28 Feb 2019 08:38:57 GMT']
expires: ['-1']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHVjRaUlEzWDZRTE1aNDNMRlZNSVJWVVFDU1hJRVQ0UXxFNkI3OUEyNTFFM0ZDREExLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01']
location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUUzo1RlJHMlI2QUtOTDRESzdRN0s0RllCNFFFQkhDUk4yUkhWRXwyMjM4Mjc3MTk2MTcxQUUyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01']
pragma: [no-cache]
strict-transport-security: [max-age=31536000; includeSubDomains]
x-content-type-options: [nosniff]
Expand Down
Loading