Skip to content

Commit

Permalink
patch disk id
Browse files Browse the repository at this point in the history
  • Loading branch information
JungleCatSW committed Jan 19, 2024
1 parent 652475d commit bf72d33
Show file tree
Hide file tree
Showing 178 changed files with 187 additions and 8 deletions.
7 changes: 4 additions & 3 deletions codegen.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
python3 tools/swaggerfix.py

rm -rf src
mkdir src
rm -rf swagger-codegen
git clone https://github.com/swagger-api/swagger-codegen
mv fix.swagger.json swagger-codegen
Expand All @@ -16,7 +17,7 @@ cp -r swagger-codegen/out/src/ docs
#rm -rf swagger-codegen

cp helpers/* docs/src/cudo_compute
echo "import src.cudo_compute.auth_config as AuthConfig" >> src/cudo_compute/__init__.py
echo "import cudo_compute.cudo_api as cudo_api" >> src/cudo_compute/__init__.py
echo "import src.cudo_compute.auth_config as AuthConfig" >> docs/src/cudo_compute/__init__.py
echo "import cudo_compute.cudo_api as cudo_api" >> docs/src/cudo_compute/__init__.py

python3 tools/authfix.py
#python3 tools/authfix.py
2 changes: 1 addition & 1 deletion docs/docs/Disk.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**data_center_id** | **str** | | [optional]
**disk_state** | [**DiskState**](DiskState.md) | | [optional]
**disk_type** | [**DiskType**](DiskType.md) | | [optional]
**id** | **str** | |
**id** | **str** | | [optional]
**private_image_id** | **str** | | [optional]
**project_id** | **str** | | [optional]
**public_image_id** | **str** | | [optional]
Expand Down
3 changes: 3 additions & 0 deletions docs/src/cudo_compute/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

# import apis into sdk package
Expand Down Expand Up @@ -189,3 +190,5 @@
from src.cudo_compute.models.vmnic import VMNIC
from src.cudo_compute.models.v_router_size import VRouterSize
from src.cudo_compute.models.vm_state import VmState
import src.cudo_compute.auth_config as AuthConfig
import cudo_compute.cudo_api as cudo_api
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/api_keys_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/billing_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/data_centers_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/disks_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/machine_types_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/networks_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/object_storage_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/permissions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/projects_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/search_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/ssh_keys_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api/virtual_machines_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import re # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

from __future__ import absolute_import

import datetime
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

import copy
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from __future__ import absolute_import

# import models into model package
Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/activate_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/any.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/api_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/billing_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/billing_account_spend_row.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/connect_vm_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/count_hosts_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/count_vms_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/cpu_model_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/create_disk_snapshot_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/create_network_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/create_network_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions docs/src/cudo_compute/models/create_storage_disk_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re # noqa: F401

Expand Down
Loading

0 comments on commit bf72d33

Please sign in to comment.