@azure/arm-defendereasm 1.0.0-beta.1

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 (154) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +2047 -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/samples-dev/labelsCreateAndUpdateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.js +40 -0
  11. package/dist-esm/samples-dev/labelsCreateAndUpdateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/labelsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/labelsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/labelsDeleteSample.js +40 -0
  15. package/dist-esm/samples-dev/labelsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.js +40 -0
  19. package/dist-esm/samples-dev/labelsGetByWorkspaceSample.js.map +1 -0
  20. package/dist-esm/samples-dev/labelsListByWorkspaceSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/labelsListByWorkspaceSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/labelsListByWorkspaceSample.js +60 -0
  23. package/dist-esm/samples-dev/labelsListByWorkspaceSample.js.map +1 -0
  24. package/dist-esm/samples-dev/labelsUpdateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/labelsUpdateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/labelsUpdateSample.js +40 -0
  27. package/dist-esm/samples-dev/labelsUpdateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/operationsListSample.js +58 -0
  31. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  32. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.js +40 -0
  35. package/dist-esm/samples-dev/tasksGetByWorkspaceSample.js.map +1 -0
  36. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.js +43 -0
  39. package/dist-esm/samples-dev/workspacesCreateAndUpdateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/workspacesDeleteSample.js +39 -0
  43. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
  44. package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/workspacesGetSample.js +39 -0
  47. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
  48. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +59 -0
  51. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -0
  52. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +58 -0
  55. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -0
  56. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/workspacesUpdateSample.js +39 -0
  59. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
  60. package/dist-esm/src/easmMgmtClient.d.ts +23 -0
  61. package/dist-esm/src/easmMgmtClient.d.ts.map +1 -0
  62. package/dist-esm/src/easmMgmtClient.js +103 -0
  63. package/dist-esm/src/easmMgmtClient.js.map +1 -0
  64. package/dist-esm/src/index.d.ts +6 -0
  65. package/dist-esm/src/index.d.ts.map +1 -0
  66. package/dist-esm/src/index.js +13 -0
  67. package/dist-esm/src/index.js.map +1 -0
  68. package/dist-esm/src/lroImpl.d.ts +11 -0
  69. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  70. package/dist-esm/src/lroImpl.js +21 -0
  71. package/dist-esm/src/lroImpl.js.map +1 -0
  72. package/dist-esm/src/models/index.d.ts +492 -0
  73. package/dist-esm/src/models/index.d.ts.map +1 -0
  74. package/dist-esm/src/models/index.js +66 -0
  75. package/dist-esm/src/models/index.js.map +1 -0
  76. package/dist-esm/src/models/mappers.d.ts +23 -0
  77. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  78. package/dist-esm/src/models/mappers.js +574 -0
  79. package/dist-esm/src/models/mappers.js.map +1 -0
  80. package/dist-esm/src/models/parameters.d.ts +16 -0
  81. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  82. package/dist-esm/src/models/parameters.js +137 -0
  83. package/dist-esm/src/models/parameters.js.map +1 -0
  84. package/dist-esm/src/operations/index.d.ts +5 -0
  85. package/dist-esm/src/operations/index.d.ts.map +1 -0
  86. package/dist-esm/src/operations/index.js +12 -0
  87. package/dist-esm/src/operations/index.js.map +1 -0
  88. package/dist-esm/src/operations/labels.d.ts +87 -0
  89. package/dist-esm/src/operations/labels.d.ts.map +1 -0
  90. package/dist-esm/src/operations/labels.js +395 -0
  91. package/dist-esm/src/operations/labels.js.map +1 -0
  92. package/dist-esm/src/operations/operations.d.ts +32 -0
  93. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operations/operations.js +138 -0
  95. package/dist-esm/src/operations/operations.js.map +1 -0
  96. package/dist-esm/src/operations/tasks.d.ts +21 -0
  97. package/dist-esm/src/operations/tasks.d.ts.map +1 -0
  98. package/dist-esm/src/operations/tasks.js +55 -0
  99. package/dist-esm/src/operations/tasks.js.map +1 -0
  100. package/dist-esm/src/operations/workspaces.d.ts +96 -0
  101. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  102. package/dist-esm/src/operations/workspaces.js +496 -0
  103. package/dist-esm/src/operations/workspaces.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
  105. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/index.js +12 -0
  107. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/labels.d.ts +62 -0
  109. package/dist-esm/src/operationsInterfaces/labels.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/labels.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/labels.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  113. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/tasks.d.ts +13 -0
  117. package/dist-esm/src/operationsInterfaces/tasks.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/tasks.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/tasks.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +60 -0
  121. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  124. package/dist-esm/src/pagingHelper.d.ts +13 -0
  125. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  126. package/dist-esm/src/pagingHelper.js +32 -0
  127. package/dist-esm/src/pagingHelper.js.map +1 -0
  128. package/dist-esm/test/defendereasm_operations_test.spec.d.ts +4 -0
  129. package/dist-esm/test/defendereasm_operations_test.spec.d.ts.map +1 -0
  130. package/dist-esm/test/defendereasm_operations_test.spec.js +120 -0
  131. package/dist-esm/test/defendereasm_operations_test.spec.js.map +1 -0
  132. package/package.json +123 -0
  133. package/review/arm-defendereasm.api.md +400 -0
  134. package/rollup.config.js +122 -0
  135. package/src/easmMgmtClient.ts +151 -0
  136. package/src/index.ts +13 -0
  137. package/src/lroImpl.ts +42 -0
  138. package/src/models/index.ts +562 -0
  139. package/src/models/mappers.ts +639 -0
  140. package/src/models/parameters.ts +161 -0
  141. package/src/operations/index.ts +12 -0
  142. package/src/operations/labels.ts +543 -0
  143. package/src/operations/operations.ts +149 -0
  144. package/src/operations/tasks.ts +75 -0
  145. package/src/operations/workspaces.ts +625 -0
  146. package/src/operationsInterfaces/index.ts +12 -0
  147. package/src/operationsInterfaces/labels.ts +120 -0
  148. package/src/operationsInterfaces/operations.ts +22 -0
  149. package/src/operationsInterfaces/tasks.ts +29 -0
  150. package/src/operationsInterfaces/workspaces.ts +114 -0
  151. package/src/pagingHelper.ts +39 -0
  152. package/tsconfig.json +33 -0
  153. package/types/arm-defendereasm.d.ts +724 -0
  154. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,137 @@
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 regenerated.
7
+ */
8
+ import { WorkspaceResource as WorkspaceResourceMapper, WorkspacePatchResource as WorkspacePatchResourceMapper, LabelResource as LabelResourceMapper, LabelPatchResource as LabelPatchResourceMapper } from "../models/mappers";
9
+ export const accept = {
10
+ parameterPath: "accept",
11
+ mapper: {
12
+ defaultValue: "application/json",
13
+ isConstant: true,
14
+ serializedName: "Accept",
15
+ type: {
16
+ name: "String"
17
+ }
18
+ }
19
+ };
20
+ export const $host = {
21
+ parameterPath: "$host",
22
+ mapper: {
23
+ serializedName: "$host",
24
+ required: true,
25
+ type: {
26
+ name: "String"
27
+ }
28
+ },
29
+ skipEncoding: true
30
+ };
31
+ export const apiVersion = {
32
+ parameterPath: "apiVersion",
33
+ mapper: {
34
+ defaultValue: "2023-04-01-preview",
35
+ isConstant: true,
36
+ serializedName: "api-version",
37
+ type: {
38
+ name: "String"
39
+ }
40
+ }
41
+ };
42
+ export const subscriptionId = {
43
+ parameterPath: "subscriptionId",
44
+ mapper: {
45
+ constraints: {
46
+ MinLength: 1
47
+ },
48
+ serializedName: "subscriptionId",
49
+ required: true,
50
+ type: {
51
+ name: "String"
52
+ }
53
+ }
54
+ };
55
+ export const resourceGroupName = {
56
+ parameterPath: "resourceGroupName",
57
+ mapper: {
58
+ constraints: {
59
+ MaxLength: 90,
60
+ MinLength: 1
61
+ },
62
+ serializedName: "resourceGroupName",
63
+ required: true,
64
+ type: {
65
+ name: "String"
66
+ }
67
+ }
68
+ };
69
+ export const workspaceName = {
70
+ parameterPath: "workspaceName",
71
+ mapper: {
72
+ serializedName: "workspaceName",
73
+ required: true,
74
+ type: {
75
+ name: "String"
76
+ }
77
+ }
78
+ };
79
+ export const contentType = {
80
+ parameterPath: ["options", "contentType"],
81
+ mapper: {
82
+ defaultValue: "application/json",
83
+ isConstant: true,
84
+ serializedName: "Content-Type",
85
+ type: {
86
+ name: "String"
87
+ }
88
+ }
89
+ };
90
+ export const workspaceResource = {
91
+ parameterPath: ["options", "workspaceResource"],
92
+ mapper: WorkspaceResourceMapper
93
+ };
94
+ export const workspacePatchResource = {
95
+ parameterPath: ["options", "workspacePatchResource"],
96
+ mapper: WorkspacePatchResourceMapper
97
+ };
98
+ export const nextLink = {
99
+ parameterPath: "nextLink",
100
+ mapper: {
101
+ serializedName: "nextLink",
102
+ required: true,
103
+ type: {
104
+ name: "String"
105
+ }
106
+ },
107
+ skipEncoding: true
108
+ };
109
+ export const labelName = {
110
+ parameterPath: "labelName",
111
+ mapper: {
112
+ serializedName: "labelName",
113
+ required: true,
114
+ type: {
115
+ name: "String"
116
+ }
117
+ }
118
+ };
119
+ export const labelResource = {
120
+ parameterPath: ["options", "labelResource"],
121
+ mapper: LabelResourceMapper
122
+ };
123
+ export const labelPatchResource = {
124
+ parameterPath: ["options", "labelPatchResource"],
125
+ mapper: LabelPatchResourceMapper
126
+ };
127
+ export const taskId = {
128
+ parameterPath: "taskId",
129
+ mapper: {
130
+ serializedName: "taskId",
131
+ required: true,
132
+ type: {
133
+ name: "String"
134
+ }
135
+ }
136
+ };
137
+ //# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,OAAO,EACL,iBAAiB,IAAI,uBAAuB,EAC5C,sBAAsB,IAAI,4BAA4B,EACtD,aAAa,IAAI,mBAAmB,EACpC,kBAAkB,IAAI,wBAAwB,EAC/C,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,MAAM,GAAuB;IACxC,aAAa,EAAE,QAAQ;IACvB,MAAM,EAAE;QACN,YAAY,EAAE,kBAAkB;QAChC,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,QAAQ;QACxB,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAA0B;IAC1C,aAAa,EAAE,OAAO;IACtB,MAAM,EAAE;QACN,cAAc,EAAE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./tasks";
4
+ export * from "./operations";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,12 @@
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 regenerated.
7
+ */
8
+ export * from "./workspaces";
9
+ export * from "./labels";
10
+ export * from "./tasks";
11
+ export * from "./operations";
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,87 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Labels } from "../operationsInterfaces";
3
+ import { EasmMgmtClient } from "../easmMgmtClient";
4
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
5
+ import { LabelResource, LabelsListByWorkspaceOptionalParams, LabelsGetByWorkspaceOptionalParams, LabelsGetByWorkspaceResponse, LabelsCreateAndUpdateOptionalParams, LabelsCreateAndUpdateResponse, LabelsUpdateOptionalParams, LabelsUpdateResponse, LabelsDeleteOptionalParams } from "../models";
6
+ /** Class containing Labels operations. */
7
+ export declare class LabelsImpl implements Labels {
8
+ private readonly client;
9
+ /**
10
+ * Initialize a new instance of the class Labels class.
11
+ * @param client Reference to the service client
12
+ */
13
+ constructor(client: EasmMgmtClient);
14
+ /**
15
+ * Returns a list of labels in the given workspace.
16
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
17
+ * @param workspaceName The name of the Workspace.
18
+ * @param options The options parameters.
19
+ */
20
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: LabelsListByWorkspaceOptionalParams): PagedAsyncIterableIterator<LabelResource>;
21
+ private listByWorkspacePagingPage;
22
+ private listByWorkspacePagingAll;
23
+ /**
24
+ * Returns a list of labels in the given workspace.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param workspaceName The name of the Workspace.
27
+ * @param options The options parameters.
28
+ */
29
+ private _listByWorkspace;
30
+ /**
31
+ * Returns a label in the given workspace.
32
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
33
+ * @param workspaceName The name of the Workspace.
34
+ * @param labelName The name of the Label.
35
+ * @param options The options parameters.
36
+ */
37
+ getByWorkspace(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsGetByWorkspaceOptionalParams): Promise<LabelsGetByWorkspaceResponse>;
38
+ /**
39
+ * Create or update a Label.
40
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
+ * @param workspaceName The name of the Workspace.
42
+ * @param labelName The name of the Label.
43
+ * @param options The options parameters.
44
+ */
45
+ beginCreateAndUpdate(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsCreateAndUpdateOptionalParams): Promise<SimplePollerLike<OperationState<LabelsCreateAndUpdateResponse>, LabelsCreateAndUpdateResponse>>;
46
+ /**
47
+ * Create or update a Label.
48
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
49
+ * @param workspaceName The name of the Workspace.
50
+ * @param labelName The name of the Label.
51
+ * @param options The options parameters.
52
+ */
53
+ beginCreateAndUpdateAndWait(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsCreateAndUpdateOptionalParams): Promise<LabelsCreateAndUpdateResponse>;
54
+ /**
55
+ * Update a Label.
56
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
57
+ * @param workspaceName The name of the Workspace.
58
+ * @param labelName The name of the Label.
59
+ * @param options The options parameters.
60
+ */
61
+ update(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsUpdateOptionalParams): Promise<LabelsUpdateResponse>;
62
+ /**
63
+ * Delete a Label.
64
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
65
+ * @param workspaceName The name of the Workspace.
66
+ * @param labelName The name of the Label.
67
+ * @param options The options parameters.
68
+ */
69
+ beginDelete(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
70
+ /**
71
+ * Delete a Label.
72
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
73
+ * @param workspaceName The name of the Workspace.
74
+ * @param labelName The name of the Label.
75
+ * @param options The options parameters.
76
+ */
77
+ beginDeleteAndWait(resourceGroupName: string, workspaceName: string, labelName: string, options?: LabelsDeleteOptionalParams): Promise<void>;
78
+ /**
79
+ * ListByWorkspaceNext
80
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
81
+ * @param workspaceName The name of the Workspace.
82
+ * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
83
+ * @param options The options parameters.
84
+ */
85
+ private _listByWorkspaceNext;
86
+ }
87
+ //# sourceMappingURL=labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../../src/operations/labels.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAIjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,aAAa,EAEb,mCAAmC,EAEnC,kCAAkC,EAClC,4BAA4B,EAC5B,mCAAmC,EACnC,6BAA6B,EAC7B,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAE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AAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IAsDxD;;;;;;OAMG;IACG,kBAAkB,CACtB,iBAAiB,EAAE,MAAM,EACzB,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,0BAA0B,GACnC,OAAO,CAAC,IAAI,CAAC;IAUhB;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB;CAW7B"}
@@ -0,0 +1,395 @@
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 regenerated.
7
+ */
8
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ import { createHttpPoller } from "@azure/core-lro";
14
+ import { createLroSpec } from "../lroImpl";
15
+ /// <reference lib="esnext.asynciterable" />
16
+ /** Class containing Labels operations. */
17
+ export class LabelsImpl {
18
+ /**
19
+ * Initialize a new instance of the class Labels class.
20
+ * @param client Reference to the service client
21
+ */
22
+ constructor(client) {
23
+ this.client = client;
24
+ }
25
+ /**
26
+ * Returns a list of labels in the given workspace.
27
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
28
+ * @param workspaceName The name of the Workspace.
29
+ * @param options The options parameters.
30
+ */
31
+ listByWorkspace(resourceGroupName, workspaceName, options) {
32
+ const iter = this.listByWorkspacePagingAll(resourceGroupName, workspaceName, options);
33
+ return {
34
+ next() {
35
+ return iter.next();
36
+ },
37
+ [Symbol.asyncIterator]() {
38
+ return this;
39
+ },
40
+ byPage: (settings) => {
41
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ throw new Error("maxPageSize is not supported by this operation.");
43
+ }
44
+ return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
45
+ }
46
+ };
47
+ }
48
+ listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
49
+ return __asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
50
+ let result;
51
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
+ if (!continuationToken) {
53
+ result = yield __await(this._listByWorkspace(resourceGroupName, workspaceName, options));
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ setContinuationToken(page, continuationToken);
57
+ yield yield __await(page);
58
+ }
59
+ while (continuationToken) {
60
+ result = yield __await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ setContinuationToken(page, continuationToken);
64
+ yield yield __await(page);
65
+ }
66
+ });
67
+ }
68
+ listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
69
+ return __asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
70
+ var _a, e_1, _b, _c;
71
+ try {
72
+ for (var _d = true, _e = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
73
+ _c = _f.value;
74
+ _d = false;
75
+ try {
76
+ const page = _c;
77
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
78
+ }
79
+ finally {
80
+ _d = true;
81
+ }
82
+ }
83
+ }
84
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
85
+ finally {
86
+ try {
87
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
88
+ }
89
+ finally { if (e_1) throw e_1.error; }
90
+ }
91
+ });
92
+ }
93
+ /**
94
+ * Returns a list of labels in the given workspace.
95
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
96
+ * @param workspaceName The name of the Workspace.
97
+ * @param options The options parameters.
98
+ */
99
+ _listByWorkspace(resourceGroupName, workspaceName, options) {
100
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listByWorkspaceOperationSpec);
101
+ }
102
+ /**
103
+ * Returns a label in the given workspace.
104
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
105
+ * @param workspaceName The name of the Workspace.
106
+ * @param labelName The name of the Label.
107
+ * @param options The options parameters.
108
+ */
109
+ getByWorkspace(resourceGroupName, workspaceName, labelName, options) {
110
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, labelName, options }, getByWorkspaceOperationSpec);
111
+ }
112
+ /**
113
+ * Create or update a Label.
114
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
115
+ * @param workspaceName The name of the Workspace.
116
+ * @param labelName The name of the Label.
117
+ * @param options The options parameters.
118
+ */
119
+ beginCreateAndUpdate(resourceGroupName, workspaceName, labelName, options) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
122
+ return this.client.sendOperationRequest(args, spec);
123
+ });
124
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
125
+ var _a;
126
+ let currentRawResponse = undefined;
127
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
128
+ const callback = (rawResponse, flatResponse) => {
129
+ currentRawResponse = rawResponse;
130
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
131
+ };
132
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
133
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
134
+ return {
135
+ flatResponse,
136
+ rawResponse: {
137
+ statusCode: currentRawResponse.status,
138
+ body: currentRawResponse.parsedBody,
139
+ headers: currentRawResponse.headers.toJSON()
140
+ }
141
+ };
142
+ });
143
+ const lro = createLroSpec({
144
+ sendOperationFn,
145
+ args: { resourceGroupName, workspaceName, labelName, options },
146
+ spec: createAndUpdateOperationSpec
147
+ });
148
+ const poller = yield createHttpPoller(lro, {
149
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
150
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
151
+ resourceLocationConfig: "azure-async-operation"
152
+ });
153
+ yield poller.poll();
154
+ return poller;
155
+ });
156
+ }
157
+ /**
158
+ * Create or update a Label.
159
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
160
+ * @param workspaceName The name of the Workspace.
161
+ * @param labelName The name of the Label.
162
+ * @param options The options parameters.
163
+ */
164
+ beginCreateAndUpdateAndWait(resourceGroupName, workspaceName, labelName, options) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ const poller = yield this.beginCreateAndUpdate(resourceGroupName, workspaceName, labelName, options);
167
+ return poller.pollUntilDone();
168
+ });
169
+ }
170
+ /**
171
+ * Update a Label.
172
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
173
+ * @param workspaceName The name of the Workspace.
174
+ * @param labelName The name of the Label.
175
+ * @param options The options parameters.
176
+ */
177
+ update(resourceGroupName, workspaceName, labelName, options) {
178
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, labelName, options }, updateOperationSpec);
179
+ }
180
+ /**
181
+ * Delete a Label.
182
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
183
+ * @param workspaceName The name of the Workspace.
184
+ * @param labelName The name of the Label.
185
+ * @param options The options parameters.
186
+ */
187
+ beginDelete(resourceGroupName, workspaceName, labelName, options) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
190
+ return this.client.sendOperationRequest(args, spec);
191
+ });
192
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
193
+ var _a;
194
+ let currentRawResponse = undefined;
195
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
196
+ const callback = (rawResponse, flatResponse) => {
197
+ currentRawResponse = rawResponse;
198
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
199
+ };
200
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
201
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
202
+ return {
203
+ flatResponse,
204
+ rawResponse: {
205
+ statusCode: currentRawResponse.status,
206
+ body: currentRawResponse.parsedBody,
207
+ headers: currentRawResponse.headers.toJSON()
208
+ }
209
+ };
210
+ });
211
+ const lro = createLroSpec({
212
+ sendOperationFn,
213
+ args: { resourceGroupName, workspaceName, labelName, options },
214
+ spec: deleteOperationSpec
215
+ });
216
+ const poller = yield createHttpPoller(lro, {
217
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
218
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
219
+ resourceLocationConfig: "azure-async-operation"
220
+ });
221
+ yield poller.poll();
222
+ return poller;
223
+ });
224
+ }
225
+ /**
226
+ * Delete a Label.
227
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
228
+ * @param workspaceName The name of the Workspace.
229
+ * @param labelName The name of the Label.
230
+ * @param options The options parameters.
231
+ */
232
+ beginDeleteAndWait(resourceGroupName, workspaceName, labelName, options) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ const poller = yield this.beginDelete(resourceGroupName, workspaceName, labelName, options);
235
+ return poller.pollUntilDone();
236
+ });
237
+ }
238
+ /**
239
+ * ListByWorkspaceNext
240
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
241
+ * @param workspaceName The name of the Workspace.
242
+ * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
243
+ * @param options The options parameters.
244
+ */
245
+ _listByWorkspaceNext(resourceGroupName, workspaceName, nextLink, options) {
246
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listByWorkspaceNextOperationSpec);
247
+ }
248
+ }
249
+ // Operation Specifications
250
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
251
+ const listByWorkspaceOperationSpec = {
252
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels",
253
+ httpMethod: "GET",
254
+ responses: {
255
+ 200: {
256
+ bodyMapper: Mappers.LabelResourceList
257
+ },
258
+ default: {
259
+ bodyMapper: Mappers.ErrorResponse
260
+ }
261
+ },
262
+ queryParameters: [Parameters.apiVersion],
263
+ urlParameters: [
264
+ Parameters.$host,
265
+ Parameters.subscriptionId,
266
+ Parameters.resourceGroupName,
267
+ Parameters.workspaceName
268
+ ],
269
+ headerParameters: [Parameters.accept],
270
+ serializer
271
+ };
272
+ const getByWorkspaceOperationSpec = {
273
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}",
274
+ httpMethod: "GET",
275
+ responses: {
276
+ 200: {
277
+ bodyMapper: Mappers.LabelResource
278
+ },
279
+ default: {
280
+ bodyMapper: Mappers.ErrorResponse
281
+ }
282
+ },
283
+ queryParameters: [Parameters.apiVersion],
284
+ urlParameters: [
285
+ Parameters.$host,
286
+ Parameters.subscriptionId,
287
+ Parameters.resourceGroupName,
288
+ Parameters.workspaceName,
289
+ Parameters.labelName
290
+ ],
291
+ headerParameters: [Parameters.accept],
292
+ serializer
293
+ };
294
+ const createAndUpdateOperationSpec = {
295
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}",
296
+ httpMethod: "PUT",
297
+ responses: {
298
+ 200: {
299
+ bodyMapper: Mappers.LabelResource
300
+ },
301
+ 201: {
302
+ bodyMapper: Mappers.LabelResource
303
+ },
304
+ 202: {
305
+ bodyMapper: Mappers.LabelResource
306
+ },
307
+ 204: {
308
+ bodyMapper: Mappers.LabelResource
309
+ },
310
+ default: {
311
+ bodyMapper: Mappers.ErrorResponse
312
+ }
313
+ },
314
+ requestBody: Parameters.labelResource,
315
+ queryParameters: [Parameters.apiVersion],
316
+ urlParameters: [
317
+ Parameters.$host,
318
+ Parameters.subscriptionId,
319
+ Parameters.resourceGroupName,
320
+ Parameters.workspaceName,
321
+ Parameters.labelName
322
+ ],
323
+ headerParameters: [Parameters.accept, Parameters.contentType],
324
+ mediaType: "json",
325
+ serializer
326
+ };
327
+ const updateOperationSpec = {
328
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}",
329
+ httpMethod: "PATCH",
330
+ responses: {
331
+ 200: {
332
+ bodyMapper: Mappers.LabelResource
333
+ },
334
+ default: {
335
+ bodyMapper: Mappers.ErrorResponse
336
+ }
337
+ },
338
+ requestBody: Parameters.labelPatchResource,
339
+ queryParameters: [Parameters.apiVersion],
340
+ urlParameters: [
341
+ Parameters.$host,
342
+ Parameters.subscriptionId,
343
+ Parameters.resourceGroupName,
344
+ Parameters.workspaceName,
345
+ Parameters.labelName
346
+ ],
347
+ headerParameters: [Parameters.accept, Parameters.contentType],
348
+ mediaType: "json",
349
+ serializer
350
+ };
351
+ const deleteOperationSpec = {
352
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Easm/workspaces/{workspaceName}/labels/{labelName}",
353
+ httpMethod: "DELETE",
354
+ responses: {
355
+ 200: {},
356
+ 201: {},
357
+ 202: {},
358
+ 204: {},
359
+ default: {
360
+ bodyMapper: Mappers.ErrorResponse
361
+ }
362
+ },
363
+ queryParameters: [Parameters.apiVersion],
364
+ urlParameters: [
365
+ Parameters.$host,
366
+ Parameters.subscriptionId,
367
+ Parameters.resourceGroupName,
368
+ Parameters.workspaceName,
369
+ Parameters.labelName
370
+ ],
371
+ headerParameters: [Parameters.accept],
372
+ serializer
373
+ };
374
+ const listByWorkspaceNextOperationSpec = {
375
+ path: "{nextLink}",
376
+ httpMethod: "GET",
377
+ responses: {
378
+ 200: {
379
+ bodyMapper: Mappers.LabelResourceList
380
+ },
381
+ default: {
382
+ bodyMapper: Mappers.ErrorResponse
383
+ }
384
+ },
385
+ urlParameters: [
386
+ Parameters.$host,
387
+ Parameters.subscriptionId,
388
+ Parameters.resourceGroupName,
389
+ Parameters.workspaceName,
390
+ Parameters.nextLink
391
+ ],
392
+ headerParameters: [Parameters.accept],
393
+ serializer
394
+ };
395
+ //# sourceMappingURL=labels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.js","sourceRoot":"","sources":["../../../src/operations/labels.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAgB3C,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAAsB;QAChC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAA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