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

[AutoPR deviceprovisioningservices] Dev deviceprovisioningservices microsoft.devices 2021 02 01 preview #1324

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
342 changes: 342 additions & 0 deletions schemas/2017-08-21-preview/Microsoft.Devices.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,342 @@
{
"id": "https://schema.management.azure.com/schemas/2017-08-21-preview/Microsoft.Devices.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Devices",
"description": "Microsoft Devices Resource Types",
"resourceDefinitions": {
"provisioningServices": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2017-08-21-preview"
]
},
"etag": {
"type": "string",
"description": "The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention."
},
"location": {
"type": "string",
"description": "The resource location."
},
"name": {
"type": "string",
"description": "Name of provisioning service to create or update."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/IotDpsPropertiesDescription"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"resources": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/provisioningServices_certificates_childResource"
}
]
}
},
"sku": {
"oneOf": [
{
"$ref": "#/definitions/IotDpsSkuInfo"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of possible provisioning service SKUs."
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The resource tags."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Devices/provisioningServices"
]
}
},
"required": [
"apiVersion",
"location",
"name",
"properties",
"sku",
"type"
],
"description": "Microsoft.Devices/provisioningServices"
},
"provisioningServices_certificates": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2017-08-21-preview"
]
},
"certificate": {
"type": "string",
"description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content."
},
"name": {
"type": "string",
"description": "The name of the certificate create or update."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Devices/provisioningServices/certificates"
]
}
},
"required": [
"apiVersion",
"name",
"type"
],
"description": "Microsoft.Devices/provisioningServices/certificates"
}
},
"definitions": {
"IotDpsPropertiesDescription": {
"type": "object",
"properties": {
"allocationPolicy": {
"oneOf": [
{
"type": "string",
"enum": [
"Hashed",
"GeoLatency",
"Static"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Allocation policy to be used by this provisioning service."
},
"authorizationPolicies": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/SharedAccessSignatureAuthorizationRuleAccessRightsDescription"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"iotHubs": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/IotHubDefinitionDescription"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "List of IoT hubs associated with this provisioning service."
},
"provisioningState": {
"type": "string",
"description": "The ARM provisioning state of the provisioning service."
},
"state": {
"oneOf": [
{
"type": "string",
"enum": [
"Activating",
"Active",
"Deleting",
"Deleted",
"ActivationFailed",
"DeletionFailed",
"Transitioning",
"Suspending",
"Suspended",
"Resuming",
"FailingOver",
"FailoverFailed"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Current state of the provisioning service."
}
}
},
"IotDpsSkuInfo": {
"type": "object",
"properties": {
"capacity": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The number of services of the selected tier allowed in the subscription."
},
"name": {
"oneOf": [
{
"type": "string",
"enum": [
"S1"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
},
"description": "List of possible provisioning service SKUs."
},
"IotHubDefinitionDescription": {
"type": "object",
"properties": {
"allocationWeight": {
"oneOf": [
{
"type": "integer"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"applyAllocationPolicy": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"connectionString": {
"type": "string",
"description": "Connection string og the IoT hub."
},
"location": {
"type": "string",
"description": "ARM region of the IoT hub."
}
},
"required": [
"connectionString",
"location"
],
"description": "Description of the IoT hub."
},
"provisioningServices_certificates_childResource": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2017-08-21-preview"
]
},
"certificate": {
"type": "string",
"description": "Base-64 representation of the X509 leaf certificate .cer file or just .pem file content."
},
"name": {
"type": "string",
"description": "The name of the certificate create or update."
},
"type": {
"type": "string",
"enum": [
"certificates"
]
}
},
"required": [
"apiVersion",
"name",
"type"
],
"description": "Microsoft.Devices/provisioningServices/certificates"
},
"SharedAccessSignatureAuthorizationRuleAccessRightsDescription": {
"type": "object",
"properties": {
"keyName": {
"type": "string",
"description": "Name of the key."
},
"primaryKey": {
"type": "string",
"description": "Primary SAS key value."
},
"rights": {
"oneOf": [
{
"type": "string",
"enum": [
"ServiceConfig",
"EnrollmentRead",
"EnrollmentWrite",
"DeviceConnect",
"RegistrationStatusRead",
"RegistrationStatusWrite"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Rights that this key has."
},
"secondaryKey": {
"type": "string",
"description": "Secondary SAS key value."
}
},
"required": [
"keyName",
"rights"
],
"description": "Description of the shared access key."
}
}
}
Loading