Skip to content

[AutoPR @azure/arm-dataprotection] Adding ResourceGuardProxy APIs to Microsoft.Dataprotection latest stable version #3871

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

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.

2 changes: 1 addition & 1 deletion sdk/dataprotection/arm-dataprotection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Release History

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

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).
8 changes: 4 additions & 4 deletions sdk/dataprotection/arm-dataprotection/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "d66735f5dc80731ee5c7a31399c2a46f8743153a",
"commit": "9cc2523e91a4fe261489884a7a44d033afcb7c29",
"readme": "specification/dataprotection/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].1",
"use": "@autorest/[email protected].7"
"release_tool": "@azure-tools/[email protected].2",
"use": "@autorest/[email protected].5"
}
23 changes: 7 additions & 16 deletions sdk/dataprotection/arm-dataprotection/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 DataProtectionClient.",
"version": "1.0.0-beta.2",
"version": "1.0.0",
"engines": {
"node": ">=14.0.0"
},
Expand All @@ -29,17 +29,16 @@
"types": "./types/arm-dataprotection.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",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^8.2.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand All @@ -50,6 +49,7 @@
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dataprotection/arm-dataprotection",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down Expand Up @@ -110,14 +110,5 @@
}
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/dataprotection/arm-dataprotection",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-dataprotection?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,8 @@ export class DataProtectionClient extends coreClient.ServiceClient {
// (undocumented)
deletedBackupInstances: DeletedBackupInstances;
// (undocumented)
dppResourceGuardProxy: DppResourceGuardProxy;
// (undocumented)
exportJobs: ExportJobs;
// (undocumented)
exportJobsOperationResult: ExportJobsOperationResult;
Expand Down Expand Up @@ -1077,6 +1079,54 @@ export interface DppResource {
readonly type?: string;
}

// @public
export interface DppResourceGuardProxy {
createOrUpdate(resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, parameters: ResourceGuardProxyBaseResource, options?: DppResourceGuardProxyCreateOrUpdateOptionalParams): Promise<DppResourceGuardProxyCreateOrUpdateResponse>;
delete(resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, options?: DppResourceGuardProxyDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, options?: DppResourceGuardProxyGetOptionalParams): Promise<DppResourceGuardProxyGetResponse>;
list(resourceGroupName: string, vaultName: string, options?: DppResourceGuardProxyListOptionalParams): PagedAsyncIterableIterator<ResourceGuardProxyBaseResource>;
unlockDelete(resourceGroupName: string, vaultName: string, resourceGuardProxyName: string, parameters: UnlockDeleteRequest, options?: DppResourceGuardProxyUnlockDeleteOptionalParams): Promise<DppResourceGuardProxyUnlockDeleteResponse>;
}

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

// @public
export type DppResourceGuardProxyCreateOrUpdateResponse = ResourceGuardProxyBaseResource;

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

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

// @public
export type DppResourceGuardProxyGetResponse = ResourceGuardProxyBaseResource;

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

// @public
export type DppResourceGuardProxyListNextResponse = ResourceGuardProxyBaseResourceList;

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

// @public
export type DppResourceGuardProxyListResponse = ResourceGuardProxyBaseResourceList;

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

// @public
export type DppResourceGuardProxyUnlockDeleteResponse = UnlockDeleteResponse;

