@azure/arm-domainservices 3.2.1 → 4.0.1-alpha.20220119.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -80
  4. package/dist/index.js +2502 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/domainServicesResourceProvider.d.ts +22 -0
  9. package/dist-esm/src/domainServicesResourceProvider.d.ts.map +1 -0
  10. package/dist-esm/src/domainServicesResourceProvider.js +55 -0
  11. package/dist-esm/src/domainServicesResourceProvider.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +768 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +98 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +27 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/src/models/mappers.js +1015 -0
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +13 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +117 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/domainServiceOperations.d.ts +32 -0
  33. package/dist-esm/src/operations/domainServiceOperations.d.ts.map +1 -0
  34. package/dist-esm/src/operations/domainServiceOperations.js +120 -0
  35. package/dist-esm/src/operations/domainServiceOperations.js.map +1 -0
  36. package/dist-esm/src/operations/domainServices.d.ts +127 -0
  37. package/dist-esm/src/operations/domainServices.d.ts.map +1 -0
  38. package/dist-esm/src/operations/domainServices.js +520 -0
  39. package/dist-esm/src/operations/domainServices.js.map +1 -0
  40. package/dist-esm/src/operations/index.d.ts +5 -0
  41. package/dist-esm/src/operations/index.d.ts.map +1 -0
  42. package/dist-esm/src/operations/index.js +12 -0
  43. package/dist-esm/src/operations/index.js.map +1 -0
  44. package/dist-esm/src/operations/ouContainerOperationGrp.d.ts +111 -0
  45. package/dist-esm/src/operations/ouContainerOperationGrp.d.ts.map +1 -0
  46. package/dist-esm/src/operations/ouContainerOperationGrp.js +441 -0
  47. package/dist-esm/src/operations/ouContainerOperationGrp.js.map +1 -0
  48. package/dist-esm/src/operations/ouContainerOperations.d.ts +32 -0
  49. package/dist-esm/src/operations/ouContainerOperations.d.ts.map +1 -0
  50. package/dist-esm/src/operations/ouContainerOperations.js +120 -0
  51. package/dist-esm/src/operations/ouContainerOperations.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/domainServiceOperations.d.ts +11 -0
  53. package/dist-esm/src/operationsInterfaces/domainServiceOperations.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/domainServiceOperations.js +9 -0
  55. package/dist-esm/src/operationsInterfaces/domainServiceOperations.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/domainServices.d.ts +87 -0
  57. package/dist-esm/src/operationsInterfaces/domainServices.d.ts.map +1 -0
  58. package/dist-esm/src/operationsInterfaces/domainServices.js +9 -0
  59. package/dist-esm/src/operationsInterfaces/domainServices.js.map +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  61. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  63. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.d.ts +84 -0
  65. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.js +9 -0
  67. package/dist-esm/src/operationsInterfaces/ouContainerOperationGrp.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/ouContainerOperations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/ouContainerOperations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/ouContainerOperations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/ouContainerOperations.js.map +1 -0
  72. package/dist-esm/test/sampleTest.d.ts +2 -0
  73. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  74. package/dist-esm/test/sampleTest.js +40 -0
  75. package/dist-esm/test/sampleTest.js.map +1 -0
  76. package/package.json +69 -24
  77. package/review/arm-domainservices.api.md +591 -0
  78. package/rollup.config.js +184 -27
  79. package/src/domainServicesResourceProvider.ts +92 -0
  80. package/src/index.ts +12 -0
  81. package/src/lroImpl.ts +34 -0
  82. package/src/models/index.ts +689 -557
  83. package/src/models/mappers.ts +760 -217
  84. package/src/models/parameters.ts +87 -29
  85. package/src/operations/domainServiceOperations.ts +87 -73
  86. package/src/operations/domainServices.ts +519 -342
  87. package/src/operations/index.ts +5 -5
  88. package/src/operations/ouContainerOperationGrp.ts +632 -0
  89. package/src/operations/ouContainerOperations.ts +137 -0
  90. package/src/operationsInterfaces/domainServiceOperations.ts +25 -0
  91. package/src/operationsInterfaces/domainServices.ts +154 -0
  92. package/src/operationsInterfaces/index.ts +12 -0
  93. package/src/operationsInterfaces/ouContainerOperationGrp.ts +157 -0
  94. package/src/operationsInterfaces/ouContainerOperations.ts +25 -0
  95. package/tsconfig.json +4 -4
  96. package/types/arm-domainservices.d.ts +1062 -0
  97. package/types/tsdoc-metadata.json +11 -0
  98. package/dist/arm-domainservices.js +0 -1233
  99. package/dist/arm-domainservices.js.map +0 -1
  100. package/dist/arm-domainservices.min.js +0 -1
  101. package/dist/arm-domainservices.min.js.map +0 -1
  102. package/esm/domainservicesManagementClient.d.ts +0 -26
  103. package/esm/domainservicesManagementClient.d.ts.map +0 -1
  104. package/esm/domainservicesManagementClient.js +0 -40
  105. package/esm/domainservicesManagementClient.js.map +0 -1
  106. package/esm/domainservicesManagementClientContext.d.ts +0 -23
  107. package/esm/domainservicesManagementClientContext.d.ts.map +0 -1
  108. package/esm/domainservicesManagementClientContext.js +0 -62
  109. package/esm/domainservicesManagementClientContext.js.map +0 -1
  110. package/esm/models/domainServiceOperationsMappers.d.ts +0 -2
  111. package/esm/models/domainServiceOperationsMappers.d.ts.map +0 -1
  112. package/esm/models/domainServiceOperationsMappers.js +0 -11
  113. package/esm/models/domainServiceOperationsMappers.js.map +0 -1
  114. package/esm/models/domainServicesMappers.d.ts +0 -2
  115. package/esm/models/domainServicesMappers.d.ts.map +0 -1
  116. package/esm/models/domainServicesMappers.js +0 -11
  117. package/esm/models/domainServicesMappers.js.map +0 -1
  118. package/esm/models/index.d.ts +0 -693
  119. package/esm/models/index.d.ts.map +0 -1
  120. package/esm/models/index.js +0 -10
  121. package/esm/models/index.js.map +0 -1
  122. package/esm/models/mappers.d.ts +0 -15
  123. package/esm/models/mappers.d.ts.map +0 -1
  124. package/esm/models/mappers.js +0 -498
  125. package/esm/models/mappers.js.map +0 -1
  126. package/esm/models/parameters.d.ts +0 -8
  127. package/esm/models/parameters.d.ts.map +0 -1
  128. package/esm/models/parameters.js +0 -76
  129. package/esm/models/parameters.js.map +0 -1
  130. package/esm/operations/domainServiceOperations.d.ts +0 -46
  131. package/esm/operations/domainServiceOperations.d.ts.map +0 -1
  132. package/esm/operations/domainServiceOperations.js +0 -77
  133. package/esm/operations/domainServiceOperations.js.map +0 -1
  134. package/esm/operations/domainServices.d.ts +0 -189
  135. package/esm/operations/domainServices.d.ts.map +0 -1
  136. package/esm/operations/domainServices.js +0 -356
  137. package/esm/operations/domainServices.js.map +0 -1
  138. package/esm/operations/index.d.ts +0 -3
  139. package/esm/operations/index.d.ts.map +0 -1
  140. package/esm/operations/index.js +0 -12
  141. package/esm/operations/index.js.map +0 -1
  142. package/src/domainservicesManagementClient.ts +0 -51
  143. package/src/domainservicesManagementClientContext.ts +0 -69
  144. package/src/models/domainServiceOperationsMappers.ts +0 -17
  145. package/src/models/domainServicesMappers.ts +0 -23
