Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR @azure/arm-storagecache] [Go]Add batch tag 22/03/17 #20756

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
19 changes: 19 additions & 0 deletions sdk/storagecache/arm-storagecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Release History

## 5.1.0 (2022-03-10)

**Features**

- Added operation group AscUsages
- Added operation StorageTargetOperations.beginInvalidate
- Added operation StorageTargetOperations.beginInvalidateAndWait
- Added Interface AscUsagesListNextOptionalParams
- Added Interface AscUsagesListOptionalParams
- Added Interface ResourceUsage
- Added Interface ResourceUsageName
- Added Interface ResourceUsagesListResult
- Added Interface StorageTargetInvalidateOptionalParams
- Added Type Alias AscUsagesListNextResponse
- Added Type Alias AscUsagesListResponse
- Interface Cache_2 has a new optional parameter zones
- Class StorageCacheManagementClient has a new parameter ascUsages


## 5.0.0 (2022-01-21)

The package of @azure/arm-storagecache is using our next generation design principles since version 5.0.0, which contains breaking changes.
Expand Down
7 changes: 4 additions & 3 deletions sdk/storagecache/arm-storagecache/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
"commit": "7c2b7fac26af92ebe41cc7a437b52e64d8b93448",
"readme": "specification/storagecache/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:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/storagecache/resource-manager/readme.md --use=@autorest/[email protected].20220114.1 --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=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/storagecache/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected]"
"release_tool": "@azure-tools/[email protected]",
"use": "@autorest/[email protected]"
}
25 changes: 19 additions & 6 deletions sdk/storagecache/arm-storagecache/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": { "enabled": true },
"apiReport": { "enabled": true, "reportFolder": "./review" },
"docModel": {
"enabled": true
},
"apiReport": {
"enabled": true,
"reportFolder": "./review"
},
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "./types/arm-storagecache.d.ts"
},
"messages": {
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
"tsdocMessageReporting": {
"default": {
"logLevel": "none"
}
},
"extractorMessageReporting": {
"ae-missing-release-tag": { "logLevel": "none" },
"ae-unresolved-link": { "logLevel": "none" }
"ae-missing-release-tag": {
"logLevel": "none"
},
"ae-unresolved-link": {
"logLevel": "none"
}
}
}
}
}
36 changes: 16 additions & 20 deletions sdk/storagecache/arm-storagecache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for StorageCacheManagementClient.",
"version": "5.0.0",
"engines": { "node": ">=12.0.0" },
"version": "5.1.0",
"engines": {
"node": ">=12.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
Expand All @@ -14,7 +16,13 @@
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -41,7 +49,9 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand Down Expand Up @@ -88,19 +98,5 @@
"docs": "echo skipped"
},
"sideEffects": false,
"//metadata": {
"constantPaths": [
{
"path": "src/StorageCacheManagementClient.ts",
"prefix": "packageDetails"
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": ["azure"],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storagecache?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,25 @@ export interface AscOperationsGetOptionalParams extends coreClient.OperationOpti
// @public
export type AscOperationsGetResponse = AscOperation;

// @public
export interface AscUsages {
list(location: string, options?: AscUsagesListOptionalParams): PagedAsyncIterableIterator<ResourceUsage>;
}

// @public
export interface AscUsagesListNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type AscUsagesListNextResponse = ResourceUsagesListResult;

// @public
export interface AscUsagesListOptionalParams extends coreClient.OperationOptions {
}

// @public
export type AscUsagesListResponse = ResourceUsagesListResult;

// @public
export interface BlobNfsTarget {
target?: string;
Expand Down Expand Up @@ -91,6 +110,7 @@ interface Cache_2 {
};
readonly type?: string;
readonly upgradeStatus?: CacheUpgradeStatus;
zones?: string[];
}
export { Cache_2 as Cache }

Expand Down Expand Up @@ -640,6 +660,26 @@ export interface ResourceSkusResult {
readonly value?: ResourceSku[];
}

// @public
export interface ResourceUsage {
readonly currentValue?: number;
readonly limit?: number;
readonly name?: ResourceUsageName;
readonly unit?: string;
}

// @public
export interface ResourceUsageName {
localizedValue?: string;
value?: string;
}

// @public
export interface ResourceUsagesListResult {
readonly nextLink?: string;
readonly value?: ResourceUsage[];
}

// @public
export interface Restriction {
reasonCode?: ReasonCode;
Expand Down Expand Up @@ -676,6 +716,8 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient {
// (undocumented)
ascOperations: AscOperations;
// (undocumented)
ascUsages: AscUsages;
// (undocumented)
caches: Caches;
// (undocumented)
operations: Operations;
Expand Down Expand Up @@ -716,10 +758,18 @@ export interface StorageTargetFlushOptionalParams extends coreClient.OperationOp
updateIntervalInMs?: number;
}

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

// @public
export interface StorageTargetOperations {
beginFlush(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetFlushOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginFlushAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetFlushOptionalParams): Promise<void>;
beginInvalidate(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetInvalidateOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginInvalidateAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetInvalidateOptionalParams): Promise<void>;
beginResume(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetResumeOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginResumeAndWait(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetResumeOptionalParams): Promise<void>;
beginSuspend(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: StorageTargetSuspendOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
Expand Down
71 changes: 71 additions & 0 deletions sdk/storagecache/arm-storagecache/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,52 @@ export interface ErrorResponse {
message?: string;
}

/** Result of the request to list resource usages. It contains a list of resource usages & limits and a URL link to get the next set of results. */
export interface ResourceUsagesListResult {
/**
* URL to get the next set of resource usage list results if there are any.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
/**
* List of usages and limits for resources controlled by the Microsoft.StorageCache resource provider.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: ResourceUsage[];
}

/** The usage and limit (quota) for a resource. */
export interface ResourceUsage {
/**
* The limit (quota) for this resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly limit?: number;
/**
* Unit that the limit and usages are expressed in, such as 'Count'.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly unit?: string;
/**
* The current usage of this resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly currentValue?: number;
/**
* Naming information for this resource type.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: ResourceUsageName;
}

/** Naming information for this resource type. */
export interface ResourceUsageName {
/** Canonical name for this resource type. */
value?: string;
/** Localized name for this resource type. */
localizedValue?: string;
}

/** Result of the request to list Caches. It contains a list of Caches and a URL link to get the next set of results. */
export interface CachesListResult {
/** URL to get the next set of Cache list results, if there are any. */
Expand Down Expand Up @@ -283,6 +329,8 @@ export interface Cache {
securitySettings?: CacheSecuritySettings;
/** Specifies Directory Services settings of the cache. */
directoryServicesSettings?: CacheDirectorySettings;
/** Availability zones for resources. This field should only contain a single element in the array. */
zones?: string[];
}

/** Cache identity properties. */
Expand Down Expand Up @@ -963,6 +1011,20 @@ export interface AscOperationsGetOptionalParams
/** Contains response data for the get operation. */
export type AscOperationsGetResponse = AscOperation;

/** Optional parameters. */
export interface AscUsagesListOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the list operation. */
export type AscUsagesListResponse = ResourceUsagesListResult;

/** Optional parameters. */
export interface AscUsagesListNextOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listNext operation. */
export type AscUsagesListNextResponse = ResourceUsagesListResult;

/** Optional parameters. */
export interface CachesListOptionalParams extends coreClient.OperationOptions {}

Expand Down Expand Up @@ -1153,6 +1215,15 @@ export interface StorageTargetResumeOptionalParams
resumeFrom?: string;
}

/** Optional parameters. */
export interface StorageTargetInvalidateOptionalParams
extends coreClient.OperationOptions {
/** Delay to wait until next poll, in milliseconds. */
updateIntervalInMs?: number;
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
resumeFrom?: string;
}

/** Optional parameters. */
export interface StorageCacheManagementClientOptionalParams
extends coreClient.ServiceClientOptions {
Expand Down
Loading