@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Release History
2
2
 
3
- ## 1.0.0-beta.1 (2023-03-14)
3
+ ## 1.0.0 (2023-06-05)
4
4
 
5
5
  The package of @azure/arm-graphservices is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/README.md CHANGED
@@ -6,7 +6,7 @@ Self service experience for Microsoft Graph metered services
6
6
 
7
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/graphservices/arm-graphservices) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-graphservices) |
9
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-graphservices?view=azure-node-preview) |
9
+ [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-graphservices) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11
11
 
12
12
  ## Getting started
package/dist/index.js CHANGED
@@ -539,7 +539,7 @@ const $host = {
539
539
  const apiVersion = {
540
540
  parameterPath: "apiVersion",
541
541
  mapper: {
542
- defaultValue: "2022-09-22-preview",
542
+ defaultValue: "2023-04-13",
543
543
  isConstant: true,
544
544
  serializedName: "api-version",
545
545
  type: {
@@ -574,17 +574,6 @@ const resourceGroupName = {
574
574
  }
575
575
  }
576
576
  };
577
- const nextLink = {
578
- parameterPath: "nextLink",
579
- mapper: {
580
- serializedName: "nextLink",
581
- required: true,
582
- type: {
583
- name: "String"
584
- }
585
- },
586
- skipEncoding: true
587
- };
588
577
  const resourceName = {
589
578
  parameterPath: "resourceName",
590
579
  mapper: {
@@ -614,6 +603,37 @@ const accountResource1 = {
614
603
  parameterPath: "accountResource",
615
604
  mapper: AccountPatchResource
616
605
  };
606
+ const nextLink = {
607
+ parameterPath: "nextLink",
608
+ mapper: {
609
+ serializedName: "nextLink",
610
+ required: true,
611
+ type: {
612
+ name: "String"
613
+ }
614
+ },
615
+ skipEncoding: true
616
+ };
617
+
618
+ /*
619
+ * Copyright (c) Microsoft Corporation.
620
+ * Licensed under the MIT License.
621
+ *
622
+ * Code generated by Microsoft (R) AutoRest Code Generator.
623
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
624
+ */
625
+ function createLroSpec(inputs) {
626
+ const { args, spec, sendOperationFn } = inputs;
627
+ return {
628
+ requestMethod: spec.httpMethod,
629
+ requestPath: spec.path,
630
+ sendInitialRequest: () => sendOperationFn(args, spec),
631
+ sendPollRequest: (path, options) => {
632
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
633
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
634
+ }
635
+ };
636
+ }
617
637
 
618
638
  /*
619
639
  * Copyright (c) Microsoft Corporation.
@@ -676,17 +696,24 @@ class AccountsImpl {
676
696
  }
677
697
  listByResourceGroupPagingAll(resourceGroupName, options) {
678
698
  return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
679
- var e_1, _a;
699
+ var _a, e_1, _b, _c;
680
700
  try {
681
- for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
682
- const page = _c.value;
683
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
701
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
702
+ _c = _f.value;
703
+ _d = false;
704
+ try {
705
+ const page = _c;
706
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
707
+ }
708
+ finally {
709
+ _d = true;
710
+ }
684
711
  }
685
712
  }
686
713
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
687
714
  finally {
688
715
  try {
689
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
716
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
690
717
  }
691
718
  finally { if (e_1) throw e_1.error; }
692
719
  }
@@ -735,17 +762,24 @@ class AccountsImpl {
735
762
  }
736
763
  listBySubscriptionPagingAll(options) {
737
764
  return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
738
- var e_2, _a;
765
+ var _a, e_2, _b, _c;
739
766
  try {
740
- for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
741
- const page = _c.value;
742
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
767
+ for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
768
+ _c = _f.value;
769
+ _d = false;
770
+ try {
771
+ const page = _c;
772
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
773
+ }
774
+ finally {
775
+ _d = true;
776
+ }
743
777
  }
744
778
  }
745
779
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
746
780
  finally {
747
781
  try {
748
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
782
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
749
783
  }
750
784
  finally { if (e_2) throw e_2.error; }
751
785
  }
@@ -766,138 +800,6 @@ class AccountsImpl {
766
800
  _listBySubscription(options) {
767
801
  return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
768
802
  }
769
- /**
770
- * ListByResourceGroupNext
771
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
772
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
773
- * @param options The options parameters.
774
- */
775
- _listByResourceGroupNext(resourceGroupName, nextLink, options) {
776
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
777
- }
778
- /**
779
- * ListBySubscriptionNext
780
- * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
781
- * @param options The options parameters.
782
- */
783
- _listBySubscriptionNext(nextLink, options) {
784
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
785
- }
786
- }
787
- // Operation Specifications
788
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
789
- const listByResourceGroupOperationSpec = {
790
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts",
791
- httpMethod: "GET",
792
- responses: {
793
- 200: {
794
- bodyMapper: AccountResourceList
795
- },
796
- default: {
797
- bodyMapper: ErrorResponse
798
- }
799
- },
800
- queryParameters: [apiVersion],
801
- urlParameters: [
802
- $host,
803
- subscriptionId,
804
- resourceGroupName
805
- ],
806
- headerParameters: [accept],
807
- serializer: serializer$2
808
- };
809
- const listBySubscriptionOperationSpec = {
810
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.GraphServices/accounts",
811
- httpMethod: "GET",
812
- responses: {
813
- 200: {
814
- bodyMapper: AccountResourceList
815
- },
816
- default: {
817
- bodyMapper: ErrorResponse
818
- }
819
- },
820
- queryParameters: [apiVersion],
821
- urlParameters: [$host, subscriptionId],
822
- headerParameters: [accept],
823
- serializer: serializer$2
824
- };
825
- const listByResourceGroupNextOperationSpec = {
826
- path: "{nextLink}",
827
- httpMethod: "GET",
828
- responses: {
829
- 200: {
830
- bodyMapper: AccountResourceList
831
- },
832
- default: {
833
- bodyMapper: ErrorResponse
834
- }
835
- },
836
- urlParameters: [
837
- $host,
838
- subscriptionId,
839
- resourceGroupName,
840
- nextLink
841
- ],
842
- headerParameters: [accept],
843
- serializer: serializer$2
844
- };
845
- const listBySubscriptionNextOperationSpec = {
846
- path: "{nextLink}",
847
- httpMethod: "GET",
848
- responses: {
849
- 200: {
850
- bodyMapper: AccountResourceList
851
- },
852
- default: {
853
- bodyMapper: ErrorResponse
854
- }
855
- },
856
- urlParameters: [
857
- $host,
858
- subscriptionId,
859
- nextLink
860
- ],
861
- headerParameters: [accept],
862
- serializer: serializer$2
863
- };
864
-
865
- /*
866
- * Copyright (c) Microsoft Corporation.
867
- * Licensed under the MIT License.
868
- *
869
- * Code generated by Microsoft (R) AutoRest Code Generator.
870
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
871
- */
872
- function createLroSpec(inputs) {
873
- const { args, spec, sendOperationFn } = inputs;
874
- return {
875
- requestMethod: spec.httpMethod,
876
- requestPath: spec.path,
877
- sendInitialRequest: () => sendOperationFn(args, spec),
878
- sendPollRequest: (path, options) => {
879
- const restSpec = tslib.__rest(spec, ["requestBody"]);
880
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
881
- }
882
- };
883
- }
884
-
885
- /*
886
- * Copyright (c) Microsoft Corporation.
887
- * Licensed under the MIT License.
888
- *
889
- * Code generated by Microsoft (R) AutoRest Code Generator.
890
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
891
- */
892
- /** Class containing Account operations. */
893
- class AccountImpl {
894
- /**
895
- * Initialize a new instance of the class Account class.
896
- * @param client Reference to the service client
897
- */
898
- constructor(client) {
899
- this.client = client;
900
- }
901
803
  /**
902
804
  * Returns account resource for a given name.
903
805
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -984,9 +886,62 @@ class AccountImpl {
984
886
  delete(resourceGroupName, resourceName, options) {
985
887
  return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec);
986
888
  }
889
+ /**
890
+ * ListByResourceGroupNext
891
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
892
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
893
+ * @param options The options parameters.
894
+ */
895
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
896
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
897
+ }
898
+ /**
899
+ * ListBySubscriptionNext
900
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
901
+ * @param options The options parameters.
902
+ */
903
+ _listBySubscriptionNext(nextLink, options) {
904
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
905
+ }
987
906
  }
988
907
  // Operation Specifications
989
908
  const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
909
+ const listByResourceGroupOperationSpec = {
910
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts",
911
+ httpMethod: "GET",
912
+ responses: {
913
+ 200: {
914
+ bodyMapper: AccountResourceList
915
+ },
916
+ default: {
917
+ bodyMapper: ErrorResponse
918
+ }
919
+ },
920
+ queryParameters: [apiVersion],
921
+ urlParameters: [
922
+ $host,
923
+ subscriptionId,
924
+ resourceGroupName
925
+ ],
926
+ headerParameters: [accept],
927
+ serializer: serializer$1
928
+ };
929
+ const listBySubscriptionOperationSpec = {
930
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.GraphServices/accounts",
931
+ httpMethod: "GET",
932
+ responses: {
933
+ 200: {
934
+ bodyMapper: AccountResourceList
935
+ },
936
+ default: {
937
+ bodyMapper: ErrorResponse
938
+ }
939
+ },
940
+ queryParameters: [apiVersion],
941
+ urlParameters: [$host, subscriptionId],
942
+ headerParameters: [accept],
943
+ serializer: serializer$1
944
+ };
990
945
  const getOperationSpec = {
991
946
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts/{resourceName}",
992
947
  httpMethod: "GET",
@@ -1083,6 +1038,45 @@ const deleteOperationSpec = {
1083
1038
  headerParameters: [accept],
1084
1039
  serializer: serializer$1
1085
1040
  };
1041
+ const listByResourceGroupNextOperationSpec = {
1042
+ path: "{nextLink}",
1043
+ httpMethod: "GET",
1044
+ responses: {
1045
+ 200: {
1046
+ bodyMapper: AccountResourceList
1047
+ },
1048
+ default: {
1049
+ bodyMapper: ErrorResponse
1050
+ }
1051
+ },
1052
+ urlParameters: [
1053
+ $host,
1054
+ subscriptionId,
1055
+ resourceGroupName,
1056
+ nextLink
1057
+ ],
1058
+ headerParameters: [accept],
1059
+ serializer: serializer$1
1060
+ };
1061
+ const listBySubscriptionNextOperationSpec = {
1062
+ path: "{nextLink}",
1063
+ httpMethod: "GET",
1064
+ responses: {
1065
+ 200: {
1066
+ bodyMapper: AccountResourceList
1067
+ },
1068
+ default: {
1069
+ bodyMapper: ErrorResponse
1070
+ }
1071
+ },
1072
+ urlParameters: [
1073
+ $host,
1074
+ subscriptionId,
1075
+ nextLink
1076
+ ],
1077
+ headerParameters: [accept],
1078
+ serializer: serializer$1
1079
+ };
1086
1080
 
1087
1081
  /*
1088
1082
  * Copyright (c) Microsoft Corporation.
@@ -1092,10 +1086,10 @@ const deleteOperationSpec = {
1092
1086
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1093
1087
  */
1094
1088
  /// <reference lib="esnext.asynciterable" />
1095
- /** Class containing OperationOperations operations. */
1096
- class OperationOperationsImpl {
1089
+ /** Class containing Operations operations. */
1090
+ class OperationsImpl {
1097
1091
  /**
1098
- * Initialize a new instance of the class OperationOperations class.
1092
+ * Initialize a new instance of the class Operations class.
1099
1093
  * @param client Reference to the service client
1100
1094
  */
1101
1095
  constructor(client) {
@@ -1144,17 +1138,24 @@ class OperationOperationsImpl {
1144
1138
  }
1145
1139
  listPagingAll(options) {
1146
1140
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
1147
- var e_1, _a;
1141
+ var _a, e_1, _b, _c;
1148
1142
  try {
1149
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1150
- const page = _c.value;
1151
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1143
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
1144
+ _c = _f.value;
1145
+ _d = false;
1146
+ try {
1147
+ const page = _c;
1148
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1149
+ }
1150
+ finally {
1151
+ _d = true;
1152
+ }
1152
1153
  }
1153
1154
  }
1154
1155
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
1155
1156
  finally {
1156
1157
  try {
1157
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1158
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
1158
1159
  }
1159
1160
  finally { if (e_1) throw e_1.error; }
1160
1161
  }
@@ -1240,7 +1241,7 @@ class GraphServices extends coreClient__namespace.ServiceClient {
1240
1241
  requestContentType: "application/json; charset=utf-8",
1241
1242
  credential: credentials
1242
1243
  };
1243
- const packageDetails = `azsdk-js-arm-graphservices/1.0.0-beta.1`;
1244
+ const packageDetails = `azsdk-js-arm-graphservices/1.0.0`;
1244
1245
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1245
1246
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1246
1247
  : `${packageDetails}`;
@@ -1273,10 +1274,9 @@ class GraphServices extends coreClient__namespace.ServiceClient {
1273
1274
  this.subscriptionId = subscriptionId;
1274
1275
  // Assigning values to Constant parameters
1275
1276
  this.$host = options.$host || "https://management.azure.com";
1276
- this.apiVersion = options.apiVersion || "2022-09-22-preview";
1277
+ this.apiVersion = options.apiVersion || "2023-04-13";
1277
1278
  this.accounts = new AccountsImpl(this);
1278
- this.account = new AccountImpl(this);
1279
- this.operationOperations = new OperationOperationsImpl(this);
1279
+ this.operations = new OperationsImpl(this);
1280
1280
  this.addCustomApiVersionPolicy(options.apiVersion);
1281
1281
  }
1282
1282
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */