@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.
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/dist/index.js +166 -166
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountsCreateAndUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsCreateAndUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{accountCreateAndUpdateSample.js → accountsCreateAndUpdateSample.js} +4 -5
- package/dist-esm/samples-dev/accountsCreateAndUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{accountDeleteSample.js → accountsDeleteSample.js} +3 -3
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{accountGetSample.js → accountsGetSample.js} +3 -3
- package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +13 -6
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +13 -6
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{accountUpdateSample.js → accountsUpdateSample.js} +3 -3
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{operationListSample.js → operationsListSample.js} +14 -7
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/src/graphServices.d.ts +2 -3
- package/dist-esm/src/graphServices.d.ts.map +1 -1
- package/dist-esm/src/graphServices.js +4 -5
- package/dist-esm/src/graphServices.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +27 -27
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +12 -12
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accounts.d.ts +40 -1
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +209 -11
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/{operationOperations.d.ts → operations.d.ts} +7 -7
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/{operationOperations.js → operations.js} +16 -9
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +40 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{account.js → operations.js} +1 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/graphservices_operations_test.spec.js +23 -2
- package/dist-esm/test/graphservices_operations_test.spec.js.map +1 -1
- package/package.json +4 -4
- package/review/arm-graphservices.api.md +38 -44
- package/src/graphServices.ts +6 -12
- package/src/models/index.ts +25 -24
- package/src/models/parameters.ts +13 -13
- package/src/operations/accounts.ts +263 -0
- package/src/operations/index.ts +1 -2
- package/src/operations/{operationOperations.ts → operations.ts} +16 -16
- package/src/operationsInterfaces/accounts.ts +76 -1
- package/src/operationsInterfaces/index.ts +1 -2
- package/src/operationsInterfaces/{operationOperations.ts → operations.ts} +4 -4
- package/types/arm-graphservices.d.ts +80 -85
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/accountCreateAndUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountCreateAndUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountCreateAndUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/accountDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/accountGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountGetSample.js.map +0 -1
- package/dist-esm/samples-dev/accountUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/accountUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/accountUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/operationListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationListSample.js.map +0 -1
- package/dist-esm/src/operations/account.d.ts +0 -52
- package/dist-esm/src/operations/account.d.ts.map +0 -1
- package/dist-esm/src/operations/account.js +0 -208
- package/dist-esm/src/operations/account.js.map +0 -1
- package/dist-esm/src/operations/operationOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/operationOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/account.d.ts +0 -44
- package/dist-esm/src/operationsInterfaces/account.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/account.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operationOperations.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/operationOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operationOperations.js +0 -9
- package/dist-esm/src/operationsInterfaces/operationOperations.js.map +0 -1
- package/src/operations/account.ts +0 -295
- package/src/operationsInterfaces/account.ts +0 -90
package/CHANGELOG.md
CHANGED
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
|
|
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: "
|
|
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,
|
|
699
|
+
var _a, e_1, _b, _c;
|
|
680
700
|
try {
|
|
681
|
-
for (var
|
|
682
|
-
|
|
683
|
-
|
|
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 (
|
|
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,
|
|
765
|
+
var _a, e_2, _b, _c;
|
|
739
766
|
try {
|
|
740
|
-
for (var
|
|
741
|
-
|
|
742
|
-
|
|
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 (
|
|
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
|
|
1096
|
-
class
|
|
1089
|
+
/** Class containing Operations operations. */
|
|
1090
|
+
class OperationsImpl {
|
|
1097
1091
|
/**
|
|
1098
|
-
* Initialize a new instance of the 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,
|
|
1141
|
+
var _a, e_1, _b, _c;
|
|
1148
1142
|
try {
|
|
1149
|
-
for (var
|
|
1150
|
-
|
|
1151
|
-
|
|
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 (
|
|
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
|
|
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 || "
|
|
1277
|
+
this.apiVersion = options.apiVersion || "2023-04-13";
|
|
1277
1278
|
this.accounts = new AccountsImpl(this);
|
|
1278
|
-
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. */
|