|
51 | 51 | "title": "FilesystemTrimStatus represents the status codes returned from\nOpenStorageFilesystemTrim service APIs()", |
52 | 52 | "type": "string" |
53 | 53 | }, |
| 54 | + "JobState": { |
| 55 | + "default": "UNSPECIFIED_STATE", |
| 56 | + "description": "- UNSPECIFIED_STATE: Unspecified\n - PENDING: Pending indicates job is still pending and has not started work\n - RUNNING: Running indicates job is actively running\n - DONE: Done indicates job has finished processing\n - PAUSED: Paused indicates job is paused\n - CANCELLED: Cancelled indicates job is cancelled\n - FAILED: Failed indicates job has failed", |
| 57 | + "enum": [ |
| 58 | + "UNSPECIFIED_STATE", |
| 59 | + "PENDING", |
| 60 | + "RUNNING", |
| 61 | + "DONE", |
| 62 | + "PAUSED", |
| 63 | + "CANCELLED", |
| 64 | + "FAILED" |
| 65 | + ], |
| 66 | + "title": "State is an enum for state of a node drain operation", |
| 67 | + "type": "string" |
| 68 | + }, |
54 | 69 | "LabelSelectorRequirementOperator": { |
55 | 70 | "default": "In", |
56 | 71 | "description": "- In: In means the value for 'key' should be in one of the given value(s)\n - NotIn: NotIn means the value for 'key' should NOT be in one of the given value(s)\n - Exists: Exists means the 'key' should just exist regardless of the value\n - DoesNotExist: DoesNotExist means the 'key' should NOT exist\n - Gt: Gt means the 'key' should be greater than the value(s)\n - Lt: Lt means the 'key' should be less than the value(s)", |
|
373 | 388 | }, |
374 | 389 | "type": "object" |
375 | 390 | }, |
| 391 | + "apiCloudDriveTransferJob": { |
| 392 | + "properties": { |
| 393 | + "destination_instance_id": { |
| 394 | + "title": "DestinationInstanceID is the ID of the storageless instance that needs to take over the SourceDriveSetID", |
| 395 | + "type": "string" |
| 396 | + }, |
| 397 | + "source_driveset_id": { |
| 398 | + "title": "SourceDrivesetID is the ID of the current driveset that needs to be transferred", |
| 399 | + "type": "string" |
| 400 | + }, |
| 401 | + "status": { |
| 402 | + "title": "Status describes a helpful status of this operation", |
| 403 | + "type": "string" |
| 404 | + } |
| 405 | + }, |
| 406 | + "type": "object" |
| 407 | + }, |
376 | 408 | "apiCloudMigrateCancelRequest": { |
377 | 409 | "properties": { |
378 | 410 | "task_id": { |
|
873 | 905 | }, |
874 | 906 | "apiJob": { |
875 | 907 | "properties": { |
| 908 | + "clouddrive_transfer": { |
| 909 | + "$ref": "#/components/schemas/apiCloudDriveTransferJob" |
| 910 | + }, |
876 | 911 | "create_time": { |
877 | 912 | "format": "date-time", |
878 | 913 | "title": "CreateTime is the time the job was created", |
|
891 | 926 | "type": "string" |
892 | 927 | }, |
893 | 928 | "state": { |
894 | | - "$ref": "#/components/schemas/apiJobState" |
| 929 | + "$ref": "#/components/schemas/JobState" |
895 | 930 | }, |
896 | 931 | "type": { |
897 | 932 | "$ref": "#/components/schemas/apiJobType" |
|
900 | 935 | "title": "Job is a generic job object that can encapsulate other\nmessages which follow the job framework of APIs", |
901 | 936 | "type": "object" |
902 | 937 | }, |
903 | | - "apiJobState": { |
904 | | - "default": "JOB_STATE_PENDING", |
905 | | - "description": "- JOB_STATE_PENDING: Pending indicates job is still pending and has not started work\n - JOB_STATE_RUNNING: Running indicates job is actively running\n - JOB_STATE_DONE: Done indicates job has finished processing\n - JOB_STATE_PAUSED: Paused indicates job is paused\n - JOB_STATE_CANCELLED: Cancelled indicates job is cancelled\n - JOB_STATE_FAILED: Failed indicates job has failed", |
906 | | - "enum": [ |
907 | | - "JOB_STATE_PENDING", |
908 | | - "JOB_STATE_RUNNING", |
909 | | - "JOB_STATE_DONE", |
910 | | - "JOB_STATE_PAUSED", |
911 | | - "JOB_STATE_CANCELLED", |
912 | | - "JOB_STATE_FAILED" |
913 | | - ], |
914 | | - "title": "JobState is an enum for state of a node drain operation", |
915 | | - "type": "string" |
916 | | - }, |
917 | 938 | "apiJobSummary": { |
918 | 939 | "properties": { |
919 | 940 | "id": { |
|
937 | 958 | "type": "object" |
938 | 959 | }, |
939 | 960 | "apiJobType": { |
940 | | - "default": "JobTypeNone", |
| 961 | + "default": "UNSPECIFIED_TYPE", |
| 962 | + "description": "- UNSPECIFIED_TYPE: Unspecified\n - NONE: None\n - DRAIN_ATTACHMENTS: Job for draining volume attachments\n - CLOUD_DRIVE_TRANSFER: Job for transferring cloud drives between nodes", |
941 | 963 | "enum": [ |
942 | | - "JobTypeNone", |
943 | | - "JobTypeDrainAttachments" |
| 964 | + "UNSPECIFIED_TYPE", |
| 965 | + "NONE", |
| 966 | + "DRAIN_ATTACHMENTS", |
| 967 | + "CLOUD_DRIVE_TRANSFER" |
944 | 968 | ], |
945 | | - "title": "JobType are the supported job types", |
| 969 | + "title": "Type are the supported job types", |
946 | 970 | "type": "string" |
947 | 971 | }, |
948 | 972 | "apiJobWorkSummary": { |
|
2723 | 2747 | "title": "Defines a response for an SDK request that spins up a new job\nto perform the request", |
2724 | 2748 | "type": "object" |
2725 | 2749 | }, |
| 2750 | + "apiSdkNodeCordonAttachmentsRequest": { |
| 2751 | + "properties": { |
| 2752 | + "node_id": { |
| 2753 | + "title": "Node ID on which any further volume attachments will be disabled", |
| 2754 | + "type": "string" |
| 2755 | + } |
| 2756 | + }, |
| 2757 | + "title": "SdkNodeCordonAttachmentsRequest request for disabling new volume\nattachments from a node", |
| 2758 | + "type": "object" |
| 2759 | + }, |
2726 | 2760 | "apiSdkNodeCordonAttachmentsResponse": { |
2727 | 2761 | "title": "SdkNodeCordonAttachmentsRespinse response for disabling new volume\nattachments from a node", |
2728 | 2762 | "type": "object" |
|
2797 | 2831 | "title": "Defines a response when inspecting a node", |
2798 | 2832 | "type": "object" |
2799 | 2833 | }, |
| 2834 | + "apiSdkNodeUncordonAttachmentsRequest": { |
| 2835 | + "properties": { |
| 2836 | + "node_id": { |
| 2837 | + "title": "Node ID on which any further volume attachments will be enabled", |
| 2838 | + "type": "string" |
| 2839 | + } |
| 2840 | + }, |
| 2841 | + "title": "SdkNodeUncordonAttachmentsRequest request for re-enabling volume\nattachments for a node", |
| 2842 | + "type": "object" |
| 2843 | + }, |
2800 | 2844 | "apiSdkNodeUncordonAttachmentsResponse": { |
2801 | 2845 | "title": "SdkNodeUncordonAttachmentsRespinse response for enabling new volume\nattachments from a node", |
2802 | 2846 | "type": "object" |
|
3322 | 3366 | "title": "Defines times of day", |
3323 | 3367 | "type": "string" |
3324 | 3368 | }, |
| 3369 | + "apiSdkUpdateJobRequest": { |
| 3370 | + "properties": { |
| 3371 | + "id": { |
| 3372 | + "title": "ID of the job", |
| 3373 | + "type": "string" |
| 3374 | + }, |
| 3375 | + "state": { |
| 3376 | + "$ref": "#/components/schemas/JobState" |
| 3377 | + }, |
| 3378 | + "type": { |
| 3379 | + "$ref": "#/components/schemas/apiJobType" |
| 3380 | + } |
| 3381 | + }, |
| 3382 | + "title": "Defines a request to update an existing job", |
| 3383 | + "type": "object" |
| 3384 | + }, |
3325 | 3385 | "apiSdkUpdateJobResponse": { |
3326 | 3386 | "title": "Defines the response for an update to an existing job", |
3327 | 3387 | "type": "object" |
|
5150 | 5210 | }, |
5151 | 5211 | "info": { |
5152 | 5212 | "title": "OpenStorage SDK", |
5153 | | - "version": "0.69.29" |
| 5213 | + "version": "0.69.32" |
5154 | 5214 | }, |
5155 | 5215 | "openapi": "3.0.0", |
5156 | 5216 | "paths": { |
|
6414 | 6474 | }, |
6415 | 6475 | "/v1/jobs": { |
6416 | 6476 | "get": { |
6417 | | - "operationId": "EnumerateJobs", |
| 6477 | + "operationId": "Enumerate", |
6418 | 6478 | "parameters": [ |
6419 | 6479 | { |
6420 | | - "description": "Type if specified will list the jobs of the provided type.", |
| 6480 | + "description": "Type if specified will list the jobs of the provided type.\n\n - UNSPECIFIED_TYPE: Unspecified\n - NONE: None\n - DRAIN_ATTACHMENTS: Job for draining volume attachments\n - CLOUD_DRIVE_TRANSFER: Job for transferring cloud drives between nodes", |
6421 | 6481 | "in": "query", |
6422 | 6482 | "name": "type", |
6423 | 6483 | "required": false, |
6424 | 6484 | "schema": { |
6425 | | - "default": "JobTypeNone", |
| 6485 | + "default": "UNSPECIFIED_TYPE", |
6426 | 6486 | "enum": [ |
6427 | | - "JobTypeNone", |
6428 | | - "JobTypeDrainAttachments" |
| 6487 | + "UNSPECIFIED_TYPE", |
| 6488 | + "NONE", |
| 6489 | + "DRAIN_ATTACHMENTS", |
| 6490 | + "CLOUD_DRIVE_TRANSFER" |
6429 | 6491 | ], |
6430 | 6492 | "type": "string" |
6431 | 6493 | } |
|
6443 | 6505 | "description": "" |
6444 | 6506 | } |
6445 | 6507 | }, |
6446 | | - "summary": "EnumerateJobs returns all the jobs currently known to the system", |
| 6508 | + "summary": "Enumerate returns all the jobs currently known to the system", |
6447 | 6509 | "tags": [ |
6448 | 6510 | "OpenStorageJob" |
6449 | 6511 | ] |
6450 | 6512 | } |
6451 | 6513 | }, |
6452 | 6514 | "/v1/jobs/{id}": { |
6453 | 6515 | "get": { |
6454 | | - "operationId": "GetJobStatus", |
| 6516 | + "operationId": "GetStatus", |
6455 | 6517 | "parameters": [ |
6456 | 6518 | { |
6457 | 6519 | "in": "path", |
|
6462 | 6524 | } |
6463 | 6525 | }, |
6464 | 6526 | { |
6465 | | - "description": "Type of the job.", |
| 6527 | + "description": "Type of the job.\n\n - UNSPECIFIED_TYPE: Unspecified\n - NONE: None\n - DRAIN_ATTACHMENTS: Job for draining volume attachments\n - CLOUD_DRIVE_TRANSFER: Job for transferring cloud drives between nodes", |
6466 | 6528 | "in": "query", |
6467 | 6529 | "name": "type", |
6468 | 6530 | "required": false, |
6469 | 6531 | "schema": { |
6470 | | - "default": "JobTypeNone", |
| 6532 | + "default": "UNSPECIFIED_TYPE", |
6471 | 6533 | "enum": [ |
6472 | | - "JobTypeNone", |
6473 | | - "JobTypeDrainAttachments" |
| 6534 | + "UNSPECIFIED_TYPE", |
| 6535 | + "NONE", |
| 6536 | + "DRAIN_ATTACHMENTS", |
| 6537 | + "CLOUD_DRIVE_TRANSFER" |
6474 | 6538 | ], |
6475 | 6539 | "type": "string" |
6476 | 6540 | } |
|
6488 | 6552 | "description": "" |
6489 | 6553 | } |
6490 | 6554 | }, |
6491 | | - "summary": "GetJobStatus gets the status of a job", |
| 6555 | + "summary": "GetStatus gets the status of a job", |
6492 | 6556 | "tags": [ |
6493 | 6557 | "OpenStorageJob" |
6494 | 6558 | ] |
6495 | 6559 | }, |
6496 | 6560 | "put": { |
6497 | | - "operationId": "UpdateJobState", |
| 6561 | + "operationId": "Update", |
6498 | 6562 | "parameters": [ |
6499 | 6563 | { |
6500 | 6564 | "in": "path", |
|
6505 | 6569 | } |
6506 | 6570 | } |
6507 | 6571 | ], |
| 6572 | + "requestBody": { |
| 6573 | + "content": { |
| 6574 | + "application/json": { |
| 6575 | + "schema": { |
| 6576 | + "$ref": "#/components/schemas/apiSdkUpdateJobRequest" |
| 6577 | + } |
| 6578 | + } |
| 6579 | + }, |
| 6580 | + "required": true |
| 6581 | + }, |
6508 | 6582 | "responses": { |
6509 | 6583 | "200": { |
6510 | 6584 | "content": { |
|
6517 | 6591 | "description": "" |
6518 | 6592 | } |
6519 | 6593 | }, |
6520 | | - "summary": "UpdateJobState updates an existing job\nOnly acceptable values are\nJobState_PAUSED - acceptable only from running state\nJobState_CANCELLED - acceptable only from running/pause state\nJobState_RUNNING - acceptable only from pause state", |
| 6594 | + "summary": "Update updates an existing job's state\nOnly acceptable state values are\nJobState_PAUSED - acceptable only from running state\nJobState_CANCELLED - acceptable only from running/pause state\nJobState_RUNNING - acceptable only from pause state", |
6521 | 6595 | "tags": [ |
6522 | 6596 | "OpenStorageJob" |
6523 | 6597 | ] |
|
6685 | 6759 | } |
6686 | 6760 | } |
6687 | 6761 | ], |
| 6762 | + "requestBody": { |
| 6763 | + "content": { |
| 6764 | + "application/json": { |
| 6765 | + "schema": { |
| 6766 | + "$ref": "#/components/schemas/apiSdkNodeCordonAttachmentsRequest" |
| 6767 | + } |
| 6768 | + } |
| 6769 | + }, |
| 6770 | + "required": true |
| 6771 | + }, |
6688 | 6772 | "responses": { |
6689 | 6773 | "200": { |
6690 | 6774 | "content": { |
|
6716 | 6800 | } |
6717 | 6801 | } |
6718 | 6802 | ], |
| 6803 | + "requestBody": { |
| 6804 | + "content": { |
| 6805 | + "application/json": { |
| 6806 | + "schema": { |
| 6807 | + "$ref": "#/components/schemas/apiSdkNodeDrainAttachmentsRequest" |
| 6808 | + } |
| 6809 | + } |
| 6810 | + }, |
| 6811 | + "required": true |
| 6812 | + }, |
6719 | 6813 | "responses": { |
6720 | 6814 | "200": { |
6721 | 6815 | "content": { |
|
6747 | 6841 | } |
6748 | 6842 | } |
6749 | 6843 | ], |
| 6844 | + "requestBody": { |
| 6845 | + "content": { |
| 6846 | + "application/json": { |
| 6847 | + "schema": { |
| 6848 | + "$ref": "#/components/schemas/apiSdkNodeUncordonAttachmentsRequest" |
| 6849 | + } |
| 6850 | + } |
| 6851 | + }, |
| 6852 | + "required": true |
| 6853 | + }, |
6750 | 6854 | "responses": { |
6751 | 6855 | "200": { |
6752 | 6856 | "content": { |
|
0 commit comments