Skip to content

Commit

Permalink
Removed the publishingcredentials API and re-added the publishingUser…
Browse files Browse the repository at this point in the history
…s API (#925)

* Fixes for code review comments

* Make resourcegroup the first parameter if applicable.

* Address CR comments from #761

* Address more comments on PR

* Fix HTTP status codes for start/stop/restart app and deployment slots. Make SCM type read/write. Add Linux App Fx version.

* Rename operation parameters with name options to avoid conflict with Node CLI SDK. Add config snapshots API. Add valid values for SCMType.

* Fix CR recommendations. Remove obsolete siteAuthSettings properties

* Surface the correct publishing user API

* Expose hosttype for hostnames

* Fix folder structure according to convention

* Fix paths in composite swagger json

* CR comment fix: Changed parameter name to userDetails.
  • Loading branch information
naveedaz authored and yugangw-msft committed Feb 11, 2017
1 parent 7266259 commit 2843040
Show file tree
Hide file tree
Showing 11 changed files with 123 additions and 81 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,18 @@
"toUpdate": {
"description": "Set to <code>true</code> to update existing hostname.",
"type": "boolean"
},
"hostType": {
"description": "Indicates whether the hostname is a standard or repository hostname.",
"enum": [
"Standard",
"Repository"
],
"type": "string",
"x-ms-enum": {
"name": "HostType",
"modelAsString": false
}
}
}
},
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,70 @@
"https"
],
"paths": {
"/providers/Microsoft.Web/publishingUsers/web": {
"get": {
"summary": "Gets publishing user",
"description": "Gets publishing user",
"operationId": "GetPublishingUser",
"produces": [
"application/json",
"text/json",
"application/xml",
"text/xml"
],
"parameters": [
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/User"
}
}
}
},
"put": {
"summary": "Updates publishing user",
"description": "Updates publishing user",
"operationId": "UpdatePublishingUser",
"consumes": [
"application/json",
"text/json",
"application/x-www-form-urlencoded"
],
"produces": [
"application/json",
"text/json",
"application/xml",
"text/xml"
],
"parameters": [
{
"name": "userDetails",
"in": "body",
"description": "Details of publishing user",
"required": true,
"schema": {
"$ref": "#/definitions/User"
}
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/User"
}
}
}
}
},
"/providers/Microsoft.Web/sourcecontrols": {
"get": {
"summary": "Gets the source controls available for Azure websites.",
Expand Down Expand Up @@ -130,7 +194,7 @@
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/geoRegions": {
"post": {
"get": {
"summary": "Get a list of available geographical regions.",
"description": "Get a list of available geographical regions.",
"operationId": "ListGeoRegions",
Expand Down Expand Up @@ -207,76 +271,6 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/publishingCredentials": {
"get": {
"summary": "Get the publishing credentials for the subscription owner.",
"description": "Get the publishing credentials for the subscription owner.",
"operationId": "GetPublishingCredentials",
"produces": [
"application/json",
"text/json",
"application/xml",
"text/xml"
],
"parameters": [
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/User"
}
}
}
},
"put": {
"summary": "Update the publishing credentials for the subscription owner.",
"description": "Update the publishing credentials for the subscription owner.",
"operationId": "UpdatePublishingCredentials",
"consumes": [
"application/json",
"text/json",
"application/x-www-form-urlencoded"
],
"produces": [
"application/json",
"text/json",
"application/xml",
"text/xml"
],
"parameters": [
{
"name": "requestMessage",
"in": "body",
"description": "A request message with the new publishing credentials.",
"required": true,
"schema": {
"$ref": "#/definitions/User"
}
},
{
"$ref": "#/parameters/subscriptionIdParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/User"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Web/skus": {
"get": {
"summary": "List all SKUs.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11992,6 +11992,18 @@
"toUpdate": {
"description": "Set to <code>true</code> to update existing hostname.",
"type": "boolean"
},
"hostType": {
"description": "Indicates whether the hostname is a standard or repository hostname.",
"enum": [
"Standard",
"Repository"
],
"type": "string",
"x-ms-enum": {
"name": "HostType",
"modelAsString": false
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2599,6 +2599,18 @@
"toUpdate": {
"description": "Set to <code>true</code> to update existing hostname.",
"type": "boolean"
},
"hostType": {
"description": "Indicates whether the hostname is a standard or repository hostname.",
"enum": [
"Standard",
"Repository"
],
"type": "string",
"x-ms-enum": {
"name": "HostType",
"modelAsString": false
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,18 @@
"toUpdate": {
"description": "Set to <code>true</code> to update existing hostname.",
"type": "boolean"
},
"hostType": {
"description": "Indicates whether the hostname is a standard or repository hostname.",
"enum": [
"Standard",
"Repository"
],
"type": "string",
"x-ms-enum": {
"name": "HostType",
"modelAsString": false
}
}
}
},
Expand Down
20 changes: 10 additions & 10 deletions arm-web/compositeWebAppClient.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"description": "Composite Swagger for WebSite Management Client"
},
"documents": [
"./2015-08-01/AppServiceCertificateOrders.json",
"./2016-09-01/AppServiceEnvironments.json",
"./2016-09-01/AppServicePlans.json",
"./2016-03-01/Certificates.json",
"./2015-04-01/Domains.json",
"./2016-03-01/Recommendations.json",
"./2016-03-01/ResourceProvider.json",
"./2015-04-01/TopLevelDomains.json",
"./2016-08-01/WebApps.json",
"./2016-03-01/DeletedWebApps.json"
"./2015-08-01/swagger/AppServiceCertificateOrders.json",
"./2016-09-01/swagger/AppServiceEnvironments.json",
"./2016-09-01/swagger/AppServicePlans.json",
"./2016-03-01/swagger/Certificates.json",
"./2015-04-01/swagger/Domains.json",
"./2016-03-01/swagger/Recommendations.json",
"./2016-03-01/swagger/ResourceProvider.json",
"./2015-04-01/swagger/TopLevelDomains.json",
"./2016-08-01/swagger/WebApps.json",
"./2016-03-01/swagger/DeletedWebApps.json"
]
}

0 comments on commit 2843040

Please sign in to comment.