Skip to content
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
8 changes: 4 additions & 4 deletions sdk/resourcegraph/arm-resourcegraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-resourcegraph

### How to use

#### nodejs - Authentication, client creation and listMethod operations as an example written in TypeScript.
#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -35,7 +35,7 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
const client = new ResourceGraphClient(creds, subscriptionId);
client.operations.listMethod().then((result) => {
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
});
Expand All @@ -44,7 +44,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

#### browser - Authentication, client creation and listMethod operations as an example written in JavaScript.
#### browser - Authentication, client creation and list operations as an example written in JavaScript.

##### Install @azure/ms-rest-browserauth

Expand Down Expand Up @@ -78,7 +78,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
authManager.login();
}
const client = new Azure.ArmResourcegraph.ResourceGraphClient(res.creds, subscriptionId);
client.operations.listMethod().then((result) => {
client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
Expand Down
20 changes: 0 additions & 20 deletions sdk/resourcegraph/arm-resourcegraph/src/models/getMappers.ts

This file was deleted.

8 changes: 4 additions & 4 deletions sdk/resourcegraph/arm-resourcegraph/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ export type ResourcesResponse = QueryResponse & {
/**
* Contains response data for the resourceChanges operation.
*/
export type ListResourceChangesResponse = ResourceChangeList & {
export type ResourceChangesResponse = ResourceChangeList & {
/**
* The underlying HTTP response.
*/
Expand All @@ -594,7 +594,7 @@ export type ListResourceChangesResponse = ResourceChangeList & {
/**
* Contains response data for the resourceChangeDetails operation.
*/
export type GetResourceChangeDetailsResponse = ResourceChangeData & {
export type ResourceChangeDetailsResponse = ResourceChangeData & {
/**
* The underlying HTTP response.
*/
Expand All @@ -612,9 +612,9 @@ export type GetResourceChangeDetailsResponse = ResourceChangeData & {
};

/**
* Contains response data for the listMethod operation.
* Contains response data for the list operation.
*/
export type OperationsListMethodResponse = OperationListResult & {
export type OperationsListResponse = OperationListResult & {
/**
* The underlying HTTP response.
*/
Expand Down
23 changes: 0 additions & 23 deletions sdk/resourcegraph/arm-resourcegraph/src/models/listMappers.ts

This file was deleted.

85 changes: 0 additions & 85 deletions sdk/resourcegraph/arm-resourcegraph/src/operations/get.ts

This file was deleted.

2 changes: 0 additions & 2 deletions sdk/resourcegraph/arm-resourcegraph/src/operations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@
* regenerated.
*/

export * from "./list";
export * from "./get";
export * from "./operations";
85 changes: 0 additions & 85 deletions sdk/resourcegraph/arm-resourcegraph/src/operations/list.ts

This file was deleted.

16 changes: 8 additions & 8 deletions sdk/resourcegraph/arm-resourcegraph/src/operations/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,31 @@ export class Operations {
/**
* Lists all of the available REST API operations.
* @param [options] The optional parameters
* @returns Promise<Models.OperationsListMethodResponse>
* @returns Promise<Models.OperationsListResponse>
*/
listMethod(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListMethodResponse>;
list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
/**
* @param callback The callback
*/
listMethod(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
listMethod(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
listMethod(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListMethodResponse> {
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
return this.client.sendOperationRequest(
{
options
},
listMethodOperationSpec,
callback) as Promise<Models.OperationsListMethodResponse>;
listOperationSpec,
callback) as Promise<Models.OperationsListResponse>;
}
}

// Operation Specifications
const serializer = new msRest.Serializer(Mappers);
const listMethodOperationSpec: msRest.OperationSpec = {
const listOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "providers/Microsoft.ResourceGraph/operations",
queryParameters: [
Expand Down
Loading