Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-appservice] add sshEnabled property to swagger #13149

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 30 additions & 9 deletions sdk/appservice/arm-appservice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
# Release History

## 16.0.1 (Unreleased)

## 16.1.0 (2025-02-28)
### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation group SiteCertificates
- Added Interface ErrorPage
- Added Interface SiteCertificatesCreateOrUpdateOptionalParams
- Added Interface SiteCertificatesCreateOrUpdateSlotOptionalParams
- Added Interface SiteCertificatesDeleteOptionalParams
- Added Interface SiteCertificatesDeleteSlotOptionalParams
- Added Interface SiteCertificatesGetOptionalParams
- Added Interface SiteCertificatesGetSlotOptionalParams
- Added Interface SiteCertificatesListNextOptionalParams
- Added Interface SiteCertificatesListOptionalParams
- Added Interface SiteCertificatesListSlotNextOptionalParams
- Added Interface SiteCertificatesListSlotOptionalParams
- Added Interface SiteCertificatesUpdateOptionalParams
- Added Interface SiteCertificatesUpdateSlotOptionalParams
- Added Type Alias SiteCertificatesCreateOrUpdateResponse
- Added Type Alias SiteCertificatesCreateOrUpdateSlotResponse
- Added Type Alias SiteCertificatesGetResponse
- Added Type Alias SiteCertificatesGetSlotResponse
- Added Type Alias SiteCertificatesListNextResponse
- Added Type Alias SiteCertificatesListResponse
- Added Type Alias SiteCertificatesListSlotNextResponse
- Added Type Alias SiteCertificatesListSlotResponse
- Added Type Alias SiteCertificatesUpdateResponse
- Added Type Alias SiteCertificatesUpdateSlotResponse
- Interface Site has a new optional parameter sshEnabled


## 16.0.0 (2025-02-12)

### Features Added
Expand Down
2 changes: 1 addition & 1 deletion sdk/appservice/arm-appservice/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
9 changes: 3 additions & 6 deletions sdk/appservice/arm-appservice/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ You will also need to **register a new AAD application and grant access to Azure

For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).


Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.

```ts snippet:ReadmeSampleCreateClient_Node
Expand All @@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { WebSiteManagementClient } from "@azure/arm-appservice";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
clientId: "<YOUR_CLIENT_ID>"
});
const client = new WebSiteManagementClient(credential, subscriptionId);
```

### JavaScript Bundle

To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts
Expand Down Expand Up @@ -108,7 +105,7 @@ If you'd like to contribute to this library, please read the [contributing guide

- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fappservice%2Farm-appservice%2FREADME.png)

[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
Expand Down
10 changes: 5 additions & 5 deletions sdk/appservice/arm-appservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "20efe6fd4db8a494eab1852a8541fbabe5de569c",
"commit": "92be5f9403660245c5088f923d62e7f0bb673661",
"readme": "specification/web/resource-manager/readme.md",
"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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\web\\resource-manager\\readme.md --use=@autorest/[email protected].34 --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.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].19",
"use": "@autorest/[email protected].34"
}
"release_tool": "@azure-tools/[email protected].21",
"use": "@autorest/typescript@^6.0.12"
}
6 changes: 3 additions & 3 deletions sdk/appservice/arm-appservice/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "dist/arm-appservice.d.ts"
"publicTrimmedFilePath": "./types/arm-appservice.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
28 changes: 11 additions & 17 deletions sdk/appservice/arm-appservice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for WebSiteManagementClient.",
"version": "16.0.1",
"version": "16.1.0",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -21,12 +21,11 @@
"azure",
"typescript",
"browser",
"isomorphic",
"cloud"
"isomorphic"
],
"license": "MIT",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.js",
"module": "./dist-esm/src/index.js",
"types": "./dist/commonjs/index.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^2.0.0",
Expand All @@ -36,14 +35,17 @@
"@azure/identity": "^4.7.0",
"@azure/logger": "^1.1.4",
"@types/node": "^18.0.0",
"@vitest/browser": "^3.0.5",
"@vitest/coverage-istanbul": "^3.0.5",
"@vitest/browser": "^3.0.6",
"@vitest/coverage-istanbul": "^3.0.6",
"dotenv": "^16.0.0",
"playwright": "^1.50.1",
"typescript": "~5.6.2",
"vitest": "^3.0.5"
"vitest": "^3.0.6"
},
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"repository": "github:Azure/azure-sdk-for-js",
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
Expand Down Expand Up @@ -91,14 +93,6 @@
},
"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://learn.microsoft.com/javascript/api/@azure/arm-appservice?view=azure-node-preview"
},
"type": "module",
"tshy": {
"project": "./tsconfig.src.json",
Expand Down Expand Up @@ -139,4 +133,4 @@
}
}
}
}
}
103 changes: 103 additions & 0 deletions sdk/appservice/arm-appservice/review/arm-appservice.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3299,6 +3299,14 @@ export interface ErrorInfo {
code: string;
}

