@azure/arm-graphservices 1.0.0-beta.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/index.js +166 -166
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/accountsCreateAndUpdateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/accountsCreateAndUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/{accountCreateAndUpdateSample.js → accountsCreateAndUpdateSample.js} +4 -5
  10. package/dist-esm/samples-dev/accountsCreateAndUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/{accountDeleteSample.js → accountsDeleteSample.js} +3 -3
  14. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/{accountGetSample.js → accountsGetSample.js} +3 -3
  18. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +13 -6
  20. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
  21. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +13 -6
  22. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -1
  23. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/{accountUpdateSample.js → accountsUpdateSample.js} +3 -3
  26. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
  27. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/{operationListSample.js → operationsListSample.js} +14 -7
  30. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  31. package/dist-esm/src/graphServices.d.ts +2 -3
  32. package/dist-esm/src/graphServices.d.ts.map +1 -1
  33. package/dist-esm/src/graphServices.js +4 -5
  34. package/dist-esm/src/graphServices.js.map +1 -1
  35. package/dist-esm/src/models/index.d.ts +27 -27
  36. package/dist-esm/src/models/index.d.ts.map +1 -1
  37. package/dist-esm/src/models/parameters.d.ts +1 -1
  38. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  39. package/dist-esm/src/models/parameters.js +12 -12
  40. package/dist-esm/src/models/parameters.js.map +1 -1
  41. package/dist-esm/src/operations/accounts.d.ts +40 -1
  42. package/dist-esm/src/operations/accounts.d.ts.map +1 -1
  43. package/dist-esm/src/operations/accounts.js +209 -11
  44. package/dist-esm/src/operations/accounts.js.map +1 -1
  45. package/dist-esm/src/operations/index.d.ts +1 -2
  46. package/dist-esm/src/operations/index.d.ts.map +1 -1
  47. package/dist-esm/src/operations/index.js +1 -2
  48. package/dist-esm/src/operations/index.js.map +1 -1
  49. package/dist-esm/src/operations/{operationOperations.d.ts → operations.d.ts} +7 -7
  50. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  51. package/dist-esm/src/operations/{operationOperations.js → operations.js} +16 -9
  52. package/dist-esm/src/operations/operations.js.map +1 -0
  53. package/dist-esm/src/operationsInterfaces/accounts.d.ts +40 -1
  54. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
  55. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -2
  56. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  57. package/dist-esm/src/operationsInterfaces/index.js +1 -2
  58. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  59. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  60. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  61. package/dist-esm/src/operationsInterfaces/{account.js → operations.js} +1 -1
  62. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  63. package/dist-esm/test/graphservices_operations_test.spec.js +23 -2
  64. package/dist-esm/test/graphservices_operations_test.spec.js.map +1 -1
  65. package/package.json +4 -4
  66. package/review/arm-graphservices.api.md +38 -44
  67. package/src/graphServices.ts +6 -12
  68. package/src/models/index.ts +25 -24
  69. package/src/models/parameters.ts +13 -13
  70. package/src/operations/accounts.ts +263 -0
  71. package/src/operations/index.ts +1 -2
  72. package/src/operations/{operationOperations.ts → operations.ts} +16 -16
  73. package/src/operationsInterfaces/accounts.ts +76 -1
  74. package/src/operationsInterfaces/index.ts +1 -2
  75. package/src/operationsInterfaces/{operationOperations.ts → operations.ts} +4 -4
  76. package/types/arm-graphservices.d.ts +80 -85
  77. package/types/tsdoc-metadata.json +1 -1
  78. package/dist-esm/samples-dev/accountCreateAndUpdateSample.d.ts +0 -2
  79. package/dist-esm/samples-dev/accountCreateAndUpdateSample.d.ts.map +0 -1
  80. package/dist-esm/samples-dev/accountCreateAndUpdateSample.js.map +0 -1
  81. package/dist-esm/samples-dev/accountDeleteSample.d.ts +0 -2
  82. package/dist-esm/samples-dev/accountDeleteSample.d.ts.map +0 -1
  83. package/dist-esm/samples-dev/accountDeleteSample.js.map +0 -1
  84. package/dist-esm/samples-dev/accountGetSample.d.ts +0 -2
  85. package/dist-esm/samples-dev/accountGetSample.d.ts.map +0 -1
  86. package/dist-esm/samples-dev/accountGetSample.js.map +0 -1
  87. package/dist-esm/samples-dev/accountUpdateSample.d.ts +0 -2
  88. package/dist-esm/samples-dev/accountUpdateSample.d.ts.map +0 -1
  89. package/dist-esm/samples-dev/accountUpdateSample.js.map +0 -1
  90. package/dist-esm/samples-dev/operationListSample.d.ts +0 -2
  91. package/dist-esm/samples-dev/operationListSample.d.ts.map +0 -1
  92. package/dist-esm/samples-dev/operationListSample.js.map +0 -1
  93. package/dist-esm/src/operations/account.d.ts +0 -52
  94. package/dist-esm/src/operations/account.d.ts.map +0 -1
  95. package/dist-esm/src/operations/account.js +0 -208
  96. package/dist-esm/src/operations/account.js.map +0 -1
  97. package/dist-esm/src/operations/operationOperations.d.ts.map +0 -1
  98. package/dist-esm/src/operations/operationOperations.js.map +0 -1
  99. package/dist-esm/src/operationsInterfaces/account.d.ts +0 -44
  100. package/dist-esm/src/operationsInterfaces/account.d.ts.map +0 -1
  101. package/dist-esm/src/operationsInterfaces/account.js.map +0 -1
  102. package/dist-esm/src/operationsInterfaces/operationOperations.d.ts +0 -11
  103. package/dist-esm/src/operationsInterfaces/operationOperations.d.ts.map +0 -1
  104. package/dist-esm/src/operationsInterfaces/operationOperations.js +0 -9
  105. package/dist-esm/src/operationsInterfaces/operationOperations.js.map +0 -1
  106. package/src/operations/account.ts +0 -295
  107. package/src/operationsInterfaces/account.ts +0 -90
