Skip to content

Commit

Permalink
CodeGen from PR 29649 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 863a07a81613061992b73234f2c43e9e170af0a5 into 596cda7c1782ae4a8f44e5293a8a9f15a00de5d5
  • Loading branch information
SDKAuto committed Jul 8, 2024
1 parent 0671672 commit bc1e5b4
Show file tree
Hide file tree
Showing 13 changed files with 572 additions and 458 deletions.
823 changes: 427 additions & 396 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

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

## 15.1.0 (2024-07-08)

**Features**

## 15.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Type Alias AutoGeneratedDomainNameLabelScope
- Interface Site has a new optional parameter autoGeneratedDomainNameLabelScope
- Interface Site has a new optional parameter sku
- Interface WebSiteInstanceStatus has a new optional parameter physicalZone


## 15.0.0 (2024-06-11)

### Features Added
Expand Down
8 changes: 4 additions & 4 deletions sdk/appservice/arm-appservice/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "e9f47ec88eb06646c53f2a561f3b27434ac5ac57",
"commit": "3053bb70961b37c113991a2fadad96e4403d3d10",
"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/typescript@6.0.23 --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/js-sdk-release-tools@2.7.9",
"use": "@autorest/typescript@6.0.23"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.10",
"use": "@autorest/typescript@^6.0.12"
}
16 changes: 4 additions & 12 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": "15.0.1",
"version": "15.1.0",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -30,7 +30,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^3.0.1",
"typescript": "~5.5.3",
"typescript": "~5.4.5",
"uglify-js": "^3.4.9",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
Expand Down Expand Up @@ -106,13 +106,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"
}
10 changes: 9 additions & 1 deletion sdk/appservice/arm-appservice/review/arm-appservice.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

