Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Generate icelake rust open api client (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
liurenjie1024 authored Jul 29, 2023
1 parent 1da1e0c commit 5e3f773
Show file tree
Hide file tree
Showing 185 changed files with 6,929 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
run: rustup update stable

- name: Format
run: cargo fmt --all -- --check
run: cargo fmt -p icelake -- --check

- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
run: cargo clippy --all-targets --workspace --exclude iceberg-rest-api --all-features -- -D warnings

build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ target/
*.pdb

Cargo.lock

.idea
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

[workspace]
members = [
"icelake"
"icelake",
"rest_api"
]


Expand Down
3 changes: 3 additions & 0 deletions rest_api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/target/
**/*.rs.bk
Cargo.lock
23 changes: 23 additions & 0 deletions rest_api/.openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# OpenAPI Generator Ignore
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
180 changes: 180 additions & 0 deletions rest_api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
.gitignore
.openapi-generator-ignore
.travis.yml
Cargo.toml
README.md
docs/AddPartitionSpecUpdate.md
docs/AddPartitionSpecUpdateAllOf.md
docs/AddSchemaUpdate.md
docs/AddSchemaUpdateAllOf.md
docs/AddSnapshotUpdate.md
docs/AddSnapshotUpdateAllOf.md
docs/AddSortOrderUpdate.md
docs/AddSortOrderUpdateAllOf.md
docs/AndOrExpression.md
docs/BaseUpdate.md
docs/CatalogApiApi.md
docs/CatalogConfig.md
docs/CommitReport.md
docs/CommitTableRequest.md
docs/CommitTableResponse.md
docs/ConfigurationApiApi.md
docs/CounterResult.md
docs/CreateNamespaceRequest.md
docs/CreateNamespaceResponse.md
docs/CreateTableRequest.md
docs/ErrorModel.md
docs/Expression.md
docs/GetNamespaceResponse.md
docs/IcebergErrorResponse.md
docs/ListNamespacesResponse.md
docs/ListTablesResponse.md
docs/ListType.md
docs/LiteralExpression.md
docs/LoadTableResult.md
docs/MapType.md
docs/MetadataLogInner.md
docs/MetricResult.md
docs/NotExpression.md
docs/NullOrder.md
docs/OAuth2ApiApi.md
docs/OAuthError.md
docs/OAuthTokenResponse.md
docs/PartitionField.md
docs/PartitionSpec.md
docs/RemovePropertiesUpdate.md
docs/RemovePropertiesUpdateAllOf.md
docs/RemoveSnapshotRefUpdate.md
docs/RemoveSnapshotsUpdate.md
docs/RemoveSnapshotsUpdateAllOf.md
docs/RenameTableRequest.md
docs/ReportMetricsRequest.md
docs/ScanReport.md
docs/Schema.md
docs/SchemaAllOf.md
docs/SetCurrentSchemaUpdate.md
docs/SetCurrentSchemaUpdateAllOf.md
docs/SetDefaultSortOrderUpdate.md
docs/SetDefaultSortOrderUpdateAllOf.md
docs/SetDefaultSpecUpdate.md
docs/SetDefaultSpecUpdateAllOf.md
docs/SetExpression.md
docs/SetLocationUpdate.md
docs/SetLocationUpdateAllOf.md
docs/SetPropertiesUpdate.md
docs/SetPropertiesUpdateAllOf.md
docs/SetSnapshotRefUpdate.md
docs/SetSnapshotRefUpdateAllOf.md
docs/Snapshot.md
docs/SnapshotLogInner.md
docs/SnapshotReference.md
docs/SnapshotSummary.md
docs/SortDirection.md
docs/SortField.md
docs/SortOrder.md
docs/StructField.md
docs/StructType.md
docs/TableIdentifier.md
docs/TableMetadata.md
docs/TableRequirement.md
docs/TableUpdate.md
docs/Term.md
docs/TimerResult.md
docs/TokenType.md
docs/TransformTerm.md
docs/Type.md
docs/UnaryExpression.md
docs/UpdateNamespacePropertiesRequest.md
docs/UpdateNamespacePropertiesResponse.md
docs/UpgradeFormatVersionUpdate.md
docs/UpgradeFormatVersionUpdateAllOf.md
git_push.sh
src/apis/catalog_api_api.rs
src/apis/configuration.rs
src/apis/configuration_api_api.rs
src/apis/mod.rs
src/apis/o_auth2_api_api.rs
src/lib.rs
src/models/add_partition_spec_update.rs
src/models/add_partition_spec_update_all_of.rs
src/models/add_schema_update.rs
src/models/add_schema_update_all_of.rs
src/models/add_snapshot_update.rs
src/models/add_snapshot_update_all_of.rs
src/models/add_sort_order_update.rs
src/models/add_sort_order_update_all_of.rs
src/models/and_or_expression.rs
src/models/base_update.rs
src/models/catalog_config.rs
src/models/commit_report.rs
src/models/commit_table_request.rs
src/models/commit_table_response.rs
src/models/counter_result.rs
src/models/create_namespace_request.rs
src/models/create_namespace_response.rs
src/models/create_table_request.rs
src/models/error_model.rs
src/models/expression.rs
src/models/get_namespace_response.rs
src/models/iceberg_error_response.rs
src/models/list_namespaces_response.rs
src/models/list_tables_response.rs
src/models/list_type.rs
src/models/literal_expression.rs
src/models/load_table_result.rs
src/models/map_type.rs
src/models/metadata_log_inner.rs
src/models/metric_result.rs
src/models/mod.rs
src/models/model_type.rs
src/models/not_expression.rs
src/models/null_order.rs
src/models/o_auth_error.rs
src/models/o_auth_token_response.rs
src/models/partition_field.rs
src/models/partition_spec.rs
src/models/remove_properties_update.rs
src/models/remove_properties_update_all_of.rs
src/models/remove_snapshot_ref_update.rs
src/models/remove_snapshots_update.rs
src/models/remove_snapshots_update_all_of.rs
src/models/rename_table_request.rs
src/models/report_metrics_request.rs
src/models/scan_report.rs
src/models/schema.rs
src/models/schema_all_of.rs
src/models/set_current_schema_update.rs
src/models/set_current_schema_update_all_of.rs
src/models/set_default_sort_order_update.rs
src/models/set_default_sort_order_update_all_of.rs
src/models/set_default_spec_update.rs
src/models/set_default_spec_update_all_of.rs
src/models/set_expression.rs
src/models/set_location_update.rs
src/models/set_location_update_all_of.rs
src/models/set_properties_update.rs
src/models/set_properties_update_all_of.rs
src/models/set_snapshot_ref_update.rs
src/models/set_snapshot_ref_update_all_of.rs
src/models/snapshot.rs
src/models/snapshot_log_inner.rs
src/models/snapshot_reference.rs
src/models/snapshot_summary.rs
src/models/sort_direction.rs
src/models/sort_field.rs
src/models/sort_order.rs
src/models/struct_field.rs
src/models/struct_type.rs
src/models/table_identifier.rs
src/models/table_metadata.rs
src/models/table_requirement.rs
src/models/table_update.rs
src/models/term.rs
src/models/timer_result.rs
src/models/token_type.rs
src/models/transform_term.rs
src/models/unary_expression.rs
src/models/update_namespace_properties_request.rs
src/models/update_namespace_properties_response.rs
src/models/upgrade_format_version_update.rs
src/models/upgrade_format_version_update_all_of.rs
1 change: 1 addition & 0 deletions rest_api/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.6.0
18 changes: 18 additions & 0 deletions rest_api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "iceberg-rest-api"
version = "0.0.1"
authors = ["OpenAPI Generator team and contributors"]
description = "Defines the specification for the first version of the REST Catalog API. Implementations should ideally support both Iceberg table specs v1 and v2, with priority given to v2."
license = "Apache 2.0"
edition = "2018"

[dependencies]
serde = "^1.0"
serde_derive = "^1.0"
serde_with = "^2.0"
serde_json = "^1.0"
url = "^2.2"
uuid = { version = "^1.0", features = ["serde"] }
[dependencies.reqwest]
version = "^0.11"
features = ["json", "multipart"]
Loading

0 comments on commit 5e3f773

Please sign in to comment.