Skip to content

Commit 03a4073

Browse files
authored
Refresh 6 (Azure#21432)
* cosmosdb * customer-insights * databox * databoxedge * databricks * update sample-dev * update * update * update * update * update
1 parent 286e2f9 commit 03a4073

File tree

444 files changed

+16573
-730
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

444 files changed

+16573
-730
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 32 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/ignore-links.txt

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,6 @@ https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob-cha
88
https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob-changefeed/samples/typescript
99
https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storage/storage-blob-changefeed/test/
1010
https://github.com/Azure/azure-digital-twins/blob/private-preview/Documentation/how-to-manage-routes.md
11-
https://docs.microsoft.com/javascript/api/@azure/arm-dnsresolver?view=azure-node-preview
12-
https://docs.microsoft.com/javascript/api/@azure/arm-mobilenetwork?view=azure-node-preview
13-
https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview
14-
https://docs.microsoft.com/javascript/api/@azure/arm-resources-profile-2020-09-01-hybrid
15-
https://docs.microsoft.com/javascript/api/@azure/arm-locks-profile-2020-09-01-hybrid
16-
https://docs.microsoft.com/javascript/api/@azure/arm-dns-profile-2020-09-01-hybrid
17-
https://docs.microsoft.com/javascript/api/@azure/arm-policy-profile-2020-09-01-hybrid
18-
https://docs.microsoft.com/javascript/api/@azure/arm-subscriptions-profile-2020-09-01-hybrid
19-
https://docs.microsoft.com/javascript/api/@azure/arm-storage-profile-2020-09-01-hybrid
20-
https://docs.microsoft.com/javascript/api/@azure/arm-keyvault-profile-2020-09-01-hybrid
21-
https://docs.microsoft.com/javascript/api/@azure/arm-network-profile-2020-09-01-hybrid
22-
https://docs.microsoft.com/javascript/api/@azure/arm-commerce-profile-2020-09-01-hybrid?view=azure-node-preview
23-
https://docs.microsoft.com/javascript/api/@azure/arm-compute-profile-2020-09-01-hybrid
24-
https://docs.microsoft.com/javascript/api/@azure/arm-eventhub-profile-2020-09-01-hybrid?view=azure-node-preview
25-
https://docs.microsoft.com/javascript/api/@azure/arm-authorization-profile-2020-09-01-hybrid
26-
https://docs.microsoft.com/javascript/api/@azure/arm-iothub-profile-2020-09-01-hybrid?view=azure-node-preview
27-
https://docs.microsoft.com/javascript/api/@azure/arm-monitor-profile-2020-09-01-hybrid?view=azure-node-preview
28-
https://docs.microsoft.com/javascript/api/@azure/arm-databoxedge-profile-2020-09-01-hybrid
29-
https://docs.microsoft.com/javascript/api/@azure/arm-appservice-profile-2020-09-01-hybrid
30-
https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network
31-
https://docs.microsoft.com/en-us/azure/service-health/resource-health-overview
3211
https://docs.microsoft.com/javascript/api/@azure/arm-app?view=azure-node-preview
33-
https://docs.microsoft.com/javascript/api/@azure/arm-mysql-flexible
34-
https://docs.microsoft.com/javascript/api/@azure/arm-mysql-flexible?view=azure-node-preview
35-
https://docs.microsoft.com/javascript/api/@azure/arm-hardwaresecuritymodules
36-
https://docs.microsoft.com/javascript/api/@azure/arm-hardwaresecuritymodules?view=azure-node-preview
3712
https://docs.microsoft.com/javascript/api/@azure/arm-dashboard?view=azure-node-preview
13+
https://docs.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/udr

sdk/cosmosdb/arm-cosmosdb/CHANGELOG.md

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
# Release History
2-
3-
## 16.0.0-beta.2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 16.0.0-beta.1 (2022-02-21)
2+
3+
## 16.0.0-beta.2 (2022-04-15)
144

155
**Features**
166

@@ -235,11 +225,7 @@
235225
- Added Enum KnownServiceStatus
236226
- Added Enum KnownServiceType
237227
- Enum KnownAuthenticationMethod has a new value Ldap
238-
239-
**Breaking Changes**
240-
241-
- Type Alias DatabaseAccountCreateUpdateParameters no longer has parameter identity
242-
- Type Alias DatabaseAccountGetResults no longer has parameter identity
228+
- Bug fix
243229

244230

245231
## 15.0.0 (2021-12-09)

sdk/cosmosdb/arm-cosmosdb/_meta.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"commit": "bb9f1204f9a337404ff7e7b73b4c7b4ddde7f8f1",
3-
"readme": "specification/cosmos-db/resource-manager/readme.md",
4-
"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:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/cosmos-db/resource-manager/readme.md --use=@autorest/[email protected].16.20220217.1",
3+
"readme": "specification\\cosmos-db\\resource-manager\\readme.md",
4+
"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\\cosmos-db\\resource-manager\\readme.md --use=@autorest/[email protected].19.20220408.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected]"
6+
"release_tool": "@azure-tools/[email protected]",
7+
"use": "@autorest/[email protected]"
78
}

