From 69393b5c995943c73852df7c896e1de1c25b4367 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 29 Apr 2020 00:40:41 +0000 Subject: [PATCH] Generated from a1a2802f3e2f8172f9e34d95d1f25e9590f50dfa Added missing reference --- .../appServiceCertificateOrdersMappers.ts | 2 + .../models/appServiceEnvironmentsMappers.ts | 2 + .../src/models/appServicePlansMappers.ts | 2 + .../src/models/certificatesMappers.ts | 2 + .../src/models/deletedWebAppsMappers.ts | 2 + .../src/models/diagnosticsMappers.ts | 2 + .../src/models/domainsMappers.ts | 2 + .../arm-appservice/src/models/index.ts | 124 +++++++ .../arm-appservice/src/models/mappers.ts | 45 +++ .../src/models/providerMappers.ts | 2 + .../src/models/recommendationsMappers.ts | 2 + ...resourceHealthMetadataOperationsMappers.ts | 2 + .../src/models/staticSitesMappers.ts | 2 + .../src/models/topLevelDomainsMappers.ts | 2 + .../src/models/webAppsMappers.ts | 2 + .../arm-appservice/src/operations/webApps.ts | 313 ++++++++++++++++++ 16 files changed, 508 insertions(+) diff --git a/sdk/appservice/arm-appservice/src/models/appServiceCertificateOrdersMappers.ts b/sdk/appservice/arm-appservice/src/models/appServiceCertificateOrdersMappers.ts index c682cef1350a..602615db47d6 100644 --- a/sdk/appservice/arm-appservice/src/models/appServiceCertificateOrdersMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/appServiceCertificateOrdersMappers.ts @@ -63,6 +63,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/appServiceEnvironmentsMappers.ts b/sdk/appservice/arm-appservice/src/models/appServiceEnvironmentsMappers.ts index 6dc880de4742..24322870e614 100644 --- a/sdk/appservice/arm-appservice/src/models/appServiceEnvironmentsMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/appServiceEnvironmentsMappers.ts @@ -63,6 +63,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CsmUsageQuota, CsmUsageQuotaCollection, CustomHostnameAnalysisResult, diff --git a/sdk/appservice/arm-appservice/src/models/appServicePlansMappers.ts b/sdk/appservice/arm-appservice/src/models/appServicePlansMappers.ts index 28ff406efa16..89f827a39725 100644 --- a/sdk/appservice/arm-appservice/src/models/appServicePlansMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/appServicePlansMappers.ts @@ -62,6 +62,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CsmUsageQuota, CsmUsageQuotaCollection, CustomHostnameAnalysisResult, diff --git a/sdk/appservice/arm-appservice/src/models/certificatesMappers.ts b/sdk/appservice/arm-appservice/src/models/certificatesMappers.ts index 25cbd77cf82e..2c69e05c0aca 100644 --- a/sdk/appservice/arm-appservice/src/models/certificatesMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/certificatesMappers.ts @@ -62,6 +62,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/deletedWebAppsMappers.ts b/sdk/appservice/arm-appservice/src/models/deletedWebAppsMappers.ts index 156d42c30c0b..7d7900181c96 100644 --- a/sdk/appservice/arm-appservice/src/models/deletedWebAppsMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/deletedWebAppsMappers.ts @@ -61,6 +61,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/diagnosticsMappers.ts b/sdk/appservice/arm-appservice/src/models/diagnosticsMappers.ts index 685d2db676f8..80b2ffdc8f6e 100644 --- a/sdk/appservice/arm-appservice/src/models/diagnosticsMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/diagnosticsMappers.ts @@ -61,6 +61,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/domainsMappers.ts b/sdk/appservice/arm-appservice/src/models/domainsMappers.ts index 370e2f840434..d63dc90e1df5 100644 --- a/sdk/appservice/arm-appservice/src/models/domainsMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/domainsMappers.ts @@ -61,6 +61,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/index.ts b/sdk/appservice/arm-appservice/src/models/index.ts index d76e0c90f48f..a5e92643c396 100644 --- a/sdk/appservice/arm-appservice/src/models/index.ts +++ b/sdk/appservice/arm-appservice/src/models/index.ts @@ -4758,6 +4758,30 @@ export interface CsmCopySlotEntity { siteConfig: SiteConfig; } +/** + * Publishing Credentials Policies parameters. + */ +export interface CsmPublishingCredentialsPoliciesEntity extends ProxyOnlyResource { + /** + * true to allow access to a publishing method; otherwise, false. + */ + allow: boolean; +} + +/** + * Publishing Credentials Policies collection. + */ +export interface CsmPublishingCredentialsPoliciesCollection extends ProxyOnlyResource { + /** + * Whether FTP is allowed. + */ + ftp: CsmPublishingCredentialsPoliciesEntity; + /** + * Whether Scm Basic Auth is allowed. + */ + scm: CsmPublishingCredentialsPoliciesEntity; +} + /** * Publishing options for requested profile. */ @@ -12857,6 +12881,106 @@ export type WebAppsListBackupStatusSecretsResponse = BackupItem & { }; }; +/** + * Contains response data for the getBasicPublishingCredentialsPolicies operation. + */ +export type WebAppsGetBasicPublishingCredentialsPoliciesResponse = CsmPublishingCredentialsPoliciesCollection & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmPublishingCredentialsPoliciesCollection; + }; +}; + +/** + * Contains response data for the getFtpAllowed operation. + */ +export type WebAppsGetFtpAllowedResponse = CsmPublishingCredentialsPoliciesEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmPublishingCredentialsPoliciesEntity; + }; +}; + +/** + * Contains response data for the updateFtpAllowed operation. + */ +export type WebAppsUpdateFtpAllowedResponse = CsmPublishingCredentialsPoliciesEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmPublishingCredentialsPoliciesEntity; + }; +}; + +/** + * Contains response data for the getScmAllowed operation. + */ +export type WebAppsGetScmAllowedResponse = CsmPublishingCredentialsPoliciesEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmPublishingCredentialsPoliciesEntity; + }; +}; + +/** + * Contains response data for the updateScmAllowed operation. + */ +export type WebAppsUpdateScmAllowedResponse = CsmPublishingCredentialsPoliciesEntity & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: CsmPublishingCredentialsPoliciesEntity; + }; +}; + /** * Contains response data for the listConfigurations operation. */ diff --git a/sdk/appservice/arm-appservice/src/models/mappers.ts b/sdk/appservice/arm-appservice/src/models/mappers.ts index f2a95f4541f7..324254fb95a4 100644 --- a/sdk/appservice/arm-appservice/src/models/mappers.ts +++ b/sdk/appservice/arm-appservice/src/models/mappers.ts @@ -8476,6 +8476,51 @@ export const CsmCopySlotEntity: msRest.CompositeMapper = { } }; +export const CsmPublishingCredentialsPoliciesEntity: msRest.CompositeMapper = { + serializedName: "CsmPublishingCredentialsPoliciesEntity", + type: { + name: "Composite", + className: "CsmPublishingCredentialsPoliciesEntity", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + allow: { + required: true, + serializedName: "properties.allow", + type: { + name: "Boolean" + } + } + } + } +}; + +export const CsmPublishingCredentialsPoliciesCollection: msRest.CompositeMapper = { + serializedName: "CsmPublishingCredentialsPoliciesCollection", + type: { + name: "Composite", + className: "CsmPublishingCredentialsPoliciesCollection", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + ftp: { + required: true, + serializedName: "properties.ftp", + type: { + name: "Composite", + className: "CsmPublishingCredentialsPoliciesEntity" + } + }, + scm: { + required: true, + serializedName: "properties.scm", + type: { + name: "Composite", + className: "CsmPublishingCredentialsPoliciesEntity" + } + } + } + } +}; + export const CsmPublishingProfileOptions: msRest.CompositeMapper = { serializedName: "CsmPublishingProfileOptions", type: { diff --git a/sdk/appservice/arm-appservice/src/models/providerMappers.ts b/sdk/appservice/arm-appservice/src/models/providerMappers.ts index 05340bc44792..23b1be4a88b7 100644 --- a/sdk/appservice/arm-appservice/src/models/providerMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/providerMappers.ts @@ -66,6 +66,8 @@ export { CsmOperationDescription, CsmOperationDescriptionProperties, CsmOperationDisplay, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/recommendationsMappers.ts b/sdk/appservice/arm-appservice/src/models/recommendationsMappers.ts index 18087813b294..d05cfcccc925 100644 --- a/sdk/appservice/arm-appservice/src/models/recommendationsMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/recommendationsMappers.ts @@ -61,6 +61,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/resourceHealthMetadataOperationsMappers.ts b/sdk/appservice/arm-appservice/src/models/resourceHealthMetadataOperationsMappers.ts index 942446ba5264..e432f144f6fb 100644 --- a/sdk/appservice/arm-appservice/src/models/resourceHealthMetadataOperationsMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/resourceHealthMetadataOperationsMappers.ts @@ -61,6 +61,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/staticSitesMappers.ts b/sdk/appservice/arm-appservice/src/models/staticSitesMappers.ts index 1807d488290f..a7209aaad745 100644 --- a/sdk/appservice/arm-appservice/src/models/staticSitesMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/staticSitesMappers.ts @@ -61,6 +61,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/topLevelDomainsMappers.ts b/sdk/appservice/arm-appservice/src/models/topLevelDomainsMappers.ts index 9d54e68b4183..f86137d96dbf 100644 --- a/sdk/appservice/arm-appservice/src/models/topLevelDomainsMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/topLevelDomainsMappers.ts @@ -61,6 +61,8 @@ export { ContainerThrottlingData, ContinuousWebJob, CorsSettings, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CustomHostnameAnalysisResult, DatabaseBackupSetting, DataSource, diff --git a/sdk/appservice/arm-appservice/src/models/webAppsMappers.ts b/sdk/appservice/arm-appservice/src/models/webAppsMappers.ts index 328d721a0094..c06a40a28eb0 100644 --- a/sdk/appservice/arm-appservice/src/models/webAppsMappers.ts +++ b/sdk/appservice/arm-appservice/src/models/webAppsMappers.ts @@ -65,6 +65,8 @@ export { ContinuousWebJobCollection, CorsSettings, CsmCopySlotEntity, + CsmPublishingCredentialsPoliciesCollection, + CsmPublishingCredentialsPoliciesEntity, CsmPublishingProfileOptions, CsmSlotEntity, CsmUsageQuota, diff --git a/sdk/appservice/arm-appservice/src/operations/webApps.ts b/sdk/appservice/arm-appservice/src/operations/webApps.ts index 79e109f5de22..7af32d5f30e3 100644 --- a/sdk/appservice/arm-appservice/src/operations/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operations/webApps.ts @@ -483,6 +483,180 @@ export class WebApps { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Description for Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given + * site. + * @summary Returns whether Scm basic auth is allowed and whether Ftp is allowed for a given site. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + getBasicPublishingCredentialsPolicies(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + getBasicPublishingCredentialsPolicies(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + getBasicPublishingCredentialsPolicies(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getBasicPublishingCredentialsPolicies(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getBasicPublishingCredentialsPoliciesOperationSpec, + callback) as Promise; + } + + /** + * Description for Returns whether FTP is allowed on the site or not. + * @summary Returns whether FTP is allowed on the site or not. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + getFtpAllowed(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + getFtpAllowed(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + getFtpAllowed(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getFtpAllowed(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getFtpAllowedOperationSpec, + callback) as Promise; + } + + /** + * Description for Updates whether FTP is allowed on the site or not. + * @summary Updates whether FTP is allowed on the site or not. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param csmPublishingAccessPoliciesEntity + * @param [options] The optional parameters + * @returns Promise + */ + updateFtpAllowed(resourceGroupName: string, name: string, csmPublishingAccessPoliciesEntity: Models.CsmPublishingCredentialsPoliciesEntity, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param csmPublishingAccessPoliciesEntity + * @param callback The callback + */ + updateFtpAllowed(resourceGroupName: string, name: string, csmPublishingAccessPoliciesEntity: Models.CsmPublishingCredentialsPoliciesEntity, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param csmPublishingAccessPoliciesEntity + * @param options The optional parameters + * @param callback The callback + */ + updateFtpAllowed(resourceGroupName: string, name: string, csmPublishingAccessPoliciesEntity: Models.CsmPublishingCredentialsPoliciesEntity, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateFtpAllowed(resourceGroupName: string, name: string, csmPublishingAccessPoliciesEntity: Models.CsmPublishingCredentialsPoliciesEntity, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + csmPublishingAccessPoliciesEntity, + options + }, + updateFtpAllowedOperationSpec, + callback) as Promise; + } + + /** + * Description for Returns whether Scm basic auth is allowed on the site or not. + * @summary Returns whether Scm basic auth is allowed on the site or not. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param [options] The optional parameters + * @returns Promise + */ + getScmAllowed(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param callback The callback + */ + getScmAllowed(resourceGroupName: string, name: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param options The optional parameters + * @param callback The callback + */ + getScmAllowed(resourceGroupName: string, name: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getScmAllowed(resourceGroupName: string, name: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + options + }, + getScmAllowedOperationSpec, + callback) as Promise; + } + + /** + * Description for Updates whether user publishing credentials are allowed on the site or not. + * @summary Updates whether user publishing credentials are allowed on the site or not. + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param csmPublishingAccessPoliciesEntity + * @param [options] The optional parameters + * @returns Promise + */ + updateScmAllowed(resourceGroupName: string, name: string, csmPublishingAccessPoliciesEntity: Models.CsmPublishingCredentialsPoliciesEntity, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param csmPublishingAccessPoliciesEntity + * @param callback The callback + */ + updateScmAllowed(resourceGroupName: string, name: string, csmPublishingAccessPoliciesEntity: Models.CsmPublishingCredentialsPoliciesEntity, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName Name of the resource group to which the resource belongs. + * @param name Name of the app. + * @param csmPublishingAccessPoliciesEntity + * @param options The optional parameters + * @param callback The callback + */ + updateScmAllowed(resourceGroupName: string, name: string, csmPublishingAccessPoliciesEntity: Models.CsmPublishingCredentialsPoliciesEntity, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateScmAllowed(resourceGroupName: string, name: string, csmPublishingAccessPoliciesEntity: Models.CsmPublishingCredentialsPoliciesEntity, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + name, + csmPublishingAccessPoliciesEntity, + options + }, + updateScmAllowedOperationSpec, + callback) as Promise; + } + /** * Description for List the configurations of an app * @summary List the configurations of an app @@ -16603,6 +16777,145 @@ const listBackupStatusSecretsOperationSpec: msRest.OperationSpec = { serializer }; +const getBasicPublishingCredentialsPoliciesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmPublishingCredentialsPoliciesCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getFtpAllowedOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/ftp", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmPublishingCredentialsPoliciesEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateFtpAllowedOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/ftp", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "csmPublishingAccessPoliciesEntity", + mapper: { + ...Mappers.CsmPublishingCredentialsPoliciesEntity, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CsmPublishingCredentialsPoliciesEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const getScmAllowedOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/scm", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.CsmPublishingCredentialsPoliciesEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + +const updateScmAllowedOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/scm", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.name, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "csmPublishingAccessPoliciesEntity", + mapper: { + ...Mappers.CsmPublishingCredentialsPoliciesEntity, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.CsmPublishingCredentialsPoliciesEntity + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + serializer +}; + const listConfigurationsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config",