rsdo 0.1.20260901

A Rust client library for the DigitalOcean API v2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
vectordbBackup:
  description: Backup represents a single backup of a vector database.
  properties:
    backup_id:
      description: Unique identifier for the backup (e.g., "vectordb-{uuid}-20240101-120000").
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    completed_at:
      description: Timestamp when the backup process completed.
      example: "2023-01-01T00:00:00Z"
      format: date-time
      type: string
    started_at:
      description: Timestamp when the backup process started.
      example: "2023-01-01T00:00:00Z"
      format: date-time
      type: string
    status:
      description: 'Status of the backup: SUCCESS.'
      example: example string
      type: string
  type: object
vectordbCreateBackupResponse:
  properties:
    backup_id:
      description: The generated backup ID (e.g., "vectordb-{uuid}-{timestamp}").
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    status:
      description: Initial status of the backup operation (e.g., "STARTED").
      example: example string
      type: string
  type: object
vectordbCreateVectorDBRequest:
  properties:
    name:
      description: Required. Human-readable name for the database.
      example: example name
      type: string
    project_id:
      description: Required. ID of the project to create the vector database in.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    region:
      description: Required. Region slug where the database will be provisioned.
      example: tor1
      type: string
    size:
      description: 'Required. Resource tier: small, medium, or large.'
      example: example string
      type: string
    tags:
      description: A set of arbitrary tags to organize your vector database
      example:
      - example string
      items:
        example: example string
        type: string
      type: array
  type: object
vectordbCreateVectorDBResponse:
  properties:
    vector_db:
      $ref: '#/vectordbVectorDB'
  type: object
vectordbDeleteVectorDBResponse:
  type: object
vectordbForkBackupMode:
  default: FORK_BACKUP_MODE_UNSPECIFIED
  description: |-
    ForkBackupMode selects how ForkVectorDB obtains the backup it restores
    onto the new instance.

     - FORK_BACKUP_MODE_UNSPECIFIED: Default; rejected by the API. Callers must pick one of the modes below
    explicitly so behaviour is never inferred from a missing value.
     - USE_BACKUP_ID: Restore from the backup_id supplied in the request. The backup must
    belong to the source instance and have completed successfully.
     - LATEST_SUCCESS: Restore from the most recent successful backup of the source instance.
    Fastest path because it skips taking a new backup; backup_id is ignored.
     - FRESH_BACKUP: Trigger a new backup on the source instance and restore from it once
    it completes. The intermediate backup is deleted after the fork
    succeeds; backup_id is ignored.
  enum:
  - FORK_BACKUP_MODE_UNSPECIFIED
  - USE_BACKUP_ID
  - LATEST_SUCCESS
  - FRESH_BACKUP
  example: FORK_BACKUP_MODE_UNSPECIFIED
  type: string
vectordbForkVectorDBRequest:
  properties:
    backup_id:
      description: |-
        Required when backup_mode = USE_BACKUP_ID. Ignored otherwise.
        Must reference a SUCCESS backup belonging to the source instance.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    backup_mode:
      $ref: '#/vectordbForkBackupMode'
    id:
      description: Required. ID of the source vector database to fork from (path parameter).
      example: example string
      type: string
    name:
      description: |-
        Required. Human-readable name for the new (forked) database.
        Must be unique within the owner.
      example: example name
      type: string
    project_id:
      description: Required. ID of the project the forked database will be created
        in.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    region:
      description: |-
        Required. Region slug where the forked database will be provisioned.
        May differ from the source region.
      example: tor1
      type: string
    size:
      description: 'Required. Resource tier for the forked database: small, medium,
        or large.'
      example: example string
      type: string
    tags:
      description: |-
        Optional. Tags to apply to the forked database. Tags are not inherited
        from the source instance.
      example:
      - example string
      items:
        example: example string
        type: string
      type: array
  type: object
vectordbForkVectorDBResponse:
  properties:
    vector_db:
      $ref: '#/vectordbVectorDB'
  type: object
vectordbGetRestoreStatusResponse:
  properties:
    backup_id:
      description: The backup ID being restored.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    error:
      description: Error message if the restore failed.
      example: example string
      type: string
    status:
      description: 'Current status: STARTED, TRANSFERRING, TRANSFERRED, FINALIZING,
        SUCCESS, FAILED, CANCELLING, CANCELED.'
      example: example string
      type: string
  type: object
vectordbGetVectorDBAdminCredentialsResponse:
  properties:
    api_token:
      description: API token for that user.
      example: example string
      type: string
    user_id:
      description: Database user id from the cluster secret (opaque; matches what
        was provisioned).
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
  type: object
vectordbGetVectorDBResponse:
  properties:
    vector_db:
      $ref: '#/vectordbVectorDB'
  type: object
vectordbListBackupsResponse:
  properties:
    backups:
      description: List of available backups.
      items:
        $ref: '#/vectordbBackup'
      type: array
  type: object
vectordbListPlansResponse:
  properties:
    plans:
      items:
        $ref: '#/vectordbVectorDBPlan'
      type: array
  type: object
vectordbListVectorDBsResponse:
  properties:
    total:
      example: 123
      format: int64
      type: integer
    vector_dbs:
      items:
        $ref: '#/vectordbVectorDB'
      type: array
  type: object
