Skip to content

Commit

Permalink
Merge pull request Azure#11 from pomortaz/master
Browse files Browse the repository at this point in the history
Adding KV managed field, pattern validation, fixed K for JsonWebKey, …
  • Loading branch information
amarzavery authored Aug 27, 2016
2 parents b721b2b + d779b0a commit b1c9695
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 23 deletions.
47 changes: 36 additions & 11 deletions arm-keyvault/2015-06-01/swagger/keyvault.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@
],
"responses": {
"200": {
"description": "Deleted vault",
"schema": {
"$ref": "#/definitions/Vault"
}
"description": "OK Response."
}
}
},
Expand Down Expand Up @@ -260,7 +257,8 @@
},
"description": "SKU details",
"required": [
"name"
"name",
"family"
]
},
"AccessPolicyEntry": {
Expand All @@ -273,7 +271,7 @@
"objectId": {
"type": "string",
"format": "uuid",
"description": "The object ID of a user or service principal in the Azure Active Directory tenant for the vault. "
"description": "The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies."
},
"applicationId": {
"type": "string",
Expand All @@ -282,29 +280,56 @@
},
"permissions": {
"$ref": "#/definitions/Permissions",
"description": "Permissions the identity has for keys and secrets"
"description": "Permissions the identity has for keys, secrets and certificates."
}
},
"description": "An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID."
"description": "An identity that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID.",
"required": [
"tenantId",
"objectId",
"permissions"
]
},
"Permissions": {
"properties": {
"keys": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"enum": [ "all", "encrypt", "decrypt", "wrapKey", "unwrapKey", "sign", "verify", "get", "list", "create", "update", "import", "delete", "backup", "restore" ],
"x-ms-enum": {
"name": "KeyPermissions",
"modelAsString": true
}
},
"description": "Permissions to keys"
},
"secrets": {
"type": "array",
"items": {
"type": "string"
"type": "string",
"enum": [ "all", "get", "list", "set", "delete" ],
"x-ms-enum": {
"name": "SecretPermissions",
"modelAsString": true
}
},
"description": "Permissions to secrets"
},
"certificates": {
"type": "array",
"items": {
"type": "string",
"enum": [ "all", "get", "list", "delete", "create", "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", "deleteissuers", "manageissuers" ],
"x-ms-enum": {
"name": "CertificatePermissions",
"modelAsString": true
}
},
"description": "Permissions to certificates"
}
},
"description": "Permissions the identity has for keys and secrets"
"description": "Permissions the identity has for keys, secrets and certificates."
},
"VaultProperties": {
"properties": {
Expand Down
113 changes: 101 additions & 12 deletions keyvault/2015-06-01/swagger/keyvault.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"in": "path",
"required": true,
"type": "string",
"pattern": "^[0-9a-zA-Z-]+$",
"description": "The name of the key"
},
{
Expand Down Expand Up @@ -85,6 +86,7 @@
"in": "path",
"required": true,
"type": "string",
"pattern": "^[0-9a-zA-Z-]+$",
"description": "The name of the key"
},
{
Expand Down Expand Up @@ -725,6 +727,7 @@
"in": "path",
"required": true,
"type": "string",
"pattern": "^[0-9a-zA-Z-]+$",
"description": "The name of the secret in the given vault"
},
{
Expand Down Expand Up @@ -1184,13 +1187,14 @@
"description": "The name of the issuer."
},
{
"name": "issuer",
"name": "parameter",
"in": "body",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/IssuerBundle"
"$ref": "#/definitions/CertificateIssuerSetParameters"
},
"description": "The issuer bundle."
"description": "Certificate issuer set parameter."
},
{
"$ref": "#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -1226,13 +1230,14 @@
"description": "The name of the issuer."
},
{
"name": "issuer",
"name": "parameter",
"in": "body",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/IssuerBundle"
"$ref": "#/definitions/CertificateIssuerUpdateParameters"
},
"description": "The issuer bundle."
"description": "Certificate issuer update parameter."
},
{
"$ref": "#/parameters/ApiVersionParameter"
Expand Down Expand Up @@ -1333,6 +1338,7 @@
"in": "path",
"required": true,
"type": "string",
"pattern": "^[0-9a-zA-Z-]+$",
"description": "The name of the certificate"
},
{
Expand Down Expand Up @@ -1378,6 +1384,7 @@
"in": "path",
"required": true,
"type": "string",
"pattern": "^[0-9a-zA-Z-]+$",
"description": "The name of the certificate"
},
{
Expand Down Expand Up @@ -1643,8 +1650,9 @@
"name": "certificateOperation",
"in": "body",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/CertificateOperation"
"$ref": "#/definitions/CertificateOperationUpdateParameter"
},
"description": "The certificate operation response."
},
Expand Down Expand Up @@ -1879,7 +1887,7 @@
"format": "base64url",
"description": "RSA secret prime, with p < q"
},
"K": {
"k": {
"type": "string",
"format": "base64url",
"description": "Symmetric key"
Expand Down Expand Up @@ -1917,6 +1925,11 @@
"type": "string"
},
"description": "Application-specific metadata in the form of key-value pairs"
},
"managed": {
"type": "boolean",
"readOnly": true,
"description": "True if the key's lifetime is managed by key vault i.e. if this is a key backing a certificate, then managed will be true."
}
},
"description": "A KeyBundle consisting of a WebKey plus its Attributes"
Expand All @@ -1937,6 +1950,11 @@
"type": "string"
},
"description": "Application-specific metadata in the form of key-value pairs"
},
"managed": {
"type": "boolean",
"readOnly": true,
"description": "True if the key's lifetime is managed by key vault i.e. if this is a key backing a certificate, then managed will be true."
}
},
"description": "The key item containing key metadata"
Expand Down Expand Up @@ -1968,7 +1986,13 @@
},
"kid": {
"type": "string",
"description": "The key id for certificate."
"readOnly": true,
"description": "If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate."
},
"managed": {
"type": "boolean",
"readOnly": true,
"description": "True if the secret's lifetime is managed by key vault i.e. if this is a secret backing a certificate, then managed will be true."
}
},
"description": "A Secret consisting of a value, id and its attributes."
Expand All @@ -1993,6 +2017,11 @@
"contentType": {
"type": "string",
"description": "Type of the secret value such as a password"
},
"managed": {
"type": "boolean",
"readOnly": true,
"description": "True if the secret's lifetime is managed by key vault i.e. if this is a key backing a certificate, then managed will be true."
}
},
"description": "The secret item containing secret metadata"
Expand Down Expand Up @@ -2047,7 +2076,7 @@
},
"provider": {
"type": "string",
"description": "The name of the issuer."
"description": "The issuer provider."
}
},
"description": "The certificate issuer item containing certificate issuer metadata"
Expand Down Expand Up @@ -2265,7 +2294,7 @@
"properties": {
"name": {
"type": "string",
"description": "Name of the referenced issuer object."
"description": "Name of the referenced issuer object e.g. 'Self', 'Unknown'."
}
},
"description": "Reference to the issuer of the X509 component of a certificate."
Expand Down Expand Up @@ -2349,7 +2378,7 @@
},
"provider": {
"type": "string",
"description": "The name of the issuer."
"description": "The issuer provider."
},
"credentials": {
"$ref": "#/definitions/IssuerCredentials",
Expand Down Expand Up @@ -2760,6 +2789,11 @@
},
"CertificateUpdateParameters": {
"properties": {
"policy": {
"x-ms-client-name": "CertificatePolicy",
"$ref": "#/definitions/CertificatePolicy",
"description": "The management policy for the certificate"
},
"attributes": {
"x-ms-client-name": "CertificateAttributes",
"$ref": "#/definitions/CertificateAttributes",
Expand Down Expand Up @@ -2802,6 +2836,61 @@
"description": "The certificate merge parameters",
"required": [ "x5c" ]
},
"CertificateIssuerSetParameters": {
"properties": {
"provider": {
"type": "string",
"description": "The issuer provider."
},
"credentials": {
"$ref": "#/definitions/IssuerCredentials",
"description": "The credentials to be used for the issuer."
},
"org_details": {
"x-ms-client-name": "OrganizationDetails",
"$ref": "#/definitions/OrganizationDetails",
"description": "Details of the organization as provided to the issuer."
},
"attributes": {
"$ref": "#/definitions/IssuerAttributes",
"description": "Attributes of the issuer object."
}
},
"description": "The certificate issuer set parameters.",
"required": [ "provider" ]
},
"CertificateIssuerUpdateParameters": {
"properties": {
"provider": {
"type": "string",
"description": "The issuer provider."
},
"credentials": {
"$ref": "#/definitions/IssuerCredentials",
"description": "The credentials to be used for the issuer."
},
"org_details": {
"x-ms-client-name": "OrganizationDetails",
"$ref": "#/definitions/OrganizationDetails",
"description": "Details of the organization as provided to the issuer."
},
"attributes": {
"$ref": "#/definitions/IssuerAttributes",
"description": "Attributes of the issuer object."
}
},
"description": "The certificate issuer update parameters."
},
"CertificateOperationUpdateParameter": {
"properties": {
"cancellation_requested": {
"type": "boolean",
"description": "Indicates if cancellation was requested on the certificate operation."
}
},
"description": "The certificate operation update parameters.",
"required": [ "cancellation_requested" ]
},
"KeyOperationResult": {
"properties": {
"kid": {
Expand Down

0 comments on commit b1c9695

Please sign in to comment.