@@ -1,5 +1,6 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { AccountResource, AccountsListByResourceGroupOptionalParams, AccountsListBySubscriptionOptionalParams } from "../models";
2
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
3
+ import { AccountResource, AccountsListByResourceGroupOptionalParams, AccountsListBySubscriptionOptionalParams, AccountsGetOptionalParams, AccountsGetResponse, AccountsCreateAndUpdateOptionalParams, AccountsCreateAndUpdateResponse, AccountPatchResource, AccountsUpdateOptionalParams, AccountsUpdateResponse, AccountsDeleteOptionalParams } from "../models";
3
4
  /** Interface representing a Accounts. */
4
5
  export interface Accounts {
5
6
  /**
@@ -13,5 +14,43 @@ export interface Accounts {
13
14
  * @param options The options parameters.
14
15
  */
15
16
  listBySubscription(options?: AccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AccountResource>;
17
+ /**
18
+ * Returns account resource for a given name.
19
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
20
+ * @param resourceName The name of the resource.
21
+ * @param options The options parameters.
22
+ */
23
+ get(resourceGroupName: string, resourceName: string, options?: AccountsGetOptionalParams): Promise<AccountsGetResponse>;
24
+ /**
25
+ * Create or update account resource.
26
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
27
+ * @param resourceName The name of the resource.
28
+ * @param accountResource Account details.
29
+ * @param options The options parameters.
30
+ */
31
+ beginCreateAndUpdate(resourceGroupName: string, resourceName: string, accountResource: AccountResource, options?: AccountsCreateAndUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AccountsCreateAndUpdateResponse>, AccountsCreateAndUpdateResponse>>;
32
+ /**
33
+ * Create or update account resource.
34
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
35
+ * @param resourceName The name of the resource.
36
+ * @param accountResource Account details.
37
+ * @param options The options parameters.
38
+ */
39
+ beginCreateAndUpdateAndWait(resourceGroupName: string, resourceName: string, accountResource: AccountResource, options?: AccountsCreateAndUpdateOptionalParams): Promise<AccountsCreateAndUpdateResponse>;
40
+ /**
41
+ * Update account details.
42
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
43
+ * @param resourceName The name of the resource.
44
+ * @param accountResource Account patch details.
45
+ * @param options The options parameters.
46
+ */
47
+ update(resourceGroupName: string, resourceName: string, accountResource: AccountPatchResource, options?: AccountsUpdateOptionalParams): Promise<AccountsUpdateResponse>;
48
+ /**
49
+ * Deletes a account resource.
50
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
51
+ * @param resourceName The name of the resource.
52
+ * @param options The options parameters.
53
+ */
54
+ delete(resourceGroupName: string, resourceName: string, options?: AccountsDeleteOptionalParams): Promise<void>;
16
55
  }
17
56
  //# sourceMappingURL=accounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/accounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,eAAe,EACf,yCAAyC,EACzC,wCAAwC,EACzC,MAAM,WAAW,CAAC;AAGnB,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,eAAe,CAAC,CAAC;IAC/C;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,eAAe,CAAC,CAAC;CAChD"}
1
+ {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/accounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,eAAe,EACf,yCAAyC,EACzC,wCAAwC,EACxC,yBAAyB,EACzB,mBAAmB,EACnB,qCAAqC,EACrC,+BAA+B,EAC/B,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,WAAW,CAAC;AAGnB,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,eAAe,CAAC,CAAC;IAC/C;;;OAGG;IACH,kBAAkB,CAChB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,eAAe,CAAC,CAAC;IAC/C;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,oBAAoB,CAClB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,+BAA+B,CAAC,EAC/C,+BAA+B,CAChC,CACF,CAAC;IACF;;;;;;OAMG;IACH,2BAA2B,CACzB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,eAAe,EAAE,oBAAoB,EACrC,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;OAKG;IACH,MAAM,CACJ,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -1,4 +1,3 @@
1
1
  export * from "./accounts";
2
- export * from "./account";
3
- export * from "./operationOperations";
2
+ export * from "./operations";
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
@@ -6,6 +6,5 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  export * from "./accounts";
9
- export * from "./account";
10
- export * from "./operationOperations";
9
+ export * from "./operations";
11
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operation, OperationsListOptionalParams } from "../models";
3
+ /** Interface representing a Operations. */
4
+ export interface Operations {
5
+ /**
6
+ * Returns list of operations.
7
+ * @param options The options parameters.
8
+ */
9
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
10
+ }
11
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGpE,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
@@ -6,4 +6,4 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  export {};
9
- //# sourceMappingURL=account.js.map
9
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -5,7 +5,7 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __awaiter } from "tslib";
8
+ import { __asyncValues, __awaiter } from "tslib";
9
9
  import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
10
10
  import { createTestCredential } from "@azure-tools/test-credential";
11
11
  import { GraphServices } from "../src/graphServices";
@@ -47,8 +47,29 @@ describe("GraphServices test", () => {
47
47
  });
48
48
  });
