Skip to content

Commit 679b6d3

Browse files
author
SDKAuto
committed
CodeGen from PR 22574 in Azure/azure-rest-api-specs
Merge 96d6481afbd67f3f8a2b7d09f9d489fd89593fa2 into 56435032b69cc7ebb5c1052b66c7865d0c48f33c
1 parent 054b79a commit 679b6d3

File tree

15 files changed

+894
-40
lines changed

15 files changed

+894
-40
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Release History
22

3-
## 1.0.0-beta.2 (2023-02-09)
3+
## 1.0.0 (2023-02-24)
44

55
The package of @azure/arm-dataprotection is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "d66735f5dc80731ee5c7a31399c2a46f8743153a",
2+
"commit": "9cc2523e91a4fe261489884a7a44d033afcb7c29",
33
"readme": "specification/dataprotection/resource-manager/readme.md",
4-
"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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\dataprotection\\resource-manager\\readme.md --use=@autorest/[email protected].7 --generate-sample=true",
4+
"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/dataprotection/resource-manager/readme.md --use=@autorest/[email protected].5",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].1",
7-
"use": "@autorest/[email protected].7"
6+
"release_tool": "@azure-tools/[email protected].2",
7+
"use": "@autorest/[email protected].5"
88
}

sdk/dataprotection/arm-dataprotection/package.json

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for DataProtectionClient.",
6-
"version": "1.0.0-beta.2",
6+
"version": "1.0.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
@@ -29,17 +29,16 @@
2929
"types": "./types/arm-dataprotection.d.ts",
3030
"devDependencies": {
3131
"@microsoft/api-extractor": "^7.31.1",
32-
"@rollup/plugin-commonjs": "^24.0.0",
33-
"@rollup/plugin-json": "^6.0.0",
34-
"@rollup/plugin-multi-entry": "^6.0.0",
32+
"@rollup/plugin-commonjs": "^21.0.1",
33+
"@rollup/plugin-json": "^4.1.0",
34+
"@rollup/plugin-multi-entry": "^4.1.0",
3535
"@rollup/plugin-node-resolve": "^13.1.3",
3636
"mkdirp": "^1.0.4",
3737
"rollup": "^2.66.1",
3838
"rollup-plugin-sourcemaps": "^0.6.3",
3939
"typescript": "~4.8.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
42-
"dotenv": "^8.2.0",
4342
"@azure/identity": "^2.0.1",
4443
"@azure-tools/test-recorder": "^2.0.0",
4544
"@azure-tools/test-credential": "^1.0.0",
@@ -50,6 +49,7 @@
5049
"@types/node": "^14.0.0",
5150
"@azure/dev-tool": "^1.0.0"
5251
},
52+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dataprotection/arm-dataprotection",
5353
"repository": {
5454
"type": "git",
5555
"url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -110,14 +110,5 @@
110110
}
111111
]
112112
},
113-
"autoPublish": true,
114-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dataprotection/arm-dataprotection",
115-
"//sampleConfiguration": {
116-
"productName": "",
117-
"productSlugs": [
118-
"azure"
119-
],
120-
"disableDocsMs": true,
121-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-dataprotection?view=azure-node-preview"
122-
}
123-
}
113+
"autoPublish": true
114+
}

