@azure-rest/batch 1.0.0-beta.2 → 1.0.0-beta.3

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 (152) hide show
  1. package/LICENSE +4 -4
  2. package/README.md +4 -4
  3. package/dist/browser/batchClient.js +17 -22
  4. package/dist/browser/batchClient.js.map +1 -1
  5. package/dist/browser/clientDefinitions.d.ts +42 -2
  6. package/dist/browser/clientDefinitions.js.map +1 -1
  7. package/dist/browser/index.d.ts +0 -1
  8. package/dist/browser/index.js +0 -1
  9. package/dist/browser/index.js.map +1 -1
  10. package/dist/browser/isUnexpected.d.ts +6 -1
  11. package/dist/browser/isUnexpected.js +11 -5
  12. package/dist/browser/isUnexpected.js.map +1 -1
  13. package/dist/browser/models.d.ts +199 -114
  14. package/dist/browser/models.js.map +1 -1
  15. package/dist/browser/outputModels.d.ts +196 -93
  16. package/dist/browser/outputModels.js.map +1 -1
  17. package/dist/browser/paginateHelper.d.ts +27 -2
  18. package/dist/browser/paginateHelper.js +69 -2
  19. package/dist/browser/paginateHelper.js.map +1 -1
  20. package/dist/browser/parameters.d.ts +444 -58
  21. package/dist/browser/parameters.js.map +1 -1
  22. package/dist/browser/responses.d.ts +113 -2
  23. package/dist/browser/responses.js.map +1 -1
  24. package/dist/commonjs/batchClient.js +17 -22
  25. package/dist/commonjs/batchClient.js.map +1 -1
  26. package/dist/commonjs/clientDefinitions.d.ts +42 -2
  27. package/dist/commonjs/clientDefinitions.js.map +1 -1
  28. package/dist/commonjs/credentials/batchSharedKeyCredentials.js +1 -2
  29. package/dist/commonjs/credentials/batchSharedKeyCredentials.js.map +1 -1
  30. package/dist/commonjs/index.d.ts +0 -1
  31. package/dist/commonjs/index.js +0 -1
  32. package/dist/commonjs/index.js.map +1 -1
  33. package/dist/commonjs/isUnexpected.d.ts +6 -1
  34. package/dist/commonjs/isUnexpected.js +11 -5
  35. package/dist/commonjs/isUnexpected.js.map +1 -1
  36. package/dist/commonjs/models.d.ts +199 -114
  37. package/dist/commonjs/models.js.map +1 -1
  38. package/dist/commonjs/outputModels.d.ts +196 -93
  39. package/dist/commonjs/outputModels.js.map +1 -1
  40. package/dist/commonjs/paginateHelper.d.ts +27 -2
  41. package/dist/commonjs/paginateHelper.js +70 -3
  42. package/dist/commonjs/paginateHelper.js.map +1 -1
  43. package/dist/commonjs/parameters.d.ts +444 -58
  44. package/dist/commonjs/parameters.js.map +1 -1
  45. package/dist/commonjs/responses.d.ts +113 -2
  46. package/dist/commonjs/responses.js.map +1 -1
  47. package/dist/commonjs/tsdoc-metadata.json +11 -11
  48. package/dist/esm/batchClient.js +17 -22
  49. package/dist/esm/batchClient.js.map +1 -1
  50. package/dist/esm/clientDefinitions.d.ts +42 -2
  51. package/dist/esm/clientDefinitions.js.map +1 -1
  52. package/dist/esm/credentials/batchSharedKeyCredentials.js +1 -2
  53. package/dist/esm/credentials/batchSharedKeyCredentials.js.map +1 -1
  54. package/dist/esm/index.d.ts +0 -1
  55. package/dist/esm/index.js +0 -1
  56. package/dist/esm/index.js.map +1 -1
  57. package/dist/esm/isUnexpected.d.ts +6 -1
  58. package/dist/esm/isUnexpected.js +11 -5
  59. package/dist/esm/isUnexpected.js.map +1 -1
  60. package/dist/esm/models.d.ts +199 -114
  61. package/dist/esm/models.js.map +1 -1
  62. package/dist/esm/outputModels.d.ts +196 -93
  63. package/dist/esm/outputModels.js.map +1 -1
  64. package/dist/esm/paginateHelper.d.ts +27 -2
  65. package/dist/esm/paginateHelper.js +69 -2
  66. package/dist/esm/paginateHelper.js.map +1 -1
  67. package/dist/esm/parameters.d.ts +444 -58
  68. package/dist/esm/parameters.js.map +1 -1
  69. package/dist/esm/responses.d.ts +113 -2
  70. package/dist/esm/responses.js.map +1 -1
  71. package/dist/react-native/batchClient.js +17 -22
  72. package/dist/react-native/batchClient.js.map +1 -1
  73. package/dist/react-native/clientDefinitions.d.ts +42 -2
  74. package/dist/react-native/clientDefinitions.js.map +1 -1
  75. package/dist/react-native/index.d.ts +0 -1
  76. package/dist/react-native/index.js +0 -1
  77. package/dist/react-native/index.js.map +1 -1
  78. package/dist/react-native/isUnexpected.d.ts +6 -1
  79. package/dist/react-native/isUnexpected.js +11 -5
  80. package/dist/react-native/isUnexpected.js.map +1 -1
  81. package/dist/react-native/models.d.ts +199 -114
  82. package/dist/react-native/models.js.map +1 -1
  83. package/dist/react-native/outputModels.d.ts +196 -93
  84. package/dist/react-native/outputModels.js.map +1 -1
  85. package/dist/react-native/paginateHelper.d.ts +27 -2
  86. package/dist/react-native/paginateHelper.js +69 -2
  87. package/dist/react-native/paginateHelper.js.map +1 -1
  88. package/dist/react-native/parameters.d.ts +444 -58
  89. package/dist/react-native/parameters.js.map +1 -1
  90. package/dist/react-native/responses.d.ts +113 -2
  91. package/dist/react-native/responses.js.map +1 -1
  92. package/package.json +26 -36
  93. package/dist/browser/batchClient.d.ts.map +0 -1
  94. package/dist/browser/clientDefinitions.d.ts.map +0 -1
  95. package/dist/browser/credentials/batchSharedKeyCredentials-browser.d.mts.map +0 -1
  96. package/dist/browser/index.d.ts.map +0 -1
  97. package/dist/browser/isUnexpected.d.ts.map +0 -1
  98. package/dist/browser/logger.d.ts.map +0 -1
  99. package/dist/browser/models.d.ts.map +0 -1
  100. package/dist/browser/outputModels.d.ts.map +0 -1
  101. package/dist/browser/paginateHelper.d.ts.map +0 -1
  102. package/dist/browser/parameters.d.ts.map +0 -1
  103. package/dist/browser/replacePoolPropertiesPolicy.d.ts +0 -11
  104. package/dist/browser/replacePoolPropertiesPolicy.d.ts.map +0 -1
  105. package/dist/browser/replacePoolPropertiesPolicy.js +0 -33
  106. package/dist/browser/replacePoolPropertiesPolicy.js.map +0 -1
  107. package/dist/browser/responses.d.ts.map +0 -1
  108. package/dist/commonjs/batchClient.d.ts.map +0 -1
  109. package/dist/commonjs/clientDefinitions.d.ts.map +0 -1
  110. package/dist/commonjs/credentials/batchSharedKeyCredentials.d.ts.map +0 -1
  111. package/dist/commonjs/index.d.ts.map +0 -1
  112. package/dist/commonjs/isUnexpected.d.ts.map +0 -1
  113. package/dist/commonjs/logger.d.ts.map +0 -1
  114. package/dist/commonjs/models.d.ts.map +0 -1
  115. package/dist/commonjs/outputModels.d.ts.map +0 -1
  116. package/dist/commonjs/paginateHelper.d.ts.map +0 -1
  117. package/dist/commonjs/parameters.d.ts.map +0 -1
  118. package/dist/commonjs/replacePoolPropertiesPolicy.d.ts +0 -11
  119. package/dist/commonjs/replacePoolPropertiesPolicy.d.ts.map +0 -1
  120. package/dist/commonjs/replacePoolPropertiesPolicy.js +0 -36
  121. package/dist/commonjs/replacePoolPropertiesPolicy.js.map +0 -1
  122. package/dist/commonjs/responses.d.ts.map +0 -1
  123. package/dist/esm/batchClient.d.ts.map +0 -1
  124. package/dist/esm/clientDefinitions.d.ts.map +0 -1
  125. package/dist/esm/credentials/batchSharedKeyCredentials.d.ts.map +0 -1
  126. package/dist/esm/index.d.ts.map +0 -1
  127. package/dist/esm/isUnexpected.d.ts.map +0 -1
  128. package/dist/esm/logger.d.ts.map +0 -1
  129. package/dist/esm/models.d.ts.map +0 -1
  130. package/dist/esm/outputModels.d.ts.map +0 -1
  131. package/dist/esm/paginateHelper.d.ts.map +0 -1
  132. package/dist/esm/parameters.d.ts.map +0 -1
  133. package/dist/esm/replacePoolPropertiesPolicy.d.ts +0 -11
  134. package/dist/esm/replacePoolPropertiesPolicy.d.ts.map +0 -1
  135. package/dist/esm/replacePoolPropertiesPolicy.js +0 -33
  136. package/dist/esm/replacePoolPropertiesPolicy.js.map +0 -1
  137. package/dist/esm/responses.d.ts.map +0 -1
  138. package/dist/react-native/batchClient.d.ts.map +0 -1
  139. package/dist/react-native/clientDefinitions.d.ts.map +0 -1
  140. package/dist/react-native/credentials/batchSharedKeyCredentials-react-native.d.mts.map +0 -1
  141. package/dist/react-native/index.d.ts.map +0 -1
  142. package/dist/react-native/isUnexpected.d.ts.map +0 -1
  143. package/dist/react-native/logger.d.ts.map +0 -1
  144. package/dist/react-native/models.d.ts.map +0 -1
  145. package/dist/react-native/outputModels.d.ts.map +0 -1
  146. package/dist/react-native/paginateHelper.d.ts.map +0 -1
  147. package/dist/react-native/parameters.d.ts.map +0 -1
  148. package/dist/react-native/replacePoolPropertiesPolicy.d.ts +0 -11
  149. package/dist/react-native/replacePoolPropertiesPolicy.d.ts.map +0 -1
  150. package/dist/react-native/replacePoolPropertiesPolicy.js +0 -33
  151. package/dist/react-native/replacePoolPropertiesPolicy.js.map +0 -1
  152. package/dist/react-native/responses.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import type { RawHttpHeaders } from "@azure/core-rest-pipeline";
