@azure/storage-queue 12.30.0-alpha.20260310.1 → 12.31.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 (158) hide show
  1. package/dist/browser/generated/src/storageClient.js +2 -2
  2. package/dist/browser/generated/src/storageClient.js.map +1 -1
  3. package/dist/browser/utils/constants.js +2 -2
  4. package/dist/browser/utils/constants.js.map +1 -1
  5. package/dist/browser/utils/utils.common.d.ts.map +1 -1
  6. package/dist/browser/utils/utils.common.js +14 -0
  7. package/dist/browser/utils/utils.common.js.map +1 -1
  8. package/dist/commonjs/AccountSASPermissions.js +1 -0
  9. package/dist/commonjs/AccountSASPermissions.js.map +1 -1
  10. package/dist/commonjs/AccountSASResourceTypes.js +1 -0
  11. package/dist/commonjs/AccountSASResourceTypes.js.map +1 -1
  12. package/dist/commonjs/AccountSASServices.js +1 -0
  13. package/dist/commonjs/AccountSASServices.js.map +1 -1
  14. package/dist/commonjs/AccountSASSignatureValues.js +1 -0
  15. package/dist/commonjs/AccountSASSignatureValues.js.map +1 -1
  16. package/dist/commonjs/Pipeline.js +1 -0
  17. package/dist/commonjs/Pipeline.js.map +1 -1
  18. package/dist/commonjs/QueueClient.js +1 -0
  19. package/dist/commonjs/QueueClient.js.map +1 -1
  20. package/dist/commonjs/QueueSASPermissions.js +1 -0
  21. package/dist/commonjs/QueueSASPermissions.js.map +1 -1
  22. package/dist/commonjs/QueueSASSignatureValues.js +1 -0
  23. package/dist/commonjs/QueueSASSignatureValues.js.map +1 -1
  24. package/dist/commonjs/QueueServiceClient.js +1 -0
  25. package/dist/commonjs/QueueServiceClient.js.map +1 -1
  26. package/dist/commonjs/SASQueryParameters.js +1 -0
  27. package/dist/commonjs/SASQueryParameters.js.map +1 -1
  28. package/dist/commonjs/SasIPRange.js +1 -0
  29. package/dist/commonjs/SasIPRange.js.map +1 -1
  30. package/dist/commonjs/StorageClient.js +1 -0
  31. package/dist/commonjs/StorageClient.js.map +1 -1
  32. package/dist/commonjs/StorageContextClient.js +1 -0
  33. package/dist/commonjs/StorageContextClient.js.map +1 -1
  34. package/dist/commonjs/generated/src/index.js +1 -0
  35. package/dist/commonjs/generated/src/index.js.map +1 -1
  36. package/dist/commonjs/generated/src/models/index.js +1 -0
  37. package/dist/commonjs/generated/src/models/index.js.map +1 -1
  38. package/dist/commonjs/generated/src/models/mappers.js +1 -0
  39. package/dist/commonjs/generated/src/models/mappers.js.map +1 -1
  40. package/dist/commonjs/generated/src/models/parameters.js +1 -0
  41. package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
  42. package/dist/commonjs/generated/src/operations/index.js +1 -0
  43. package/dist/commonjs/generated/src/operations/index.js.map +1 -1
  44. package/dist/commonjs/generated/src/operations/messageId.js +1 -0
  45. package/dist/commonjs/generated/src/operations/messageId.js.map +1 -1
  46. package/dist/commonjs/generated/src/operations/messages.js +1 -0
  47. package/dist/commonjs/generated/src/operations/messages.js.map +1 -1
  48. package/dist/commonjs/generated/src/operations/queue.js +1 -0
  49. package/dist/commonjs/generated/src/operations/queue.js.map +1 -1
  50. package/dist/commonjs/generated/src/operations/service.js +1 -0
  51. package/dist/commonjs/generated/src/operations/service.js.map +1 -1
  52. package/dist/commonjs/generated/src/operationsInterfaces/index.js +1 -0
  53. package/dist/commonjs/generated/src/operationsInterfaces/index.js.map +1 -1
  54. package/dist/commonjs/generated/src/operationsInterfaces/messageId.js +1 -0
  55. package/dist/commonjs/generated/src/operationsInterfaces/messageId.js.map +1 -1
  56. package/dist/commonjs/generated/src/operationsInterfaces/messages.js +1 -0
  57. package/dist/commonjs/generated/src/operationsInterfaces/messages.js.map +1 -1
  58. package/dist/commonjs/generated/src/operationsInterfaces/queue.js +1 -0
  59. package/dist/commonjs/generated/src/operationsInterfaces/queue.js.map +1 -1
  60. package/dist/commonjs/generated/src/operationsInterfaces/service.js +1 -0
  61. package/dist/commonjs/generated/src/operationsInterfaces/service.js.map +1 -1
  62. package/dist/commonjs/generated/src/storageClient.js +3 -2
  63. package/dist/commonjs/generated/src/storageClient.js.map +2 -2
  64. package/dist/commonjs/generatedModels.js +1 -0
  65. package/dist/commonjs/generatedModels.js.map +1 -1
  66. package/dist/commonjs/index.js +1 -0
  67. package/dist/commonjs/index.js.map +1 -1
  68. package/dist/commonjs/log.js +1 -0
  69. package/dist/commonjs/log.js.map +1 -1
  70. package/dist/commonjs/models.js +1 -0
  71. package/dist/commonjs/models.js.map +1 -1
  72. package/dist/commonjs/tsdoc-metadata.json +1 -1
  73. package/dist/commonjs/utils/constants.js +3 -2
  74. package/dist/commonjs/utils/constants.js.map +2 -2
  75. package/dist/commonjs/utils/tracing.js +1 -0
  76. package/dist/commonjs/utils/tracing.js.map +1 -1
  77. package/dist/commonjs/utils/utils.common.d.ts.map +1 -1
  78. package/dist/commonjs/utils/utils.common.js +14 -0
  79. package/dist/commonjs/utils/utils.common.js.map +3 -3
  80. package/dist/esm/AccountSASPermissions.js +123 -111
  81. package/dist/esm/AccountSASPermissions.js.map +1 -7
  82. package/dist/esm/AccountSASResourceTypes.js +67 -58
  83. package/dist/esm/AccountSASResourceTypes.js.map +1 -7
  84. package/dist/esm/AccountSASServices.js +75 -66
  85. package/dist/esm/AccountSASServices.js.map +1 -7
  86. package/dist/esm/AccountSASSignatureValues.js +63 -62
  87. package/dist/esm/AccountSASSignatureValues.js.map +1 -7
  88. package/dist/esm/Pipeline.js +239 -239
  89. package/dist/esm/Pipeline.js.map +1 -7
  90. package/dist/esm/QueueClient.js +671 -689
  91. package/dist/esm/QueueClient.js.map +1 -7
  92. package/dist/esm/QueueSASPermissions.js +77 -68
  93. package/dist/esm/QueueSASPermissions.js.map +1 -7
  94. package/dist/esm/QueueSASSignatureValues.js +103 -123
  95. package/dist/esm/QueueSASSignatureValues.js.map +1 -7
  96. package/dist/esm/QueueServiceClient.js +463 -505
  97. package/dist/esm/QueueServiceClient.js.map +1 -7
  98. package/dist/esm/SASQueryParameters.js +272 -283
  99. package/dist/esm/SASQueryParameters.js.map +1 -7
  100. package/dist/esm/SasIPRange.js +12 -5
  101. package/dist/esm/SasIPRange.js.map +1 -7
  102. package/dist/esm/StorageClient.js +59 -50
  103. package/dist/esm/StorageClient.js.map +1 -7
  104. package/dist/esm/StorageContextClient.js +15 -10
  105. package/dist/esm/StorageContextClient.js.map +1 -7
  106. package/dist/esm/generated/src/index.js +9 -4
  107. package/dist/esm/generated/src/index.js.map +1 -7
  108. package/dist/esm/generated/src/models/index.js +126 -63
  109. package/dist/esm/generated/src/models/index.js.map +1 -7
  110. package/dist/esm/generated/src/models/mappers.js +1827 -1873
  111. package/dist/esm/generated/src/models/mappers.js.map +1 -7
  112. package/dist/esm/generated/src/models/parameters.js +302 -330
  113. package/dist/esm/generated/src/models/parameters.js.map +1 -7
  114. package/dist/esm/generated/src/operations/index.js +8 -0
  115. package/dist/esm/generated/src/operations/index.js.map +1 -7
  116. package/dist/esm/generated/src/operations/messageId.js +92 -95
  117. package/dist/esm/generated/src/operations/messageId.js.map +1 -7
  118. package/dist/esm/generated/src/operations/messages.js +178 -178
  119. package/dist/esm/generated/src/operations/messages.js.map +1 -7
  120. package/dist/esm/generated/src/operations/queue.js +199 -208
  121. package/dist/esm/generated/src/operations/queue.js.map +1 -7
  122. package/dist/esm/generated/src/operations/service.js +192 -204
  123. package/dist/esm/generated/src/operations/service.js.map +1 -7
  124. package/dist/esm/generated/src/operationsInterfaces/index.js +8 -0
  125. package/dist/esm/generated/src/operationsInterfaces/index.js.map +1 -7
  126. package/dist/esm/generated/src/operationsInterfaces/messageId.js +9 -0
  127. package/dist/esm/generated/src/operationsInterfaces/messageId.js.map +1 -7
  128. package/dist/esm/generated/src/operationsInterfaces/messages.js +9 -0
  129. package/dist/esm/generated/src/operationsInterfaces/messages.js.map +1 -7
  130. package/dist/esm/generated/src/operationsInterfaces/queue.js +9 -0
  131. package/dist/esm/generated/src/operationsInterfaces/queue.js.map +1 -7
  132. package/dist/esm/generated/src/operationsInterfaces/service.js +9 -0
  133. package/dist/esm/generated/src/operationsInterfaces/service.js.map +1 -7
  134. package/dist/esm/generated/src/storageClient.js +54 -49
  135. package/dist/esm/generated/src/storageClient.js.map +1 -7
  136. package/dist/esm/generatedModels.js +4 -0
  137. package/dist/esm/generatedModels.js.map +1 -7
  138. package/dist/esm/index.js +10 -50
  139. package/dist/esm/index.js.map +1 -7
  140. package/dist/esm/log.js +7 -4
  141. package/dist/esm/log.js.map +1 -7
  142. package/dist/esm/models.js +18 -10
  143. package/dist/esm/models.js.map +1 -7
  144. package/dist/esm/utils/constants.js +111 -117
  145. package/dist/esm/utils/constants.js.map +1 -7
  146. package/dist/esm/utils/tracing.js +11 -7
  147. package/dist/esm/utils/tracing.js.map +1 -7
  148. package/dist/esm/utils/utils.common.d.ts.map +1 -1
  149. package/dist/esm/utils/utils.common.js +372 -247
  150. package/dist/esm/utils/utils.common.js.map +1 -7
  151. package/dist/react-native/generated/src/storageClient.js +2 -2
  152. package/dist/react-native/generated/src/storageClient.js.map +1 -1
  153. package/dist/react-native/utils/constants.js +2 -2
  154. package/dist/react-native/utils/constants.js.map +1 -1
  155. package/dist/react-native/utils/utils.common.d.ts.map +1 -1
  156. package/dist/react-native/utils/utils.common.js +14 -0
  157. package/dist/react-native/utils/utils.common.js.map +1 -1
  158. package/package.json +26 -22
