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

[AutoPR @azure/arm-storage] update sample #4008

Closed
wants to merge 1 commit into from
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
14 changes: 7 additions & 7 deletions common/config/rush/pnpm-lock.yaml

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

27 changes: 17 additions & 10 deletions sdk/storage/arm-storage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
# Release History

## 19.0.0 (2023-02-20)

**Breaking Changes**

## 18.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface BlobContainersListNextOptionalParams no longer has parameter filter
- Interface BlobContainersListNextOptionalParams no longer has parameter include
- Interface BlobContainersListNextOptionalParams no longer has parameter maxpagesize
- Interface EncryptionScopesListNextOptionalParams no longer has parameter filter
- Interface EncryptionScopesListNextOptionalParams no longer has parameter include
- Interface EncryptionScopesListNextOptionalParams no longer has parameter maxpagesize
- Interface FileSharesListNextOptionalParams no longer has parameter expand
- Interface FileSharesListNextOptionalParams no longer has parameter filter
- Interface FileSharesListNextOptionalParams no longer has parameter maxpagesize
- Interface QueueListNextOptionalParams no longer has parameter filter
- Interface QueueListNextOptionalParams no longer has parameter maxpagesize


## 18.1.0 (2022-11-24)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/arm-storage/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Microsoft
Copyright (c) 2023 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions sdk/storage/arm-storage/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "c583b05741fadfdca116be3b9ccb1c4be8a73258",
"commit": "141ff1e194e86f0742c0a876081c24f75a7780a4",
"readme": "specification/storage/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --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\\storage\\resource-manager\\readme.md --use=@autorest/[email protected].3.20221108.1 --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/storage/resource-manager/readme.md --use=@autorest/[email protected].5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected].3.20221108.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/[email protected].5"
}
20 changes: 6 additions & 14 deletions sdk/storage/arm-storage/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 StorageManagementClient.",
"version": "18.1.1",
"version": "19.0.0",
"engines": {
"node": ">=14.0.0"
},
Expand All @@ -29,9 +29,9 @@
"types": "./types/arm-storage.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
Expand Down Expand Up @@ -110,13 +110,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storage?view=azure-node-preview"
}
}
"autoPublish": true
}
11 changes: 0 additions & 11 deletions sdk/storage/arm-storage/review/arm-storage.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,6 @@ export type BlobContainersLeaseResponse = LeaseContainerResponse;

// @public
export interface BlobContainersListNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
include?: ListContainersInclude;
maxpagesize?: string;
}

// @public
Expand Down Expand Up @@ -604,9 +601,6 @@ export type EncryptionScopesGetResponse = EncryptionScope;

// @public
export interface EncryptionScopesListNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
include?: ListEncryptionScopesInclude;
maxpagesize?: number;
}

// @public
Expand Down Expand Up @@ -837,9 +831,6 @@ export type FileSharesLeaseResponse = FileSharesLeaseHeaders & LeaseShareRespons

// @public
export interface FileSharesListNextOptionalParams extends coreClient.OperationOptions {
expand?: string;
filter?: string;
maxpagesize?: string;
}

// @public
Expand Down Expand Up @@ -1983,8 +1974,6 @@ export type QueueGetResponse = StorageQueue;

// @public
export interface QueueListNextOptionalParams extends coreClient.OperationOptions {
filter?: string;
maxpagesize?: string;
}

// @public
Expand Down
34 changes: 4 additions & 30 deletions sdk/storage/arm-storage/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3979,14 +3979,7 @@ export type EncryptionScopesListResponse = EncryptionScopeListResult;

/** Optional parameters. */
export interface EncryptionScopesListNextOptionalParams
extends coreClient.OperationOptions {
/** Optional, specifies the maximum number of encryption scopes that will be included in the list response. */
maxpagesize?: number;
/** Optional. When specified, only encryption scope names starting with the filter will be listed. */
filter?: string;
/** Optional, when specified, will list encryption scopes with the specific state. Defaults to All */
include?: ListEncryptionScopesInclude;
}
extends coreClient.OperationOptions {}

/** Contains response data for the listNext operation. */
export type EncryptionScopesListNextResponse = EncryptionScopeListResult;
Expand Down Expand Up @@ -4137,14 +4130,7 @@ export interface BlobContainersObjectLevelWormOptionalParams

/** Optional parameters. */
export interface BlobContainersListNextOptionalParams
extends coreClient.OperationOptions {
/** Optional. When specified, only container names starting with the filter will be listed. */
filter?: string;
/** Optional. Specified maximum number of containers that can be included in the list. */
maxpagesize?: string;
/** Optional, used to include the properties for soft deleted blob containers. */
include?: ListContainersInclude;
}
extends coreClient.OperationOptions {}

/** Contains response data for the listNext operation. */
export type BlobContainersListNextResponse = ListContainerItems;
Expand Down Expand Up @@ -4241,14 +4227,7 @@ export type FileSharesLeaseResponse = FileSharesLeaseHeaders &

