@azure/arm-deviceprovisioningservices 3.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 (69) hide show
  1. package/LICENSE.txt +21 -0
  2. package/README.md +106 -0
  3. package/dist/arm-deviceprovisioningservices.js +2869 -0
  4. package/dist/arm-deviceprovisioningservices.js.map +1 -0
  5. package/dist/arm-deviceprovisioningservices.min.js +1 -0
  6. package/dist/arm-deviceprovisioningservices.min.js.map +1 -0
  7. package/esm/iotDpsClient.d.ts +26 -0
  8. package/esm/iotDpsClient.d.ts.map +1 -0
  9. package/esm/iotDpsClient.js +39 -0
  10. package/esm/iotDpsClient.js.map +1 -0
  11. package/esm/iotDpsClientContext.d.ts +22 -0
  12. package/esm/iotDpsClientContext.d.ts.map +1 -0
  13. package/esm/iotDpsClientContext.js +60 -0
  14. package/esm/iotDpsClientContext.js.map +1 -0
  15. package/esm/models/dpsCertificateMappers.d.ts +2 -0
  16. package/esm/models/dpsCertificateMappers.d.ts.map +1 -0
  17. package/esm/models/dpsCertificateMappers.js +9 -0
  18. package/esm/models/dpsCertificateMappers.js.map +1 -0
  19. package/esm/models/index.d.ts +1433 -0
  20. package/esm/models/index.d.ts.map +1 -0
  21. package/esm/models/index.js +8 -0
  22. package/esm/models/index.js.map +1 -0
  23. package/esm/models/iotDpsResourceMappers.d.ts +2 -0
  24. package/esm/models/iotDpsResourceMappers.d.ts.map +1 -0
  25. package/esm/models/iotDpsResourceMappers.js +9 -0
  26. package/esm/models/iotDpsResourceMappers.js.map +1 -0
  27. package/esm/models/mappers.d.ts +38 -0
  28. package/esm/models/mappers.d.ts.map +1 -0
  29. package/esm/models/mappers.js +1141 -0
  30. package/esm/models/mappers.js.map +1 -0
  31. package/esm/models/operationsMappers.d.ts +2 -0
  32. package/esm/models/operationsMappers.d.ts.map +1 -0
  33. package/esm/models/operationsMappers.js +9 -0
  34. package/esm/models/operationsMappers.js.map +1 -0
  35. package/esm/models/parameters.d.ts +26 -0
  36. package/esm/models/parameters.d.ts.map +1 -0
  37. package/esm/models/parameters.js +272 -0
  38. package/esm/models/parameters.js.map +1 -0
  39. package/esm/operations/dpsCertificate.d.ts +188 -0
  40. package/esm/operations/dpsCertificate.d.ts.map +1 -0
  41. package/esm/operations/dpsCertificate.js +264 -0
  42. package/esm/operations/dpsCertificate.js.map +1 -0
  43. package/esm/operations/index.d.ts +4 -0
  44. package/esm/operations/index.d.ts.map +1 -0
  45. package/esm/operations/index.js +12 -0
  46. package/esm/operations/index.js.map +1 -0
  47. package/esm/operations/iotDpsResource.d.ts +473 -0
  48. package/esm/operations/iotDpsResource.d.ts.map +1 -0
  49. package/esm/operations/iotDpsResource.js +834 -0
  50. package/esm/operations/iotDpsResource.js.map +1 -0
  51. package/esm/operations/operations.d.ts +46 -0
  52. package/esm/operations/operations.d.ts.map +1 -0
  53. package/esm/operations/operations.js +79 -0
  54. package/esm/operations/operations.js.map +1 -0
  55. package/package.json +59 -0
  56. package/rollup.config.js +37 -0
  57. package/src/iotDpsClient.ts +51 -0
  58. package/src/iotDpsClientContext.ts +67 -0
  59. package/src/models/dpsCertificateMappers.ts +30 -0
  60. package/src/models/index.ts +1549 -0
  61. package/src/models/iotDpsResourceMappers.ts +40 -0
  62. package/src/models/mappers.ts +1181 -0
  63. package/src/models/operationsMappers.ts +14 -0
  64. package/src/models/parameters.ts +274 -0
  65. package/src/operations/dpsCertificate.ts +477 -0
  66. package/src/operations/index.ts +12 -0
  67. package/src/operations/iotDpsResource.ts +1310 -0
  68. package/src/operations/operations.ts +125 -0
  69. package/tsconfig.json +19 -0