```ts

/// <reference types="node" />

import * as coreAuth from '@azure/core-auth';
import * as coreClient from '@azure/core-client';
import { OperationState } from '@azure/core-lro';
Expand Down Expand Up @@ -1471,6 +1473,9 @@ export interface AuthPlatform {
// @public
export type AuthType = "Anonymous" | "UserCredentials" | "SystemIdentity" | "UserAssigned";

// @public
export type AutoGeneratedDomainNameLabelScope = "TenantReuse" | "SubscriptionReuse" | "ResourceGroupReuse" | "NoReuse";

// @public
export interface AutoHealActions {
actionType?: AutoHealActionType;
Expand Down Expand Up @@ -6189,6 +6194,7 @@ export interface ServiceSpecification {

// @public
export interface Site extends Resource {
autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope;
readonly availabilityState?: SiteAvailabilityState;
clientAffinityEnabled?: boolean;
clientCertEnabled?: boolean;
Expand Down Expand Up @@ -6230,6 +6236,7 @@ export interface Site extends Resource {
scmSiteAlsoStopped?: boolean;
serverFarmId?: string;
siteConfig?: SiteConfig;
readonly sku?: string;
readonly slotSwapStatus?: SlotSwapStatus;
readonly state?: string;
storageAccountRequired?: boolean;
Expand Down Expand Up @@ -6569,7 +6576,7 @@ export interface SiteLimits {
}

// @public
export type SiteLoadBalancing = "WeightedRoundRobin" | "LeastRequests" | "LeastResponseTime" | "WeightedTotalTraffic" | "RequestHash" | "PerSiteRoundRobin";
export type SiteLoadBalancing = "WeightedRoundRobin" | "LeastRequests" | "LeastResponseTime" | "WeightedTotalTraffic" | "RequestHash" | "PerSiteRoundRobin" | "LeastRequestsWithTieBreaker";

// @public
export interface SiteLogsConfig extends ProxyOnlyResource {
Expand Down Expand Up @@ -12109,6 +12116,7 @@ export interface WebSiteInstanceStatus extends ProxyOnlyResource {
};
detectorUrl?: string;
healthCheckUrl?: string;
physicalZone?: string;
// (undocumented)
state?: SiteRuntimeState;
statusUrl?: string;
Expand Down
52 changes: 34 additions & 18 deletions sdk/appservice/arm-appservice/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface Resource {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/** Kind of resource. */
/** Kind of resource. If the resource is an app, you can refer to https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference for details supported values for kind. */
kind?: string;
/** Resource Location. */
location: string;
Expand Down Expand Up @@ -5551,13 +5551,20 @@ export interface Site extends Resource {
storageAccountRequired?: boolean;
/** Identity to use for Key Vault Reference authentication. */
keyVaultReferenceIdentity?: string;
/** Specifies the DNL scope of the default hostname */
autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope;
/**
* Azure Resource Manager ID of the Virtual network and subnet to be joined by Regional VNET Integration.
* This must be of the form /subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}
*/
virtualNetworkSubnetId?: string;
/** Azure Resource Manager ID of the customer's selected Managed Environment on which to host this app. This must be of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName} */
managedEnvironmentId?: string;
/**
* Current SKU of application based on associated App Service Plan. Some valid SKU values are Free, Shared, Basic, Dynamic, FlexConsumption, Standard, Premium, PremiumV2, PremiumV3, Isolated, IsolatedV2
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly sku?: string;
}

/** App Service plan. */
Expand Down Expand Up @@ -8501,6 +8508,8 @@ export interface WebSiteInstanceStatus extends ProxyOnlyResource {
healthCheckUrl?: string;
/** Dictionary of <ContainerInfo> */
containers?: { [propertyName: string]: ContainerInfo };
/** The physical zone that the instance is in */
physicalZone?: string;
}

/** Process Thread Information. */
Expand Down Expand Up @@ -11010,7 +11019,8 @@ export type SiteLoadBalancing =
| "LeastResponseTime"
| "WeightedTotalTraffic"
| "RequestHash"
| "PerSiteRoundRobin";
| "PerSiteRoundRobin"
| "LeastRequestsWithTieBreaker";
/** Defines values for AutoHealActionType. */
export type AutoHealActionType = "Recycle" | "LogEvent" | "CustomAction";
/** Defines values for AzureStorageType. */
Expand All @@ -11033,6 +11043,12 @@ export type RedundancyMode =
| "Failover"
| "ActiveActive"
| "GeoRedundant";
/** Defines values for AutoGeneratedDomainNameLabelScope. */
export type AutoGeneratedDomainNameLabelScope =
| "TenantReuse"
| "SubscriptionReuse"
| "ResourceGroupReuse"
| "NoReuse";
/** Defines values for ManagedServiceIdentityType. */
export type ManagedServiceIdentityType =
| "SystemAssigned"
Expand Down Expand Up @@ -11435,6 +11451,22 @@ export interface CertificateRegistrationProviderListOperationsNextOptionalParams
export type CertificateRegistrationProviderListOperationsNextResponse =
CsmOperationCollection;

/** Optional parameters. */
export interface DomainRegistrationProviderListOperationsOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listOperations operation. */
export type DomainRegistrationProviderListOperationsResponse =
CsmOperationCollection;

/** Optional parameters. */
export interface DomainRegistrationProviderListOperationsNextOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listOperationsNext operation. */
export type DomainRegistrationProviderListOperationsNextResponse =
CsmOperationCollection;

/** Optional parameters. */
export interface DomainsCheckAvailabilityOptionalParams
extends coreClient.OperationOptions {}
Expand Down Expand Up @@ -11614,22 +11646,6 @@ export interface TopLevelDomainsListAgreementsNextOptionalParams
export type TopLevelDomainsListAgreementsNextResponse =
TldLegalAgreementCollection;

/** Optional parameters. */
export interface DomainRegistrationProviderListOperationsOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listOperations operation. */
export type DomainRegistrationProviderListOperationsResponse =
CsmOperationCollection;

/** Optional parameters. */
export interface DomainRegistrationProviderListOperationsNextOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listOperationsNext operation. */
export type DomainRegistrationProviderListOperationsNextResponse =
CsmOperationCollection;

/** Optional parameters. */
export interface AppServiceEnvironmentsListOptionalParams
extends coreClient.OperationOptions {}
Expand Down
30 changes: 30 additions & 0 deletions sdk/appservice/arm-appservice/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2964,6 +2964,7 @@ export const SiteConfig: coreClient.CompositeMapper = {
"WeightedTotalTraffic",
"RequestHash",
"PerSiteRoundRobin",
"LeastRequestsWithTieBreaker",
],
},
},
Expand Down Expand Up @@ -16622,6 +16623,19 @@ export const Site: coreClient.CompositeMapper = {
name: "String",
},
},
autoGeneratedDomainNameLabelScope: {
serializedName: "properties.autoGeneratedDomainNameLabelScope",
xmlName: "properties.autoGeneratedDomainNameLabelScope",
type: {
name: "Enum",
allowedValues: [
"TenantReuse",
"SubscriptionReuse",
"ResourceGroupReuse",
"NoReuse",
],
},
},
virtualNetworkSubnetId: {
serializedName: "properties.virtualNetworkSubnetId",
xmlName: "properties.virtualNetworkSubnetId",
Expand All @@ -16636,6 +16650,14 @@ export const Site: coreClient.CompositeMapper = {
name: "String",
},
},
sku: {
serializedName: "properties.sku",
readOnly: true,
xmlName: "properties.sku",
type: {
name: "String",
},
},
},
},
};
Expand Down Expand Up @@ -23022,6 +23044,7 @@ export const SiteConfigResource: coreClient.CompositeMapper = {
"WeightedTotalTraffic",
"RequestHash",
"PerSiteRoundRobin",
"LeastRequestsWithTieBreaker",
],
},
},
Expand Down Expand Up @@ -24632,6 +24655,13 @@ export const WebSiteInstanceStatus: coreClient.CompositeMapper = {
value: { type: { name: "Composite", className: "ContainerInfo" } },
},
},
physicalZone: {
serializedName: "properties.physicalZone",
xmlName: "properties.physicalZone",
type: {
name: "String",
},
},
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion sdk/appservice/arm-appservice/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export const subscriptionId: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-12-01",
defaultValue: "2024-04-01",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
2 changes: 1 addition & 1 deletion sdk/appservice/arm-appservice/src/operations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
export * from "./appServiceCertificateOrders";
export * from "./certificateOrdersDiagnostics";
export * from "./certificateRegistrationProvider";
export * from "./domainRegistrationProvider";
export * from "./domains";
export * from "./topLevelDomains";
export * from "./domainRegistrationProvider";
export * from "./appServiceEnvironments";
export * from "./appServicePlans";
export * from "./certificates";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
export * from "./appServiceCertificateOrders";
export * from "./certificateOrdersDiagnostics";
export * from "./certificateRegistrationProvider";
export * from "./domainRegistrationProvider";
export * from "./domains";
export * from "./topLevelDomains";
export * from "./domainRegistrationProvider";
export * from "./appServiceEnvironments";
export * from "./appServicePlans";
export * from "./certificates";
Expand Down
12 changes: 6 additions & 6 deletions sdk/appservice/arm-appservice/src/webSiteManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import {
AppServiceCertificateOrdersImpl,
CertificateOrdersDiagnosticsImpl,
CertificateRegistrationProviderImpl,
DomainRegistrationProviderImpl,
DomainsImpl,
TopLevelDomainsImpl,
DomainRegistrationProviderImpl,
AppServiceEnvironmentsImpl,
AppServicePlansImpl,
CertificatesImpl,
Expand Down Expand Up @@ -52,9 +52,9 @@ import {
AppServiceCertificateOrders,
CertificateOrdersDiagnostics,
CertificateRegistrationProvider,
DomainRegistrationProvider,
Domains,
TopLevelDomains,
DomainRegistrationProvider,
AppServiceEnvironments,
AppServicePlans,
Certificates,
Expand Down Expand Up @@ -195,7 +195,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-appservice/15.0.1`;
const packageDetails = `azsdk-js-arm-appservice/15.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -249,7 +249,7 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2023-12-01";
this.apiVersion = options.apiVersion || "2024-04-01";
this.appServiceCertificateOrders = new AppServiceCertificateOrdersImpl(
this,
);
Expand All @@ -258,9 +258,9 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
);
this.certificateRegistrationProvider =
new CertificateRegistrationProviderImpl(this);
this.domainRegistrationProvider = new DomainRegistrationProviderImpl(this);
this.domains = new DomainsImpl(this);
this.topLevelDomains = new TopLevelDomainsImpl(this);
this.domainRegistrationProvider = new DomainRegistrationProviderImpl(this);
this.appServiceEnvironments = new AppServiceEnvironmentsImpl(this);
this.appServicePlans = new AppServicePlansImpl(this);
this.certificates = new CertificatesImpl(this);
Expand Down Expand Up @@ -1090,9 +1090,9 @@ export class WebSiteManagementClient extends coreClient.ServiceClient {
appServiceCertificateOrders: AppServiceCertificateOrders;
certificateOrdersDiagnostics: CertificateOrdersDiagnostics;
certificateRegistrationProvider: CertificateRegistrationProvider;
domainRegistrationProvider: DomainRegistrationProvider;
domains: Domains;
topLevelDomains: TopLevelDomains;
domainRegistrationProvider: DomainRegistrationProvider;
appServiceEnvironments: AppServiceEnvironments;
appServicePlans: AppServicePlans;
certificates: Certificates;
Expand Down
Loading

0 comments on commit bc1e5b4

Please sign in to comment.