sdk/cosmosdb/arm-cosmosdb/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"@azure/core-lro": "^2.2.0",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
14-
"@azure/core-client": "^1.0.0",
14+
"@azure/core-client": "^1.5.0",
1515
"@azure/core-auth": "^1.3.0",
16-
"@azure/core-rest-pipeline": "^1.1.0",
16+
"@azure/core-rest-pipeline": "^1.8.0",
1717
"tslib": "^2.2.0"
1818
},
1919
"keywords": [

sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
*/
88

99
import * as coreClient from "@azure/core-client";
10+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
1011
import * as coreAuth from "@azure/core-auth";
1112
import {
1213
DatabaseAccountsImpl,
@@ -139,9 +140,33 @@ export class CosmosDBManagementClient extends coreClient.ServiceClient {
139140
userAgentOptions: {
140141
userAgentPrefix
141142
},
142-
baseUri: options.endpoint || "https://management.azure.com"
143+
baseUri:
144+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
143145
};
144146
super(optionsWithDefaults);
147+
148+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
149+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
150+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
151+
(pipelinePolicy) =>
152+
pipelinePolicy.name ===
153+
coreRestPipeline.bearerTokenAuthenticationPolicyName
154+
);
155+
if (!bearerTokenAuthenticationPolicyFound) {
156+
this.pipeline.removePolicy({
157+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
158+
});
159+
this.pipeline.addPolicy(
160+
coreRestPipeline.bearerTokenAuthenticationPolicy({
161+
scopes: `${optionsWithDefaults.baseUri}/.default`,
162+
challengeCallbacks: {
163+
authorizeRequestOnChallenge:
164+
coreClient.authorizeRequestOnClaimChallenge
165+
}
166+
})
167+
);
168+
}
169+
}
145170
// Parameter assignments
146171
this.subscriptionId = subscriptionId;
147172

sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,12 @@ export class CassandraClustersImpl implements CassandraClusters {
293293
{ resourceGroupName, clusterName, options },
294294
deleteOperationSpec
295295
);
296-
return new LroEngine(lro, {
296+
const poller = new LroEngine(lro, {
297297
resumeFrom: options?.resumeFrom,
298298
intervalInMs: options?.updateIntervalInMs
299299
});
300+
await poller.poll();
301+
return poller;
300302
}
301303

302304
/**
@@ -381,10 +383,12 @@ export class CassandraClustersImpl implements CassandraClusters {
381383
{ resourceGroupName, clusterName, body, options },
382384
createUpdateOperationSpec
383385
);
384-
return new LroEngine(lro, {
386+
const poller = new LroEngine(lro, {
385387
resumeFrom: options?.resumeFrom,
386388
intervalInMs: options?.updateIntervalInMs
387389
});
390+
await poller.poll();
391+
return poller;
388392
}
389393

390394
/**
@@ -472,10 +476,12 @@ export class CassandraClustersImpl implements CassandraClusters {
472476
{ resourceGroupName, clusterName, body, options },
473477
updateOperationSpec
474478
);
475-
return new LroEngine(lro, {
479+
const poller = new LroEngine(lro, {
476480
resumeFrom: options?.resumeFrom,
477481
intervalInMs: options?.updateIntervalInMs
478482
});
483+
await poller.poll();
484+
return poller;
479485
}
480486

481487
/**
@@ -562,10 +568,12 @@ export class CassandraClustersImpl implements CassandraClusters {
562568
{ resourceGroupName, clusterName, body, options },
563569
invokeCommandOperationSpec
564570
);
565-
return new LroEngine(lro, {
571+
const poller = new LroEngine(lro, {
566572
resumeFrom: options?.resumeFrom,
567573
intervalInMs: options?.updateIntervalInMs
568574
});
575+
await poller.poll();
576+
return poller;
569577
}
570578

571579
/**
@@ -683,10 +691,12 @@ export class CassandraClustersImpl implements CassandraClusters {
683691
{ resourceGroupName, clusterName, options },
684692
deallocateOperationSpec
685693
);
686-
return new LroEngine(lro, {
694+
const poller = new LroEngine(lro, {
687695
resumeFrom: options?.resumeFrom,
688696
intervalInMs: options?.updateIntervalInMs
689697
});
698+
await poller.poll();
699+
return poller;
690700
}
691701

692702
/**
@@ -767,10 +777,12 @@ export class CassandraClustersImpl implements CassandraClusters {
767777
{ resourceGroupName, clusterName, options },
768778
startOperationSpec
769779
);
770-
return new LroEngine(lro, {
780+
const poller = new LroEngine(lro, {
771781
resumeFrom: options?.resumeFrom,
772782
intervalInMs: options?.updateIntervalInMs
773783
});
784+
await poller.poll();
785+
return poller;
774786
}
775787

776788
/**

0 commit comments

Comments
 (0)