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-resourcegraph] Fixing example in Microsoft.ResourceGraph 2020-09-01-preview #4742

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
12 changes: 7 additions & 5 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.4 (2023-04-12)

## 5.0.0-beta.4 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 5.0.0-beta.3 (2022-12-07)

The package of @azure/arm-resourcegraph is using our next generation design principles since version 5.0.0-beta.3, which contains breaking changes.
The package of @azure/arm-resourcegraph is using our next generation design principles since version 5.0.0-beta.4, 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/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
10 changes: 5 additions & 5 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.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\\resourcegraph\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.4 --generate-sample=true",
"commit": "d459b0d6dee3fa23850778680cbc81755748e4d1",
"readme": "specification/resourcegraph/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=/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.10",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.2",
"use": "@autorest/typescript@6.0.0-rc.4"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/typescript@6.0.0-rc.10"
}
17 changes: 5 additions & 12 deletions sdk/resourcegraph/arm-resourcegraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.6.1",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"tslib": "^2.2.0"
Expand All @@ -31,12 +31,13 @@
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-multi-entry": "^6.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.2",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand All @@ -47,7 +48,6 @@
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcegraph/arm-resourcegraph",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down Expand Up @@ -109,12 +109,5 @@
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-resourcegraph?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/resourcegraph/arm-resourcegraph"
}
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 @@ -120,6 +126,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 @@ -149,26 +158,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 @@ -191,7 +268,16 @@ export interface ResourcesHistoryRequestOptions {
}

// @public
export type ResourcesHistoryResponse = Record<string, unknown>;
export type ResourcesHistoryResponse = {
[propertyName: string]: any;
};

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

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