Skip to content

Commit 17b6dc9

Browse files
authored
[mgmt] storage release (#33099)
Azure/sdk-release-request#5884
1 parent b05b383 commit 17b6dc9

File tree

348 files changed

+4449
-2153
lines changed

Some content is hidden

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

348 files changed

+4449
-2153
lines changed

common/config/rush/pnpm-lock.yaml

+13-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/batch/arm-batch/assets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/batch/arm-batch",
5-
"Tag": "js/batch/arm-batch_20f166d6fc"
5+
"Tag": "js/batch/arm-batch_b0c61dc3f9"
66
}

sdk/monitor/arm-monitor/assets.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/monitor/arm-monitor",
5-
"Tag": "js/monitor/arm-monitor_ac7d3f3bb5"
5+
"Tag": "js/monitor/arm-monitor_86ac674e4d"
66
}

sdk/monitor/arm-monitor/test/monitor.spec.ts

+92-44
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,13 @@ describe("Monitor test", () => {
105105
const res = await logic_client.workflows.createOrUpdate(resourceGroup, workflowName, {
106106
location: location,
107107
definition: {
108-
$schema:
109-
"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
110-
contentVersion: "1.0.0.0",
111-
parameters: {},
112-
triggers: {},
113-
actions: {},
114-
outputs: {},
115-
},
108+
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
109+
"contentVersion": "1.0.0.0",
110+
"parameters": {},
111+
"triggers": {},
112+
"actions": {},
113+
"outputs": {}
114+
}
116115
});
117116
workflowsId = (res.id || "/").substring(1);
118117

@@ -149,6 +148,17 @@ describe("Monitor test", () => {
149148
storageId = storageaccount.id || "";
150149

151150
// namespaces.beginCreateOrUpdateAndWait
151+
await eventhub_client.namespaces.beginCreateOrUpdateAndWait(resourceGroup, namespaceName, {
152+
sku: {
153+
name: "Standard",
154+
tier: "Standard",
155+
},
156+
location: location,
157+
tags: {
158+
tag1: "value1",
159+
tag2: "value2",
160+
}
161+
}, testPollingOptions)
152162
// namespaces.createOrUpdateAuthorizationRule
153163
const authorization = await eventhub_client.namespaces.createOrUpdateAuthorizationRule(
154164
resourceGroup,
@@ -179,23 +189,29 @@ describe("Monitor test", () => {
179189
// skip this case as no data plane write permissions
180190
it.skip("eventhub create test", async () => {
181191
// eventHubs.createOrUpdate
182-
});
192+
await eventhub_client.eventHubs.createOrUpdate(resourceGroup, namespaceName, eventhubName, {
193+
messageRetentionInDays: 4,
194+
partitionCount: 4,
195+
status: "Active",
196+
captureDescription: {
197+
enabled: true,
198+
encoding: "Avro",
199+
intervalInSeconds: 120,
200+
sizeLimitInBytes: 10485763,
201+
destination: {
202+
name: "EventHubArchive.AzureBlockBlob",
203+
storageAccountResourceId: "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/" + storageAccountName,
204+
blobContainer: "container",
205+
archiveNameFormat: "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}",
206+
}
207+
}
208+
});
209+
})
183210

184211
it("diagnosticSettings create test", async () => {
185-
workflowsId = (
186-
(await logic_client.workflows.get(resourceGroup, workflowName)).id || "/"
187-
).substring(1);
188-
storageId =
189-
(await storage_client.storageAccounts.getProperties(resourceGroup, storageAccountName)).id ||
190-
"";
191-
authorizationId =
192-
(
193-
await eventhub_client.namespaces.getAuthorizationRule(
194-
resourceGroup,
195-
namespaceName,
196-
authorizationRuleName,
197-
)
198-
).id || "";
212+
workflowsId = ((await logic_client.workflows.get(resourceGroup, workflowName)).id || "/").substring(1)
213+
storageId = (await storage_client.storageAccounts.getProperties(resourceGroup, storageAccountName)).id || "";
214+
authorizationId = (await eventhub_client.namespaces.getAuthorizationRule(resourceGroup, namespaceName, authorizationRuleName)).id || "";
199215
workspaceId = (await op_client.workspaces.get(resourceGroup, workspaceName)).id || "";
200216
const res = await client.diagnosticSettings.createOrUpdate(workflowsId, diagnosticName, {
201217
storageAccountId: storageId,
@@ -209,11 +225,11 @@ describe("Monitor test", () => {
209225
enabled: true,
210226
retentionPolicy: {
211227
enabled: false,
212-
days: 0,
213-
},
214-
},
215-
],
216-
});
228+
days: 0
229+
}
230+
}
231+
]
232+
})
217233
assert.equal(res.name, diagnosticName);
218234
});
219235