2
2
  import type { HttpResponse } from "@azure-rest/core-client";
3
- import type { BatchApplicationListResultOutput, BatchErrorOutput, BatchApplicationOutput, BatchPoolListUsageMetricsResultOutput, BatchPoolListResultOutput, BatchPoolOutput, AutoScaleRunOutput, BatchAccountListSupportedImagesResultOutput, BatchPoolNodeCountsListResultOutput, BatchJobOutput, BatchJobListResultOutput, BatchJobPreparationAndReleaseTaskStatusListResultOutput, BatchTaskCountsResultOutput, BatchJobScheduleOutput, BatchJobScheduleListResultOutput, BatchTaskListResultOutput, BatchTaskAddCollectionResultOutput, BatchTaskOutput, BatchTaskListSubtasksResultOutput, BatchNodeFileListResultOutput, BatchNodeOutput, BatchNodeRemoteLoginSettingsOutput, UploadBatchServiceLogsResultOutput, BatchNodeListResultOutput, BatchNodeVMExtensionOutput, BatchNodeVMExtensionListResultOutput } from "./outputModels.js";
3
+ import type { BatchApplicationListResultOutput, BatchErrorOutput, BatchApplicationOutput, BatchPoolListUsageMetricsResultOutput, BatchPoolListResultOutput, BatchPoolOutput, AutoScaleRunOutput, BatchAccountListSupportedImagesResultOutput, BatchPoolNodeCountsListResultOutput, BatchJobOutput, BatchJobListResultOutput, BatchJobPreparationAndReleaseTaskStatusListResultOutput, BatchTaskCountsResultOutput, BatchCertificateListResultOutput, BatchCertificateStateOutput, BatchCertificateDeleteErrorOutput, BatchJobScheduleOutput, BatchJobScheduleListResultOutput, BatchTaskListResultOutput, BatchCreateTaskCollectionResultOutput, BatchTaskOutput, BatchTaskListSubtasksResultOutput, BatchNodeFileListResultOutput, BatchNodeOutput, BatchNodeRemoteLoginSettingsOutput, UploadBatchServiceLogsResultOutput, BatchNodeListResultOutput, BatchNodeVMExtensionOutput, BatchNodeVMExtensionListResultOutput } from "./outputModels.js";
4
4
  export interface ListApplications200Headers {
5
5
  /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */
6
6
  etag?: string;
@@ -610,6 +610,117 @@ export interface GetJobTaskCountsDefaultResponse extends HttpResponse {
610
610
  status: string;
611
611
  body: BatchErrorOutput;
612
612
  }
613
+ export interface CreateCertificate201Headers {
614
+ /** The OData ID of the resource to which the request applied. */
615
+ dataserviceid: string;
616
+ /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */
617
+ etag?: string;
618
+ /** The time at which the resource was last modified. */
619
+ "last-modified"?: string;
620
+ /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */
621
+ "client-request-id"?: string;
622
+ /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */
623
+ "request-id"?: string;
624
+ }
625
+ /** The request has succeeded and a new resource has been created as a result. */
626
+ export interface CreateCertificate201Response extends HttpResponse {
627
+ status: "201";
628
+ headers: RawHttpHeaders & CreateCertificate201Headers;
629
+ }
630
+ export interface CreateCertificateDefaultResponse extends HttpResponse {
631
+ status: string;
632
+ body: BatchErrorOutput;
633
+ }
634
+ export interface ListCertificates200Headers {
635
+ /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */
636
+ etag?: string;
637
+ /** The time at which the resource was last modified. */
638
+ "last-modified"?: string;
639
+ /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */
640
+ "client-request-id"?: string;
641
+ /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */
642
+ "request-id"?: string;
643
+ }
644
+ /** The request has succeeded. */
645
+ export interface ListCertificates200Response extends HttpResponse {
646
+ status: "200";
647
+ body: BatchCertificateListResultOutput;
648
+ headers: RawHttpHeaders & ListCertificates200Headers;
649
+ }
650
+ export interface ListCertificatesDefaultResponse extends HttpResponse {
651
+ status: string;
652
+ body: BatchErrorOutput;
653
+ }
654
+ export interface CancelCertificateDeletion204Headers {
655
+ /** The OData ID of the resource to which the request applied. */
656
+ dataserviceid: string;
657
+ /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */
658
+ etag?: string;
659
+ /** The time at which the resource was last modified. */
660
+ "last-modified"?: string;
661
+ /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */
662
+ "client-request-id"?: string;
663
+ /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */
664
+ "request-id"?: string;
665
+ }
666
+ /** There is no content to send for this request, but the headers may be useful. */
667
+ export interface CancelCertificateDeletion204Response extends HttpResponse {
668
+ status: "204";
669
+ headers: RawHttpHeaders & CancelCertificateDeletion204Headers;
670
+ }
671
+ export interface CancelCertificateDeletionDefaultResponse extends HttpResponse {
672
+ status: string;
673
+ body: BatchErrorOutput;
674
+ }
675
+ export interface DeleteCertificate202Headers {
676
+ /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */
677
+ etag?: string;
678
+ /** The time at which the resource was last modified. */
679
+ "last-modified"?: string;
680
+ /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */
681
+ "client-request-id"?: string;
682
+ /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */
683
+ "request-id"?: string;
684
+ }
685
+ /** The request has been accepted for processing, but processing has not yet completed. */
686
+ export interface DeleteCertificate202Response extends HttpResponse {
687
+ status: "202";
688
+ headers: RawHttpHeaders & DeleteCertificate202Headers;
689
+ }
690
+ export interface DeleteCertificateDefaultResponse extends HttpResponse {
691
+ status: string;
692
+ body: BatchErrorOutput;
693
+ }
694
+ export interface GetCertificate200Headers {
695
+ /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */
696
+ etag?: string;
697
+ /** The time at which the resource was last modified. */
698
+ "last-modified"?: string;
699
+ /** The client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. */
700
+ "client-request-id"?: string;
701
+ /** A unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch Account against which the request was made, and the region that Account resides in. */
702
+ "request-id"?: string;
703
+ }
704
+ /** The request has succeeded. */
705
+ export interface GetCertificate200Response extends HttpResponse {
706
+ status: "200";
707
+ body: {
708
+ thumbprint: string;
709
+ thumbprintAlgorithm: string;
710
+ url?: string;
711
+ state?: BatchCertificateStateOutput;
712
+ stateTransitionTime?: string;
713
+ previousState?: BatchCertificateStateOutput;
714
+ previousStateTransitionTime?: string;
715
+ publicData?: string;
716
+ deleteCertificateError?: BatchCertificateDeleteErrorOutput;
717
+ };
718
+ headers: RawHttpHeaders & GetCertificate200Headers;
719
+ }
720
+ export interface GetCertificateDefaultResponse extends HttpResponse {
721
+ status: string;
722
+ body: BatchErrorOutput;
723
+ }
613
724
  export interface JobScheduleExists200Headers {
614
725
  /** The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. */
615
726
  etag?: string;
@@ -868,7 +979,7 @@ export interface CreateTaskCollection200Headers {
868
979
  /** The request has succeeded. */
869
980
  export interface CreateTaskCollection200Response extends HttpResponse {
870
981
  status: "200";
871
- body: BatchTaskAddCollectionResultOutput;
982
+ body: BatchCreateTaskCollectionResultOutput;
872
983
  headers: RawHttpHeaders & CreateTaskCollection200Headers;
873
984
  }
874
985
  export interface CreateTaskCollectionDefaultResponse extends HttpResponse {