@@ -1,223 +1,211 @@
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
+ */
1
8
  import * as coreClient from "@azure/core-client";
2
9
  import * as Mappers from "../models/mappers.js";
3
10
  import * as Parameters from "../models/parameters.js";
4
- class ServiceImpl {
5
- client;
6
- /**
7
- * Initialize a new instance of the class Service class.
8
- * @param client Reference to the service client
9
- */
10
- constructor(client) {
11
- this.client = client;
12
- }
13
- /**
14
- * Sets properties for a storage account's Queue service endpoint, including properties for Storage
15
- * Analytics and CORS (Cross-Origin Resource Sharing) rules
16
- * @param properties The StorageService properties.
17
- * @param options The options parameters.
18
- */
19
- setProperties(properties, options) {
20
- return this.client.sendOperationRequest(
21
- { properties, options },
22
- setPropertiesOperationSpec
23
- );
24
- }
25
- /**
26
- * gets the properties of a storage account's Queue service, including properties for Storage Analytics
27
- * and CORS (Cross-Origin Resource Sharing) rules.
28
- * @param options The options parameters.
29
- */
30
- getProperties(options) {
31
- return this.client.sendOperationRequest(
32
- { options },
33
- getPropertiesOperationSpec
34
- );
35
- }
36
- /**
37
- * Retrieves statistics related to replication for the Queue service. It is only available on the
38
- * secondary location endpoint when read-access geo-redundant replication is enabled for the storage
39
- * account.
40
- * @param options The options parameters.
41
- */
42
- getStatistics(options) {
43
- return this.client.sendOperationRequest(
44
- { options },
45
- getStatisticsOperationSpec
46
- );
47
- }
48
- /**
49
- * Retrieves a user delegation key for the Queue service. This is only a valid operation when using
50
- * bearer token authentication.
51
- * @param keyInfo Key information
52
- * @param options The options parameters.
53
- */
54
- getUserDelegationKey(keyInfo, options) {
55
- return this.client.sendOperationRequest(
56
- { keyInfo, options },
57
- getUserDelegationKeyOperationSpec
58
- );
59
- }
60
- /**
61
- * The List Queues Segment operation returns a list of the queues under the specified account
62
- * @param options The options parameters.
63
- */
64
- listQueuesSegment(options) {
65
- return this.client.sendOperationRequest(
66
- { options },
67
- listQueuesSegmentOperationSpec
68
- );
69
- }
11
+ /** Class containing Service operations. */
12
+ export class ServiceImpl {
13
+ client;
14
+ /**
15
+ * Initialize a new instance of the class Service class.
16
+ * @param client Reference to the service client
17
+ */
18
+ constructor(client) {
19
+ this.client = client;
20
+ }
21
+ /**
22
+ * Sets properties for a storage account's Queue service endpoint, including properties for Storage
23
+ * Analytics and CORS (Cross-Origin Resource Sharing) rules
24
+ * @param properties The StorageService properties.
25
+ * @param options The options parameters.
26
+ */
27
+ setProperties(properties, options) {
28
+ return this.client.sendOperationRequest({ properties, options }, setPropertiesOperationSpec);
29
+ }
30
+ /**
31
+ * gets the properties of a storage account's Queue service, including properties for Storage Analytics
32
+ * and CORS (Cross-Origin Resource Sharing) rules.
33
+ * @param options The options parameters.
34
+ */
35
+ getProperties(options) {
36
+ return this.client.sendOperationRequest({ options }, getPropertiesOperationSpec);
37
+ }
38
+ /**
39
+ * Retrieves statistics related to replication for the Queue service. It is only available on the
40
+ * secondary location endpoint when read-access geo-redundant replication is enabled for the storage
41
+ * account.
42
+ * @param options The options parameters.
43
+ */
44
+ getStatistics(options) {
45
+ return this.client.sendOperationRequest({ options }, getStatisticsOperationSpec);
46
+ }
47
+ /**
48
+ * Retrieves a user delegation key for the Queue service. This is only a valid operation when using
49
+ * bearer token authentication.
50
+ * @param keyInfo Key information
51
+ * @param options The options parameters.
52
+ */
53
+ getUserDelegationKey(keyInfo, options) {
54
+ return this.client.sendOperationRequest({ keyInfo, options }, getUserDelegationKeyOperationSpec);
55
+ }
56
+ /**
57
+ * The List Queues Segment operation returns a list of the queues under the specified account
58
+ * @param options The options parameters.
59
+ */
60
+ listQueuesSegment(options) {
61
+ return this.client.sendOperationRequest({ options }, listQueuesSegmentOperationSpec);
62
+ }
70
63
  }
71
- const xmlSerializer = coreClient.createSerializer(
72
- Mappers,
73
- /* isXml */
74
- true
75
- );
64
+ // Operation Specifications
65
+ const xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);
76
66
  const setPropertiesOperationSpec = {
77
- path: "/",
78
- httpMethod: "PUT",
79
- responses: {
80
- 202: {
81
- headersMapper: Mappers.ServiceSetPropertiesHeaders
67
+ path: "/",
68
+ httpMethod: "PUT",
69
+ responses: {
70
+ 202: {
71
+ headersMapper: Mappers.ServiceSetPropertiesHeaders,
72
+ },
73
+ default: {
74
+ bodyMapper: Mappers.StorageError,
75
+ headersMapper: Mappers.ServiceSetPropertiesExceptionHeaders,
76
+ },
82
77
  },
83
- default: {
84
- bodyMapper: Mappers.StorageError,
85
- headersMapper: Mappers.ServiceSetPropertiesExceptionHeaders
86
- }
87
- },
88
- requestBody: Parameters.properties,
89
- queryParameters: [
90
- Parameters.restype,
91
- Parameters.comp,
92
- Parameters.timeoutInSeconds
93
- ],
94
- urlParameters: [Parameters.url],
95
- headerParameters: [
96
- Parameters.contentType,
97
- Parameters.accept,
98
- Parameters.version,
99
- Parameters.requestId
100
- ],
101
- isXML: true,
102
- contentType: "application/xml; charset=utf-8",
103
- mediaType: "xml",
104
- serializer: xmlSerializer
78
+ requestBody: Parameters.properties,
79
+ queryParameters: [
80
+ Parameters.restype,
81
+ Parameters.comp,
82
+ Parameters.timeoutInSeconds,
83
+ ],
84
+ urlParameters: [Parameters.url],
85
+ headerParameters: [
86
+ Parameters.contentType,
87
+ Parameters.accept,
88
+ Parameters.version,
89
+ Parameters.requestId,
90
+ ],
91
+ isXML: true,
92
+ contentType: "application/xml; charset=utf-8",
93
+ mediaType: "xml",
94
+ serializer: xmlSerializer,
105
95
  };
106
96
  const getPropertiesOperationSpec = {
107
- path: "/",
108
- httpMethod: "GET",
109
- responses: {
110
- 200: {
111
- bodyMapper: Mappers.QueueServiceProperties,
112
- headersMapper: Mappers.ServiceGetPropertiesHeaders
97
+ path: "/",
98
+ httpMethod: "GET",
99
+ responses: {
100
+ 200: {
101
+ bodyMapper: Mappers.QueueServiceProperties,
102
+ headersMapper: Mappers.ServiceGetPropertiesHeaders,
103
+ },
104
+ default: {
105
+ bodyMapper: Mappers.StorageError,
106
+ headersMapper: Mappers.ServiceGetPropertiesExceptionHeaders,
107
+ },
113
108
  },
114
- default: {
115
- bodyMapper: Mappers.StorageError,
116
- headersMapper: Mappers.ServiceGetPropertiesExceptionHeaders
117
- }
118
- },
119
- queryParameters: [
120
- Parameters.restype,
121
- Parameters.comp,
122
- Parameters.timeoutInSeconds
123
- ],
124
- urlParameters: [Parameters.url],
125
- headerParameters: [
126
- Parameters.version,
127
- Parameters.requestId,
128
- Parameters.accept1
129
- ],
130
- isXML: true,
131
- serializer: xmlSerializer
109
+ queryParameters: [
110
+ Parameters.restype,
111
+ Parameters.comp,
112
+ Parameters.timeoutInSeconds,
113
+ ],
114
+ urlParameters: [Parameters.url],
115
+ headerParameters: [
116
+ Parameters.version,
117
+ Parameters.requestId,
118
+ Parameters.accept1,
119
+ ],
120
+ isXML: true,
121
+ serializer: xmlSerializer,
132
122
  };
133
123
  const getStatisticsOperationSpec = {
134
- path: "/",
135
- httpMethod: "GET",
136
- responses: {
137
- 200: {
138
- bodyMapper: Mappers.QueueServiceStatistics,
139
- headersMapper: Mappers.ServiceGetStatisticsHeaders
124
+ path: "/",
125
+ httpMethod: "GET",
126
+ responses: {
127
+ 200: {
128
+ bodyMapper: Mappers.QueueServiceStatistics,
129
+ headersMapper: Mappers.ServiceGetStatisticsHeaders,
130
+ },
131
+ default: {
132
+ bodyMapper: Mappers.StorageError,
133
+ headersMapper: Mappers.ServiceGetStatisticsExceptionHeaders,
134
+ },
140
135
  },
141
- default: {
142
- bodyMapper: Mappers.StorageError,
143
- headersMapper: Mappers.ServiceGetStatisticsExceptionHeaders
144
- }
145
- },
146
- queryParameters: [
147
- Parameters.restype,
148
- Parameters.timeoutInSeconds,
149
- Parameters.comp1
150
- ],
151
- urlParameters: [Parameters.url],
152
- headerParameters: [
153
- Parameters.version,
154
- Parameters.requestId,
155
- Parameters.accept1
156
- ],
157
- isXML: true,
158
- serializer: xmlSerializer
136
+ queryParameters: [
137
+ Parameters.restype,
138
+ Parameters.timeoutInSeconds,
139
+ Parameters.comp1,
140
+ ],
141
+ urlParameters: [Parameters.url],
142
+ headerParameters: [
143
+ Parameters.version,
144
+ Parameters.requestId,
145
+ Parameters.accept1,
146
+ ],
147
+ isXML: true,
148
+ serializer: xmlSerializer,
159
149
  };
160
150
  const getUserDelegationKeyOperationSpec = {
161
- path: "/",
162
- httpMethod: "POST",
163
- responses: {
164
- 200: {
165
- bodyMapper: Mappers.UserDelegationKey,
166
- headersMapper: Mappers.ServiceGetUserDelegationKeyHeaders
151
+ path: "/",
152
+ httpMethod: "POST",
153
+ responses: {
154
+ 200: {
155
+ bodyMapper: Mappers.UserDelegationKey,
156
+ headersMapper: Mappers.ServiceGetUserDelegationKeyHeaders,
157
+ },
158
+ default: {
159
+ bodyMapper: Mappers.StorageError,
160
+ headersMapper: Mappers.ServiceGetUserDelegationKeyExceptionHeaders,
161
+ },
167
162
  },
168
- default: {
169
- bodyMapper: Mappers.StorageError,
170
- headersMapper: Mappers.ServiceGetUserDelegationKeyExceptionHeaders
171
- }
172
- },
173
- requestBody: Parameters.keyInfo,
174
- queryParameters: [
175
- Parameters.restype,
176
- Parameters.timeoutInSeconds,
177
- Parameters.comp2
178
- ],
179
- urlParameters: [Parameters.url],
180
- headerParameters: [
181
- Parameters.contentType,
182
- Parameters.accept,
183
- Parameters.version,
184
- Parameters.requestId
185
- ],
186
- isXML: true,
187
- contentType: "application/xml; charset=utf-8",
188
- mediaType: "xml",
189
- serializer: xmlSerializer
163
+ requestBody: Parameters.keyInfo,
164
+ queryParameters: [
165
+ Parameters.restype,
166
+ Parameters.timeoutInSeconds,
167
+ Parameters.comp2,
168
+ ],
169
+ urlParameters: [Parameters.url],
170
+ headerParameters: [
171
+ Parameters.contentType,
172
+ Parameters.accept,
173
+ Parameters.version,
174
+ Parameters.requestId,
175
+ ],
176
+ isXML: true,
177
+ contentType: "application/xml; charset=utf-8",
178
+ mediaType: "xml",
179
+ serializer: xmlSerializer,
190
180
  };
191
181
  const listQueuesSegmentOperationSpec = {
192
- path: "/",
193
- httpMethod: "GET",
194
- responses: {
195
- 200: {
196
- bodyMapper: Mappers.ListQueuesSegmentResponse,
197
- headersMapper: Mappers.ServiceListQueuesSegmentHeaders
182
+ path: "/",
183
+ httpMethod: "GET",
184
+ responses: {
185
+ 200: {
186
+ bodyMapper: Mappers.ListQueuesSegmentResponse,
187
+ headersMapper: Mappers.ServiceListQueuesSegmentHeaders,
188
+ },
189
+ default: {
190
+ bodyMapper: Mappers.StorageError,
191
+ headersMapper: Mappers.ServiceListQueuesSegmentExceptionHeaders,
192
+ },
198
193
  },
199
- default: {
200
- bodyMapper: Mappers.StorageError,
201
- headersMapper: Mappers.ServiceListQueuesSegmentExceptionHeaders
202
- }
203
- },
204
- queryParameters: [
205
- Parameters.timeoutInSeconds,
206
- Parameters.comp3,
207
- Parameters.prefix,
208
- Parameters.marker,
209
- Parameters.maxPageSize,
210
- Parameters.include
211
- ],
212
- urlParameters: [Parameters.url],
213
- headerParameters: [
214
- Parameters.version,
215
- Parameters.requestId,
216
- Parameters.accept1
217
- ],
218
- isXML: true,
219
- serializer: xmlSerializer
220
- };
221
- export {
222
- ServiceImpl
194
+ queryParameters: [
195
+ Parameters.timeoutInSeconds,
196
+ Parameters.comp3,
197
+ Parameters.prefix,
198
+ Parameters.marker,
199
+ Parameters.maxPageSize,
200
+ Parameters.include,
201
+ ],
202
+ urlParameters: [Parameters.url],
203
+ headerParameters: [
204
+ Parameters.version,
205
+ Parameters.requestId,
206
+ Parameters.accept1,
207
+ ],
208
+ isXML: true,
209
+ serializer: xmlSerializer,
223
210
  };
211
+ //# sourceMappingURL=service.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["/mnt/vss/_work/1/s/sdk/storage/storage-queue/src/generated/src/operations/service.ts"],
4
- "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Service } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n QueueServiceProperties,\n ServiceSetPropertiesOptionalParams,\n ServiceSetPropertiesResponse,\n ServiceGetPropertiesOptionalParams,\n ServiceGetPropertiesResponse,\n ServiceGetStatisticsOptionalParams,\n ServiceGetStatisticsResponse,\n KeyInfo,\n ServiceGetUserDelegationKeyOptionalParams,\n ServiceGetUserDelegationKeyResponse,\n ServiceListQueuesSegmentOptionalParams,\n ServiceListQueuesSegmentResponse,\n} from \"../models/index.js\";\n\n/** Class containing Service operations. */\nexport class ServiceImpl implements Service {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Service class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * Sets properties for a storage account's Queue service endpoint, including properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules\n * @param properties The StorageService properties.\n * @param options The options parameters.\n */\n setProperties(\n properties: QueueServiceProperties,\n options?: ServiceSetPropertiesOptionalParams,\n ): Promise<ServiceSetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { properties, options },\n setPropertiesOperationSpec,\n );\n }\n\n /**\n * gets the properties of a storage account's Queue service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n getProperties(\n options?: ServiceGetPropertiesOptionalParams,\n ): Promise<ServiceGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec,\n );\n }\n\n /**\n * Retrieves statistics related to replication for the Queue service. It is only available on the\n * secondary location endpoint when read-access geo-redundant replication is enabled for the storage\n * account.\n * @param options The options parameters.\n */\n getStatistics(\n options?: ServiceGetStatisticsOptionalParams,\n ): Promise<ServiceGetStatisticsResponse> {\n return this.client.sendOperationRequest(\n { options },\n getStatisticsOperationSpec,\n );\n }\n\n /**\n * Retrieves a user delegation key for the Queue service. This is only a valid operation when using\n * bearer token authentication.\n * @param keyInfo Key information\n * @param options The options parameters.\n */\n getUserDelegationKey(\n keyInfo: KeyInfo,\n options?: ServiceGetUserDelegationKeyOptionalParams,\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n return this.client.sendOperationRequest(\n { keyInfo, options },\n getUserDelegationKeyOperationSpec,\n );\n }\n\n /**\n * The List Queues Segment operation returns a list of the queues under the specified account\n * @param options The options parameters.\n */\n listQueuesSegment(\n options?: ServiceListQueuesSegmentOptionalParams,\n ): Promise<ServiceListQueuesSegmentResponse> {\n return this.client.sendOperationRequest(\n { options },\n listQueuesSegmentOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst setPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.ServiceSetPropertiesHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceSetPropertiesExceptionHeaders,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer,\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceProperties,\n headersMapper: Mappers.ServiceGetPropertiesHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetPropertiesExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst getStatisticsOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceStatistics,\n headersMapper: Mappers.ServiceGetStatisticsHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetStatisticsExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.restype,\n Parameters.timeoutInSeconds,\n Parameters.comp1,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst getUserDelegationKeyOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserDelegationKey,\n headersMapper: Mappers.ServiceGetUserDelegationKeyHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetUserDelegationKeyExceptionHeaders,\n },\n },\n requestBody: Parameters.keyInfo,\n queryParameters: [\n Parameters.restype,\n Parameters.timeoutInSeconds,\n Parameters.comp2,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer,\n};\nconst listQueuesSegmentOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueuesSegmentResponse,\n headersMapper: Mappers.ServiceListQueuesSegmentHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceListQueuesSegmentExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.comp3,\n Parameters.prefix,\n Parameters.marker,\n Parameters.maxPageSize,\n Parameters.include,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\n"],
5
- "mappings": "AASA,YAAY,gBAAgB;AAC5B,YAAY,aAAa;AACzB,YAAY,gBAAgB;AAkBrB,MAAM,YAA+B;AAAA,EACzB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,YAAY,QAAuB;AACjC,SAAK,SAAS;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA;A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A,IACzB;AAAA,EACF;AAAA,EACA,aAAa,WAAW;AAAA,EACxB,iBAAiB;AAAA,IACf,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EACA,eAAe,CAAC,WAAW,GAAG;AAAA,EAC9B,kBAAkB;AAAA,IAChB,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,EACP,aAAa;AAAA,EACb,WAAW;AAAA,EACX,YAAY;AACd;AACA,MAAM,iCAA2D;AAAA,EAC/D,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,WAAW;AAAA,IACT,KAAK;AAAA,MACH,YAAY,QAAQ;AAAA,MACpB,eAAe,QAAQ;AAAA,IACzB;AAAA,IACA,SAAS;AAAA,MACP,YAAY,QAAQ;AAAA,MACpB,eAAe,QAAQ;AAAA,IACzB;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EACA,eAAe,CAAC,WAAW,GAAG;AAAA,EAC9B,kBAAkB;AAAA,IAChB,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AACd;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/generated/src/operations/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAAgB;IAEvC;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,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OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,YAAY;YAChC,aAAa,EAAE,OAAO,CAAC,wCAAwC;SAChE;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,OAAO;KACnB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;IAC/B,gBAAgB,EAAE;QAChB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,OAAO;KACnB;IACD,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,aAAa;CAC1B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Service } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageClient } from \"../storageClient.js\";\nimport {\n QueueServiceProperties,\n ServiceSetPropertiesOptionalParams,\n ServiceSetPropertiesResponse,\n ServiceGetPropertiesOptionalParams,\n ServiceGetPropertiesResponse,\n ServiceGetStatisticsOptionalParams,\n ServiceGetStatisticsResponse,\n KeyInfo,\n ServiceGetUserDelegationKeyOptionalParams,\n ServiceGetUserDelegationKeyResponse,\n ServiceListQueuesSegmentOptionalParams,\n ServiceListQueuesSegmentResponse,\n} from \"../models/index.js\";\n\n/** Class containing Service operations. */\nexport class ServiceImpl implements Service {\n private readonly client: StorageClient;\n\n /**\n * Initialize a new instance of the class Service class.\n * @param client Reference to the service client\n */\n constructor(client: StorageClient) {\n this.client = client;\n }\n\n /**\n * Sets properties for a storage account's Queue service endpoint, including properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules\n * @param properties The StorageService properties.\n * @param options The options parameters.\n */\n setProperties(\n properties: QueueServiceProperties,\n options?: ServiceSetPropertiesOptionalParams,\n ): Promise<ServiceSetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { properties, options },\n setPropertiesOperationSpec,\n );\n }\n\n /**\n * gets the properties of a storage account's Queue service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n getProperties(\n options?: ServiceGetPropertiesOptionalParams,\n ): Promise<ServiceGetPropertiesResponse> {\n return this.client.sendOperationRequest(\n { options },\n getPropertiesOperationSpec,\n );\n }\n\n /**\n * Retrieves statistics related to replication for the Queue service. It is only available on the\n * secondary location endpoint when read-access geo-redundant replication is enabled for the storage\n * account.\n * @param options The options parameters.\n */\n getStatistics(\n options?: ServiceGetStatisticsOptionalParams,\n ): Promise<ServiceGetStatisticsResponse> {\n return this.client.sendOperationRequest(\n { options },\n getStatisticsOperationSpec,\n );\n }\n\n /**\n * Retrieves a user delegation key for the Queue service. This is only a valid operation when using\n * bearer token authentication.\n * @param keyInfo Key information\n * @param options The options parameters.\n */\n getUserDelegationKey(\n keyInfo: KeyInfo,\n options?: ServiceGetUserDelegationKeyOptionalParams,\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n return this.client.sendOperationRequest(\n { keyInfo, options },\n getUserDelegationKeyOperationSpec,\n );\n }\n\n /**\n * The List Queues Segment operation returns a list of the queues under the specified account\n * @param options The options parameters.\n */\n listQueuesSegment(\n options?: ServiceListQueuesSegmentOptionalParams,\n ): Promise<ServiceListQueuesSegmentResponse> {\n return this.client.sendOperationRequest(\n { options },\n listQueuesSegmentOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst xmlSerializer = coreClient.createSerializer(Mappers, /* isXml */ true);\n\nconst setPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"PUT\",\n responses: {\n 202: {\n headersMapper: Mappers.ServiceSetPropertiesHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceSetPropertiesExceptionHeaders,\n },\n },\n requestBody: Parameters.properties,\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer,\n};\nconst getPropertiesOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceProperties,\n headersMapper: Mappers.ServiceGetPropertiesHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetPropertiesExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.restype,\n Parameters.comp,\n Parameters.timeoutInSeconds,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst getStatisticsOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueueServiceStatistics,\n headersMapper: Mappers.ServiceGetStatisticsHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetStatisticsExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.restype,\n Parameters.timeoutInSeconds,\n Parameters.comp1,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\nconst getUserDelegationKeyOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserDelegationKey,\n headersMapper: Mappers.ServiceGetUserDelegationKeyHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceGetUserDelegationKeyExceptionHeaders,\n },\n },\n requestBody: Parameters.keyInfo,\n queryParameters: [\n Parameters.restype,\n Parameters.timeoutInSeconds,\n Parameters.comp2,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.version,\n Parameters.requestId,\n ],\n isXML: true,\n contentType: \"application/xml; charset=utf-8\",\n mediaType: \"xml\",\n serializer: xmlSerializer,\n};\nconst listQueuesSegmentOperationSpec: coreClient.OperationSpec = {\n path: \"/\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListQueuesSegmentResponse,\n headersMapper: Mappers.ServiceListQueuesSegmentHeaders,\n },\n default: {\n bodyMapper: Mappers.StorageError,\n headersMapper: Mappers.ServiceListQueuesSegmentExceptionHeaders,\n },\n },\n queryParameters: [\n Parameters.timeoutInSeconds,\n Parameters.comp3,\n Parameters.prefix,\n Parameters.marker,\n Parameters.maxPageSize,\n Parameters.include,\n ],\n urlParameters: [Parameters.url],\n headerParameters: [\n Parameters.version,\n Parameters.requestId,\n Parameters.accept1,\n ],\n isXML: true,\n serializer: xmlSerializer,\n};\n"]}
@@ -1,4 +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
+ */
1
8
  export * from "./service.js";
2
9
  export * from "./queue.js";
3
10
  export * from "./messages.js";
4
11
  export * from "./messageId.js";
12
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["/mnt/vss/_work/1/s/sdk/storage/storage-queue/src/generated/src/operationsInterfaces/index.ts"],
4
- "sourcesContent": ["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./service.js\";\nexport * from \"./queue.js\";\nexport * from \"./messages.js\";\nexport * from \"./messageId.js\";\n"],
5
- "mappings": "AAQA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
6
- "names": []
7
- }
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./service.js\";\nexport * from \"./queue.js\";\nexport * from \"./messages.js\";\nexport * from \"./messageId.js\";\n"]}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=messageId.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
1
+ {"version":3,"file":"messageId.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/messageId.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n MessageIdUpdateOptionalParams,\n MessageIdUpdateResponse,\n MessageIdDeleteOptionalParams,\n MessageIdDeleteResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a MessageId. */\nexport interface MessageId {\n /**\n * The Update operation was introduced with version 2011-08-18 of the Queue service API. The Update\n * Message operation updates the visibility timeout of a message. You can also use this operation to\n * update the contents of a message. A message must be in a format that can be included in an XML\n * request with UTF-8 encoding, and the encoded message can be up to 64KB in size.\n * @param popReceipt Required. Specifies the valid pop receipt value returned from an earlier call to\n * the Get Messages or Update Message operation.\n * @param visibilityTimeout Optional. Specifies the new visibility timeout value, in seconds, relative\n * to server time. The default value is 30 seconds. A specified value must be larger than or equal to 1\n * second, and cannot be larger than 7 days, or larger than 2 hours on REST protocol versions prior to\n * version 2011-08-18. The visibility timeout of a message can be set to a value later than the expiry\n * time.\n * @param options The options parameters.\n */\n update(\n popReceipt: string,\n visibilityTimeout: number,\n options?: MessageIdUpdateOptionalParams,\n ): Promise<MessageIdUpdateResponse>;\n /**\n * The Delete operation deletes the specified message.\n * @param popReceipt Required. Specifies the valid pop receipt value returned from an earlier call to\n * the Get Messages or Update Message operation.\n * @param options The options parameters.\n */\n delete(\n popReceipt: string,\n options?: MessageIdDeleteOptionalParams,\n ): Promise<MessageIdDeleteResponse>;\n}\n"]}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=messages.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/messages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n MessagesDequeueOptionalParams,\n MessagesDequeueResponse,\n MessagesClearOptionalParams,\n MessagesClearResponse,\n QueueMessage,\n MessagesEnqueueOptionalParams,\n MessagesEnqueueResponse,\n MessagesPeekOptionalParams,\n MessagesPeekResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Messages. */\nexport interface Messages {\n /**\n * The Dequeue operation retrieves one or more messages from the front of the queue.\n * @param options The options parameters.\n */\n dequeue(\n options?: MessagesDequeueOptionalParams,\n ): Promise<MessagesDequeueResponse>;\n /**\n * The Clear operation deletes all messages from the specified queue.\n * @param options The options parameters.\n */\n clear(options?: MessagesClearOptionalParams): Promise<MessagesClearResponse>;\n /**\n * The Enqueue operation adds a new message to the back of the message queue. A visibility timeout can\n * also be specified to make the message invisible until the visibility timeout expires. A message must\n * be in a format that can be included in an XML request with UTF-8 encoding. The encoded message can\n * be up to 64 KB in size for versions 2011-08-18 and newer, or 8 KB in size for previous versions.\n * @param queueMessage A Message object which can be stored in a Queue\n * @param options The options parameters.\n */\n enqueue(\n queueMessage: QueueMessage,\n options?: MessagesEnqueueOptionalParams,\n ): Promise<MessagesEnqueueResponse>;\n /**\n * The Peek operation retrieves one or more messages from the front of the queue, but does not alter\n * the visibility of the message.\n * @param options The options parameters.\n */\n peek(options?: MessagesPeekOptionalParams): Promise<MessagesPeekResponse>;\n}\n"]}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=queue.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
1
+ {"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/queue.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n QueueCreateOptionalParams,\n QueueCreateResponse,\n QueueDeleteOptionalParams,\n QueueDeleteResponse,\n QueueGetPropertiesOptionalParams,\n QueueGetPropertiesResponse,\n QueueSetMetadataOptionalParams,\n QueueSetMetadataResponse,\n QueueGetAccessPolicyOptionalParams,\n QueueGetAccessPolicyResponse,\n QueueSetAccessPolicyOptionalParams,\n QueueSetAccessPolicyResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Queue. */\nexport interface Queue {\n /**\n * creates a new queue under the given account.\n * @param options The options parameters.\n */\n create(options?: QueueCreateOptionalParams): Promise<QueueCreateResponse>;\n /**\n * operation permanently deletes the specified queue\n * @param options The options parameters.\n */\n delete(options?: QueueDeleteOptionalParams): Promise<QueueDeleteResponse>;\n /**\n * Retrieves user-defined metadata and queue properties on the specified queue. Metadata is associated\n * with the queue as name-values pairs.\n * @param options The options parameters.\n */\n getProperties(\n options?: QueueGetPropertiesOptionalParams,\n ): Promise<QueueGetPropertiesResponse>;\n /**\n * sets user-defined metadata on the specified queue. Metadata is associated with the queue as\n * name-value pairs.\n * @param options The options parameters.\n */\n setMetadata(\n options?: QueueSetMetadataOptionalParams,\n ): Promise<QueueSetMetadataResponse>;\n /**\n * returns details about any stored access policies specified on the queue that may be used with Shared\n * Access Signatures.\n * @param options The options parameters.\n */\n getAccessPolicy(\n options?: QueueGetAccessPolicyOptionalParams,\n ): Promise<QueueGetAccessPolicyResponse>;\n /**\n * sets stored access policies for the queue that may be used with Shared Access Signatures\n * @param options The options parameters.\n */\n setAccessPolicy(\n options?: QueueSetAccessPolicyOptionalParams,\n ): Promise<QueueSetAccessPolicyResponse>;\n}\n"]}
@@ -0,0 +1,9 @@
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 {};
9
+ //# sourceMappingURL=service.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../src/generated/src/operationsInterfaces/service.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport {\n QueueServiceProperties,\n ServiceSetPropertiesOptionalParams,\n ServiceSetPropertiesResponse,\n ServiceGetPropertiesOptionalParams,\n ServiceGetPropertiesResponse,\n ServiceGetStatisticsOptionalParams,\n ServiceGetStatisticsResponse,\n KeyInfo,\n ServiceGetUserDelegationKeyOptionalParams,\n ServiceGetUserDelegationKeyResponse,\n ServiceListQueuesSegmentOptionalParams,\n ServiceListQueuesSegmentResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a Service. */\nexport interface Service {\n /**\n * Sets properties for a storage account's Queue service endpoint, including properties for Storage\n * Analytics and CORS (Cross-Origin Resource Sharing) rules\n * @param properties The StorageService properties.\n * @param options The options parameters.\n */\n setProperties(\n properties: QueueServiceProperties,\n options?: ServiceSetPropertiesOptionalParams,\n ): Promise<ServiceSetPropertiesResponse>;\n /**\n * gets the properties of a storage account's Queue service, including properties for Storage Analytics\n * and CORS (Cross-Origin Resource Sharing) rules.\n * @param options The options parameters.\n */\n getProperties(\n options?: ServiceGetPropertiesOptionalParams,\n ): Promise<ServiceGetPropertiesResponse>;\n /**\n * Retrieves statistics related to replication for the Queue service. It is only available on the\n * secondary location endpoint when read-access geo-redundant replication is enabled for the storage\n * account.\n * @param options The options parameters.\n */\n getStatistics(\n options?: ServiceGetStatisticsOptionalParams,\n ): Promise<ServiceGetStatisticsResponse>;\n /**\n * Retrieves a user delegation key for the Queue service. This is only a valid operation when using\n * bearer token authentication.\n * @param keyInfo Key information\n * @param options The options parameters.\n */\n getUserDelegationKey(\n keyInfo: KeyInfo,\n options?: ServiceGetUserDelegationKeyOptionalParams,\n ): Promise<ServiceGetUserDelegationKeyResponse>;\n /**\n * The List Queues Segment operation returns a list of the queues under the specified account\n * @param options The options parameters.\n */\n listQueuesSegment(\n options?: ServiceListQueuesSegmentOptionalParams,\n ): Promise<ServiceListQueuesSegmentResponse>;\n}\n"]}