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

[Azure Stack] Add operations endpoint for AzureBridge and Network #3438

Merged
merged 1 commit into from
Jul 18, 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
Expand Up @@ -9,7 +9,38 @@
"schemes": [
"https"
],
"paths": {},
"paths": {
"/providers/Microsoft.AzureBridge.Admin/operations": {
"get": {
"x-ms-examples": {
"Returns the list of support REST operations.": {
"$ref": "./examples/Operations/List.json"
}
},
"description": "Returns the list of support REST operations.",
"tags": [
"AzureBridge"
],
"operationId": "Operations_List",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationList"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
"Resource": {
"description": "Base Resource Object",
Expand Down Expand Up @@ -46,9 +77,67 @@
},
"x-ms-azure-resource": true
},
"Operation": {
"description": "Describes the supported REST operation.",
"properties": {
"name": {
"description": "The name of the operation being performed on this particular object. This name should match the name that appears in RBAC or the event service.",
"type": "string",
"readOnly": true
},
"display": {
"description": "Contains the localized display information for this particular operation / action.",
"$ref": "#/definitions/Display",
"readOnly": true
}
}
},
"Display": {
"description": "Contains the localized display information for this particular operation / action.",
"properties": {
"provider": {
"description": "The localized friendly form of the resource provider name – it is expected to also include the publisher/company responsible. It should use Title Casing and begin with \"Microsoft\" for 1st party services. e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute.\"",
"type": "string",
"readOnly": true
},
"resource": {
"description": "The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.",
"type": "string",
"readOnly": true
},
"operation": {
"description": "The localized, friendly name for the operation. Use the name as it will displayed to the user.",
"type": "string",
"readOnly": true
},
"description": {
"description": "The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.",
"type": "string",
"readOnly": true
}
}
},
"OperationList": {
"description": "List of Operations",
"properties": {
"value": {
"description": "Array of operations",
"type": "array",
"items": {
"$ref": "#/definitions/Operation"
},
"readOnly": true
},
"nextLink": {
"description": "URI to the next page of operations.",
"type": "string",
"readOnly": true
}
}
},
"ProvisioningState": {
"description": "The provisioning state of the resource.",
"type" : "string",
"type": "string",
"enum": [
"Stopped",
"Starting",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"api-version": "2016-05-01"
},
"responses": {
"200": {
"body": {
"value": [],
"nextLink": ""
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,36 @@
}
}
}
},
"/providers/Microsoft.Network.Admin/operations": {
"get": {
"x-ms-examples": {
"Returns the list of support REST operations.": {
"$ref": "./examples/Operations/List.json"
}
},
"description": "Returns the list of support REST operations.",
"tags": [
"Network"
],
"operationId": "Operations_List",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/OperationList"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -82,6 +112,64 @@
},
"x-ms-azure-resource": true
},
"Operation": {
"description": "Describes the supported REST operation.",
"properties": {
"name": {
"description": "The name of the operation being performed on this particular object. This name should match the name that appears in RBAC or the event service.",
"type": "string",
"readOnly": true
},
"display": {
"description": "Contains the localized display information for this particular operation / action.",
"$ref": "#/definitions/Display",
"readOnly": true
}
}
},
"Display": {
"description": "Contains the localized display information for this particular operation / action.",
"properties": {
"provider": {
"description": "The localized friendly form of the resource provider name – it is expected to also include the publisher/company responsible. It should use Title Casing and begin with \"Microsoft\" for 1st party services. e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute.\"",
"type": "string",
"readOnly": true
},
"resource": {
"description": "The localized, friendly version of the resource type related to this action or operation; the resource type should match the public documentation for the resource provider.",
"type": "string",
"readOnly": true
},
"operation": {
"description": "The localized, friendly name for the operation. Use the name as it will displayed to the user.",
"type": "string",
"readOnly": true
},
"description": {
"description": "The localized, friendly description for the operation. The description will be displayed to the user. It should be thorough and concise for used in both tooltips and detailed views.",
"type": "string",
"readOnly": true
}
}
},
"OperationList": {
"description": "List of Operations",
"properties": {
"value": {
"description": "Array of operations",
"type": "array",
"items": {
"$ref": "#/definitions/Operation"
},
"readOnly": true
},
"nextLink": {
"description": "URI to the next page of operations.",
"type": "string",
"readOnly": true
}
}
},
"ProvisionedResource": {
"description": "Objects which have a provisioning state.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"api-version": "2016-05-01"
},
"responses": {
"200": {
"body": {
"value": [],
"nextLink": ""
}
}
}
}