49
49
  it("operation list test", function () {
50
+ var _a, e_1, _b, _c;
50
51
  return __awaiter(this, void 0, void 0, function* () {
51
- const res = yield client.operationOperations.list();
52
+ const resArray = new Array();
53
+ try {
54
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
55
+ _c = _f.value;
56
+ _d = false;
57
+ try {
58
+ let item = _c;
59
+ resArray.push(item);
60
+ }
61
+ finally {
62
+ _d = true;
63
+ }
64
+ }
65
+ }
66
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
67
+ finally {
68
+ try {
69
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
70
+ }
71
+ finally { if (e_1) throw e_1.error; }
72
+ }
52
73
  });
53
74
  });
54
75
  });
@@ -1 +1 @@
1
- {"version":3,"file":"graphservices_operations_test.spec.js","sourceRoot":"","sources":["../../test/graphservices_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oB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MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE;;;YACxB,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;oBAAxB,cAAwB;oBAAxB,WAAwB;;wBAApC,IAAI,IAAI,KAAA,CAAA;wBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;iBACrB;;;;;;;;;;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -3,12 +3,12 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for GraphServices.",
6
- "version": "1.0.0-beta.1",
6
+ "version": "1.0.0",
7
7
  "engines": {
8
8
  "node": ">=14.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@azure/core-lro": "^2.5.0",
11
+ "@azure/core-lro": "^2.5.3",
12
12
  "@azure/abort-controller": "^1.0.0",
13
13
  "@azure/core-paging": "^1.2.0",
14
14
  "@azure/core-client": "^1.7.0",
@@ -36,7 +36,7 @@
36
36
  "mkdirp": "^2.1.2",
37
37
  "rollup": "^2.66.1",
38
38
  "rollup-plugin-sourcemaps": "^0.6.3",
39
- "typescript": "~4.8.0",
39
+ "typescript": "~5.0.0",
40
40
  "uglify-js": "^3.4.9",
41
41
  "rimraf": "^3.0.0",
42
42
  "dotenv": "^16.0.0",
@@ -120,4 +120,4 @@
120
120
  "disableDocsMs": true,
121
121
  "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-graphservices?view=azure-node-preview"
122
122
  }
123
- }
123
+ }
@@ -10,35 +10,6 @@ import { OperationState } from '@azure/core-lro';
10
10
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
11
11
  import { SimplePollerLike } from '@azure/core-lro';