@@ -1,78 +1,136 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
9
+ import {
10
+ OperationParameter,
11
+ OperationURLParameter,
12
+ OperationQueryParameter
13
+ } from "@azure/core-client";
14
+ import {
15
+ DomainService as DomainServiceMapper,
16
+ ContainerAccount as ContainerAccountMapper
17
+ } from "../models/mappers";
12
18
 
13
- export const acceptLanguage: msRest.OperationParameter = {
14
- parameterPath: "acceptLanguage",
19
+ export const accept: OperationParameter = {
20
+ parameterPath: "accept",
15
21
  mapper: {
16
- serializedName: "accept-language",
17
- defaultValue: 'en-US',
22
+ defaultValue: "application/json",
23
+ isConstant: true,
24
+ serializedName: "Accept",
18
25
  type: {
19
26
  name: "String"
20
27
  }
21
28
  }
22
29
  };
23
- export const apiVersion: msRest.OperationQueryParameter = {
24
- parameterPath: "apiVersion",
30
+
31
+ export const $host: OperationURLParameter = {
32
+ parameterPath: "$host",
25
33
  mapper: {
34
+ serializedName: "$host",
26
35
  required: true,
27
- serializedName: "api-version",
28
36
  type: {
29
37
  name: "String"
30
38
  }
31
- }
39
+ },
40
+ skipEncoding: true
32
41
  };
33
- export const domainServiceName: msRest.OperationURLParameter = {
34
- parameterPath: "domainServiceName",
42
+
43
+ export const apiVersion: OperationQueryParameter = {
44
+ parameterPath: "apiVersion",
35
45
  mapper: {
36
- required: true,
37
- serializedName: "domainServiceName",
46
+ defaultValue: "2021-05-01",
47
+ isConstant: true,
48
+ serializedName: "api-version",
38
49
  type: {
39
50
  name: "String"
40
51
  }
41
52
  }
42
53
  };
43
- export const nextPageLink: msRest.OperationURLParameter = {
44
- parameterPath: "nextPageLink",
54
+
55
+ export const nextLink: OperationURLParameter = {
56
+ parameterPath: "nextLink",
45
57
  mapper: {
46
- required: true,
47
58
  serializedName: "nextLink",
59
+ required: true,
48
60
  type: {
49
61
  name: "String"
50
62
  }
51
63
  },
52
64
  skipEncoding: true
53
65
  };
54
- export const resourceGroupName: msRest.OperationURLParameter = {
55
- parameterPath: "resourceGroupName",
66
+
67
+ export const subscriptionId: OperationURLParameter = {
68
+ parameterPath: "subscriptionId",
56
69
  mapper: {
70
+ serializedName: "subscriptionId",
57
71
  required: true,
58
- serializedName: "resourceGroupName",
72
+ type: {
73
+ name: "String"
74
+ }
75
+ }
76
+ };
77
+
78
+ export const resourceGroupName: OperationURLParameter = {
79
+ parameterPath: "resourceGroupName",
80
+ mapper: {
59
81
  constraints: {
82
+ Pattern: new RegExp("^[-\\w\\._\\(\\)]+$"),
60
83
  MaxLength: 90,
61
- MinLength: 1,
62
- Pattern: /^[-\w\._\(\)]+$/
84
+ MinLength: 1
63
85
  },
86
+ serializedName: "resourceGroupName",
87
+ required: true,
64
88
  type: {
65
89
  name: "String"
66
90
  }
67
91
  }
68
92
  };
69
- export const subscriptionId: msRest.OperationURLParameter = {
70
- parameterPath: "subscriptionId",
93
+
94
+ export const contentType: OperationParameter = {
95
+ parameterPath: ["options", "contentType"],
71
96
  mapper: {
97
+ defaultValue: "application/json",
98
+ isConstant: true,
99
+ serializedName: "Content-Type",
100
+ type: {
101
+ name: "String"
102
+ }
103
+ }
104
+ };
105
+
106
+ export const domainService: OperationParameter = {
107
+ parameterPath: "domainService",
108
+ mapper: DomainServiceMapper
109
+ };
110
+
111
+ export const domainServiceName: OperationURLParameter = {
112
+ parameterPath: "domainServiceName",
113
+ mapper: {
114
+ serializedName: "domainServiceName",
72
115
  required: true,
73
- serializedName: "subscriptionId",
74
116
  type: {
75
117
  name: "String"
76
118
  }
77
119
  }
78
120
  };
121
+
122
+ export const ouContainerName: OperationURLParameter = {
123
+ parameterPath: "ouContainerName",
124
+ mapper: {
125
+ serializedName: "ouContainerName",
126
+ required: true,
127
+ type: {
128
+ name: "String"
129
+ }
130
+ }
131
+ };
132
+
133
+ export const containerAccount: OperationParameter = {
134
+ parameterPath: "containerAccount",
135
+ mapper: ContainerAccountMapper
136
+ };
@@ -1,95 +1,111 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for
4
- * license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
5
4
  *
6
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
7
- * Changes may cause incorrect behavior and will be lost if the code is
8
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9
7
  */
10
8
 
11
- import * as msRest from "@azure/ms-rest-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/domainServiceOperationsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { DomainServiceOperations } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { DomainservicesManagementClientContext } from "../domainservicesManagementClientContext";
14
+ import { DomainServicesResourceProvider } from "../domainServicesResourceProvider";
15
+ import {
16
+ OperationEntity,
17
+ DomainServiceOperationsListNextOptionalParams,
18
+ DomainServiceOperationsListOptionalParams,
19
+ DomainServiceOperationsListResponse,
20
+ DomainServiceOperationsListNextResponse
21
+ } from "../models";
16
22
 
17
- /** Class representing a DomainServiceOperations. */
18
- export class DomainServiceOperations {
19
- private readonly client: DomainservicesManagementClientContext;
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Class containing DomainServiceOperations operations. */
25
+ export class DomainServiceOperationsImpl implements DomainServiceOperations {
26
+ private readonly client: DomainServicesResourceProvider;
20
27
 
21
28
  /**
22
- * Create a DomainServiceOperations.
23
- * @param {DomainservicesManagementClientContext} client Reference to the service client.
29
+ * Initialize a new instance of the class DomainServiceOperations class.
30
+ * @param client Reference to the service client
24
31
  */
25
- constructor(client: DomainservicesManagementClientContext) {
32
+ constructor(client: DomainServicesResourceProvider) {
26
33
  this.client = client;
27
34
  }
28
35
 
29
36
  /**
30
37
  * Lists all the available Domain Services operations.
31
- * @param [options] The optional parameters
32
- * @returns Promise<Models.DomainServiceOperationsListResponse>
38
+ * @param options The options parameters.
33
39
  */
34
- list(options?: msRest.RequestOptionsBase): Promise<Models.DomainServiceOperationsListResponse>;
35
- /**
36
- * @param callback The callback
37
- */
38
- list(callback: msRest.ServiceCallback<Models.OperationEntityListResult>): void;
39
- /**
40
- * @param options The optional parameters
41
- * @param callback The callback
42
- */
43
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationEntityListResult>): void;
44
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationEntityListResult>, callback?: msRest.ServiceCallback<Models.OperationEntityListResult>): Promise<Models.DomainServiceOperationsListResponse> {
45
- return this.client.sendOperationRequest(
46
- {
47
- options
40
+ public list(
41
+ options?: DomainServiceOperationsListOptionalParams
42
+ ): PagedAsyncIterableIterator<OperationEntity> {
43
+ const iter = this.listPagingAll(options);
44
+ return {
45
+ next() {
46
+ return iter.next();
47
+ },
48
+ [Symbol.asyncIterator]() {
49
+ return this;
48
50
  },
49
- listOperationSpec,
50
- callback) as Promise<Models.DomainServiceOperationsListResponse>;
51
+ byPage: () => {
52
+ return this.listPagingPage(options);
53
+ }
54
+ };
55
+ }
56
+
57
+ private async *listPagingPage(
58
+ options?: DomainServiceOperationsListOptionalParams
59
+ ): AsyncIterableIterator<OperationEntity[]> {
60
+ let result = await this._list(options);
61
+ yield result.value || [];
62
+ let continuationToken = result.nextLink;
63
+ while (continuationToken) {
64
+ result = await this._listNext(continuationToken, options);
65
+ continuationToken = result.nextLink;
66
+ yield result.value || [];
67
+ }
68
+ }
69
+
70
+ private async *listPagingAll(
71
+ options?: DomainServiceOperationsListOptionalParams
72
+ ): AsyncIterableIterator<OperationEntity> {
73
+ for await (const page of this.listPagingPage(options)) {
74
+ yield* page;
75
+ }
51
76
  }
52
77
 
53
78
  /**
54
79
  * Lists all the available Domain Services operations.
55
- * @param nextPageLink The NextLink from the previous successful call to List operation.
56
- * @param [options] The optional parameters
57
- * @returns Promise<Models.DomainServiceOperationsListNextResponse>
58
- */
59
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.DomainServiceOperationsListNextResponse>;
60
- /**
61
- * @param nextPageLink The NextLink from the previous successful call to List operation.
62
- * @param callback The callback
80
+ * @param options The options parameters.
63
81
  */
64
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.OperationEntityListResult>): void;
82
+ private _list(
83
+ options?: DomainServiceOperationsListOptionalParams
84
+ ): Promise<DomainServiceOperationsListResponse> {
85
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
86
+ }
87
+
65
88
  /**
66
- * @param nextPageLink The NextLink from the previous successful call to List operation.
67
- * @param options The optional parameters
68
- * @param callback The callback
89
+ * ListNext
90
+ * @param nextLink The nextLink from the previous successful call to the List method.
91
+ * @param options The options parameters.
69
92
  */
70
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationEntityListResult>): void;
71
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationEntityListResult>, callback?: msRest.ServiceCallback<Models.OperationEntityListResult>): Promise<Models.DomainServiceOperationsListNextResponse> {
93
+ private _listNext(
94
+ nextLink: string,
95
+ options?: DomainServiceOperationsListNextOptionalParams
96
+ ): Promise<DomainServiceOperationsListNextResponse> {
72
97
  return this.client.sendOperationRequest(
73
- {
74
- nextPageLink,
75
- options
76
- },
77
- listNextOperationSpec,
78
- callback) as Promise<Models.DomainServiceOperationsListNextResponse>;
98
+ { nextLink, options },
99
+ listNextOperationSpec
100
+ );
79
101
  }
80
102
  }
81
-
82
103
  // Operation Specifications
83
- const serializer = new msRest.Serializer(Mappers);
84
- const listOperationSpec: msRest.OperationSpec = {
104
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
105
+
106
+ const listOperationSpec: coreClient.OperationSpec = {
107
+ path: "/providers/Microsoft.AAD/operations",
85
108
  httpMethod: "GET",
86
- path: "providers/Microsoft.AAD/operations",
87
- queryParameters: [
88
- Parameters.apiVersion
89
- ],
90
- headerParameters: [
91
- Parameters.acceptLanguage
92
- ],
93
109
  responses: {
94
110
  200: {
95
111
  bodyMapper: Mappers.OperationEntityListResult
@@ -98,19 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
98
114
  bodyMapper: Mappers.CloudError
99
115
  }
100
116
  },
117
+ queryParameters: [Parameters.apiVersion],
118
+ urlParameters: [Parameters.$host],
119
+ headerParameters: [Parameters.accept],
101
120
  serializer
102
121
  };
103
-
104
- const listNextOperationSpec: msRest.OperationSpec = {
105
- httpMethod: "GET",
106
- baseUrl: "https://management.azure.com",
122
+ const listNextOperationSpec: coreClient.OperationSpec = {
107
123
  path: "{nextLink}",
108
- urlParameters: [
109
- Parameters.nextPageLink
110
- ],
111
- headerParameters: [
112
- Parameters.acceptLanguage
113
- ],
124
+ httpMethod: "GET",
114
125
  responses: {
115
126
  200: {
116
127
  bodyMapper: Mappers.OperationEntityListResult
@@ -119,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
119
130
  bodyMapper: Mappers.CloudError
120
131
  }
121
132
  },
133
+ queryParameters: [Parameters.apiVersion],
134
+ urlParameters: [Parameters.$host, Parameters.nextLink],
135
+ headerParameters: [Parameters.accept],
122
136
  serializer
123
137
  };