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

NFSAAS-1505 bring in line with RP #2

Merged
merged 1 commit into from
Nov 26, 2018
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"subscriptionId": "subscriptionId",
"resourceGroup": "resourceGroup",
"accountName": "accountName",
"poolName": "poolName",
"volumeName": "volumeName",
"snapshotName": "snapshotName",
"api-version": "2017-08-15",
"body": {}
},
"responses": {
"200": {
"body": {
"location": "eastus",
"properties": {
"snapshotId": "9760acf5-4638-11e7-9bdb-020073ca3333",
"fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca3333",
"creationDate": "2017-08-15T13:23:33Z",
"name": "snapshot1",
"provisioningState": "Created"
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "subscriptionId",
"resourceGroup": "resourceGroup",
"accountName": "accountName",
"poolName": "poolName",
"volumeName": "volumeName",
"snapshotName": "snapshotName",
"api-version": "2017-08-15",
"body": {}
},
"responses": {
"200": {
"body": {
"location": "eastus",
"properties": {
"snapshotId": "9760acf5-4638-11e7-9bdb-020073ca3333",
"fileSystemId": "9760acf5-4638-11e7-9bdb-020073ca3333",
"creationDate": "2017-08-15T13:23:33Z",
"name": "snapshot1",
"provisioningState": "Created"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,84 @@
}
}
},
"put": {
"tags": [
"Snapshots"
],
"operationId": "Snapshots_Create",
"description": "Create a snapshot",
"parameters": [
{
"name": "body",
"description": "Snapshot object supplied in the body of the operation.",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/snapshot"
}
}
],
"responses": {
"200": {
"description": "Snapshot created",
"schema": {
"$ref": "#/definitions/snapshot"
}
},
"202": {
"description": "Accepted -- Create request accepted; operation will complete asynchronously"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/error"
}
}
},
"x-ms-long-running-operation": true,
"x-ms-examples": {
"Snapshots_Create": {
"$ref": "examples/Snapshots_Create.json"
}
}
},
"patch": {
"tags": [
"Snapshots"
],
"operationId": "Snapshots_Update",
"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"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/snapshot"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/error"
}
}
},
"x-ms-examples": {
"Snapshots_Update": {
"$ref": "examples/Snapshots_Update.json"
}
}
},
"delete": {
"tags": [
"Snapshots"
Expand Down Expand Up @@ -1200,39 +1278,40 @@
"size": {
"title": "size",
"type": "integer",
"description": "Provisioned size of the pool (in GB)",
"minimum": 4096,
"default": 4096
"description": "Provisioned size of the pool (in bytes). Allowed values are in 4TiB chunks (value must be multiply of 4398046511104).",
"minimum": 4398046511104,
"maximum": 549755813888000,
"default": 4398046511104
},
"serviceLevel": {
"title": "serviceLevel",
"type": "string",
"description": "The service level of the file system",
"enum": [
"Basic",
"Standard",
"Premium"
"Premium",
"Extreme"
],
"x-ms-enum": {
"name": "ServiceLevel",
"modelAsString": true,
"values": [
{
"value": "Basic",
"description": "Basic service level"
},
{
"value": "Standard",
"description": "Standard service level"
},
{
"value": "Premium",
"description": "Premium service level"
},
{
"value": "Extreme",
"description": "Extreme service level"
}
]
},
"example": "Premium",
"default": "Standard"
"example": "Extreme",
"default": "Premium"
},
"provisioningState": {
"type": "string",
Expand Down Expand Up @@ -1338,40 +1417,40 @@
"type": "string",
"description": "The service level of the file system",
"enum": [
"Basic",
"Standard",
"Premium"
"Premium",
"Extreme"
],
"x-ms-enum": {
"name": "ServiceLevel",
"modelAsString": true,
"values": [
{
"value": "Basic",
"description": "Basic service level"
},
{
"value": "Standard",
"description": "Standard service level"
},
{
"value": "Premium",
"description": "Premium service level"
},
{
"value": "Extreme",
"description": "Extreme service level"
}
]
},
"example": "Premium",
"default": "Standard"
"example": "Extreme",
"default": "Premium"
},
"usageThreshold": {
"title": "usageThreshold",
"type": "integer",
"format": "int64",
"description": "Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Upper limit is 100TB.",
"minimum": 0,
"description": "Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB.",
"minimum": 107374182400,
"maximum": 109951162777600,
"default": 0,
"example": 101010
"default": 107374182400,
"example": 107374182400
},
"provisioningState": {
"type": "string",
Expand Down Expand Up @@ -1434,40 +1513,40 @@
"type": "string",
"description": "The service level of the file system",
"enum": [
"Basic",
"Standard",
"Premium"
"Premium",
"Extreme"
],
"x-ms-enum": {
"name": "ServiceLevel",
"modelAsString": true,
"values": [
{
"value": "Basic",
"description": "Basic service level"
},
{
"value": "Standard",
"description": "Standard service level"
},
{
"value": "Premium",
"description": "Premium service level"
},
{
"value": "Extreme",
"description": "Extreme service level"
}
]
},
"example": "Premium",
"default": "Standard"
"example": "Extreme",
"default": "Premium"
},
"usageThreshold": {
"title": "usageThreshold",
"type": "integer",
"format": "int64",
"description": "Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Upper limit is 100TB.",
"minimum": 0,
"description": "Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB.",
"minimum": 107374182400,
"maximum": 109951162777600,
"default": 0,
"example": 101010
"default": 107374182400,
"example": 107374182400
}
}
},
Expand Down Expand Up @@ -1611,14 +1690,19 @@
"snapshot": {
"description": "Snapshot of a Volume",
"type": "object",
"x-ms-azure-resource": true,
"required": [
"location",
"properties"
],
"properties": {
"location": {
"type": "string",
"description": "Resource location"
"description": "Resource location",
"x-ms-mutability": [
"read",
"create"
]
},
"id": {
"type": "string",
Expand All @@ -1630,6 +1714,11 @@
"readOnly": true,
"description": "Resource name"
},
"type": {
"type": "string",
"readOnly": true,
"description": "Resource type"
},
"tags": {
"description": "Resource tags",
"$ref": "#/definitions/resourceTags",
Expand All @@ -1642,6 +1731,18 @@
}
}
},
"snapshotPatch": {
"description": "Snapshot patch",
"type": "object",
"x-ms-azure-resource": true,
"properties": {
"tags": {
"description": "Resource tags",
"$ref": "#/definitions/resourceTags",
"x-ms-client-flatten": true
}
}
},
"snapshotProperties": {
"description": "Snapshot properties",
"type": "object",
Expand Down