@@ -0,0 +1,125 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is
7
+ * regenerated.
8
+ */
9
+
10
+ import * as msRest from "@azure/ms-rest-js";
11
+ import * as Models from "../models";
12
+ import * as Mappers from "../models/operationsMappers";
13
+ import * as Parameters from "../models/parameters";
14
+ import { IotDpsClientContext } from "../iotDpsClientContext";
15
+
16
+ /** Class representing a Operations. */
17
+ export class Operations {
18
+ private readonly client: IotDpsClientContext;
19
+
20
+ /**
21
+ * Create a Operations.
22
+ * @param {IotDpsClientContext} client Reference to the service client.
23
+ */
24
+ constructor(client: IotDpsClientContext) {
25
+ this.client = client;
26
+ }
27
+
28
+ /**
29
+ * Lists all of the available Microsoft.Devices REST API operations.
30
+ * @param [options] The optional parameters
31
+ * @returns Promise<Models.OperationsListResponse>
32
+ */
33
+ list(options?: msRest.RequestOptionsBase): Promise<Models.OperationsListResponse>;
34
+ /**
35
+ * @param callback The callback
36
+ */
37
+ list(callback: msRest.ServiceCallback<Models.OperationListResult>): void;
38
+ /**
39
+ * @param options The optional parameters
40
+ * @param callback The callback
41
+ */
42
+ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
43
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListResponse> {
44
+ return this.client.sendOperationRequest(
45
+ {
46
+ options
47
+ },
48
+ listOperationSpec,
49
+ callback) as Promise<Models.OperationsListResponse>;
50
+ }
51
+
52
+ /**
53
+ * Lists all of the available Microsoft.Devices REST API operations.
54
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
55
+ * @param [options] The optional parameters
56
+ * @returns Promise<Models.OperationsListNextResponse>
57
+ */
58
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
59
+ /**
60
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
61
+ * @param callback The callback
62
+ */
63
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
64
+ /**
65
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
66
+ * @param options The optional parameters
67
+ * @param callback The callback
68
+ */
69
+ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OperationListResult>): void;
70
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationListResult>, callback?: msRest.ServiceCallback<Models.OperationListResult>): Promise<Models.OperationsListNextResponse> {
71
+ return this.client.sendOperationRequest(
72
+ {
73
+ nextPageLink,
74
+ options
75
+ },
76
+ listNextOperationSpec,
77
+ callback) as Promise<Models.OperationsListNextResponse>;
78
+ }
79
+ }
80
+
81
+ // Operation Specifications
82
+ const serializer = new msRest.Serializer(Mappers);
83
+ const listOperationSpec: msRest.OperationSpec = {
84
+ httpMethod: "GET",
85
+ path: "providers/Microsoft.Devices/operations",
86
+ queryParameters: [
87
+ Parameters.apiVersion
88
+ ],
89
+ headerParameters: [
90
+ Parameters.acceptLanguage
91
+ ],
92
+ responses: {
93
+ 200: {
94
+ bodyMapper: Mappers.OperationListResult
95
+ },
96
+ default: {
97
+ bodyMapper: Mappers.ErrorDetails
98
+ }
99
+ },
100
+ serializer
101
+ };
102
+
103
+ const listNextOperationSpec: msRest.OperationSpec = {
104
+ httpMethod: "GET",
105
+ baseUrl: "https://management.azure.com",
106
+ path: "{nextLink}",
107
+ urlParameters: [
108
+ Parameters.nextPageLink
109
+ ],
110
+ queryParameters: [
111
+ Parameters.apiVersion
112
+ ],
113
+ headerParameters: [
114
+ Parameters.acceptLanguage
115
+ ],
116
+ responses: {
117
+ 200: {
118
+ bodyMapper: Mappers.OperationListResult
119
+ },
120
+ default: {
121
+ bodyMapper: Mappers.ErrorDetails
122
+ }
123
+ },
124
+ serializer
125
+ };
package/tsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "es6",
4
+ "moduleResolution": "node",
5
+ "strict": true,
6
+ "target": "es5",
7
+ "sourceMap": true,
8
+ "declarationMap": true,
9
+ "esModuleInterop": true,
10
+ "allowSyntheticDefaultImports": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "lib": ["es6", "dom"],
13
+ "declaration": true,
14
+ "outDir": "./esm",
15
+ "importHelpers": true
16
+ },
17
+ "include": ["./src/**/*.ts"],
18
+ "exclude": ["node_modules"]
19
+ }