Skip to content

Commit

Permalink
CodeGen from PR 19180 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Fix lro in disable and enable cdn https (Azure#19180)

* Fix lro in disable and enable cdn https

* Update the examples

* Update the examples

* Update the examples

* Update the examples

Co-authored-by: Chenglong Liu <[email protected]>
  • Loading branch information
SDKAuto and Chenglong Liu committed May 25, 2022
1 parent 4544515 commit 5a3dbbd
Show file tree
Hide file tree
Showing 18 changed files with 609 additions and 153 deletions.
28 changes: 28 additions & 0 deletions sdk/cdn/arm-cdn/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Release History

## 8.0.0 (2022-05-25)

**Features**

- Added operation CustomDomains.beginDisableCustomHttps
- Added operation CustomDomains.beginDisableCustomHttpsAndWait
- Added operation CustomDomains.beginEnableCustomHttps
- Added operation CustomDomains.beginEnableCustomHttpsAndWait
- Added Type Alias EndpointProvisioningState
- Added Type Alias OriginGroupProvisioningState
- Added Type Alias OriginProvisioningState
- Added Type Alias ProfileProvisioningState
- Added Type Alias ResourceUsageUnit
- Interface CustomDomainsDisableCustomHttpsOptionalParams has a new optional parameter resumeFrom
- Interface CustomDomainsDisableCustomHttpsOptionalParams has a new optional parameter updateIntervalInMs
- Interface CustomDomainsEnableCustomHttpsOptionalParams has a new optional parameter resumeFrom
- Interface CustomDomainsEnableCustomHttpsOptionalParams has a new optional parameter updateIntervalInMs
- Added Enum KnownEndpointProvisioningState
- Added Enum KnownOriginGroupProvisioningState
- Added Enum KnownOriginProvisioningState
- Added Enum KnownProfileProvisioningState
- Added Enum KnownResourceUsageUnit

**Breaking Changes**

- Removed operation CustomDomains.disableCustomHttps
- Removed operation CustomDomains.enableCustomHttps

## 7.0.1 (2022-04-21)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/cdn/arm-cdn/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "82fdf284eea880a8e027c354911a814999a77178",
"commit": "fa7c5365713765e195dfb6a54fca4ff7ab8c8d74",
"readme": "specification/cdn/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\\cdn\\resource-manager\\readme.md --use=@autorest/[email protected]beta.17 --generate-sample=true",
"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/cdn/resource-manager/readme.md --use=@autorest/[email protected]alpha.19.20220425.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.0",
"use": "@autorest/[email protected]beta.17"
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.1",
"use": "@autorest/[email protected]alpha.19.20220425.1"
}
26 changes: 10 additions & 16 deletions sdk/cdn/arm-cdn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for CdnManagementClient.",
"version": "7.0.1",
"version": "8.0.0",
"engines": {
"node": ">=12.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.0.0",
"@azure/core-client": "^1.5.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.1.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -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/cdn/arm-cdn",
"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-cdn?view=azure-node-preview"
}
}
"autoPublish": true
}
105 changes: 94 additions & 11 deletions sdk/cdn/arm-cdn/review/arm-cdn.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ export type CustomDomain = ProxyResource & {
readonly customHttpsProvisioningSubstate?: CustomHttpsProvisioningSubstate;
customHttpsParameters?: CustomDomainHttpsParametersUnion;
validationData?: string;
readonly provisioningState?: string;
readonly provisioningState?: CustomHttpsProvisioningState;
};

