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

Service bus test - Updating the swagger files used to generate the Service Bus code #13

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
{
"swagger": "2.0",
"info": {
"title": "ServiceBusManagementClient",
"description": "Azure Service Bus client for managing Namespace, IPFilter Rules, VirtualNetworkRules and Zone Redundant",
"version": "2018-01-01-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/providers/Microsoft.ServiceBus/operations": {
"get": {
"tags": [
"Operations"
],
"operationId": "Operations_List",
"x-ms-examples": {
"OperationsList": {
"$ref": "./examples/SBOperations_List.json"
}
},
"description": "Lists all of the available ServiceBus REST API operations.",
"parameters": [
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/OperationListResult"
}
},
"default": {
"description": "ServiceBus error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
"OperationListResult": {
"description": "Result of the request to list ServiceBus operations. It contains a list of operations and a URL link to get the next set of results.",
"properties": {
"value": {
"readOnly": true,
"type": "array",
"description": "List of ServiceBus operations supported by the Microsoft.ServiceBus resource provider.",
"items": {
"$ref": "#/definitions/Operation"
}
},
"nextLink": {
"readOnly": true,
"type": "string",
"description": "URL to get the next set of operation list results if there are any."
}
}
},
"Operation": {
"description": "A ServiceBus REST API operation",
"type": "object",
"properties": {
"name": {
"readOnly": true,
"type": "string",
"description": "Operation name: {provider}/{resource}/{operation}"
},
"display": {
"description": "The object that represents the operation.",
"properties": {
"provider": {
"readOnly": true,
"type": "string",
"description": "Service provider: Microsoft.ServiceBus"
},
"resource": {
"readOnly": true,
"type": "string",
"description": "Resource on which the operation is performed: Invoice, etc."
},
"operation": {
"readOnly": true,
"type": "string",
"description": "Operation type: Read, write, delete, etc."
}
}
}
}
},
"ErrorResponse": {
"description": "Error response indicates ServiceBus service is not able to process the incoming request. The reason is provided in the error message.",
"type": "object",
"properties": {
"code": {
"description": "Error code.",
"type": "string"
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string"
}
}
}
},
"parameters": {
"subscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string",
"description": "Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call."
},
"apiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Client API version."
},
"resourceGroupNameParameter": {
"name": "resourceGroupName",
"in": "path",
"required": true,
"type": "string",
"minLength": 1,
"maxLength": 90,
"x-ms-parameter-location": "method",
"description": "Name of the Resource group within the Azure subscription."
}
}
}
Loading