|
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)", |
|
902 | 917 | "type": "string" |
903 | 918 | }, |
904 | 919 | "state": { |
905 | | - "$ref": "#/components/schemas/apiJobState" |
| 920 | + "$ref": "#/components/schemas/JobState" |
906 | 921 | }, |
907 | 922 | "type": { |
908 | 923 | "$ref": "#/components/schemas/apiJobType" |
|
911 | 926 | "title": "Job is a generic job object that can encapsulate other\nmessages which follow the job framework of APIs", |
912 | 927 | "type": "object" |
913 | 928 | }, |
914 | | - "apiJobState": { |
915 | | - "default": "JOB_STATE_PENDING", |
916 | | - "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", |
917 | | - "enum": [ |
918 | | - "JOB_STATE_PENDING", |
919 | | - "JOB_STATE_RUNNING", |
920 | | - "JOB_STATE_DONE", |
921 | | - "JOB_STATE_PAUSED", |
922 | | - "JOB_STATE_CANCELLED", |
923 | | - "JOB_STATE_FAILED" |
924 | | - ], |
925 | | - "title": "JobState is an enum for state of a node drain operation", |
926 | | - "type": "string" |
927 | | - }, |
928 | 929 | "apiJobSummary": { |
929 | 930 | "properties": { |
930 | 931 | "id": { |
|
948 | 949 | "type": "object" |
949 | 950 | }, |
950 | 951 | "apiJobType": { |
951 | | - "default": "JobTypeNone", |
| 952 | + "default": "UNSPECIFIED_TYPE", |
| 953 | + "description": "- UNSPECIFIED_TYPE: Unspecified\n - NONE: None\n - DRAIN_ATTACHMENTS: Job for draining volume attachments", |
952 | 954 | "enum": [ |
953 | | - "JobTypeNone", |
954 | | - "JobTypeDrainAttachments" |
| 955 | + "UNSPECIFIED_TYPE", |
| 956 | + "NONE", |
| 957 | + "DRAIN_ATTACHMENTS" |
955 | 958 | ], |
956 | | - "title": "JobType are the supported job types", |
| 959 | + "title": "Type are the supported job types", |
957 | 960 | "type": "string" |
958 | 961 | }, |
959 | 962 | "apiJobWorkSummary": { |
|
2734 | 2737 | "title": "Defines a response for an SDK request that spins up a new job\nto perform the request", |
2735 | 2738 | "type": "object" |
2736 | 2739 | }, |
| 2740 | + "apiSdkNodeCordonAttachmentsRequest": { |
| 2741 | + "properties": { |
| 2742 | + "node_id": { |
| 2743 | + "title": "Node ID on which any further volume attachments will be disabled", |
| 2744 | + "type": "string" |
| 2745 | + } |
| 2746 | + }, |
| 2747 | + "title": "SdkNodeCordonAttachmentsRequest request for disabling new volume\nattachments from a node", |
| 2748 | + "type": "object" |
| 2749 | + }, |
2737 | 2750 | "apiSdkNodeCordonAttachmentsResponse": { |
2738 | 2751 | "title": "SdkNodeCordonAttachmentsRespinse response for disabling new volume\nattachments from a node", |
2739 | 2752 | "type": "object" |
|
2808 | 2821 | "title": "Defines a response when inspecting a node", |
2809 | 2822 | "type": "object" |
2810 | 2823 | }, |
| 2824 | + "apiSdkNodeUncordonAttachmentsRequest": { |
| 2825 | + "properties": { |
| 2826 | + "node_id": { |
| 2827 | + "title": "Node ID on which any further volume attachments will be enabled", |
| 2828 | + "type": "string" |
| 2829 | + } |
| 2830 | + }, |
| 2831 | + "title": "SdkNodeUncordonAttachmentsRequest request for re-enabling volume\nattachments for a node", |
| 2832 | + "type": "object" |
| 2833 | + }, |
2811 | 2834 | "apiSdkNodeUncordonAttachmentsResponse": { |
2812 | 2835 | "title": "SdkNodeUncordonAttachmentsRespinse response for enabling new volume\nattachments from a node", |
2813 | 2836 | "type": "object" |
|
3333 | 3356 | "title": "Defines times of day", |
3334 | 3357 | "type": "string" |
3335 | 3358 | }, |
| 3359 | + "apiSdkUpdateJobRequest": { |
| 3360 | + "properties": { |
| 3361 | + "id": { |
| 3362 | + "title": "ID of the job", |
| 3363 | + "type": "string" |
| 3364 | + }, |
| 3365 | + "state": { |
| 3366 | + "$ref": "#/components/schemas/JobState" |
| 3367 | + }, |
| 3368 | + "type": { |
| 3369 | + "$ref": "#/components/schemas/apiJobType" |
| 3370 | + } |
| 3371 | + }, |
| 3372 | + "title": "Defines a request to update an existing job", |
| 3373 | + "type": "object" |
| 3374 | + }, |
3336 | 3375 | "apiSdkUpdateJobResponse": { |
3337 | 3376 | "title": "Defines the response for an update to an existing job", |
3338 | 3377 | "type": "object" |
|
5161 | 5200 | }, |
5162 | 5201 | "info": { |
5163 | 5202 | "title": "OpenStorage SDK", |
5164 | | - "version": "0.101.0" |
| 5203 | + "version": "0.101.1" |
5165 | 5204 | }, |
5166 | 5205 | "openapi": "3.0.0", |
5167 | 5206 | "paths": { |
|
6425 | 6464 | }, |
6426 | 6465 | "/v1/jobs": { |
6427 | 6466 | "get": { |
6428 | | - "operationId": "EnumerateJobs", |
| 6467 | + "operationId": "Enumerate", |
6429 | 6468 | "parameters": [ |
6430 | 6469 | { |
6431 | | - "description": "Type if specified will list the jobs of the provided type.", |
| 6470 | + "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", |
6432 | 6471 | "in": "query", |
6433 | 6472 | "name": "type", |
6434 | 6473 | "required": false, |
6435 | 6474 | "schema": { |
6436 | | - "default": "JobTypeNone", |
| 6475 | + "default": "UNSPECIFIED_TYPE", |
6437 | 6476 | "enum": [ |
6438 | | - "JobTypeNone", |
6439 | | - "JobTypeDrainAttachments" |
| 6477 | + "UNSPECIFIED_TYPE", |
| 6478 | + "NONE", |
| 6479 | + "DRAIN_ATTACHMENTS" |
6440 | 6480 | ], |
6441 | 6481 | "type": "string" |
6442 | 6482 | } |
|
6454 | 6494 | "description": "" |
6455 | 6495 | } |
6456 | 6496 | }, |
6457 | | - "summary": "EnumerateJobs returns all the jobs currently known to the system", |
| 6497 | + "summary": "Enumerate returns all the jobs currently known to the system", |
6458 | 6498 | "tags": [ |
6459 | 6499 | "OpenStorageJob" |
6460 | 6500 | ] |
6461 | 6501 | } |
6462 | 6502 | }, |
6463 | 6503 | "/v1/jobs/{id}": { |
6464 | 6504 | "get": { |
6465 | | - "operationId": "GetJobStatus", |
| 6505 | + "operationId": "GetStatus", |
6466 | 6506 | "parameters": [ |
6467 | 6507 | { |
6468 | 6508 | "in": "path", |
|
6473 | 6513 | } |
6474 | 6514 | }, |
6475 | 6515 | { |
6476 | | - "description": "Type of the job.", |
| 6516 | + "description": "Type of the job.\n\n - UNSPECIFIED_TYPE: Unspecified\n - NONE: None\n - DRAIN_ATTACHMENTS: Job for draining volume attachments", |
6477 | 6517 | "in": "query", |
6478 | 6518 | "name": "type", |
6479 | 6519 | "required": false, |
6480 | 6520 | "schema": { |
6481 | | - "default": "JobTypeNone", |
| 6521 | + "default": "UNSPECIFIED_TYPE", |
6482 | 6522 | "enum": [ |
6483 | | - "JobTypeNone", |
6484 | | - "JobTypeDrainAttachments" |
| 6523 | + "UNSPECIFIED_TYPE", |
| 6524 | + "NONE", |
| 6525 | + "DRAIN_ATTACHMENTS" |
6485 | 6526 | ], |
6486 | 6527 | "type": "string" |
6487 | 6528 | } |
|
6499 | 6540 | "description": "" |
6500 | 6541 | } |
6501 | 6542 | }, |
6502 | | - "summary": "GetJobStatus gets the status of a job", |
| 6543 | + "summary": "GetStatus gets the status of a job", |
6503 | 6544 | "tags": [ |
6504 | 6545 | "OpenStorageJob" |
6505 | 6546 | ] |
6506 | 6547 | }, |
6507 | 6548 | "put": { |
6508 | | - "operationId": "UpdateJobState", |
| 6549 | + "operationId": "Update", |
6509 | 6550 | "parameters": [ |
6510 | 6551 | { |
6511 | 6552 | "in": "path", |
|
6516 | 6557 | } |
6517 | 6558 | } |
6518 | 6559 | ], |
| 6560 | + "requestBody": { |
| 6561 | + "content": { |
| 6562 | + "application/json": { |
| 6563 | + "schema": { |
| 6564 | + "$ref": "#/components/schemas/apiSdkUpdateJobRequest" |
| 6565 | + } |
| 6566 | + } |
| 6567 | + }, |
| 6568 | + "required": true |
| 6569 | + }, |
6519 | 6570 | "responses": { |
6520 | 6571 | "200": { |
6521 | 6572 | "content": { |
|
6528 | 6579 | "description": "" |
6529 | 6580 | } |
6530 | 6581 | }, |
6531 | | - "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", |
| 6582 | + "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", |
6532 | 6583 | "tags": [ |
6533 | 6584 | "OpenStorageJob" |
6534 | 6585 | ] |
|
6696 | 6747 | } |
6697 | 6748 | } |
6698 | 6749 | ], |
| 6750 | + "requestBody": { |
| 6751 | + "content": { |
| 6752 | + "application/json": { |
| 6753 | + "schema": { |
| 6754 | + "$ref": "#/components/schemas/apiSdkNodeCordonAttachmentsRequest" |
| 6755 | + } |
| 6756 | + } |
| 6757 | + }, |
| 6758 | + "required": true |
| 6759 | + }, |
6699 | 6760 | "responses": { |
6700 | 6761 | "200": { |
6701 | 6762 | "content": { |
|
6727 | 6788 | } |
6728 | 6789 | } |
6729 | 6790 | ], |
| 6791 | + "requestBody": { |
| 6792 | + "content": { |
| 6793 | + "application/json": { |
| 6794 | + "schema": { |
| 6795 | + "$ref": "#/components/schemas/apiSdkNodeDrainAttachmentsRequest" |
| 6796 | + } |
| 6797 | + } |
| 6798 | + }, |
| 6799 | + "required": true |
| 6800 | + }, |
6730 | 6801 | "responses": { |
6731 | 6802 | "200": { |
6732 | 6803 | "content": { |
|
6758 | 6829 | } |
6759 | 6830 | } |
6760 | 6831 | ], |
| 6832 | + "requestBody": { |
| 6833 | + "content": { |
| 6834 | + "application/json": { |
| 6835 | + "schema": { |
| 6836 | + "$ref": "#/components/schemas/apiSdkNodeUncordonAttachmentsRequest" |
| 6837 | + } |
| 6838 | + } |
| 6839 | + }, |
| 6840 | + "required": true |
| 6841 | + }, |
6761 | 6842 | "responses": { |
6762 | 6843 | "200": { |
6763 | 6844 | "content": { |
|
0 commit comments