// @public
Expand Down Expand Up @@ -899,8 +899,10 @@ export interface CustomDomains {
beginCreateAndWait(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, customDomainProperties: CustomDomainParameters, options?: CustomDomainsCreateOptionalParams): Promise<CustomDomainsCreateResponse>;
beginDelete(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDeleteOptionalParams): Promise<void>;
disableCustomHttps(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDisableCustomHttpsOptionalParams): Promise<CustomDomainsDisableCustomHttpsResponse>;
enableCustomHttps(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsEnableCustomHttpsOptionalParams): Promise<CustomDomainsEnableCustomHttpsResponse>;
beginDisableCustomHttps(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDisableCustomHttpsOptionalParams): Promise<PollerLike<PollOperationState<CustomDomainsDisableCustomHttpsResponse>, CustomDomainsDisableCustomHttpsResponse>>;
beginDisableCustomHttpsAndWait(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsDisableCustomHttpsOptionalParams): Promise<CustomDomainsDisableCustomHttpsResponse>;
beginEnableCustomHttps(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsEnableCustomHttpsOptionalParams): Promise<PollerLike<PollOperationState<CustomDomainsEnableCustomHttpsResponse>, CustomDomainsEnableCustomHttpsResponse>>;
beginEnableCustomHttpsAndWait(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsEnableCustomHttpsOptionalParams): Promise<CustomDomainsEnableCustomHttpsResponse>;
get(resourceGroupName: string, profileName: string, endpointName: string, customDomainName: string, options?: CustomDomainsGetOptionalParams): Promise<CustomDomainsGetResponse>;
listByEndpoint(resourceGroupName: string, profileName: string, endpointName: string, options?: CustomDomainsListByEndpointOptionalParams): PagedAsyncIterableIterator<CustomDomain>;
}
Expand All @@ -922,6 +924,8 @@ export interface CustomDomainsDeleteOptionalParams extends coreClient.OperationO

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

// @public
Expand All @@ -930,6 +934,8 @@ export type CustomDomainsDisableCustomHttpsResponse = CustomDomain;
// @public
export interface CustomDomainsEnableCustomHttpsOptionalParams extends coreClient.OperationOptions {
customDomainHttpsParameters?: CustomDomainHttpsParametersUnion;
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
Expand Down Expand Up @@ -1278,7 +1284,7 @@ export type Endpoint = TrackedResource & {
originGroups?: DeepCreatedOriginGroup[];
readonly customDomains?: CustomDomain[];
readonly resourceState?: EndpointResourceState;
readonly provisioningState?: string;
readonly provisioningState?: EndpointProvisioningState;
};

// @public
Expand All @@ -1294,7 +1300,7 @@ export type EndpointProperties = EndpointPropertiesUpdateParameters & {
originGroups?: DeepCreatedOriginGroup[];
readonly customDomains?: CustomDomain[];
readonly resourceState?: EndpointResourceState;
readonly provisioningState?: string;
readonly provisioningState?: EndpointProvisioningState;
};

// @public
Expand Down Expand Up @@ -1326,6 +1332,9 @@ export interface EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyL
id?: string;
}

// @public
export type EndpointProvisioningState = string;

// @public
export type EndpointResourceState = string;

Expand Down Expand Up @@ -1899,6 +1908,20 @@ export enum KnownEnabledState {
Enabled = "Enabled"
}

// @public
export enum KnownEndpointProvisioningState {
// (undocumented)
Creating = "Creating",
// (undocumented)
Deleting = "Deleting",
// (undocumented)
Failed = "Failed",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Updating = "Updating"
}