12
12
 
13
- // @public
14
- export interface Account {
15
- beginCreateAndUpdate(resourceGroupName: string, resourceName: string, accountResource: AccountResource, options?: AccountCreateAndUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AccountCreateAndUpdateResponse>, AccountCreateAndUpdateResponse>>;
16
- beginCreateAndUpdateAndWait(resourceGroupName: string, resourceName: string, accountResource: AccountResource, options?: AccountCreateAndUpdateOptionalParams): Promise<AccountCreateAndUpdateResponse>;
17
- delete(resourceGroupName: string, resourceName: string, options?: AccountDeleteOptionalParams): Promise<void>;
18
- get(resourceGroupName: string, resourceName: string, options?: AccountGetOptionalParams): Promise<AccountGetResponse>;
19
- update(resourceGroupName: string, resourceName: string, accountResource: AccountPatchResource, options?: AccountUpdateOptionalParams): Promise<AccountUpdateResponse>;
20
- }
21
-
22
- // @public
23
- export interface AccountCreateAndUpdateOptionalParams extends coreClient.OperationOptions {
24
- resumeFrom?: string;
25
- updateIntervalInMs?: number;
26
- }
27
-
28
- // @public
29
- export type AccountCreateAndUpdateResponse = AccountResource;
30
-
31
- // @public
32
- export interface AccountDeleteOptionalParams extends coreClient.OperationOptions {
33
- }
34
-
35
- // @public
36
- export interface AccountGetOptionalParams extends coreClient.OperationOptions {
37
- }
38
-
39
- // @public
40
- export type AccountGetResponse = AccountResource;
41
-
42
13
  // @public
43
14
  export interface AccountPatchResource extends TagUpdate {
44
15
  }
@@ -72,10 +43,35 @@ export interface AccountResourceSystemData {
72
43
 
73
44
  // @public
74
45
  export interface Accounts {
46
+ beginCreateAndUpdate(resourceGroupName: string, resourceName: string, accountResource: AccountResource, options?: AccountsCreateAndUpdateOptionalParams): Promise<SimplePollerLike<OperationState<AccountsCreateAndUpdateResponse>, AccountsCreateAndUpdateResponse>>;
47
+ beginCreateAndUpdateAndWait(resourceGroupName: string, resourceName: string, accountResource: AccountResource, options?: AccountsCreateAndUpdateOptionalParams): Promise<AccountsCreateAndUpdateResponse>;
48
+ delete(resourceGroupName: string, resourceName: string, options?: AccountsDeleteOptionalParams): Promise<void>;
49
+ get(resourceGroupName: string, resourceName: string, options?: AccountsGetOptionalParams): Promise<AccountsGetResponse>;
75
50
  listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AccountResource>;
76
51
  listBySubscription(options?: AccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AccountResource>;
52
+ update(resourceGroupName: string, resourceName: string, accountResource: AccountPatchResource, options?: AccountsUpdateOptionalParams): Promise<AccountsUpdateResponse>;
53
+ }
54
+
55
+ // @public
56
+ export interface AccountsCreateAndUpdateOptionalParams extends coreClient.OperationOptions {
57
+ resumeFrom?: string;
58
+ updateIntervalInMs?: number;
77
59
  }
78
60
 
61
+ // @public
62
+ export type AccountsCreateAndUpdateResponse = AccountResource;
63
+
64
+ // @public
65
+ export interface AccountsDeleteOptionalParams extends coreClient.OperationOptions {
66
+ }
67
+
68
+ // @public
69
+ export interface AccountsGetOptionalParams extends coreClient.OperationOptions {
70
+ }
71
+
72
+ // @public
73
+ export type AccountsGetResponse = AccountResource;
74
+
79
75
  // @public
80
76
  export interface AccountsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
81
77
  }
@@ -105,11 +101,11 @@ export interface AccountsListBySubscriptionOptionalParams extends coreClient.Ope
105
101
  export type AccountsListBySubscriptionResponse = AccountResourceList;
106
102
 
107
103
  // @public
108
- export interface AccountUpdateOptionalParams extends coreClient.OperationOptions {
104
+ export interface AccountsUpdateOptionalParams extends coreClient.OperationOptions {
109
105
  }
110
106
 
111
107
  // @public
112
- export type AccountUpdateResponse = AccountResource;
108
+ export type AccountsUpdateResponse = AccountResource;
113
109
 
114
110
  // @public
115
111
  export type ActionType = string;
@@ -146,13 +142,11 @@ export class GraphServices extends coreClient.ServiceClient {
146
142
  $host: string;
147
143
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: GraphServicesOptionalParams);
148
144
  // (undocumented)
149
- account: Account;
150
- // (undocumented)
151
145
  accounts: Accounts;
152
146
  // (undocumented)
153
147
  apiVersion: string;
154
148
  // (undocumented)
155
- operationOperations: OperationOperations;
149
+ operations: Operations;
156
150
  // (undocumented)
157
151
  subscriptionId: string;
158
152
  }
@@ -209,29 +203,29 @@ export interface OperationDisplay {
209
203
  }
210
204
 
211
205
  // @public
212
- export interface OperationListNextOptionalParams extends coreClient.OperationOptions {
206
+ export interface OperationListResult {
207
+ readonly nextLink?: string;
208
+ readonly value?: Operation[];
213
209
  }
214
210
 
215
211
  // @public
216
- export type OperationListNextResponse = OperationListResult;
212
+ export interface Operations {
213
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
214
+ }
217
215
 
218
216
  // @public
219
- export interface OperationListOptionalParams extends coreClient.OperationOptions {
217
+ export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
220
218
  }
221
219
 
222
220
  // @public
223
- export type OperationListResponse = OperationListResult;
221
+ export type OperationsListNextResponse = OperationListResult;
224
222
 
225
223
  // @public
226
- export interface OperationListResult {
227
- readonly nextLink?: string;
228
- readonly value?: Operation[];
224
+ export interface OperationsListOptionalParams extends coreClient.OperationOptions {
229
225
  }
230
226
 
231
227
  // @public
232
- export interface OperationOperations {
233
- list(options?: OperationListOptionalParams): PagedAsyncIterableIterator<Operation>;
234
- }
228
+ export type OperationsListResponse = OperationListResult;
235
229
 
236
230
  // @public
237
231
  export type Origin = string;
@@ -14,12 +14,8 @@ import {
14
14
  SendRequest
15
15
  } from "@azure/core-rest-pipeline";
16
16
  import * as coreAuth from "@azure/core-auth";
17
- import {
18
- AccountsImpl,
19
- AccountImpl,
20
- OperationOperationsImpl
21
- } from "./operations";
22
- import { Accounts, Account, OperationOperations } from "./operationsInterfaces";
17
+ import { AccountsImpl, OperationsImpl } from "./operations";
18
+ import { Accounts, Operations } from "./operationsInterfaces";
23
19
  import { GraphServicesOptionalParams } from "./models";
24
20
 
25
21
  export class GraphServices extends coreClient.ServiceClient {
@@ -54,7 +50,7 @@ export class GraphServices extends coreClient.ServiceClient {
54
50
  credential: credentials
55
51
  };
56
52
 
57
- const packageDetails = `azsdk-js-arm-graphservices/1.0.0-beta.1`;
53
+ const packageDetails = `azsdk-js-arm-graphservices/1.0.0`;
58
54
  const userAgentPrefix =
59
55
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
60
56
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -107,10 +103,9 @@ export class GraphServices extends coreClient.ServiceClient {
107
103
 
108
104
  // Assigning values to Constant parameters
109
105
  this.$host = options.$host || "https://management.azure.com";
110
- this.apiVersion = options.apiVersion || "2022-09-22-preview";
106
+ this.apiVersion = options.apiVersion || "2023-04-13";
111
107
  this.accounts = new AccountsImpl(this);
112
- this.account = new AccountImpl(this);
113
- this.operationOperations = new OperationOperationsImpl(this);
108
+ this.operations = new OperationsImpl(this);
114
109
  this.addCustomApiVersionPolicy(options.apiVersion);
115
110
  }
116
111
 
@@ -143,6 +138,5 @@ export class GraphServices extends coreClient.ServiceClient {
143
138
  }
144
139
 
145
140
  accounts: Accounts;
146
- account: Account;
147
- operationOperations: OperationOperations;
141
+ operations: Operations;
148
142
  }
@@ -296,27 +296,14 @@ export interface AccountsListBySubscriptionOptionalParams
296
296
  export type AccountsListBySubscriptionResponse = AccountResourceList;
297
297
 
298
298
  /** Optional parameters. */
299
- export interface AccountsListByResourceGroupNextOptionalParams
300
- extends coreClient.OperationOptions {}
301
-
302
- /** Contains response data for the listByResourceGroupNext operation. */
303
- export type AccountsListByResourceGroupNextResponse = AccountResourceList;
304
-
305
- /** Optional parameters. */
306
- export interface AccountsListBySubscriptionNextOptionalParams
299
+ export interface AccountsGetOptionalParams
307
300
  extends coreClient.OperationOptions {}
308
301
 
309
- /** Contains response data for the listBySubscriptionNext operation. */
310
- export type AccountsListBySubscriptionNextResponse = AccountResourceList;
311
-
312
- /** Optional parameters. */
313
- export interface AccountGetOptionalParams extends coreClient.OperationOptions {}
314
-
315
302
  /** Contains response data for the get operation. */
316
- export type AccountGetResponse = AccountResource;
303
+ export type AccountsGetResponse = AccountResource;
317
304
 
318
305
  /** Optional parameters. */
319
- export interface AccountCreateAndUpdateOptionalParams
306
+ export interface AccountsCreateAndUpdateOptionalParams
320
307
  extends coreClient.OperationOptions {
321
308
  /** Delay to wait until next poll, in milliseconds. */
322
309
  updateIntervalInMs?: number;
@@ -325,32 +312,46 @@ export interface AccountCreateAndUpdateOptionalParams
325
312
  }
326
313
 
327
314
  /** Contains response data for the createAndUpdate operation. */
328
- export type AccountCreateAndUpdateResponse = AccountResource;
315
+ export type AccountsCreateAndUpdateResponse = AccountResource;
329
316
 
330
317
  /** Optional parameters. */
331
- export interface AccountUpdateOptionalParams
318
+ export interface AccountsUpdateOptionalParams
332
319
  extends coreClient.OperationOptions {}
333
320
 
334
321
  /** Contains response data for the update operation. */
335
- export type AccountUpdateResponse = AccountResource;
322
+ export type AccountsUpdateResponse = AccountResource;
336
323
 
337
324
  /** Optional parameters. */
338
- export interface AccountDeleteOptionalParams
325
+ export interface AccountsDeleteOptionalParams
339
326
  extends coreClient.OperationOptions {}
340
327
 
341
328
  /** Optional parameters. */
342
- export interface OperationListOptionalParams
329
+ export interface AccountsListByResourceGroupNextOptionalParams
330
+ extends coreClient.OperationOptions {}
331
+
332
+ /** Contains response data for the listByResourceGroupNext operation. */
333
+ export type AccountsListByResourceGroupNextResponse = AccountResourceList;
334
+
335
+ /** Optional parameters. */
336
+ export interface AccountsListBySubscriptionNextOptionalParams
337
+ extends coreClient.OperationOptions {}
338
+
339
+ /** Contains response data for the listBySubscriptionNext operation. */
340
+ export type AccountsListBySubscriptionNextResponse = AccountResourceList;
341
+
342
+ /** Optional parameters. */
343
+ export interface OperationsListOptionalParams
343
344
  extends coreClient.OperationOptions {}
344
345
 
345
346
  /** Contains response data for the list operation. */
346
- export type OperationListResponse = OperationListResult;
347
+ export type OperationsListResponse = OperationListResult;
347
348
 
348
349
  /** Optional parameters. */
349
- export interface OperationListNextOptionalParams
350
+ export interface OperationsListNextOptionalParams
350
351
  extends coreClient.OperationOptions {}
351
352
 
352
353
  /** Contains response data for the listNext operation. */
353
- export type OperationListNextResponse = OperationListResult;
354
+ export type OperationsListNextResponse = OperationListResult;
354
355
 
355
356
  /** Optional parameters. */
356
357
  export interface GraphServicesOptionalParams
@@ -43,7 +43,7 @@ export const $host: OperationURLParameter = {
43
43
  export const apiVersion: OperationQueryParameter = {
44
44
  parameterPath: "apiVersion",
45
45
  mapper: {
46
- defaultValue: "2022-09-22-preview",
46
+ defaultValue: "2023-04-13",
47
47
  isConstant: true,
48
48
  serializedName: "api-version",
49
49
  type: {
@@ -81,18 +81,6 @@ export const resourceGroupName: OperationURLParameter = {
81
81
  }
82
82
  };
83
83
 
84
- export const nextLink: OperationURLParameter = {
85
- parameterPath: "nextLink",
86
- mapper: {
87
- serializedName: "nextLink",
88
- required: true,
89
- type: {
90
- name: "String"
91
- }
92
- },
93
- skipEncoding: true
94
- };
95
-
96
84
  export const resourceName: OperationURLParameter = {
97
85
  parameterPath: "resourceName",
98
86
  mapper: {
@@ -125,3 +113,15 @@ export const accountResource1: OperationParameter = {
125
113
  parameterPath: "accountResource",
126
114
  mapper: AccountPatchResourceMapper
127
115
  };
116
+
117
+ export const nextLink: OperationURLParameter = {
118
+ parameterPath: "nextLink",
119
+ mapper: {
120
+ serializedName: "nextLink",
121
+ required: true,
122
+ type: {
123
+ name: "String"
124
+ }
125
+ },
126
+ skipEncoding: true
127
+ };