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

Swagger update #8967

Merged
merged 37 commits into from
Apr 20, 2020
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6e58ceb
Update cluster and linked services API
Mar 11, 2020
05e02fe
Update LinkedServicesGet.json
Mar 11, 2020
f14df7e
fix json
orargaman Mar 15, 2020
0375be4
Prettier
orargaman Mar 15, 2020
f8fa3fb
fix modelValidation
orargaman Mar 16, 2020
b506fb4
fix modelValidation 2
orargaman Mar 16, 2020
8db1a1d
Fixes for PR
orargaman Mar 17, 2020
89b28b3
separate linkedServices to new file
orargaman Mar 23, 2020
804ddd3
Update readme.md
orargaman Mar 23, 2020
7771f83
Fix PR
orargaman Mar 24, 2020
29f6abd
Change capacityReservationLevel to capacity
orargaman Mar 25, 2020
ab8659a
Fix version
orargaman Mar 27, 2020
8210d51
writeAccessResourceId fix camel case
orargaman Mar 29, 2020
ddc90d2
Merge https://github.com/Azure/azure-rest-api-specs into swaggerUpdate
orargaman Apr 7, 2020
0c9bedf
Fix cluster api
orargaman Apr 7, 2020
10f1cd6
Update readme.md
orargaman Apr 7, 2020
1840761
added link targets
arolshan Apr 7, 2020
37a1398
Make link, unlink and cluster delte async
orargaman Apr 13, 2020
1fac785
Update SavedSearches.json
arolshan Apr 13, 2020
9e9ad0d
Merge branch 'swaggerUpdate' of https://github.com/orargaman/azure-re…
arolshan Apr 13, 2020
3927d0f
Fix typos
orargaman Apr 13, 2020
60ae226
Merge branch 'swaggerUpdate' of https://github.com/orargaman/azure-re…
orargaman Apr 13, 2020
e1cd557
fix missing capacityreservation
orargaman Apr 13, 2020
a026b15
update CapacityReservation
orargaman Apr 13, 2020
fa2feb7
add all apis from stable
arolshan Apr 13, 2020
7d76af4
better name
arolshan Apr 13, 2020
28804cb
prettier
arolshan Apr 13, 2020
ac326db
add to build
arolshan Apr 13, 2020
43205a2
Update AvailableServiceTiers.json
arolshan Apr 13, 2020
cbff1ab
entity status
arolshan Apr 14, 2020
5d1ec30
Update WorkspacePurge.json
arolshan Apr 14, 2020
7c5b46b
Update WorkspacePurge.json
arolshan Apr 14, 2020
1c12cba
Update WorkspacePurge.json
arolshan Apr 14, 2020
91d3124
Update WorkspacesAvailableServiceTiers.json
arolshan Apr 20, 2020
2c6b380
remove link targets [DEPRECATED]
arolshan Apr 20, 2020
2aed248
Update readme.md
arolshan Apr 20, 2020
7402049
Update linked service for cluster async
orargaman Apr 20, 2020
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,138 @@
{
"swagger": "2.0",
"info": {
"title": "Azure Log Analytics",
"description": "Azure Log Analytics API reference",
"version": "2020-03-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": {
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers": {
"get": {
"tags": [
"AvailableServiceTiers"
],
"x-ms-examples": {
"AvailableServiceTiers": {
"$ref": "./examples/WorkspacesAvailableServiceTiers.json"
}
},
"operationId": "Workspaces_AvailableServiceTiers",
"description": "Gets the available service tiers for the workspace.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK response definition.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/AvailableServiceTier"
}
}
}
}
}
}
},
"definitions": {
"AvailableServiceTier": {
arolshan marked this conversation as resolved.
Show resolved Hide resolved
"description": "Service Tier details.",
"properties": {
"serviceTier": {
"readOnly": true,
"type": "string",
"description": "The name of the Service Tier.",
"enum": [
"Free",
"Standard",
"Premium",
"PerNode",
"PerGB2018",
"Standalone",
"CapacityReservation"
],
"x-ms-enum": {
"name": "SkuNameEnum",
"modelAsString": true
}
},
"enabled": {
"readOnly": true,
"type": "boolean",
"description": "True if the Service Tier is enabled for the workspace."
},
"minimumRetention": {
"readOnly": true,
"type": "integer",
"format": "int64",
"description": "The minimum retention for the Service Tier, in days."
},
"maximumRetention": {
"readOnly": true,
"type": "integer",
"format": "int64",
"description": "The maximum retention for the Service Tier, in days."
},
"defaultRetention": {
"readOnly": true,
"type": "integer",
"format": "int64",
"description": "The default retention for the Service Tier, in days."
},
"capacityReservationLevel": {
"readOnly": true,
"type": "integer",
"format": "int64",
"description": "The capacity reservation level in GB per day. Returned for the Capacity Reservation Service Tier."
},
"lastSkuUpdate": {
"readOnly": true,
"type": "string",
"format": "date-time",
"description": "Time when the sku was last updated for the workspace. Returned for the Capacity Reservation Service Tier."
}
}
}
},
"parameters": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@
"$ref": "#/definitions/ClusterErrorResponse"
}
}
}
},
"x-ms-long-running-operation": true
},
"get": {
"tags": [
Expand Down Expand Up @@ -347,10 +348,11 @@
"Failed",
"Canceled",
"Deleting",
"ProvisioningAccount"
"ProvisioningAccount",
"Updating"
],
"x-ms-enum": {
"name": "EntityStatus",
"name": "ClusterEntityStatus",
"modelAsString": true
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"swagger": "2.0",
"info": {
"title": "Azure Log Analytics",
"description": "Azure Log Analytics API reference",
"version": "2020-03-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": {
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/gateways/{gatewayId}": {
"delete": {
"tags": [
"Workspaces"
],
"x-ms-examples": {
"DeleteGateways": {
"$ref": "./examples/WorkspacesGatewaysDelete.json"
}
},
"operationId": "Gateways_Delete",
"description": "Delete a Log Analytics gateway.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
},
{
"$ref": "#/parameters/GatewayIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
arolshan marked this conversation as resolved.
Show resolved Hide resolved
"200": {
arolshan marked this conversation as resolved.
Show resolved Hide resolved
"description": "The specified gateway was deleted successfully."
}
}
}
}
},
"definitions": {},
"parameters": {
"GatewayIdParameter": {
"name": "gatewayId",
"in": "path",
"required": true,
"type": "string",
"description": "The Log Analytics gateway Id.",
"x-ms-parameter-location": "method"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Disable": {
"post": {
"tags": [
"Workspaces"
"Workspaces",
"IntelligencePacks"
],
"x-ms-examples": {
"IntelligencePacksDisable": {
"$ref": "./examples/WorkspacesDisableIntelligencePack.json"
}
},
"operationId": "Workspaces_DisableIntelligencePack",
"operationId": "IntelligencePacks_Disable",
"description": "Disables an intelligence pack for a given workspace.",
"parameters": [
{
Expand Down Expand Up @@ -77,14 +78,15 @@
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks/{intelligencePackName}/Enable": {
"post": {
"tags": [
"Workspaces"
"Workspaces",
"IntelligencePacks"
],
"x-ms-examples": {
"IntelligencePacksEnable": {
"$ref": "./examples/WorkspacesEnableIntelligencePack.json"
}
},
"operationId": "Workspaces_EnableIntelligencePack",
"operationId": "IntelligencePacks_Enable",
"description": "Enables an intelligence pack for a given workspace.",
"parameters": [
{
Expand Down Expand Up @@ -117,14 +119,15 @@
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/intelligencePacks": {
"get": {
"tags": [
"Workspaces"
"Workspaces",
"IntelligencePacks"
],
"x-ms-examples": {
"IntelligencePacksList": {
"$ref": "./examples/WorkspacesListIntelligencePacks.json"
}
},
"operationId": "Workspaces_ListIntelligencePacks",
"operationId": "IntelligencePacks_List",
"description": "Lists all the intelligence packs possible and whether they are enabled or disabled for a given workspace.",
"parameters": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"swagger": "2.0",
"info": {
"title": "Azure Log Analytics",
"description": "Azure Log Analytics API reference.",
"version": "2020-03-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": {
"/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/linkTargets": {
"get": {
"tags": [
"Workspaces"
],
"x-ms-examples": {
"LinkTargetsList": {
"$ref": "./examples/WorkspacesListLinkTargets.json"
}
},
"operationId": "LinkTargets_List",
"description": "Get a list of workspaces which the current user has administrator privileges and are not associated with an Azure Subscription. The subscriptionId parameter in the Url is ignored.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK response definition.",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/LinkTarget"
}
}
}
}
}
}
},
"definitions": {
"LinkTarget": {
arolshan marked this conversation as resolved.
Show resolved Hide resolved
"properties": {
"customerId": {
"type": "string",
"description": "The GUID that uniquely identifies the workspace. "
},
"accountName": {
"type": "string",
"description": "The display name of the workspace.",
"x-ms-client-name": "DisplayName"
},
"workspaceName": {
"type": "string",
"description": "The DNS valid workspace name."
},
"location": {
"type": "string",
"description": "The location of the workspace."
}
},
"description": "Metadata for a workspace that isn't linked to an Azure subscription."
}
},
"parameters": {}
}
Loading