sandbox0 0.1.12 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apispec/src/apis/AuthApi.d.ts +0 -1
- package/dist/apispec/src/apis/AuthApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/AuthApi.js +0 -3
- package/dist/apispec/src/apis/FilesApi.d.ts +96 -0
- package/dist/apispec/src/apis/FilesApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/FilesApi.js +283 -0
- package/dist/apispec/src/apis/UsersApi.d.ts +11 -11
- package/dist/apispec/src/apis/UsersApi.d.ts.map +1 -1
- package/dist/apispec/src/apis/UsersApi.js +34 -34
- package/dist/apispec/src/apis/VolumeSyncApi.d.ts +145 -0
- package/dist/apispec/src/apis/VolumeSyncApi.d.ts.map +1 -0
- package/dist/apispec/src/apis/VolumeSyncApi.js +416 -0
- package/dist/apispec/src/apis/index.d.ts +1 -0
- package/dist/apispec/src/apis/index.d.ts.map +1 -1
- package/dist/apispec/src/apis/index.js +1 -0
- package/dist/apispec/src/models/AppendReplicaChangesRequest.d.ts +46 -0
- package/dist/apispec/src/models/AppendReplicaChangesRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/AppendReplicaChangesRequest.js +52 -0
- package/dist/apispec/src/models/AppendReplicaChangesResponse.d.ts +47 -0
- package/dist/apispec/src/models/AppendReplicaChangesResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/AppendReplicaChangesResponse.js +53 -0
- package/dist/apispec/src/models/ChangeRequest.d.ts +92 -0
- package/dist/apispec/src/models/ChangeRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/ChangeRequest.js +67 -0
- package/dist/apispec/src/models/CreateVolumeSyncBootstrapRequest.d.ts +52 -0
- package/dist/apispec/src/models/CreateVolumeSyncBootstrapRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/CreateVolumeSyncBootstrapRequest.js +48 -0
- package/dist/apispec/src/models/ListVolumeSyncChangesResponse.d.ts +46 -0
- package/dist/apispec/src/models/ListVolumeSyncChangesResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/ListVolumeSyncChangesResponse.js +52 -0
- package/dist/apispec/src/models/ListVolumeSyncConflictsResponse.d.ts +34 -0
- package/dist/apispec/src/models/ListVolumeSyncConflictsResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/ListVolumeSyncConflictsResponse.js +44 -0
- package/dist/apispec/src/models/ResolveVolumeSyncConflictRequest.d.ts +53 -0
- package/dist/apispec/src/models/ResolveVolumeSyncConflictRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/ResolveVolumeSyncConflictRequest.js +54 -0
- package/dist/apispec/src/models/SuccessVolumeSyncAppendResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessVolumeSyncAppendResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessVolumeSyncAppendResponse.js +46 -0
- package/dist/apispec/src/models/SuccessVolumeSyncBootstrapResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessVolumeSyncBootstrapResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessVolumeSyncBootstrapResponse.js +46 -0
- package/dist/apispec/src/models/SuccessVolumeSyncChangeListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessVolumeSyncChangeListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessVolumeSyncChangeListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessVolumeSyncConflictListResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessVolumeSyncConflictListResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessVolumeSyncConflictListResponse.js +46 -0
- package/dist/apispec/src/models/SuccessVolumeSyncConflictResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessVolumeSyncConflictResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessVolumeSyncConflictResponse.js +46 -0
- package/dist/apispec/src/models/SuccessVolumeSyncReplicaResponse.d.ts +40 -0
- package/dist/apispec/src/models/SuccessVolumeSyncReplicaResponse.d.ts.map +1 -0
- package/dist/apispec/src/models/SuccessVolumeSyncReplicaResponse.js +46 -0
- package/dist/apispec/src/models/SyncConflict.d.ts +119 -0
- package/dist/apispec/src/models/SyncConflict.d.ts.map +1 -0
- package/dist/apispec/src/models/SyncConflict.js +69 -0
- package/dist/apispec/src/models/SyncEventType.d.ts +30 -0
- package/dist/apispec/src/models/SyncEventType.d.ts.map +1 -0
- package/dist/apispec/src/models/SyncEventType.js +47 -0
- package/dist/apispec/src/models/SyncJournalEntry.d.ts +154 -0
- package/dist/apispec/src/models/SyncJournalEntry.d.ts.map +1 -0
- package/dist/apispec/src/models/SyncJournalEntry.js +90 -0
- package/dist/apispec/src/models/SyncReplica.d.ts +100 -0
- package/dist/apispec/src/models/SyncReplica.d.ts.map +1 -0
- package/dist/apispec/src/models/SyncReplica.js +64 -0
- package/dist/apispec/src/models/UpdateSyncReplicaCursorRequest.d.ts +33 -0
- package/dist/apispec/src/models/UpdateSyncReplicaCursorRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/UpdateSyncReplicaCursorRequest.js +43 -0
- package/dist/apispec/src/models/UpsertSyncReplicaRequest.d.ts +58 -0
- package/dist/apispec/src/models/UpsertSyncReplicaRequest.d.ts.map +1 -0
- package/dist/apispec/src/models/UpsertSyncReplicaRequest.js +50 -0
- package/dist/apispec/src/models/VolumeSyncBootstrap.d.ts +46 -0
- package/dist/apispec/src/models/VolumeSyncBootstrap.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncBootstrap.js +52 -0
- package/dist/apispec/src/models/VolumeSyncBootstrapCompatibilityConflictDetails.d.ts +60 -0
- package/dist/apispec/src/models/VolumeSyncBootstrapCompatibilityConflictDetails.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncBootstrapCompatibilityConflictDetails.js +63 -0
- package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelope.d.ts +40 -0
- package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelope.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelope.js +48 -0
- package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelopeAllOfError.d.ts +46 -0
- package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelopeAllOfError.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncBootstrapConflictErrorEnvelopeAllOfError.js +50 -0
- package/dist/apispec/src/models/VolumeSyncCompatibilityIssue.d.ts +63 -0
- package/dist/apispec/src/models/VolumeSyncCompatibilityIssue.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncCompatibilityIssue.js +53 -0
- package/dist/apispec/src/models/VolumeSyncFilesystemCapabilities.d.ts +45 -0
- package/dist/apispec/src/models/VolumeSyncFilesystemCapabilities.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncFilesystemCapabilities.js +51 -0
- package/dist/apispec/src/models/VolumeSyncReplicaEnvelope.d.ts +40 -0
- package/dist/apispec/src/models/VolumeSyncReplicaEnvelope.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncReplicaEnvelope.js +48 -0
- package/dist/apispec/src/models/VolumeSyncReseedRequiredDetails.d.ts +52 -0
- package/dist/apispec/src/models/VolumeSyncReseedRequiredDetails.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncReseedRequiredDetails.js +57 -0
- package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelope.d.ts +40 -0
- package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelope.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelope.js +48 -0
- package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelopeAllOfError.d.ts +46 -0
- package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelopeAllOfError.d.ts.map +1 -0
- package/dist/apispec/src/models/VolumeSyncReseedRequiredErrorEnvelopeAllOfError.js +50 -0
- package/dist/apispec/src/models/index.d.ts +29 -0
- package/dist/apispec/src/models/index.d.ts.map +1 -1
- package/dist/apispec/src/models/index.js +29 -0
- package/dist/resources/volumes.d.ts +10 -1
- package/dist/resources/volumes.d.ts.map +1 -1
- package/dist/resources/volumes.js +136 -0
- package/package.json +1 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime.js';
|
|
13
|
+
import type { AppendReplicaChangesRequest, CreateVolumeSyncBootstrapRequest, ResolveVolumeSyncConflictRequest, SuccessVolumeSyncAppendResponse, SuccessVolumeSyncBootstrapResponse, SuccessVolumeSyncChangeListResponse, SuccessVolumeSyncConflictListResponse, SuccessVolumeSyncConflictResponse, SuccessVolumeSyncReplicaResponse, UpdateSyncReplicaCursorRequest, UpsertSyncReplicaRequest } from '../models/index.js';
|
|
14
|
+
export interface ApiV1SandboxvolumesIdSyncBootstrapArchiveGetRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
snapshotId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ApiV1SandboxvolumesIdSyncBootstrapPostRequest {
|
|
19
|
+
id: string;
|
|
20
|
+
createVolumeSyncBootstrapRequest?: CreateVolumeSyncBootstrapRequest;
|
|
21
|
+
}
|
|
22
|
+
export interface ApiV1SandboxvolumesIdSyncChangesGetRequest {
|
|
23
|
+
id: string;
|
|
24
|
+
after?: number;
|
|
25
|
+
limit?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface ApiV1SandboxvolumesIdSyncConflictsConflictIdPutRequest {
|
|
28
|
+
id: string;
|
|
29
|
+
conflictId: string;
|
|
30
|
+
resolveVolumeSyncConflictRequest: ResolveVolumeSyncConflictRequest;
|
|
31
|
+
}
|
|
32
|
+
export interface ApiV1SandboxvolumesIdSyncConflictsGetRequest {
|
|
33
|
+
id: string;
|
|
34
|
+
status?: string;
|
|
35
|
+
limit?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface ApiV1SandboxvolumesIdSyncReplayPayloadGetRequest {
|
|
38
|
+
id: string;
|
|
39
|
+
contentRef: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ApiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPostRequest {
|
|
42
|
+
id: string;
|
|
43
|
+
replicaId: string;
|
|
44
|
+
appendReplicaChangesRequest: AppendReplicaChangesRequest;
|
|
45
|
+
}
|
|
46
|
+
export interface ApiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPutRequest {
|
|
47
|
+
id: string;
|
|
48
|
+
replicaId: string;
|
|
49
|
+
updateSyncReplicaCursorRequest: UpdateSyncReplicaCursorRequest;
|
|
50
|
+
}
|
|
51
|
+
export interface ApiV1SandboxvolumesIdSyncReplicasReplicaIdGetRequest {
|
|
52
|
+
id: string;
|
|
53
|
+
replicaId: string;
|
|
54
|
+
}
|
|
55
|
+
export interface ApiV1SandboxvolumesIdSyncReplicasReplicaIdPutRequest {
|
|
56
|
+
id: string;
|
|
57
|
+
replicaId: string;
|
|
58
|
+
upsertSyncReplicaRequest: UpsertSyncReplicaRequest;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export declare class VolumeSyncApi extends runtime.BaseAPI {
|
|
64
|
+
/**
|
|
65
|
+
* Download a bootstrap snapshot archive for local-first sync
|
|
66
|
+
*/
|
|
67
|
+
apiV1SandboxvolumesIdSyncBootstrapArchiveGetRaw(requestParameters: ApiV1SandboxvolumesIdSyncBootstrapArchiveGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
68
|
+
/**
|
|
69
|
+
* Download a bootstrap snapshot archive for local-first sync
|
|
70
|
+
*/
|
|
71
|
+
apiV1SandboxvolumesIdSyncBootstrapArchiveGet(requestParameters: ApiV1SandboxvolumesIdSyncBootstrapArchiveGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
72
|
+
/**
|
|
73
|
+
* Create a bootstrap snapshot and journal anchor for local-first sync
|
|
74
|
+
*/
|
|
75
|
+
apiV1SandboxvolumesIdSyncBootstrapPostRaw(requestParameters: ApiV1SandboxvolumesIdSyncBootstrapPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessVolumeSyncBootstrapResponse>>;
|
|
76
|
+
/**
|
|
77
|
+
* Create a bootstrap snapshot and journal anchor for local-first sync
|
|
78
|
+
*/
|
|
79
|
+
apiV1SandboxvolumesIdSyncBootstrapPost(requestParameters: ApiV1SandboxvolumesIdSyncBootstrapPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessVolumeSyncBootstrapResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* List volume sync journal entries
|
|
82
|
+
*/
|
|
83
|
+
apiV1SandboxvolumesIdSyncChangesGetRaw(requestParameters: ApiV1SandboxvolumesIdSyncChangesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessVolumeSyncChangeListResponse>>;
|
|
84
|
+
/**
|
|
85
|
+
* List volume sync journal entries
|
|
86
|
+
*/
|
|
87
|
+
apiV1SandboxvolumesIdSyncChangesGet(requestParameters: ApiV1SandboxvolumesIdSyncChangesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessVolumeSyncChangeListResponse>;
|
|
88
|
+
/**
|
|
89
|
+
* Resolve or ignore a volume sync conflict
|
|
90
|
+
*/
|
|
91
|
+
apiV1SandboxvolumesIdSyncConflictsConflictIdPutRaw(requestParameters: ApiV1SandboxvolumesIdSyncConflictsConflictIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessVolumeSyncConflictResponse>>;
|
|
92
|
+
/**
|
|
93
|
+
* Resolve or ignore a volume sync conflict
|
|
94
|
+
*/
|
|
95
|
+
apiV1SandboxvolumesIdSyncConflictsConflictIdPut(requestParameters: ApiV1SandboxvolumesIdSyncConflictsConflictIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessVolumeSyncConflictResponse>;
|
|
96
|
+
/**
|
|
97
|
+
* List volume sync conflicts
|
|
98
|
+
*/
|
|
99
|
+
apiV1SandboxvolumesIdSyncConflictsGetRaw(requestParameters: ApiV1SandboxvolumesIdSyncConflictsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessVolumeSyncConflictListResponse>>;
|
|
100
|
+
/**
|
|
101
|
+
* List volume sync conflicts
|
|
102
|
+
*/
|
|
103
|
+
apiV1SandboxvolumesIdSyncConflictsGet(requestParameters: ApiV1SandboxvolumesIdSyncConflictsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessVolumeSyncConflictListResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* Download a replay payload for one sync journal entry
|
|
106
|
+
*/
|
|
107
|
+
apiV1SandboxvolumesIdSyncReplayPayloadGetRaw(requestParameters: ApiV1SandboxvolumesIdSyncReplayPayloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
108
|
+
/**
|
|
109
|
+
* Download a replay payload for one sync journal entry
|
|
110
|
+
*/
|
|
111
|
+
apiV1SandboxvolumesIdSyncReplayPayloadGet(requestParameters: ApiV1SandboxvolumesIdSyncReplayPayloadGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
112
|
+
/**
|
|
113
|
+
* Append replica-originated sync journal entries
|
|
114
|
+
*/
|
|
115
|
+
apiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPostRaw(requestParameters: ApiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessVolumeSyncAppendResponse>>;
|
|
116
|
+
/**
|
|
117
|
+
* Append replica-originated sync journal entries
|
|
118
|
+
*/
|
|
119
|
+
apiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPost(requestParameters: ApiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessVolumeSyncAppendResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* Advance a volume sync replica cursor
|
|
122
|
+
*/
|
|
123
|
+
apiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPutRaw(requestParameters: ApiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessVolumeSyncReplicaResponse>>;
|
|
124
|
+
/**
|
|
125
|
+
* Advance a volume sync replica cursor
|
|
126
|
+
*/
|
|
127
|
+
apiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPut(requestParameters: ApiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessVolumeSyncReplicaResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* Get a volume sync replica
|
|
130
|
+
*/
|
|
131
|
+
apiV1SandboxvolumesIdSyncReplicasReplicaIdGetRaw(requestParameters: ApiV1SandboxvolumesIdSyncReplicasReplicaIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessVolumeSyncReplicaResponse>>;
|
|
132
|
+
/**
|
|
133
|
+
* Get a volume sync replica
|
|
134
|
+
*/
|
|
135
|
+
apiV1SandboxvolumesIdSyncReplicasReplicaIdGet(requestParameters: ApiV1SandboxvolumesIdSyncReplicasReplicaIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessVolumeSyncReplicaResponse>;
|
|
136
|
+
/**
|
|
137
|
+
* Register or update a volume sync replica
|
|
138
|
+
*/
|
|
139
|
+
apiV1SandboxvolumesIdSyncReplicasReplicaIdPutRaw(requestParameters: ApiV1SandboxvolumesIdSyncReplicasReplicaIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessVolumeSyncReplicaResponse>>;
|
|
140
|
+
/**
|
|
141
|
+
* Register or update a volume sync replica
|
|
142
|
+
*/
|
|
143
|
+
apiV1SandboxvolumesIdSyncReplicasReplicaIdPut(requestParameters: ApiV1SandboxvolumesIdSyncReplicasReplicaIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessVolumeSyncReplicaResponse>;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=VolumeSyncApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VolumeSyncApi.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/VolumeSyncApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,2BAA2B,EAC3B,gCAAgC,EAEhC,gCAAgC,EAChC,+BAA+B,EAC/B,kCAAkC,EAClC,mCAAmC,EACnC,qCAAqC,EACrC,iCAAiC,EACjC,gCAAgC,EAChC,8BAA8B,EAC9B,wBAAwB,EAGzB,MAAM,iBAAiB,CAAC;AAgCzB,MAAM,WAAW,mDAAmD;IAChE,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,6CAA6C;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC,CAAC,EAAE,gCAAgC,CAAC;CACvE;AAED,MA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AC,OAAO,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAAC;IA0C3P;;OAEG;IACG,6CAA6C,CAAC,iBAAiB,EAAE,oDAAoD,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,gCAAgC,CAAC;IAKnO;;OAEG;IACG,gDAAgD,CAAC,iBAAiB,EAAE,oDAAoD,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAAC;IAoD3P;;OAEG;IACG,6CAA6C,CAAC,iBAAiB,EAAE,oDAAoD,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,gCAAgC,CAAC;CAKtO"}
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sandbox0 API
|
|
5
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import * as runtime from '../runtime.js';
|
|
15
|
+
import { AppendReplicaChangesRequestToJSON, CreateVolumeSyncBootstrapRequestToJSON, ResolveVolumeSyncConflictRequestToJSON, SuccessVolumeSyncAppendResponseFromJSON, SuccessVolumeSyncBootstrapResponseFromJSON, SuccessVolumeSyncChangeListResponseFromJSON, SuccessVolumeSyncConflictListResponseFromJSON, SuccessVolumeSyncConflictResponseFromJSON, SuccessVolumeSyncReplicaResponseFromJSON, UpdateSyncReplicaCursorRequestToJSON, UpsertSyncReplicaRequestToJSON, } from '../models/index.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export class VolumeSyncApi extends runtime.BaseAPI {
|
|
20
|
+
/**
|
|
21
|
+
* Download a bootstrap snapshot archive for local-first sync
|
|
22
|
+
*/
|
|
23
|
+
async apiV1SandboxvolumesIdSyncBootstrapArchiveGetRaw(requestParameters, initOverrides) {
|
|
24
|
+
if (requestParameters['id'] == null) {
|
|
25
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncBootstrapArchiveGet().');
|
|
26
|
+
}
|
|
27
|
+
if (requestParameters['snapshotId'] == null) {
|
|
28
|
+
throw new runtime.RequiredError('snapshotId', 'Required parameter "snapshotId" was null or undefined when calling apiV1SandboxvolumesIdSyncBootstrapArchiveGet().');
|
|
29
|
+
}
|
|
30
|
+
const queryParameters = {};
|
|
31
|
+
if (requestParameters['snapshotId'] != null) {
|
|
32
|
+
queryParameters['snapshot_id'] = requestParameters['snapshotId'];
|
|
33
|
+
}
|
|
34
|
+
const headerParameters = {};
|
|
35
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
36
|
+
const token = this.configuration.accessToken;
|
|
37
|
+
const tokenString = await token("bearerAuth", []);
|
|
38
|
+
if (tokenString) {
|
|
39
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/bootstrap/archive`;
|
|
43
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
44
|
+
const response = await this.request({
|
|
45
|
+
path: urlPath,
|
|
46
|
+
method: 'GET',
|
|
47
|
+
headers: headerParameters,
|
|
48
|
+
query: queryParameters,
|
|
49
|
+
}, initOverrides);
|
|
50
|
+
return new runtime.BlobApiResponse(response);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Download a bootstrap snapshot archive for local-first sync
|
|
54
|
+
*/
|
|
55
|
+
async apiV1SandboxvolumesIdSyncBootstrapArchiveGet(requestParameters, initOverrides) {
|
|
56
|
+
const response = await this.apiV1SandboxvolumesIdSyncBootstrapArchiveGetRaw(requestParameters, initOverrides);
|
|
57
|
+
return await response.value();
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Create a bootstrap snapshot and journal anchor for local-first sync
|
|
61
|
+
*/
|
|
62
|
+
async apiV1SandboxvolumesIdSyncBootstrapPostRaw(requestParameters, initOverrides) {
|
|
63
|
+
if (requestParameters['id'] == null) {
|
|
64
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncBootstrapPost().');
|
|
65
|
+
}
|
|
66
|
+
const queryParameters = {};
|
|
67
|
+
const headerParameters = {};
|
|
68
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
69
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
70
|
+
const token = this.configuration.accessToken;
|
|
71
|
+
const tokenString = await token("bearerAuth", []);
|
|
72
|
+
if (tokenString) {
|
|
73
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/bootstrap`;
|
|
77
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
78
|
+
const response = await this.request({
|
|
79
|
+
path: urlPath,
|
|
80
|
+
method: 'POST',
|
|
81
|
+
headers: headerParameters,
|
|
82
|
+
query: queryParameters,
|
|
83
|
+
body: CreateVolumeSyncBootstrapRequestToJSON(requestParameters['createVolumeSyncBootstrapRequest']),
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessVolumeSyncBootstrapResponseFromJSON(jsonValue));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Create a bootstrap snapshot and journal anchor for local-first sync
|
|
89
|
+
*/
|
|
90
|
+
async apiV1SandboxvolumesIdSyncBootstrapPost(requestParameters, initOverrides) {
|
|
91
|
+
const response = await this.apiV1SandboxvolumesIdSyncBootstrapPostRaw(requestParameters, initOverrides);
|
|
92
|
+
return await response.value();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* List volume sync journal entries
|
|
96
|
+
*/
|
|
97
|
+
async apiV1SandboxvolumesIdSyncChangesGetRaw(requestParameters, initOverrides) {
|
|
98
|
+
if (requestParameters['id'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncChangesGet().');
|
|
100
|
+
}
|
|
101
|
+
const queryParameters = {};
|
|
102
|
+
if (requestParameters['after'] != null) {
|
|
103
|
+
queryParameters['after'] = requestParameters['after'];
|
|
104
|
+
}
|
|
105
|
+
if (requestParameters['limit'] != null) {
|
|
106
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
107
|
+
}
|
|
108
|
+
const headerParameters = {};
|
|
109
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
110
|
+
const token = this.configuration.accessToken;
|
|
111
|
+
const tokenString = await token("bearerAuth", []);
|
|
112
|
+
if (tokenString) {
|
|
113
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/changes`;
|
|
117
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
118
|
+
const response = await this.request({
|
|
119
|
+
path: urlPath,
|
|
120
|
+
method: 'GET',
|
|
121
|
+
headers: headerParameters,
|
|
122
|
+
query: queryParameters,
|
|
123
|
+
}, initOverrides);
|
|
124
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessVolumeSyncChangeListResponseFromJSON(jsonValue));
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* List volume sync journal entries
|
|
128
|
+
*/
|
|
129
|
+
async apiV1SandboxvolumesIdSyncChangesGet(requestParameters, initOverrides) {
|
|
130
|
+
const response = await this.apiV1SandboxvolumesIdSyncChangesGetRaw(requestParameters, initOverrides);
|
|
131
|
+
return await response.value();
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Resolve or ignore a volume sync conflict
|
|
135
|
+
*/
|
|
136
|
+
async apiV1SandboxvolumesIdSyncConflictsConflictIdPutRaw(requestParameters, initOverrides) {
|
|
137
|
+
if (requestParameters['id'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncConflictsConflictIdPut().');
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['conflictId'] == null) {
|
|
141
|
+
throw new runtime.RequiredError('conflictId', 'Required parameter "conflictId" was null or undefined when calling apiV1SandboxvolumesIdSyncConflictsConflictIdPut().');
|
|
142
|
+
}
|
|
143
|
+
if (requestParameters['resolveVolumeSyncConflictRequest'] == null) {
|
|
144
|
+
throw new runtime.RequiredError('resolveVolumeSyncConflictRequest', 'Required parameter "resolveVolumeSyncConflictRequest" was null or undefined when calling apiV1SandboxvolumesIdSyncConflictsConflictIdPut().');
|
|
145
|
+
}
|
|
146
|
+
const queryParameters = {};
|
|
147
|
+
const headerParameters = {};
|
|
148
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
149
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
150
|
+
const token = this.configuration.accessToken;
|
|
151
|
+
const tokenString = await token("bearerAuth", []);
|
|
152
|
+
if (tokenString) {
|
|
153
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/conflicts/{conflict_id}`;
|
|
157
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
158
|
+
urlPath = urlPath.replace(`{${"conflict_id"}}`, encodeURIComponent(String(requestParameters['conflictId'])));
|
|
159
|
+
const response = await this.request({
|
|
160
|
+
path: urlPath,
|
|
161
|
+
method: 'PUT',
|
|
162
|
+
headers: headerParameters,
|
|
163
|
+
query: queryParameters,
|
|
164
|
+
body: ResolveVolumeSyncConflictRequestToJSON(requestParameters['resolveVolumeSyncConflictRequest']),
|
|
165
|
+
}, initOverrides);
|
|
166
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessVolumeSyncConflictResponseFromJSON(jsonValue));
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Resolve or ignore a volume sync conflict
|
|
170
|
+
*/
|
|
171
|
+
async apiV1SandboxvolumesIdSyncConflictsConflictIdPut(requestParameters, initOverrides) {
|
|
172
|
+
const response = await this.apiV1SandboxvolumesIdSyncConflictsConflictIdPutRaw(requestParameters, initOverrides);
|
|
173
|
+
return await response.value();
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* List volume sync conflicts
|
|
177
|
+
*/
|
|
178
|
+
async apiV1SandboxvolumesIdSyncConflictsGetRaw(requestParameters, initOverrides) {
|
|
179
|
+
if (requestParameters['id'] == null) {
|
|
180
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncConflictsGet().');
|
|
181
|
+
}
|
|
182
|
+
const queryParameters = {};
|
|
183
|
+
if (requestParameters['status'] != null) {
|
|
184
|
+
queryParameters['status'] = requestParameters['status'];
|
|
185
|
+
}
|
|
186
|
+
if (requestParameters['limit'] != null) {
|
|
187
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
188
|
+
}
|
|
189
|
+
const headerParameters = {};
|
|
190
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
191
|
+
const token = this.configuration.accessToken;
|
|
192
|
+
const tokenString = await token("bearerAuth", []);
|
|
193
|
+
if (tokenString) {
|
|
194
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/conflicts`;
|
|
198
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
199
|
+
const response = await this.request({
|
|
200
|
+
path: urlPath,
|
|
201
|
+
method: 'GET',
|
|
202
|
+
headers: headerParameters,
|
|
203
|
+
query: queryParameters,
|
|
204
|
+
}, initOverrides);
|
|
205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessVolumeSyncConflictListResponseFromJSON(jsonValue));
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* List volume sync conflicts
|
|
209
|
+
*/
|
|
210
|
+
async apiV1SandboxvolumesIdSyncConflictsGet(requestParameters, initOverrides) {
|
|
211
|
+
const response = await this.apiV1SandboxvolumesIdSyncConflictsGetRaw(requestParameters, initOverrides);
|
|
212
|
+
return await response.value();
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Download a replay payload for one sync journal entry
|
|
216
|
+
*/
|
|
217
|
+
async apiV1SandboxvolumesIdSyncReplayPayloadGetRaw(requestParameters, initOverrides) {
|
|
218
|
+
if (requestParameters['id'] == null) {
|
|
219
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncReplayPayloadGet().');
|
|
220
|
+
}
|
|
221
|
+
if (requestParameters['contentRef'] == null) {
|
|
222
|
+
throw new runtime.RequiredError('contentRef', 'Required parameter "contentRef" was null or undefined when calling apiV1SandboxvolumesIdSyncReplayPayloadGet().');
|
|
223
|
+
}
|
|
224
|
+
const queryParameters = {};
|
|
225
|
+
if (requestParameters['contentRef'] != null) {
|
|
226
|
+
queryParameters['content_ref'] = requestParameters['contentRef'];
|
|
227
|
+
}
|
|
228
|
+
const headerParameters = {};
|
|
229
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
230
|
+
const token = this.configuration.accessToken;
|
|
231
|
+
const tokenString = await token("bearerAuth", []);
|
|
232
|
+
if (tokenString) {
|
|
233
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/replay-payload`;
|
|
237
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
238
|
+
const response = await this.request({
|
|
239
|
+
path: urlPath,
|
|
240
|
+
method: 'GET',
|
|
241
|
+
headers: headerParameters,
|
|
242
|
+
query: queryParameters,
|
|
243
|
+
}, initOverrides);
|
|
244
|
+
return new runtime.BlobApiResponse(response);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Download a replay payload for one sync journal entry
|
|
248
|
+
*/
|
|
249
|
+
async apiV1SandboxvolumesIdSyncReplayPayloadGet(requestParameters, initOverrides) {
|
|
250
|
+
const response = await this.apiV1SandboxvolumesIdSyncReplayPayloadGetRaw(requestParameters, initOverrides);
|
|
251
|
+
return await response.value();
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Append replica-originated sync journal entries
|
|
255
|
+
*/
|
|
256
|
+
async apiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPostRaw(requestParameters, initOverrides) {
|
|
257
|
+
if (requestParameters['id'] == null) {
|
|
258
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPost().');
|
|
259
|
+
}
|
|
260
|
+
if (requestParameters['replicaId'] == null) {
|
|
261
|
+
throw new runtime.RequiredError('replicaId', 'Required parameter "replicaId" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPost().');
|
|
262
|
+
}
|
|
263
|
+
if (requestParameters['appendReplicaChangesRequest'] == null) {
|
|
264
|
+
throw new runtime.RequiredError('appendReplicaChangesRequest', 'Required parameter "appendReplicaChangesRequest" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPost().');
|
|
265
|
+
}
|
|
266
|
+
const queryParameters = {};
|
|
267
|
+
const headerParameters = {};
|
|
268
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
269
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
270
|
+
const token = this.configuration.accessToken;
|
|
271
|
+
const tokenString = await token("bearerAuth", []);
|
|
272
|
+
if (tokenString) {
|
|
273
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/replicas/{replica_id}/changes`;
|
|
277
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
278
|
+
urlPath = urlPath.replace(`{${"replica_id"}}`, encodeURIComponent(String(requestParameters['replicaId'])));
|
|
279
|
+
const response = await this.request({
|
|
280
|
+
path: urlPath,
|
|
281
|
+
method: 'POST',
|
|
282
|
+
headers: headerParameters,
|
|
283
|
+
query: queryParameters,
|
|
284
|
+
body: AppendReplicaChangesRequestToJSON(requestParameters['appendReplicaChangesRequest']),
|
|
285
|
+
}, initOverrides);
|
|
286
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessVolumeSyncAppendResponseFromJSON(jsonValue));
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Append replica-originated sync journal entries
|
|
290
|
+
*/
|
|
291
|
+
async apiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPost(requestParameters, initOverrides) {
|
|
292
|
+
const response = await this.apiV1SandboxvolumesIdSyncReplicasReplicaIdChangesPostRaw(requestParameters, initOverrides);
|
|
293
|
+
return await response.value();
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Advance a volume sync replica cursor
|
|
297
|
+
*/
|
|
298
|
+
async apiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPutRaw(requestParameters, initOverrides) {
|
|
299
|
+
if (requestParameters['id'] == null) {
|
|
300
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPut().');
|
|
301
|
+
}
|
|
302
|
+
if (requestParameters['replicaId'] == null) {
|
|
303
|
+
throw new runtime.RequiredError('replicaId', 'Required parameter "replicaId" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPut().');
|
|
304
|
+
}
|
|
305
|
+
if (requestParameters['updateSyncReplicaCursorRequest'] == null) {
|
|
306
|
+
throw new runtime.RequiredError('updateSyncReplicaCursorRequest', 'Required parameter "updateSyncReplicaCursorRequest" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPut().');
|
|
307
|
+
}
|
|
308
|
+
const queryParameters = {};
|
|
309
|
+
const headerParameters = {};
|
|
310
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
311
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
312
|
+
const token = this.configuration.accessToken;
|
|
313
|
+
const tokenString = await token("bearerAuth", []);
|
|
314
|
+
if (tokenString) {
|
|
315
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/replicas/{replica_id}/cursor`;
|
|
319
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
320
|
+
urlPath = urlPath.replace(`{${"replica_id"}}`, encodeURIComponent(String(requestParameters['replicaId'])));
|
|
321
|
+
const response = await this.request({
|
|
322
|
+
path: urlPath,
|
|
323
|
+
method: 'PUT',
|
|
324
|
+
headers: headerParameters,
|
|
325
|
+
query: queryParameters,
|
|
326
|
+
body: UpdateSyncReplicaCursorRequestToJSON(requestParameters['updateSyncReplicaCursorRequest']),
|
|
327
|
+
}, initOverrides);
|
|
328
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessVolumeSyncReplicaResponseFromJSON(jsonValue));
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Advance a volume sync replica cursor
|
|
332
|
+
*/
|
|
333
|
+
async apiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPut(requestParameters, initOverrides) {
|
|
334
|
+
const response = await this.apiV1SandboxvolumesIdSyncReplicasReplicaIdCursorPutRaw(requestParameters, initOverrides);
|
|
335
|
+
return await response.value();
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Get a volume sync replica
|
|
339
|
+
*/
|
|
340
|
+
async apiV1SandboxvolumesIdSyncReplicasReplicaIdGetRaw(requestParameters, initOverrides) {
|
|
341
|
+
if (requestParameters['id'] == null) {
|
|
342
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdGet().');
|
|
343
|
+
}
|
|
344
|
+
if (requestParameters['replicaId'] == null) {
|
|
345
|
+
throw new runtime.RequiredError('replicaId', 'Required parameter "replicaId" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdGet().');
|
|
346
|
+
}
|
|
347
|
+
const queryParameters = {};
|
|
348
|
+
const headerParameters = {};
|
|
349
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
350
|
+
const token = this.configuration.accessToken;
|
|
351
|
+
const tokenString = await token("bearerAuth", []);
|
|
352
|
+
if (tokenString) {
|
|
353
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/replicas/{replica_id}`;
|
|
357
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
358
|
+
urlPath = urlPath.replace(`{${"replica_id"}}`, encodeURIComponent(String(requestParameters['replicaId'])));
|
|
359
|
+
const response = await this.request({
|
|
360
|
+
path: urlPath,
|
|
361
|
+
method: 'GET',
|
|
362
|
+
headers: headerParameters,
|
|
363
|
+
query: queryParameters,
|
|
364
|
+
}, initOverrides);
|
|
365
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessVolumeSyncReplicaResponseFromJSON(jsonValue));
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Get a volume sync replica
|
|
369
|
+
*/
|
|
370
|
+
async apiV1SandboxvolumesIdSyncReplicasReplicaIdGet(requestParameters, initOverrides) {
|
|
371
|
+
const response = await this.apiV1SandboxvolumesIdSyncReplicasReplicaIdGetRaw(requestParameters, initOverrides);
|
|
372
|
+
return await response.value();
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Register or update a volume sync replica
|
|
376
|
+
*/
|
|
377
|
+
async apiV1SandboxvolumesIdSyncReplicasReplicaIdPutRaw(requestParameters, initOverrides) {
|
|
378
|
+
if (requestParameters['id'] == null) {
|
|
379
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdPut().');
|
|
380
|
+
}
|
|
381
|
+
if (requestParameters['replicaId'] == null) {
|
|
382
|
+
throw new runtime.RequiredError('replicaId', 'Required parameter "replicaId" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdPut().');
|
|
383
|
+
}
|
|
384
|
+
if (requestParameters['upsertSyncReplicaRequest'] == null) {
|
|
385
|
+
throw new runtime.RequiredError('upsertSyncReplicaRequest', 'Required parameter "upsertSyncReplicaRequest" was null or undefined when calling apiV1SandboxvolumesIdSyncReplicasReplicaIdPut().');
|
|
386
|
+
}
|
|
387
|
+
const queryParameters = {};
|
|
388
|
+
const headerParameters = {};
|
|
389
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
390
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
391
|
+
const token = this.configuration.accessToken;
|
|
392
|
+
const tokenString = await token("bearerAuth", []);
|
|
393
|
+
if (tokenString) {
|
|
394
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
let urlPath = `/api/v1/sandboxvolumes/{id}/sync/replicas/{replica_id}`;
|
|
398
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
399
|
+
urlPath = urlPath.replace(`{${"replica_id"}}`, encodeURIComponent(String(requestParameters['replicaId'])));
|
|
400
|
+
const response = await this.request({
|
|
401
|
+
path: urlPath,
|
|
402
|
+
method: 'PUT',
|
|
403
|
+
headers: headerParameters,
|
|
404
|
+
query: queryParameters,
|
|
405
|
+
body: UpsertSyncReplicaRequestToJSON(requestParameters['upsertSyncReplicaRequest']),
|
|
406
|
+
}, initOverrides);
|
|
407
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SuccessVolumeSyncReplicaResponseFromJSON(jsonValue));
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Register or update a volume sync replica
|
|
411
|
+
*/
|
|
412
|
+
async apiV1SandboxvolumesIdSyncReplicasReplicaIdPut(requestParameters, initOverrides) {
|
|
413
|
+
const response = await this.apiV1SandboxvolumesIdSyncReplicasReplicaIdPutRaw(requestParameters, initOverrides);
|
|
414
|
+
return await response.value();
|
|
415
|
+
}
|
|
416
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/apis/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sandbox0 API
|
|
3
|
+
* Public HTTP APIs exposed by Sandbox0 regional gateways and the global gateway.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ChangeRequest } from './ChangeRequest.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AppendReplicaChangesRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface AppendReplicaChangesRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AppendReplicaChangesRequest
|
|
23
|
+
*/
|
|
24
|
+
requestId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AppendReplicaChangesRequest
|
|
29
|
+
*/
|
|
30
|
+
baseSeq: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<ChangeRequest>}
|
|
34
|
+
* @memberof AppendReplicaChangesRequest
|
|
35
|
+
*/
|
|
36
|
+
changes: Array<ChangeRequest>;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AppendReplicaChangesRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAppendReplicaChangesRequest(value: object): value is AppendReplicaChangesRequest;
|
|
42
|
+
export declare function AppendReplicaChangesRequestFromJSON(json: any): AppendReplicaChangesRequest;
|
|
43
|
+
export declare function AppendReplicaChangesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppendReplicaChangesRequest;
|
|
44
|
+
export declare function AppendReplicaChangesRequestToJSON(json: any): AppendReplicaChangesRequest;
|
|
45
|
+
export declare function AppendReplicaChangesRequestToJSONTyped(value?: AppendReplicaChangesRequest | null, ignoreDiscriminator?: boolean): any;
|
|
46
|
+
//# sourceMappingURL=AppendReplicaChangesRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppendReplicaChangesRequest.d.ts","sourceRoot":"","sources":["../../../../src/apispec/src/models/AppendReplicaChangesRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAKzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAU7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW5I"}
|