"type": "string", "minLength": 1, "maxLength": 50, "format": "valid_name_hostname", }, "is_public": { "type": ["boolean", "null"], }, "is_protected": { "type": ["boolean", "null"], }, "verification": { "type": "object", "properties": { "status": { "enum": verification_base.get_possible_ops(), } }, }, "shares": copy.deepcopy(shares.SHARE_SCHEMA), }, "additionalProperties": False, "required": [] } CLUSTER_SCALING_SCHEMA = { "type": "object", "properties": { "resize_node_groups": { "type": "array", "items": {
"type": "string", "minLength": 1, "maxLength": 50, "format": "valid_name_hostname", }, "is_public": { "type": ["boolean", "null"], }, "is_protected": { "type": ["boolean", "null"], }, "verification": { "type": "object", "properties": { "status": { "enum": verification_base.get_possible_ops(), } }, }, "shares": copy.deepcopy(shares.SHARE_SCHEMA), }, "additionalProperties": False, "required": [] } CLUSTER_UPDATE_SCHEMA_V2 = copy.deepcopy(CLUSTER_UPDATE_SCHEMA) CLUSTER_UPDATE_SCHEMA_V2['properties'].update( {"update_keypair": { "type": ["boolean", "null"] }}) CLUSTER_SCALING_SCHEMA = {