// @public
export interface ErrorPage {
alwaysUse?: boolean;
content?: string;
contentType?: string;
statusCode?: number;
}

// @public
export interface ErrorProperties {
code?: string;
Expand Down Expand Up @@ -6005,6 +6013,7 @@ export interface Site extends Resource {
siteConfig?: SiteConfig;
readonly sku?: string;
readonly slotSwapStatus?: SlotSwapStatus;
sshEnabled?: boolean;
readonly state?: string;
storageAccountRequired?: boolean;
readonly suspendedTill?: Date;
Expand Down Expand Up @@ -6073,6 +6082,98 @@ export interface SiteAuthSettingsV2 extends ProxyOnlyResource {
// @public
export type SiteAvailabilityState = "Normal" | "Limited" | "DisasterRecoveryMode";

// @public
export interface SiteCertificates {
createOrUpdate(resourceGroupName: string, name: string, certificateName: string, certificateEnvelope: Certificate, options?: SiteCertificatesCreateOrUpdateOptionalParams): Promise<SiteCertificatesCreateOrUpdateResponse>;
createOrUpdateSlot(resourceGroupName: string, name: string, slot: string, certificateName: string, certificateEnvelope: Certificate, options?: SiteCertificatesCreateOrUpdateSlotOptionalParams): Promise<SiteCertificatesCreateOrUpdateSlotResponse>;
delete(resourceGroupName: string, name: string, certificateName: string, options?: SiteCertificatesDeleteOptionalParams): Promise<void>;
deleteSlot(resourceGroupName: string, name: string, slot: string, certificateName: string, options?: SiteCertificatesDeleteSlotOptionalParams): Promise<void>;
get(resourceGroupName: string, name: string, certificateName: string, options?: SiteCertificatesGetOptionalParams): Promise<SiteCertificatesGetResponse>;
getSlot(resourceGroupName: string, name: string, slot: string, certificateName: string, options?: SiteCertificatesGetSlotOptionalParams): Promise<SiteCertificatesGetSlotResponse>;
list(resourceGroupName: string, name: string, options?: SiteCertificatesListOptionalParams): PagedAsyncIterableIterator<Certificate>;
listSlot(resourceGroupName: string, name: string, slot: string, options?: SiteCertificatesListSlotOptionalParams): PagedAsyncIterableIterator<Certificate>;
update(resourceGroupName: string, name: string, certificateName: string, certificateEnvelope: CertificatePatchResource, options?: SiteCertificatesUpdateOptionalParams): Promise<SiteCertificatesUpdateResponse>;
updateSlot(resourceGroupName: string, name: string, slot: string, certificateName: string, certificateEnvelope: CertificatePatchResource, options?: SiteCertificatesUpdateSlotOptionalParams): Promise<SiteCertificatesUpdateSlotResponse>;
}

// @public
export interface SiteCertificatesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesCreateOrUpdateResponse = Certificate;

// @public
export interface SiteCertificatesCreateOrUpdateSlotOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesCreateOrUpdateSlotResponse = Certificate;

// @public
export interface SiteCertificatesDeleteOptionalParams extends coreClient.OperationOptions {
}

// @public
export interface SiteCertificatesDeleteSlotOptionalParams extends coreClient.OperationOptions {
}

// @public
export interface SiteCertificatesGetOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesGetResponse = Certificate;

// @public
export interface SiteCertificatesGetSlotOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesGetSlotResponse = Certificate;

// @public
export interface SiteCertificatesListNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesListNextResponse = CertificateCollection;

// @public
export interface SiteCertificatesListOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesListResponse = CertificateCollection;

// @public
export interface SiteCertificatesListSlotNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesListSlotNextResponse = CertificateCollection;

// @public
export interface SiteCertificatesListSlotOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesListSlotResponse = CertificateCollection;

// @public
export interface SiteCertificatesUpdateOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesUpdateResponse = Certificate;

// @public
export interface SiteCertificatesUpdateSlotOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SiteCertificatesUpdateSlotResponse = Certificate;

// @public
export interface SiteCloneability {
blockingCharacteristics?: SiteCloneabilityCriterion[];
Expand Down Expand Up @@ -11944,6 +12045,8 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
// (undocumented)
resourceHealthMetadataOperations: ResourceHealthMetadataOperations;
// (undocumented)
siteCertificates: SiteCertificates;
// (undocumented)
staticSites: StaticSites;
// (undocumented)
subscriptionId?: string;
Expand Down
4 changes: 4 additions & 0 deletions sdk/appservice/arm-appservice/src/lroImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { AbortSignalLike } from "@azure/abort-controller";
import { LongRunningOperation, LroResponse } from "@azure/core-lro";

Expand Down
Loading