@@ -222,29 +238,41 @@ describe("Monitor test", () => {
222238
assert.equal(res.name, diagnosticName);
223239
});
224240

225-
it("diagnosticSettings list test", async () => {});
241+
it("diagnosticSettings list test", async () => {
242+
const res = await client.diagnosticSettings.list(workflowsId);
243+
assert.ok(res);
244+
});
226245

227-
it("diagnosticSettings delete test", async () => {});
246+
it("diagnosticSettings delete test", async () => {
247+
const res = await client.diagnosticSettings.delete(workflowsId, diagnosticName);
248+
assert.ok(res);
249+
});
228250

229251
it("logProfiles create test", async () => {
230-
// delete sample logfile
252+
//delete sample logfile
231253
const resArray = new Array();
232254
for await (const item of client.logProfiles.list()) {
233255
resArray.push(item);
234256
}
235257
if (resArray.length >= 1) {
236-
await client.logProfiles.delete("sample-log-profile");
258+
await client.logProfiles.delete("sample-log-profile")
237259
}
238260
const res = await client.logProfiles.createOrUpdate(logProfileName, {
239261
location: "",
240-
locations: ["global"],
241-
categories: ["Write", "Delete", "Action"],
262+
locations: [
263+
"global"
264+
],
265+
categories: [
266+
"Write",
267+
"Delete",
268+
"Action"
269+
],
242270
retentionPolicy: {
243271
enabled: true,
244-
days: 3,
272+
days: 3
245273
},
246-
storageAccountId: storageId,
247-
});
274+
storageAccountId: storageId
275+
})
248276
assert.equal(res.name, logProfileName);
249277
});
250278

@@ -266,9 +294,8 @@ describe("Monitor test", () => {
266294
resourceGroup,
267295
azureMonitorWorkspaceName,
268296
{
269-
location,
270-
},
271-
);
297+
location
298+
});
272299
assert.equal(res.name, azureMonitorWorkspaceName);
273300
});
274301

@@ -287,23 +314,44 @@ describe("Monitor test", () => {
287314

288315
it("workspace delete test", async () => {
289316
const resArray = new Array();
317+
await client.azureMonitorWorkspaces.beginDeleteAndWait(resourceGroup, azureMonitorWorkspaceName);
290318
for await (const item of client.azureMonitorWorkspaces.listByResourceGroup(resourceGroup)) {
291319
resArray.push(item);
292320
}
293321
assert.equal(resArray.length, 0);
294322
});
295323

296-
it("metric listAtSubscriptionScope test", async () => {});
324+
it("metric listAtSubscriptionScope test", async () => {
325+
await client.metricsOperations.listAtSubscriptionScope(
326+
location,
327+
{
328+
metricnamespace: "microsoft.compute/virtualmachines"
329+
}
330+
);
331+
});
297332

298-
it("metric list test", async () => {});
333+
it("metric list test", async () => {
334+
await client.metricsOperations.list(
335+
"subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/" + storageAccountName + "/blobServices/default",
336+
{
337+
metricnamespace: "Microsoft.Storage/storageAccounts/blobServices"
338+
}
339+
);
340+
});
299341

300-
it("delete parameters for diagnosticSettings", async () => {});
342+
it("delete parameters for diagnosticSettings", async () => {
343+
await logic_client.workflows.delete(resourceGroup, workflowName);
344+
await storage_client.storageAccounts.delete(resourceGroup, storageAccountName);
345+
await eventhub_client.namespaces.beginDeleteAndWait(resourceGroup, namespaceName, testPollingOptions);
346+
await op_client.workspaces.beginDeleteAndWait(resourceGroup, workspaceName, testPollingOptions);
347+
});
301348

302349
it("logProfiles delete test", async () => {
350+
await client.logProfiles.delete(logProfileName);
303351
const resArray = new Array();
304352
for await (const item of client.logProfiles.list()) {
305353
resArray.push(item);
306354
}
307-
assert.equal(resArray.length, 1); // still exist sample logfile
355+
assert.equal(resArray.length, 1); //still exist sample logfile
308356
});
309357
});

