Skip to content

Commit

Permalink
CodeGen from PR 24530 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 4d8b7351216ba7b6a0e70dcd1a8a8cbae718d217 into c7f3e601fd326ca910c3d2939b516e15581e7e41
  • Loading branch information
SDKAuto committed Jun 21, 2023
1 parent 2833145 commit 0311771
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
# Release History

## 6.0.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 6.0.0-beta.1 (2023-06-07)

## 6.0.0-beta.2 (2023-06-21)

**Features**

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "922e13fc8912d11a1cd1f08cedecedf1aa18120a",
"commit": "2b7e01d070d160187f83d63ca8b45f453c81fb0c",
"readme": "specification/deviceprovisioningservices/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=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\deviceprovisioningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.2 --generate-sample=true",
"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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/deviceprovisioningservices/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.7.0",
"use": "@autorest/typescript@6.0.2"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
"use": "@autorest/typescript@^6.0.4"
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/deviceprovisioningservices/arm-deviceprovisioningservices",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-deviceprovisioningservices?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/deviceprovisioningservices/arm-deviceprovisioningservices"
}
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@ export interface IotDpsResource {
beginCreateOrUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<IotDpsResourceCreateOrUpdateResponse>;
beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>>;
beginCreateOrUpdatePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>;
beginDelete(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<void>;
beginDelete(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteAndWait(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<void>;
beginDeletePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>, IotDpsResourceDeletePrivateEndpointConnectionResponse>>;
beginDeletePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse>;
beginUpdate(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceUpdateResponse>, IotDpsResourceUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<IotDpsResourceUpdateResponse>;
checkProvisioningServiceNameAvailability(argumentsParam: OperationInputs, options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams): Promise<IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse>;
get(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceGetOptionalParams): Promise<IotDpsResourceGetResponse>;
get(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceGetOptionalParams): Promise<IotDpsResourceGetResponse>;
getOperationResult(operationId: string, resourceGroupName: string, provisioningServiceName: string, asyncinfo: string, options?: IotDpsResourceGetOperationResultOptionalParams): Promise<IotDpsResourceGetOperationResultResponse>;
getPrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceGetPrivateEndpointConnectionResponse>;
getPrivateLinkResources(resourceGroupName: string, resourceName: string, groupId: string, options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams): Promise<IotDpsResourceGetPrivateLinkResourcesResponse>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,17 +381,17 @@ export class IotDpsResourceImpl implements IotDpsResource {

/**
* Get the metadata of the provisioning service without SAS keys.
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Name of the provisioning service to retrieve.
* @param resourceGroupName Resource group name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
provisioningServiceName: string,
resourceGroupName: string,
options?: IotDpsResourceGetOptionalParams
): Promise<IotDpsResourceGetResponse> {
return this.client.sendOperationRequest(
{ resourceGroupName, provisioningServiceName, options },
{ provisioningServiceName, resourceGroupName, options },
getOperationSpec
);
}
Expand Down Expand Up @@ -604,13 +604,13 @@ export class IotDpsResourceImpl implements IotDpsResource {

/**
* Deletes the Provisioning Service.
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
* @param resourceGroupName Resource group identifier.
* @param options The options parameters.
*/
async beginDelete(
resourceGroupName: string,
provisioningServiceName: string,
resourceGroupName: string,
options?: IotDpsResourceDeleteOptionalParams
): Promise<SimplePollerLike<OperationState<void>, void>> {
const directSendOperation = async (
Expand Down Expand Up @@ -654,7 +654,7 @@ export class IotDpsResourceImpl implements IotDpsResource {

const lro = createLroSpec({
sendOperationFn,
args: { resourceGroupName, provisioningServiceName, options },
args: { provisioningServiceName, resourceGroupName, options },
spec: deleteOperationSpec
});
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
Expand All @@ -667,18 +667,18 @@ export class IotDpsResourceImpl implements IotDpsResource {

/**
* Deletes the Provisioning Service.
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
* @param resourceGroupName Resource group identifier.
* @param options The options parameters.
*/
async beginDeleteAndWait(
resourceGroupName: string,
provisioningServiceName: string,
resourceGroupName: string,
options?: IotDpsResourceDeleteOptionalParams
): Promise<void> {
const poller = await this.beginDelete(
resourceGroupName,
provisioningServiceName,
resourceGroupName,
options
);
return poller.pollUntilDone();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ export interface IotDpsResource {
>;
/**
* Get the metadata of the provisioning service without SAS keys.
* @param resourceGroupName Resource group name.
* @param provisioningServiceName Name of the provisioning service to retrieve.
* @param resourceGroupName Resource group name.
* @param options The options parameters.
*/
get(
resourceGroupName: string,
provisioningServiceName: string,
resourceGroupName: string,
options?: IotDpsResourceGetOptionalParams
): Promise<IotDpsResourceGetResponse>;
/**
Expand Down Expand Up @@ -170,24 +170,24 @@ export interface IotDpsResource {
): Promise<IotDpsResourceUpdateResponse>;
/**
* Deletes the Provisioning Service.
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
* @param resourceGroupName Resource group identifier.
* @param options The options parameters.
*/
beginDelete(
resourceGroupName: string,
provisioningServiceName: string,
resourceGroupName: string,
options?: IotDpsResourceDeleteOptionalParams
): Promise<SimplePollerLike<OperationState<void>, void>>;
/**
* Deletes the Provisioning Service.
* @param resourceGroupName Resource group identifier.
* @param provisioningServiceName Name of provisioning service to delete.
* @param resourceGroupName Resource group identifier.
* @param options The options parameters.
*/
beginDeleteAndWait(
resourceGroupName: string,
provisioningServiceName: string,
resourceGroupName: string,
options?: IotDpsResourceDeleteOptionalParams
): Promise<void>;
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -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<string, string> = {
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!");
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-deviceprovisioningservices": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down

0 comments on commit 0311771

Please sign in to comment.