Skip to content

Commit

Permalink
Updated 2019-02-01-preview api version to include operation.g (#7203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyca15 authored and michaeljqzq committed Sep 16, 2019
1 parent 7c87d29 commit d56b7d2
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,57 @@
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/listKeyValue": {
"post": {
"tags": [
"ConfigurationStores"
],
"description": "Lists a configuration store key-value.",
"operationId": "ConfigurationStores_ListKeyValue",
"parameters": [
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ConfigStoreNameParameter"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"name": "listKeyValueParameters",
"in": "body",
"description": "The parameters for retrieving a key-value.",
"required": true,
"schema": {
"$ref": "#/definitions/ListKeyValueParameters"
}
}
],
"responses": {
"200": {
"description": "The request was successful; the request was well-formed and received properly.",
"schema": {
"$ref": "#/definitions/KeyValue"
}
},
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/Error"
}
}
},
"x-ms-examples": {
"ConfigurationStores_ListKeyValue": {
"$ref": "./examples/ConfigurationStoresListKeyValue.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -703,6 +754,73 @@
}
}
},
"ListKeyValueParameters": {
"description": "The parameters used to list a configuration store key-value",
"required": [
"key"
],
"type": "object",
"properties": {
"key": {
"description": "The key to retrieve.",
"type": "string"
},
"label": {
"description": "The label of the key.",
"type": "string"
}
}
},
"KeyValue": {
"description": "The result of a request to retrieve a key-value from the specified configuration store.",
"type": "object",
"properties": {
"key": {
"description": "The primary identifier of a key-value.\r\nThe key is used in unison with the label to uniquely identify a key-value.",
"type": "string",
"readOnly": true
},
"label": {
"description": "A value used to group key-values.\r\nThe label is used in unison with the key to uniquely identify a key-value.",
"type": "string",
"readOnly": true
},
"value": {
"description": "The value of the key-value.",
"type": "string",
"readOnly": true
},
"contentType": {
"description": "The content type of the key-value's value.\r\nProviding a proper content-type can enable transformations of values when they are retrieved by applications.",
"type": "string",
"readOnly": true
},
"eTag": {
"description": "An ETag indicating the state of a key-value within a configuration store.",
"type": "string",
"readOnly": true
},
"lastModified": {
"format": "date-time",
"description": "The last time a modifying operation was performed on the given key-value.",
"type": "string",
"readOnly": true
},
"locked": {
"description": "A value indicating whether the key-value is locked.\r\nA locked key-value may not be modified until it is unlocked.",
"type": "boolean",
"readOnly": true
},
"tags": {
"description": "A dictionary of tags that can help identify what a key-value may be applicable for.",
"type": "object",
"additionalProperties": {
"type": "string"
},
"readOnly": true
}
}
},
"OperationDefinitionListResult": {
"description": "The result of a request to list configuration store operations.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882",
"resourceGroupName": "myResourceGroup",
"configStoreName": "fayeh",
"api-version": "2019-02-01-preview",
"listKeyValueParameters": {
"key": "MaxRequests",
"label": "dev"
}
},
"responses": {
"200": {
"body": {
"key": "MaxRequests",
"label": "dev",
"value": "100",
"contentType": "",
"eTag": "4f6dd610dd5e4deebc7fbaef685fb903",
"lastModified": "2017-12-05T02:41:26+00:00",
"locked": false,
"tags": {
"t1": "value1",
"t2": "value2"
}
}
}
}
}
4 changes: 4 additions & 0 deletions specification/appconfiguration/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ directive:
from: appconfiguration.json
where: $.definitions.ApiKey.properties.readOnly
reason: We did consider using an enum instead but found it to not be helpful.
- suppress: EnumInsteadOfBoolean
from: appconfiguration.json
where: $.definitions.KeyValue.properties.locked
reason: This is data plane level information proxied through the RP and cannot be changed.
```

## Multi-API/Profile support for AutoRest v3 generators
Expand Down

0 comments on commit d56b7d2

Please sign in to comment.