diff --git a/sdk/appservice/arm-appservice/CHANGELOG.md b/sdk/appservice/arm-appservice/CHANGELOG.md index 8a7b3384ab65..3c64728bc3ff 100644 --- a/sdk/appservice/arm-appservice/CHANGELOG.md +++ b/sdk/appservice/arm-appservice/CHANGELOG.md @@ -1,15 +1,33 @@ # Release History + +## 15.0.0 (2023-08-28) + +**Features** -## 14.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation group GetUsagesInLocation + - Added Interface DaprConfig + - Added Interface GetUsagesInLocationListNextOptionalParams + - Added Interface GetUsagesInLocationListOptionalParams + - Added Interface OneDeployRequest + - Added Type Alias DaprConfigLogLevel + - Added Type Alias GetUsagesInLocationListNextResponse + - Added Type Alias GetUsagesInLocationListResponse + - Added Type Alias TlsCipherSuites + - Interface CheckNameAvailabilityOptionalParams has a new optional parameter environmentId + - Interface ResourceNameAvailabilityRequest has a new optional parameter environmentId + - Interface Site has a new optional parameter daprConfig + - Interface SiteConfig has a new optional parameter minTlsCipherSuite + - Interface SiteConfigResource has a new optional parameter minTlsCipherSuite + - Interface WebAppsCreateOneDeployOperationOptionalParams has a new optional parameter request + - Added Enum KnownDaprConfigLogLevel + - Added Enum KnownTlsCipherSuites + - Added Enum KnownWorkflowState -### Other Changes +**Breaking Changes** + - Class WebSiteManagementClient has a new signature + + ## 14.0.0 (2023-03-10) **Features** diff --git a/sdk/appservice/arm-appservice/_meta.json b/sdk/appservice/arm-appservice/_meta.json index 883f7870d67f..d17456d53abf 100644 --- a/sdk/appservice/arm-appservice/_meta.json +++ b/sdk/appservice/arm-appservice/_meta.json @@ -1,8 +1,8 @@ { - "commit": "4f4044394791773e6e7e82a9bd90d3935caaca1b", + "commit": "e651b37365076d1bb2d66d2b86a184b03a3f10e4", "readme": "specification/web/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\web\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.9 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/web/resource-manager/readme.md --use=@autorest/typescript@^6.0.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.9" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/appservice/arm-appservice/package.json b/sdk/appservice/arm-appservice/package.json index 12cbfacd75ab..cd55506b15c3 100644 --- a/sdk/appservice/arm-appservice/package.json +++ b/sdk/appservice/arm-appservice/package.json @@ -3,17 +3,17 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for WebSiteManagementClient.", - "version": "14.0.1", + "version": "15.0.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -48,8 +48,8 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -112,13 +112,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appservice/arm-appservice", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appservice?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appservice/arm-appservice" +} \ No newline at end of file diff --git a/sdk/appservice/arm-appservice/review/arm-appservice.api.md b/sdk/appservice/arm-appservice/review/arm-appservice.api.md index 80ceea40a3fb..2065ee3a1ba5 100644 --- a/sdk/appservice/arm-appservice/review/arm-appservice.api.md +++ b/sdk/appservice/arm-appservice/review/arm-appservice.api.md @@ -1885,6 +1885,7 @@ export type Channels = "Notification" | "Api" | "Email" | "Webhook" | "All"; // @public export interface CheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { + environmentId?: string; isFqdn?: boolean; } @@ -2449,6 +2450,20 @@ export interface DaprComponent { version?: string; } +// @public +export interface DaprConfig { + appId?: string; + appPort?: number; + enableApiLogging?: boolean; + enabled?: boolean; + httpMaxRequestSize?: number; + httpReadBufferSize?: number; + logLevel?: DaprConfigLogLevel; +} + +// @public +export type DaprConfigLogLevel = string; + // @public export interface DaprMetadata { name?: string; @@ -3634,6 +3649,25 @@ export interface GetSubscriptionDeploymentLocationsOptionalParams extends coreCl // @public export type GetSubscriptionDeploymentLocationsResponse = DeploymentLocations; +// @public +export interface GetUsagesInLocation { + list(location: string, quotaType: string, options?: GetUsagesInLocationListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GetUsagesInLocationListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GetUsagesInLocationListNextResponse = CsmUsageQuotaCollection; + +// @public +export interface GetUsagesInLocationListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GetUsagesInLocationListResponse = CsmUsageQuotaCollection; + // @public export interface GitHub { enabled?: boolean; @@ -4042,6 +4076,14 @@ export enum KnownCustomDomainStatus { Validating = "Validating" } +// @public +export enum KnownDaprConfigLogLevel { + Debug = "debug", + Error = "error", + Info = "info", + Warn = "warn" +} + // @public export enum KnownDatabaseType { LocalMySql = "LocalMySql", @@ -4261,6 +4303,27 @@ export enum KnownSupportedTlsVersions { One2 = "1.2" } +// @public +export enum KnownTlsCipherSuites { + TLSAES128GCMSHA256 = "TLS_AES_128_GCM_SHA256", + TLSAES256GCMSHA384 = "TLS_AES_256_GCM_SHA384", + TLSEcdheEcdsaWithAES128CBCSHA256 = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + TLSEcdheEcdsaWithAES128GCMSHA256 = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + TLSEcdheEcdsaWithAES256GCMSHA384 = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + TLSEcdheRSAWithAES128CBCSHA = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + TLSEcdheRSAWithAES128CBCSHA256 = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", + TLSEcdheRSAWithAES128GCMSHA256 = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + TLSEcdheRSAWithAES256CBCSHA = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + TLSEcdheRSAWithAES256CBCSHA384 = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", + TLSEcdheRSAWithAES256GCMSHA384 = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + TLSRSAWithAES128CBCSHA = "TLS_RSA_WITH_AES_128_CBC_SHA", + TLSRSAWithAES128CBCSHA256 = "TLS_RSA_WITH_AES_128_CBC_SHA256", + TLSRSAWithAES128GCMSHA256 = "TLS_RSA_WITH_AES_128_GCM_SHA256", + TLSRSAWithAES256CBCSHA = "TLS_RSA_WITH_AES_256_CBC_SHA", + TLSRSAWithAES256CBCSHA256 = "TLS_RSA_WITH_AES_256_CBC_SHA256", + TLSRSAWithAES256GCMSHA384 = "TLS_RSA_WITH_AES_256_GCM_SHA384" +} + // @public export enum KnownTriggerTypes { HttpTrigger = "HttpTrigger", @@ -4324,6 +4387,16 @@ export enum KnownWorkflowSkuName { Standard = "Standard" } +// @public +export enum KnownWorkflowState { + Completed = "Completed", + Deleted = "Deleted", + Disabled = "Disabled", + Enabled = "Enabled", + NotSpecified = "NotSpecified", + Suspended = "Suspended" +} + // @public export enum KnownWorkflowStatus { Aborted = "Aborted", @@ -4811,6 +4884,18 @@ export interface Nonce { // @public export type NotificationLevel = "Critical" | "Warning" | "Information" | "NonUrgentSuggestion"; +// @public +export interface OneDeployRequest extends ProxyOnlyResource { + async?: boolean; + clean?: boolean; + ignoreStack?: boolean; + packageUri?: string; + path?: string; + reset?: boolean; + restart?: boolean; + trackDeploymentProgress?: boolean; +} + // @public export interface OpenAuthenticationAccessPolicies { policies?: { @@ -5806,6 +5891,7 @@ export interface ResourceNameAvailability { // @public export interface ResourceNameAvailabilityRequest { + environmentId?: string; isFqdn?: boolean; name: string; type: CheckNameResourceTypes; @@ -5980,6 +6066,7 @@ export interface Site extends Resource { containerSize?: number; customDomainVerificationId?: string; dailyMemoryTimeQuota?: number; + daprConfig?: DaprConfig; readonly defaultHostName?: string; enabled?: boolean; readonly enabledHostNames?: string[]; @@ -6134,6 +6221,7 @@ export interface SiteConfig { managedServiceIdentityId?: number; metadata?: NameValuePair[]; minimumElasticInstanceCount?: number; + minTlsCipherSuite?: TlsCipherSuites; minTlsVersion?: SupportedTlsVersions; netFrameworkVersion?: string; nodeVersion?: string; @@ -6219,6 +6307,7 @@ export interface SiteConfigResource extends ProxyOnlyResource { managedServiceIdentityId?: number; metadata?: NameValuePair[]; minimumElasticInstanceCount?: number; + minTlsCipherSuite?: TlsCipherSuites; minTlsVersion?: SupportedTlsVersions; netFrameworkVersion?: string; nodeVersion?: string; @@ -7672,6 +7761,9 @@ export interface TldLegalAgreementCollection { value: TldLegalAgreement[]; } +// @public +export type TlsCipherSuites = string; + // @public export interface TokenStore { azureBlobStorage?: BlobStorageTokenStore; @@ -8653,10 +8745,11 @@ export type WebAppsCreateMSDeployOperationSlotResponse = MSDeployStatus; // @public export interface WebAppsCreateOneDeployOperationOptionalParams extends coreClient.OperationOptions { + request?: OneDeployRequest; } // @public -export type WebAppsCreateOneDeployOperationResponse = Record; +export type WebAppsCreateOneDeployOperationResponse = Deployment; // @public export interface WebAppsCreateOrUpdateConfigurationOptionalParams extends coreClient.OperationOptions { @@ -9564,7 +9657,7 @@ export interface WebAppsGetOneDeployStatusOptionalParams extends coreClient.Oper } // @public -export type WebAppsGetOneDeployStatusResponse = Record; +export type WebAppsGetOneDeployStatusResponse = Deployment; // @public export interface WebAppsGetOptionalParams extends coreClient.OperationOptions { @@ -11777,6 +11870,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: WebSiteManagementClientOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: WebSiteManagementClientOptionalParams); // (undocumented) apiVersion: string; // (undocumented) @@ -11808,6 +11902,8 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { getSourceControl(sourceControlType: string, options?: GetSourceControlOptionalParams): Promise; getSubscriptionDeploymentLocations(options?: GetSubscriptionDeploymentLocationsOptionalParams): Promise; // (undocumented) + getUsagesInLocation: GetUsagesInLocation; + // (undocumented) global: Global_2; // (undocumented) kubeEnvironments: KubeEnvironments; @@ -11828,7 +11924,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { // (undocumented) staticSites: StaticSites; // (undocumented) - subscriptionId: string; + subscriptionId?: string; // (undocumented) topLevelDomains: TopLevelDomains; updatePublishingUser(userDetails: User, options?: UpdatePublishingUserOptionalParams): Promise; @@ -12301,7 +12397,7 @@ export interface WorkflowsRegenerateAccessKeyOptionalParams extends coreClient.O } // @public -export type WorkflowState = "NotSpecified" | "Completed" | "Enabled" | "Disabled" | "Deleted" | "Suspended"; +export type WorkflowState = string; // @public export type WorkflowStatus = string; diff --git a/sdk/appservice/arm-appservice/src/models/index.ts b/sdk/appservice/arm-appservice/src/models/index.ts index adcd0f6702fd..9e5ef790ed0e 100644 --- a/sdk/appservice/arm-appservice/src/models/index.ts +++ b/sdk/appservice/arm-appservice/src/models/index.ts @@ -987,6 +987,8 @@ export interface SiteConfig { http20Enabled?: boolean; /** MinTlsVersion: configures the minimum version of TLS required for SSL requests */ minTlsVersion?: SupportedTlsVersions; + /** The minimum strength TLS cipher suite allowed for an application */ + minTlsCipherSuite?: TlsCipherSuites; /** ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site */ scmMinTlsVersion?: SupportedTlsVersions; /** State of FTP / FTPS service */ @@ -1314,6 +1316,24 @@ export interface AzureStorageInfoValue { readonly state?: AzureStorageState; } +/** App Dapr configuration. */ +export interface DaprConfig { + /** Boolean indicating if the Dapr side car is enabled */ + enabled?: boolean; + /** Dapr application identifier */ + appId?: string; + /** Tells Dapr which port your application is listening on */ + appPort?: number; + /** Dapr max size of http header read buffer in KB to handle when sending multi-KB headers. Default is 65KB. */ + httpReadBufferSize?: number; + /** Increasing max size of request body http servers parameter in MB to handle uploading of big files. Default is 4 MB. */ + httpMaxRequestSize?: number; + /** Sets the log level for the Dapr sidecar. Allowed values are debug, info, warn, error. Default is info. */ + logLevel?: DaprConfigLogLevel; + /** Enables API logging for the Dapr sidecar */ + enableApiLogging?: boolean; +} + /** Specification for an App Service Environment to use for this resource. */ export interface HostingEnvironmentProfile { /** Resource ID of the App Service Environment. */ @@ -2845,6 +2865,8 @@ export interface ResourceNameAvailabilityRequest { type: CheckNameResourceTypes; /** Is fully qualified domain name. */ isFqdn?: boolean; + /** Azure Resource Manager ID of the customer's selected Container Apps Environment on which to host the Function app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} */ + environmentId?: string; } /** Information regarding availability of a resource name. */ @@ -5274,6 +5296,8 @@ export interface Site extends Resource { vnetContentShareEnabled?: boolean; /** Configuration of the app. */ siteConfig?: SiteConfig; + /** Dapr configuration of the app. */ + daprConfig?: DaprConfig; /** * Azure Traffic Manager hostnames associated with the app. Read-only. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7779,6 +7803,8 @@ export interface SiteConfigResource extends ProxyOnlyResource { http20Enabled?: boolean; /** MinTlsVersion: configures the minimum version of TLS required for SSL requests */ minTlsVersion?: SupportedTlsVersions; + /** The minimum strength TLS cipher suite allowed for an application */ + minTlsCipherSuite?: TlsCipherSuites; /** ScmMinTlsVersion: configures the minimum version of TLS required for SSL requests for SCM site */ scmMinTlsVersion?: SupportedTlsVersions; /** State of FTP / FTPS service */ @@ -8220,6 +8246,26 @@ export interface MSDeployLog extends ProxyOnlyResource { readonly entries?: MSDeployLogEntry[]; } +/** OneDeploy settings defined by user */ +export interface OneDeployRequest extends ProxyOnlyResource { + /** The Uri where the source artifact can be pulled from */ + packageUri?: string; + /** Specifies whether the deployment should be performed asynchronously */ + async?: boolean; + /** The absolute path to deploy the artifact to */ + path?: string; + /** Specifies whether to restart the app following the deployment */ + restart?: boolean; + /** Specifies whether to clean the target deployment directory */ + clean?: boolean; + /** Disables any language-specific defaults */ + ignoreStack?: boolean; + /** The type of the artifact being deployed */ + trackDeploymentProgress?: boolean; + /** Resets Java apps to the default parking page if set to true with no type specified */ + reset?: boolean; +} + /** Function information. */ export interface FunctionEnvelope extends ProxyOnlyResource { /** Function App ID. */ @@ -9454,6 +9500,69 @@ export enum KnownSupportedTlsVersions { */ export type SupportedTlsVersions = string; +/** Known values of {@link TlsCipherSuites} that the service accepts. */ +export enum KnownTlsCipherSuites { + /** TLSAES256GCMSHA384 */ + TLSAES256GCMSHA384 = "TLS_AES_256_GCM_SHA384", + /** TLSAES128GCMSHA256 */ + TLSAES128GCMSHA256 = "TLS_AES_128_GCM_SHA256", + /** TLSEcdheEcdsaWithAES256GCMSHA384 */ + TLSEcdheEcdsaWithAES256GCMSHA384 = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", + /** TLSEcdheEcdsaWithAES128CBCSHA256 */ + TLSEcdheEcdsaWithAES128CBCSHA256 = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256", + /** TLSEcdheEcdsaWithAES128GCMSHA256 */ + TLSEcdheEcdsaWithAES128GCMSHA256 = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256", + /** TLSEcdheRSAWithAES256GCMSHA384 */ + TLSEcdheRSAWithAES256GCMSHA384 = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", + /** TLSEcdheRSAWithAES128GCMSHA256 */ + TLSEcdheRSAWithAES128GCMSHA256 = "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", + /** TLSEcdheRSAWithAES256CBCSHA384 */ + TLSEcdheRSAWithAES256CBCSHA384 = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384", + /** TLSEcdheRSAWithAES128CBCSHA256 */ + TLSEcdheRSAWithAES128CBCSHA256 = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", + /** TLSEcdheRSAWithAES256CBCSHA */ + TLSEcdheRSAWithAES256CBCSHA = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA", + /** TLSEcdheRSAWithAES128CBCSHA */ + TLSEcdheRSAWithAES128CBCSHA = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA", + /** TLSRSAWithAES256GCMSHA384 */ + TLSRSAWithAES256GCMSHA384 = "TLS_RSA_WITH_AES_256_GCM_SHA384", + /** TLSRSAWithAES128GCMSHA256 */ + TLSRSAWithAES128GCMSHA256 = "TLS_RSA_WITH_AES_128_GCM_SHA256", + /** TLSRSAWithAES256CBCSHA256 */ + TLSRSAWithAES256CBCSHA256 = "TLS_RSA_WITH_AES_256_CBC_SHA256", + /** TLSRSAWithAES128CBCSHA256 */ + TLSRSAWithAES128CBCSHA256 = "TLS_RSA_WITH_AES_128_CBC_SHA256", + /** TLSRSAWithAES256CBCSHA */ + TLSRSAWithAES256CBCSHA = "TLS_RSA_WITH_AES_256_CBC_SHA", + /** TLSRSAWithAES128CBCSHA */ + TLSRSAWithAES128CBCSHA = "TLS_RSA_WITH_AES_128_CBC_SHA" +} + +/** + * Defines values for TlsCipherSuites. \ + * {@link KnownTlsCipherSuites} can be used interchangeably with TlsCipherSuites, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TLS_AES_256_GCM_SHA384** \ + * **TLS_AES_128_GCM_SHA256** \ + * **TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384** \ + * **TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256** \ + * **TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256** \ + * **TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384** \ + * **TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256** \ + * **TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384** \ + * **TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256** \ + * **TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA** \ + * **TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA** \ + * **TLS_RSA_WITH_AES_256_GCM_SHA384** \ + * **TLS_RSA_WITH_AES_128_GCM_SHA256** \ + * **TLS_RSA_WITH_AES_256_CBC_SHA256** \ + * **TLS_RSA_WITH_AES_128_CBC_SHA256** \ + * **TLS_RSA_WITH_AES_256_CBC_SHA** \ + * **TLS_RSA_WITH_AES_128_CBC_SHA** + */ +export type TlsCipherSuites = string; + /** Known values of {@link FtpsState} that the service accepts. */ export enum KnownFtpsState { /** AllAllowed */ @@ -9475,6 +9584,30 @@ export enum KnownFtpsState { */ export type FtpsState = string; +/** Known values of {@link DaprConfigLogLevel} that the service accepts. */ +export enum KnownDaprConfigLogLevel { + /** Info */ + Info = "info", + /** Debug */ + Debug = "debug", + /** Warn */ + Warn = "warn", + /** Error */ + Error = "error" +} + +/** + * Defines values for DaprConfigLogLevel. \ + * {@link KnownDaprConfigLogLevel} can be used interchangeably with DaprConfigLogLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **info** \ + * **debug** \ + * **warn** \ + * **error** + */ +export type DaprConfigLogLevel = string; + /** Known values of {@link RouteType} that the service accepts. */ export enum KnownRouteType { /** Default */ @@ -10021,6 +10154,36 @@ export enum KnownPublishingProfileFormat { */ export type PublishingProfileFormat = string; +/** Known values of {@link WorkflowState} that the service accepts. */ +export enum KnownWorkflowState { + /** NotSpecified */ + NotSpecified = "NotSpecified", + /** Completed */ + Completed = "Completed", + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** Deleted */ + Deleted = "Deleted", + /** Suspended */ + Suspended = "Suspended" +} + +/** + * Defines values for WorkflowState. \ + * {@link KnownWorkflowState} can be used interchangeably with WorkflowState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **NotSpecified** \ + * **Completed** \ + * **Enabled** \ + * **Disabled** \ + * **Deleted** \ + * **Suspended** + */ +export type WorkflowState = string; + /** Known values of {@link KeyType} that the service accepts. */ export enum KnownKeyType { /** NotSpecified */ @@ -10743,14 +10906,6 @@ export type PublicCertificateLocation = export type SiteExtensionType = "Gallery" | "WebRoot"; /** Defines values for TriggeredWebJobStatus. */ export type TriggeredWebJobStatus = "Success" | "Failed" | "Error"; -/** Defines values for WorkflowState. */ -export type WorkflowState = - | "NotSpecified" - | "Completed" - | "Enabled" - | "Disabled" - | "Deleted" - | "Suspended"; /** Defines values for WorkflowHealthState. */ export type WorkflowHealthState = | "NotSpecified" @@ -12855,6 +13010,8 @@ export interface CheckNameAvailabilityOptionalParams extends coreClient.OperationOptions { /** Is fully qualified domain name. */ isFqdn?: boolean; + /** Azure Resource Manager ID of the customer's selected Container Apps Environment on which to host the Function app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} */ + environmentId?: string; } /** Contains response data for the checkNameAvailability operation. */ @@ -12975,6 +13132,20 @@ export interface ListPremierAddOnOffersNextOptionalParams /** Contains response data for the listPremierAddOnOffersNext operation. */ export type ListPremierAddOnOffersNextResponse = PremierAddOnOfferCollection; +/** Optional parameters. */ +export interface GetUsagesInLocationListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type GetUsagesInLocationListResponse = CsmUsageQuotaCollection; + +/** Optional parameters. */ +export interface GetUsagesInLocationListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GetUsagesInLocationListNextResponse = CsmUsageQuotaCollection; + /** Optional parameters. */ export interface StaticSitesPreviewWorkflowOptionalParams extends coreClient.OperationOptions {} @@ -14235,14 +14406,17 @@ export interface WebAppsGetOneDeployStatusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getOneDeployStatus operation. */ -export type WebAppsGetOneDeployStatusResponse = Record; +export type WebAppsGetOneDeployStatusResponse = Deployment; /** Optional parameters. */ export interface WebAppsCreateOneDeployOperationOptionalParams - extends coreClient.OperationOptions {} + extends coreClient.OperationOptions { + /** Information on OneDeploy request */ + request?: OneDeployRequest; +} /** Contains response data for the createOneDeployOperation operation. */ -export type WebAppsCreateOneDeployOperationResponse = Record; +export type WebAppsCreateOneDeployOperationResponse = Deployment; /** Optional parameters. */ export interface WebAppsListFunctionsOptionalParams diff --git a/sdk/appservice/arm-appservice/src/models/mappers.ts b/sdk/appservice/arm-appservice/src/models/mappers.ts index 265a062d9996..53b2a5544082 100644 --- a/sdk/appservice/arm-appservice/src/models/mappers.ts +++ b/sdk/appservice/arm-appservice/src/models/mappers.ts @@ -3096,6 +3096,13 @@ export const SiteConfig: coreClient.CompositeMapper = { name: "String" } }, + minTlsCipherSuite: { + serializedName: "minTlsCipherSuite", + xmlName: "minTlsCipherSuite", + type: { + name: "String" + } + }, scmMinTlsVersion: { serializedName: "scmMinTlsVersion", xmlName: "scmMinTlsVersion", @@ -4021,6 +4028,66 @@ export const AzureStorageInfoValue: coreClient.CompositeMapper = { } }; +export const DaprConfig: coreClient.CompositeMapper = { + serializedName: "DaprConfig", + type: { + name: "Composite", + className: "DaprConfig", + modelProperties: { + enabled: { + defaultValue: false, + serializedName: "enabled", + xmlName: "enabled", + type: { + name: "Boolean" + } + }, + appId: { + serializedName: "appId", + xmlName: "appId", + type: { + name: "String" + } + }, + appPort: { + serializedName: "appPort", + xmlName: "appPort", + type: { + name: "Number" + } + }, + httpReadBufferSize: { + serializedName: "httpReadBufferSize", + xmlName: "httpReadBufferSize", + type: { + name: "Number" + } + }, + httpMaxRequestSize: { + serializedName: "httpMaxRequestSize", + xmlName: "httpMaxRequestSize", + type: { + name: "Number" + } + }, + logLevel: { + serializedName: "logLevel", + xmlName: "logLevel", + type: { + name: "String" + } + }, + enableApiLogging: { + serializedName: "enableApiLogging", + xmlName: "enableApiLogging", + type: { + name: "Boolean" + } + } + } + } +}; + export const HostingEnvironmentProfile: coreClient.CompositeMapper = { serializedName: "HostingEnvironmentProfile", type: { @@ -8372,6 +8439,13 @@ export const ResourceNameAvailabilityRequest: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + environmentId: { + serializedName: "environmentId", + xmlName: "environmentId", + type: { + name: "String" + } } } } @@ -13152,15 +13226,7 @@ export const WorkflowEnvelopeProperties: coreClient.CompositeMapper = { serializedName: "flowState", xmlName: "flowState", type: { - name: "Enum", - allowedValues: [ - "NotSpecified", - "Completed", - "Enabled", - "Disabled", - "Deleted", - "Suspended" - ] + name: "String" } }, health: { @@ -14863,15 +14929,7 @@ export const WorkflowFilter: coreClient.CompositeMapper = { serializedName: "state", xmlName: "state", type: { - name: "Enum", - allowedValues: [ - "NotSpecified", - "Completed", - "Enabled", - "Disabled", - "Deleted", - "Suspended" - ] + name: "String" } } } @@ -14953,15 +15011,7 @@ export const WorkflowTriggerFilter: coreClient.CompositeMapper = { serializedName: "state", xmlName: "state", type: { - name: "Enum", - allowedValues: [ - "NotSpecified", - "Completed", - "Enabled", - "Disabled", - "Deleted", - "Suspended" - ] + name: "String" } } } @@ -15804,6 +15854,14 @@ export const Site: coreClient.CompositeMapper = { className: "SiteConfig" } }, + daprConfig: { + serializedName: "properties.daprConfig", + xmlName: "properties.daprConfig", + type: { + name: "Composite", + className: "DaprConfig" + } + }, trafficManagerHostNames: { serializedName: "properties.trafficManagerHostNames", readOnly: true, @@ -22545,6 +22603,13 @@ export const SiteConfigResource: coreClient.CompositeMapper = { name: "String" } }, + minTlsCipherSuite: { + serializedName: "properties.minTlsCipherSuite", + xmlName: "properties.minTlsCipherSuite", + type: { + name: "String" + } + }, scmMinTlsVersion: { serializedName: "properties.scmMinTlsVersion", xmlName: "properties.scmMinTlsVersion", @@ -23659,6 +23724,73 @@ export const MSDeployLog: coreClient.CompositeMapper = { } }; +export const OneDeployRequest: coreClient.CompositeMapper = { + serializedName: "OneDeployRequest", + type: { + name: "Composite", + className: "OneDeployRequest", + modelProperties: { + ...ProxyOnlyResource.type.modelProperties, + packageUri: { + serializedName: "packageUri", + xmlName: "packageUri", + type: { + name: "String" + } + }, + async: { + serializedName: "async", + xmlName: "async", + type: { + name: "Boolean" + } + }, + path: { + serializedName: "path", + xmlName: "path", + type: { + name: "String" + } + }, + restart: { + serializedName: "restart", + xmlName: "restart", + type: { + name: "Boolean" + } + }, + clean: { + serializedName: "clean", + xmlName: "clean", + type: { + name: "Boolean" + } + }, + ignoreStack: { + serializedName: "ignoreStack", + xmlName: "ignoreStack", + type: { + name: "Boolean" + } + }, + trackDeploymentProgress: { + serializedName: "trackDeploymentProgress", + xmlName: "trackDeploymentProgress", + type: { + name: "Boolean" + } + }, + reset: { + serializedName: "reset", + xmlName: "reset", + type: { + name: "Boolean" + } + } + } + } +}; + export const FunctionEnvelope: coreClient.CompositeMapper = { serializedName: "FunctionEnvelope", type: { @@ -25683,15 +25815,7 @@ export const WorkflowTrigger: coreClient.CompositeMapper = { readOnly: true, xmlName: "properties.state", type: { - name: "Enum", - allowedValues: [ - "NotSpecified", - "Completed", - "Enabled", - "Disabled", - "Deleted", - "Suspended" - ] + name: "String" } }, status: { @@ -26216,15 +26340,7 @@ export const Workflow: coreClient.CompositeMapper = { serializedName: "properties.state", xmlName: "properties.state", type: { - name: "Enum", - allowedValues: [ - "NotSpecified", - "Completed", - "Enabled", - "Disabled", - "Deleted", - "Suspended" - ] + name: "String" } }, version: { @@ -26345,15 +26461,7 @@ export const WorkflowVersion: coreClient.CompositeMapper = { serializedName: "properties.state", xmlName: "properties.state", type: { - name: "Enum", - allowedValues: [ - "NotSpecified", - "Completed", - "Enabled", - "Disabled", - "Deleted", - "Suspended" - ] + name: "String" } }, version: { diff --git a/sdk/appservice/arm-appservice/src/models/parameters.ts b/sdk/appservice/arm-appservice/src/models/parameters.ts index 8382315cbc91..fe9d5d56c47e 100644 --- a/sdk/appservice/arm-appservice/src/models/parameters.ts +++ b/sdk/appservice/arm-appservice/src/models/parameters.ts @@ -78,6 +78,7 @@ import { Deployment as DeploymentMapper, Identifier as IdentifierMapper, MSDeploy as MSDeployMapper, + OneDeployRequest as OneDeployRequestMapper, FunctionEnvelope as FunctionEnvelopeMapper, KeyInfo as KeyInfoMapper, HostNameBinding as HostNameBindingMapper, @@ -140,7 +141,7 @@ export const subscriptionId: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-09-01", + defaultValue: "2023-01-01", isConstant: true, serializedName: "api-version", type: { @@ -904,6 +905,11 @@ export const isFqdn: OperationParameter = { mapper: ResourceNameAvailabilityRequestMapper }; +export const environmentId: OperationParameter = { + parameterPath: ["options", "environmentId"], + mapper: ResourceNameAvailabilityRequestMapper +}; + export const hostname: OperationQueryParameter = { parameterPath: ["options", "hostname"], mapper: { @@ -974,6 +980,33 @@ export const validateRequest: OperationParameter = { mapper: ValidateRequestMapper }; +export const location1: OperationURLParameter = { + parameterPath: "location", + mapper: { + constraints: { + MinLength: 1 + }, + serializedName: "location", + required: true, + xmlName: "location", + type: { + name: "String" + } + } +}; + +export const quotaType: OperationURLParameter = { + parameterPath: "quotaType", + mapper: { + serializedName: "quotaType", + required: true, + xmlName: "quotaType", + type: { + name: "String" + } + } +}; + export const staticSitesWorkflowPreviewRequest: OperationParameter = { parameterPath: "staticSitesWorkflowPreviewRequest", mapper: StaticSitesWorkflowPreviewRequestMapper @@ -1422,6 +1455,11 @@ export const mSDeploy: OperationParameter = { mapper: MSDeployMapper }; +export const request3: OperationParameter = { + parameterPath: ["options", "request"], + mapper: OneDeployRequestMapper +}; + export const functionName: OperationURLParameter = { parameterPath: "functionName", mapper: { diff --git a/sdk/appservice/arm-appservice/src/operations/getUsagesInLocation.ts b/sdk/appservice/arm-appservice/src/operations/getUsagesInLocation.ts new file mode 100644 index 000000000000..2c1320df56d2 --- /dev/null +++ b/sdk/appservice/arm-appservice/src/operations/getUsagesInLocation.ts @@ -0,0 +1,191 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GetUsagesInLocation } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { WebSiteManagementClient } from "../webSiteManagementClient"; +import { + CsmUsageQuota, + GetUsagesInLocationListNextOptionalParams, + GetUsagesInLocationListOptionalParams, + GetUsagesInLocationListResponse, + GetUsagesInLocationListNextResponse +} from "../models"; + +/// +/** Class containing GetUsagesInLocation operations. */ +export class GetUsagesInLocationImpl implements GetUsagesInLocation { + private readonly client: WebSiteManagementClient; + + /** + * Initialize a new instance of the class GetUsagesInLocation class. + * @param client Reference to the service client + */ + constructor(client: WebSiteManagementClient) { + this.client = client; + } + + /** + * List usages in cores for all skus used by a subscription in a given location, for a specific quota + * type. + * @param location The name of the Azure region. + * @param quotaType The type of quota to get usages for + * @param options The options parameters. + */ + public list( + location: string, + quotaType: string, + options?: GetUsagesInLocationListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(location, quotaType, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(location, quotaType, options, settings); + } + }; + } + + private async *listPagingPage( + location: string, + quotaType: string, + options?: GetUsagesInLocationListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GetUsagesInLocationListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(location, quotaType, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + location, + quotaType, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + location: string, + quotaType: string, + options?: GetUsagesInLocationListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + location, + quotaType, + options + )) { + yield* page; + } + } + + /** + * List usages in cores for all skus used by a subscription in a given location, for a specific quota + * type. + * @param location The name of the Azure region. + * @param quotaType The type of quota to get usages for + * @param options The options parameters. + */ + private _list( + location: string, + quotaType: string, + options?: GetUsagesInLocationListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, quotaType, options }, + listOperationSpec + ); + } + + /** + * ListNext + * @param location The name of the Azure region. + * @param quotaType The type of quota to get usages for + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + location: string, + quotaType: string, + nextLink: string, + options?: GetUsagesInLocationListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { location, quotaType, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Web/locations/{location}/quotaType/{quotaType}/usages", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.location1, + Parameters.quotaType + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CsmUsageQuotaCollection + }, + default: { + bodyMapper: Mappers.DefaultErrorResponse + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.location1, + Parameters.quotaType + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/appservice/arm-appservice/src/operations/index.ts b/sdk/appservice/arm-appservice/src/operations/index.ts index 421040be3cbf..87d60f834b34 100644 --- a/sdk/appservice/arm-appservice/src/operations/index.ts +++ b/sdk/appservice/arm-appservice/src/operations/index.ts @@ -24,6 +24,7 @@ export * from "./kubeEnvironments"; export * from "./provider"; export * from "./recommendations"; export * from "./resourceHealthMetadataOperations"; +export * from "./getUsagesInLocation"; export * from "./staticSites"; export * from "./webApps"; export * from "./workflows"; diff --git a/sdk/appservice/arm-appservice/src/operations/webApps.ts b/sdk/appservice/arm-appservice/src/operations/webApps.ts index 4258f1865721..84d0f5a1fbbc 100644 --- a/sdk/appservice/arm-appservice/src/operations/webApps.ts +++ b/sdk/appservice/arm-appservice/src/operations/webApps.ts @@ -21319,9 +21319,7 @@ const getOneDeployStatusOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.Deployment }, default: { bodyMapper: Mappers.DefaultErrorResponse @@ -21343,14 +21341,13 @@ const createOneDeployOperationOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + bodyMapper: Mappers.Deployment }, default: { bodyMapper: Mappers.DefaultErrorResponse } }, + requestBody: Parameters.request3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -21358,7 +21355,8 @@ const createOneDeployOperationOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.name ], - headerParameters: [Parameters.accept], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", serializer }; const listFunctionsOperationSpec: coreClient.OperationSpec = { diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/getUsagesInLocation.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/getUsagesInLocation.ts new file mode 100644 index 000000000000..d6fc059e54f5 --- /dev/null +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/getUsagesInLocation.ts @@ -0,0 +1,30 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CsmUsageQuota, + GetUsagesInLocationListOptionalParams +} from "../models"; + +/// +/** Interface representing a GetUsagesInLocation. */ +export interface GetUsagesInLocation { + /** + * List usages in cores for all skus used by a subscription in a given location, for a specific quota + * type. + * @param location The name of the Azure region. + * @param quotaType The type of quota to get usages for + * @param options The options parameters. + */ + list( + location: string, + quotaType: string, + options?: GetUsagesInLocationListOptionalParams + ): PagedAsyncIterableIterator; +} diff --git a/sdk/appservice/arm-appservice/src/operationsInterfaces/index.ts b/sdk/appservice/arm-appservice/src/operationsInterfaces/index.ts index 421040be3cbf..87d60f834b34 100644 --- a/sdk/appservice/arm-appservice/src/operationsInterfaces/index.ts +++ b/sdk/appservice/arm-appservice/src/operationsInterfaces/index.ts @@ -24,6 +24,7 @@ export * from "./kubeEnvironments"; export * from "./provider"; export * from "./recommendations"; export * from "./resourceHealthMetadataOperations"; +export * from "./getUsagesInLocation"; export * from "./staticSites"; export * from "./webApps"; export * from "./workflows"; diff --git a/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts b/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts index 4bf3c98eb899..edb3b0fa770d 100644 --- a/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts +++ b/sdk/appservice/arm-appservice/src/webSiteManagementClient.ts @@ -35,6 +35,7 @@ import { ProviderImpl, RecommendationsImpl, ResourceHealthMetadataOperationsImpl, + GetUsagesInLocationImpl, StaticSitesImpl, WebAppsImpl, WorkflowsImpl, @@ -66,6 +67,7 @@ import { Provider, Recommendations, ResourceHealthMetadataOperations, + GetUsagesInLocation, StaticSites, WebApps, Workflows, @@ -143,7 +145,7 @@ import { /// export class WebSiteManagementClient extends coreClient.ServiceClient { $host: string; - subscriptionId: string; + subscriptionId?: string; apiVersion: string; /** @@ -157,12 +159,26 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { credentials: coreAuth.TokenCredential, subscriptionId: string, options?: WebSiteManagementClientOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: WebSiteManagementClientOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: WebSiteManagementClientOptionalParams | string, + options?: WebSiteManagementClientOptionalParams ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -174,7 +190,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-appservice/14.0.1`; + const packageDetails = `azsdk-js-arm-appservice/15.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -227,7 +243,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-09-01"; + this.apiVersion = options.apiVersion || "2023-01-01"; this.appServiceCertificateOrders = new AppServiceCertificateOrdersImpl( this ); @@ -254,6 +270,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { this.resourceHealthMetadataOperations = new ResourceHealthMetadataOperationsImpl( this ); + this.getUsagesInLocation = new GetUsagesInLocationImpl(this); this.staticSites = new StaticSitesImpl(this); this.webApps = new WebAppsImpl(this); this.workflows = new WorkflowsImpl(this); @@ -1007,6 +1024,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient { provider: Provider; recommendations: Recommendations; resourceHealthMetadataOperations: ResourceHealthMetadataOperations; + getUsagesInLocation: GetUsagesInLocation; staticSites: StaticSites; webApps: WebApps; workflows: Workflows; @@ -1142,7 +1160,8 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { parameterPath: { name: ["name"], typeParam: ["typeParam"], - isFqdn: ["options", "isFqdn"] + isFqdn: ["options", "isFqdn"], + environmentId: ["options", "environmentId"] }, mapper: { ...Mappers.ResourceNameAvailabilityRequest, required: true } }, diff --git a/sdk/appservice/arm-appservice/test/sampleTest.ts b/sdk/appservice/arm-appservice/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/appservice/arm-appservice/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/appservice/arm-appservice/tsconfig.json b/sdk/appservice/arm-appservice/tsconfig.json index c0481691633c..3e6ae96443f3 100644 --- a/sdk/appservice/arm-appservice/tsconfig.json +++ b/sdk/appservice/arm-appservice/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-appservice": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"