Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 3 additions & 13 deletions sdk/storageactions/arm-storageactions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
# Release History

## 1.0.0 (2024-05-08)

## 1.0.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0-beta.1 (2024-03-07)

The package of @azure/arm-storageactions is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
The package of @azure/arm-storageactions is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
2 changes: 1 addition & 1 deletion sdk/storageactions/arm-storageactions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Azure Storage Actions Management API.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storageactions/arm-storageactions) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-storageactions) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storageactions?view=azure-node-preview) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storageactions) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/storageactions/arm-storageactions/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "84849e5293de3a8e01cbdde13b2d7086d3fb34d6",
"commit": "8cbc671daa5e025927f2d983151cbcfe1f4b6ec0",
"readme": "specification/storageactions/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\storageactions\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --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/storageactions/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"use": "@autorest/typescript@6.0.17"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.8",
"use": "@autorest/typescript@^6.0.12"
}
15 changes: 4 additions & 11 deletions sdk/storageactions/arm-storageactions/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 StorageActionsManagementClient.",
"version": "1.0.0-beta.2",
"version": "1.0.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -40,6 +40,7 @@
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -105,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storageactions/arm-storageactions",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storageactions?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storageactions/arm-storageactions"
}
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ export interface StorageActionsManagementClientOptionalParams extends coreClient

// @public
export interface StorageTask extends TrackedResource {
identity?: ManagedServiceIdentity;
properties?: StorageTaskProperties;
identity: ManagedServiceIdentity;
properties: StorageTaskProperties;
}