sdk/dataprotection/arm-dataprotection/review/arm-dataprotection.api.md

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,8 @@ export class DataProtectionClient extends coreClient.ServiceClient {
858858
// (undocumented)
859859
deletedBackupInstances: DeletedBackupInstances;
860860
// (undocumented)
861+
dppResourceGuardProxy: DppResourceGuardProxy;
862+
// (undocumented)
861863
exportJobs: ExportJobs;
862864
// (undocumented)
863865
exportJobsOperationResult: ExportJobsOperationResult;
@@ -1077,6 +1079,54 @@ export interface DppResource {
10771079
readonly type?: string;
10781080
}
10791081

1082+
// @public
1083+
export interface DppResourceGuardProxy {
1084+
createOrUpdate(resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, parameters: ResourceGuardProxyBaseResource, options?: DppResourceGuardProxyCreateOrUpdateOptionalParams): Promise<DppResourceGuardProxyCreateOrUpdateResponse>;
1085+
delete(resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, options?: DppResourceGuardProxyDeleteOptionalParams): Promise<void>;
1086+
get(resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, options?: DppResourceGuardProxyGetOptionalParams): Promise<DppResourceGuardProxyGetResponse>;
1087+
list(resourceGroupName: string, vaultName: string, options?: DppResourceGuardProxyListOptionalParams): PagedAsyncIterableIterator<ResourceGuardProxyBaseResource>;
1088+
unlockDelete(resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, parameters: UnlockDeleteRequest, options?: DppResourceGuardProxyUnlockDeleteOptionalParams): Promise<DppResourceGuardProxyUnlockDeleteResponse>;
1089+
}
1090+
1091+
// @public
1092+
export interface DppResourceGuardProxyCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
1093+
}
1094+
1095+
// @public
1096+
export type DppResourceGuardProxyCreateOrUpdateResponse = ResourceGuardProxyBaseResource;
1097+
1098+
// @public
1099+
export interface DppResourceGuardProxyDeleteOptionalParams extends coreClient.OperationOptions {
1100+
}
1101+
1102+
// @public
1103+
export interface DppResourceGuardProxyGetOptionalParams extends coreClient.OperationOptions {
1104+
}
1105+
1106+
// @public
1107+
export type DppResourceGuardProxyGetResponse = ResourceGuardProxyBaseResource;
1108+
1109+
// @public
1110+
export interface DppResourceGuardProxyListNextOptionalParams extends coreClient.OperationOptions {
1111+
}
1112+
1113+
// @public
1114+
export type DppResourceGuardProxyListNextResponse = ResourceGuardProxyBaseResourceList;
1115+
1116+
// @public
1117+
export interface DppResourceGuardProxyListOptionalParams extends coreClient.OperationOptions {
1118+
}
1119+
1120+
// @public
1121+
export type DppResourceGuardProxyListResponse = ResourceGuardProxyBaseResourceList;
1122+
1123+
// @public
1124+
export interface DppResourceGuardProxyUnlockDeleteOptionalParams extends coreClient.OperationOptions {
1125+
}
1126+
1127+
// @public
1128+
export type DppResourceGuardProxyUnlockDeleteResponse = UnlockDeleteResponse;
1129+
10801130
// @public
10811131
export interface DppResourceList {
10821132
nextLink?: string;
@@ -1828,6 +1878,36 @@ export interface ResourceGuardOperation {
18281878
readonly vaultCriticalOperation?: string;
18291879
}
18301880

1881+
// @public
1882+
export interface ResourceGuardOperationDetail {
1883+
// (undocumented)
1884+
defaultResourceRequest?: string;
1885+
// (undocumented)
1886+
vaultCriticalOperation?: string;
1887+
}
1888+
1889+
// @public
1890+
export interface ResourceGuardProxyBase {
1891+
// (undocumented)
1892+
description?: string;
1893+
// (undocumented)
1894+
lastUpdatedTime?: string;
1895+
// (undocumented)
1896+
resourceGuardOperationDetails?: ResourceGuardOperationDetail[];
1897+
// (undocumented)
1898+
resourceGuardResourceId?: string;
1899+
}
1900+
1901+
// @public
1902+
export interface ResourceGuardProxyBaseResource extends DppResource {
1903+
properties?: ResourceGuardProxyBase;
1904+
}
1905+
1906+
// @public
1907+
export interface ResourceGuardProxyBaseResourceList extends DppResourceList {
1908+
value?: ResourceGuardProxyBaseResource[];
1909+
}
1910+
18311911
// @public (undocumented)
18321912
export interface ResourceGuardResource extends DppBaseTrackedResource {
18331913
properties?: ResourceGuard;
@@ -2252,6 +2332,19 @@ export interface TriggerContext {
22522332
// @public (undocumented)
22532333
export type TriggerContextUnion = TriggerContext | AdhocBasedTriggerContext | ScheduleBasedTriggerContext;
22542334

2335+
// @public
2336+
export interface UnlockDeleteRequest {
2337+
// (undocumented)
2338+
resourceGuardOperationRequests?: string[];
2339+
// (undocumented)
2340+
resourceToBeDeleted?: string;
2341+
}
2342+
2343+
// @public
2344+
export interface UnlockDeleteResponse {
2345+
unlockDeleteExpiryTime?: string;
2346+
}
2347+
22552348
// @public
22562349
export interface UserFacingError {
22572350
code?: string;

sdk/dataprotection/arm-dataprotection/src/dataProtectionClient.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ import {
3131
ExportJobsImpl,
3232
ExportJobsOperationResultImpl,
3333
DeletedBackupInstancesImpl,
34-
ResourceGuardsImpl
34+
ResourceGuardsImpl,
35+
DppResourceGuardProxyImpl
3536
} from "./operations";
3637
import {
3738
BackupVaults,
@@ -50,7 +51,8 @@ import {
5051
ExportJobs,
5152
ExportJobsOperationResult,
5253
DeletedBackupInstances,
53-
ResourceGuards
54+
ResourceGuards,
55+
DppResourceGuardProxy
5456
} from "./operationsInterfaces";
5557
import { DataProtectionClientOptionalParams } from "./models";
5658

@@ -86,7 +88,7 @@ export class DataProtectionClient extends coreClient.ServiceClient {
8688
credential: credentials
8789
};
8890

89-
const packageDetails = `azsdk-js-arm-dataprotection/1.0.0-beta.2`;
91+
const packageDetails = `azsdk-js-arm-dataprotection/1.0.0`;
9092
const userAgentPrefix =
9193
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
9294
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -163,6 +165,7 @@ export class DataProtectionClient extends coreClient.ServiceClient {
163165
this.exportJobsOperationResult = new ExportJobsOperationResultImpl(this);
164166
this.deletedBackupInstances = new DeletedBackupInstancesImpl(this);
165167
this.resourceGuards = new ResourceGuardsImpl(this);
168+
this.dppResourceGuardProxy = new DppResourceGuardProxyImpl(this);
166169
this.addCustomApiVersionPolicy(options.apiVersion);
167170
}
168171

@@ -211,4 +214,5 @@ export class DataProtectionClient extends coreClient.ServiceClient {
211214
exportJobsOperationResult: ExportJobsOperationResult;
212215
deletedBackupInstances: DeletedBackupInstances;
213216
resourceGuards: ResourceGuards;
217+
dppResourceGuardProxy: DppResourceGuardProxy;
214218
}

sdk/dataprotection/arm-dataprotection/src/models/index.ts

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,32 @@ export interface DppBaseResource {
995995
readonly type?: string;
996996
}
997997

998+
/** ResourceGuardProxyBase object, used in ResourceGuardProxyBaseResource */
999+
export interface ResourceGuardProxyBase {
1000+
resourceGuardResourceId?: string;
1001+
resourceGuardOperationDetails?: ResourceGuardOperationDetail[];
1002+
lastUpdatedTime?: string;
1003+
description?: string;
1004+
}
1005+
1006+
/** VaultCritical Operation protected by a resource guard */
1007+
export interface ResourceGuardOperationDetail {
1008+
vaultCriticalOperation?: string;
1009+
defaultResourceRequest?: string;
1010+
}
1011+
1012+
/** Request body of unlock delete API. */
1013+
export interface UnlockDeleteRequest {
1014+
resourceGuardOperationRequests?: string[];
1015+
resourceToBeDeleted?: string;
1016+
}
1017+
1018+
/** Response of Unlock Delete API. */
1019+
export interface UnlockDeleteResponse {
1020+
/** This is the time when unlock delete privileges will get expired. */
1021+
unlockDeleteExpiryTime?: string;
1022+
}
1023+
9981024
/** Delete Option */
9991025
export interface DeleteOption {
10001026
/** Polymorphic discriminator, which specifies the different types this object can be */
@@ -1244,6 +1270,12 @@ export interface DeletedBackupInstanceResourceList extends DppResourceList {
12441270
value?: DeletedBackupInstanceResource[];
12451271
}
12461272

1273+
/** List of ResourceGuardProxyBase resources */
1274+
export interface ResourceGuardProxyBaseResourceList extends DppResourceList {
1275+
/** List of resources. */
1276+
value?: ResourceGuardProxyBaseResource[];
1277+
}
1278+
12471279
/** Operation Job Extended Info */
12481280
export interface OperationJobExtendedInfo extends OperationExtendedInfo {
12491281
/** Polymorphic discriminator, which specifies the different types this object can be */
@@ -1312,6 +1344,12 @@ export interface DeletedBackupInstanceResource extends DppResource {
13121344
properties?: DeletedBackupInstance;
13131345
}
13141346

1347+
/** ResourceGuardProxyBaseResource object, used for response and request bodies for ResourceGuardProxy APIs */
1348+
export interface ResourceGuardProxyBaseResource extends DppResource {
1349+
/** ResourceGuardProxyBaseResource properties */
1350+
properties?: ResourceGuardProxyBase;
1351+
}
1352+
13151353
/** Deleted Backup Instance */
13161354
export interface DeletedBackupInstance extends BackupInstance {
13171355
/**
@@ -3096,6 +3134,45 @@ export interface ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextOptional
30963134
/** Contains response data for the getUpdateProtectedItemRequestsObjectsNext operation. */
30973135
export type ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextResponse = DppBaseResourceList;
30983136

3137+
/** Optional parameters. */
3138+
export interface DppResourceGuardProxyListOptionalParams
3139+
extends coreClient.OperationOptions {}
3140+
3141+
/** Contains response data for the list operation. */
3142+
export type DppResourceGuardProxyListResponse = ResourceGuardProxyBaseResourceList;
3143+
3144+
/** Optional parameters. */
3145+
export interface DppResourceGuardProxyGetOptionalParams
3146+
extends coreClient.OperationOptions {}
3147+
3148+
/** Contains response data for the get operation. */
3149+
export type DppResourceGuardProxyGetResponse = ResourceGuardProxyBaseResource;
3150+
3151+
/** Optional parameters. */
3152+
export interface DppResourceGuardProxyCreateOrUpdateOptionalParams
3153+
extends coreClient.OperationOptions {}
3154+
3155+
/** Contains response data for the createOrUpdate operation. */
3156+
export type DppResourceGuardProxyCreateOrUpdateResponse = ResourceGuardProxyBaseResource;
3157+
3158+
/** Optional parameters. */
3159+
export interface DppResourceGuardProxyDeleteOptionalParams
3160+
extends coreClient.OperationOptions {}
3161+
3162+
/** Optional parameters. */
3163+
export interface DppResourceGuardProxyUnlockDeleteOptionalParams
3164+
extends coreClient.OperationOptions {}
3165+
3166+
/** Contains response data for the unlockDelete operation. */
3167+
export type DppResourceGuardProxyUnlockDeleteResponse = UnlockDeleteResponse;
3168+
3169+
/** Optional parameters. */
3170+
export interface DppResourceGuardProxyListNextOptionalParams
3171+
extends coreClient.OperationOptions {}
3172+
3173+
/** Contains response data for the listNext operation. */
3174+
export type DppResourceGuardProxyListNextResponse = ResourceGuardProxyBaseResourceList;
3175+
30993176
/** Optional parameters. */
31003177
export interface DataProtectionClientOptionalParams
31013178
extends coreClient.ServiceClientOptions {

0 commit comments

Comments
 (0)