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-resourcegraph] ARG Query Generation API in 2023-09-01-preview #23539

Closed
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: 10 additions & 9 deletions 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/resourcegraph/arm-resourcegraph/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
# Release History

## 5.0.0-beta.3 (2022-10-18)

## 5.0.0-beta.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 5.0.0-beta.2 (2022-04-28)

The package of @azure/arm-resourcegraph is using our next generation design principles since version 5.0.0-beta.2, which contains breaking changes.
The package of @azure/arm-resourcegraph is using our next generation design principles since version 5.0.0-beta.3, which contains breaking changes.

To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).

Expand Down
2 changes: 1 addition & 1 deletion sdk/resourcegraph/arm-resourcegraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Azure Resource Graph API Reference

### Currently supported environments

- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
Expand Down
12 changes: 6 additions & 6 deletions sdk/resourcegraph/arm-resourcegraph/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "0cd7b3e83d5e7e21222dcc4bdde4565562da0cdf",
"readme": "specification\\resourcegraph\\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:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\resourcegraph\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1 --generate-sample=true",
"commit": "68847d6ae901f0cb2efa62ae2c523ad8cf5c2ea3",
"readme": "specification/resourcegraph/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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resourcegraph/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/typescript@6.0.0-alpha.19.20220408.1"
}
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.4",
"use": "@autorest/typescript@6.0.0-rc.1"
}
29 changes: 12 additions & 17 deletions sdk/resourcegraph/arm-resourcegraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "A generated SDK for ResourceGraphClient.",
"version": "5.0.0-beta.3",
"engines": {
"node": ">=14.0.0"
"node": ">=12.0.0"
},
"dependencies": {
"@azure/core-paging": "^1.2.0",
Expand All @@ -26,7 +26,7 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-resourcegraph.d.ts",
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"@microsoft/api-extractor": "7.18.11",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-multi-entry": "^4.1.0",
Expand All @@ -38,9 +38,13 @@
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2"
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcegraph/arm-resourcegraph",
"repository": {
Expand Down Expand Up @@ -91,9 +95,8 @@
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped"
},
"sideEffects": false,
"//metadata": {
Expand All @@ -104,13 +107,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resourcegraph?view=azure-node-preview"
}
}
"autoPublish": true
}
104 changes: 94 additions & 10 deletions sdk/resourcegraph/arm-resourcegraph/review/arm-resourcegraph.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
// @public
export type AuthorizationScopeFilter = "AtScopeAndBelow" | "AtScopeAndAbove" | "AtScopeExact" | "AtScopeAboveAndBelow";

// @public
export type ChangeCategory = "User" | "System";

// @public
export type ChangeType = "Create" | "Update" | "Delete";

// @public
export interface Column {
name: string;
Expand Down Expand Up @@ -52,10 +58,10 @@ export interface Facet {
}

// @public
export type FacetError = Facet & {
resultType: "FacetError";
export interface FacetError extends Facet {
errors: ErrorDetails[];
};
resultType: "FacetError";
}

// @public
export interface FacetRequest {
Expand All @@ -72,12 +78,12 @@ export interface FacetRequestOptions {
}

// @public
export type FacetResult = Facet & {
resultType: "FacetResult";
totalRecords: number;
export interface FacetResult extends Facet {
count: number;
data: Record<string, unknown>;
};
resultType: "FacetResult";
totalRecords: number;
}

// @public
export type FacetSortOrder = "asc" | "desc";
Expand Down Expand Up @@ -117,6 +123,9 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption
// @public
export type OperationsListResponse = OperationListResult;

// @public
export type PropertyChangeType = "Insert" | "Update" | "Remove";

// @public
export interface QueryRequest {
facets?: FacetRequest[];
Expand Down Expand Up @@ -146,26 +155,94 @@ export interface QueryResponse {
totalRecords: number;
}

// @public
export interface ResourceChangeData {
afterSnapshot: ResourceChangeDataAfterSnapshot;
beforeSnapshot: ResourceChangeDataBeforeSnapshot;
changeId: string;
changeType?: ChangeType;
propertyChanges?: ResourcePropertyChange[];
resourceId?: string;
}

// @public
export interface ResourceChangeDataAfterSnapshot extends ResourceSnapshotData {
}

// @public
export interface ResourceChangeDataBeforeSnapshot extends ResourceSnapshotData {
}

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

// @public
export interface ResourceChangeDetailsRequestParameters {
changeIds: string[];
resourceIds: string[];
}

// @public
export type ResourceChangeDetailsResponse = ResourceChangeData[];

// @public
export interface ResourceChangeList {
changes?: ResourceChangeData[];
skipToken?: any;
}

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

// @public
export interface ResourceChangesRequestParameters {
fetchPropertyChanges?: boolean;
fetchSnapshots?: boolean;
interval: ResourceChangesRequestParametersInterval;
resourceIds?: string[];
skipToken?: string;
subscriptionId?: string;
table?: string;
top?: number;
}

// @public
export interface ResourceChangesRequestParametersInterval extends DateTimeInterval {
}

// @public
export type ResourceChangesResponse = ResourceChangeList;

// @public (undocumented)
export class ResourceGraphClient extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, options?: ResourceGraphClientOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
operations: Operations;
resourceChangeDetails(parameters: ResourceChangeDetailsRequestParameters, options?: ResourceChangeDetailsOptionalParams): Promise<ResourceChangeDetailsResponse>;
resourceChanges(parameters: ResourceChangesRequestParameters, options?: ResourceChangesOptionalParams): Promise<ResourceChangesResponse>;
resources(query: QueryRequest, options?: ResourcesOptionalParams): Promise<ResourcesResponse>;
resourcesHistory(request: ResourcesHistoryRequest, options?: ResourcesHistoryOptionalParams): Promise<ResourcesHistoryResponse>;
}

// @public
export interface ResourceGraphClientOptionalParams extends coreClient.ServiceClientOptions {
$host?: string;
apiVersion?: string;
endpoint?: string;
}

// @public
export interface ResourcePropertyChange {
afterValue?: string;
beforeValue?: string;
changeCategory: ChangeCategory;
propertyChangeType: PropertyChangeType;
propertyName: string;
}

// @public
export interface ResourcesHistoryOptionalParams extends coreClient.OperationOptions {
}
Expand All @@ -190,6 +267,13 @@ export interface ResourcesHistoryRequestOptions {
// @public
export type ResourcesHistoryResponse = Record<string, unknown>;

// @public
export interface ResourceSnapshotData {
content?: Record<string, unknown>;
snapshotId?: string;
timestamp: Date;
}

// @public
export interface ResourcesOptionalParams extends coreClient.OperationOptions {
}
Expand Down
Loading