Skip to content

Commit

Permalink
Utkarshjain/2021 09 01 preview (#5150)
Browse files Browse the repository at this point in the history
* Adding base api as per guidelines

* Adding api changes for version 2021-09-01-preview

* Adding readme changes

* Adding fix for model validation

* Adding fix for model validation 2

* Fixing prettier check

* Fixing breaking changes

* Annotating password with x-ms-secret

Co-authored-by: Utkarsh Jain <utkarshjain@microsoft.com>
  • Loading branch information
utkarshjain1508 and utkarshjain1508 authored Oct 20, 2021
1 parent ccf8e49 commit 555bb9b
Show file tree
Hide file tree
Showing 20 changed files with 2,316 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"status": "Healthy",
"version": "7.9.3",
"memoryCapacity": "1024",
"diskCapacity": "245760"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"requestBody": {
"UserName": "newuser",
"FullName": "fullname",
"Password": "Password",
"EmailId": "myemail@outlook.com",
"Roles": [
"admin",
"other_role1"
]
}
},
"responses": {
"200": {
"body": {
"created": true
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVault",
"sendingLogs": "True",
"reasonForLogsStatus": "CapturedByRules"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor",
"requestBody": {
"name": "myMonitor",
"sku": {
"name": "free_Monthly"
},
"properties": {
"userInfo": {
"firstName": "Alice",
"lastName": "Bob",
"companyName": "Microsoft",
"emailAddress": "alice@microsoft.com",
"companyInfo": {
"domain": "microsoft.com",
"business": "Technology",
"employeeNumber": "10000",
"state": "WA",
"country": "US"
}
}
},
"tags": {
"Environment": "Dev"
},
"location": "West US 2"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
"name": "myMonitor",
"type": "Microsoft.Elastic/monitors",
"sku": {
"name": "free_Monthly"
},
"properties": {
"provisioningState": "Succeeded",
"elasticProperties": {
"elasticCloudUser": {
"emailAddress": "alice@microsoft.com",
"id": "myid123",
"elasticCloudSsoDefaultUrl": "https://examplessourl.com"
},
"elasticCloudDeployment": {
"name": "deploymentname",
"deploymentId": "deployment_id",
"azureSubscriptionId": "00000000-0000-0000-0000-000000000000",
"elasticsearchRegion": "azure-westus2",
"elasticsearchServiceUrl": "https://elasticsearchendpoint.com",
"kibanaServiceUrl": "https://kibanaserviceurl.com",
"kibanaSsoUrl": "https://kibanssourl.com"
}
}
},
"tags": {
"Environment": "Dev"
},
"location": "West US 2"
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
"name": "myMonitor",
"type": "Microsoft.Elastic/monitors",
"sku": {
"name": "free_Monthly"
},
"properties": {
"provisioningState": "Accepted",
"monitoringStatus": "Enabled",
"elasticProperties": {
"elasticCloudUser": {
"emailAddress": "alice@microsoft.com",
"id": "myid123",
"elasticCloudSsoDefaultUrl": "https://examplessourl.com"
},
"elasticCloudDeployment": {
"name": "deploymentname",
"deploymentId": "deployment_id",
"azureSubscriptionId": "00000000-0000-0000-0000-000000000000",
"elasticsearchRegion": "azure-westus2",
"elasticsearchServiceUrl": "https://elasticsearchendpoint.com",
"kibanaServiceUrl": "https://kibanaserviceurl.com",
"kibanaSsoUrl": "https://kibanssourl.com"
}
},
"liftrResourceCategory": "MonitorLogs",
"liftrResourcePreference": 0
},
"tags": {
"Environment": "Dev"
},
"location": "West US 2"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "myMonitor"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
"name": "myMonitor",
"type": "Microsoft.Elastic/monitors",
"properties": {
"provisioningState": "Succeeded",
"monitoringStatus": "Enabled",
"elasticProperties": {
"elasticCloudUser": {
"emailAddress": "alice@microsoft.com",
"id": "myid123",
"elasticCloudSsoDefaultUrl": "https://examplessourl.com"
},
"elasticCloudDeployment": {
"name": "deploymentname",
"deploymentId": "deployment_id",
"azureSubscriptionId": "00000000-0000-0000-0000-000000000000",
"elasticsearchRegion": "azure-westus2",
"elasticsearchServiceUrl": "https://elasticsearchendpoint.com",
"kibanaServiceUrl": "https://kibanaserviceurl.com",
"kibanaSsoUrl": "https://kibanssourl.com"
}
},
"liftrResourceCategory": "MonitorLogs",
"liftrResourcePreference": 0
},
"tags": {
"Environment": "Dev"
},
"location": "West US 2"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
"name": "myMonitor",
"type": "Microsoft.Elastic/monitors",
"properties": {
"provisioningState": "Succeeded",
"monitoringStatus": "Enabled",
"elasticProperties": {
"elasticCloudUser": {
"emailAddress": "alice@microsoft.com",
"id": "myid123",
"elasticCloudSsoDefaultUrl": "https://examplessourl.com"
},
"elasticCloudDeployment": {
"name": "deploymentname",
"deploymentId": "deployment_id",
"azureSubscriptionId": "00000000-0000-0000-0000-000000000000",
"elasticsearchRegion": "azure-westus2",
"elasticsearchServiceUrl": "https://elasticsearchendpoint.com",
"kibanaServiceUrl": "https://kibanaserviceurl.com",
"kibanaSsoUrl": "https://kibanssourl.com"
}
},
"liftrResourceCategory": "MonitorLogs",
"liftrResourcePreference": 0
},
"tags": {
"Environment": "Dev"
},
"location": "West US 2"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"api-version": "2021-09-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor",
"name": "myMonitor",
"type": "Microsoft.Elastic/monitors",
"properties": {
"provisioningState": "Succeeded",
"monitoringStatus": "Enabled",
"elasticProperties": {
"elasticCloudUser": {
"emailAddress": "alice@microsoft.com",
"id": "myid123",
"elasticCloudSsoDefaultUrl": "https://examplessourl.com"
},
"elasticCloudDeployment": {
"name": "deploymentname",
"deploymentId": "deployment_id",
"azureSubscriptionId": "00000000-0000-0000-0000-000000000000",
"elasticsearchRegion": "azure-westus2",
"elasticsearchServiceUrl": "https://elasticsearchendpoint.com",
"kibanaServiceUrl": "https://kibanaserviceurl.com",
"kibanaSsoUrl": "https://kibanssourl.com"
}
},
"liftrResourceCategory": "MonitorLogs",
"liftrResourcePreference": 0
},
"tags": {
"Environment": "Dev"
},
"location": "West US 2"
}
]
}
}
}
}
Loading

0 comments on commit 555bb9b

Please sign in to comment.