// @public
export enum KnownEndpointResourceState {
// (undocumented)
Expand Down Expand Up @@ -2199,6 +2222,20 @@ export enum KnownOptimizationType {
VideoOnDemandMediaStreaming = "VideoOnDemandMediaStreaming"
}

// @public
export enum KnownOriginGroupProvisioningState {
// (undocumented)
Creating = "Creating",
// (undocumented)
Deleting = "Deleting",
// (undocumented)
Failed = "Failed",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Updating = "Updating"
}

// @public
export enum KnownOriginGroupResourceState {
// (undocumented)
Expand All @@ -2209,6 +2246,20 @@ export enum KnownOriginGroupResourceState {
Deleting = "Deleting"
}

// @public
export enum KnownOriginProvisioningState {
// (undocumented)
Creating = "Creating",
// (undocumented)
Deleting = "Deleting",
// (undocumented)
Failed = "Failed",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Updating = "Updating"
}

// @public
export enum KnownOriginResourceState {
// (undocumented)
Expand Down Expand Up @@ -2313,6 +2364,20 @@ export enum KnownPrivateEndpointStatus {
Timeout = "Timeout"
}

// @public
export enum KnownProfileProvisioningState {
// (undocumented)
Creating = "Creating",
// (undocumented)
Deleting = "Deleting",
// (undocumented)
Failed = "Failed",
// (undocumented)
Succeeded = "Succeeded",
// (undocumented)
Updating = "Updating"
}

// @public
export enum KnownProfileResourceState {
// (undocumented)
Expand Down Expand Up @@ -2513,6 +2578,12 @@ export enum KnownResourceType {
MicrosoftCdnProfilesEndpoints = "Microsoft.Cdn/Profiles/Endpoints"
}

// @public
export enum KnownResourceUsageUnit {
// (undocumented)
Count = "count"
}

// @public
export enum KnownRuleCacheBehavior {
// (undocumented)
Expand Down Expand Up @@ -3194,7 +3265,7 @@ export type Origin = ProxyResource & {
privateLinkLocation?: string;
privateLinkApprovalMessage?: string;
readonly resourceState?: OriginResourceState;
readonly provisioningState?: string;
readonly provisioningState?: OriginProvisioningState;
readonly privateEndpointStatus?: PrivateEndpointStatus;
};

Expand All @@ -3205,7 +3276,7 @@ export type OriginGroup = ProxyResource & {
trafficRestorationTimeToHealedOrNewEndpointsInMinutes?: number;
responseBasedOriginErrorDetectionSettings?: ResponseBasedOriginErrorDetectionParameters;
readonly resourceState?: OriginGroupResourceState;
readonly provisioningState?: string;
readonly provisioningState?: OriginGroupProvisioningState;
};

// @public
Expand Down Expand Up @@ -3236,9 +3307,12 @@ export interface OriginGroupOverrideActionParameters {
// @public
export type OriginGroupProperties = OriginGroupUpdatePropertiesParameters & {
readonly resourceState?: OriginGroupResourceState;
readonly provisioningState?: string;
readonly provisioningState?: OriginGroupProvisioningState;
};

// @public
export type OriginGroupProvisioningState = string;

// @public
export type OriginGroupResourceState = string;

Expand Down Expand Up @@ -3324,10 +3398,13 @@ export interface OriginListResult {
// @public
export type OriginProperties = OriginUpdatePropertiesParameters & {
readonly resourceState?: OriginResourceState;
readonly provisioningState?: string;
readonly provisioningState?: OriginProvisioningState;
readonly privateEndpointStatus?: PrivateEndpointStatus;
};

// @public
export type OriginProvisioningState = string;

// @public
export type OriginResourceState = string;

Expand Down Expand Up @@ -3521,7 +3598,7 @@ export type Profile = TrackedResource & {
sku: Sku;
readonly kind?: string;
readonly resourceState?: ProfileResourceState;
readonly provisioningState?: string;
readonly provisioningState?: ProfileProvisioningState;
readonly frontDoorId?: string;
originResponseTimeoutSeconds?: number;
};
Expand All @@ -3532,6 +3609,9 @@ export interface ProfileListResult {
readonly value?: Profile[];
}

// @public
export type ProfileProvisioningState = string;

// @public
export type ProfileResourceState = string;

Expand Down Expand Up @@ -3876,7 +3956,7 @@ export interface ResourceUsage {
readonly currentValue?: number;
readonly limit?: number;
readonly resourceType?: string;
readonly unit?: string;
readonly unit?: ResourceUsageUnit;
}

// @public
Expand Down Expand Up @@ -3904,6 +3984,9 @@ export interface ResourceUsageOperations {
list(options?: ResourceUsageListOptionalParams): PagedAsyncIterableIterator<ResourceUsage>;
}

// @public
export type ResourceUsageUnit = string;

// @public
export type ResponseBasedDetectedErrorTypes = "None" | "TcpErrorsOnly" | "TcpAndHttpErrors";

Expand Down
Loading

0 comments on commit 5a3dbbd

Please sign in to comment.