Definitions for @turbot/azure-searchmanagement

name

{
"type": "string",
"pattern": "^[a-z0-9][-.a-z0-9]{2,60}[a-z0-9]$",
"tests": [
{
"descritpion": "base case",
"input": "test-04"
},
{
"description": "invalid - Hyphen can use after two letter",
"input": "-test",
"expected": false
},
{
"description": "invalid - Hyphen can not be at last position",
"input": "test-",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-searchmanagement#/definitions/name",
"modUri": "tmod:@turbot/azure-searchmanagement"
}
}

searchAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/providers/Microsoft.Search/searchmanagement",
"tests": [
{
"descritpion": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.Search/searchmanagement"
},
{
"description": "invalid - account ID too long",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7jfhsjkds/search",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-searchmanagement#/definitions/searchAka",
"modUri": "tmod:@turbot/azure-searchmanagement"
}
}

searchManagement

{
"allOf": [
{
"$ref": "turbot#/definitions/service"
},
{
"type": "object",
"properties": {
"name": {
"const": "Search Management"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/searchAka"
}
},
"title": {
"const": "Search Management"
},
"custom": {
"type": "object",
"properties": {
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
}
}
},
"required": [
"name",
"turbot"
],
"additionalProperties": true,
"tests": [
{
"description": "Base - All valid Properties",
"input": {
"name": "Search Management",
"turbot": {
"akas": [
"azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/providers/Microsoft.Search/searchmanagement"
],
"title": "Search",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7"
}
}
}
}
},
{
"description": "Invalid - Incorrect name",
"input": {
"name": "Searching",
"turbot": {
"akas": [
"/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/search"
],
"title": "Batching",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7"
}
}
}
},
"expected": false
},
{
"description": "Invalid - Service name missing",
"input": {
"turbot": {
"akas": [
"/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/search"
],
"title": "Batching",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7"
}
}
}
},
"expected": false
}
]
}
],
".turbot": {
"uri": "tmod:@turbot/azure-searchmanagement#/definitions/searchManagement",
"modUri": "tmod:@turbot/azure-searchmanagement"
}
}

searchService

{
"type": "object",
"properties": {
"name": {
"$ref": "#/definitions/name"
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"id": {
"type": "string"
},
"location": {
"type": "string"
},
"replicaCount": {
"type": "integer"
},
"partitionCount": {
"type": "integer"
},
"hostingMode": {
"type": "string"
},
"status": {
"type": "string"
},
"statusDetails": {
"type": "string"
},
"provisioningState": {
"type": "string"
},
"sku": {
"type": "object"
},
"turbot": {
"type": "object",
"properties": {
"akas": {
"type": "array",
"items": {
"$ref": "#/definitions/searchServiceAka"
}
},
"tags": {
"$ref": "azure#/definitions/tags"
},
"title": {
"$ref": "#/definitions/name"
},
"custom": {
"type": "object",
"properties": {
"createTimestamp": {
"$ref": "turbot#/definitions/isoTimestamp"
},
"azure": {
"$ref": "azure#/definitions/azureMetadata"
}
}
}
},
"additionalProperties": true,
"tests": [
{
"description": "Base - All valid Properties",
"input": {
"name": "test01",
"id": "/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Search/searchServices/partha-search",
"location": "West US 2",
"tags": {
"tom": "jery",
"hey": "helo"
},
"replicaCount": 1,
"partitionCount": 1,
"hostingMode": "Default",
"status": "running",
"statusDetails": "",
"provisioningState": "succeeded",
"sku": {
"name": "standard"
},
"turbot": {
"akas": [
"/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Search/searchServices/test01"
],
"title": "test01",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupName": "dev"
}
}
}
}
},
{
"description": "Invalid - Incorrect name",
"input": {
"name": "test-",
"turbot": {
"akas": [
"/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Search/searchServices/test01"
],
"title": "test-",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupName": "dev"
}
}
}
}
},
{
"description": "Invalid - Service name missing",
"input": {
"turbot": {
"akas": [
"/subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Search/searchServices/test01"
],
"title": "test-02",
"custom": {
"azure": {
"subscriptionId": "9e3548cf-17e2-4751-b87e-b72bdd2c77f7",
"resourceGroupName": "dev"
}
}
}
}
}
]
}
},
".turbot": {
"uri": "tmod:@turbot/azure-searchmanagement#/definitions/searchService",
"modUri": "tmod:@turbot/azure-searchmanagement"
}
}

searchServiceAka

{
"type": "string",
"pattern": "^azure:///subscriptions/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/resourceGroups/[A-Za-z0-9-_().]*[A-Za-z0-9-_()]/providers/Microsoft.Search/searchServices/[a-z0-9][-.a-z0-9]{2,60}[a-z0-9]$",
"tests": [
{
"descritpion": "base case",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2c77f7/resourceGroups/dev/providers/Microsoft.Search/searchServices/test01"
},
{
"description": "invalid - Wrong Account id",
"input": "azure:///subscriptions/9e3548cf-17e2-4751-b87e-b72bdd2chkjfhhdshfkndjfjkdsjh77f7/resourceGroups/dev/providers/Microsoft.Search/searchServices/test01",
"expected": false
}
],
".turbot": {
"uri": "tmod:@turbot/azure-searchmanagement#/definitions/searchServiceAka",
"modUri": "tmod:@turbot/azure-searchmanagement"
}
}