forked from Azure/azure-resource-manager-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 12912 in Azure/azure-rest-api-specs
Merge 1c253a4f7f0a4e671ce02d9b7620949532fdd820 into f8a0c3a4f26fceadd7d0851288919503eb243658
- Loading branch information
SDKAuto
committed
Feb 25, 2021
1 parent
0cf8394
commit 6c432b0
Showing
6 changed files
with
2,157 additions
and
1,799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} | ||
} |
Oops, something went wrong.