// @public
Expand Down
36 changes: 18 additions & 18 deletions sdk/storageactions/arm-storageactions/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export interface StorageTaskAction {

/** The if block of storage task operation */
export interface IfCondition {
/** The condition predicate which is composed of object properties, eg: blob and container properties. */
/** Condition predicate to evaluate each object. See https://aka.ms/storagetaskconditions for valid properties and operators. */
condition: string;
/** List of operations to execute when the condition predicate satisfies. */
operations: StorageTaskOperation[];
Expand Down Expand Up @@ -264,7 +264,7 @@ export interface StorageTaskUpdateParameters {
properties?: StorageTaskProperties;
}

/** The response from the List Storage Tasks operation. */
/** The response from the List Storage Task operation. */
export interface StorageTasksListResult {
/**
* Gets the list of storage tasks and their properties.
Expand All @@ -281,21 +281,21 @@ export interface StorageTasksListResult {
/** The response from the List Storage Tasks operation. */
export interface StorageTaskAssignmentsListResult {
/**
* Gets the list of storage task assignment Ids.
* List of Storage Task Assignment Resource IDs associated with this Storage Task.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: StorageTaskAssignment[];
/**
* Request URL that can be used to query next page of storage task assignment Ids. Returned when total number of requested storage task assignment Ids exceed maximum page size.
* Request URL that can be used to query next page of Resource IDs. Returned when total number of requested Resource IDs exceed maximum page size.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
}

/** Fetch the Storage task assignment ARM ids. */
/** Storage Task Assignment associated with this Storage Task. */
export interface StorageTaskAssignment {
/**
* ARM Id of the storage task assignments, associated with the storage tasks.
* Resource ID of the Storage Task Assignment.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
Expand All @@ -318,12 +318,12 @@ export interface StorageTaskReportSummary {
/** Storage task execution report for a run instance. */
export interface StorageTaskReportProperties {
/**
* Represents the Storage Task Assignment Id associated with the storage task that provided an execution context.
* Resource ID of the Storage Task Assignment associated with this reported run.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly taskAssignmentId?: string;
/**
* Represents the Storage Account Id where the storage task definition was applied and executed.
* Resource ID of the Storage Account where this reported run executed.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly storageAccountId?: string;
Expand Down Expand Up @@ -373,7 +373,7 @@ export interface StorageTaskReportProperties {
*/
readonly summaryReportPath?: string;
/**
* Storage Task Arm Id.
* Resource ID of the Storage Task applied during this run.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly taskId?: string;
Expand All @@ -397,17 +397,17 @@ export interface StorageTaskPreviewAction {

/** Storage task preview action properties. */
export interface StorageTaskPreviewActionProperties {
/** Preview action container properties to be tested for a match with the provided condition. */
/** Properties of a sample container to test for a match with the preview action. */
container: StorageTaskPreviewContainerProperties;
/** Preview action container properties to be tested for a match with the provided condition. */
/** Properties of some sample blobs in the container to test for matches with the preview action. */
blobs: StorageTaskPreviewBlobProperties[];
/** Preview action container properties to be tested for a match with the provided condition. */
/** Preview action to test */
action: StorageTaskPreviewActionCondition;
}

/** Storage task preview container properties */
export interface StorageTaskPreviewContainerProperties {
/** property for the container name. */
/** Name of test container */
name?: string;
/** metadata key value pairs to be tested for a match against the provided condition. */
metadata?: StorageTaskPreviewKeyValueProperties[];
Expand All @@ -423,7 +423,7 @@ export interface StorageTaskPreviewKeyValueProperties {

/** Storage task preview container properties */
export interface StorageTaskPreviewBlobProperties {
/** property for the container name. */
/** Name of test blob */
name?: string;
/** properties key value pairs to be tested for a match against the provided condition. */
properties?: StorageTaskPreviewKeyValueProperties[];
Expand Down Expand Up @@ -466,9 +466,9 @@ export interface ProxyResource extends Resource {}
/** Represents Storage Task. */
export interface StorageTask extends TrackedResource {
/** The managed service identity of the resource. */
identity?: ManagedServiceIdentity;
identity: ManagedServiceIdentity;
/** Properties of the storage task. */
properties?: StorageTaskProperties;
properties: StorageTaskProperties;
}

/** Storage Tasks run report instance */
Expand Down Expand Up @@ -771,7 +771,7 @@ export type StorageTasksListByResourceGroupNextResponse =
/** Optional parameters. */
export interface StorageTaskAssignmentListOptionalParams
extends coreClient.OperationOptions {
/** Optional, specifies the maximum number of storage task assignment Ids to be included in the list response. */
/** Optional, specifies the maximum number of Storage Task Assignment Resource IDs to be included in the list response. */
maxpagesize?: string;
}

Expand All @@ -790,7 +790,7 @@ export type StorageTaskAssignmentListNextResponse =
/** Optional parameters. */
export interface StorageTasksReportListOptionalParams
extends coreClient.OperationOptions {
/** Optional, specifies the maximum number of storage task assignment Ids to be included in the list response. */
/** Optional, specifies the maximum number of Storage Task Assignment Resource IDs to be included in the list response. */
maxpagesize?: string;
/** Optional. When specified, it can be used to query using reporting properties. */
filter?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class StorageTaskAssignmentOperationsImpl
}

/**
* Lists all the storage tasks available under the given resource group.
* Lists Resource IDs of the Storage Task Assignments associated with this Storage Task.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param storageTaskName The name of the storage task within the specified resource group. Storage
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
Expand Down Expand Up @@ -119,7 +119,7 @@ export class StorageTaskAssignmentOperationsImpl
}

/**
* Lists all the storage tasks available under the given resource group.
* Lists Resource IDs of the Storage Task Assignments associated with this Storage Task.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param storageTaskName The name of the storage task within the specified resource group. Storage
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
/** Interface representing a StorageTaskAssignmentOperations. */
export interface StorageTaskAssignmentOperations {
/**
* Lists all the storage tasks available under the given resource group.
* Lists Resource IDs of the Storage Task Assignments associated with this Storage Task.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param storageTaskName The name of the storage task within the specified resource group. Storage
* task names must be between 3 and 18 characters in length and use numbers and lower-case letters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class StorageActionsManagementClient extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-storageactions/1.0.0-beta.2`;
const packageDetails = `azsdk-js-arm-storageactions/1.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
43 changes: 43 additions & 0 deletions sdk/storageactions/arm-storageactions/test/sampleTest.ts
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!");
});
});
10 changes: 2 additions & 8 deletions sdk/storageactions/arm-storageactions/tsconfig.json
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-storageactions": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down