sdk/storage/arm-storage/CHANGELOG.md

+47-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,53 @@
11
# Release History
2-
3-
## 18.3.1 (Unreleased)
4-
2+
3+
## 18.4.0 (2025-02-27)
4+
55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Added operation FileServices.getServiceUsage
8+
- Added operation FileServices.listServiceUsages
9+
- Added Interface AccountLimits
10+
- Added Interface AccountUsage
11+
- Added Interface AccountUsageElements
12+
- Added Interface BurstingConstants
13+
- Added Interface FileServicesGetServiceUsageOptionalParams
14+
- Added Interface FileServicesListServiceUsagesNextOptionalParams
15+
- Added Interface FileServicesListServiceUsagesOptionalParams
16+
- Added Interface FileServiceUsage
17+
- Added Interface FileServiceUsageProperties
18+
- Added Interface FileServiceUsages
19+
- Added Interface FileShareLimits
20+
- Added Interface FileSharePropertiesFileSharePaidBursting
21+
- Added Interface FileShareRecommendations
22+
- Added Interface ObjectReplicationPolicyPropertiesMetrics
23+
- Added Type Alias FileServicesGetServiceUsageResponse
24+
- Added Type Alias FileServicesListServiceUsagesNextResponse
25+
- Added Type Alias FileServicesListServiceUsagesResponse
26+
- Interface FileShare has a new optional parameter fileSharePaidBursting
27+
- Interface FileShare has a new optional parameter includedBurstIops
28+
- Interface FileShare has a new optional parameter maxBurstCreditsForIops
29+
- Interface FileShare has a new optional parameter nextAllowedProvisionedBandwidthDowngradeTime
30+
- Interface FileShare has a new optional parameter nextAllowedProvisionedIopsDowngradeTime
31+
- Interface FileShare has a new optional parameter nextAllowedQuotaDowngradeTime
32+
- Interface FileShare has a new optional parameter provisionedBandwidthMibps
33+
- Interface FileShare has a new optional parameter provisionedIops
34+
- Interface FileShareItem has a new optional parameter fileSharePaidBursting
35+
- Interface FileShareItem has a new optional parameter includedBurstIops
36+
- Interface FileShareItem has a new optional parameter maxBurstCreditsForIops
37+
- Interface FileShareItem has a new optional parameter nextAllowedProvisionedBandwidthDowngradeTime
38+
- Interface FileShareItem has a new optional parameter nextAllowedProvisionedIopsDowngradeTime
39+
- Interface FileShareItem has a new optional parameter nextAllowedQuotaDowngradeTime
40+
- Interface FileShareItem has a new optional parameter provisionedBandwidthMibps
41+
- Interface FileShareItem has a new optional parameter provisionedIops
42+
- Interface ObjectReplicationPolicy has a new optional parameter metrics
43+
- Enum KnownSkuName has a new value PremiumV2LRS
44+
- Enum KnownSkuName has a new value PremiumV2ZRS
45+
- Enum KnownSkuName has a new value StandardV2GRS
46+
- Enum KnownSkuName has a new value StandardV2Gzrs
47+
- Enum KnownSkuName has a new value StandardV2LRS
48+
- Enum KnownSkuName has a new value StandardV2ZRS
49+
50+
1351
## 18.3.0 (2024-06-27)
1452

1553
### Features Added

0 commit comments

Comments
 (0)