Skip to content

Commit

Permalink
CodeGen from PR 19578 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 9daa5372baa14a3ba23ec47dde489efe5fed612c into e8c0c73d5f11f9f2b7cde8e1ac33638bb3c5695d
  • Loading branch information
SDKAuto committed Jun 24, 2022
1 parent 74fc6ed commit b1bc24e
Show file tree
Hide file tree
Showing 23 changed files with 2,804 additions and 2,585 deletions.
21 changes: 11 additions & 10 deletions sdk/frontdoor/arm-frontdoor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Release History

## 5.1.0 (2022-06-24)

**Features**

## 5.0.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added operation Policies.beginUpdate
- Added operation Policies.beginUpdateAndWait
- Added Interface PoliciesUpdateOptionalParams
- Added Type Alias PoliciesUpdateResponse
- Enum KnownFrontDoorResourceState has a new value Migrated
- Enum KnownFrontDoorResourceState has a new value Migrating

## 5.0.1 (2022-04-26)

**Features**
Expand Down
10 changes: 5 additions & 5 deletions sdk/frontdoor/arm-frontdoor/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1f1d5b0b9ce6cc94605b2fd619dce374fb6e033a",
"readme": "specification\\frontdoor\\resource-manager\\readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\frontdoor\\resource-manager\\readme.md --use=@autorest/[email protected].20220408.1 --generate-sample=true",
"commit": "309127679194b61d57e6227d0dd41130e826913f",
"readme": "specification/frontdoor/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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/frontdoor/resource-manager/readme.md --use=@autorest/[email protected].20220425.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.6",
"use": "@autorest/[email protected].20220408.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.2",
"use": "@autorest/[email protected].20220425.1"
}
22 changes: 8 additions & 14 deletions sdk/frontdoor/arm-frontdoor/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 FrontDoorManagementClient.",
"version": "5.0.2",
"version": "5.1.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -40,9 +40,11 @@
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2"
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/frontdoor/arm-frontdoor",
"repository": {
Expand Down Expand Up @@ -93,7 +95,7 @@
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
},
Expand All @@ -106,13 +108,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-frontdoor?view=azure-node-preview"
}
}
"autoPublish": true
}
23 changes: 22 additions & 1 deletion sdk/frontdoor/arm-frontdoor/review/arm-frontdoor.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ export type FrontDoor = Resource & {
readonly cname?: string;
readonly frontdoorId?: string;
readonly rulesEngines?: RulesEngine[];
readonly extendedProperties?: {
[propertyName: string]: string;
};
};

// @public
Expand Down Expand Up @@ -394,6 +397,9 @@ export type FrontDoorProperties = FrontDoorUpdateParameters & {
readonly cname?: string;
readonly frontdoorId?: string;
readonly rulesEngines?: RulesEngine[];
readonly extendedProperties?: {
[propertyName: string]: string;
};
};

// @public
Expand Down Expand Up @@ -839,7 +845,11 @@ export enum KnownFrontDoorResourceState {
// (undocumented)
Enabled = "Enabled",
// (undocumented)
Enabling = "Enabling"
Enabling = "Enabling",
// (undocumented)
Migrated = "Migrated",
// (undocumented)
Migrating = "Migrating"
}

// @public
Expand Down Expand Up @@ -1477,6 +1487,8 @@ export interface Policies {
beginCreateOrUpdateAndWait(resourceGroupName: string, policyName: string, parameters: WebApplicationFirewallPolicy, options?: PoliciesCreateOrUpdateOptionalParams): Promise<PoliciesCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, policyName: string, options?: PoliciesDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, policyName: string, options?: PoliciesDeleteOptionalParams): Promise<void>;
beginUpdate(resourceGroupName: string, policyName: string, parameters: TagsObject, options?: PoliciesUpdateOptionalParams): Promise<PollerLike<PollOperationState<PoliciesUpdateResponse>, PoliciesUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, policyName: string, parameters: TagsObject, options?: PoliciesUpdateOptionalParams): Promise<PoliciesUpdateResponse>;
get(resourceGroupName: string, policyName: string, options?: PoliciesGetOptionalParams): Promise<PoliciesGetResponse>;
list(resourceGroupName: string, options?: PoliciesListOptionalParams): PagedAsyncIterableIterator<WebApplicationFirewallPolicy>;
}
Expand Down Expand Up @@ -1517,6 +1529,15 @@ export interface PoliciesListOptionalParams extends coreClient.OperationOptions
// @public
export type PoliciesListResponse = WebApplicationFirewallPolicyList;