/** Optional parameters. */
export interface FileSharesListNextOptionalParams
extends coreClient.OperationOptions {
/** Optional. When specified, only share names starting with the filter will be listed. */
filter?: string;
/** Optional. Specified maximum number of shares that can be included in the list. */
maxpagesize?: string;
/** Optional, used to expand the properties within share's properties. Valid values are: deleted, snapshots. Should be passed as a string with delimiter ',' */
expand?: string;
}
extends coreClient.OperationOptions {}

/** Contains response data for the listNext operation. */
export type FileSharesListNextResponse = FileShareItems;
Expand Down Expand Up @@ -4311,12 +4290,7 @@ export type QueueListResponse = ListQueueResource;

/** Optional parameters. */
export interface QueueListNextOptionalParams
extends coreClient.OperationOptions {
/** Optional, When specified, only the queues with a name starting with the given filter will be listed. */
filter?: string;
/** Optional, a maximum number of queues that should be included in a list queue response */
maxpagesize?: string;
}
extends coreClient.OperationOptions {}

/** Contains response data for the listNext operation. */
export type QueueListNextResponse = ListQueueResource;
Expand Down
6 changes: 0 additions & 6 deletions sdk/storage/arm-storage/src/operations/blobContainers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -952,12 +952,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
bodyMapper: Mappers.ListContainerItems
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.maxpagesize1,
Parameters.include1
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Expand Down
1 change: 0 additions & 1 deletion sdk/storage/arm-storage/src/operations/deletedAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
bodyMapper: Mappers.ErrorResponse
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Expand Down
6 changes: 0 additions & 6 deletions sdk/storage/arm-storage/src/operations/encryptionScopes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
bodyMapper: Mappers.EncryptionScopeListResult
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.maxpagesize,
Parameters.filter,
Parameters.include
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Expand Down
6 changes: 0 additions & 6 deletions sdk/storage/arm-storage/src/operations/fileShares.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,12 +513,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.maxpagesize1,
Parameters.expand2
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Expand Down
5 changes: 0 additions & 5 deletions sdk/storage/arm-storage/src/operations/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [
Parameters.apiVersion,
Parameters.filter,
Parameters.maxpagesize1
],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Expand Down
6 changes: 2 additions & 4 deletions sdk/storage/arm-storage/src/operations/storageAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export class StorageAccountsImpl implements StorageAccounts {
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
* to 'Planned'. Learn more about the failover options here-
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
* https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
Expand Down Expand Up @@ -588,7 +588,7 @@ export class StorageAccountsImpl implements StorageAccounts {
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
* to 'Planned'. Learn more about the failover options here-
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
* https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
Expand Down Expand Up @@ -1279,7 +1279,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
bodyMapper: Mappers.StorageAccountListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Expand All @@ -1296,7 +1295,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
bodyMapper: Mappers.StorageAccountListResult
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Expand Down
1 change: 0 additions & 1 deletion sdk/storage/arm-storage/src/operations/tableOperations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ const listNextOperationSpec: coreClient.OperationSpec = {
bodyMapper: Mappers.CloudError
}
},
queryParameters: [Parameters.apiVersion],
urlParameters: [
Parameters.$host,
Parameters.subscriptionId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export interface StorageAccounts {
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
* to 'Planned'. Learn more about the failover options here-
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidanceS
* https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
Expand All @@ -268,7 +268,7 @@ export interface StorageAccounts {
* primary and secondary endpoints are available. The primary use case of a Planned Failover is
* disaster recovery testing drills. This type of failover is invoked by setting FailoverType parameter
* to 'Planned'. Learn more about the failover options here-
* https://learn.microsoft.com/azure/storage/common/storage-disaster-recovery-guidance
* https://learn.microsoft.com/en-us/azure/storage/common/storage-disaster-recovery-guidance
* @param resourceGroupName The name of the resource group within the user's subscription. The name is
* case insensitive.
* @param accountName The name of the storage account within the specified resource group. Storage
Expand Down
8 changes: 4 additions & 4 deletions sdk/storage/arm-storage/src/pagingHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export interface PageInfo {
const pageMap = new WeakMap<object, PageInfo>();

/**
* Given a result page from a pageable operation, returns a
* continuation token that can be used to begin paging from
* Given the last `.value` produced by the `byPage` iterator,
* returns a continuation token that can be used to begin paging from
* that point later.
* @param page A result object from calling .byPage() on a paged operation.
* @returns The continuation token that can be passed into byPage().
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
* @returns The continuation token that can be passed into byPage() during future calls.
*/
export function getContinuationToken(page: unknown): string | undefined {
if (typeof page !== "object" || page === null) {
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/arm-storage/src/storageManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export class StorageManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-storage/18.1.1`;
const packageDetails = `azsdk-js-arm-storage/19.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
Loading