Skip to content

Commit

Permalink
Expose Patch operations. Expose missing provider level operations (#…
Browse files Browse the repository at this point in the history
…1816)

* Fix regression where Get source control API was accidentally removed from swagger

* Add PublicCertificates API, MSDeploy API and remove obsolete microService and gateway API

* Add public certificates, Functions Admin Token and MSDeploy APIs

* Revert resource definition changes and description change for site properties

* Make type and name readonly properties. Add ARM envelope to MSDeployStatus object

* Fix missing quotation issue.

* Add long running operation to MS deploy

* Make MsDeploy and MsDeployLog Azure resources

* Fix some AutoRest validation issues. Use dictionary for msdeploy.setparameters

* Ensure models are same across all schemas in Microsoft.Web

* Fix azure resource type across all models

* Remove conflicting ListOperations. It is not used for public Azure.

* Expose Patch operations. Expose missing provider level operations

* Fix static validation issues.

* Remove required for location on Azure resource

* Fix enum to maintain order

* Fix Stampcapacity enum in ResourceProvider.json

* Move common definitions to single location.

* Fix spurious references to commonDefinitions

* Address CR issues.

* Revert references to common definitions

* Revert Model Resource to have required location.

* Fixing a few straglers
  • Loading branch information
naveedaz authored and sergey-shandar committed Oct 23, 2017
1 parent 02a8a6b commit 54ffab4
Show file tree
Hide file tree
Showing 12 changed files with 5,631 additions and 3,115 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains": {
"get": {
Expand All @@ -17,10 +23,6 @@
"summary": "Get all top-level domains supported for registration.",
"description": "Get all top-level domains supported for registration.",
"operationId": "TopLevelDomains_List",
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"$ref": "#/parameters/subscriptionIdParameter"
Expand Down Expand Up @@ -50,12 +52,6 @@
"summary": "Get details of a top-level domain.",
"description": "Get details of a top-level domain.",
"operationId": "TopLevelDomains_Get",
"produces": [
"application/json",
"text/json",
"application/xml",
"text/xml"
],
"parameters": [
{
"name": "name",
Expand Down Expand Up @@ -89,17 +85,6 @@
"summary": "Gets all legal agreements that user needs to accept before purchasing a domain.",
"description": "Gets all legal agreements that user needs to accept before purchasing a domain.",
"operationId": "TopLevelDomains_ListAgreements",
"consumes": [
"application/json",
"text/json",
"application/xml",
"text/xml",
"application/x-www-form-urlencoded"
],
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"name": "name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/certificates": {
"get": {
Expand All @@ -17,10 +23,6 @@
"summary": "Get all certificates for a subscription.",
"description": "Get all certificates for a subscription.",
"operationId": "Certificates_List",
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"$ref": "#/parameters/subscriptionIdParameter"
Expand Down Expand Up @@ -50,10 +52,6 @@
"summary": "Get all certificates in a resource group.",
"description": "Get all certificates in a resource group.",
"operationId": "Certificates_ListByResourceGroup",
"produces": [
"application/json",
"text/json"
],
"parameters": [
{
"$ref": "#/parameters/resourceGroupNameParameter"
Expand Down Expand Up @@ -86,12 +84,6 @@
"summary": "Get a certificate.",
"description": "Get a certificate.",
"operationId": "Certificates_Get",
"produces": [
"application/json",
"text/json",
"application/xml",
"text/xml"
],
"parameters": [
{
"$ref": "#/parameters/resourceGroupNameParameter"
Expand Down Expand Up @@ -126,17 +118,6 @@
"summary": "Create or update a certificate.",
"description": "Create or update a certificate.",
"operationId": "Certificates_CreateOrUpdate",
"consumes": [
"application/json",
"text/json",
"application/x-www-form-urlencoded"
],
"produces": [
"application/json",
"text/json",
"application/xml",
"text/xml"
],
"parameters": [
{
"$ref": "#/parameters/resourceGroupNameParameter"
Expand Down Expand Up @@ -214,17 +195,6 @@
"summary": "Create or update a certificate.",
"description": "Create or update a certificate.",
"operationId": "Certificates_Update",
"consumes": [
"application/json",
"text/json",
"application/x-www-form-urlencoded"
],
"produces": [
"application/json",
"text/json",
"application/xml",
"text/xml"
],
"parameters": [
{
"$ref": "#/parameters/resourceGroupNameParameter"
Expand All @@ -242,7 +212,7 @@
"description": "Details of certificate, if it exists already.",
"required": true,
"schema": {
"$ref": "#/definitions/Certificate"
"$ref": "#/definitions/CertificatePatchResource"
}
},
{
Expand Down Expand Up @@ -346,6 +316,7 @@
"readOnly": true
},
"cerBlob": {
"format": "byte",
"description": "Raw bytes of .cer file",
"type": "string",
"readOnly": true
Expand Down Expand Up @@ -395,11 +366,6 @@
"type": "string",
"readOnly": true
},
"name": {
"description": "Resource name of the certificate.",
"type": "string",
"readOnly": true
},
"serverFarmId": {
"description": "Resource ID of the associated App Service plan, formatted as: \"/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}\".",
"type": "string"
Expand Down Expand Up @@ -429,6 +395,147 @@
}
}
},
"CertificatePatchResource": {
"description": "ARM resource for a certificate.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ProxyOnlyResource"
}
],
"properties": {
"properties": {
"description": "CertificatePatchResource resource specific properties",
"required": [
"password"
],
"properties": {
"friendlyName": {
"description": "Friendly name of the certificate.",
"type": "string",
"readOnly": true
},
"subjectName": {
"description": "Subject name of the certificate.",
"type": "string",
"readOnly": true
},
"hostNames": {
"description": "Host names the certificate applies to.",
"type": "array",
"items": {
"type": "string"
}
},
"pfxBlob": {
"format": "byte",
"description": "Pfx blob.",
"type": "string"
},
"siteName": {
"description": "App name.",
"type": "string",
"readOnly": true
},
"selfLink": {
"description": "Self link.",
"type": "string",
"readOnly": true
},
"issuer": {
"description": "Certificate issuer.",
"type": "string",
"readOnly": true
},
"issueDate": {
"format": "date-time",
"description": "Certificate issue Date.",
"type": "string",
"readOnly": true
},
"expirationDate": {
"format": "date-time",
"description": "Certificate expriration date.",
"type": "string",
"readOnly": true
},
"password": {
"description": "Certificate password.",
"type": "string",
"x-ms-mutability": [
"create"
]
},
"thumbprint": {
"description": "Certificate thumbprint.",
"type": "string",
"readOnly": true
},
"valid": {
"description": "Is the certificate valid?.",
"type": "boolean",
"readOnly": true
},
"cerBlob": {
"format": "byte",
"description": "Raw bytes of .cer file",
"type": "string",
"readOnly": true
},
"publicKeyHash": {
"description": "Public key hash.",
"type": "string",
"readOnly": true
},
"hostingEnvironmentProfile": {
"$ref": "#/definitions/HostingEnvironmentProfile",
"description": "Specification for the App Service Environment to use for the certificate.",
"readOnly": true
},
"keyVaultId": {
"description": "Key Vault Csm resource Id.",
"type": "string"
},
"keyVaultSecretName": {
"description": "Key Vault secret name.",
"type": "string"
},
"keyVaultSecretStatus": {
"description": "Status of the Key Vault secret.",
"enum": [
"Initialized",
"WaitingOnCertificateOrder",
"Succeeded",
"CertificateOrderFailed",
"OperationNotPermittedOnKeyVault",
"AzureServiceUnauthorizedToAccessKeyVault",
"KeyVaultDoesNotExist",
"KeyVaultSecretDoesNotExist",
"UnknownError",
"ExternalPrivateKey",
"Unknown"
],
"type": "string",
"readOnly": true,
"x-ms-enum": {
"name": "KeyVaultSecretStatus",
"modelAsString": false
}
},
"geoRegion": {
"description": "Region of the certificate.",
"type": "string",
"readOnly": true
},
"serverFarmId": {
"description": "Resource ID of the associated App Service plan, formatted as: \"/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}\".",
"type": "string"
}
},
"x-ms-client-flatten": true
}
}
},
"HostingEnvironmentProfile": {
"description": "Specification for an App Service Environment to use for this resource.",
"type": "object",
Expand All @@ -449,6 +556,31 @@
}
}
},
"ProxyOnlyResource": {
"description": "Azure proxy only resource. This resource is not tracked by Azure Resource Manager.",
"properties": {
"id": {
"description": "Resource Id.",
"type": "string",
"readOnly": true
},
"name": {
"description": "Resource Name.",
"type": "string",
"readOnly": true
},
"kind": {
"description": "Kind of resource.",
"type": "string"
},
"type": {
"description": "Resource type.",
"type": "string",
"readOnly": true
}
},
"x-ms-azure-resource": true
},
"Resource": {
"description": "Azure resource. This resource is tracked in Azure Resource Manager",
"required": [
Expand Down Expand Up @@ -484,33 +616,6 @@
"additionalProperties": {
"type": "string"
}
},
"identity": {
"description": "Identity for the resource.",
"type": "object",
"properties": {
"principalId": {
"description": "The principal ID of resource identity.",
"type": "string",
"readOnly": true
},
"tenantId": {
"description": "The tenant ID of resource.",
"type": "string",
"readOnly": true
},
"type": {
"description": "The identity type.",
"type": "string",
"enum": [
"SystemAssigned"
],
"x-ms-enum": {
"name": "ManagedServiceIdentityType",
"modelAsString": false
}
}
}
}
},
"x-ms-azure-resource": true
Expand All @@ -529,11 +634,11 @@
"in": "path",
"description": "Name of the resource group to which the resource belongs.",
"required": true,
"x-ms-parameter-location": "method",
"type": "string",
"maxLength": 90,
"minLength": 1,
"pattern": "^[-\\w\\._\\(\\)]+[^\\.]$"
"pattern": "^[-\\w\\._\\(\\)]+[^\\.]$",
"x-ms-parameter-location": "method"
},
"apiVersionParameter": {
"name": "api-version",
Expand Down
Loading

0 comments on commit 54ffab4

Please sign in to comment.