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 attestation] Create "2021-06-01-preview" api-version for Azure Attestation service (private endpoint required changes) #3528

Closed
wants to merge 1 commit into from
Closed
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
384 changes: 384 additions & 0 deletions schemas/2021-06-01-preview/Microsoft.Attestation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,384 @@
{
"id": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.Attestation.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Attestation",
"description": "Microsoft Attestation Resource Types",
"resourceDefinitions": {
"attestationProviders": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-06-01-preview"
]
},
"location": {
"type": "string",
"description": "The supported Azure location where the attestation provider should be created."
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^[a-zA-Z0-9-]{3,24}$"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Name of the attestation provider."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/AttestationServiceCreationSpecificParams"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Client supplied parameters used to create a new attestation provider."
},
"resources": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/attestationProviders_privateEndpointConnections_childResource"
}
]
}
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The tags that will be assigned to the attestation provider."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Attestation/attestationProviders"
]
}
},
"required": [
"apiVersion",
"location",
"name",
"properties",
"type"
],
"description": "Microsoft.Attestation/attestationProviders"
},
"attestationProviders_privateEndpointConnections": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-06-01-preview"
]
},
"name": {
"type": "string",
"description": "Name of the private endpoint connection associated with the attestation providers."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/PrivateEndpointConnectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties of the PrivateEndpointConnectProperties."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Attestation/attestationProviders/privateEndpointConnections"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Attestation/attestationProviders/privateEndpointConnections"
}
},
"definitions": {
"attestationProviders_privateEndpointConnections_childResource": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2021-06-01-preview"
]
},
"name": {
"type": "string",
"description": "Name of the private endpoint connection associated with the attestation providers."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/PrivateEndpointConnectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Properties of the PrivateEndpointConnectProperties."
},
"type": {
"type": "string",
"enum": [
"privateEndpointConnections"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Attestation/attestationProviders/privateEndpointConnections"
},
"AttestationServiceCreationSpecificParams": {
"type": "object",
"properties": {
"policySigningCertificates": {
"oneOf": [
{
"$ref": "#/definitions/JSONWebKeySet"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"publicNetworkAccess": {
"oneOf": [
{
"type": "string",
"enum": [
"Enabled",
"Disabled"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Controls whether traffic from the public network is allowed to access the Attestation Provider APIs."
}
},
"description": "Client supplied parameters used to create a new attestation provider."
},
"JSONWebKey": {
"type": "object",
"properties": {
"alg": {
"type": "string",
"description": "The \"alg\" (algorithm) parameter identifies the algorithm intended for\nuse with the key. The values used should either be registered in the\nIANA \"JSON Web Signature and Encryption Algorithms\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name."
},
"crv": {
"type": "string",
"description": "The \"crv\" (curve) parameter identifies the curve type"
},
"d": {
"type": "string",
"description": "RSA private exponent or ECC private key"
},
"dp": {
"type": "string",
"description": "RSA Private Key Parameter"
},
"dq": {
"type": "string",
"description": "RSA Private Key Parameter"
},
"e": {
"type": "string",
"description": "RSA public exponent, in Base64"
},
"k": {
"type": "string",
"description": "Symmetric key"
},
"kid": {
"type": "string",
"description": "The \"kid\" (key ID) parameter is used to match a specific key. This\nis used, for instance, to choose among a set of keys within a JWK Set\nduring key rollover. The structure of the \"kid\" value is\nunspecified. When \"kid\" values are used within a JWK Set, different\nkeys within the JWK Set SHOULD use distinct \"kid\" values. (One\nexample in which different keys might use the same \"kid\" value is if\nthey have different \"kty\" (key type) values but are considered to be\nequivalent alternatives by the application using them.) The \"kid\"\nvalue is a case-sensitive string."
},
"kty": {
"type": "string",
"description": "The \"kty\" (key type) parameter identifies the cryptographic algorithm\nfamily used with the key, such as \"RSA\" or \"EC\". \"kty\" values should\neither be registered in the IANA \"JSON Web Key Types\" registry\nestablished by [JWA] or be a value that contains a Collision-\nResistant Name. The \"kty\" value is a case-sensitive string."
},
"n": {
"type": "string",
"description": "RSA modulus, in Base64"
},
"p": {
"type": "string",
"description": "RSA secret prime"
},
"q": {
"type": "string",
"description": "RSA secret prime, with p < q"
},
"qi": {
"type": "string",
"description": "RSA Private Key Parameter"
},
"use": {
"type": "string",
"description": "Use (\"public key use\") identifies the intended use of\nthe public key. The \"use\" parameter is employed to indicate whether\na public key is used for encrypting data or verifying the signature\non data. Values are commonly \"sig\" (signature) or \"enc\" (encryption)."
},
"x": {
"type": "string",
"description": "X coordinate for the Elliptic Curve point"
},
"x5c": {
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The \"x5c\" (X.509 certificate chain) parameter contains a chain of one\nor more PKIX certificates [RFC5280]. The certificate chain is\nrepresented as a JSON array of certificate value strings. Each\nstring in the array is a base64-encoded (Section 4 of [RFC4648] --\nnot base64url-encoded) DER [ITU.X690.1994] PKIX certificate value.\nThe PKIX certificate containing the key value MUST be the first\ncertificate."
},
"y": {
"type": "string",
"description": "Y coordinate for the Elliptic Curve point"
}
},
"required": [
"kty"
]
},
"JSONWebKeySet": {
"type": "object",
"properties": {
"keys": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/JSONWebKey"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The value of the \"keys\" parameter is an array of JWK values. By\ndefault, the order of the JWK values within the array does not imply\nan order of preference among them, although applications of JWK Sets\ncan choose to assign a meaning to the order for their purposes, if\ndesired."
}
}
},
"PrivateEndpoint": {
"type": "object",
"properties": {},
"description": "The Private Endpoint resource."
},
"PrivateEndpointConnectionProperties": {
"type": "object",
"properties": {
"privateEndpoint": {
"oneOf": [
{
"$ref": "#/definitions/PrivateEndpoint"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The Private Endpoint resource."
},
"privateLinkServiceConnectionState": {
"oneOf": [
{
"$ref": "#/definitions/PrivateLinkServiceConnectionState"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "A collection of information about the state of the connection between service consumer and provider."
},
"provisioningState": {
"oneOf": [
{
"type": "string",
"enum": [
"Succeeded",
"Creating",
"Deleting",
"Failed"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The provisioning state of the private endpoint connection resource."
}
},
"required": [
"privateLinkServiceConnectionState"
],
"description": "Properties of the PrivateEndpointConnectProperties."
},
"PrivateLinkServiceConnectionState": {
"type": "object",
"properties": {
"actionsRequired": {
"type": "string",
"description": "A message indicating if changes on the service provider require any updates on the consumer."
},
"description": {
"type": "string",
"description": "The reason for approval/rejection of the connection."
},
"status": {
"oneOf": [
{
"type": "string",
"enum": [
"Pending",
"Approved",
"Rejected"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service."
}
},
"description": "A collection of information about the state of the connection between service consumer and provider."
}
}
}
6 changes: 6 additions & 0 deletions schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,12 @@
{
"$ref": "https://schema.management.azure.com/schemas/2020-10-01/Microsoft.Attestation.json#/resourceDefinitions/attestationProviders_privateEndpointConnections"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.Attestation.json#/resourceDefinitions/attestationProviders"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-06-01-preview/Microsoft.Attestation.json#/resourceDefinitions/attestationProviders_privateEndpointConnections"
},
{
"$ref": "https://schema.management.azure.com/schemas/2015-01-01/Microsoft.Authorization.Resources.json#/resourceDefinitions/locks"
},
Expand Down