Skip to content

Commit

Permalink
snapshot is a proxy resource
Browse files Browse the repository at this point in the history
  • Loading branch information
audunn committed Feb 19, 2021
1 parent eaaab0d commit 4ed4e8d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@
"poolName": "pool1",
"volumeName": "volume1",
"snapshotName": "snapshot1",
"api-version": "2020-11-01",
"api-version": "2020-12-01",
"body": {
"location": "eastus"

}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1",
"name": "account1/pool1/volume1/snapshot1",
"type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots",
"location": "eastus",
"type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots",
"properties": {
"snapshotId": "9760acf5-4638-11e7-9bdb-020073ca3333",
"created": "2017-08-15T13:23:33Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
"poolName": "pool1",
"volumeName": "volume1",
"snapshotName": "snapshot1",
"api-version": "2020-11-01"
"api-version": "2020-12-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1",
"name": "account1/pool1/volume1/snapshot1",
"type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots",
"location": "eastus",
"type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots",
"properties": {
"snapshotId": "9760acf5-4638-11e7-9bdb-020073ca3333",
"created": "2017-08-15T13:23:33Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"accountName": "account1",
"poolName": "pool1",
"volumeName": "volume1",
"api-version": "2020-11-01"
"api-version": "2020-12-01"
},
"responses": {
"200": {
Expand All @@ -14,8 +14,7 @@
{
"id": "/subscriptions/D633CC2E-722B-4AE1-B636-BBD9E4C60ED9/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool1/volumes/volume1/snapshots/snapshot1",
"name": "account1/pool1/volume1/snapshot1",
"type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots",
"location": "eastus",
"type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots",
"properties": {
"snapshotId": "9760acf5-4638-11e7-9bdb-020073ca3333",
"created": "2017-08-15T13:23:33Z",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1555,69 +1555,6 @@
}
}
},
"patch": {
"tags": [
"Snapshots"
],
"operationId": "Snapshots_Update",
"summary": "Update a snapshot",
"description": "Patch a snapshot",
"parameters": [
{
"name": "body",
"description": "Snapshot object supplied in the body of the operation.",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/snapshotPatch"
}
},
{
"$ref": "#/parameters/SubscriptionId"
},
{
"$ref": "#/parameters/ResourceGroup"
},
{
"$ref": "#/parameters/AccountName"
},
{
"$ref": "#/parameters/PoolName"
},
{
"$ref": "#/parameters/VolumeName"
},
{
"$ref": "#/parameters/SnapshotName"
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/snapshot"
}
},
"202": {
"description": "Accepted -- Update request accepted; operation will complete asynchronously"
},
"default": {
"description": "Error response describing why the operation failed."
}
},
"x-ms-long-running-operation": true,
"x-ms-long-running-operation-options": {
"final-state-via": "location"
},
"x-ms-examples": {
"Snapshots_Update": {
"$ref": "examples/Snapshots_Update.json"
}
}
},
"delete": {
"tags": [
"Snapshots"
Expand Down Expand Up @@ -4136,20 +4073,8 @@
},
"snapshot": {
"description": "Snapshot of a Volume",
"type": "object",
"x-ms-azure-resource": true,
"required": [
"location"
],
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "Resource location",
"x-ms-mutability": [
"read",
"create"
]
},
"id": {
"type": "string",
"readOnly": true,
Expand All @@ -4172,12 +4097,6 @@
}
}
},
"snapshotPatch": {
"description": "Snapshot patch",
"type": "object",
"x-ms-azure-resource": true,
"properties": {}
},
"snapshotProperties": {
"description": "Snapshot properties",
"type": "object",
Expand Down
1 change: 1 addition & 0 deletions specification/netapp/resource-manager/readme.java.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ These settings apply only when `--java` is specified on the command line.
Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`.

``` yaml $(java)
service-name: NetAppFiles
azure-arm: true
fluent: true
namespace: com.microsoft.azure.management.netapp
Expand Down
2 changes: 1 addition & 1 deletion specification/netapp/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ These are the global settings for the Azure NetApp Files API.

``` yaml
title: NetAppManagementClient
description: Microsoft NetApp Azure Resource Provider specification
description: Microsoft NetApp Files Azure Resource Provider specification
openapi-type: arm
tag: package-netapp-2020-12-01
```
Expand Down

0 comments on commit 4ed4e8d

Please sign in to comment.