vectordbResizeVectorDBRequest:
  properties:
    id:
      description: Required. ID of the vector database to resize.
      example: example string
      type: string
    size:
      description: 'Required. Target resource tier: small, medium, or large.'
      example: example string
      type: string
  type: object
vectordbResizeVectorDBResponse:
  properties:
    vector_db:
      $ref: '#/vectordbVectorDB'
  type: object
vectordbRestoreBackupRequest:
  properties:
    backup_id:
      description: Required. ID of the backup to restore from.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    id:
      description: Required. ID of the vector database.
      example: example string
      type: string
  type: object
vectordbRestoreBackupResponse:
  properties:
    backup_id:
      description: The backup ID being restored.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    status:
      description: Initial status of the restore operation (e.g., "STARTED").
      example: example string
      type: string
  type: object
vectordbRotateVectorDBUserCredentialsRequest:
  properties:
    id:
      description: Required. ID of the vector database whose user API key should be
        rotated.
      example: example string
      type: string
    user:
      description: |-
        Required. Database user id whose API key should be rotated
        (e.g. "do-admin"). Must be 1-63 chars, [A-Za-z0-9_-]; the server
        validates this independently of any path routing.
      example: example string
      type: string
  type: object
vectordbUpdateVectorDBRequest:
  properties:
    config:
      $ref: '#/vectordbVectorDBConfig'
    id:
      description: ID of the vector database.
      example: example string
      type: string
    project_id:
      description: Optional. New project UUID to assign the database to.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
  type: object
vectordbUpdateVectorDBResponse:
  properties:
    vector_db:
      $ref: '#/vectordbVectorDB'
  type: object
vectordbUpdateVectorDBTagsRequest:
  properties:
    id:
      description: Required. ID of the vector database to update tags for.
      example: example string
      type: string
    tags:
      description: Tags to set on the vector database. Replaces all existing tags.
      example:
      - example string
      items:
        example: example string
        type: string
      type: array
  type: object
vectordbUpdateVectorDBTagsResponse:
  properties:
    vector_db:
      $ref: '#/vectordbVectorDB'
  type: object
vectordbVectorDB:
  description: VectorDB represents a provisioned vector database instance.
  properties:
    config:
      $ref: '#/vectordbVectorDBConfig'
    created_at:
      example: "2023-01-01T00:00:00Z"
      format: date-time
      type: string
    endpoints:
      $ref: '#/vectordbVectorDBEndpoints'
    forked_from_id:
      description: |-
        ID of the vector database this instance was forked from. Empty when the
        instance was created directly via CreateVectorDB. Read-only and set by
        the platform at fork time; never modifiable through UpdateVectorDB.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    id:
      example: example string
      type: string
    last_restore_id:
      description: |-
        Backup_id of the most recent restore initiated against this instance.
        Empty if no restore has ever been triggered. Lets callers recover the
        identifier of an in-flight or last-completed restore without having
        to retain the RestoreBackupResponse themselves. Use it with
        GetRestoreStatus to fetch the live status.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    name:
      example: example name
      type: string
    owner_uuid:
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    project_id:
      description: Project this database belongs to.
      example: 123e4567-e89b-12d3-a456-426614174000
      type: string
    region:
      example: tor1
      type: string
    size:
      description: 'Resource tier: small, medium, or large.'
      example: example string
      type: string
    status:
      description: 'Lifecycle state: pending, creating, active, errored, or deleting.'
      example: example string
      type: string
    tags:
      example:
      - example string
      items:
        example: example string
        type: string
      type: array
    updated_at:
      example: "2023-01-01T00:00:00Z"
      format: date-time
      type: string
  type: object
vectordbVectorDBConfig:
  description: VectorDBConfig holds optional, advanced cluster settings.
  properties:
    default_quantization:
      description: 'Default vector compression for new collections: rq, pq, bq, or
        sq. Empty means platform default (rq).'
      example: example string
      type: string
    enable_auto_schema:
      example: true
      type: boolean
    weaviate_version:
      description: The Vector Database version running on the cluster.
      example: example string
      type: string
  type: object
vectordbVectorDBEndpoints:
  description: VectorDBEndpoints contains the connection endpoints for a vector database
    instance.
  properties:
    grpc:
      description: Endpoint for gRPC connections (e.g. "my-db-tor1-a1b2c3d4-grpc.weaviate.ondigitalocean.com:443").
      example: my-db-tor1-a1b2c3d4-grpc.weaviate.ondigitalocean.com:443
      type: string
    http:
      description: Endpoint for HTTPS connections (e.g. "https://my-db-tor1-a1b2c3d4.weaviate.ondigitalocean.com").
      example: https://my-db-tor1-a1b2c3d4.weaviate.ondigitalocean.com
      type: string
  type: object
vectordbVectorDBPlan:
  properties:
    deprecated:
      example: true
      type: boolean
    disk_mib:
      example: 123
      format: int64
      type: integer
    enabled_regions:
      description: |-
        Regions where this plan can be provisioned. An empty list means the
        plan is not currently offered anywhere.
      example:
      - tor1
      items:
        example: example string
        type: string
      type: array
    hourly_price:
      example: example string
      type: string
    monthly_price:
      example: example string
      type: string
    size:
      example: example string
      type: string
    usable_memory_mib:
      example: 123
      format: int64
      type: integer
    vcpu:
      example: 123
      format: int64
      type: integer
  type: object