Rename "Create" to "CreateOrUpdate"

This commit is contained in:
Angus Salkeld 2019-12-16 16:16:18 +10:00 коммит произвёл Jim Minter
Родитель 3c3d33adf2
Коммит eb263af53e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 0730CBDA10D1A2D3
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -130,7 +130,7 @@ func populateTopLevelPaths(resourceProviderNamespace, resourceType, friendlyName
Tags: []string{strings.Title(resourceType) + "s"}, Tags: []string{strings.Title(resourceType) + "s"},
Summary: "Creates or updates a " + friendlyName + " with the specified subscription, resource group and resource name.", Summary: "Creates or updates a " + friendlyName + " with the specified subscription, resource group and resource name.",
Description: "Creates or updates a " + friendlyName + " with the specified subscription, resource group and resource name. The operation returns properties of a " + friendlyName + ".", Description: "Creates or updates a " + friendlyName + " with the specified subscription, resource group and resource name. The operation returns properties of a " + friendlyName + ".",
OperationID: strings.Title(resourceType) + "s_Create", OperationID: strings.Title(resourceType) + "s_CreateOrUpdate",
Parameters: populateParameters(4, strings.Title(resourceType), friendlyName), Parameters: populateParameters(4, strings.Title(resourceType), friendlyName),
Responses: populateResponses(strings.Title(resourceType), false, http.StatusOK, http.StatusCreated), Responses: populateResponses(strings.Title(resourceType), false, http.StatusOK, http.StatusCreated),
LongRunningOperation: true, LongRunningOperation: true,

Просмотреть файл

@ -187,7 +187,7 @@
], ],
"summary": "Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.", "summary": "Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.",
"description": "Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.", "description": "Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name. The operation returns properties of a OpenShift cluster.",
"operationId": "OpenShiftClusters_Create", "operationId": "OpenShiftClusters_CreateOrUpdate",
"parameters": [ "parameters": [
{ {
"$ref": "#/parameters/ApiVersionParameter" "$ref": "#/parameters/ApiVersionParameter"
@ -242,7 +242,7 @@
"x-ms-long-running-operation": true, "x-ms-long-running-operation": true,
"x-ms-examples": { "x-ms-examples": {
"Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.": { "Creates or updates a OpenShift cluster with the specified subscription, resource group and resource name.": {
"$ref": "./examples/OpenShiftClusters_Create.json" "$ref": "./examples/OpenShiftClusters_CreateOrUpdate.json"
} }
} }
}, },