// @public
export interface DppResourceList {
nextLink?: string;
Expand Down Expand Up @@ -1828,6 +1878,36 @@ export interface ResourceGuardOperation {
readonly vaultCriticalOperation?: string;
}

// @public
export interface ResourceGuardOperationDetail {
// (undocumented)
defaultResourceRequest?: string;
// (undocumented)
vaultCriticalOperation?: string;
}

// @public
export interface ResourceGuardProxyBase {
// (undocumented)
description?: string;
// (undocumented)
lastUpdatedTime?: string;
// (undocumented)
resourceGuardOperationDetails?: ResourceGuardOperationDetail[];
// (undocumented)
resourceGuardResourceId?: string;
}

// @public
export interface ResourceGuardProxyBaseResource extends DppResource {
properties?: ResourceGuardProxyBase;
}

// @public
export interface ResourceGuardProxyBaseResourceList extends DppResourceList {
value?: ResourceGuardProxyBaseResource[];
}

// @public (undocumented)
export interface ResourceGuardResource extends DppBaseTrackedResource {
properties?: ResourceGuard;
Expand Down Expand Up @@ -2252,6 +2332,19 @@ export interface TriggerContext {
// @public (undocumented)
export type TriggerContextUnion = TriggerContext | AdhocBasedTriggerContext | ScheduleBasedTriggerContext;

// @public
export interface UnlockDeleteRequest {
// (undocumented)
resourceGuardOperationRequests?: string[];
// (undocumented)
resourceToBeDeleted?: string;
}

// @public
export interface UnlockDeleteResponse {
unlockDeleteExpiryTime?: string;
}

// @public
export interface UserFacingError {
code?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ import {
ExportJobsImpl,
ExportJobsOperationResultImpl,
DeletedBackupInstancesImpl,
ResourceGuardsImpl
ResourceGuardsImpl,
DppResourceGuardProxyImpl
} from "./operations";
import {
BackupVaults,
Expand All @@ -50,7 +51,8 @@ import {
ExportJobs,
ExportJobsOperationResult,
DeletedBackupInstances,
ResourceGuards
ResourceGuards,
DppResourceGuardProxy
} from "./operationsInterfaces";
import { DataProtectionClientOptionalParams } from "./models";

Expand Down Expand Up @@ -86,7 +88,7 @@ export class DataProtectionClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-dataprotection/1.0.0-beta.2`;
const packageDetails = `azsdk-js-arm-dataprotection/1.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -163,6 +165,7 @@ export class DataProtectionClient extends coreClient.ServiceClient {
this.exportJobsOperationResult = new ExportJobsOperationResultImpl(this);
this.deletedBackupInstances = new DeletedBackupInstancesImpl(this);
this.resourceGuards = new ResourceGuardsImpl(this);
this.dppResourceGuardProxy = new DppResourceGuardProxyImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);
}

Expand Down Expand Up @@ -211,4 +214,5 @@ export class DataProtectionClient extends coreClient.ServiceClient {
exportJobsOperationResult: ExportJobsOperationResult;
deletedBackupInstances: DeletedBackupInstances;
resourceGuards: ResourceGuards;
dppResourceGuardProxy: DppResourceGuardProxy;
}
77 changes: 77 additions & 0 deletions sdk/dataprotection/arm-dataprotection/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,32 @@ export interface DppBaseResource {
readonly type?: string;
}

/** ResourceGuardProxyBase object, used in ResourceGuardProxyBaseResource */
export interface ResourceGuardProxyBase {
resourceGuardResourceId?: string;
resourceGuardOperationDetails?: ResourceGuardOperationDetail[];
lastUpdatedTime?: string;
description?: string;
}

/** VaultCritical Operation protected by a resource guard */
export interface ResourceGuardOperationDetail {
vaultCriticalOperation?: string;
defaultResourceRequest?: string;
}

/** Request body of unlock delete API. */
export interface UnlockDeleteRequest {
resourceGuardOperationRequests?: string[];
resourceToBeDeleted?: string;
}

/** Response of Unlock Delete API. */
export interface UnlockDeleteResponse {
/** This is the time when unlock delete privileges will get expired. */
unlockDeleteExpiryTime?: string;
}

/** Delete Option */
export interface DeleteOption {
/** Polymorphic discriminator, which specifies the different types this object can be */
Expand Down Expand Up @@ -1244,6 +1270,12 @@ export interface DeletedBackupInstanceResourceList extends DppResourceList {
value?: DeletedBackupInstanceResource[];
}

/** List of ResourceGuardProxyBase resources */
export interface ResourceGuardProxyBaseResourceList extends DppResourceList {
/** List of resources. */
value?: ResourceGuardProxyBaseResource[];
}

/** Operation Job Extended Info */
export interface OperationJobExtendedInfo extends OperationExtendedInfo {
/** Polymorphic discriminator, which specifies the different types this object can be */
Expand Down Expand Up @@ -1312,6 +1344,12 @@ export interface DeletedBackupInstanceResource extends DppResource {
properties?: DeletedBackupInstance;
}

/** ResourceGuardProxyBaseResource object, used for response and request bodies for ResourceGuardProxy APIs */
export interface ResourceGuardProxyBaseResource extends DppResource {
/** ResourceGuardProxyBaseResource properties */
properties?: ResourceGuardProxyBase;
}

/** Deleted Backup Instance */
export interface DeletedBackupInstance extends BackupInstance {
/**
Expand Down Expand Up @@ -3096,6 +3134,45 @@ export interface ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextOptional
/** Contains response data for the getUpdateProtectedItemRequestsObjectsNext operation. */
export type ResourceGuardsGetUpdateProtectedItemRequestsObjectsNextResponse = DppBaseResourceList;

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

/** Contains response data for the list operation. */
export type DppResourceGuardProxyListResponse = ResourceGuardProxyBaseResourceList;

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

/** Contains response data for the get operation. */
export type DppResourceGuardProxyGetResponse = ResourceGuardProxyBaseResource;

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

/** Contains response data for the createOrUpdate operation. */
export type DppResourceGuardProxyCreateOrUpdateResponse = ResourceGuardProxyBaseResource;

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

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

/** Contains response data for the unlockDelete operation. */
export type DppResourceGuardProxyUnlockDeleteResponse = UnlockDeleteResponse;

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

/** Contains response data for the listNext operation. */
export type DppResourceGuardProxyListNextResponse = ResourceGuardProxyBaseResourceList;

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