// @public
export interface PoliciesUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type PoliciesUpdateResponse = WebApplicationFirewallPolicy;

// @public
export type PolicyEnabledState = string;

Expand Down
50 changes: 25 additions & 25 deletions sdk/frontdoor/arm-frontdoor/src/frontDoorManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,32 @@ import * as coreClient from "@azure/core-client";
import * as coreRestPipeline from "@azure/core-rest-pipeline";
import * as coreAuth from "@azure/core-auth";
import {
NetworkExperimentProfilesImpl,
PreconfiguredEndpointsImpl,
ExperimentsImpl,
ReportsImpl,
PoliciesImpl,
ManagedRuleSetsImpl,
FrontDoorNameAvailabilityImpl,
FrontDoorNameAvailabilityWithSubscriptionImpl,
FrontDoorsImpl,
FrontendEndpointsImpl,
EndpointsImpl,
RulesEnginesImpl,
PoliciesImpl,
ManagedRuleSetsImpl
NetworkExperimentProfilesImpl,
PreconfiguredEndpointsImpl,
ExperimentsImpl,
ReportsImpl
} from "./operations";
import {
NetworkExperimentProfiles,
PreconfiguredEndpoints,
Experiments,
Reports,
Policies,
ManagedRuleSets,
FrontDoorNameAvailability,
FrontDoorNameAvailabilityWithSubscription,
FrontDoors,
FrontendEndpoints,
Endpoints,
RulesEngines,
Policies,
ManagedRuleSets
NetworkExperimentProfiles,
PreconfiguredEndpoints,
Experiments,
Reports
} from "./operationsInterfaces";
import { FrontDoorManagementClientOptionalParams } from "./models";

Expand Down Expand Up @@ -71,7 +71,7 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-frontdoor/5.0.2`;
const packageDetails = `azsdk-js-arm-frontdoor/5.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -118,10 +118,8 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);
this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);
this.experiments = new ExperimentsImpl(this);
this.reports = new ReportsImpl(this);
this.policies = new PoliciesImpl(this);
this.managedRuleSets = new ManagedRuleSetsImpl(this);
this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);
this.frontDoorNameAvailabilityWithSubscription = new FrontDoorNameAvailabilityWithSubscriptionImpl(
this
Expand All @@ -130,20 +128,22 @@ export class FrontDoorManagementClient extends coreClient.ServiceClient {
this.frontendEndpoints = new FrontendEndpointsImpl(this);
this.endpoints = new EndpointsImpl(this);
this.rulesEngines = new RulesEnginesImpl(this);
this.policies = new PoliciesImpl(this);
this.managedRuleSets = new ManagedRuleSetsImpl(this);
this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);
this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);
this.experiments = new ExperimentsImpl(this);
this.reports = new ReportsImpl(this);
}

networkExperimentProfiles: NetworkExperimentProfiles;
preconfiguredEndpoints: PreconfiguredEndpoints;
experiments: Experiments;
reports: Reports;
policies: Policies;
managedRuleSets: ManagedRuleSets;
frontDoorNameAvailability: FrontDoorNameAvailability;
frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;
frontDoors: FrontDoors;
frontendEndpoints: FrontendEndpoints;
endpoints: Endpoints;
rulesEngines: RulesEngines;
policies: Policies;
managedRuleSets: ManagedRuleSets;
networkExperimentProfiles: NetworkExperimentProfiles;
preconfiguredEndpoints: PreconfiguredEndpoints;
experiments: Experiments;
reports: Reports;
}
Loading

0 comments on commit b1bc24e

Please sign in to comment.